< prev index next >

common/autoconf/generated-configure.sh

Print this page
@  rev 2556 : [mq]: libc
|


 955 CHECK_GMAKE
 956 MAKE
 957 PKGHANDLER
 958 CONFIGURESUPPORT_OUTPUTDIR
 959 OUTPUT_ROOT
 960 CONF_NAME
 961 SPEC
 962 SDKROOT
 963 XCODEBUILD
 964 JVM_VARIANT_MAIN
 965 VALID_JVM_VARIANTS
 966 JVM_VARIANTS
 967 DEBUG_LEVEL
 968 HOTSPOT_DEBUG_LEVEL
 969 JDK_VARIANT
 970 USERNAME
 971 CANONICAL_TOPDIR
 972 ORIGINAL_TOPDIR
 973 TOPDIR
 974 PATH_SEP
 975 HOTSPOT_BUILD_CLIB
 976 HOTSPOT_BUILD_CPU_DEFINE
 977 HOTSPOT_BUILD_CPU_ARCH
 978 HOTSPOT_BUILD_CPU
 979 HOTSPOT_BUILD_OS_TYPE
 980 HOTSPOT_BUILD_OS
 981 OPENJDK_BUILD_BUNDLE_PLATFORM
 982 OPENJDK_BUILD_OS_EXPORT_DIR
 983 OPENJDK_BUILD_CPU_OSARCH
 984 OPENJDK_BUILD_CPU_ISADIR
 985 OPENJDK_BUILD_CPU_LEGACY_LIB
 986 OPENJDK_BUILD_CPU_LEGACY
 987 HOTSPOT_TARGET_CLIB
 988 HOTSPOT_TARGET_CPU_DEFINE
 989 HOTSPOT_TARGET_CPU_ARCH
 990 HOTSPOT_TARGET_CPU
 991 HOTSPOT_TARGET_OS_TYPE
 992 HOTSPOT_TARGET_OS
 993 DEFINE_CROSS_COMPILE_ARCH
 994 OPENJDK_TARGET_BUNDLE_PLATFORM
 995 OPENJDK_TARGET_OS_EXPORT_DIR
 996 OPENJDK_TARGET_CPU_OSARCH
 997 OPENJDK_TARGET_CPU_ISADIR
 998 OPENJDK_TARGET_CPU_LEGACY_LIB
 999 OPENJDK_TARGET_CPU_LEGACY
1000 REQUIRED_OS_VERSION
1001 REQUIRED_OS_ARCH
1002 REQUIRED_OS_NAME
1003 COMPILE_TYPE
1004 OPENJDK_TARGET_CLIB
1005 OPENJDK_TARGET_CPU_ENDIAN
1006 OPENJDK_TARGET_CPU_BITS
1007 OPENJDK_TARGET_CPU_ARCH
1008 OPENJDK_TARGET_CPU
1009 OPENJDK_TARGET_OS_ENV
1010 OPENJDK_TARGET_OS_TYPE
1011 OPENJDK_TARGET_OS
1012 OPENJDK_BUILD_CLIB
1013 OPENJDK_BUILD_CPU_ENDIAN
1014 OPENJDK_BUILD_CPU_BITS
1015 OPENJDK_BUILD_CPU_ARCH
1016 OPENJDK_BUILD_CPU
1017 OPENJDK_BUILD_OS_ENV
1018 OPENJDK_BUILD_OS_TYPE
1019 OPENJDK_BUILD_OS
1020 OPENJDK_BUILD_AUTOCONF_NAME
1021 OPENJDK_TARGET_AUTOCONF_NAME
1022 target_os
1023 target_vendor
1024 target_cpu
1025 target
1026 host_os
1027 host_vendor
1028 host_cpu
1029 host
1030 build_os
1031 build_vendor
1032 build_cpu


5186 
5187 
5188 
5189 
5190 
5191 
5192 
5193 
5194 
5195 
5196 
5197 
5198 
5199 
5200 # This line needs to be here, verbatim, after all includes and the dummy hook
5201 # definitions. It is replaced with custom functionality when building
5202 # custom sources.
5203 #CUSTOM_AUTOCONF_INCLUDE
5204 
5205 # Do not change or remove the following line, it is needed for consistency checks:
5206 DATE_WHEN_GENERATED=1492131030
5207 
5208 ###############################################################################
5209 #
5210 # Initialization / Boot-strapping
5211 #
5212 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5213 # thus it jumps back and forth, each time gaining something needed later on.
5214 #
5215 ###############################################################################
5216 
5217 # If we are requested to print additional help, do that and then exit.
5218 # This must be the very first call.
5219 
5220   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5221 
5222     # Print available toolchains
5223     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5224     $PRINTF "Which are valid to use depends on the build platform.\n"
5225     for toolchain in $VALID_TOOLCHAINS_all; do
5226       # Use indirect variable referencing


