< prev index next >

make/autoconf/jdk-options.m4

Print this page

   1 #
   2 # Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any

 754       CHECKING_MSG: [if a default CDS archive should be generated],
 755       CHECK_AVAILABLE: [
 756         AC_MSG_CHECKING([if CDS archive is available])
 757         if test "x$ENABLE_CDS" = "xfalse"; then
 758           AC_MSG_RESULT([no (CDS is disabled)])
 759           AVAILABLE=false
 760         elif test "x$COMPILE_TYPE" = "xcross"; then
 761           AC_MSG_RESULT([no (not possible with cross compilation)])
 762           AVAILABLE=false
 763         else
 764           AC_MSG_RESULT([yes])
 765         fi
 766       ])
 767   AC_SUBST(BUILD_CDS_ARCHIVE)
 768 ])
 769 
 770 ################################################################################
 771 #
 772 # Enable or disable the default CDS archive generation for Compact Object Headers
 773 #


 774 AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE_COH],
 775 [
 776   UTIL_ARG_ENABLE(NAME: cds-archive-coh, DEFAULT: auto, RESULT: BUILD_CDS_ARCHIVE_COH,
 777       DESC: [enable generation of default CDS archives for compact object headers (requires --enable-cds-archive)],
 778       DEFAULT_DESC: [auto],
 779       CHECKING_MSG: [if default CDS archives for compact object headers should be generated],
 780       CHECK_AVAILABLE: [
 781         AC_MSG_CHECKING([if CDS archive with compact object headers is available])
 782         if test "x$BUILD_CDS_ARCHIVE" = "xfalse"; then
 783           AC_MSG_RESULT([no (CDS default archive generation is disabled)])
 784           AVAILABLE=false
 785         elif test "x$OPENJDK_TARGET_CPU" != "xx86_64" &&
 786              test "x$OPENJDK_TARGET_CPU" != "xaarch64" &&
 787              test "x$OPENJDK_TARGET_CPU" != "xppc64" &&
 788              test "x$OPENJDK_TARGET_CPU" != "xppc64le" &&
 789              test "x$OPENJDK_TARGET_CPU" != "xriscv64" &&
 790              test "x$OPENJDK_TARGET_CPU" != "xs390x"; then
 791           AC_MSG_RESULT([no (compact object headers not supported for this platform)])
 792           AVAILABLE=false
 793         else

   1 #
   2 # Copyright (c) 2011, 2026, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any

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