879 SHARED_LIBRARY_SUFFIX
880 LIBRARY_PREFIX
881 TOOLCHAIN_TYPE
882 STATIC_BUILD
883 IMPORT_MODULES_MAKE
884 IMPORT_MODULES_SRC
885 IMPORT_MODULES_CONF
886 IMPORT_MODULES_LIBS
887 IMPORT_MODULES_CMDS
888 IMPORT_MODULES_CLASSES
889 BUILD_HOTSPOT
890 HOTSPOT_DIST
891 BUILD_OUTPUT
892 JDK_TOPDIR
893 NASHORN_TOPDIR
894 HOTSPOT_TOPDIR
895 JAXWS_TOPDIR
896 JAXP_TOPDIR
897 CORBA_TOPDIR
898 LANGTOOLS_TOPDIR
899 BUILD_JDK
900 CREATE_BUILDJDK
901 BOOT_JDK_BITS
902 JAVAC_FLAGS
903 BOOT_JDK_MODULAR
904 BOOT_JDK_SOURCETARGET
905 JARSIGNER
906 JAR
907 JAVAH
908 JAVAC
909 JAVA
910 BOOT_JDK
911 JAVA_CHECK
912 JAVAC_CHECK
913 VERSION_IS_GA
914 VERSION_SHORT
915 VERSION_STRING
916 VERSION_NUMBER_FOUR_POSITIONS
917 VERSION_NUMBER
918 VERSION_OPT
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 # This line needs to be here, verbatim, after all includes and the dummy hook
5068 # definitions. It is replaced with custom functionality when building
5069 # custom sources.
5070 #CUSTOM_AUTOCONF_INCLUDE
5071
5072 # Do not change or remove the following line, it is needed for consistency checks:
5073 DATE_WHEN_GENERATED=1462268995
5074
5075 ###############################################################################
5076 #
5077 # Initialization / Boot-strapping
5078 #
5079 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5080 # thus it jumps back and forth, each time gaining something needed later on.
5081 #
5082 ###############################################################################
5083
5084 # If we are requested to print additional help, do that and then exit.
5085 # This must be the very first call.
5086
5087 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5088
5089 # Print available toolchains
5090 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5091 $PRINTF "Which are valid to use depends on the build platform.\n"
5092 for toolchain in $VALID_TOOLCHAINS_all; do
5093 # Use indirect variable referencing
30154 # Check if the boot jdk is 32 or 64 bit
30155 if "$JAVA" -d64 -version > /dev/null 2>&1; then
30156 BOOT_JDK_BITS="64"
30157 else
30158 BOOT_JDK_BITS="32"
30159 fi
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
30161 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
30163 $as_echo "$BOOT_JDK_BITS" >&6; }
30164
30165
30166
30167
30168 # Check whether --with-build-jdk was given.
30169 if test "${with_build_jdk+set}" = set; then :
30170 withval=$with_build_jdk;
30171 fi
30172
30173
30174 CREATE_BUILDJDK_FOR_HOST=false
30175 BUILD_JDK_FOUND="no"
30176 if test "x$with_build_jdk" != "x"; then
30177
30178 if test "x$BUILD_JDK_FOUND" = xno; then
30179 # Execute the test
30180
30181 if test "x$with_build_jdk" != x; then
30182 BUILD_JDK=$with_build_jdk
30183 BUILD_JDK_FOUND=maybe
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5
30185 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;}
30186 fi
30187
30188 # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
30189 if test "x$BUILD_JDK_FOUND" = xmaybe; then
30190 # Do we have a bin/java?
30191 if test ! -x "$BUILD_JDK/bin/java"; then
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5
30193 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;}
30194 BUILD_JDK_FOUND=no
30347 base="`$BASENAME "$path"`"
30348 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
30349 fi
30350 fi
30351 fi
30352
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30354 $as_echo_n "checking for Build JDK... " >&6; }
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5
30356 $as_echo "$BUILD_JDK" >&6; }
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5
30358 $as_echo_n "checking Build JDK version... " >&6; }
30359 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5
30361 $as_echo "$BUILD_JDK_VERSION" >&6; }
30362 fi # end check jdk version
30363 fi # end check java
30364 fi # end check build jdk found
30365 fi
30366
30367 else
30368 if test "x$COMPILE_TYPE" = "xcross"; then
30369 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk"
30370 BUILD_JDK_FOUND=yes
30371 CREATE_BUILDJDK=true
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30373 $as_echo_n "checking for Build JDK... " >&6; }
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5
30375 $as_echo "yes, will build it for the host platform" >&6; }
30376 else
30377 BUILD_JDK="\$(JDK_OUTPUTDIR)"
30378 BUILD_JDK_FOUND=yes
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30380 $as_echo_n "checking for Build JDK... " >&6; }
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5
30382 $as_echo "yes, will use output dir" >&6; }
30383 fi
30384 fi
30385
30386 if test "x$BUILD_JDK_FOUND" != "xyes"; then
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30388 $as_echo_n "checking for Build JDK... " >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }
30391 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5
30392 fi
30393
30394
30395
30396
30397
30398 ###############################################################################
30399 #
30400 # Configure the sources to use. We can add or override individual directories.
30401 #
30402 ###############################################################################
30403
30404
30405 # Where are the sources.
30406 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
30407 CORBA_TOPDIR="$SRC_ROOT/corba"
30408 JAXP_TOPDIR="$SRC_ROOT/jaxp"
30409 JAXWS_TOPDIR="$SRC_ROOT/jaxws"
30410 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
30411 NASHORN_TOPDIR="$SRC_ROOT/nashorn"
30412 JDK_TOPDIR="$SRC_ROOT/jdk"
|
879 SHARED_LIBRARY_SUFFIX
880 LIBRARY_PREFIX
881 TOOLCHAIN_TYPE
882 STATIC_BUILD
883 IMPORT_MODULES_MAKE
884 IMPORT_MODULES_SRC
885 IMPORT_MODULES_CONF
886 IMPORT_MODULES_LIBS
887 IMPORT_MODULES_CMDS
888 IMPORT_MODULES_CLASSES
889 BUILD_HOTSPOT
890 HOTSPOT_DIST
891 BUILD_OUTPUT
892 JDK_TOPDIR
893 NASHORN_TOPDIR
894 HOTSPOT_TOPDIR
895 JAXWS_TOPDIR
896 JAXP_TOPDIR
897 CORBA_TOPDIR
898 LANGTOOLS_TOPDIR
899 EXTERNAL_BUILDJDK
900 BUILD_JDK
901 CREATE_BUILDJDK
902 BOOT_JDK_BITS
903 JAVAC_FLAGS
904 BOOT_JDK_MODULAR
905 BOOT_JDK_SOURCETARGET
906 JARSIGNER
907 JAR
908 JAVAH
909 JAVAC
910 JAVA
911 BOOT_JDK
912 JAVA_CHECK
913 JAVAC_CHECK
914 VERSION_IS_GA
915 VERSION_SHORT
916 VERSION_STRING
917 VERSION_NUMBER_FOUR_POSITIONS
918 VERSION_NUMBER
919 VERSION_OPT
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 # This line needs to be here, verbatim, after all includes and the dummy hook
5069 # definitions. It is replaced with custom functionality when building
5070 # custom sources.
5071 #CUSTOM_AUTOCONF_INCLUDE
5072
5073 # Do not change or remove the following line, it is needed for consistency checks:
5074 DATE_WHEN_GENERATED=1462299776
5075
5076 ###############################################################################
5077 #
5078 # Initialization / Boot-strapping
5079 #
5080 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5081 # thus it jumps back and forth, each time gaining something needed later on.
5082 #
5083 ###############################################################################
5084
5085 # If we are requested to print additional help, do that and then exit.
5086 # This must be the very first call.
5087
5088 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5089
5090 # Print available toolchains
5091 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5092 $PRINTF "Which are valid to use depends on the build platform.\n"
5093 for toolchain in $VALID_TOOLCHAINS_all; do
5094 # Use indirect variable referencing
30155 # Check if the boot jdk is 32 or 64 bit
30156 if "$JAVA" -d64 -version > /dev/null 2>&1; then
30157 BOOT_JDK_BITS="64"
30158 else
30159 BOOT_JDK_BITS="32"
30160 fi
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
30162 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
30164 $as_echo "$BOOT_JDK_BITS" >&6; }
30165
30166
30167
30168
30169 # Check whether --with-build-jdk was given.
30170 if test "${with_build_jdk+set}" = set; then :
30171 withval=$with_build_jdk;
30172 fi
30173
30174
30175 CREATE_BUILDJDK=false
30176 EXTERNAL_BUILDJDK=false
30177 BUILD_JDK_FOUND="no"
30178 if test "x$with_build_jdk" != "x"; then
30179
30180 if test "x$BUILD_JDK_FOUND" = xno; then
30181 # Execute the test
30182
30183 if test "x$with_build_jdk" != x; then
30184 BUILD_JDK=$with_build_jdk
30185 BUILD_JDK_FOUND=maybe
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5
30187 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;}
30188 fi
30189
30190 # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
30191 if test "x$BUILD_JDK_FOUND" = xmaybe; then
30192 # Do we have a bin/java?
30193 if test ! -x "$BUILD_JDK/bin/java"; then
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5
30195 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;}
30196 BUILD_JDK_FOUND=no
30349 base="`$BASENAME "$path"`"
30350 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
30351 fi
30352 fi
30353 fi
30354
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30356 $as_echo_n "checking for Build JDK... " >&6; }
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5
30358 $as_echo "$BUILD_JDK" >&6; }
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5
30360 $as_echo_n "checking Build JDK version... " >&6; }
30361 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5
30363 $as_echo "$BUILD_JDK_VERSION" >&6; }
30364 fi # end check jdk version
30365 fi # end check java
30366 fi # end check build jdk found
30367 fi
30368
30369 EXTERNAL_BUILDJDK=true
30370 else
30371 if test "x$COMPILE_TYPE" = "xcross"; then
30372 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk"
30373 BUILD_JDK_FOUND=yes
30374 CREATE_BUILDJDK=true
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30376 $as_echo_n "checking for Build JDK... " >&6; }
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5
30378 $as_echo "yes, will build it for the host platform" >&6; }
30379 else
30380 BUILD_JDK="\$(JDK_OUTPUTDIR)"
30381 BUILD_JDK_FOUND=yes
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30383 $as_echo_n "checking for Build JDK... " >&6; }
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5
30385 $as_echo "yes, will use output dir" >&6; }
30386 fi
30387 fi
30388
30389 if test "x$BUILD_JDK_FOUND" != "xyes"; then
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5
30391 $as_echo_n "checking for Build JDK... " >&6; }
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393 $as_echo "no" >&6; }
30394 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5
30395 fi
30396
30397
30398
30399
30400
30401
30402 ###############################################################################
30403 #
30404 # Configure the sources to use. We can add or override individual directories.
30405 #
30406 ###############################################################################
30407
30408
30409 # Where are the sources.
30410 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
30411 CORBA_TOPDIR="$SRC_ROOT/corba"
30412 JAXP_TOPDIR="$SRC_ROOT/jaxp"
30413 JAXWS_TOPDIR="$SRC_ROOT/jaxws"
30414 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
30415 NASHORN_TOPDIR="$SRC_ROOT/nashorn"
30416 JDK_TOPDIR="$SRC_ROOT/jdk"
|