769 CHECKING_MSG: [if a default CDS archive should be generated],
770 CHECK_AVAILABLE: [
771 AC_MSG_CHECKING([if CDS archive is available])
772 if test "x$ENABLE_CDS" = "xfalse"; then
773 AC_MSG_RESULT([no (CDS is disabled)])
774 AVAILABLE=false
775 elif test "x$COMPILE_TYPE" = "xcross"; then
776 AC_MSG_RESULT([no (not possible with cross compilation)])
777 AVAILABLE=false
778 else
779 AC_MSG_RESULT([yes])
780 fi
781 ])
782 AC_SUBST(BUILD_CDS_ARCHIVE)
783 ])
784
785 ################################################################################
786 #
787 # Enable or disable the default CDS archive generation for Compact Object Headers
788 #
789 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_NOCOH],
790 [
791 UTIL_ARG_ENABLE(NAME: cds-archive-nocoh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_NOCOH,
792 DESC: [enable generation of default CDS archives for no compact object headers (requires --enable-cds-archive)],
793 DEFAULT_DESC: [auto],
794 CHECKING_MSG: [if default CDS archives for no compact object headers should be generated],
795 CHECK_AVAILABLE: [
796 AC_MSG_CHECKING([if CDS archive with no compact object headers is available])
797 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
798 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
799 AVAILABLE=false
800 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
801 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
802 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
803 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
804 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
805 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
806 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
807 AVAILABLE=false
808 else
809 AC_MSG_RESULT([yes])
810 AVAILABLE=true
811 fi
812 ])
813 AC_SUBST(BUILD_CDS_ARCHIVE_NOCOH)
814 ])
815
816 ################################################################################
817 #
818 # Enable the alternative CDS core region alignment
819 #
820 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
821 [
822 UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
823 RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
824 DESC: [enable use alternative compatible cds core region alignment],
825 DEFAULT_DESC: [disabled except on linux-aarch64],
826 CHECKING_MSG: [if compatible cds region alignment enabled],
827 CHECK_AVAILABLE: [
828 AC_MSG_CHECKING([if CDS archive is available])
829 if test "x$ENABLE_CDS" = "xfalse"; then
830 AVAILABLE=false
831 AC_MSG_RESULT([no (CDS is disabled)])
832 else
833 AVAILABLE=true
|
769 CHECKING_MSG: [if a default CDS archive should be generated],
770 CHECK_AVAILABLE: [
771 AC_MSG_CHECKING([if CDS archive is available])
772 if test "x$ENABLE_CDS" = "xfalse"; then
773 AC_MSG_RESULT([no (CDS is disabled)])
774 AVAILABLE=false
775 elif test "x$COMPILE_TYPE" = "xcross"; then
776 AC_MSG_RESULT([no (not possible with cross compilation)])
777 AVAILABLE=false
778 else
779 AC_MSG_RESULT([yes])
780 fi
781 ])
782 AC_SUBST(BUILD_CDS_ARCHIVE)
783 ])
784
785 ################################################################################
786 #
787 # Enable or disable the default CDS archive generation for Compact Object Headers
788 #
789 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
790 [
791 UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
792 DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
793 DEFAULT_DESC: [auto],
794 CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
795 CHECK_AVAILABLE: [
796 AC_MSG_CHECKING([if CDS archive with compact object headers is available])
797 if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
798 AC_MSG_RESULT([no (CDS default archive generation is disabled)])
799 AVAILABLE=false
800 elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
801 test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
802 test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
803 test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
804 test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
805 test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
806 AC_MSG_RESULT([no (compact object headers not supported for this platform)])
807 AVAILABLE=false
808 else
809 AC_MSG_RESULT([yes])
810 AVAILABLE=true
811 fi
812 ])
813 AC_SUBST(BUILD_CDS_ARCHIVE_COH)
814 ])
815
816 ################################################################################
817 #
818 # Enable the alternative CDS core region alignment
819 #
820 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
821 [
822 UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
823 RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
824 DESC: [enable use alternative compatible cds core region alignment],
825 DEFAULT_DESC: [disabled except on linux-aarch64],
826 CHECKING_MSG: [if compatible cds region alignment enabled],
827 CHECK_AVAILABLE: [
828 AC_MSG_CHECKING([if CDS archive is available])
829 if test "x$ENABLE_CDS" = "xfalse"; then
830 AVAILABLE=false
831 AC_MSG_RESULT([no (CDS is disabled)])
832 else
833 AVAILABLE=true
|