common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 102716_hs Sdiff common/autoconf

common/autoconf/generated-configure.sh

Print this page




 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC










 657 STLPORT_LIB
 658 LIBZIP_CAN_USE_MMAP
 659 LIBDL
 660 LIBM
 661 USE_EXTERNAL_LCMS
 662 LCMS_LIBS
 663 LCMS_CFLAGS
 664 USE_EXTERNAL_LIBZ
 665 USE_EXTERNAL_LIBPNG
 666 PNG_LIBS
 667 PNG_CFLAGS
 668 USE_EXTERNAL_LIBGIF
 669 USE_EXTERNAL_LIBJPEG
 670 LLVM_LIBS
 671 LLVM_LDFLAGS
 672 LLVM_CFLAGS
 673 LLVM_CONFIG
 674 LIBFFI_LIBS
 675 LIBFFI_CFLAGS
 676 ALSA_LIBS
 677 ALSA_CFLAGS
 678 FREETYPE_BUNDLE_LIB_PATH
 679 FREETYPE_LIBS
 680 FREETYPE_CFLAGS
 681 CUPS_CFLAGS
 682 X_EXTRA_LIBS
 683 X_LIBS
 684 X_PRE_LIBS
 685 X_CFLAGS
 686 XMKMF
 687 MSVCP_DLL
 688 MSVCR_DLL
 689 LIBCXX
 690 FIXPATH_DETACH_FLAG
 691 FIXPATH
 692 BUILD_GTEST
 693 VALID_JVM_FEATURES
 694 JVM_FEATURES_custom
 695 JVM_FEATURES_zeroshark
 696 JVM_FEATURES_zero
 697 JVM_FEATURES_minimal
 698 JVM_FEATURES_core
 699 JVM_FEATURES_client
 700 JVM_FEATURES_server
 701 INCLUDE_DTRACE
 702 GCOV_ENABLED
 703 STRIP_POLICY
 704 DEBUG_BINARIES
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 HOTSPOT_SET_WARNINGS_AS_ERRORS
 712 WARNINGS_AS_ERRORS
 713 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 714 ZERO_ARCHFLAG
 715 LDFLAGS_TESTEXE
 716 LDFLAGS_TESTLIB
 717 CXXFLAGS_TESTEXE
 718 CXXFLAGS_TESTLIB
 719 CFLAGS_TESTEXE
 720 CFLAGS_TESTLIB


1178 with_override_jaxws
1179 with_override_hotspot
1180 with_override_nashorn
1181 with_override_jdk
1182 with_import_hotspot
1183 with_import_modules
1184 enable_static_build
1185 with_toolchain_type
1186 with_extra_cflags
1187 with_extra_cxxflags
1188 with_extra_ldflags
1189 with_toolchain_version
1190 with_build_devkit
1191 with_jtreg
1192 enable_warnings_as_errors
1193 with_native_debug_symbols
1194 enable_debug_symbols
1195 enable_zip_debug_info
1196 enable_native_coverage
1197 enable_dtrace
1198 with_jvm_features
1199 with_jvm_interpreter
1200 enable_hotspot_gtest
1201 with_stdc__lib
1202 with_msvcr_dll
1203 with_msvcp_dll
1204 with_x
1205 with_cups
1206 with_cups_include
1207 with_freetype
1208 with_freetype_include
1209 with_freetype_lib
1210 with_freetype_src
1211 enable_freetype_bundling
1212 with_alsa
1213 with_alsa_include
1214 with_alsa_lib
1215 with_libffi
1216 with_libffi_include
1217 with_libffi_lib
1218 with_libjpeg
1219 with_giflib
1220 with_libpng
1221 with_zlib
1222 with_lcms
1223 with_dxsdk
1224 with_dxsdk_lib
1225 with_dxsdk_include





1226 enable_jtreg_failure_handler
1227 enable_generate_classlist
1228 with_num_cores
1229 with_memory_size
1230 with_jobs
1231 with_test_jobs
1232 with_boot_jdk_jvmargs
1233 with_sjavac_server_java
1234 enable_sjavac
1235 enable_javac_server
1236 enable_icecc
1237 enable_precompiled_headers
1238 enable_ccache
1239 with_ccache_dir
1240 '
1241       ac_precious_vars='build_alias
1242 host_alias
1243 target_alias
1244 BASENAME
1245 BASH


1330 OBJCOPY
1331 OBJDUMP
1332 BUILD_CC
1333 BUILD_CXX
1334 BUILD_NM
1335 BUILD_AR
1336 BUILD_OBJCOPY
1337 BUILD_STRIP
1338 JTREGEXE
1339 XMKMF
1340 FREETYPE_CFLAGS
1341 FREETYPE_LIBS
1342 ALSA_CFLAGS
1343 ALSA_LIBS
1344 LIBFFI_CFLAGS
1345 LIBFFI_LIBS
1346 PNG_CFLAGS
1347 PNG_LIBS
1348 LCMS_CFLAGS
1349 LCMS_LIBS


1350 ICECC_CMD
1351 ICECC_CREATE_ENV
1352 ICECC_WRAPPER
1353 CCACHE'
1354 
1355 
1356 # Initialize some variables set by options.
1357 ac_init_help=
1358 ac_init_version=false
1359 ac_unrecognized_opts=
1360 ac_unrecognized_sep=
1361 # The variables have the same names as the options, with
1362 # dashes changed to underlines.
1363 cache_file=/dev/null
1364 exec_prefix=NONE
1365 no_create=
1366 no_recursion=
1367 prefix=NONE
1368 program_prefix=NONE
1369 program_suffix=NONE


1975                           --with-debug-level=fastdebug) [disabled]
1976   --enable-headless-only  only build headless (no GUI) support [disabled]
1977   --enable-unlimited-crypto
1978                           Enable unlimited crypto policy [disabled]
1979   --disable-keep-packaged-modules
1980                           Do not keep packaged modules in jdk image [enable]
1981   --enable-static-build   enable static library build [disabled]
1982   --disable-warnings-as-errors
1983                           do not consider native warnings to be an error
1984                           [enabled]
1985   --enable-debug-symbols  Deprecated. Option is kept for backwards
1986                           compatibility and is ignored
1987   --enable-zip-debug-info Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --enable-native-coverage
1990                           enable native compilation with code coverage
1991                           data[disabled]
1992   --enable-dtrace[=yes/no/auto]
1993                           enable dtrace. Default is auto, where dtrace is
1994                           enabled if all dependencies are present.




1995   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1996   --disable-freetype-bundling
1997                           disable bundling of the freetype library with the
1998                           build result [enabled on Windows or when using
1999                           --with-freetype, disabled otherwise]
2000   --enable-jtreg-failure-handler
2001                           forces build of the jtreg failure handler to be
2002                           enabled, missing dependencies become fatal errors.
2003                           Default is auto, where the failure handler is built
2004                           if all dependencies are present and otherwise just
2005                           disabled.
2006   --disable-generate-classlist
2007                           forces enabling or disabling of the generation of a
2008                           CDS classlist at build time. Default is to generate
2009                           it when either the server or client JVMs are built.
2010   --enable-sjavac         use sjavac to do fast incremental compiles
2011                           [disabled]
2012   --disable-javac-server  disable javac server [enabled]
2013   --enable-icecc          enable distribted compilation of native code using
2014                           icecc/icecream [disabled]