15741       ;;
15742     *cygwin*)
15743       VAR_OS=windows
15744       VAR_OS_ENV=windows.cygwin
15745       ;;
15746     *mingw*)
15747       VAR_OS=windows
15748       VAR_OS_ENV=windows.msys
15749       ;;
15750     *aix*)
15751       VAR_OS=aix
15752       VAR_OS_TYPE=unix
15753       ;;
15754     *)
15755       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15756       ;;
15757   esac
15758 
15759   case "$build_os" in
15760     *linux*-musl)
15761       VAR_CLIB=musl
15762       ;;
15763     *linux*-gnu)
15764       VAR_CLIB=gnu
15765       ;;
15766     *)
15767       VAR_CLIB=default
15768       ;;
15769   esac
15770 
15771 
15772   # First argument is the cpu name from the trip/quad
15773   case "$build_cpu" in
15774     x86_64)
15775       VAR_CPU=x86_64
15776       VAR_CPU_ARCH=x86
15777       VAR_CPU_BITS=64
15778       VAR_CPU_ENDIAN=little
15779       ;;
15780     i?86)
15781       VAR_CPU=x86
15782       VAR_CPU_ARCH=x86
15783       VAR_CPU_BITS=32
15784       VAR_CPU_ENDIAN=little
15785       ;;
15786     arm*)
15787       VAR_CPU=arm


15841       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15842       ;;
15843   esac
15844 
15845   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15846   OPENJDK_BUILD_OS="$VAR_OS"
15847   if test "x$VAR_OS_TYPE" != x; then
15848     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15849   else
15850     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15851   fi
15852   if test "x$VAR_OS_ENV" != x; then
15853     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15854   else
15855     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15856   fi
15857   OPENJDK_BUILD_CPU="$VAR_CPU"
15858   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15859   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15860   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15861   OPENJDK_BUILD_CLIB="$VAR_CLIB"
15862 
15863 
15864 
15865 
15866 
15867 
15868 
15869 
15870 
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15872 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15874 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15875 
15876   if test "x$OPENJDK_BUILD_OS" = "xlinux"; then
15877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build C library" >&5
15878 $as_echo_n "checking openjdk-build C library... " >&6; }
15879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_CLIB" >&5
15880 $as_echo "$OPENJDK_BUILD_CLIB" >&6; }
15881   fi
15882 
15883   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15884 
15885   case "$host_os" in
15886     *linux*)
15887       VAR_OS=linux
15888       VAR_OS_TYPE=unix
15889       ;;
15890     *solaris*)
15891       VAR_OS=solaris
15892       VAR_OS_TYPE=unix
15893       ;;
15894     *darwin*)
15895       VAR_OS=macosx
15896       VAR_OS_TYPE=unix
15897       ;;
15898     *bsd*)
15899       VAR_OS=bsd
15900       VAR_OS_TYPE=unix
15901       ;;
15902     *cygwin*)
15903       VAR_OS=windows
15904       VAR_OS_ENV=windows.cygwin
15905       ;;
15906     *mingw*)
15907       VAR_OS=windows
15908       VAR_OS_ENV=windows.msys
15909       ;;
15910     *aix*)
15911       VAR_OS=aix
15912       VAR_OS_TYPE=unix
15913       ;;
15914     *)
15915       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15916       ;;
15917   esac
15918 
15919   case "$host_os" in
15920     *linux*-musl)
15921       VAR_CLIB=musl
15922       ;;
15923     *linux*-gnu)
15924       VAR_CLIB=gnu
15925       ;;
15926     *)
15927       VAR_CLIB=default
15928       ;;
15929   esac
15930 
15931 
15932   # First argument is the cpu name from the trip/quad
15933   case "$host_cpu" in
15934     x86_64)
15935       VAR_CPU=x86_64
15936       VAR_CPU_ARCH=x86
15937       VAR_CPU_BITS=64
15938       VAR_CPU_ENDIAN=little
15939       ;;
15940     i?86)
15941       VAR_CPU=x86
15942       VAR_CPU_ARCH=x86
15943       VAR_CPU_BITS=32
15944       VAR_CPU_ENDIAN=little
15945       ;;
15946     arm*)
15947       VAR_CPU=arm


