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