< prev index next >

make/autoconf/jdk-options.m4

Print this page

 737       CHECKING_MSG: [if a default CDS archive should be generated],
 738       CHECK_AVAILABLE: [
 739         AC_MSG_CHECKING([if CDS archive is available])
 740         if test "x$ENABLE_CDS" = "xfalse"; then
 741           AC_MSG_RESULT([no (CDS is disabled)])
 742           AVAILABLE=false
 743         elif test "x$COMPILE_TYPE" = "xcross"; then
 744           AC_MSG_RESULT([no (not possible with cross compilation)])
 745           AVAILABLE=false
 746         else
 747           AC_MSG_RESULT([yes])
 748         fi
 749       ])
 750   AC_SUBST(BUILD_CDS_ARCHIVE)
 751 ])
 752 
 753 ################################################################################
 754 #
 755 # Enable or disable the default CDS archive generation for Compact Object Headers
 756 #


 757 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 758 [
 759   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 760       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 761       DEFAULT_DESC: [auto],
 762       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 763       CHECK_AVAILABLE: [
 764         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 765         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 766           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 767           AVAILABLE=false
 768         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 769              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 770              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 771              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 772              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 773              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 774           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 775           AVAILABLE=false
 776         else
 777           AC_MSG_RESULT([yes])
 778           AVAILABLE=true
 779         fi

 737       CHECKING_MSG: [if a default CDS archive should be generated],
 738       CHECK_AVAILABLE: [
 739         AC_MSG_CHECKING([if CDS archive is available])
 740         if test "x$ENABLE_CDS" = "xfalse"; then
 741           AC_MSG_RESULT([no (CDS is disabled)])
 742           AVAILABLE=false
 743         elif test "x$COMPILE_TYPE" = "xcross"; then
 744           AC_MSG_RESULT([no (not possible with cross compilation)])
 745           AVAILABLE=false
 746         else
 747           AC_MSG_RESULT([yes])
 748         fi
 749       ])
 750   AC_SUBST(BUILD_CDS_ARCHIVE)
 751 ])
 752 
 753 ################################################################################
 754 #
 755 # Enable or disable the default CDS archive generation for Compact Object Headers
 756 #
 757 # Default disabled within Valhalla until support added (JDK-8348568)
 758 #
 759 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 760 [
 761   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: false, RESULT: BUILD_CDS_ARCHIVE_COH,
 762       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 763       DEFAULT_DESC: [auto],
 764       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 765       CHECK_AVAILABLE: [
 766         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 767         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 768           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 769           AVAILABLE=false
 770         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 771              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 772              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 773              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 774              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 775              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 776           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 777           AVAILABLE=false
 778         else
 779           AC_MSG_RESULT([yes])
 780           AVAILABLE=true
 781         fi
< prev index next >