16001       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16002       ;;
16003   esac
16004 
16005   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16006   OPENJDK_TARGET_OS="$VAR_OS"
16007   if test "x$VAR_OS_TYPE" != x; then
16008     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16009   else
16010     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16011   fi
16012   if test "x$VAR_OS_ENV" != x; then
16013     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16014   else
16015     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16016   fi
16017   OPENJDK_TARGET_CPU="$VAR_CPU"
16018   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16019   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16020   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16021   OPENJDK_TARGET_CLIB="$VAR_CLIB"
16022 
16023 
16024 
16025 
16026 
16027 
16028 
16029 
16030 
16031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16032 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16034 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16035 
16036   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target C library" >&5
16038 $as_echo_n "checking openjdk-target C library... " >&6; }
16039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CLIB" >&5
16040 $as_echo "$OPENJDK_TARGET_CLIB" >&6; }
16041   fi
16042 
16043 
16044 
16045 # Check whether --with-target-bits was given.
16046 if test "${with_target_bits+set}" = set; then :
16047   withval=$with_target_bits;
16048 fi
16049 
16050 
16051   # We have three types of compiles:
16052   # native  == normal compilation, target system == build system
16053   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16054   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16055   #
16056   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16057     # We're doing a proper cross-compilation
16058     COMPILE_TYPE="cross"
16059   else
16060     COMPILE_TYPE="native"


16181   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16182       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16183   else
16184       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16185   fi
16186 
16187 
16188   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16189   # Macosx is osx and x86_64 is x64
16190   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16191     OPENJDK_TARGET_OS_BUNDLE="osx"
16192   else
16193     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16194   fi
16195   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16196     OPENJDK_TARGET_CPU_BUNDLE="x64"
16197   else
16198     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16199   fi
16200 
16201   OPENJDK_TARGET_CLIB_BUNDLE=""
16202   if test "x$OPENJDK_TARGET_CLIB" = "xmusl"; then
16203     OPENJDK_TARGET_CLIB_BUNDLE="-$OPENJDK_TARGET_CLIB"
16204   fi
16205 
16206   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}${OPENJDK_TARGET_CLIB_BUNDLE}"
16207 
16208 
16209   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16210     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16211     # unpack200.exe. This variable is used in
16212     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16213     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16214       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16215     fi
16216   fi
16217 
16218   if test "x$COMPILE_TYPE" = "xcross"; then
16219     # FIXME: ... or should this include reduced builds..?
16220     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16221   else
16222     DEFINE_CROSS_COMPILE_ARCH=""
16223   fi
16224 
16225 
16226   # Convert openjdk platform names to hotspot names


16264     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16265   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16266     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16267   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16268     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16269 
16270   # The cpu defines below are for zero, we don't support them directly.
16271   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16272     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16273   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16274     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16275   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16276     HOTSPOT_TARGET_CPU_DEFINE=S390
16277   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16278     HOTSPOT_TARGET_CPU_DEFINE=S390
16279   elif test "x$OPENJDK_TARGET_CPU" != x; then
16280     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16281   fi
16282 
16283 
16284   if test "x$OPENJDK_TARGET_CLIB" = "xmusl"; then
16285     HOTSPOT_TARGET_CLIB=$OPENJDK_TARGET_CLIB
16286   else
16287     HOTSPOT_TARGET_CLIB=""
16288   fi
16289 
16290 
16291 
16292   # Also store the legacy naming of the cpu.
16293   # Ie i586 and amd64 instead of x86 and x86_64
16294   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16295   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16296     OPENJDK_BUILD_CPU_LEGACY="i586"
16297   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16298     # On all platforms except MacOSX replace x86_64 with amd64.
16299     OPENJDK_BUILD_CPU_LEGACY="amd64"
16300   fi
16301 
16302 
16303   # And the second legacy naming of the cpu.
16304   # Ie i386 and amd64 instead of x86 and x86_64.
16305   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16306   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16307     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"