2100                           compatibility and is ignored
2101   --with-import-hotspot   import hotspot binaries from this jdk image or
2102                           hotspot build dist dir instead of building from
2103                           source
2104   --with-import-modules   import a set of prebuilt modules either as a zip
2105                           file or an exploded directory
2106   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2107                           to show possible values [platform dependent]
2108   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2109   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2110   --with-extra-ldflags    extra flags to be used when linking jdk
2111   --with-toolchain-version
2112                           the version of the toolchain to look for, use
2113                           '--help' to show possible values [platform
2114                           dependent]
2115   --with-build-devkit     Devkit to use for the build platform toolchain
2116   --with-jtreg            Regression Test Harness [probed]
2117   --with-native-debug-symbols
2118                           set the native debug symbol configuration (none,
2119                           internal, external, zipped) [varying]
2120   --with-jvm-features     additional JVM features to enable (separated by
2121                           comma), use '--help' to show possible values [none]
2122   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2123                           compatibility and is ignored
2124   --with-stdc++lib=<static>,<dynamic>,<default>
2125                           force linking of the C++ runtime on Linux to either
2126                           static or dynamic, default is static with dynamic as
2127                           fallback
2128   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2129                           (Windows only) [probed]
2130   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2131                           (Windows only) [probed]
2132   --with-x                use the X Window System
2133   --with-cups             specify prefix directory for the cups package
2134                           (expecting the headers under PATH/include)
2135   --with-cups-include     specify directory for the cups include files
2136   --with-freetype         specify prefix directory for the freetype package
2137                           (expecting the libraries under PATH/lib and the
2138                           headers under PATH/include)
2139   --with-freetype-include specify directory for the freetype include files
2140   --with-freetype-lib     specify directory for the freetype library
2141   --with-freetype-src     specify directory with freetype sources to
2142                           automatically build the library (experimental,
2143                           Windows-only)


2150                           (expecting the libraries under PATH/lib and the
2151                           headers under PATH/include)
2152   --with-libffi-include   specify directory for the libffi include files
2153   --with-libffi-lib       specify directory for the libffi library
2154   --with-libjpeg          use libjpeg from build system or OpenJDK source
2155                           (system, bundled) [bundled]
2156   --with-giflib           use giflib from build system or OpenJDK source
2157                           (system, bundled) [bundled]
2158   --with-libpng           use libpng from build system or OpenJDK source
2159                           (system, bundled) [bundled]
2160   --with-zlib             use zlib from build system or OpenJDK source
2161                           (system, bundled) [bundled]
2162   --with-lcms             use lcms2 from build system or OpenJDK source
2163                           (system, bundled) [bundled]
2164   --with-dxsdk            Deprecated. Option is kept for backwards
2165                           compatibility and is ignored
2166   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2167                           compatibility and is ignored
2168   --with-dxsdk-include    Deprecated. Option is kept for backwards
2169                           compatibility and is ignored









2170   --with-num-cores        number of cores in the build system, e.g.
2171                           --with-num-cores=8 [probed]
2172   --with-memory-size      memory (in MB) available in the build system, e.g.
2173                           --with-memory-size=1024 [probed]
2174   --with-jobs             number of parallel jobs to let make run [calculated
2175                           based on cores and memory]
2176   --with-test-jobs        number of parallel tests jobs to run [based on build
2177                           jobs]
2178   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2179                           invocations of boot JDK, overriding the default
2180                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2181                           -enableassertions"
2182   --with-sjavac-server-java
2183                           use this java binary for running the sjavac
2184                           background server [Boot JDK java]
2185   --with-ccache-dir       where to store ccache files [~/.ccache]
2186 
2187 Some influential environment variables:
2188   BASENAME    Override default value for BASENAME
2189   BASH        Override default value for BASH


2279   BUILD_NM    Override default value for BUILD_NM
2280   BUILD_AR    Override default value for BUILD_AR
2281   BUILD_OBJCOPY
2282               Override default value for BUILD_OBJCOPY
2283   BUILD_STRIP Override default value for BUILD_STRIP
2284   JTREGEXE    Override default value for JTREGEXE
2285   XMKMF       Path to xmkmf, Makefile generator for X Window System
2286   FREETYPE_CFLAGS
2287               C compiler flags for FREETYPE, overriding pkg-config
2288   FREETYPE_LIBS
2289               linker flags for FREETYPE, overriding pkg-config
2290   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2291   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2292   LIBFFI_CFLAGS
2293               C compiler flags for LIBFFI, overriding pkg-config
2294   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2295   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2296   PNG_LIBS    linker flags for PNG, overriding pkg-config
2297   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2298   LCMS_LIBS   linker flags for LCMS, overriding pkg-config


2299   ICECC_CMD   Override default value for ICECC_CMD
2300   ICECC_CREATE_ENV
2301               Override default value for ICECC_CREATE_ENV
2302   ICECC_WRAPPER
2303               Override default value for ICECC_WRAPPER
2304   CCACHE      Override default value for CCACHE
2305 
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2308 
2309 Report bugs to <build-dev@openjdk.java.net>.
2310 OpenJDK home page: <http://openjdk.java.net>.
2311 _ACEOF
2312 ac_status=$?
2313 fi
2314 
2315 if test "$ac_init_help" = "recursive"; then
2316   # If there are subdirs, report their specific --help.
2317   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318     test -d "$ac_dir" ||


4166     reduced)
4167       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4168     devkit)
4169       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4170     openjdk)
4171       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4172     alsa)
4173       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4174     cups)
4175       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4176     freetype)
4177       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4178     ffi)
4179       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4180     x11)
4181       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4182     ccache)
4183       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4184     dtrace)
4185       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;


4186   esac
4187 }
4188 
4189 yum_help() {
4190   case $1 in
4191     devkit)
4192       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4193     openjdk)
4194       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4195     alsa)
4196       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4197     cups)
4198       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4199     freetype)
4200       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4201     x11)
4202       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4203     ccache)
4204       PKGHANDLER_COMMAND="sudo yum install ccache" ;;


4205   esac
4206 }
4207 
4208 port_help() {
4209   PKGHANDLER_COMMAND=""
4210 }
4211 
4212 pkgutil_help() {
4213   PKGHANDLER_COMMAND=""
4214 }
4215 
4216 pkgadd_help() {
4217   PKGHANDLER_COMMAND=""
4218 }
4219 
4220 # This function will check if we're called from the "configure" wrapper while
4221 # printing --help. If so, we will print out additional information that can
4222 # only be extracted within the autoconf script, and then exit. This must be
4223 # called at the very beginning in configure.ac.
4224 


4237 # particular file as subject to the "Classpath" exception as provided
4238 # by Oracle in the LICENSE file that accompanied this code.
4239 #
4240 # This code is distributed in the hope that it will be useful, but WITHOUT
4241 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4242 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4243 # version 2 for more details (a copy is included in the LICENSE file that
4244 # accompanied this code).
4245 #
4246 # You should have received a copy of the GNU General Public License version
4247 # 2 along with this work; if not, write to the Free Software Foundation,
4248 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4249 #
4250 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4251 # or visit www.oracle.com if you need additional information or have any
4252 # questions.
4253 #
4254 
4255 # All valid JVM features, regardless of platform
4256 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4257     fprof vm-structs jni-check services management all-gcs nmt cds static-build"
4258 
4259 # All valid JVM variants
4260 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4261 
4262 ###############################################################################
4263 # Check if the specified JVM variant should be built. To be used in shell if
4264 # constructs, like this:
4265 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4266 #
4267 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4268 
4269 # Definition kept in one line to allow inlining in if statements.
4270 # Additional [] needed to keep m4 from mangling shell constructs.
4271 
4272 
4273 ###############################################################################
4274 # Check if the specified JVM features are explicitly enabled. To be used in
4275 # shell if constructs, like this:
4276 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4277 #


4281 # Additional [] needed to keep m4 from mangling shell constructs.
4282 
4283 
4284 ###############################################################################
4285 # Check which variants of the JVM that we want to build. Available variants are:
4286 #   server: normal interpreter, and a tiered C1/C2 compiler
4287 #   client: normal interpreter, and C1 (no C2 compiler)
4288 #   minimal: reduced form of client with optional features stripped out
4289 #   core: normal interpreter only, no compiler
4290 #   zero: C++ based interpreter only, no compiler
4291 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4292 #   custom: baseline JVM with no default features
4293 #
4294 
4295 
4296 ###############################################################################
4297 # Check if dtrace should be enabled and has all prerequisites present.
4298 #
4299 
4300 





