< prev index next >

make/autoconf/generated-configure.sh

Print this page
rev 48545 : Value-based classes (vbc) / Oop value test via metadata ptr


4246 
4247 pkgutil_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 pkgadd_help() {
4252   PKGHANDLER_COMMAND=""
4253 }
4254 
4255 # This function will check if we're called from the "configure" wrapper while
4256 # printing --help. If so, we will print out additional information that can
4257 # only be extracted within the autoconf script, and then exit. This must be
4258 # called at the very beginning in configure.ac.
4259 
4260 
4261 
4262 
4263 
4264 
4265 #
4266 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4268 #
4269 # This code is free software; you can redistribute it and/or modify it
4270 # under the terms of the GNU General Public License version 2 only, as
4271 # published by the Free Software Foundation.  Oracle designates this
4272 # particular file as subject to the "Classpath" exception as provided
4273 # by Oracle in the LICENSE file that accompanied this code.
4274 #
4275 # This code is distributed in the hope that it will be useful, but WITHOUT
4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4277 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4278 # version 2 for more details (a copy is included in the LICENSE file that
4279 # accompanied this code).
4280 #
4281 # You should have received a copy of the GNU General Public License version
4282 # 2 along with this work; if not, write to the Free Software Foundation,
4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4284 #
4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4286 # or visit www.oracle.com if you need additional information or have any
4287 # questions.
4288 #
4289 
4290 # All valid JVM features, regardless of platform
4291 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4292     graal vm-structs jni-check services management all-gcs nmt cds \
4293     static-build link-time-opt aot"
4294 
4295 # All valid JVM variants
4296 VALID_JVM_VARIANTS="server client minimal core zero custom"
4297 
4298 ###############################################################################
4299 # Check if the specified JVM variant should be built. To be used in shell if
4300 # constructs, like this:
4301 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4302 #
4303 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4304 
4305 # Definition kept in one line to allow inlining in if statements.
4306 # Additional [] needed to keep m4 from mangling shell constructs.
4307 
4308 
4309 ###############################################################################
4310 # Check if the specified JVM features are explicitly enabled. To be used in
4311 # shell if constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4313 #


5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 
5171 
5172 
5173 # This line needs to be here, verbatim, after all includes and the dummy hook
5174 # definitions. It is replaced with custom functionality when building
5175 # custom sources.
5176 #CUSTOM_AUTOCONF_INCLUDE
5177 
5178 # Do not change or remove the following line, it is needed for consistency checks:
5179 DATE_WHEN_GENERATED=1513805283
5180 
5181 ###############################################################################
5182 #
5183 # Initialization / Boot-strapping
5184 #
5185 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5186 # thus it jumps back and forth, each time gaining something needed later on.
5187 #
5188 ###############################################################################
5189 
5190 # If we are requested to print additional help, do that and then exit.
5191 # This must be the very first call.
5192 
5193   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5194 
5195     # Print available toolchains
5196     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5197     $PRINTF "Which are valid to use depends on the build platform.\n"
5198     for toolchain in $VALID_TOOLCHAINS_all; do
5199       # Use indirect variable referencing


67010     JVM_FEATURES_aot="aot"
67011   else
67012     if test "x$enable_aot" = "xno"; then
67013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
67014 $as_echo "no, forced" >&6; }
67015     else
67016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67017 $as_echo "no" >&6; }
67018     fi
67019     JVM_FEATURES_aot=""
67020   fi
67021 
67022   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
67023     # Default to use link time optimizations on minimal on arm
67024     JVM_FEATURES_link_time_opt="link-time-opt"
67025   else
67026     JVM_FEATURES_link_time_opt=""
67027   fi
67028 
67029   # All variants but minimal (and custom) get these features
67030   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt"
67031   if test "x$ENABLE_CDS" = "xtrue"; then
67032     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
67033   fi
67034 
67035   # Enable features depending on variant.
67036   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
67037   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
67038   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
67039   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
67040   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
67041   JVM_FEATURES_custom="$JVM_FEATURES"
67042 
67043 
67044 
67045 
67046 
67047 
67048 
67049 
67050   # Used for verification of Makefiles by check-jvm-feature