16345   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16346       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16347   else
16348       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16349   fi
16350 
16351 
16352   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16353   # Macosx is osx and x86_64 is x64
16354   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16355     OPENJDK_BUILD_OS_BUNDLE="osx"
16356   else
16357     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16358   fi
16359   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16360     OPENJDK_BUILD_CPU_BUNDLE="x64"
16361   else
16362     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16363   fi
16364 
16365   OPENJDK_BUILD_CLIB_BUNDLE=""
16366   if test "x$OPENJDK_BUILD_CLIB" = "xmusl"; then
16367     OPENJDK_BUILD_CLIB_BUNDLE="-$OPENJDK_BUILD_CLIB"
16368   fi
16369 
16370   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}${OPENJDK_BUILD_CLIB_BUNDLE}"
16371 
16372 
16373   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16374     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16375     # unpack200.exe. This variable is used in
16376     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16377     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16378       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16379     fi
16380   fi
16381 
16382   if test "x$COMPILE_TYPE" = "xcross"; then
16383     # FIXME: ... or should this include reduced builds..?
16384     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16385   else
16386     DEFINE_CROSS_COMPILE_ARCH=""
16387   fi
16388 
16389 
16390   # Convert openjdk platform names to hotspot names


16428     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16429   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16430     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16431   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16432     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16433 
16434   # The cpu defines below are for zero, we don't support them directly.
16435   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16436     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16437   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16438     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16439   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16440     HOTSPOT_BUILD_CPU_DEFINE=S390
16441   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16442     HOTSPOT_BUILD_CPU_DEFINE=S390
16443   elif test "x$OPENJDK_BUILD_CPU" != x; then
16444     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16445   fi
16446 
16447 
16448   if test "x$OPENJDK_BUILD_CLIB" = "xmusl"; then
16449     HOTSPOT_BUILD_CLIB=$OPENJDK_BUILD_CLIB
16450   else
16451     HOTSPOT_BUILD_CLIB=""
16452   fi
16453 
16454 
16455 
16456 
16457 
16458 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16459 
16460   # Save the current directory this script was started from
16461   CURDIR="$PWD"
16462 
16463   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16464   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16465   # was not available at that time.
16466   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16467   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16468     ORIGINAL_PATH="$REWRITTEN_PATH"
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16470 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16471   fi




 955 CHECK_GMAKE
 956 MAKE
 957 PKGHANDLER
 958 CONFIGURESUPPORT_OUTPUTDIR
 959 OUTPUT_ROOT
 960 CONF_NAME
 961 SPEC
 962 SDKROOT
 963 XCODEBUILD
 964 JVM_VARIANT_MAIN
 965 VALID_JVM_VARIANTS
 966 JVM_VARIANTS
 967 DEBUG_LEVEL
 968 HOTSPOT_DEBUG_LEVEL
 969 JDK_VARIANT
 970 USERNAME
 971 CANONICAL_TOPDIR
 972 ORIGINAL_TOPDIR
 973 TOPDIR
 974 PATH_SEP
 975 HOTSPOT_BUILD_LIBC
 976 HOTSPOT_BUILD_CPU_DEFINE
 977 HOTSPOT_BUILD_CPU_ARCH
 978 HOTSPOT_BUILD_CPU
 979 HOTSPOT_BUILD_OS_TYPE
 980 HOTSPOT_BUILD_OS
 981 OPENJDK_BUILD_BUNDLE_PLATFORM
 982 OPENJDK_BUILD_OS_EXPORT_DIR
 983 OPENJDK_BUILD_CPU_OSARCH
 984 OPENJDK_BUILD_CPU_ISADIR
 985 OPENJDK_BUILD_CPU_LEGACY_LIB
 986 OPENJDK_BUILD_CPU_LEGACY
 987 HOTSPOT_TARGET_LIBC
 988 HOTSPOT_TARGET_CPU_DEFINE
 989 HOTSPOT_TARGET_CPU_ARCH
 990 HOTSPOT_TARGET_CPU
 991 HOTSPOT_TARGET_OS_TYPE
 992 HOTSPOT_TARGET_OS
 993 DEFINE_CROSS_COMPILE_ARCH
 994 OPENJDK_TARGET_BUNDLE_PLATFORM
 995 OPENJDK_TARGET_OS_EXPORT_DIR
 996 OPENJDK_TARGET_CPU_OSARCH
 997 OPENJDK_TARGET_CPU_ISADIR
 998 OPENJDK_TARGET_CPU_LEGACY_LIB
 999 OPENJDK_TARGET_CPU_LEGACY