4301 ###############################################################################
4302 # Set up all JVM features for each JVM variant.
4303 #
4304 
4305 
4306 ###############################################################################
4307 # Validate JVM features once all setup is complete, including custom setup.
4308 #
4309 
4310 
4311 ################################################################################
4312 # Check if gtest should be built
4313 #
4314 
4315 
4316 #
4317 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4318 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4319 #
4320 # This code is free software; you can redistribute it and/or modify it


4704 # This code is distributed in the hope that it will be useful, but WITHOUT
4705 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4706 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4707 # version 2 for more details (a copy is included in the LICENSE file that
4708 # accompanied this code).
4709 #
4710 # You should have received a copy of the GNU General Public License version
4711 # 2 along with this work; if not, write to the Free Software Foundation,
4712 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4713 #
4714 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4715 # or visit www.oracle.com if you need additional information or have any
4716 # questions.
4717 #
4718 
4719 ################################################################################
4720 # Setup X11 Windows system
4721 ################################################################################
4722 
4723 






























4724 
4725 ################################################################################
4726 # Determine which libraries are needed for this configuration
4727 ################################################################################
4728 
4729 
4730 ################################################################################
4731 # Parse library options, and setup needed libraries
4732 ################################################################################
4733 
4734 
4735 ################################################################################
4736 # Setup llvm (Low-Level VM)
4737 ################################################################################
4738 
4739 
4740 ################################################################################
4741 # Setup various libraries, typically small system libraries
4742 ################################################################################
4743 


5076 
5077 
5078 
5079 
5080 
5081 
5082 
5083 
5084 
5085 
5086 
5087 
5088 
5089 
5090 # This line needs to be here, verbatim, after all includes and the dummy hook
5091 # definitions. It is replaced with custom functionality when building
5092 # custom sources.
5093 #CUSTOM_AUTOCONF_INCLUDE
5094 
5095 # Do not change or remove the following line, it is needed for consistency checks:
5096 DATE_WHEN_GENERATED=1476374246
5097 
5098 ###############################################################################
5099 #
5100 # Initialization / Boot-strapping
5101 #
5102 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5103 # thus it jumps back and forth, each time gaining something needed later on.
5104 #
5105 ###############################################################################
5106 
5107 # If we are requested to print additional help, do that and then exit.
5108 # This must be the very first call.
5109 
5110   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5111 
5112     # Print available toolchains
5113     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5114     $PRINTF "Which are valid to use depends on the build platform.\n"
5115     for toolchain in $VALID_TOOLCHAINS_all; do
5116       # Use indirect variable referencing


52793   elif test "x$enable_dtrace" = "xno"; then
52794     INCLUDE_DTRACE=false
52795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
52796 $as_echo "no, forced" >&6; }
52797   elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
52798     if test "x$DTRACE_DEP_MISSING" = "xtrue"; then
52799       INCLUDE_DTRACE=false
52800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
52801 $as_echo "no, missing dependencies" >&6; }
52802     else
52803       INCLUDE_DTRACE=true
52804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
52805 $as_echo "yes, dependencies present" >&6; }
52806     fi
52807   else
52808     as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5
52809   fi
52810 
52811 
52812 
52813   # The user can in some cases supply additional jvm features. For the custom
52814   # variant, this defines the entire variant.
52815 
52816 # Check whether --with-jvm-features was given.
52817 if test "${with_jvm_features+set}" = set; then :
52818   withval=$with_jvm_features;
52819 fi
52820 
52821   if test "x$with_jvm_features" != x; then
52822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5
52823 $as_echo_n "checking additional JVM features... " >&6; }
52824     JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
52825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5
52826 $as_echo "$JVM_FEATURES" >&6; }
52827   fi
52828 
52829   # Verify that dependencies are met for explicitly set features.
52830   if   [[ " $JVM_FEATURES " =~ " jvmti " ]]   && !   [[ " $JVM_FEATURES " =~ " services " ]]  ; then
52831     as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5
52832   fi
52833 
52834   if   [[ " $JVM_FEATURES " =~ " management " ]]   && !   [[ " $JVM_FEATURES " =~ " nmt " ]]  ; then
52835     as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5
52836   fi
52837 
52838   if   [[ " $JVM_FEATURES " =~ " jvmci " ]]   && ! (  [[ " $JVM_FEATURES " =~ " compiler1 " ]]   ||   [[ " $JVM_FEATURES " =~ " compiler2 " ]]  ); then
52839     as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5
52840   fi
52841 
52842   if   [[ " $JVM_FEATURES " =~ " compiler2 " ]]   && !   [[ " $JVM_FEATURES " =~ " all-gcs " ]]  ; then
52843     as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5
52844   fi
52845 
52846   if   [[ " $JVM_FEATURES " =~ " vm-structs " ]]   && !   [[ " $JVM_FEATURES " =~ " all-gcs " ]]  ; then
52847     as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5
52848   fi
52849 
52850   # Turn on additional features based on other parts of configure
52851   if test "x$INCLUDE_DTRACE" = "xtrue"; then
52852     JVM_FEATURES="$JVM_FEATURES dtrace"
52853   else
52854     if   [[ " $JVM_FEATURES " =~ " dtrace " ]]  ; then
52855       as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5
52856     fi
52857   fi
52858 
52859   if test "x$STATIC_BUILD" = "xtrue"; then
52860     JVM_FEATURES="$JVM_FEATURES static-build"




52861   else
52862     if   [[ " $JVM_FEATURES " =~ " static-build " ]]  ; then
52863       as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5

52864     fi
52865   fi
52866 
52867   if !   [[ " $JVM_VARIANTS " =~ " zero " ]]   && !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
52868     if   [[ " $JVM_FEATURES " =~ " zero " ]]  ; then
52869       as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5
52870     fi
52871   fi
52872 
52873   if !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
52874     if   [[ " $JVM_FEATURES " =~ " shark " ]]  ; then
52875       as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5
52876     fi
52877   fi
52878 
52879   # Only enable jvmci on x86_64, sparcv9 and aarch64.
52880   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
52881       test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
52882       test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
52883     JVM_FEATURES_jvmci="jvmci"
52884   else
52885     JVM_FEATURES_jvmci=""
52886   fi
52887 
52888   # All variants but minimal (and custom) get these features
52889   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds"
52890 
52891   # Enable features depending on variant.
52892   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
52893   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
52894   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
52895   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES"
52896   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
52897   JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES"
52898   JVM_FEATURES_custom="$JVM_FEATURES"
52899 
52900 
52901 
52902 
52903 
52904 
52905 
52906 
52907 
52908   # Used for verification of Makefiles by check-jvm-feature
52909 
52910 
52911   # We don't support --with-jvm-interpreter anymore, use zero instead.
52912 
52913 
52914 # Check whether --with-jvm-interpreter was given.
52915 if test "${with_jvm_interpreter+set}" = set; then :
52916   withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5
52917 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;}
52918 fi
52919 
52920 
52921 
52922 
52923   # Check whether --enable-hotspot-gtest was given.
52924 if test "${enable_hotspot_gtest+set}" = set; then :
52925   enableval=$enable_hotspot_gtest;
52926 fi
52927 
52928 
52929   if test -e "$HOTSPOT_TOPDIR/test/native"; then
52930     GTEST_DIR_EXISTS="true"
52931   else
52932     GTEST_DIR_EXISTS="false"
52933   fi
52934 
52935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5
52936 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; }
52937   if test "x$enable_hotspot_gtest" = "xyes"; then
52938     if test "x$GTEST_DIR_EXISTS" = "xtrue"; then
52939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5


