< prev index next >

common/autoconf/jdk-options.m4

Print this page




 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 #
 115 AC_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([for presence of closed sources])
 121   if test -d "$SRC_ROOT/jdk/src/closed"; then
 122     CLOSED_SOURCE_PRESENT=yes



 123   else
 124     CLOSED_SOURCE_PRESENT=no
 125   fi
 126   AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT])
 127 
 128   AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)])
 129   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
 130   AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE])
 131 
 132   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
 133     OPENJDK=true
 134     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
 135       AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense])
 136     fi
 137   else
 138     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
 139       OPENJDK=true
 140     else
 141       OPENJDK=false
 142     fi
 143   fi
 144 
 145   if test "x$OPENJDK" = "xtrue"; then
 146     SET_OPENJDK="OPENJDK=true"
 147   fi
 148 
 149   AC_SUBST(SET_OPENJDK)
 150 
 151   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
 152   # the IncludeCustomExtension macro.
 153   BASIC_DEPRECATED_ARG_WITH(custom-make-dir)
 154 ])
 155 
 156 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
 157 [
 158   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
 159   # We always build headless support.
 160   AC_MSG_CHECKING([headful support])
 161   AC_ARG_ENABLE([headful], [AS_HELP_STRING([--disable-headful],
 162       [disable building headful support (graphical UI support) @<:@enabled@:>@])],
 163       [SUPPORT_HEADFUL=${enable_headful}], [SUPPORT_HEADFUL=yes])
 164 
 165   SUPPORT_HEADLESS=yes
 166   BUILD_HEADLESS="BUILD_HEADLESS:=true"
 167 
 168   if test "x$SUPPORT_HEADFUL" = xyes; then
 169     # We are building both headful and headless.




 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 #
 115 AC_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_SOURCE="true"
 124   elif test "x$enable_openjdk_only" = "xno"; then
 125     SUPPRESS_CUSTOM_SOURCE="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 
 135 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
 136 [
 137   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
 138   # We always build headless support.
 139   AC_MSG_CHECKING([headful support])
 140   AC_ARG_ENABLE([headful], [AS_HELP_STRING([--disable-headful],
 141       [disable building headful support (graphical UI support) @<:@enabled@:>@])],
 142       [SUPPORT_HEADFUL=${enable_headful}], [SUPPORT_HEADFUL=yes])
 143 
 144   SUPPORT_HEADLESS=yes
 145   BUILD_HEADLESS="BUILD_HEADLESS:=true"
 146 
 147   if test "x$SUPPORT_HEADFUL" = xyes; then
 148     # We are building both headful and headless.


< prev index next >