685 LIBFFI_LIBS
686 LIBFFI_CFLAGS
687 ALSA_LIBS
688 ALSA_CFLAGS
689 FREETYPE_LICENSE
690 FREETYPE_BUNDLE_LIB_PATH
691 FREETYPE_LIBS
692 FREETYPE_CFLAGS
693 CUPS_CFLAGS
694 X_EXTRA_LIBS
695 X_LIBS
696 X_PRE_LIBS
697 X_CFLAGS
698 XMKMF
699 MSVCP_DLL
700 MSVCR_DLL
701 LIBCXX
702 FIXPATH_DETACH_FLAG
703 FIXPATH
704 BUILD_GTEST
705 ENABLE_AOT
706 GCOV_ENABLED
707 ZIP_EXTERNAL_DEBUG_SYMBOLS
708 COPY_DEBUG_SYMBOLS
709 COMPILE_WITH_DEBUG_SYMBOLS
710 CFLAGS_WARNINGS_ARE_ERRORS
711 BUILD_CC_DISABLE_WARNING_PREFIX
712 DISABLE_WARNING_PREFIX
713 WARNINGS_AS_ERRORS
714 COMPILER_SUPPORTS_TARGET_BITS_FLAG
715 LDFLAGS_TESTEXE
716 LDFLAGS_TESTLIB
717 CXXFLAGS_TESTEXE
718 CXXFLAGS_TESTLIB
719 CFLAGS_TESTEXE
720 CFLAGS_TESTLIB
721 OPENJDK_BUILD_JVM_LIBS
722 OPENJDK_BUILD_JVM_ASFLAGS
723 OPENJDK_BUILD_JVM_LDFLAGS
724 OPENJDK_BUILD_JVM_CFLAGS
1084 CONFIGURE_COMMAND_LINE
1085 target_alias
1086 host_alias
1087 build_alias
1088 LIBS
1089 ECHO_T
1090 ECHO_N
1091 ECHO_C
1092 DEFS
1093 mandir
1094 localedir
1095 libdir
1096 psdir
1097 pdfdir
1098 dvidir
1099 htmldir
1100 infodir
1101 docdir
1102 oldincludedir
1103 includedir
1104 localstatedir
1105 sharedstatedir
1106 sysconfdir
1107 datadir
1108 datarootdir
1109 libexecdir
1110 sbindir
1111 bindir
1112 program_transform_name
1113 prefix
1114 exec_prefix
1115 PACKAGE_URL
1116 PACKAGE_BUGREPORT
1117 PACKAGE_STRING
1118 PACKAGE_VERSION
1119 PACKAGE_TARNAME
1120 PACKAGE_NAME
1121 PATH_SEPARATOR
1122 SHELL'
1123 ac_subst_files=''
1174 with_import_hotspot
1175 with_import_modules
1176 enable_static_build
1177 with_toolchain_type
1178 with_extra_cflags
1179 with_extra_cxxflags
1180 with_extra_ldflags
1181 with_toolchain_version
1182 with_build_devkit
1183 with_jtreg
1184 with_jib
1185 with_abi_profile
1186 with_macosx_version_max
1187 enable_warnings_as_errors
1188 with_native_debug_symbols
1189 enable_debug_symbols
1190 enable_zip_debug_info
1191 enable_native_coverage
1192 enable_dtrace
1193 enable_aot
1194 enable_hotspot_gtest
1195 with_stdc__lib
1196 with_msvcr_dll
1197 with_msvcp_dll
1198 with_x
1199 with_cups
1200 with_cups_include
1201 with_freetype
1202 with_freetype_include
1203 with_freetype_lib
1204 with_freetype_src
1205 enable_freetype_bundling
1206 with_freetype_license
1207 with_alsa
1208 with_alsa_include
1209 with_alsa_lib
1210 with_libffi
1211 with_libffi_include
1212 with_libffi_lib
1213 enable_libffi_bundling
1373 site=
1374 srcdir=
1375 verbose=
1376 x_includes=NONE
1377 x_libraries=NONE
1378
1379 # Installation directory options.
1380 # These are left unexpanded so users can "make install exec_prefix=/foo"
1381 # and all the variables that are supposed to be based on exec_prefix
1382 # by default will actually change.
1383 # Use braces instead of parens because sh, perl, etc. also accept them.
1384 # (The list follows the same order as the GNU Coding Standards.)
1385 bindir='${exec_prefix}/bin'
1386 sbindir='${exec_prefix}/sbin'
1387 libexecdir='${exec_prefix}/libexec'
1388 datarootdir='${prefix}/share'
1389 datadir='${datarootdir}'
1390 sysconfdir='${prefix}/etc'
1391 sharedstatedir='${prefix}/com'
1392 localstatedir='${prefix}/var'
1393 includedir='${prefix}/include'
1394 oldincludedir='/usr/include'
1395 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1396 infodir='${datarootdir}/info'
1397 htmldir='${docdir}'
1398 dvidir='${docdir}'
1399 pdfdir='${docdir}'
1400 psdir='${docdir}'
1401 libdir='${exec_prefix}/lib'
1402 localedir='${datarootdir}/locale'
1403 mandir='${datarootdir}/man'
1404
1405 ac_prev=
1406 ac_dashdash=
1407 for ac_option
1408 do
1409 # If the previous option needs an argument, assign it.
1410 if test -n "$ac_prev"; then
1411 eval $ac_prev=\$ac_option
1412 ac_prev=
1625 | --program-transform=* | --program-transfor=* \
1626 | --program-transfo=* | --program-transf=* \
1627 | --program-trans=* | --program-tran=* \
1628 | --progr-tra=* | --program-tr=* | --program-t=*)
1629 program_transform_name=$ac_optarg ;;
1630
1631 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1632 ac_prev=pdfdir ;;
1633 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1634 pdfdir=$ac_optarg ;;
1635
1636 -psdir | --psdir | --psdi | --psd | --ps)
1637 ac_prev=psdir ;;
1638 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1639 psdir=$ac_optarg ;;
1640
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1643 silent=yes ;;
1644
1645 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1646 ac_prev=sbindir ;;
1647 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1648 | --sbi=* | --sb=*)
1649 sbindir=$ac_optarg ;;
1650
1651 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1652 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1653 | --sharedst | --shareds | --shared | --share | --shar \
1654 | --sha | --sh)
1655 ac_prev=sharedstatedir ;;
1656 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1657 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1658 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1659 | --sha=* | --sh=*)
1660 sharedstatedir=$ac_optarg ;;
1661
1662 -site | --site | --sit)
1663 ac_prev=site ;;
1664 -site=* | --site=* | --sit=*)
1762 esac
1763 done
1764
1765 if test -n "$ac_prev"; then
1766 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1767 as_fn_error $? "missing argument to $ac_option"
1768 fi
1769
1770 if test -n "$ac_unrecognized_opts"; then
1771 case $enable_option_checking in
1772 no) ;;
1773 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1774 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1775 esac
1776 fi
1777
1778 # Check all directory arguments for consistency.
1779 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1780 datadir sysconfdir sharedstatedir localstatedir includedir \
1781 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1782 libdir localedir mandir
1783 do
1784 eval ac_val=\$$ac_var
1785 # Remove trailing slashes.
1786 case $ac_val in
1787 */ )
1788 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1789 eval $ac_var=\$ac_val;;
1790 esac
1791 # Be sure to have absolute directory names.
1792 case $ac_val in
1793 [\\/$]* | ?:[\\/]* ) continue;;
1794 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1795 esac
1796 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1797 done
1798
1799 # There might be people who depend on the old broken behavior: `$host'
1800 # used to hold the argument of --host etc.
1801 # FIXME: To remove some day.
1802 build=$build_alias
1915 Installation directories:
1916 --prefix=PREFIX install architecture-independent files in PREFIX
1917 [$ac_default_prefix]
1918 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1919 [PREFIX]
1920
1921 By default, \`make install' will install all the files in
1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1924 for instance \`--prefix=\$HOME'.
1925
1926 For better control, use the options below.
1927
1928 Fine tuning of the installation directories:
1929 --bindir=DIR user executables [EPREFIX/bin]
1930 --sbindir=DIR system admin executables [EPREFIX/sbin]
1931 --libexecdir=DIR program executables [EPREFIX/libexec]
1932 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1933 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1934 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1935 --libdir=DIR object code libraries [EPREFIX/lib]
1936 --includedir=DIR C header files [PREFIX/include]
1937 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1938 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1939 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1940 --infodir=DIR info documentation [DATAROOTDIR/info]
1941 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1942 --mandir=DIR man documentation [DATAROOTDIR/man]
1943 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk]
1944 --htmldir=DIR html documentation [DOCDIR]
1945 --dvidir=DIR dvi documentation [DOCDIR]
1946 --pdfdir=DIR pdf documentation [DOCDIR]
1947 --psdir=DIR ps documentation [DOCDIR]
1948 _ACEOF
1949
1950 cat <<\_ACEOF
1951
1952 X features:
1953 --x-includes=DIR X include files are in DIR
1954 --x-libraries=DIR X library files are in DIR
1982 --disable-keep-packaged-modules
1983 Do not keep packaged modules in jdk image [enable]
1984 --enable-static-build enable static library build [disabled]
1985 --disable-warnings-as-errors
1986 do not consider native warnings to be an error
1987 [enabled]
1988 --enable-debug-symbols Deprecated. Option is kept for backwards
1989 compatibility and is ignored
1990 --enable-zip-debug-info Deprecated. Option is kept for backwards
1991 compatibility and is ignored
1992 --enable-native-coverage
1993 enable native compilation with code coverage
1994 data[disabled]
1995 --enable-dtrace[=yes/no/auto]
1996 enable dtrace. Default is auto, where dtrace is
1997 enabled if all dependencies are present.
1998 --enable-aot[=yes/no/auto]
1999 enable ahead of time compilation feature. Default is
2000 auto, where aot is enabled if all dependencies are
2001 present.
2002 --disable-hotspot-gtest Disables building of the Hotspot unit tests
2003 --disable-freetype-bundling
2004 disable bundling of the freetype library with the
2005 build result [enabled on Windows or when using
2006 --with-freetype, disabled otherwise]
2007 --enable-libffi-bundling
2008 enable bundling of libffi.so to make the built JDK
2009 runnable on more systems
2010 --enable-jtreg-failure-handler
2011 forces build of the jtreg failure handler to be
2012 enabled, missing dependencies become fatal errors.
2013 Default is auto, where the failure handler is built
2014 if all dependencies are present and otherwise just
2015 disabled.
2016 --disable-generate-classlist
2017 forces enabling or disabling of the generation of a
2018 CDS classlist at build time. Default is to generate
2019 it when either the server or client JVMs are built.
2020 --enable-sjavac use sjavac to do fast incremental compiles
2021 [disabled]
2022 --disable-javac-server disable javac server [enabled]
2023 --enable-icecc enable distribted compilation of native code using
2024 icecc/icecream [disabled]
2025 --disable-precompiled-headers
2026 disable using precompiled headers when compiling C++
2027 [enabled]
2028 --enable-ccache enable using ccache to speed up recompilations
2029 [disabled]
2030
2031 Optional Packages:
2032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2034 --with-target-bits build 32-bit or 64-bit binaries (for platforms that
2035 support it), e.g. --with-target-bits=32 [guessed]
2036 --with-custom-make-dir Deprecated. Option is kept for backwards
2037 compatibility and is ignored
2038 --with-jdk-variant JDK variant to build (normal) [normal]
2039 --with-debug-level set the debug level (release, fastdebug, slowdebug,
4328 # server: normal interpreter, and a tiered C1/C2 compiler
4329 # client: normal interpreter, and C1 (no C2 compiler)
4330 # minimal: reduced form of client with optional features stripped out
4331 # core: normal interpreter only, no compiler
4332 # zero: C++ based interpreter only, no compiler
4333 # zeroshark: C++ based interpreter, and a llvm-based compiler
4334 # custom: baseline JVM with no default features
4335 #
4336
4337
4338 ###############################################################################
4339 # Check if dtrace should be enabled and has all prerequisites present.
4340 #
4341
4342
4343 ################################################################################
4344 # Check if AOT should be enabled
4345 #
4346
4347
4348 ###############################################################################
4349 # Set up all JVM features for each JVM variant.
4350 #
4351
4352
4353 ###############################################################################
4354 # Validate JVM features once all setup is complete, including custom setup.
4355 #
4356
4357
4358 ################################################################################
4359 #
4360 # Specify which sources will be used to build the 64-bit ARM port
4361 #
4362 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm
4363 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4364 #
4365
4366
4367
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 # This line needs to be here, verbatim, after all includes and the dummy hook
5149 # definitions. It is replaced with custom functionality when building
5150 # custom sources.
5151 #CUSTOM_AUTOCONF_INCLUDE
5152
5153 # Do not change or remove the following line, it is needed for consistency checks:
5154 DATE_WHEN_GENERATED=1504187184
5155
5156 ###############################################################################
5157 #
5158 # Initialization / Boot-strapping
5159 #
5160 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5161 # thus it jumps back and forth, each time gaining something needed later on.
5162 #
5163 ###############################################################################
5164
5165 # If we are requested to print additional help, do that and then exit.
5166 # This must be the very first call.
5167
5168 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5169
5170 # Print available toolchains
5171 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5172 $PRINTF "Which are valid to use depends on the build platform.\n"
5173 for toolchain in $VALID_TOOLCHAINS_all; do
5174 # Use indirect variable referencing
54199 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
54200 fi
54201 fi
54202 else
54203 ENABLE_AOT="false"
54204 if test "x$enable_aot" = "xyes"; then
54205 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
54206 fi
54207 fi
54208 else
54209 ENABLE_AOT="false"
54210 if test "x$enable_aot" = "xyes"; then
54211 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5
54212 fi
54213 fi
54214 fi
54215
54216
54217
54218
54219 # Check whether --enable-hotspot-gtest was given.
54220 if test "${enable_hotspot_gtest+set}" = set; then :
54221 enableval=$enable_hotspot_gtest;
54222 fi
54223
54224
54225 if test -e "$HOTSPOT_TOPDIR/test/native"; then
54226 GTEST_DIR_EXISTS="true"
54227 else
54228 GTEST_DIR_EXISTS="false"
54229 fi
54230
54231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5
54232 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; }
54233 if test "x$enable_hotspot_gtest" = "xyes"; then
54234 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then
54235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
54236 $as_echo "yes, forced" >&6; }
54237 BUILD_GTEST="true"
54238 else
65839 JVM_FEATURES_aot="aot"
65840 else
65841 if test "x$enable_aot" = "xno"; then
65842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
65843 $as_echo "no, forced" >&6; }
65844 else
65845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65846 $as_echo "no" >&6; }
65847 fi
65848 JVM_FEATURES_aot=""
65849 fi
65850
65851 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
65852 # Default to use link time optimizations on minimal on arm
65853 JVM_FEATURES_link_time_opt="link-time-opt"
65854 else
65855 JVM_FEATURES_link_time_opt=""
65856 fi
65857
65858 # All variants but minimal (and custom) get these features
65859 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds"
65860
65861 # Enable features depending on variant.
65862 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
65863 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
65864 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
65865 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
65866 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
65867 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES"
65868 JVM_FEATURES_custom="$JVM_FEATURES"
65869
65870
65871
65872
65873
65874
65875
65876
65877
65878 # Used for verification of Makefiles by check-jvm-feature
65879
65943 else
65944 BUILD_FAILURE_HANDLER=true
65945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5
65946 $as_echo "yes, jtreg present" >&6; }
65947 fi
65948 else
65949 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5
65950 fi
65951
65952
65953
65954
65955 # Check whether --enable-generate-classlist was given.
65956 if test "${enable_generate_classlist+set}" = set; then :
65957 enableval=$enable_generate_classlist;
65958 fi
65959
65960
65961 # Check if it's likely that it's possible to generate the classlist. Depending
65962 # on exact jvm configuration it could be possible anyway.
65963 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then
65964 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true"
65965 else
65966 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false"
65967 fi
65968
65969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5
65970 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; }
65971 if test "x$enable_generate_classlist" = "xyes"; then
65972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
65973 $as_echo "yes, forced" >&6; }
65974 ENABLE_GENERATE_CLASSLIST="true"
65975 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
65976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5
65977 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;}
65978 fi
65979 elif test "x$enable_generate_classlist" = "xno"; then
65980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
65981 $as_echo "no, forced" >&6; }
65982 ENABLE_GENERATE_CLASSLIST="false"
65983 elif test "x$enable_generate_classlist" = "x"; then
65984 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
65985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65986 $as_echo "yes" >&6; }
65987 ENABLE_GENERATE_CLASSLIST="true"
65988 else
65989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65990 $as_echo "no" >&6; }
65991 ENABLE_GENERATE_CLASSLIST="false"
65992 fi
65993 else
65994 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5
65995 fi
65996
65997
|
685 LIBFFI_LIBS
686 LIBFFI_CFLAGS
687 ALSA_LIBS
688 ALSA_CFLAGS
689 FREETYPE_LICENSE
690 FREETYPE_BUNDLE_LIB_PATH
691 FREETYPE_LIBS
692 FREETYPE_CFLAGS
693 CUPS_CFLAGS
694 X_EXTRA_LIBS
695 X_LIBS
696 X_PRE_LIBS
697 X_CFLAGS
698 XMKMF
699 MSVCP_DLL
700 MSVCR_DLL
701 LIBCXX
702 FIXPATH_DETACH_FLAG
703 FIXPATH
704 BUILD_GTEST
705 ENABLE_CDS
706 ENABLE_AOT
707 GCOV_ENABLED
708 ZIP_EXTERNAL_DEBUG_SYMBOLS
709 COPY_DEBUG_SYMBOLS
710 COMPILE_WITH_DEBUG_SYMBOLS
711 CFLAGS_WARNINGS_ARE_ERRORS
712 BUILD_CC_DISABLE_WARNING_PREFIX
713 DISABLE_WARNING_PREFIX
714 WARNINGS_AS_ERRORS
715 COMPILER_SUPPORTS_TARGET_BITS_FLAG
716 LDFLAGS_TESTEXE
717 LDFLAGS_TESTLIB
718 CXXFLAGS_TESTEXE
719 CXXFLAGS_TESTLIB
720 CFLAGS_TESTEXE
721 CFLAGS_TESTLIB
722 OPENJDK_BUILD_JVM_LIBS
723 OPENJDK_BUILD_JVM_ASFLAGS
724 OPENJDK_BUILD_JVM_LDFLAGS
725 OPENJDK_BUILD_JVM_CFLAGS
1085 CONFIGURE_COMMAND_LINE
1086 target_alias
1087 host_alias
1088 build_alias
1089 LIBS
1090 ECHO_T
1091 ECHO_N
1092 ECHO_C
1093 DEFS
1094 mandir
1095 localedir
1096 libdir
1097 psdir
1098 pdfdir
1099 dvidir
1100 htmldir
1101 infodir
1102 docdir
1103 oldincludedir
1104 includedir
1105 runstatedir
1106 localstatedir
1107 sharedstatedir
1108 sysconfdir
1109 datadir
1110 datarootdir
1111 libexecdir
1112 sbindir
1113 bindir
1114 program_transform_name
1115 prefix
1116 exec_prefix
1117 PACKAGE_URL
1118 PACKAGE_BUGREPORT
1119 PACKAGE_STRING
1120 PACKAGE_VERSION
1121 PACKAGE_TARNAME
1122 PACKAGE_NAME
1123 PATH_SEPARATOR
1124 SHELL'
1125 ac_subst_files=''
1176 with_import_hotspot
1177 with_import_modules
1178 enable_static_build
1179 with_toolchain_type
1180 with_extra_cflags
1181 with_extra_cxxflags
1182 with_extra_ldflags
1183 with_toolchain_version
1184 with_build_devkit
1185 with_jtreg
1186 with_jib
1187 with_abi_profile
1188 with_macosx_version_max
1189 enable_warnings_as_errors
1190 with_native_debug_symbols
1191 enable_debug_symbols
1192 enable_zip_debug_info
1193 enable_native_coverage
1194 enable_dtrace
1195 enable_aot
1196 enable_cds
1197 enable_hotspot_gtest
1198 with_stdc__lib
1199 with_msvcr_dll
1200 with_msvcp_dll
1201 with_x
1202 with_cups
1203 with_cups_include
1204 with_freetype
1205 with_freetype_include
1206 with_freetype_lib
1207 with_freetype_src
1208 enable_freetype_bundling
1209 with_freetype_license
1210 with_alsa
1211 with_alsa_include
1212 with_alsa_lib
1213 with_libffi
1214 with_libffi_include
1215 with_libffi_lib
1216 enable_libffi_bundling
1376 site=
1377 srcdir=
1378 verbose=
1379 x_includes=NONE
1380 x_libraries=NONE
1381
1382 # Installation directory options.
1383 # These are left unexpanded so users can "make install exec_prefix=/foo"
1384 # and all the variables that are supposed to be based on exec_prefix
1385 # by default will actually change.
1386 # Use braces instead of parens because sh, perl, etc. also accept them.
1387 # (The list follows the same order as the GNU Coding Standards.)
1388 bindir='${exec_prefix}/bin'
1389 sbindir='${exec_prefix}/sbin'
1390 libexecdir='${exec_prefix}/libexec'
1391 datarootdir='${prefix}/share'
1392 datadir='${datarootdir}'
1393 sysconfdir='${prefix}/etc'
1394 sharedstatedir='${prefix}/com'
1395 localstatedir='${prefix}/var'
1396 runstatedir='${localstatedir}/run'
1397 includedir='${prefix}/include'
1398 oldincludedir='/usr/include'
1399 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1400 infodir='${datarootdir}/info'
1401 htmldir='${docdir}'
1402 dvidir='${docdir}'
1403 pdfdir='${docdir}'
1404 psdir='${docdir}'
1405 libdir='${exec_prefix}/lib'
1406 localedir='${datarootdir}/locale'
1407 mandir='${datarootdir}/man'
1408
1409 ac_prev=
1410 ac_dashdash=
1411 for ac_option
1412 do
1413 # If the previous option needs an argument, assign it.
1414 if test -n "$ac_prev"; then
1415 eval $ac_prev=\$ac_option
1416 ac_prev=
1629 | --program-transform=* | --program-transfor=* \
1630 | --program-transfo=* | --program-transf=* \
1631 | --program-trans=* | --program-tran=* \
1632 | --progr-tra=* | --program-tr=* | --program-t=*)
1633 program_transform_name=$ac_optarg ;;
1634
1635 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1636 ac_prev=pdfdir ;;
1637 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1638 pdfdir=$ac_optarg ;;
1639
1640 -psdir | --psdir | --psdi | --psd | --ps)
1641 ac_prev=psdir ;;
1642 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1643 psdir=$ac_optarg ;;
1644
1645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1646 | -silent | --silent | --silen | --sile | --sil)
1647 silent=yes ;;
1648
1649 -runstatedir | --runstatedir | --runstatedi | --runstated \
1650 | --runstate | --runstat | --runsta | --runst | --runs \
1651 | --run | --ru | --r)
1652 ac_prev=runstatedir ;;
1653 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1654 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1655 | --run=* | --ru=* | --r=*)
1656 runstatedir=$ac_optarg ;;
1657
1658 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1659 ac_prev=sbindir ;;
1660 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1661 | --sbi=* | --sb=*)
1662 sbindir=$ac_optarg ;;
1663
1664 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1665 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1666 | --sharedst | --shareds | --shared | --share | --shar \
1667 | --sha | --sh)
1668 ac_prev=sharedstatedir ;;
1669 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1670 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1671 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1672 | --sha=* | --sh=*)
1673 sharedstatedir=$ac_optarg ;;
1674
1675 -site | --site | --sit)
1676 ac_prev=site ;;
1677 -site=* | --site=* | --sit=*)
1775 esac
1776 done
1777
1778 if test -n "$ac_prev"; then
1779 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1780 as_fn_error $? "missing argument to $ac_option"
1781 fi
1782
1783 if test -n "$ac_unrecognized_opts"; then
1784 case $enable_option_checking in
1785 no) ;;
1786 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1787 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1788 esac
1789 fi
1790
1791 # Check all directory arguments for consistency.
1792 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1793 datadir sysconfdir sharedstatedir localstatedir includedir \
1794 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1795 libdir localedir mandir runstatedir
1796 do
1797 eval ac_val=\$$ac_var
1798 # Remove trailing slashes.
1799 case $ac_val in
1800 */ )
1801 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1802 eval $ac_var=\$ac_val;;
1803 esac
1804 # Be sure to have absolute directory names.
1805 case $ac_val in
1806 [\\/$]* | ?:[\\/]* ) continue;;
1807 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1808 esac
1809 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1810 done
1811
1812 # There might be people who depend on the old broken behavior: `$host'
1813 # used to hold the argument of --host etc.
1814 # FIXME: To remove some day.
1815 build=$build_alias
1928 Installation directories:
1929 --prefix=PREFIX install architecture-independent files in PREFIX
1930 [$ac_default_prefix]
1931 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1932 [PREFIX]
1933
1934 By default, \`make install' will install all the files in
1935 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1936 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1937 for instance \`--prefix=\$HOME'.
1938
1939 For better control, use the options below.
1940
1941 Fine tuning of the installation directories:
1942 --bindir=DIR user executables [EPREFIX/bin]
1943 --sbindir=DIR system admin executables [EPREFIX/sbin]
1944 --libexecdir=DIR program executables [EPREFIX/libexec]
1945 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1946 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1947 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1948 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1949 --libdir=DIR object code libraries [EPREFIX/lib]
1950 --includedir=DIR C header files [PREFIX/include]
1951 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1952 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1953 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1954 --infodir=DIR info documentation [DATAROOTDIR/info]
1955 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1956 --mandir=DIR man documentation [DATAROOTDIR/man]
1957 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk]
1958 --htmldir=DIR html documentation [DOCDIR]
1959 --dvidir=DIR dvi documentation [DOCDIR]
1960 --pdfdir=DIR pdf documentation [DOCDIR]
1961 --psdir=DIR ps documentation [DOCDIR]
1962 _ACEOF
1963
1964 cat <<\_ACEOF
1965
1966 X features:
1967 --x-includes=DIR X include files are in DIR
1968 --x-libraries=DIR X library files are in DIR
1996 --disable-keep-packaged-modules
1997 Do not keep packaged modules in jdk image [enable]
1998 --enable-static-build enable static library build [disabled]
1999 --disable-warnings-as-errors
2000 do not consider native warnings to be an error
2001 [enabled]
2002 --enable-debug-symbols Deprecated. Option is kept for backwards
2003 compatibility and is ignored
2004 --enable-zip-debug-info Deprecated. Option is kept for backwards
2005 compatibility and is ignored
2006 --enable-native-coverage
2007 enable native compilation with code coverage
2008 data[disabled]
2009 --enable-dtrace[=yes/no/auto]
2010 enable dtrace. Default is auto, where dtrace is
2011 enabled if all dependencies are present.
2012 --enable-aot[=yes/no/auto]
2013 enable ahead of time compilation feature. Default is
2014 auto, where aot is enabled if all dependencies are
2015 present.
2016 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM.
2017 Default is yes.
2018 --disable-hotspot-gtest Disables building of the Hotspot unit tests
2019 --disable-freetype-bundling
2020 disable bundling of the freetype library with the
2021 build result [enabled on Windows or when using
2022 --with-freetype, disabled otherwise]
2023 --enable-libffi-bundling
2024 enable bundling of libffi.so to make the built JDK
2025 runnable on more systems
2026 --enable-jtreg-failure-handler
2027 forces build of the jtreg failure handler to be
2028 enabled, missing dependencies become fatal errors.
2029 Default is auto, where the failure handler is built
2030 if all dependencies are present and otherwise just
2031 disabled.
2032 --disable-generate-classlist
2033 forces enabling or disabling of the generation of a
2034 CDS classlist at build time. Default is to generate
2035 it when either the server or client JVMs are built
2036 and enable-cds is true.
2037 --enable-sjavac use sjavac to do fast incremental compiles
2038 [disabled]
2039 --disable-javac-server disable javac server [enabled]
2040 --enable-icecc enable distribted compilation of native code using
2041 icecc/icecream [disabled]
2042 --disable-precompiled-headers
2043 disable using precompiled headers when compiling C++
2044 [enabled]
2045 --enable-ccache enable using ccache to speed up recompilations
2046 [disabled]
2047
2048 Optional Packages:
2049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2051 --with-target-bits build 32-bit or 64-bit binaries (for platforms that
2052 support it), e.g. --with-target-bits=32 [guessed]
2053 --with-custom-make-dir Deprecated. Option is kept for backwards
2054 compatibility and is ignored
2055 --with-jdk-variant JDK variant to build (normal) [normal]
2056 --with-debug-level set the debug level (release, fastdebug, slowdebug,
4345 # server: normal interpreter, and a tiered C1/C2 compiler
4346 # client: normal interpreter, and C1 (no C2 compiler)
4347 # minimal: reduced form of client with optional features stripped out
4348 # core: normal interpreter only, no compiler
4349 # zero: C++ based interpreter only, no compiler
4350 # zeroshark: C++ based interpreter, and a llvm-based compiler
4351 # custom: baseline JVM with no default features
4352 #
4353
4354
4355 ###############################################################################
4356 # Check if dtrace should be enabled and has all prerequisites present.
4357 #
4358
4359
4360 ################################################################################
4361 # Check if AOT should be enabled
4362 #
4363
4364
4365 ################################################################################
4366 # Allow to disable CDS
4367 #
4368
4369
4370 ###############################################################################
4371 # Set up all JVM features for each JVM variant.
4372 #
4373
4374
4375 ###############################################################################
4376 # Validate JVM features once all setup is complete, including custom setup.
4377 #
4378
4379
4380 ################################################################################
4381 #
4382 # Specify which sources will be used to build the 64-bit ARM port
4383 #
4384 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm
4385 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4386 #
4387
4388
4389
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 # This line needs to be here, verbatim, after all includes and the dummy hook
5171 # definitions. It is replaced with custom functionality when building
5172 # custom sources.
5173 #CUSTOM_AUTOCONF_INCLUDE
5174
5175 # Do not change or remove the following line, it is needed for consistency checks:
5176 DATE_WHEN_GENERATED=1504189759
5177
5178 ###############################################################################
5179 #
5180 # Initialization / Boot-strapping
5181 #
5182 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5183 # thus it jumps back and forth, each time gaining something needed later on.
5184 #
5185 ###############################################################################
5186
5187 # If we are requested to print additional help, do that and then exit.
5188 # This must be the very first call.
5189
5190 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5191
5192 # Print available toolchains
5193 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5194 $PRINTF "Which are valid to use depends on the build platform.\n"
5195 for toolchain in $VALID_TOOLCHAINS_all; do
5196 # Use indirect variable referencing
54221 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
54222 fi
54223 fi
54224 else
54225 ENABLE_AOT="false"
54226 if test "x$enable_aot" = "xyes"; then
54227 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
54228 fi
54229 fi
54230 else
54231 ENABLE_AOT="false"
54232 if test "x$enable_aot" = "xyes"; then
54233 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5
54234 fi
54235 fi
54236 fi
54237
54238
54239
54240
54241 # Check whether --enable-cds was given.
54242 if test "${enable_cds+set}" = set; then :
54243 enableval=$enable_cds;
54244 fi
54245
54246
54247 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then
54248 ENABLE_CDS="true"
54249 elif test "x$enable_cds" = "xno"; then
54250 ENABLE_CDS="false"
54251 else
54252 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5
54253 fi
54254
54255
54256
54257
54258 # Check whether --enable-hotspot-gtest was given.
54259 if test "${enable_hotspot_gtest+set}" = set; then :
54260 enableval=$enable_hotspot_gtest;
54261 fi
54262
54263
54264 if test -e "$HOTSPOT_TOPDIR/test/native"; then
54265 GTEST_DIR_EXISTS="true"
54266 else
54267 GTEST_DIR_EXISTS="false"
54268 fi
54269
54270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5
54271 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; }
54272 if test "x$enable_hotspot_gtest" = "xyes"; then
54273 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then
54274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
54275 $as_echo "yes, forced" >&6; }
54276 BUILD_GTEST="true"
54277 else
65878 JVM_FEATURES_aot="aot"
65879 else
65880 if test "x$enable_aot" = "xno"; then
65881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
65882 $as_echo "no, forced" >&6; }
65883 else
65884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65885 $as_echo "no" >&6; }
65886 fi
65887 JVM_FEATURES_aot=""
65888 fi
65889
65890 if test "x$OPENJDK_TARGET_CPU" = xarm ; then
65891 # Default to use link time optimizations on minimal on arm
65892 JVM_FEATURES_link_time_opt="link-time-opt"
65893 else
65894 JVM_FEATURES_link_time_opt=""
65895 fi
65896
65897 # All variants but minimal (and custom) get these features
65898 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt"
65899 if test "x$ENABLE_CDS" = "xtrue"; then
65900 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
65901 fi
65902
65903 # Enable features depending on variant.
65904 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
65905 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
65906 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
65907 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
65908 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
65909 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES"
65910 JVM_FEATURES_custom="$JVM_FEATURES"
65911
65912
65913
65914
65915
65916
65917
65918
65919
65920 # Used for verification of Makefiles by check-jvm-feature
65921
65985 else
65986 BUILD_FAILURE_HANDLER=true
65987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5
65988 $as_echo "yes, jtreg present" >&6; }
65989 fi
65990 else
65991 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5
65992 fi
65993
65994
65995
65996
65997 # Check whether --enable-generate-classlist was given.
65998 if test "${enable_generate_classlist+set}" = set; then :
65999 enableval=$enable_generate_classlist;
66000 fi
66001
66002
66003 # Check if it's likely that it's possible to generate the classlist. Depending
66004 # on exact jvm configuration it could be possible anyway.
66005 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then
66006 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true"
66007 else
66008 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false"
66009 fi
66010
66011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5
66012 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; }
66013 if test "x$enable_generate_classlist" = "xyes"; then
66014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
66015 $as_echo "yes, forced" >&6; }
66016 ENABLE_GENERATE_CLASSLIST="true"
66017 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
66018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&5
66019 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;}
66020 fi
66021 elif test "x$enable_generate_classlist" = "xno"; then
66022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
66023 $as_echo "no, forced" >&6; }
66024 ENABLE_GENERATE_CLASSLIST="false"
66025 elif test "x$enable_generate_classlist" = "x"; then
66026 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
66027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66028 $as_echo "yes" >&6; }
66029 ENABLE_GENERATE_CLASSLIST="true"
66030 else
66031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66032 $as_echo "no" >&6; }
66033 ENABLE_GENERATE_CLASSLIST="false"
66034 fi
66035 else
66036 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5
66037 fi
66038
66039
|