63797       if test -d "$path"; then
63798         STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`"
63799       else
63800         dir="`$DIRNAME "$path"`"
63801         base="`$BASENAME "$path"`"
63802         STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base"
63803       fi
63804     fi
63805   fi
63806 
63807     else
63808       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5
63809 $as_echo "no, not found at $STLPORT_LIB" >&6; }
63810       as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5
63811     fi
63812 
63813   fi
63814 
63815 
63816 






































































































































































































































































































































































































63817 








63818 
63819 
63820 
63821 
63822 
63823 
63824 
63825 
63826 














63827 
63828 ###############################################################################
63829 #
63830 # We need to do some final tweaking, when everything else is done.
63831 #
63832 ###############################################################################
63833 
63834 
63835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
63836 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
63837 
63838   if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then
63839     ENABLE_INTREE_EC=yes
63840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63841 $as_echo "yes" >&6; }
63842   else
63843     ENABLE_INTREE_EC=no
63844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63845 $as_echo "no" >&6; }
63846   fi




 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 ELF_LIBS
 666 ELF_CFLAGS
 667 STLPORT_LIB
 668 LIBZIP_CAN_USE_MMAP
 669 LIBDL
 670 LIBM
 671 USE_EXTERNAL_LCMS
 672 LCMS_LIBS
 673 LCMS_CFLAGS
 674 USE_EXTERNAL_LIBZ
 675 USE_EXTERNAL_LIBPNG
 676 PNG_LIBS
 677 PNG_CFLAGS
 678 USE_EXTERNAL_LIBGIF
 679 USE_EXTERNAL_LIBJPEG
 680 LLVM_LIBS
 681 LLVM_LDFLAGS
 682 LLVM_CFLAGS
 683 LLVM_CONFIG
 684 LIBFFI_LIBS
 685 LIBFFI_CFLAGS
 686 ALSA_LIBS
 687 ALSA_CFLAGS
 688 FREETYPE_BUNDLE_LIB_PATH
 689 FREETYPE_LIBS
 690 FREETYPE_CFLAGS
 691 CUPS_CFLAGS
 692 X_EXTRA_LIBS
 693 X_LIBS
 694 X_PRE_LIBS
 695 X_CFLAGS
 696 XMKMF
 697 MSVCP_DLL
 698 MSVCR_DLL
 699 LIBCXX
 700 FIXPATH_DETACH_FLAG
 701 FIXPATH
 702 BUILD_GTEST
 703 ENABLE_AOT







 704 INCLUDE_DTRACE
 705 GCOV_ENABLED
 706 STRIP_POLICY
 707 DEBUG_BINARIES
 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 HOTSPOT_SET_WARNINGS_AS_ERRORS
 715 WARNINGS_AS_ERRORS
 716 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 717 ZERO_ARCHFLAG
 718 LDFLAGS_TESTEXE
 719 LDFLAGS_TESTLIB
 720 CXXFLAGS_TESTEXE
 721 CXXFLAGS_TESTLIB
 722 CFLAGS_TESTEXE
 723 CFLAGS_TESTLIB


1181 with_override_jaxws
1182 with_override_hotspot
1183 with_override_nashorn
1184 with_override_jdk
1185 with_import_hotspot
1186 with_import_modules
1187 enable_static_build
1188 with_toolchain_type
1189 with_extra_cflags
1190 with_extra_cxxflags
1191 with_extra_ldflags
1192 with_toolchain_version
1193 with_build_devkit
1194 with_jtreg
1195 enable_warnings_as_errors
1196 with_native_debug_symbols
1197 enable_debug_symbols
1198 enable_zip_debug_info
1199 enable_native_coverage
1200 enable_dtrace
1201 enable_aot

1202 enable_hotspot_gtest
1203 with_stdc__lib
1204 with_msvcr_dll
1205 with_msvcp_dll
1206 with_x
1207 with_cups
1208 with_cups_include
1209 with_freetype
1210 with_freetype_include
1211 with_freetype_lib
1212 with_freetype_src
1213 enable_freetype_bundling
1214 with_alsa
1215 with_alsa_include
1216 with_alsa_lib
1217 with_libffi
1218 with_libffi_include
1219 with_libffi_lib
1220 with_libjpeg
1221 with_giflib
1222 with_libpng
1223 with_zlib
1224 with_lcms
1225 with_dxsdk
1226 with_dxsdk_lib
1227 with_dxsdk_include
1228 with_libelf
1229 with_libelf_include
1230 with_libelf_lib
1231 with_jvm_features
1232 with_jvm_interpreter
1233 enable_jtreg_failure_handler
1234 enable_generate_classlist
1235 with_num_cores
1236 with_memory_size
1237 with_jobs
1238 with_test_jobs
1239 with_boot_jdk_jvmargs
1240 with_sjavac_server_java
1241 enable_sjavac
1242 enable_javac_server
1243 enable_icecc
1244 enable_precompiled_headers
1245 enable_ccache
1246 with_ccache_dir
1247 '
1248       ac_precious_vars='build_alias
1249 host_alias
1250 target_alias
1251 BASENAME
1252 BASH


1337 OBJCOPY
1338 OBJDUMP
1339 BUILD_CC
1340 BUILD_CXX
1341 BUILD_NM
1342 BUILD_AR
1343 BUILD_OBJCOPY
1344 BUILD_STRIP
1345 JTREGEXE
1346 XMKMF
1347 FREETYPE_CFLAGS
1348 FREETYPE_LIBS
1349 ALSA_CFLAGS
1350 ALSA_LIBS
1351 LIBFFI_CFLAGS
1352 LIBFFI_LIBS
1353 PNG_CFLAGS
1354 PNG_LIBS
1355 LCMS_CFLAGS
1356 LCMS_LIBS
1357 ELF_CFLAGS
1358 ELF_LIBS
1359 ICECC_CMD
1360 ICECC_CREATE_ENV
1361 ICECC_WRAPPER
1362 CCACHE'
1363 
1364 
1365 # Initialize some variables set by options.
1366 ac_init_help=
1367 ac_init_version=false
1368 ac_unrecognized_opts=
1369 ac_unrecognized_sep=
1370 # The variables have the same names as the options, with
1371 # dashes changed to underlines.
1372 cache_file=/dev/null
1373 exec_prefix=NONE
1374 no_create=
1375 no_recursion=
1376 prefix=NONE
1377 program_prefix=NONE
1378 program_suffix=NONE


1984                           --with-debug-level=fastdebug) [disabled]
1985   --enable-headless-only  only build headless (no GUI) support [disabled]
1986   --enable-unlimited-crypto
1987                           Enable unlimited crypto policy [disabled]
1988   --disable-keep-packaged-modules
1989                           Do not keep packaged modules in jdk image [enable]
1990   --enable-static-build   enable static library build [disabled]
1991   --disable-warnings-as-errors
1992                           do not consider native warnings to be an error
1993                           [enabled]
1994   --enable-debug-symbols  Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --enable-zip-debug-info Deprecated. Option is kept for backwards
1997                           compatibility and is ignored
1998   --enable-native-coverage
1999                           enable native compilation with code coverage
2000                           data[disabled]
2001   --enable-dtrace[=yes/no/auto]
2002                           enable dtrace. Default is auto, where dtrace is
2003                           enabled if all dependencies are present.
2004   --enable-aot[=yes/no/auto]
2005                           enable ahead of time compilation feature. Default is
2006                           auto, where aot is enabled if all dependencies are
2007                           present.
2008   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2009   --disable-freetype-bundling
2010                           disable bundling of the freetype library with the
2011                           build result [enabled on Windows or when using
2012                           --with-freetype, disabled otherwise]
2013   --enable-jtreg-failure-handler
2014                           forces build of the jtreg failure handler to be
2015                           enabled, missing dependencies become fatal errors.
2016                           Default is auto, where the failure handler is built
2017                           if all dependencies are present and otherwise just
2018                           disabled.
2019   --disable-generate-classlist
2020                           forces enabling or disabling of the generation of a
2021                           CDS classlist at build time. Default is to generate
2022                           it when either the server or client JVMs are built.
2023   --enable-sjavac         use sjavac to do fast incremental compiles
2024                           [disabled]
2025   --disable-javac-server  disable javac server [enabled]
2026   --enable-icecc          enable distribted compilation of native code using
2027                           icecc/icecream [disabled]


2113                           compatibility and is ignored
2114   --with-import-hotspot   import hotspot binaries from this jdk image or
2115                           hotspot build dist dir instead of building from
2116                           source
2117   --with-import-modules   import a set of prebuilt modules either as a zip
2118                           file or an exploded directory
2119   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2120                           to show possible values [platform dependent]
2121   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2122   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2123   --with-extra-ldflags    extra flags to be used when linking jdk
2124   --with-toolchain-version
2125                           the version of the toolchain to look for, use
2126                           '--help' to show possible values [platform
2127                           dependent]
2128   --with-build-devkit     Devkit to use for the build platform toolchain
2129   --with-jtreg            Regression Test Harness [probed]
2130   --with-native-debug-symbols
2131                           set the native debug symbol configuration (none,
2132                           internal, external, zipped) [varying]




2133   --with-stdc++lib=<static>,<dynamic>,<default>
2134                           force linking of the C++ runtime on Linux to either
2135                           static or dynamic, default is static with dynamic as
2136                           fallback
2137   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2138                           (Windows only) [probed]
2139   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2140                           (Windows only) [probed]
2141   --with-x                use the X Window System
2142   --with-cups             specify prefix directory for the cups package
2143                           (expecting the headers under PATH/include)
2144   --with-cups-include     specify directory for the cups include files
2145   --with-freetype         specify prefix directory for the freetype package
2146                           (expecting the libraries under PATH/lib and the
2147                           headers under PATH/include)
2148   --with-freetype-include specify directory for the freetype include files
2149   --with-freetype-lib     specify directory for the freetype library
2150   --with-freetype-src     specify directory with freetype sources to
2151                           automatically build the library (experimental,
2152                           Windows-only)


2159                           (expecting the libraries under PATH/lib and the
2160                           headers under PATH/include)
2161   --with-libffi-include   specify directory for the libffi include files
2162   --with-libffi-lib       specify directory for the libffi library
2163   --with-libjpeg          use libjpeg from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-giflib           use giflib from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-libpng           use libpng from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-zlib             use zlib from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-lcms             use lcms2 from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-dxsdk            Deprecated. Option is kept for backwards
2174                           compatibility and is ignored
2175   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-dxsdk-include    Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-libelf           specify prefix directory for the libelf package
2180                           (expecting the libraries under PATH/lib and the
2181                           headers under PATH/include)
2182   --with-libelf-include   specify directory for the libelf include files
2183   --with-libelf-lib       specify directory for the libelf library
2184   --with-jvm-features     additional JVM features to enable (separated by
2185                           comma), use '--help' to show possible values [none]
2186   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2187                           compatibility and is ignored
2188   --with-num-cores        number of cores in the build system, e.g.
2189                           --with-num-cores=8 [probed]
2190   --with-memory-size      memory (in MB) available in the build system, e.g.
2191                           --with-memory-size=1024 [probed]
2192   --with-jobs             number of parallel jobs to let make run [calculated
2193                           based on cores and memory]
2194   --with-test-jobs        number of parallel tests jobs to run [based on build
2195                           jobs]
2196   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2197                           invocations of boot JDK, overriding the default
2198                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2199                           -enableassertions"
2200   --with-sjavac-server-java
2201                           use this java binary for running the sjavac
2202                           background server [Boot JDK java]
2203   --with-ccache-dir       where to store ccache files [~/.ccache]
2204 
2205 Some influential environment variables:
2206   BASENAME    Override default value for BASENAME
2207   BASH        Override default value for BASH


2297   BUILD_NM    Override default value for BUILD_NM
2298   BUILD_AR    Override default value for BUILD_AR
2299   BUILD_OBJCOPY
2300               Override default value for BUILD_OBJCOPY
2301   BUILD_STRIP Override default value for BUILD_STRIP
2302   JTREGEXE    Override default value for JTREGEXE
2303   XMKMF       Path to xmkmf, Makefile generator for X Window System
2304   FREETYPE_CFLAGS
2305               C compiler flags for FREETYPE, overriding pkg-config
2306   FREETYPE_LIBS
2307               linker flags for FREETYPE, overriding pkg-config
2308   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2309   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2310   LIBFFI_CFLAGS
2311               C compiler flags for LIBFFI, overriding pkg-config
2312   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2313   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2314   PNG_LIBS    linker flags for PNG, overriding pkg-config
2315   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2316   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2317   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2318   ELF_LIBS    linker flags for ELF, overriding pkg-config
2319   ICECC_CMD   Override default value for ICECC_CMD
2320   ICECC_CREATE_ENV
2321               Override default value for ICECC_CREATE_ENV
2322   ICECC_WRAPPER
2323               Override default value for ICECC_WRAPPER
2324   CCACHE      Override default value for CCACHE
2325 
2326 Use these variables to override the choices made by `configure' or to help
2327 it to find libraries and programs with nonstandard names/locations.
2328 
2329 Report bugs to <build-dev@openjdk.java.net>.
2330 OpenJDK home page: <http://openjdk.java.net>.
2331 _ACEOF
2332 ac_status=$?
2333 fi
2334 
2335 if test "$ac_init_help" = "recursive"; then
2336   # If there are subdirs, report their specific --help.
2337   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2338     test -d "$ac_dir" ||