1000 REQUIRED_OS_VERSION
1001 REQUIRED_OS_ARCH
1002 REQUIRED_OS_NAME
1003 COMPILE_TYPE
1004 OPENJDK_TARGET_LIBC
1005 OPENJDK_TARGET_CPU_ENDIAN
1006 OPENJDK_TARGET_CPU_BITS
1007 OPENJDK_TARGET_CPU_ARCH
1008 OPENJDK_TARGET_CPU
1009 OPENJDK_TARGET_OS_ENV
1010 OPENJDK_TARGET_OS_TYPE
1011 OPENJDK_TARGET_OS
1012 OPENJDK_BUILD_LIBC
1013 OPENJDK_BUILD_CPU_ENDIAN
1014 OPENJDK_BUILD_CPU_BITS
1015 OPENJDK_BUILD_CPU_ARCH
1016 OPENJDK_BUILD_CPU
1017 OPENJDK_BUILD_OS_ENV
1018 OPENJDK_BUILD_OS_TYPE
1019 OPENJDK_BUILD_OS
1020 OPENJDK_BUILD_AUTOCONF_NAME
1021 OPENJDK_TARGET_AUTOCONF_NAME
1022 target_os
1023 target_vendor
1024 target_cpu
1025 target
1026 host_os
1027 host_vendor
1028 host_cpu
1029 host
1030 build_os
1031 build_vendor
1032 build_cpu


5186 
5187 
5188 
5189 
5190 
5191 
5192 
5193 
5194 
5195 
5196 
5197 
5198 
5199 
5200 # This line needs to be here, verbatim, after all includes and the dummy hook
5201 # definitions. It is replaced with custom functionality when building
5202 # custom sources.
5203 #CUSTOM_AUTOCONF_INCLUDE
5204 
5205 # Do not change or remove the following line, it is needed for consistency checks:
5206 DATE_WHEN_GENERATED=1493245705
5207 
5208 ###############################################################################
5209 #
5210 # Initialization / Boot-strapping
5211 #
5212 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5213 # thus it jumps back and forth, each time gaining something needed later on.
5214 #
5215 ###############################################################################
5216 
5217 # If we are requested to print additional help, do that and then exit.
5218 # This must be the very first call.
5219 
5220   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5221 
5222     # Print available toolchains
5223     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5224     $PRINTF "Which are valid to use depends on the build platform.\n"
5225     for toolchain in $VALID_TOOLCHAINS_all; do
5226       # Use indirect variable referencing


15741       ;;
15742     *cygwin*)
15743       VAR_OS=windows
15744       VAR_OS_ENV=windows.cygwin
15745       ;;
15746     *mingw*)
15747       VAR_OS=windows
15748       VAR_OS_ENV=windows.msys
15749       ;;
15750     *aix*)
15751       VAR_OS=aix
15752       VAR_OS_TYPE=unix
15753       ;;
15754     *)
15755       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15756       ;;
15757   esac
15758 
15759   case "$build_os" in
15760     *linux*-musl)
15761       VAR_LIBC=musl
15762       ;;
15763     *linux*-gnu)
15764       VAR_LIBC=gnu
15765       ;;
15766     *)
15767       VAR_LIBC=default
15768       ;;
15769   esac
15770 
15771 
15772   # First argument is the cpu name from the trip/quad
15773   case "$build_cpu" in
15774     x86_64)
15775       VAR_CPU=x86_64
15776       VAR_CPU_ARCH=x86
15777       VAR_CPU_BITS=64
15778       VAR_CPU_ENDIAN=little
15779       ;;
15780     i?86)
15781       VAR_CPU=x86
15782       VAR_CPU_ARCH=x86
15783       VAR_CPU_BITS=32
15784       VAR_CPU_ENDIAN=little
15785       ;;
15786     arm*)
15787       VAR_CPU=arm


