jdk-options.m4 revision 2024:cc16e2a24f94
1279377Simp# 2279377Simp# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3279377Simp# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4279377Simp# 5279377Simp# This code is free software; you can redistribute it and/or modify it 6279377Simp# under the terms of the GNU General Public License version 2 only, as 7279377Simp# published by the Free Software Foundation. Oracle designates this 8279377Simp# particular file as subject to the "Classpath" exception as provided 9279377Simp# by Oracle in the LICENSE file that accompanied this code. 10279377Simp# 11279377Simp# This code is distributed in the hope that it will be useful, but WITHOUT 12279377Simp# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13279377Simp# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14279377Simp# version 2 for more details (a copy is included in the LICENSE file that 15279377Simp# accompanied this code). 16279377Simp# 17279377Simp# You should have received a copy of the GNU General Public License version 18279377Simp# 2 along with this work; if not, write to the Free Software Foundation, 19279377Simp# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20279377Simp# 21279377Simp# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22279377Simp# or visit www.oracle.com if you need additional information or have any 23279377Simp# questions. 24279377Simp# 25279377Simp 26279377Simp############################################################################### 27279377Simp# Check which variant of the JDK that we want to build. 28279377Simp# Currently we have: 29279377Simp# normal: standard edition 30279377Simp# but the custom make system may add other variants 31279377Simp# 32279377Simp# Effectively the JDK variant gives a name to a specific set of 33279377Simp# modules to compile into the JDK. 34279377SimpAC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VARIANT], 35279377Simp[ 36279377Simp AC_MSG_CHECKING([which variant of the JDK to build]) 37279377Simp AC_ARG_WITH([jdk-variant], [AS_HELP_STRING([--with-jdk-variant], 38279377Simp [JDK variant to build (normal) @<:@normal@:>@])]) 39279377Simp 40279377Simp if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 41279377Simp JDK_VARIANT="normal" 42279377Simp else 43279377Simp AC_MSG_ERROR([The available JDK variants are: normal]) 44279377Simp fi 45279377Simp 46279377Simp AC_SUBST(JDK_VARIANT) 47279377Simp 48279377Simp AC_MSG_RESULT([$JDK_VARIANT]) 49279377Simp]) 50279377Simp 51279377Simp############################################################################### 52279377Simp# Set the debug level 53279377Simp# release: no debug information, all optimizations, no asserts. 54279377Simp# optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 55279377Simp# fastdebug: debug information (-g), all optimizations, all asserts 56279377Simp# slowdebug: debug information (-g), no optimizations, all asserts 57279377SimpAC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_LEVEL], 58279377Simp[ 59279377Simp DEBUG_LEVEL="release" 60279377Simp AC_MSG_CHECKING([which debug level to use]) 61279377Simp AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], 62279377Simp [set the debug level to fastdebug (shorthand for --with-debug-level=fastdebug) @<:@disabled@:>@])], 63279377Simp [ 64279377Simp ENABLE_DEBUG="${enableval}" 65279377Simp DEBUG_LEVEL="fastdebug" 66279377Simp ], [ENABLE_DEBUG="no"]) 67279377Simp 68279377Simp AC_ARG_WITH([debug-level], [AS_HELP_STRING([--with-debug-level], 69279377Simp [set the debug level (release, fastdebug, slowdebug, optimized) @<:@release@:>@])], 70279377Simp [ 71279377Simp DEBUG_LEVEL="${withval}" 72279377Simp if test "x$ENABLE_DEBUG" = xyes; then 73279377Simp AC_MSG_ERROR([You cannot use both --enable-debug and --with-debug-level at the same time.]) 74279377Simp fi 75279377Simp ]) 76279377Simp AC_MSG_RESULT([$DEBUG_LEVEL]) 77279377Simp 78279377Simp if test "x$DEBUG_LEVEL" != xrelease && \ 79279377Simp test "x$DEBUG_LEVEL" != xoptimized && \ 80279377Simp test "x$DEBUG_LEVEL" != xfastdebug && \ 81279377Simp test "x$DEBUG_LEVEL" != xslowdebug; then 82279377Simp AC_MSG_ERROR([Allowed debug levels are: release, fastdebug, slowdebug and optimized]) 83279377Simp fi 84279377Simp 85279377Simp # Translate DEBUG_LEVEL to debug level used by Hotspot 86279377Simp HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 87279377Simp if test "x$DEBUG_LEVEL" = xrelease; then 88279377Simp HOTSPOT_DEBUG_LEVEL="product" 89279377Simp elif test "x$DEBUG_LEVEL" = xslowdebug; then 90279377Simp HOTSPOT_DEBUG_LEVEL="debug" 91279377Simp fi 92279377Simp 93279377Simp if test "x$DEBUG_LEVEL" = xoptimized; then 94279377Simp # The debug level 'optimized' is a little special because it is currently only 95279377Simp # applicable to the HotSpot build where it means to build a completely 96279377Simp # optimized version of the VM without any debugging code (like for the 97279377Simp # 'release' debug level which is called 'product' in the HotSpot build) but 98279377Simp # with the exception that it can contain additional code which is otherwise 99279377Simp # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 100279377Simp # test new and/or experimental features which are not intended for customer 101279377Simp # shipment. Because these new features need to be tested and benchmarked in 102279377Simp # real world scenarios, we want to build the containing JDK at the 'release' 103279377Simp # debug level. 104279377Simp DEBUG_LEVEL="release" 105279377Simp fi 106279377Simp 107279377Simp AC_SUBST(HOTSPOT_DEBUG_LEVEL) 108279377Simp AC_SUBST(DEBUG_LEVEL) 109279377Simp]) 110279377Simp 111279377Simp############################################################################### 112279377Simp# 113279377Simp# Should we build only OpenJDK even if closed sources are present? 114279377Simp# 115279377SimpAC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM], 116279377Simp[ 117279377Simp AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], 118279377Simp [suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) 119279377Simp 120279377Simp AC_MSG_CHECKING([for presence of closed sources]) 121279377Simp if test -d "$SRC_ROOT/jdk/src/closed"; then 122279377Simp CLOSED_SOURCE_PRESENT=yes 123279377Simp else 124279377Simp CLOSED_SOURCE_PRESENT=no 125279377Simp fi 126279377Simp AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT]) 127279377Simp 128279377Simp AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)]) 129279377Simp SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 130279377Simp AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE]) 131279377Simp 132279377Simp if test "x$CLOSED_SOURCE_PRESENT" = xno; then 133279377Simp OPENJDK=true 134279377Simp if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 135279377Simp AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense]) 136279377Simp fi 137279377Simp else 138279377Simp if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 139279377Simp OPENJDK=true 140279377Simp else 141279377Simp OPENJDK=false 142279377Simp fi 143279377Simp fi 144279377Simp 145279377Simp if test "x$OPENJDK" = "xtrue"; then 146279377Simp SET_OPENJDK="OPENJDK=true" 147279377Simp fi 148279377Simp 149279377Simp AC_SUBST(SET_OPENJDK) 150279377Simp 151279377Simp # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 152279377Simp # the IncludeCustomExtension macro. 153279377Simp BASIC_DEPRECATED_ARG_WITH(custom-make-dir) 154279377Simp]) 155279377Simp 156279377SimpAC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], 157279377Simp[ 158279377Simp # Should we build a JDK/JVM with headful support (ie a graphical ui)? 159279377Simp # We always build headless support. 160279377Simp AC_MSG_CHECKING([headful support]) 161279377Simp AC_ARG_ENABLE([headful], [AS_HELP_STRING([--disable-headful], 162279377Simp [disable building headful support (graphical UI support) @<:@enabled@:>@])], 163279377Simp [SUPPORT_HEADFUL=${enable_headful}], [SUPPORT_HEADFUL=yes]) 164279377Simp 165279377Simp SUPPORT_HEADLESS=yes 166279377Simp BUILD_HEADLESS="BUILD_HEADLESS:=true" 167279377Simp 168279377Simp if test "x$SUPPORT_HEADFUL" = xyes; then 169279377Simp # We are building both headful and headless. 170279377Simp headful_msg="include support for both headful and headless" 171279377Simp fi 172279377Simp 173279377Simp if test "x$SUPPORT_HEADFUL" = xno; then 174279377Simp # Thus we are building headless only. 175279377Simp BUILD_HEADLESS="BUILD_HEADLESS:=true" 176279377Simp headful_msg="headless only" 177279377Simp fi 178279377Simp 179279377Simp AC_MSG_RESULT([$headful_msg]) 180279377Simp 181279377Simp AC_SUBST(SUPPORT_HEADLESS) 182279377Simp AC_SUBST(SUPPORT_HEADFUL) 183279377Simp AC_SUBST(BUILD_HEADLESS) 184279377Simp 185279377Simp # Choose cacerts source file 186279377Simp AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file], 187279377Simp [specify alternative cacerts file])]) 188279377Simp if test "x$with_cacerts_file" != x; then 189279377Simp CACERTS_FILE=$with_cacerts_file 190279377Simp fi 191279377Simp AC_SUBST(CACERTS_FILE) 192279377Simp 193279377Simp # Enable or disable unlimited crypto 194279377Simp AC_ARG_ENABLE(unlimited-crypto, [AS_HELP_STRING([--enable-unlimited-crypto], 195279377Simp [Enable unlimited crypto policy @<:@disabled@:>@])],, 196279377Simp [enable_unlimited_crypto=no]) 197279377Simp if test "x$enable_unlimited_crypto" = "xyes"; then 198279377Simp UNLIMITED_CRYPTO=true 199279377Simp else 200279377Simp UNLIMITED_CRYPTO=false 201279377Simp fi 202279377Simp AC_SUBST(UNLIMITED_CRYPTO) 203279377Simp 204279377Simp # Should we build the serviceability agent (SA)? 205279377Simp INCLUDE_SA=true 206279377Simp if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then 207279377Simp INCLUDE_SA=false 208279377Simp fi 209279377Simp if test "x$OPENJDK_TARGET_OS" = xaix ; then 210279377Simp INCLUDE_SA=false 211279377Simp fi 212279377Simp if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 213279377Simp INCLUDE_SA=false 214279377Simp fi 215279377Simp AC_SUBST(INCLUDE_SA) 216279377Simp 217279377Simp # Compress jars 218279377Simp COMPRESS_JARS=false 219279377Simp 220279377Simp AC_SUBST(COMPRESS_JARS) 221279377Simp 222279377Simp # Setup default copyright year. Mostly overridden when building close to a new year. 223279377Simp AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], 224279377Simp [Set copyright year value for build @<:@current year@:>@])]) 225279377Simp if test "x$with_copyright_year" = xyes; then 226279377Simp AC_MSG_ERROR([Copyright year must have a value]) 227279377Simp elif test "x$with_copyright_year" != x; then 228279377Simp COPYRIGHT_YEAR="$with_copyright_year" 229279377Simp else 230279377Simp COPYRIGHT_YEAR=`date +'%Y'` 231279377Simp fi 232279377Simp AC_SUBST(COPYRIGHT_YEAR) 233279377Simp]) 234279377Simp 235279377Simp############################################################################### 236279377Simp# 237279377Simp# Enable or disable the elliptic curve crypto implementation 238279377Simp# 239279377SimpAC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC], 240279377Simp[ 241279377Simp AC_MSG_CHECKING([if elliptic curve crypto implementation is present]) 242279377Simp 243279377Simp if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 244279377Simp ENABLE_INTREE_EC=yes 245279377Simp AC_MSG_RESULT([yes]) 246279377Simp else 247279377Simp ENABLE_INTREE_EC=no 248279377Simp AC_MSG_RESULT([no]) 249279377Simp fi 250279377Simp 251279377Simp AC_SUBST(ENABLE_INTREE_EC) 252279377Simp]) 253279377Simp 254279377SimpAC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS], 255279377Simp[ 256279377Simp # 257279377Simp # NATIVE_DEBUG_SYMBOLS 258279377Simp # This must be done after the toolchain is setup, since we're looking at objcopy. 259279377Simp # 260279377Simp AC_MSG_CHECKING([what type of native debug symbols to use]) 261279377Simp AC_ARG_WITH([native-debug-symbols], 262279377Simp [AS_HELP_STRING([--with-native-debug-symbols], 263279377Simp [set the native debug symbol configuration (none, internal, external, zipped) @<:@varying@:>@])], 264279377Simp [ 265279377Simp if test "x$OPENJDK_TARGET_OS" = xaix; then 266279377Simp if test "x$withval" = xexternal || test "x$withval" = xzipped; then 267279377Simp AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols]) 268279377Simp fi 269279377Simp fi 270279377Simp ], 271279377Simp [ 272279377Simp if test "x$OPENJDK_TARGET_OS" = xaix; then 273279377Simp # AIX doesn't support 'zipped' so use 'internal' as default 274279377Simp with_native_debug_symbols="internal" 275279377Simp else 276279377Simp if test "x$STATIC_BUILD" = xtrue; then 277279377Simp with_native_debug_symbols="none" 278279377Simp else 279279377Simp with_native_debug_symbols="zipped" 280279377Simp fi 281279377Simp fi 282279377Simp ]) 283279377Simp NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 284279377Simp AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS]) 285279377Simp 286279377Simp if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 287279377Simp 288279377Simp if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 289279377Simp if test "x$OBJCOPY" = x; then 290279377Simp # enabling of enable-debug-symbols and can't find objcopy 291279377Simp # this is an error 292279377Simp AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) 293279377Simp fi 294279377Simp fi 295279377Simp 296279377Simp COMPILE_WITH_DEBUG_SYMBOLS=true 297279377Simp COPY_DEBUG_SYMBOLS=true 298279377Simp ZIP_EXTERNAL_DEBUG_SYMBOLS=true 299 300 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 301 DEBUG_BINARIES=false 302 STRIP_POLICY=min_strip 303 304 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 305 COMPILE_WITH_DEBUG_SYMBOLS=false 306 COPY_DEBUG_SYMBOLS=false 307 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 308 309 DEBUG_BINARIES=false 310 STRIP_POLICY=no_strip 311 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 312 COMPILE_WITH_DEBUG_SYMBOLS=true 313 COPY_DEBUG_SYMBOLS=false 314 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 315 316 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 317 DEBUG_BINARIES=true 318 STRIP_POLICY=no_strip 319 STRIP="" 320 321 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 322 323 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 324 if test "x$OBJCOPY" = x; then 325 # enabling of enable-debug-symbols and can't find objcopy 326 # this is an error 327 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) 328 fi 329 fi 330 331 COMPILE_WITH_DEBUG_SYMBOLS=true 332 COPY_DEBUG_SYMBOLS=true 333 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 334 335 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 336 DEBUG_BINARIES=false 337 STRIP_POLICY=min_strip 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 # Legacy values 357 AC_SUBST(DEBUG_BINARIES) 358 AC_SUBST(STRIP_POLICY) 359]) 360 361################################################################################ 362# 363# Gcov coverage data for hotspot 364# 365AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE], 366[ 367 AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage], 368 [enable native compilation with code coverage data@<:@disabled@:>@])]) 369 GCOV_ENABLED="false" 370 if test "x$enable_native_coverage" = "xyes"; then 371 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 372 AC_MSG_CHECKING([if native coverage is enabled]) 373 AC_MSG_RESULT([yes]) 374 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 375 GCOV_LDFLAGS="-fprofile-arcs" 376 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 377 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 378 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 379 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 380 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 381 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 382 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 383 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 384 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 385 GCOV_ENABLED="true" 386 else 387 AC_MSG_ERROR([--enable-native-coverage only works with toolchain type gcc]) 388 fi 389 elif test "x$enable_native_coverage" = "xno"; then 390 AC_MSG_CHECKING([if native coverage is enabled]) 391 AC_MSG_RESULT([no]) 392 elif test "x$enable_native_coverage" != "x"; then 393 AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"]) 394 fi 395 396 AC_SUBST(GCOV_ENABLED) 397]) 398 399################################################################################ 400# 401# Static build support. When enabled will generate static 402# libraries instead of shared libraries for all JDK libs. 403# 404AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD], 405[ 406 AC_ARG_ENABLE([static-build], [AS_HELP_STRING([--enable-static-build], 407 [enable static library build @<:@disabled@:>@])]) 408 STATIC_BUILD=false 409 if test "x$enable_static_build" = "xyes"; then 410 AC_MSG_CHECKING([if static build is enabled]) 411 AC_MSG_RESULT([yes]) 412 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 413 AC_MSG_ERROR([--enable-static-build is only supported for macosx builds]) 414 fi 415 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 416 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 417 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 418 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 419 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 420 STATIC_BUILD=true 421 elif test "x$enable_static_build" = "xno"; then 422 AC_MSG_CHECKING([if static build is enabled]) 423 AC_MSG_RESULT([no]) 424 elif test "x$enable_static_build" != "x"; then 425 AC_MSG_ERROR([--enable-static-build can only be assigned "yes" or "no"]) 426 fi 427 428 AC_SUBST(STATIC_BUILD) 429]) 430 431################################################################################ 432# 433# jlink options. 434# We always keep packaged modules in JDK image. 435# 436AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS], 437[ 438 AC_ARG_ENABLE([keep-packaged-modules], [AS_HELP_STRING([--disable-keep-packaged-modules], 439 [Do not keep packaged modules in jdk image @<:@enable@:>@])]) 440 441 if test "x$enable_keep_packaged_modules" = "xyes"; then 442 AC_MSG_CHECKING([if packaged modules are kept]) 443 AC_MSG_RESULT([yes]) 444 JLINK_KEEP_PACKAGED_MODULES=true 445 elif test "x$enable_keep_packaged_modules" = "xno"; then 446 AC_MSG_CHECKING([if packaged modules are kept]) 447 AC_MSG_RESULT([no]) 448 JLINK_KEEP_PACKAGED_MODULES=false 449 elif test "x$enable_keep_packaged_modules" = "x"; then 450 AC_MSG_RESULT([yes (default)]) 451 JLINK_KEEP_PACKAGED_MODULES=true 452 else 453 AC_MSG_ERROR([--enable-keep-packaged-modules accepts no argument]) 454 fi 455 456 AC_SUBST(JLINK_KEEP_PACKAGED_MODULES) 457]) 458