4186     reduced)
4187       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4188     devkit)
4189       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4190     openjdk)
4191       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4192     alsa)
4193       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4194     cups)
4195       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4196     freetype)
4197       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4198     ffi)
4199       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4200     x11)
4201       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4202     ccache)
4203       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4204     dtrace)
4205       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4206     elf)
4207       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4208   esac
4209 }
4210 
4211 yum_help() {
4212   case $1 in
4213     devkit)
4214       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4215     openjdk)
4216       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4217     alsa)
4218       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4219     cups)
4220       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4221     freetype)
4222       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4223     x11)
4224       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4225     ccache)
4226       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4227     elf)
4228       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4229   esac
4230 }
4231 
4232 port_help() {
4233   PKGHANDLER_COMMAND=""
4234 }
4235 
4236 pkgutil_help() {
4237   PKGHANDLER_COMMAND=""
4238 }
4239 
4240 pkgadd_help() {
4241   PKGHANDLER_COMMAND=""
4242 }
4243 
4244 # This function will check if we're called from the "configure" wrapper while
4245 # printing --help. If so, we will print out additional information that can
4246 # only be extracted within the autoconf script, and then exit. This must be
4247 # called at the very beginning in configure.ac.
4248 


4261 # particular file as subject to the "Classpath" exception as provided
4262 # by Oracle in the LICENSE file that accompanied this code.
4263 #
4264 # This code is distributed in the hope that it will be useful, but WITHOUT
4265 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4266 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4267 # version 2 for more details (a copy is included in the LICENSE file that
4268 # accompanied this code).
4269 #
4270 # You should have received a copy of the GNU General Public License version
4271 # 2 along with this work; if not, write to the Free Software Foundation,
4272 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4273 #
4274 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4275 # or visit www.oracle.com if you need additional information or have any
4276 # questions.
4277 #
4278 
4279 # All valid JVM features, regardless of platform
4280 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4281     fprof vm-structs jni-check services management all-gcs nmt cds static-build aot"
4282 
4283 # All valid JVM variants
4284 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4285 
4286 ###############################################################################
4287 # Check if the specified JVM variant should be built. To be used in shell if
4288 # constructs, like this:
4289 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4290 #
4291 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4292 
4293 # Definition kept in one line to allow inlining in if statements.
4294 # Additional [] needed to keep m4 from mangling shell constructs.
4295 
4296 
4297 ###############################################################################
4298 # Check if the specified JVM features are explicitly enabled. To be used in
4299 # shell if constructs, like this:
4300 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4301 #


