@@ -586,13 +586,42 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JMOD_OPTIONS],
586586# ###############################################################################
587587#
588588# jlink options.
589- # We always keep packaged modules in JDK image.
590589#
591590AC_DEFUN_ONCE ( [ JDKOPT_SETUP_JLINK_OPTIONS] ,
592591[
593- UTIL_ARG_ENABLE(NAME: keep-packaged-modules, DEFAULT: true,
592+
593+ ################################################################################
594+ #
595+ # Configure option for building a JDK that is suitable for linking from the
596+ # run-time image without JMODs.
597+ #
598+ # Determines whether or not a suitable run-time image is being produced from
599+ # packaged modules. If set to 'true, changes the *default* of packaged
600+ # modules to 'false'.
601+ #
602+ UTIL_ARG_ENABLE(NAME: linkable-runtime, DEFAULT: false,
603+ RESULT: JLINK_PRODUCE_LINKABLE_RUNTIME,
604+ DESC: [ enable a JDK build suitable for linking from the run-time image] ,
605+ CHECKING_MSG: [ whether or not a JDK suitable for linking from the run-time image should be produced] )
606+ AC_SUBST ( JLINK_PRODUCE_LINKABLE_RUNTIME )
607+
608+ if test "x$JLINK_PRODUCE_LINKABLE_RUNTIME" = xtrue; then
609+ DEFAULT_PACKAGED_MODULES=false
610+ else
611+ DEFAULT_PACKAGED_MODULES=true
612+ fi
613+
614+ ################################################################################
615+ #
616+ # Configure option for packaged modules
617+ #
618+ # We keep packaged modules in the JDK image unless --enable-linkable-runtime is
619+ # requested.
620+ #
621+ UTIL_ARG_ENABLE(NAME: keep-packaged-modules, DEFAULT: $DEFAULT_PACKAGED_MODULES,
594622 RESULT: JLINK_KEEP_PACKAGED_MODULES,
595623 DESC: [ enable keeping of packaged modules in jdk image] ,
624+ DEFAULT_DESC: [ enabled by default unless --enable-linkable-runtime is set] ,
596625 CHECKING_MSG: [ if packaged modules are kept] )
597626 AC_SUBST ( JLINK_KEEP_PACKAGED_MODULES )
598627] )
@@ -638,14 +667,11 @@ AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS],
638667
639668# ###############################################################################
640669#
641- # Optionally disable man pages
670+ # Optionally disable man pages (deprecated)
642671#
643672AC_DEFUN ( [ JDKOPT_ENABLE_DISABLE_MANPAGES] ,
644673[
645- UTIL_ARG_ENABLE(NAME: manpages, DEFAULT: true, RESULT: BUILD_MANPAGES,
646- DESC: [ enable copying of static man pages] ,
647- CHECKING_MSG: [ if static man pages should be copied] )
648- AC_SUBST ( BUILD_MANPAGES )
674+ UTIL_DEPRECATED_ARG_ENABLE(manpages)
649675] )
650676
651677# ###############################################################################
0 commit comments