15841       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15842       ;;
15843   esac
15844 
15845   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15846   OPENJDK_BUILD_OS="$VAR_OS"
15847   if test "x$VAR_OS_TYPE" != x; then
15848     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15849   else
15850     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15851   fi
15852   if test "x$VAR_OS_ENV" != x; then
15853     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15854   else
15855     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15856   fi
15857   OPENJDK_BUILD_CPU="$VAR_CPU"
15858   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15859   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15860   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15861   OPENJDK_BUILD_LIBC="$VAR_LIBC"
15862 
15863 
15864 
15865 
15866 
15867 
15868 
15869 
15870 
15871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15872 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15874 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15875 
15876   if test "x$OPENJDK_BUILD_OS" = "xlinux"; then
15877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build C library" >&5
15878 $as_echo_n "checking openjdk-build C library... " >&6; }
15879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_LIBC" >&5
15880 $as_echo "$OPENJDK_BUILD_LIBC" >&6; }
15881   fi
15882 
15883   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15884 
15885   case "$host_os" in
15886     *linux*)
15887       VAR_OS=linux
15888       VAR_OS_TYPE=unix
15889       ;;
15890     *solaris*)
15891       VAR_OS=solaris
15892       VAR_OS_TYPE=unix
15893       ;;
15894     *darwin*)
15895       VAR_OS=macosx
15896       VAR_OS_TYPE=unix
15897       ;;
15898     *bsd*)
15899       VAR_OS=bsd
15900       VAR_OS_TYPE=unix
15901       ;;
15902     *cygwin*)
15903       VAR_OS=windows
15904       VAR_OS_ENV=windows.cygwin
15905       ;;
15906     *mingw*)
15907       VAR_OS=windows
15908       VAR_OS_ENV=windows.msys
15909       ;;
15910     *aix*)
15911       VAR_OS=aix
15912       VAR_OS_TYPE=unix
15913       ;;
15914     *)
15915       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15916       ;;
15917   esac
15918 
15919   case "$host_os" in
15920     *linux*-musl)
15921       VAR_LIBC=musl
15922       ;;
15923     *linux*-gnu)
15924       VAR_LIBC=gnu
15925       ;;
15926     *)
15927       VAR_LIBC=default
15928       ;;
15929   esac
15930 
15931 
15932   # First argument is the cpu name from the trip/quad
15933   case "$host_cpu" in
15934     x86_64)
15935       VAR_CPU=x86_64
15936       VAR_CPU_ARCH=x86
15937       VAR_CPU_BITS=64
15938       VAR_CPU_ENDIAN=little
15939       ;;
15940     i?86)
15941       VAR_CPU=x86
15942       VAR_CPU_ARCH=x86
15943       VAR_CPU_BITS=32
15944       VAR_CPU_ENDIAN=little
15945       ;;
15946     arm*)
15947       VAR_CPU=arm


16001       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16002       ;;
16003   esac
16004 
16005   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16006   OPENJDK_TARGET_OS="$VAR_OS"
16007   if test "x$VAR_OS_TYPE" != x; then
16008     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16009   else
16010     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16011   fi
16012   if test "x$VAR_OS_ENV" != x; then
16013     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16014   else
16015     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16016   fi
16017   OPENJDK_TARGET_CPU="$VAR_CPU"
16018   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16019   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16020   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16021   OPENJDK_TARGET_LIBC="$VAR_LIBC"
16022 
16023 
16024 
16025 
16026 
16027 
16028 
16029 
16030 
16031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16032 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16034 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16035 
16036   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target C library" >&5
16038 $as_echo_n "checking openjdk-target C library... " >&6; }
16039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_LIBC" >&5
16040 $as_echo "$OPENJDK_TARGET_LIBC" >&6; }
16041   fi
16042 
16043 
16044 
16045 # Check whether --with-target-bits was given.
16046 if test "${with_target_bits+set}" = set; then :
16047   withval=$with_target_bits;
16048 fi
16049 
16050 
16051   # We have three types of compiles:
16052   # native  == normal compilation, target system == build system
16053   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16054   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16055   #
16056   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16057     # We're doing a proper cross-compilation
16058     COMPILE_TYPE="cross"
16059   else
16060     COMPILE_TYPE="native"