4305 # Additional [] needed to keep m4 from mangling shell constructs.
4306 
4307 
4308 ###############################################################################
4309 # Check which variants of the JVM that we want to build. Available variants are:
4310 #   server: normal interpreter, and a tiered C1/C2 compiler
4311 #   client: normal interpreter, and C1 (no C2 compiler)
4312 #   minimal: reduced form of client with optional features stripped out
4313 #   core: normal interpreter only, no compiler
4314 #   zero: C++ based interpreter only, no compiler
4315 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4316 #   custom: baseline JVM with no default features
4317 #
4318 
4319 
4320 ###############################################################################
4321 # Check if dtrace should be enabled and has all prerequisites present.
4322 #
4323 
4324 
4325 ################################################################################
4326 # Check if AOT should be enabled
4327 #
4328 
4329 
4330 ###############################################################################
4331 # Set up all JVM features for each JVM variant.
4332 #
4333 
4334 
4335 ###############################################################################
4336 # Validate JVM features once all setup is complete, including custom setup.
4337 #
4338 
4339 
4340 ################################################################################
4341 # Check if gtest should be built
4342 #
4343 
4344 
4345 #
4346 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4347 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4348 #
4349 # This code is free software; you can redistribute it and/or modify it


4733 # This code is distributed in the hope that it will be useful, but WITHOUT
4734 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4735 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4736 # version 2 for more details (a copy is included in the LICENSE file that
4737 # accompanied this code).
4738 #
4739 # You should have received a copy of the GNU General Public License version
4740 # 2 along with this work; if not, write to the Free Software Foundation,
4741 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4742 #
4743 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4744 # or visit www.oracle.com if you need additional information or have any
4745 # questions.
4746 #
4747 
4748 ################################################################################
4749 # Setup X11 Windows system
4750 ################################################################################
4751 
4752 
4753 #
4754 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4755 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4756 #
4757 # This code is free software; you can redistribute it and/or modify it
4758 # under the terms of the GNU General Public License version 2 only, as
4759 # published by the Free Software Foundation.  Oracle designates this
4760 # particular file as subject to the "Classpath" exception as provided
4761 # by Oracle in the LICENSE file that accompanied this code.
4762 #
4763 # This code is distributed in the hope that it will be useful, but WITHOUT
4764 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4765 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4766 # version 2 for more details (a copy is included in the LICENSE file that
4767 # accompanied this code).
4768 #
4769 # You should have received a copy of the GNU General Public License version
4770 # 2 along with this work; if not, write to the Free Software Foundation,
4771 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4772 #
4773 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4774 # or visit www.oracle.com if you need additional information or have any
4775 # questions.
4776 #
4777 
4778 ################################################################################
4779 # Setup libelf (ELF library)
4780 ################################################################################
4781 
4782 
4783 
4784 ################################################################################
4785 # Determine which libraries are needed for this configuration
4786 ################################################################################
4787 
4788 
4789 ################################################################################
4790 # Parse library options, and setup needed libraries
4791 ################################################################################
4792 
4793 
4794 ################################################################################
4795 # Setup llvm (Low-Level VM)
4796 ################################################################################
4797 
4798 
4799 ################################################################################
4800 # Setup various libraries, typically small system libraries
4801 ################################################################################
4802 


5135 
5136 
5137 
5138 
5139 
5140 
5141 
5142 
5143 
5144 
5145 
5146 
5147 
5148 
5149 # This line needs to be here, verbatim, after all includes and the dummy hook
5150 # definitions. It is replaced with custom functionality when building
5151 # custom sources.
5152 #CUSTOM_AUTOCONF_INCLUDE
5153 
5154 # Do not change or remove the following line, it is needed for consistency checks:
5155 DATE_WHEN_GENERATED=1477705915
5156 
5157 ###############################################################################
5158 #
5159 # Initialization / Boot-strapping
5160 #
5161 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5162 # thus it jumps back and forth, each time gaining something needed later on.
5163 #
5164 ###############################################################################
5165 
5166 # If we are requested to print additional help, do that and then exit.
5167 # This must be the very first call.
5168 
5169   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5170 
5171     # Print available toolchains
5172     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5173     $PRINTF "Which are valid to use depends on the build platform.\n"
5174     for toolchain in $VALID_TOOLCHAINS_all; do
5175       # Use indirect variable referencing


52852   elif test "x$enable_dtrace" = "xno"; then
52853     INCLUDE_DTRACE=false
52854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
52855 $as_echo "no, forced" >&6; }
52856   elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then
52857     if test "x$DTRACE_DEP_MISSING" = "xtrue"; then
52858       INCLUDE_DTRACE=false
52859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
52860 $as_echo "no, missing dependencies" >&6; }
52861     else
52862       INCLUDE_DTRACE=true
52863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
52864 $as_echo "yes, dependencies present" >&6; }
52865     fi
52866   else
52867     as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5
52868   fi
52869 
52870 
52871 
52872   # Check whether --enable-aot was given.
52873 if test "${enable_aot+set}" = set; then :
52874   enableval=$enable_aot;



52875 fi
52876 




















52877 
52878   if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
52879     ENABLE_AOT="true"
52880   elif test "x$enable_aot" = "xyes"; then
52881     ENABLE_AOT="true"
52882   elif test "x$enable_aot" = "xno"; then
52883     ENABLE_AOT="false"
52884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
52885 $as_echo_n "checking if aot should be enabled... " >&6; }
52886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
52887 $as_echo "no, forced" >&6; }

52888   else
52889     as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5


52890   fi
52891 
52892   if test "x$ENABLE_AOT" = "xtrue"; then
52893     # Only enable AOT on linux-X64.
52894     if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-x86_64"; then
52895       if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then
52896         if test -e "$HOTSPOT_TOPDIR/src/jdk.vm.compiler"; then
52897           ENABLE_AOT="true"
52898         else
52899           ENABLE_AOT="false"
52900           if test "x$enable_aot" = "xyes"; then
52901             as_fn_error $? "Cannot build AOT without hotspot/src/jdk.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
52902           fi
52903         fi
52904       else
52905         ENABLE_AOT="false"
52906         if test "x$enable_aot" = "xyes"; then
52907           as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
52908         fi
52909       fi
52910     else
52911       ENABLE_AOT="false"
52912       if test "x$enable_aot" = "xyes"; then
52913         as_fn_error $? "AOT is currently only supported on Linux-x86_64. Remove --enable-aot." "$LINENO" 5
52914       fi
52915     fi








52916   fi
52917 
































52918 
52919 
52920 
52921   # Check whether --enable-hotspot-gtest was given.
52922 if test "${enable_hotspot_gtest+set}" = set; then :
52923   enableval=$enable_hotspot_gtest;
52924 fi
52925 
52926 
52927   if test -e "$HOTSPOT_TOPDIR/test/native"; then
52928     GTEST_DIR_EXISTS="true"
52929   else
52930     GTEST_DIR_EXISTS="false"
52931   fi
52932 
52933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5
52934 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; }
52935   if test "x$enable_hotspot_gtest" = "xyes"; then
52936     if test "x$GTEST_DIR_EXISTS" = "xtrue"; then
52937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5


