686 CHECKING_MSG: [if a default CDS archive should be generated],
687 CHECK_AVAILABLE: [
688 AC_MSG_CHECKING([if CDS archive is available])
689 if test "x$ENABLE_CDS" = "xfalse"; then
690 AC_MSG_RESULT([no (CDS is disabled)])
691 AVAILABLE=false
692 elif test "x$COMPILE_TYPE" = "xcross"; then
693 AC_MSG_RESULT([no (not possible with cross compilation)])
694 AVAILABLE=false
695 else
696 AC_MSG_RESULT([yes])
697 fi
698 ])
699 AC_SUBST(BUILD_CDS_ARCHIVE)
700 ])
701
702 ################################################################################
703 #
704 # Enable or disable the default CDS archive generation for Compact Object Headers
705 #
706 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
707 [
708 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
709 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
710 DEFAULT_DESC: [auto],
711 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
712 CHECK_AVAILABLE: [
713 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
714 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
715 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
716 AVAILABLE=false
717 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
718 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
719 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
720 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
721 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
722 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
723 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
724 AVAILABLE=false
725 else
726 AC_MSG_RESULT([yes])
727 AVAILABLE=true
728 fi
|
686 CHECKING_MSG: [if a default CDS archive should be generated],
687 CHECK_AVAILABLE: [
688 AC_MSG_CHECKING([if CDS archive is available])
689 if test "x$ENABLE_CDS" = "xfalse"; then
690 AC_MSG_RESULT([no (CDS is disabled)])
691 AVAILABLE=false
692 elif test "x$COMPILE_TYPE" = "xcross"; then
693 AC_MSG_RESULT([no (not possible with cross compilation)])
694 AVAILABLE=false
695 else
696 AC_MSG_RESULT([yes])
697 fi
698 ])
699 AC_SUBST(BUILD_CDS_ARCHIVE)
700 ])
701
702 ################################################################################
703 #
704 # Enable or disable the default CDS archive generation for Compact Object Headers
705 #
706 # Default disabled within Valhalla until support added (JDK-8348568)
707 #
708 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
709 [
710 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: false, RESULT: BUILD_CDS_ARCHIVE_COH,
711 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
712 DEFAULT_DESC: [auto],
713 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
714 CHECK_AVAILABLE: [
715 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
716 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
717 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
718 AVAILABLE=false
719 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
720 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
721 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
722 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
723 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
724 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
725 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
726 AVAILABLE=false
727 else
728 AC_MSG_RESULT([yes])
729 AVAILABLE=true
730 fi
|