5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 # This line needs to be here, verbatim, after all includes and the dummy hook
5093 # definitions. It is replaced with custom functionality when building
5094 # custom sources.
5095 #CUSTOM_AUTOCONF_INCLUDE
5096
5097 # Do not change or remove the following line, it is needed for consistency checks:
5098 DATE_WHEN_GENERATED=1470863189
5099
5100 ###############################################################################
5101 #
5102 # Initialization / Boot-strapping
5103 #
5104 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5105 # thus it jumps back and forth, each time gaining something needed later on.
5106 #
5107 ###############################################################################
5108
5109 # If we are requested to print additional help, do that and then exit.
5110 # This must be the very first call.
5111
5112 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5113
5114 # Print available toolchains
5115 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5116 $PRINTF "Which are valid to use depends on the build platform.\n"
5117 for toolchain in $VALID_TOOLCHAINS_all; do
5118 # Use indirect variable referencing
15927 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15928 HOTSPOT_TARGET_CPU_DEFINE=AMD64
15929 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15930 HOTSPOT_TARGET_CPU_DEFINE=SPARC
15931 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15932 HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15933 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15934 HOTSPOT_TARGET_CPU_DEFINE=PPC64
15935 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15936 HOTSPOT_TARGET_CPU_DEFINE=PPC64
15937
15938 # The cpu defines below are for zero, we don't support them directly.
15939 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15940 HOTSPOT_TARGET_CPU_DEFINE=SPARC
15941 elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15942 HOTSPOT_TARGET_CPU_DEFINE=PPC32
15943 elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15944 HOTSPOT_TARGET_CPU_DEFINE=S390
15945 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15946 HOTSPOT_TARGET_CPU_DEFINE=S390
15947 fi
15948
15949
15950
15951
15952 # Also store the legacy naming of the cpu.
15953 # Ie i586 and amd64 instead of x86 and x86_64
15954 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15955 if test "x$OPENJDK_BUILD_CPU" = xx86; then
15956 OPENJDK_BUILD_CPU_LEGACY="i586"
15957 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15958 # On all platforms except MacOSX replace x86_64 with amd64.
15959 OPENJDK_BUILD_CPU_LEGACY="amd64"
15960 fi
15961
15962
15963 # And the second legacy naming of the cpu.
15964 # Ie i386 and amd64 instead of x86 and x86_64.
15965 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15966 if test "x$OPENJDK_BUILD_CPU" = xx86; then
16100 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16101 HOTSPOT_BUILD_CPU_DEFINE=AMD64
16102 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16103 HOTSPOT_BUILD_CPU_DEFINE=SPARC
16104 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16105 HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16106 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16107 HOTSPOT_BUILD_CPU_DEFINE=PPC64
16108 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16109 HOTSPOT_BUILD_CPU_DEFINE=PPC64
16110
16111 # The cpu defines below are for zero, we don't support them directly.
16112 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16113 HOTSPOT_BUILD_CPU_DEFINE=SPARC
16114 elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16115 HOTSPOT_BUILD_CPU_DEFINE=PPC32
16116 elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16117 HOTSPOT_BUILD_CPU_DEFINE=S390
16118 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16119 HOTSPOT_BUILD_CPU_DEFINE=S390
16120 fi
16121
16122
16123
16124
16125 # ZERO_ARCHDEF is used to enable architecture-specific code.
16126 # This is used in legacy hotspot build.
16127 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16128
16129
16130
16131
16132
16133 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16134
16135 # Save the current directory this script was started from
16136 CURDIR="$PWD"
16137
16138 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16139 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
|
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 # This line needs to be here, verbatim, after all includes and the dummy hook
5093 # definitions. It is replaced with custom functionality when building
5094 # custom sources.
5095 #CUSTOM_AUTOCONF_INCLUDE
5096
5097 # Do not change or remove the following line, it is needed for consistency checks:
5098 DATE_WHEN_GENERATED=1472655760
5099
5100 ###############################################################################
5101 #
5102 # Initialization / Boot-strapping
5103 #
5104 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5105 # thus it jumps back and forth, each time gaining something needed later on.
5106 #
5107 ###############################################################################
5108
5109 # If we are requested to print additional help, do that and then exit.
5110 # This must be the very first call.
5111
5112 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5113
5114 # Print available toolchains
5115 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5116 $PRINTF "Which are valid to use depends on the build platform.\n"
5117 for toolchain in $VALID_TOOLCHAINS_all; do
5118 # Use indirect variable referencing
15927 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15928 HOTSPOT_TARGET_CPU_DEFINE=AMD64
15929 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15930 HOTSPOT_TARGET_CPU_DEFINE=SPARC
15931 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15932 HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15933 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15934 HOTSPOT_TARGET_CPU_DEFINE=PPC64
15935 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15936 HOTSPOT_TARGET_CPU_DEFINE=PPC64
15937
15938 # The cpu defines below are for zero, we don't support them directly.
15939 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15940 HOTSPOT_TARGET_CPU_DEFINE=SPARC
15941 elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15942 HOTSPOT_TARGET_CPU_DEFINE=PPC32
15943 elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15944 HOTSPOT_TARGET_CPU_DEFINE=S390
15945 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15946 HOTSPOT_TARGET_CPU_DEFINE=S390
15947 elif test "x$OPENJDK_TARGET_CPU" != x; then
15948 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
15949 fi
15950
15951
15952
15953
15954 # Also store the legacy naming of the cpu.
15955 # Ie i586 and amd64 instead of x86 and x86_64
15956 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15957 if test "x$OPENJDK_BUILD_CPU" = xx86; then
15958 OPENJDK_BUILD_CPU_LEGACY="i586"
15959 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15960 # On all platforms except MacOSX replace x86_64 with amd64.
15961 OPENJDK_BUILD_CPU_LEGACY="amd64"
15962 fi
15963
15964
15965 # And the second legacy naming of the cpu.
15966 # Ie i386 and amd64 instead of x86 and x86_64.
15967 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15968 if test "x$OPENJDK_BUILD_CPU" = xx86; then
16102 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16103 HOTSPOT_BUILD_CPU_DEFINE=AMD64
16104 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16105 HOTSPOT_BUILD_CPU_DEFINE=SPARC
16106 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16107 HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16108 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16109 HOTSPOT_BUILD_CPU_DEFINE=PPC64
16110 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16111 HOTSPOT_BUILD_CPU_DEFINE=PPC64
16112
16113 # The cpu defines below are for zero, we don't support them directly.
16114 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16115 HOTSPOT_BUILD_CPU_DEFINE=SPARC
16116 elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16117 HOTSPOT_BUILD_CPU_DEFINE=PPC32
16118 elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16119 HOTSPOT_BUILD_CPU_DEFINE=S390
16120 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16121 HOTSPOT_BUILD_CPU_DEFINE=S390
16122 elif test "x$OPENJDK_BUILD_CPU" != x; then
16123 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16124 fi
16125
16126
16127
16128
16129 # ZERO_ARCHDEF is used to enable architecture-specific code.
16130 # This is used in legacy hotspot build.
16131 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16132
16133
16134
16135
16136
16137 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16138
16139 # Save the current directory this script was started from
16140 CURDIR="$PWD"
16141
16142 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16143 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
|