1 #
2 # Copyright (c) 2011, 2017, 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
564 ENABLE_GENERATE_CLASSLIST="true"
565 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
566 AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS])
567 fi
568 elif test "x$enable_generate_classlist" = "xno"; then
569 AC_MSG_RESULT([no, forced])
570 ENABLE_GENERATE_CLASSLIST="false"
571 elif test "x$enable_generate_classlist" = "x"; then
572 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
573 AC_MSG_RESULT([yes])
574 ENABLE_GENERATE_CLASSLIST="true"
575 else
576 AC_MSG_RESULT([no])
577 ENABLE_GENERATE_CLASSLIST="false"
578 fi
579 else
580 AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist])
581 fi
582
583 AC_SUBST(ENABLE_GENERATE_CLASSLIST)
584 ])
|
1 #
2 # Copyright (c) 2011, 2018, 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
564 ENABLE_GENERATE_CLASSLIST="true"
565 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
566 AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS])
567 fi
568 elif test "x$enable_generate_classlist" = "xno"; then
569 AC_MSG_RESULT([no, forced])
570 ENABLE_GENERATE_CLASSLIST="false"
571 elif test "x$enable_generate_classlist" = "x"; then
572 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
573 AC_MSG_RESULT([yes])
574 ENABLE_GENERATE_CLASSLIST="true"
575 else
576 AC_MSG_RESULT([no])
577 ENABLE_GENERATE_CLASSLIST="false"
578 fi
579 else
580 AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist])
581 fi
582
583 AC_SUBST(ENABLE_GENERATE_CLASSLIST)
584 ])
585
586 ################################################################################
587 #
588 # Optionally filter resource translations
589 #
590 AC_DEFUN([JDKOPT_EXCLUDE_TRANSLATIONS],
591 [
592 AC_ARG_WITH([exclude-translations], [AS_HELP_STRING([--with-exclude-translations],
593 [a comma separated list of locales to exclude translations for. Default is
594 to include all translations present in the source.])])
595
596 EXCLUDE_TRANSLATIONS=""
597 AC_MSG_CHECKING([if any translations should be excluded])
598 if test "x$with_exclude_translations" != "x"; then
599 EXCLUDE_TRANSLATIONS="${with_exclude_translations//,/ }"
600 AC_MSG_RESULT([yes: $EXCLUDE_TRANSLATIONS])
601 else
602 AC_MSG_RESULT([no])
603 fi
604
605 AC_SUBST(EXCLUDE_TRANSLATIONS)
606 ])
|