245 AC_SUBST(FASTDEBUG) |
245 AC_SUBST(FASTDEBUG) |
246 AC_SUBST(DEBUG_CLASSFILES) |
246 AC_SUBST(DEBUG_CLASSFILES) |
247 AC_SUBST(BUILD_VARIANT_RELEASE) |
247 AC_SUBST(BUILD_VARIANT_RELEASE) |
248 ]) |
248 ]) |
249 |
249 |
|
250 |
|
251 ############################################################################### |
|
252 # |
|
253 # Should we build only OpenJDK even if closed sources are present? |
|
254 # |
|
255 AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM], |
|
256 [ |
|
257 AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], |
|
258 [suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) |
|
259 |
|
260 AC_MSG_CHECKING([for presence of closed sources]) |
|
261 if test -d "$SRC_ROOT/jdk/src/closed"; then |
|
262 CLOSED_SOURCE_PRESENT=yes |
|
263 else |
|
264 CLOSED_SOURCE_PRESENT=no |
|
265 fi |
|
266 AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT]) |
|
267 |
|
268 AC_MSG_CHECKING([if closed source is suppressed (openjdk-only)]) |
|
269 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" |
|
270 AC_MSG_RESULT([$SUPPRESS_CLOSED_SOURCE]) |
|
271 |
|
272 if test "x$CLOSED_SOURCE_PRESENT" = xno; then |
|
273 OPENJDK=true |
|
274 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then |
|
275 AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense]) |
|
276 fi |
|
277 else |
|
278 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then |
|
279 OPENJDK=true |
|
280 else |
|
281 OPENJDK=false |
|
282 fi |
|
283 fi |
|
284 |
|
285 if test "x$OPENJDK" = "xtrue"; then |
|
286 SET_OPENJDK="OPENJDK=true" |
|
287 fi |
|
288 |
|
289 AC_SUBST(SET_OPENJDK) |
|
290 ]) |
|
291 |
250 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], |
292 AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], |
251 [ |
293 [ |
252 |
|
253 ############################################################################### |
|
254 # |
|
255 # Should we build only OpenJDK even if closed sources are present? |
|
256 # |
|
257 AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], |
|
258 [supress building closed source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) |
|
259 |
|
260 AC_MSG_CHECKING([for presence of closed sources]) |
|
261 if test -d "$SRC_ROOT/jdk/src/closed"; then |
|
262 CLOSED_SOURCE_PRESENT=yes |
|
263 else |
|
264 CLOSED_SOURCE_PRESENT=no |
|
265 fi |
|
266 AC_MSG_RESULT([$CLOSED_SOURCE_PRESENT]) |
|
267 |
|
268 AC_MSG_CHECKING([if closed source is supressed (openjdk-only)]) |
|
269 SUPRESS_CLOSED_SOURCE="$enable_openjdk_only" |
|
270 AC_MSG_RESULT([$SUPRESS_CLOSED_SOURCE]) |
|
271 |
|
272 if test "x$CLOSED_SOURCE_PRESENT" = xno; then |
|
273 OPENJDK=true |
|
274 if test "x$SUPRESS_CLOSED_SOURCE" = "xyes"; then |
|
275 AC_MSG_WARN([No closed source present, --enable-openjdk-only makes no sense]) |
|
276 fi |
|
277 else |
|
278 if test "x$SUPRESS_CLOSED_SOURCE" = "xyes"; then |
|
279 OPENJDK=true |
|
280 else |
|
281 OPENJDK=false |
|
282 fi |
|
283 fi |
|
284 |
|
285 if test "x$OPENJDK" = "xtrue"; then |
|
286 SET_OPENJDK="OPENJDK=true" |
|
287 fi |
|
288 |
|
289 AC_SUBST(SET_OPENJDK) |
|
290 |
294 |
291 ############################################################################### |
295 ############################################################################### |
292 # |
296 # |
293 # Should we build a JDK/JVM with headful support (ie a graphical ui)? |
297 # Should we build a JDK/JVM with headful support (ie a graphical ui)? |
294 # We always build headless support. |
298 # We always build headless support. |