4246 
4247 pkgutil_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 pkgadd_help() {
4252   PKGHANDLER_COMMAND=""
4253 }
4254 
4255 # This function will check if we're called from the "configure" wrapper while
4256 # printing --help. If so, we will print out additional information that can
4257 # only be extracted within the autoconf script, and then exit. This must be
4258 # called at the very beginning in configure.ac.
4259 
4260 
4261 
4262 
4263 
4264 
4265 #
4266 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4268 #
4269 # This code is free software; you can redistribute it and/or modify it
4270 # under the terms of the GNU General Public License version 2 only, as
4271 # published by the Free Software Foundation.  Oracle designates this
4272 # particular file as subject to the "Classpath" exception as provided
4273 # by Oracle in the LICENSE file that accompanied this code.
4274 #
4275 # This code is distributed in the hope that it will be useful, but WITHOUT
4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4277 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4278 # version 2 for more details (a copy is included in the LICENSE file that
4279 # accompanied this code).
4280 #
4281 # You should have received a copy of the GNU General Public License version
4282 # 2 along with this work; if not, write to the Free Software Foundation,
4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4284 #
4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4286 # or visit www.oracle.com if you need additional information or have any
4287 # questions.
4288 #
4289 
4290 # All valid JVM features, regardless of platform
4291 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4292     graal vm-structs jni-check services management all-gcs nmt cds \
4293     static-build link-time-opt aot vbc"
4294 
4295 # All valid JVM variants
4296 VALID_JVM_VARIANTS="server client minimal core zero custom"
4297 
4298 ###############################################################################
4299 # Check if the specified JVM variant should be built. To be used in shell if
4300 # constructs, like this:
4301 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4302 #
4303 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4304 
4305 # Definition kept in one line to allow inlining in if statements.
4306 # Additional [] needed to keep m4 from mangling shell constructs.
4307 
4308 
4309 ###############################################################################
4310 # Check if the specified JVM features are explicitly enabled. To be used in
4311 # shell if constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4313 #


5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 
5168 
5169 
5170 
5171 
5172 
5173 # This line needs to be here, verbatim, after all includes and the dummy hook
5174 # definitions. It is replaced with custom functionality when building
5175 # custom sources.
5176 #CUSTOM_AUTOCONF_INCLUDE
5177 
5178 # Do not change or remove the following line, it is needed for consistency checks:
5179 DATE_WHEN_GENERATED=1515758264
5180 
5181 ###############################################################################
5182 #
5183 # Initialization / Boot-strapping
5184 #
5185 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5186 # thus it jumps back and forth, each time gaining something needed later on.
5187 #
5188 ###############################################################################
5189 
5190 # If we are requested to print additional help, do that and then exit.
5191 # This must be the very first call.
5192 
5193   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5194 
5195     # Print available toolchains
5196     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5197     $PRINTF "Which are valid to use depends on the build platform.\n"
5198     for toolchain in $VALID_TOOLCHAINS_all; do
5199       # Use indirect variable referencing


67010     JVM_FEATURES_aot="aot"
67011   else
67012     if test "x$enable_aot" = "xno"; then
67013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
67014 $as_echo "no, forced" >&6; }
67015     else
67016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67017 $as_echo "no" >&6; }
67018     fi
67019     JVM_FEATURES_aot=""
67020   fi
67021 
67022   if test "x$OPENJDK_TARGET_CPU" = xarm ; then
67023     # Default to use link time optimizations on minimal on arm
67024     JVM_FEATURES_link_time_opt="link-time-opt"
67025   else
67026     JVM_FEATURES_link_time_opt=""
67027   fi
67028 
67029   # All variants but minimal (and custom) get these features
67030   NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt vbc"
67031   if test "x$ENABLE_CDS" = "xtrue"; then
67032     NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds"
67033   fi
67034 
67035   # Enable features depending on variant.
67036   JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal"
67037   JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci"
67038   JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES"
67039   JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt"
67040   JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES"
67041   JVM_FEATURES_custom="$JVM_FEATURES"
67042 
67043 
67044 
67045 
67046 
67047 
67048 
67049 
67050   # Used for verification of Makefiles by check-jvm-feature


< prev index next >