< prev index next >

make/autoconf/jdk-options.m4

Print this page

667 [
668   UTIL_ARG_ENABLE(NAME: cds-archive, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE,
669       DESC: [enable generation of a default CDS archive in the product image],
670       DEFAULT_DESC: [enabled if possible],
671       CHECKING_MSG: [if a default CDS archive should be generated],
672       CHECK_AVAILABLE: [
673         AC_MSG_CHECKING([if CDS archive is available])
674         if test "x$ENABLE_CDS" = "xfalse"; then
675           AC_MSG_RESULT([no (CDS is disabled)])
676           AVAILABLE=false
677         elif test "x$COMPILE_TYPE" = "xcross"; then
678           AC_MSG_RESULT([no (not possible with cross compilation)])
679           AVAILABLE=false
680         else
681           AC_MSG_RESULT([yes])
682         fi
683       ])
684   AC_SUBST(BUILD_CDS_ARCHIVE)
685 ])
686 



























687 ################################################################################
688 #
689 # Enable the alternative CDS core region alignment
690 #
691 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
692 [
693   UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
694       RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
695       DESC: [enable use alternative compatible cds core region alignment],
696       DEFAULT_DESC: [disabled],
697       CHECKING_MSG: [if compatible cds region alignment enabled],
698       CHECK_AVAILABLE: [
699         AC_MSG_CHECKING([if CDS archive is available])
700         if test "x$ENABLE_CDS" = "xfalse"; then
701           AVAILABLE=false
702           AC_MSG_RESULT([no (CDS is disabled)])
703         else
704           AVAILABLE=true
705           AC_MSG_RESULT([yes])
706         fi

667 [
668   UTIL_ARG_ENABLE(NAME: cds-archive, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE,
669       DESC: [enable generation of a default CDS archive in the product image],
670       DEFAULT_DESC: [enabled if possible],
671       CHECKING_MSG: [if a default CDS archive should be generated],
672       CHECK_AVAILABLE: [
673         AC_MSG_CHECKING([if CDS archive is available])
674         if test "x$ENABLE_CDS" = "xfalse"; then
675           AC_MSG_RESULT([no (CDS is disabled)])
676           AVAILABLE=false
677         elif test "x$COMPILE_TYPE" = "xcross"; then
678           AC_MSG_RESULT([no (not possible with cross compilation)])
679           AVAILABLE=false
680         else
681           AC_MSG_RESULT([yes])
682         fi
683       ])
684   AC_SUBST(BUILD_CDS_ARCHIVE)
685 ])
686 
687 ################################################################################
688 #
689 # Enable or disable the default CDS archive generation for Compact Object Headers
690 #
691 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
692 [
693   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
694       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
695       DEFAULT_DESC: [auto],
696       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
697       CHECK_AVAILABLE: [
698         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
699         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
700           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
701           AVAILABLE=false
702         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
703              test "x$OPENJDK_TARGET_CPU" != "xaarch64"; then
704           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
705           AVAILABLE=false
706         else
707           AC_MSG_RESULT([yes])
708           AVAILABLE=true
709         fi
710       ])
711   AC_SUBST(BUILD_CDS_ARCHIVE_COH)
712 ])
713 
714 ################################################################################
715 #
716 # Enable the alternative CDS core region alignment
717 #
718 AC_DEFUN([JDKOPT_ENABLE_DISABLE_COMPATIBLE_CDS_ALIGNMENT],
719 [
720   UTIL_ARG_ENABLE(NAME: compatible-cds-alignment, DEFAULT: $COMPATIBLE_CDS_ALIGNMENT_DEFAULT,
721       RESULT: ENABLE_COMPATIBLE_CDS_ALIGNMENT,
722       DESC: [enable use alternative compatible cds core region alignment],
723       DEFAULT_DESC: [disabled],
724       CHECKING_MSG: [if compatible cds region alignment enabled],
725       CHECK_AVAILABLE: [
726         AC_MSG_CHECKING([if CDS archive is available])
727         if test "x$ENABLE_CDS" = "xfalse"; then
728           AVAILABLE=false
729           AC_MSG_RESULT([no (CDS is disabled)])
730         else
731           AVAILABLE=true
732           AC_MSG_RESULT([yes])
733         fi
< prev index next >