959 FIND_DELETE
960 OUTPUT_SYNC
961 OUTPUT_SYNC_SUPPORTED
962 CHECK_TOOLSDIR_MAKE
963 CHECK_TOOLSDIR_GMAKE
964 CHECK_MAKE
965 CHECK_GMAKE
966 MAKE
967 PKGHANDLER
968 CONFIGURESUPPORT_OUTPUTDIR
969 OUTPUT_ROOT
970 CONF_NAME
971 SPEC
972 SDKROOT
973 XCODEBUILD
974 VALID_JVM_VARIANTS
975 JVM_VARIANTS
976 DEBUG_LEVEL
977 HOTSPOT_DEBUG_LEVEL
978 JDK_VARIANT
979 SET_OPENJDK
980 USERNAME
981 CANONICAL_TOPDIR
982 ORIGINAL_TOPDIR
983 TOPDIR
984 PATH_SEP
985 ZERO_ARCHDEF
986 HOTSPOT_BUILD_CPU_DEFINE
987 HOTSPOT_BUILD_CPU_ARCH
988 HOTSPOT_BUILD_CPU
989 HOTSPOT_BUILD_OS_TYPE
990 HOTSPOT_BUILD_OS
991 OPENJDK_BUILD_BUNDLE_PLATFORM
992 OPENJDK_BUILD_CPU_BUNDLE
993 OPENJDK_BUILD_OS_BUNDLE
994 OPENJDK_BUILD_OS_EXPORT_DIR
995 OPENJDK_BUILD_CPU_JLI_CFLAGS
996 OPENJDK_BUILD_CPU_OSARCH
997 OPENJDK_BUILD_CPU_ISADIR
998 OPENJDK_BUILD_CPU_LIBDIR
999 OPENJDK_BUILD_CPU_LEGACY_LIB
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=1467223237
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
16575
16576 # Locate the directory of this script.
16577 AUTOCONF_DIR=$TOPDIR/common/autoconf
16578
16579 # Setup username (for use in adhoc version strings etc)
16580 # Outer [ ] to quote m4.
16581 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16582
16583
16584
16585 # Check if it's a pure open build or if custom sources are to be used.
16586
16587 # Check whether --enable-openjdk-only was given.
16588 if test "${enable_openjdk_only+set}" = set; then :
16589 enableval=$enable_openjdk_only;
16590 else
16591 enable_openjdk_only="no"
16592 fi
16593
16594
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
16596 $as_echo_n "checking for presence of closed sources... " >&6; }
16597 if test -d "$SRC_ROOT/jdk/src/closed"; then
16598 CLOSED_SOURCE_PRESENT=yes
16599 else
16600 CLOSED_SOURCE_PRESENT=no
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
16603 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
16604
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
16606 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
16607 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
16609 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
16610
16611 if test "x$CLOSED_SOURCE_PRESENT" = xno; then
16612 OPENJDK=true
16613 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
16615 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
16616 fi
16617 else
16618 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16619 OPENJDK=true
16620 else
16621 OPENJDK=false
16622 fi
16623 fi
16624
16625 if test "x$OPENJDK" = "xtrue"; then
16626 SET_OPENJDK="OPENJDK=true"
16627 fi
16628
16629
16630
16631 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16632 # the IncludeCustomExtension macro.
16633
16634
16635 # Check whether --with-custom-make-dir was given.
16636 if test "${with_custom_make_dir+set}" = set; then :
16637 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
16638 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16639 fi
16640
16641
16642
16643
16644 # These are needed to be able to create a configuration name (and thus the output directory)
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16647 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16648
16649 # Check whether --with-jdk-variant was given.
53296 pkgadd)
53297 pkgadd_help $MISSING_DEPENDENCY ;;
53298 esac
53299
53300 if test "x$PKGHANDLER_COMMAND" != x; then
53301 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
53302 fi
53303 fi
53304
53305 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
53306 else
53307 INCLUDE_DTRACE=true
53308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
53309 $as_echo "yes, forced" >&6; }
53310 fi
53311 elif test "x$enable_dtrace" = "xno"; then
53312 INCLUDE_DTRACE=false
53313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
53314 $as_echo "no, forced" >&6; }
53315 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
53316 if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK" != "xtrue"; then
53317 INCLUDE_DTRACE=false
53318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, non-open linux build" >&5
53319 $as_echo "no, non-open linux build" >&6; }
53320 elif test "x$DTRACE_DEP_MISSING" = "xtrue"; then
53321 INCLUDE_DTRACE=false
53322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
53323 $as_echo "no, missing dependencies" >&6; }
53324 else
53325 INCLUDE_DTRACE=true
53326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
53327 $as_echo "yes, dependencies present" >&6; }
53328 fi
53329 else
53330 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5
53331 fi
53332
53333
53334
53335 # The user can in some cases supply additional jvm features. For the custom
53336 # variant, this defines the entire variant.
53337
53338 # Check whether --with-jvm-features was given.
53339 if test "${with_jvm_features+set}" = set; then :
53340 withval=$with_jvm_features;
53579 # No X11 support on windows or macosx
53580 NEEDS_LIB_X11=false
53581 else
53582 if test "x$SUPPORT_HEADFUL" = xno; then
53583 # No X11 support if building headless-only
53584 NEEDS_LIB_X11=false
53585 else
53586 # All other instances need X11
53587 NEEDS_LIB_X11=true
53588 fi
53589 fi
53590
53591 # Check if cups is needed
53592 if test "x$OPENJDK_TARGET_OS" = xwindows; then
53593 # Windows have a separate print system
53594 NEEDS_LIB_CUPS=false
53595 else
53596 NEEDS_LIB_CUPS=true
53597 fi
53598
53599 # Check if freetype is needed
53600 if test "x$OPENJDK" = "xtrue"; then
53601 NEEDS_LIB_FREETYPE=true
53602 else
53603 NEEDS_LIB_FREETYPE=false
53604 fi
53605
53606 # Check if alsa is needed
53607 if test "x$OPENJDK_TARGET_OS" = xlinux; then
53608 NEEDS_LIB_ALSA=true
53609 else
53610 NEEDS_LIB_ALSA=false
53611 fi
53612
53613 # Check if ffi is needed
53614 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then
53615 NEEDS_LIB_FFI=true
53616 else
53617 NEEDS_LIB_FFI=false
53618 fi
53619
53620
53621 # statically link libstdc++ before C++ ABI is stablized on Linux unless
53622 # dynamic build is configured on command line.
53623
|
959 FIND_DELETE
960 OUTPUT_SYNC
961 OUTPUT_SYNC_SUPPORTED
962 CHECK_TOOLSDIR_MAKE
963 CHECK_TOOLSDIR_GMAKE
964 CHECK_MAKE
965 CHECK_GMAKE
966 MAKE
967 PKGHANDLER
968 CONFIGURESUPPORT_OUTPUTDIR
969 OUTPUT_ROOT
970 CONF_NAME
971 SPEC
972 SDKROOT
973 XCODEBUILD
974 VALID_JVM_VARIANTS
975 JVM_VARIANTS
976 DEBUG_LEVEL
977 HOTSPOT_DEBUG_LEVEL
978 JDK_VARIANT
979 USERNAME
980 CANONICAL_TOPDIR
981 ORIGINAL_TOPDIR
982 TOPDIR
983 PATH_SEP
984 ZERO_ARCHDEF
985 HOTSPOT_BUILD_CPU_DEFINE
986 HOTSPOT_BUILD_CPU_ARCH
987 HOTSPOT_BUILD_CPU
988 HOTSPOT_BUILD_OS_TYPE
989 HOTSPOT_BUILD_OS
990 OPENJDK_BUILD_BUNDLE_PLATFORM
991 OPENJDK_BUILD_CPU_BUNDLE
992 OPENJDK_BUILD_OS_BUNDLE
993 OPENJDK_BUILD_OS_EXPORT_DIR
994 OPENJDK_BUILD_CPU_JLI_CFLAGS
995 OPENJDK_BUILD_CPU_OSARCH
996 OPENJDK_BUILD_CPU_ISADIR
997 OPENJDK_BUILD_CPU_LIBDIR
998 OPENJDK_BUILD_CPU_LEGACY_LIB
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 # This line needs to be here, verbatim, after all includes and the dummy hook
5092 # definitions. It is replaced with custom functionality when building
5093 # custom sources.
5094 #CUSTOM_AUTOCONF_INCLUDE
5095
5096 # Do not change or remove the following line, it is needed for consistency checks:
5097 DATE_WHEN_GENERATED=1467382439
5098
5099 ###############################################################################
5100 #
5101 # Initialization / Boot-strapping
5102 #
5103 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5104 # thus it jumps back and forth, each time gaining something needed later on.
5105 #
5106 ###############################################################################
5107
5108 # If we are requested to print additional help, do that and then exit.
5109 # This must be the very first call.
5110
5111 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5112
5113 # Print available toolchains
5114 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5115 $PRINTF "Which are valid to use depends on the build platform.\n"
5116 for toolchain in $VALID_TOOLCHAINS_all; do
5117 # Use indirect variable referencing
16574
16575 # Locate the directory of this script.
16576 AUTOCONF_DIR=$TOPDIR/common/autoconf
16577
16578 # Setup username (for use in adhoc version strings etc)
16579 # Outer [ ] to quote m4.
16580 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16581
16582
16583
16584 # Check if it's a pure open build or if custom sources are to be used.
16585
16586 # Check whether --enable-openjdk-only was given.
16587 if test "${enable_openjdk_only+set}" = set; then :
16588 enableval=$enable_openjdk_only;
16589 else
16590 enable_openjdk_only="no"
16591 fi
16592
16593
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16595 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16597 $as_echo "$enable_openjdk_only" >&6; }
16598 if test "x$enable_openjdk_only" = "xyes"; then
16599 SUPPRESS_CUSTOM_SOURCE="true"
16600 elif test "x$enable_openjdk_only" = "xno"; then
16601 SUPPRESS_CUSTOM_SOURCE="false"
16602 else
16603 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16604 fi
16605
16606 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16607 # the IncludeCustomExtension macro.
16608
16609
16610 # Check whether --with-custom-make-dir was given.
16611 if test "${with_custom_make_dir+set}" = set; then :
16612 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
16613 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16614 fi
16615
16616
16617
16618
16619 # These are needed to be able to create a configuration name (and thus the output directory)
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16622 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16623
16624 # Check whether --with-jdk-variant was given.
53271 pkgadd)
53272 pkgadd_help $MISSING_DEPENDENCY ;;
53273 esac
53274
53275 if test "x$PKGHANDLER_COMMAND" != x; then
53276 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
53277 fi
53278 fi
53279
53280 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
53281 else
53282 INCLUDE_DTRACE=true
53283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
53284 $as_echo "yes, forced" >&6; }
53285 fi
53286 elif test "x$enable_dtrace" = "xno"; then
53287 INCLUDE_DTRACE=false
53288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
53289 $as_echo "no, forced" >&6; }
53290 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
53291 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then
53292 INCLUDE_DTRACE=false
53293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
53294 $as_echo "no, missing dependencies" >&6; }
53295 else
53296 INCLUDE_DTRACE=true
53297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
53298 $as_echo "yes, dependencies present" >&6; }
53299 fi
53300 else
53301 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5
53302 fi
53303
53304
53305
53306 # The user can in some cases supply additional jvm features. For the custom
53307 # variant, this defines the entire variant.
53308
53309 # Check whether --with-jvm-features was given.
53310 if test "${with_jvm_features+set}" = set; then :
53311 withval=$with_jvm_features;
53550 # No X11 support on windows or macosx
53551 NEEDS_LIB_X11=false
53552 else
53553 if test "x$SUPPORT_HEADFUL" = xno; then
53554 # No X11 support if building headless-only
53555 NEEDS_LIB_X11=false
53556 else
53557 # All other instances need X11
53558 NEEDS_LIB_X11=true
53559 fi
53560 fi
53561
53562 # Check if cups is needed
53563 if test "x$OPENJDK_TARGET_OS" = xwindows; then
53564 # Windows have a separate print system
53565 NEEDS_LIB_CUPS=false
53566 else
53567 NEEDS_LIB_CUPS=true
53568 fi
53569
53570 # A custom hook may have set this already
53571 if test "x$NEEDS_LIB_FREETYPE" = "x"; then
53572 NEEDS_LIB_FREETYPE=true
53573 fi
53574
53575 # Check if alsa is needed
53576 if test "x$OPENJDK_TARGET_OS" = xlinux; then
53577 NEEDS_LIB_ALSA=true
53578 else
53579 NEEDS_LIB_ALSA=false
53580 fi
53581
53582 # Check if ffi is needed
53583 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then
53584 NEEDS_LIB_FFI=true
53585 else
53586 NEEDS_LIB_FFI=false
53587 fi
53588
53589
53590 # statically link libstdc++ before C++ ABI is stablized on Linux unless
53591 # dynamic build is configured on command line.
53592
|