common/autoconf/configure

changeset 2213
5510b933fa58
parent 2212
dd97daafa80b
child 2316
64a3eeabf6e5
equal deleted inserted replaced
2212:dd97daafa80b 2213:5510b933fa58
21 # or visit www.oracle.com if you need additional information or have any 21 # or visit www.oracle.com if you need additional information or have any
22 # questions. 22 # questions.
23 # 23 #
24 24
25 if test "x$1" != xCHECKME; then 25 if test "x$1" != xCHECKME; then
26 echo "This script cannot be run directly." 26 echo "WARNING: Calling the wrapper script directly is deprecated and unsupported."
27 echo "Not all features of configure will be available."
27 echo "Use the 'configure' script in the top-level directory instead." 28 echo "Use the 'configure' script in the top-level directory instead."
28 exit 1 29 TOPDIR=$(cd $(dirname $0)/../.. > /dev/null && pwd)
30 else
31 # Now the next argument is the absolute top-level directory path.
32 # The TOPDIR variable is passed on to configure.ac.
33 TOPDIR="$2"
34 # Remove these two arguments to get to the user supplied arguments
35 shift
36 shift
29 fi 37 fi
30 38
31 # Force autoconf to use bash. This also means we must disable autoconf re-exec. 39 # Force autoconf to use bash. This also means we must disable autoconf re-exec.
32 export CONFIG_SHELL=$BASH 40 export CONFIG_SHELL=$BASH
33 export _as_can_reexec=no 41 export _as_can_reexec=no
34
35 # Now the next argument is the absolute top-level directory path.
36 # The TOPDIR variable is passed on to configure.ac.
37 TOPDIR="$2"
38 # Remove these two arguments to get to the user supplied arguments
39 shift
40 shift
41 42
42 conf_script_dir="$TOPDIR/common/autoconf" 43 conf_script_dir="$TOPDIR/common/autoconf"
43 44
44 if [ "$CUSTOM_CONFIG_DIR" = "" ]; then 45 if [ "$CUSTOM_CONFIG_DIR" = "" ]; then
45 conf_custom_script_dir="$TOPDIR/jdk/make/closed/autoconf" 46 conf_custom_script_dir="$TOPDIR/jdk/make/closed/autoconf"

mercurial