jdk-options.m4 revision 2792:4c9ee37f0c66
1# 2# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# This code is free software; you can redistribute it and/or modify it 6# under the terms of the GNU General Public License version 2 only, as 7# published by the Free Software Foundation. Oracle designates this 8# particular file as subject to the "Classpath" exception as provided 9# by Oracle in the LICENSE file that accompanied this code. 10# 11# This code is distributed in the hope that it will be useful, but WITHOUT 12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14# version 2 for more details (a copy is included in the LICENSE file that 15# accompanied this code). 16# 17# You should have received a copy of the GNU General Public License version 18# 2 along with this work; if not, write to the Free Software Foundation, 19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20# 21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22# or visit www.oracle.com if you need additional information or have any 23# questions. 24# 25 26############################################################################### 27# Check which variant of the JDK that we want to build. 28# Currently we have: 29# normal: standard edition 30# but the custom make system may add other variants 31# 32# Effectively the JDK variant gives a name to a specific set of 33# modules to compile into the JDK. 34AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VARIANT], 35[ 36 AC_MSG_CHECKING([which variant of the JDK to build]) 37 AC_ARG_WITH([jdk-variant], [AS_HELP_STRING([--with-jdk-variant], 38 [JDK variant to build (normal) @<:@normal@:>@])]) 39 40 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 41 JDK_VARIANT="normal" 42 else 43 AC_MSG_ERROR([The available JDK variants are: normal]) 44 fi 45 46 AC_SUBST(JDK_VARIANT) 47 48 AC_MSG_RESULT([$JDK_VARIANT]) 49]) 50 51############################################################################### 52# Set the debug level 53# release: no debug information, all optimizations, no asserts. 54# optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 55# fastdebug: debug information (-g), all optimizations, all asserts 56# slowdebug: debug information (-g), no optimizations, all asserts 57AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_LEVEL], 58[ 59 DEBUG_LEVEL="release" 60 AC_MSG_CHECKING([which debug level to use]) 61 AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], 62 [set the debug level to fastdebug (shorthand for --with-debug-level=fastdebug) @<:@disabled@:>@])], 63 [ 64 ENABLE_DEBUG="${enableval}" 65 DEBUG_LEVEL="fastdebug" 66 ], [ENABLE_DEBUG="no"]) 67 68 AC_ARG_WITH([debug-level], [AS_HELP_STRING([--with-debug-level], 69 [set the debug level (release, fastdebug, slowdebug, optimized) @<:@release@:>@])], 70 [ 71 DEBUG_LEVEL="${withval}" 72 if test "x$ENABLE_DEBUG" = xyes; then 73 AC_MSG_ERROR([You cannot use both --enable-debug and --with-debug-level at the same time.]) 74 fi 75 ]) 76 AC_MSG_RESULT([$DEBUG_LEVEL]) 77 78 if test "x$DEBUG_LEVEL" != xrelease && \ 79 test "x$DEBUG_LEVEL" != xoptimized && \ 80 test "x$DEBUG_LEVEL" != xfastdebug && \ 81 test "x$DEBUG_LEVEL" != xslowdebug; then 82 AC_MSG_ERROR([Allowed debug levels are: release, fastdebug, slowdebug and optimized]) 83 fi 84 85 # Translate DEBUG_LEVEL to debug level used by Hotspot 86 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 87 if test "x$DEBUG_LEVEL" = xrelease; then 88 HOTSPOT_DEBUG_LEVEL="product" 89 elif test "x$DEBUG_LEVEL" = xslowdebug; then 90 HOTSPOT_DEBUG_LEVEL="debug" 91 fi 92 93 if test "x$DEBUG_LEVEL" = xoptimized; then 94 # The debug level 'optimized' is a little special because it is currently only 95 # applicable to the HotSpot build where it means to build a completely 96 # optimized version of the VM without any debugging code (like for the 97 # 'release' debug level which is called 'product' in the HotSpot build) but 98 # with the exception that it can contain additional code which is otherwise 99 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 100 # test new and/or experimental features which are not intended for customer 101 # shipment. Because these new features need to be tested and benchmarked in 102 # real world scenarios, we want to build the containing JDK at the 'release' 103 # debug level. 104 DEBUG_LEVEL="release" 105 fi 106 107 AC_SUBST(HOTSPOT_DEBUG_LEVEL) 108 AC_SUBST(DEBUG_LEVEL) 109]) 110 111############################################################################### 112# 113# Should we build only OpenJDK even if closed sources are present? 114# 115AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM], 116[ 117 AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], 118 [suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) 119 120 AC_MSG_CHECKING([if custom source is suppressed (openjdk-only)]) 121 AC_MSG_RESULT([$enable_openjdk_only]) 122 if test "x$enable_openjdk_only" = "xyes"; then 123 SUPPRESS_CUSTOM_EXTENSIONS="true" 124 elif test "x$enable_openjdk_only" = "xno"; then 125 SUPPRESS_CUSTOM_EXTENSIONS="false" 126 else 127 AC_MSG_ERROR([Invalid value for --enable-openjdk-only: $enable_openjdk_only]) 128 fi 129 130 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 131 # the IncludeCustomExtension macro. 132 BASIC_DEPRECATED_ARG_WITH(custom-make-dir) 133]) 134 135AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], 136[ 137 # Should we build a JDK without a graphical UI? 138 AC_MSG_CHECKING([headless only]) 139 AC_ARG_ENABLE([headless-only], [AS_HELP_STRING([--enable-headless-only], 140 [only build headless (no GUI) support @<:@disabled@:>@])]) 141 142 if test "x$enable_headless_only" = "xyes"; then 143 ENABLE_HEADLESS_ONLY="true" 144 AC_MSG_RESULT([yes]) 145 elif test "x$enable_headless_only" = "xno"; then 146 ENABLE_HEADLESS_ONLY="false" 147 AC_MSG_RESULT([no]) 148 elif test "x$enable_headless_only" = "x"; then 149 ENABLE_HEADLESS_ONLY="false" 150 AC_MSG_RESULT([no]) 151 else 152 AC_MSG_ERROR([--enable-headless-only can only take yes or no]) 153 fi 154 155 AC_SUBST(ENABLE_HEADLESS_ONLY) 156 157 # Should we build the complete docs, or just a lightweight version? 158 AC_ARG_ENABLE([full-docs], [AS_HELP_STRING([--enable-full-docs], 159 [build complete documentation @<:@enabled if all tools found@:>@])]) 160 161 # Verify dependencies 162 AC_MSG_CHECKING([for graphviz dot]) 163 if test "x$DOT" != "x"; then 164 AC_MSG_RESULT([yes]) 165 else 166 AC_MSG_RESULT([no, cannot generate full docs]) 167 FULL_DOCS_DEP_MISSING=true 168 fi 169 170 AC_MSG_CHECKING([for pandoc]) 171 if test "x$PANDOC" != "x"; then 172 AC_MSG_RESULT([yes]) 173 else 174 AC_MSG_RESULT([no, cannot generate full docs]) 175 FULL_DOCS_DEP_MISSING=true 176 fi 177 178 AC_MSG_CHECKING([full docs]) 179 if test "x$enable_full_docs" = xyes; then 180 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 181 AC_MSG_RESULT([no, missing dependencies]) 182 HELP_MSG_MISSING_DEPENDENCY([dot]) 183 AC_MSG_ERROR([Cannot enable full docs with missing dependencies. See above. $HELP_MSG]) 184 else 185 ENABLE_FULL_DOCS=true 186 AC_MSG_RESULT([yes, forced]) 187 fi 188 elif test "x$enable_full_docs" = xno; then 189 ENABLE_FULL_DOCS=false 190 AC_MSG_RESULT([no, forced]) 191 elif test "x$enable_full_docs" = x; then 192 # Check for prerequisites 193 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 194 ENABLE_FULL_DOCS=false 195 AC_MSG_RESULT([no, missing dependencies]) 196 else 197 ENABLE_FULL_DOCS=true 198 AC_MSG_RESULT([yes, dependencies present]) 199 fi 200 else 201 AC_MSG_ERROR([--enable-full-docs can only take yes or no]) 202 fi 203 204 AC_SUBST(ENABLE_FULL_DOCS) 205 206 # Choose cacerts source file 207 AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file], 208 [specify alternative cacerts file])]) 209 if test "x$with_cacerts_file" != x; then 210 CACERTS_FILE=$with_cacerts_file 211 fi 212 AC_SUBST(CACERTS_FILE) 213 214 # Enable or disable unlimited crypto 215 AC_ARG_ENABLE(unlimited-crypto, [AS_HELP_STRING([--disable-unlimited-crypto], 216 [Disable unlimited crypto policy @<:@enabled@:>@])],, 217 [enable_unlimited_crypto=yes]) 218 if test "x$enable_unlimited_crypto" = "xyes"; then 219 UNLIMITED_CRYPTO=true 220 else 221 UNLIMITED_CRYPTO=false 222 fi 223 AC_SUBST(UNLIMITED_CRYPTO) 224 225 # Should we build the serviceability agent (SA)? 226 INCLUDE_SA=true 227 if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then 228 INCLUDE_SA=false 229 fi 230 if test "x$OPENJDK_TARGET_OS" = xaix ; then 231 INCLUDE_SA=false 232 fi 233 AC_SUBST(INCLUDE_SA) 234 235 # Compress jars 236 COMPRESS_JARS=false 237 238 AC_SUBST(COMPRESS_JARS) 239 240 # Setup default copyright year. Mostly overridden when building close to a new year. 241 AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], 242 [Set copyright year value for build @<:@current year@:>@])]) 243 if test "x$with_copyright_year" = xyes; then 244 AC_MSG_ERROR([Copyright year must have a value]) 245 elif test "x$with_copyright_year" != x; then 246 COPYRIGHT_YEAR="$with_copyright_year" 247 else 248 COPYRIGHT_YEAR=`$DATE +'%Y'` 249 fi 250 AC_SUBST(COPYRIGHT_YEAR) 251]) 252 253############################################################################### 254# 255# Enable or disable the elliptic curve crypto implementation 256# 257AC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC], 258[ 259 AC_MSG_CHECKING([if elliptic curve crypto implementation is present]) 260 261 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 262 ENABLE_INTREE_EC=true 263 AC_MSG_RESULT([yes]) 264 else 265 ENABLE_INTREE_EC=false 266 AC_MSG_RESULT([no]) 267 fi 268 269 AC_SUBST(ENABLE_INTREE_EC) 270]) 271 272AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS], 273[ 274 # 275 # NATIVE_DEBUG_SYMBOLS 276 # This must be done after the toolchain is setup, since we're looking at objcopy. 277 # 278 AC_MSG_CHECKING([what type of native debug symbols to use]) 279 AC_ARG_WITH([native-debug-symbols], 280 [AS_HELP_STRING([--with-native-debug-symbols], 281 [set the native debug symbol configuration (none, internal, external, zipped) @<:@varying@:>@])], 282 [ 283 if test "x$OPENJDK_TARGET_OS" = xaix; then 284 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 285 AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols]) 286 fi 287 fi 288 ], 289 [ 290 if test "x$OPENJDK_TARGET_OS" = xaix; then 291 # AIX doesn't support 'zipped' so use 'internal' as default 292 with_native_debug_symbols="internal" 293 else 294 if test "x$STATIC_BUILD" = xtrue; then 295 with_native_debug_symbols="none" 296 else 297 with_native_debug_symbols="zipped" 298 fi 299 fi 300 ]) 301 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 302 AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS]) 303 304 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 305 306 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 307 if test "x$OBJCOPY" = x; then 308 # enabling of enable-debug-symbols and can't find objcopy 309 # this is an error 310 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) 311 fi 312 fi 313 314 COMPILE_WITH_DEBUG_SYMBOLS=true 315 COPY_DEBUG_SYMBOLS=true 316 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 317 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 318 COMPILE_WITH_DEBUG_SYMBOLS=false 319 COPY_DEBUG_SYMBOLS=false 320 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 321 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 322 COMPILE_WITH_DEBUG_SYMBOLS=true 323 COPY_DEBUG_SYMBOLS=false 324 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 325 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 326 327 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 328 if test "x$OBJCOPY" = x; then 329 # enabling of enable-debug-symbols and can't find objcopy 330 # this is an error 331 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) 332 fi 333 fi 334 335 COMPILE_WITH_DEBUG_SYMBOLS=true 336 COPY_DEBUG_SYMBOLS=true 337 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 338 else 339 AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped]) 340 fi 341 342 # --enable-debug-symbols is deprecated. 343 # Please use --with-native-debug-symbols=[internal,external,zipped] . 344 BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols, 345 [Please use --with-native-debug-symbols=[[internal,external,zipped]] .]) 346 347 # --enable-zip-debug-info is deprecated. 348 # Please use --with-native-debug-symbols=zipped . 349 BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info, 350 [Please use --with-native-debug-symbols=zipped .]) 351 352 AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS) 353 AC_SUBST(COPY_DEBUG_SYMBOLS) 354 AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS) 355]) 356 357################################################################################ 358# 359# Gcov coverage data for hotspot 360# 361AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE], 362[ 363 AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage], 364 [enable native compilation with code coverage data@<:@disabled@:>@])]) 365 GCOV_ENABLED="false" 366 if test "x$enable_native_coverage" = "xyes"; then 367 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 368 AC_MSG_CHECKING([if native coverage is enabled]) 369 AC_MSG_RESULT([yes]) 370 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 371 GCOV_LDFLAGS="-fprofile-arcs" 372 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 373 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 374 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 375 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 376 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 377 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 378 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 379 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 380 GCOV_ENABLED="true" 381 else 382 AC_MSG_ERROR([--enable-native-coverage only works with toolchain type gcc]) 383 fi 384 elif test "x$enable_native_coverage" = "xno"; then 385 AC_MSG_CHECKING([if native coverage is enabled]) 386 AC_MSG_RESULT([no]) 387 elif test "x$enable_native_coverage" != "x"; then 388 AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"]) 389 fi 390 391 AC_SUBST(GCOV_ENABLED) 392]) 393 394################################################################################ 395# 396# Static build support. When enabled will generate static 397# libraries instead of shared libraries for all JDK libs. 398# 399AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD], 400[ 401 AC_ARG_ENABLE([static-build], [AS_HELP_STRING([--enable-static-build], 402 [enable static library build @<:@disabled@:>@])]) 403 STATIC_BUILD=false 404 if test "x$enable_static_build" = "xyes"; then 405 AC_MSG_CHECKING([if static build is enabled]) 406 AC_MSG_RESULT([yes]) 407 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 408 AC_MSG_ERROR([--enable-static-build is only supported for macosx builds]) 409 fi 410 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 411 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 412 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 413 STATIC_BUILD=true 414 elif test "x$enable_static_build" = "xno"; then 415 AC_MSG_CHECKING([if static build is enabled]) 416 AC_MSG_RESULT([no]) 417 elif test "x$enable_static_build" != "x"; then 418 AC_MSG_ERROR([--enable-static-build can only be assigned "yes" or "no"]) 419 fi 420 421 AC_SUBST(STATIC_BUILD) 422]) 423 424################################################################################ 425# 426# jlink options. 427# We always keep packaged modules in JDK image. 428# 429AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS], 430[ 431 AC_ARG_ENABLE([keep-packaged-modules], [AS_HELP_STRING([--disable-keep-packaged-modules], 432 [Do not keep packaged modules in jdk image @<:@enable@:>@])]) 433 434 AC_MSG_CHECKING([if packaged modules are kept]) 435 if test "x$enable_keep_packaged_modules" = "xyes"; then 436 AC_MSG_RESULT([yes]) 437 JLINK_KEEP_PACKAGED_MODULES=true 438 elif test "x$enable_keep_packaged_modules" = "xno"; then 439 AC_MSG_RESULT([no]) 440 JLINK_KEEP_PACKAGED_MODULES=false 441 elif test "x$enable_keep_packaged_modules" = "x"; then 442 AC_MSG_RESULT([yes (default)]) 443 JLINK_KEEP_PACKAGED_MODULES=true 444 else 445 AC_MSG_RESULT([error]) 446 AC_MSG_ERROR([--enable-keep-packaged-modules accepts no argument]) 447 fi 448 449 AC_SUBST(JLINK_KEEP_PACKAGED_MODULES) 450]) 451 452################################################################################ 453# 454# Check if building of the jtreg failure handler should be enabled. 455# 456AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_FAILURE_HANDLER], 457[ 458 AC_ARG_ENABLE([jtreg-failure-handler], [AS_HELP_STRING([--enable-jtreg-failure-handler], 459 [forces build of the jtreg failure handler to be enabled, missing dependencies 460 become fatal errors. Default is auto, where the failure handler is built if all 461 dependencies are present and otherwise just disabled.])]) 462 463 AC_MSG_CHECKING([if jtreg failure handler should be built]) 464 465 if test "x$enable_jtreg_failure_handler" = "xyes"; then 466 if test "x$JT_HOME" = "x"; then 467 AC_MSG_ERROR([Cannot enable jtreg failure handler without jtreg.]) 468 else 469 BUILD_FAILURE_HANDLER=true 470 AC_MSG_RESULT([yes, forced]) 471 fi 472 elif test "x$enable_jtreg_failure_handler" = "xno"; then 473 BUILD_FAILURE_HANDLER=false 474 AC_MSG_RESULT([no, forced]) 475 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 476 || test "x$enable_jtreg_failure_handler" = "x"; then 477 if test "x$JT_HOME" = "x"; then 478 BUILD_FAILURE_HANDLER=false 479 AC_MSG_RESULT([no, missing jtreg]) 480 else 481 BUILD_FAILURE_HANDLER=true 482 AC_MSG_RESULT([yes, jtreg present]) 483 fi 484 else 485 AC_MSG_ERROR([Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler]) 486 fi 487 488 AC_SUBST(BUILD_FAILURE_HANDLER) 489]) 490 491################################################################################ 492# 493# Enable or disable generation of the classlist at build time 494# 495AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST], 496[ 497 AC_ARG_ENABLE([generate-classlist], [AS_HELP_STRING([--disable-generate-classlist], 498 [forces enabling or disabling of the generation of a CDS classlist at build time. 499 Default is to generate it when either the server or client JVMs are built and 500 enable-cds is true.])]) 501 502 # Check if it's likely that it's possible to generate the classlist. Depending 503 # on exact jvm configuration it could be possible anyway. 504 if test "x$ENABLE_CDS" = "xtrue" && (HOTSPOT_CHECK_JVM_VARIANT(server) || HOTSPOT_CHECK_JVM_VARIANT(client)); then 505 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 506 else 507 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 508 fi 509 510 AC_MSG_CHECKING([if the CDS classlist generation should be enabled]) 511 if test "x$enable_generate_classlist" = "xyes"; then 512 AC_MSG_RESULT([yes, forced]) 513 ENABLE_GENERATE_CLASSLIST="true" 514 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 515 AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS]) 516 fi 517 elif test "x$enable_generate_classlist" = "xno"; then 518 AC_MSG_RESULT([no, forced]) 519 ENABLE_GENERATE_CLASSLIST="false" 520 elif test "x$enable_generate_classlist" = "x"; then 521 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 522 AC_MSG_RESULT([yes]) 523 ENABLE_GENERATE_CLASSLIST="true" 524 else 525 AC_MSG_RESULT([no]) 526 ENABLE_GENERATE_CLASSLIST="false" 527 fi 528 else 529 AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist]) 530 fi 531 532 AC_SUBST(ENABLE_GENERATE_CLASSLIST) 533]) 534