16181   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16182       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
16183   else
16184       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
16185   fi
16186 
16187 
16188   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16189   # Macosx is osx and x86_64 is x64
16190   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16191     OPENJDK_TARGET_OS_BUNDLE="osx"
16192   else
16193     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16194   fi
16195   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16196     OPENJDK_TARGET_CPU_BUNDLE="x64"
16197   else
16198     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16199   fi
16200 
16201   OPENJDK_TARGET_LIBC_BUNDLE=""
16202   if test "x$OPENJDK_TARGET_LIBC" = "xmusl"; then
16203     OPENJDK_TARGET_LIBC_BUNDLE="-$OPENJDK_TARGET_LIBC"
16204   fi
16205 
16206   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}${OPENJDK_TARGET_LIBC_BUNDLE}"
16207 
16208 
16209   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16210     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16211     # unpack200.exe. This variable is used in
16212     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16213     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16214       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16215     fi
16216   fi
16217 
16218   if test "x$COMPILE_TYPE" = "xcross"; then
16219     # FIXME: ... or should this include reduced builds..?
16220     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16221   else
16222     DEFINE_CROSS_COMPILE_ARCH=""
16223   fi
16224 
16225 
16226   # Convert openjdk platform names to hotspot names


16264     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16265   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16266     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16267   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16268     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16269 
16270   # The cpu defines below are for zero, we don't support them directly.
16271   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16272     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16273   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16274     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16275   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16276     HOTSPOT_TARGET_CPU_DEFINE=S390
16277   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16278     HOTSPOT_TARGET_CPU_DEFINE=S390
16279   elif test "x$OPENJDK_TARGET_CPU" != x; then
16280     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16281   fi
16282 
16283 
16284   if test "x$OPENJDK_TARGET_LIBC" = "xmusl"; then
16285     HOTSPOT_TARGET_LIBC=$OPENJDK_TARGET_LIBC
16286   else
16287     HOTSPOT_TARGET_LIBC=""
16288   fi
16289 
16290 
16291 
16292   # Also store the legacy naming of the cpu.
16293   # Ie i586 and amd64 instead of x86 and x86_64
16294   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16295   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16296     OPENJDK_BUILD_CPU_LEGACY="i586"
16297   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16298     # On all platforms except MacOSX replace x86_64 with amd64.
16299     OPENJDK_BUILD_CPU_LEGACY="amd64"
16300   fi
16301 
16302 
16303   # And the second legacy naming of the cpu.
16304   # Ie i386 and amd64 instead of x86 and x86_64.
16305   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16306   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16307     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"


16345   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16346       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16347   else
16348       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16349   fi
16350 
16351 
16352   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16353   # Macosx is osx and x86_64 is x64
16354   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16355     OPENJDK_BUILD_OS_BUNDLE="osx"
16356   else
16357     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16358   fi
16359   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16360     OPENJDK_BUILD_CPU_BUNDLE="x64"
16361   else
16362     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16363   fi
16364 
16365   OPENJDK_BUILD_LIBC_BUNDLE=""
16366   if test "x$OPENJDK_BUILD_LIBC" = "xmusl"; then
16367     OPENJDK_BUILD_LIBC_BUNDLE="-$OPENJDK_BUILD_LIBC"
16368   fi
16369 
16370   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}${OPENJDK_BUILD_LIBC_BUNDLE}"
16371 
16372 
16373   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16374     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16375     # unpack200.exe. This variable is used in
16376     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16377     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16378       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16379     fi
16380   fi
16381 
16382   if test "x$COMPILE_TYPE" = "xcross"; then
16383     # FIXME: ... or should this include reduced builds..?
16384     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16385   else
16386     DEFINE_CROSS_COMPILE_ARCH=""
16387   fi
16388 
16389 
16390   # Convert openjdk platform names to hotspot names


16428     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16429   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16430     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16431   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16432     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16433 
16434   # The cpu defines below are for zero, we don't support them directly.
16435   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16436     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16437   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16438     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16439   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16440     HOTSPOT_BUILD_CPU_DEFINE=S390
16441   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16442     HOTSPOT_BUILD_CPU_DEFINE=S390
16443   elif test "x$OPENJDK_BUILD_CPU" != x; then
16444     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16445   fi
16446 
16447 
16448   if test "x$OPENJDK_BUILD_LIBC" = "xmusl"; then
16449     HOTSPOT_BUILD_LIBC=$OPENJDK_BUILD_LIBC
16450   else
16451     HOTSPOT_BUILD_LIBC=""
16452   fi
16453 
16454 
16455 
16456 
16457 
16458 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16459 
16460   # Save the current directory this script was started from
16461   CURDIR="$PWD"
16462 
16463   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16464   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16465   # was not available at that time.
16466   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16467   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16468     ORIGINAL_PATH="$REWRITTEN_PATH"
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16470 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16471   fi


< prev index next >