63795       if test -d "$path"; then
63796         STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`"
63797       else
63798         dir="`$DIRNAME "$path"`"
63799         base="`$BASENAME "$path"`"
63800         STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base"
63801       fi
63802     fi
63803   fi
63804 
63805     else
63806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5
63807 $as_echo "no, not found at $STLPORT_LIB" >&6; }
63808       as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5
63809     fi
63810 
63811   fi
63812 
63813 
63814 
63815 # Check whether --with-libelf was given.
63816 if test "${with_libelf+set}" = set; then :
63817   withval=$with_libelf;
63818 fi
63819 
63820 
63821 # Check whether --with-libelf-include was given.
63822 if test "${with_libelf_include+set}" = set; then :
63823   withval=$with_libelf_include;
63824 fi
63825 
63826 
63827 # Check whether --with-libelf-lib was given.
63828 if test "${with_libelf_lib+set}" = set; then :
63829   withval=$with_libelf_lib;
63830 fi
63831 
63832 
63833   if test "x$ENABLE_AOT" = xfalse; then
63834     if (test "x${with_libelf}" != x && test "x${with_libelf}" != xno) || \
63835         (test "x${with_libelf_include}" != x && test "x${with_libelf_include}" != xno) || \
63836         (test "x${with_libelf_lib}" != x && test "x${with_libelf_lib}" != xno); then
63837       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libelf is not used, so --with-libelf[-*] is ignored" >&5
63838 $as_echo "$as_me: WARNING: libelf is not used, so --with-libelf[-*] is ignored" >&2;}
63839     fi
63840     LIBELF_CFLAGS=
63841     LIBELF_LIBS=
63842   else
63843     LIBELF_FOUND=no
63844 
63845     if test "x${with_libelf}" = xno || test "x${with_libelf_include}" = xno || test "x${with_libelf_lib}" = xno; then
63846       ENABLE_AOT="false"
63847       if test "x${enable_aot}" = xyes; then
63848         as_fn_error $? "libelf is explicitly disabled, cannot build AOT. Enable libelf or remove --enable-aot to disable AOT." "$LINENO" 5
63849       fi
63850     else
63851       if test "x${with_libelf}" != x; then
63852         ELF_LIBS="-L${with_libelf}/lib -lelf"
63853         ELF_CFLAGS="-I${with_libelf}/include"
63854         LIBELF_FOUND=yes
63855       fi
63856       if test "x${with_libelf_include}" != x; then
63857         ELF_CFLAGS="-I${with_libelf_include}"
63858         LIBELF_FOUND=yes
63859       fi
63860       if test "x${with_libelf_lib}" != x; then
63861         ELF_LIBS="-L${with_libelf_lib} -lelf"
63862         LIBELF_FOUND=yes
63863       fi
63864       # Do not try pkg-config if we have a sysroot set.
63865       if test "x$SYSROOT" = x; then
63866         if test "x$LIBELF_FOUND" = xno; then
63867           # Figure out ELF_CFLAGS and ELF_LIBS
63868 
63869 pkg_failed=no
63870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
63871 $as_echo_n "checking for ELF... " >&6; }
63872 
63873 if test -n "$ELF_CFLAGS"; then
63874     pkg_cv_ELF_CFLAGS="$ELF_CFLAGS"
63875  elif test -n "$PKG_CONFIG"; then
63876     if test -n "$PKG_CONFIG" && \
63877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
63878   ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
63879   ac_status=$?
63880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63881   test $ac_status = 0; }; then
63882   pkg_cv_ELF_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null`
63883 else
63884   pkg_failed=yes
63885 fi
63886  else
63887     pkg_failed=untried
63888 fi
63889 if test -n "$ELF_LIBS"; then
63890     pkg_cv_ELF_LIBS="$ELF_LIBS"
63891  elif test -n "$PKG_CONFIG"; then
63892     if test -n "$PKG_CONFIG" && \
63893     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
63894   ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
63895   ac_status=$?
63896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63897   test $ac_status = 0; }; then
63898   pkg_cv_ELF_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null`
63899 else
63900   pkg_failed=yes
63901 fi
63902  else
63903     pkg_failed=untried
63904 fi
63905 
63906 
63907 
63908 if test $pkg_failed = yes; then
63909 
63910 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63911         _pkg_short_errors_supported=yes
63912 else
63913         _pkg_short_errors_supported=no
63914 fi
63915         if test $_pkg_short_errors_supported = yes; then
63916                 ELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libelf" 2>&1`
63917         else
63918                 ELF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libelf" 2>&1`
63919         fi
63920         # Put the nasty error message in config.log where it belongs
63921         echo "$ELF_PKG_ERRORS" >&5
63922 
63923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63924 $as_echo "no" >&6; }
63925                 LIBELF_FOUND=no
63926 elif test $pkg_failed = untried; then
63927         LIBELF_FOUND=no
63928 else
63929         ELF_CFLAGS=$pkg_cv_ELF_CFLAGS
63930         ELF_LIBS=$pkg_cv_ELF_LIBS
63931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63932 $as_echo "yes" >&6; }
63933         LIBELF_FOUND=yes
63934 fi
63935         fi
63936       fi
63937       if test "x$LIBELF_FOUND" = xno; then
63938         for ac_header in libelf.h
63939 do :
63940   ac_fn_cxx_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
63941 if test "x$ac_cv_header_libelf_h" = xyes; then :
63942   cat >>confdefs.h <<_ACEOF
63943 #define HAVE_LIBELF_H 1
63944 _ACEOF
63945 
63946               LIBELF_FOUND=yes
63947               ELF_CFLAGS=
63948               ELF_LIBS=-lelf
63949 
63950 else
63951   LIBELF_FOUND=no
63952 
63953 fi
63954 
63955 done
63956 
63957       fi
63958       if test "x$LIBELF_FOUND" = xno; then
63959         ENABLE_AOT="false"
63960 
63961   # Print a helpful message on how to acquire the necessary build dependency.
63962   # elf is the help tag: freetype, cups, alsa etc
63963   MISSING_DEPENDENCY=elf
63964 
63965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
63966     cygwin_help $MISSING_DEPENDENCY
63967   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
63968     msys_help $MISSING_DEPENDENCY
63969   else
63970     PKGHANDLER_COMMAND=
63971 
63972     case $PKGHANDLER in
63973       apt-get)
63974         apt_help     $MISSING_DEPENDENCY ;;
63975       yum)
63976         yum_help     $MISSING_DEPENDENCY ;;
63977       port)
63978         port_help    $MISSING_DEPENDENCY ;;
63979       pkgutil)
63980         pkgutil_help $MISSING_DEPENDENCY ;;
63981       pkgadd)
63982         pkgadd_help  $MISSING_DEPENDENCY ;;
63983     esac
63984 
63985     if test "x$PKGHANDLER_COMMAND" != x; then
63986       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
63987     fi
63988   fi
63989 
63990         if test "x${enable_aot}" = xyes; then
63991           as_fn_error $? "libelf not found, cannot build AOT. Remove --enable-aot to disable AOT or: $HELP_MSG" "$LINENO" 5
63992         else
63993           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libelf not found, cannot build AOT. $HELP_MSG" >&5
63994 $as_echo "$as_me: WARNING: libelf not found, cannot build AOT. $HELP_MSG" >&2;}
63995         fi
63996       else
63997         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libelf works" >&5
63998 $as_echo_n "checking if libelf works... " >&6; }
63999         ac_ext=c
64000 ac_cpp='$CPP $CPPFLAGS'
64001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
64004 
64005         OLD_CFLAGS="$CFLAGS"
64006         CFLAGS="$CFLAGS $ELF_CFLAGS"
64007         OLD_LIBS="$LIBS"
64008         LIBS="$LIBS $ELF_LIBS"
64009         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64010 /* end confdefs.h.  */
64011 #include <libelf.h>
64012 int
64013 main ()
64014 {
64015 
64016               elf_version(0);
64017               return 0;
64018 
64019   ;
64020   return 0;
64021 }
64022 _ACEOF
64023 if ac_fn_c_try_link "$LINENO"; then :
64024   LIBELF_WORKS=yes
64025 else
64026   LIBELF_WORKS=no
64027 
64028 fi
64029 rm -f core conftest.err conftest.$ac_objext \
64030     conftest$ac_exeext conftest.$ac_ext
64031         CFLAGS="$OLD_CFLAGS"
64032         LIBS="$OLD_LIBS"
64033         ac_ext=cpp
64034 ac_cpp='$CXXCPP $CPPFLAGS'
64035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64038 
64039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBELF_WORKS" >&5
64040 $as_echo "$LIBELF_WORKS" >&6; }
64041 
64042         if test "x$LIBELF_WORKS" = xno; then
64043           ENABLE_AOT="false"
64044 
64045   # Print a helpful message on how to acquire the necessary build dependency.
64046   # elf is the help tag: freetype, cups, alsa etc
64047   MISSING_DEPENDENCY=elf
64048 
64049   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
64050     cygwin_help $MISSING_DEPENDENCY
64051   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
64052     msys_help $MISSING_DEPENDENCY
64053   else
64054     PKGHANDLER_COMMAND=
64055 
64056     case $PKGHANDLER in
64057       apt-get)
64058         apt_help     $MISSING_DEPENDENCY ;;
64059       yum)
64060         yum_help     $MISSING_DEPENDENCY ;;
64061       port)
64062         port_help    $MISSING_DEPENDENCY ;;
64063       pkgutil)
64064         pkgutil_help $MISSING_DEPENDENCY ;;
64065       pkgadd)
64066         pkgadd_help  $MISSING_DEPENDENCY ;;
64067     esac
64068 
64069     if test "x$PKGHANDLER_COMMAND" != x; then
64070       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
64071     fi
64072   fi
64073 
64074           if test "x$enable_aot" = "xyes"; then
64075             as_fn_error $? "Found libelf but could not link and compile with it. Remove --enable-aot to disable AOT or: $HELP_MSG" "$LINENO" 5
64076           else
64077             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found libelf but could not link and compile with it. $HELP_MSG" >&5
64078 $as_echo "$as_me: WARNING: Found libelf but could not link and compile with it. $HELP_MSG" >&2;}
64079           fi
64080         fi
64081       fi
64082     fi
64083   fi
64084 
64085 
64086 
64087 
64088 
64089 
64090 
64091 
64092 
64093 
64094 
64095 
64096 
64097 
64098 
64099 
64100 
64101 
64102 
64103 # Hotspot setup depends on lib checks (AOT needs libelf).
64104 
64105 
64106   # The user can in some cases supply additional jvm features. For the custom
64107   # variant, this defines the entire variant.
64108 
64109 # Check whether --with-jvm-features was given.
64110 if test "${with_jvm_features+set}" = set; then :
64111   withval=$with_jvm_features;
64112 fi
64113 
64114   if test "x$with_jvm_features" != x; then
64115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5
64116 $as_echo_n "checking additional JVM features... " >&6; }
64117     JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
64118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5
64119 $as_echo "$JVM_FEATURES" >&6; }
64120   fi
64121 
64122   # Verify that dependencies are met for explicitly set features.
64123   if   [[ " $JVM_FEATURES " =~ " jvmti " ]]   && !   [[ " $JVM_FEATURES " =~ " services " ]]  ; then
64124     as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5
64125   fi
64126 
64127   if   [[ " $JVM_FEATURES " =~ " management " ]]   && !   [[ " $JVM_FEATURES " =~ " nmt " ]]  ; then
64128     as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5
64129   fi
64130 
64131   if   [[ " $JVM_FEATURES " =~ " jvmci " ]]   && ! (  [[ " $JVM_FEATURES " =~ " compiler1 " ]]   ||   [[ " $JVM_FEATURES " =~ " compiler2 " ]]  ); then
64132     as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5
64133   fi
64134 
64135   if   [[ " $JVM_FEATURES " =~ " compiler2 " ]]   && !   [[ " $JVM_FEATURES " =~ " all-gcs " ]]  ; then
64136     as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5
64137   fi
64138 
64139   if   [[ " $JVM_FEATURES " =~ " vm-structs " ]]   && !   [[ " $JVM_FEATURES " =~ " all-gcs " ]]  ; then
64140     as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5
64141   fi
64142 
64143   # Turn on additional features based on other parts of configure
64144   if test "x$INCLUDE_DTRACE" = "xtrue"; then
64145     JVM_FEATURES="$JVM_FEATURES dtrace"
64146   else
64147     if   [[ " $JVM_FEATURES " =~ " dtrace " ]]  ; then
64148       as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5
64149     fi
64150   fi
64151 
64152   if test "x$STATIC_BUILD" = "xtrue"; then
64153     JVM_FEATURES="$JVM_FEATURES static-build"
64154   else
64155     if   [[ " $JVM_FEATURES " =~ " static-build " ]]  ; then
64156       as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5
64157     fi
64158   fi
64159 
64160   if !   [[ " $JVM_VARIANTS " =~ " zero " ]]   && !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
64161     if   [[ " $JVM_FEATURES " =~ " zero " ]]  ; then
64162       as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5
64163     fi
64164   fi
64165 
64166   if !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
64167     if   [[ " $JVM_FEATURES " =~ " shark " ]]  ; then
64168       as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5
64169     fi
64170   fi
64171 
64172   # Only enable jvmci on x86_64, sparcv9 and aarch64.
64173   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
64174       test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
64175       test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
64176     JVM_FEATURES_jvmci="jvmci"
64177   else
64178     JVM_FEATURES_jvmci=""
64179   fi
64180 
64181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
64182 $as_echo_n "checking if aot should be enabled... " >&6; }
64183   if test "x$ENABLE_AOT" = "xtrue"; then
64184     if test "x$enable_aot" = "xyes"; then
64185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
64186 $as_echo "yes, forced" >&6; }
64187     else
64188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64189 $as_echo "yes" >&6; }
64190     fi
64191     JVM_FEATURES_aot="aot"
64192   else
64193     if test "x$enable_aot" = "xno"; then
64194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
64195 $as_echo "no, forced" >&6; }
64196     else
64197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64198 $as_echo "no" >&6; }
64199     fi
64200     JVM_FEATURES_aot=""
64201   fi
64202 
64203   # All variants but minimal (and custom) get these features
64204   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds"
64205 
64206   # Enable features depending on variant.
64207   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot"
64208   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
64209   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
64210   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES"
64211   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
64212   JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES"
64213   JVM_FEATURES_custom="$JVM_FEATURES"
64214 
64215 
64216 
64217 
64218 
64219 
64220 
64221 
64222 
64223   # Used for verification of Makefiles by check-jvm-feature
64224 
64225 
64226   # We don't support --with-jvm-interpreter anymore, use zero instead.
64227 
64228 
64229 # Check whether --with-jvm-interpreter was given.
64230 if test "${with_jvm_interpreter+set}" = set; then :
64231   withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5
64232 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;}
64233 fi
64234 
64235 
64236 
64237 
64238 ###############################################################################
64239 #
64240 # We need to do some final tweaking, when everything else is done.
64241 #
64242 ###############################################################################
64243 
64244 
64245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
64246 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
64247 
64248   if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then
64249     ENABLE_INTREE_EC=yes
64250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64251 $as_echo "yes" >&6; }
64252   else
64253     ENABLE_INTREE_EC=no
64254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64255 $as_echo "no" >&6; }
64256   fi


common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File