101 # Locate the directory of this script.
102 AUTOCONF_DIR=$TOPDIR/make/autoconf
103
104 # Setup username (for use in adhoc version strings etc)
105 # Outer [ ] to quote m4.
106 [ USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` ]
107 AC_SUBST(USERNAME)
108 ])
109
110 ###############################################################################
111 # Evaluates platform specific overrides for devkit variables.
112 # $1: Name of variable
113 AC_DEFUN([BASIC_EVAL_DEVKIT_VARIABLE],
114 [
115 if test "x[$]$1" = x; then
116 eval $1="\${$1_${OPENJDK_TARGET_CPU}}"
117 fi
118 ])
119
120 ###############################################################################
121 AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
122 [
123 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
124 [use this devkit for compilers, tools and resources])])
125
126 if test "x$with_devkit" = xyes; then
127 AC_MSG_ERROR([--with-devkit must have a value])
128 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
129 UTIL_FIXUP_PATH([with_devkit])
130 DEVKIT_ROOT="$with_devkit"
131 # Check for a meta data info file in the root of the devkit
132 if test -f "$DEVKIT_ROOT/devkit.info"; then
133 . $DEVKIT_ROOT/devkit.info
134 # This potentially sets the following:
135 # A descriptive name of the devkit
136 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_NAME])
137 # Corresponds to --with-extra-path
138 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_EXTRA_PATH])
139 # Corresponds to --with-toolchain-path
140 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_TOOLCHAIN_PATH])
|
101 # Locate the directory of this script.
102 AUTOCONF_DIR=$TOPDIR/make/autoconf
103
104 # Setup username (for use in adhoc version strings etc)
105 # Outer [ ] to quote m4.
106 [ USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` ]
107 AC_SUBST(USERNAME)
108 ])
109
110 ###############################################################################
111 # Evaluates platform specific overrides for devkit variables.
112 # $1: Name of variable
113 AC_DEFUN([BASIC_EVAL_DEVKIT_VARIABLE],
114 [
115 if test "x[$]$1" = x; then
116 eval $1="\${$1_${OPENJDK_TARGET_CPU}}"
117 fi
118 ])
119
120 ###############################################################################
121 # Evaluates platform specific overrides for build devkit variables.
122 # $1: Name of variable
123 AC_DEFUN([BASIC_EVAL_BUILD_DEVKIT_VARIABLE],
124 [
125 if test "x[$]$1" = x; then
126 eval $1="\${$1_${OPENJDK_BUILD_CPU}}"
127 fi
128 ])
129
130 ###############################################################################
131 AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
132 [
133 AC_ARG_WITH([devkit], [AS_HELP_STRING([--with-devkit],
134 [use this devkit for compilers, tools and resources])])
135
136 if test "x$with_devkit" = xyes; then
137 AC_MSG_ERROR([--with-devkit must have a value])
138 elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
139 UTIL_FIXUP_PATH([with_devkit])
140 DEVKIT_ROOT="$with_devkit"
141 # Check for a meta data info file in the root of the devkit
142 if test -f "$DEVKIT_ROOT/devkit.info"; then
143 . $DEVKIT_ROOT/devkit.info
144 # This potentially sets the following:
145 # A descriptive name of the devkit
146 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_NAME])
147 # Corresponds to --with-extra-path
148 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_EXTRA_PATH])
149 # Corresponds to --with-toolchain-path
150 BASIC_EVAL_DEVKIT_VARIABLE([DEVKIT_TOOLCHAIN_PATH])
|