author | ihse |
Fri, 09 Mar 2018 19:12:07 +0100 | |
changeset 49200 | a19a6228cdb2 |
parent 47933 | 19122c10fc52 |
child 49920 | dbfef18ad510 |
permissions | -rw-r--r-- |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
1 |
# |
43046
717ce6d4eaa1
8171409: Create a smoother configure experience on macosx
ihse
parents:
42979
diff
changeset
|
2 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
4 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
10 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
15 |
# accompanied this code). |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
16 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
20 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
23 |
# questions. |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
24 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
25 |
|
34596
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
26 |
############################################################################### |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
27 |
# Check which variant of the JDK that we want to build. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
28 |
# Currently we have: |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
29 |
# normal: standard edition |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
30 |
# but the custom make system may add other variants |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
31 |
# |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
32 |
# Effectively the JDK variant gives a name to a specific set of |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
33 |
# modules to compile into the JDK. |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
34 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VARIANT], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
35 |
[ |
20363 | 36 |
AC_MSG_CHECKING([which variant of the JDK to build]) |
37 |
AC_ARG_WITH([jdk-variant], [AS_HELP_STRING([--with-jdk-variant], |
|
38 |
[JDK variant to build (normal) @<:@normal@:>@])]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
39 |
|
20363 | 40 |
if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
41 |
JDK_VARIANT="normal" |
20363 | 42 |
else |
13697 | 43 |
AC_MSG_ERROR([The available JDK variants are: normal]) |
20363 | 44 |
fi |
13697 | 45 |
|
20363 | 46 |
AC_SUBST(JDK_VARIANT) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
47 |
|
20363 | 48 |
AC_MSG_RESULT([$JDK_VARIANT]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
49 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
50 |
|
22460
0273c023680c
8017568: PPC64: Generic build preparations needed to enable new build on Linux/PPC64
simonis
parents:
17819
diff
changeset
|
51 |
############################################################################### |
34596
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
52 |
# Set the debug level |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
53 |
# release: no debug information, all optimizations, no asserts. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
54 |
# optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
55 |
# fastdebug: debug information (-g), all optimizations, all asserts |
e8328ce5b64e
8142907: Integration of minor fixes from the build-infra project
ihse
parents:
34495
diff
changeset
|
56 |
# slowdebug: debug information (-g), no optimizations, all asserts |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
57 |
AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_LEVEL], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
58 |
[ |
20363 | 59 |
DEBUG_LEVEL="release" |
60 |
AC_MSG_CHECKING([which debug level to use]) |
|
61 |
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], |
|
62 |
[set the debug level to fastdebug (shorthand for --with-debug-level=fastdebug) @<:@disabled@:>@])], |
|
63 |
[ |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
64 |
ENABLE_DEBUG="${enableval}" |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
65 |
DEBUG_LEVEL="fastdebug" |
20363 | 66 |
], [ENABLE_DEBUG="no"]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
67 |
|
20363 | 68 |
AC_ARG_WITH([debug-level], [AS_HELP_STRING([--with-debug-level], |
35747 | 69 |
[set the debug level (release, fastdebug, slowdebug, optimized) @<:@release@:>@])], |
20363 | 70 |
[ |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
71 |
DEBUG_LEVEL="${withval}" |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
72 |
if test "x$ENABLE_DEBUG" = xyes; then |
20363 | 73 |
AC_MSG_ERROR([You cannot use both --enable-debug and --with-debug-level at the same time.]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
74 |
fi |
20363 | 75 |
]) |
76 |
AC_MSG_RESULT([$DEBUG_LEVEL]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
77 |
|
20363 | 78 |
if test "x$DEBUG_LEVEL" != xrelease && \ |
23424
65039fb99fda
8037298: Export HotSpots 'optimized' (i.e. not-product) configuration in the top-level configure/makefile
simonis
parents:
22721
diff
changeset
|
79 |
test "x$DEBUG_LEVEL" != xoptimized && \ |
20363 | 80 |
test "x$DEBUG_LEVEL" != xfastdebug && \ |
81 |
test "x$DEBUG_LEVEL" != xslowdebug; then |
|
35747 | 82 |
AC_MSG_ERROR([Allowed debug levels are: release, fastdebug, slowdebug and optimized]) |
20363 | 83 |
fi |
37402 | 84 |
|
85 |
# Translate DEBUG_LEVEL to debug level used by Hotspot |
|
86 |
HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" |
|
87 |
if test "x$DEBUG_LEVEL" = xrelease; then |
|
88 |
HOTSPOT_DEBUG_LEVEL="product" |
|
89 |
elif test "x$DEBUG_LEVEL" = xslowdebug; then |
|
90 |
HOTSPOT_DEBUG_LEVEL="debug" |
|
91 |
fi |
|
92 |
||
93 |
if test "x$DEBUG_LEVEL" = xoptimized; then |
|
94 |
# The debug level 'optimized' is a little special because it is currently only |
|
95 |
# applicable to the HotSpot build where it means to build a completely |
|
96 |
# optimized version of the VM without any debugging code (like for the |
|
97 |
# 'release' debug level which is called 'product' in the HotSpot build) but |
|
98 |
# with the exception that it can contain additional code which is otherwise |
|
99 |
# protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to |
|
100 |
# test new and/or experimental features which are not intended for customer |
|
101 |
# shipment. Because these new features need to be tested and benchmarked in |
|
102 |
# real world scenarios, we want to build the containing JDK at the 'release' |
|
103 |
# debug level. |
|
104 |
DEBUG_LEVEL="release" |
|
105 |
fi |
|
106 |
||
107 |
AC_SUBST(HOTSPOT_DEBUG_LEVEL) |
|
108 |
AC_SUBST(DEBUG_LEVEL) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
109 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
110 |
|
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
111 |
############################################################################### |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
112 |
# |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
113 |
# Should we build only OpenJDK even if closed sources are present? |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
114 |
# |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
115 |
AC_DEFUN_ONCE([JDKOPT_SETUP_OPEN_OR_CUSTOM], |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
116 |
[ |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
117 |
AC_ARG_ENABLE([openjdk-only], [AS_HELP_STRING([--enable-openjdk-only], |
20363 | 118 |
[suppress building custom source even if present @<:@disabled@:>@])],,[enable_openjdk_only="no"]) |
14111 | 119 |
|
39384
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
120 |
AC_MSG_CHECKING([if custom source is suppressed (openjdk-only)]) |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
121 |
AC_MSG_RESULT([$enable_openjdk_only]) |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
122 |
if test "x$enable_openjdk_only" = "xyes"; then |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
123 |
SUPPRESS_CUSTOM_EXTENSIONS="true" |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
124 |
elif test "x$enable_openjdk_only" = "xno"; then |
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
125 |
SUPPRESS_CUSTOM_EXTENSIONS="false" |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
126 |
else |
39384
adde8cb7d01b
8003593: build-infra: Paths to optional platform-specific files should not be hardwired to src/closed
erikj
parents:
38843
diff
changeset
|
127 |
AC_MSG_ERROR([Invalid value for --enable-openjdk-only: $enable_openjdk_only]) |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
128 |
fi |
22714
a752920c4317
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22709
diff
changeset
|
129 |
|
a752920c4317
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22709
diff
changeset
|
130 |
# custom-make-dir is deprecated. Please use your custom-hook.m4 to override |
a752920c4317
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22709
diff
changeset
|
131 |
# the IncludeCustomExtension macro. |
a752920c4317
8034191: Move relevant parts of build system to new closed repo
ihse
parents:
22709
diff
changeset
|
132 |
BASIC_DEPRECATED_ARG_WITH(custom-make-dir) |
15069
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
133 |
]) |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
134 |
|
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
135 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS], |
c6dab988d808
8005850: build-infra: Make --enable-openjdk-only really disable custom
erikj
parents:
15067
diff
changeset
|
136 |
[ |
41046 | 137 |
# Should we build a JDK without a graphical UI? |
138 |
AC_MSG_CHECKING([headless only]) |
|
139 |
AC_ARG_ENABLE([headless-only], [AS_HELP_STRING([--enable-headless-only], |
|
140 |
[only build headless (no GUI) support @<:@disabled@:>@])]) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
141 |
|
41046 | 142 |
if test "x$enable_headless_only" = "xyes"; then |
143 |
ENABLE_HEADLESS_ONLY="true" |
|
144 |
AC_MSG_RESULT([yes]) |
|
145 |
elif test "x$enable_headless_only" = "xno"; then |
|
146 |
ENABLE_HEADLESS_ONLY="false" |
|
147 |
AC_MSG_RESULT([no]) |
|
148 |
elif test "x$enable_headless_only" = "x"; then |
|
149 |
ENABLE_HEADLESS_ONLY="false" |
|
150 |
AC_MSG_RESULT([no]) |
|
151 |
else |
|
152 |
AC_MSG_ERROR([--enable-headless-only can only take yes or no]) |
|
20363 | 153 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
154 |
|
41046 | 155 |
AC_SUBST(ENABLE_HEADLESS_ONLY) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
156 |
|
44727 | 157 |
# Should we build the complete docs, or just a lightweight version? |
158 |
AC_ARG_ENABLE([full-docs], [AS_HELP_STRING([--enable-full-docs], |
|
44734 | 159 |
[build complete documentation @<:@enabled if all tools found@:>@])]) |
44727 | 160 |
|
161 |
# Verify dependencies |
|
162 |
AC_MSG_CHECKING([for graphviz dot]) |
|
163 |
if test "x$DOT" != "x"; then |
|
164 |
AC_MSG_RESULT([yes]) |
|
165 |
else |
|
166 |
AC_MSG_RESULT([no, cannot generate full docs]) |
|
167 |
FULL_DOCS_DEP_MISSING=true |
|
168 |
fi |
|
169 |
||
44734 | 170 |
AC_MSG_CHECKING([for pandoc]) |
171 |
if test "x$PANDOC" != "x"; then |
|
172 |
AC_MSG_RESULT([yes]) |
|
173 |
else |
|
174 |
AC_MSG_RESULT([no, cannot generate full docs]) |
|
175 |
FULL_DOCS_DEP_MISSING=true |
|
176 |
fi |
|
177 |
||
44727 | 178 |
AC_MSG_CHECKING([full docs]) |
179 |
if test "x$enable_full_docs" = xyes; then |
|
180 |
if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then |
|
181 |
AC_MSG_RESULT([no, missing dependencies]) |
|
182 |
HELP_MSG_MISSING_DEPENDENCY([dot]) |
|
183 |
AC_MSG_ERROR([Cannot enable full docs with missing dependencies. See above. $HELP_MSG]) |
|
184 |
else |
|
185 |
ENABLE_FULL_DOCS=true |
|
186 |
AC_MSG_RESULT([yes, forced]) |
|
187 |
fi |
|
188 |
elif test "x$enable_full_docs" = xno; then |
|
189 |
ENABLE_FULL_DOCS=false |
|
190 |
AC_MSG_RESULT([no, forced]) |
|
191 |
elif test "x$enable_full_docs" = x; then |
|
44734 | 192 |
# Check for prerequisites |
193 |
if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then |
|
194 |
ENABLE_FULL_DOCS=false |
|
195 |
AC_MSG_RESULT([no, missing dependencies]) |
|
196 |
else |
|
197 |
ENABLE_FULL_DOCS=true |
|
198 |
AC_MSG_RESULT([yes, dependencies present]) |
|
199 |
fi |
|
44727 | 200 |
else |
201 |
AC_MSG_ERROR([--enable-full-docs can only take yes or no]) |
|
202 |
fi |
|
203 |
||
204 |
AC_SUBST(ENABLE_FULL_DOCS) |
|
205 |
||
20363 | 206 |
# Choose cacerts source file |
207 |
AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file], |
|
208 |
[specify alternative cacerts file])]) |
|
47255
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
209 |
AC_MSG_CHECKING([for cacerts file]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
210 |
if test "x$with_cacerts_file" == x; then |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
211 |
AC_MSG_RESULT([default]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
212 |
else |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
213 |
CACERTS_FILE=$with_cacerts_file |
47255
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
214 |
if test ! -f "$CACERTS_FILE"; then |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
215 |
AC_MSG_RESULT([fail]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
216 |
AC_MSG_ERROR([Specified cacerts file "$CACERTS_FILE" does not exist]) |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
217 |
fi |
181dc03e0be7
8176467: --with-cacerts-file should fail during configure if file does not exist
ihse
parents:
47217
diff
changeset
|
218 |
AC_MSG_RESULT([$CACERTS_FILE]) |
20363 | 219 |
fi |
220 |
AC_SUBST(CACERTS_FILE) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
221 |
|
20363 | 222 |
# Enable or disable unlimited crypto |
42303
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
223 |
AC_ARG_ENABLE(unlimited-crypto, [AS_HELP_STRING([--disable-unlimited-crypto], |
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
224 |
[Disable unlimited crypto policy @<:@enabled@:>@])],, |
57efda72d3ad
8170157: Enable unlimited cryptographic policy by default in OracleJDK
wetmore
parents:
42299
diff
changeset
|
225 |
[enable_unlimited_crypto=yes]) |
20363 | 226 |
if test "x$enable_unlimited_crypto" = "xyes"; then |
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
227 |
UNLIMITED_CRYPTO=true |
20363 | 228 |
else |
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
229 |
UNLIMITED_CRYPTO=false |
20363 | 230 |
fi |
231 |
AC_SUBST(UNLIMITED_CRYPTO) |
|
14112
1b447f5cb0d1
8001897: build-infra: misc adjustments to configure script
ihse
parents:
14111
diff
changeset
|
232 |
|
35747 | 233 |
# Should we build the serviceability agent (SA)? |
234 |
INCLUDE_SA=true |
|
47687 | 235 |
if HOTSPOT_CHECK_JVM_VARIANT(zero); then |
35747 | 236 |
INCLUDE_SA=false |
237 |
fi |
|
238 |
if test "x$OPENJDK_TARGET_OS" = xaix ; then |
|
239 |
INCLUDE_SA=false |
|
240 |
fi |
|
241 |
AC_SUBST(INCLUDE_SA) |
|
242 |
||
20363 | 243 |
# Compress jars |
244 |
COMPRESS_JARS=false |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
245 |
|
20363 | 246 |
AC_SUBST(COMPRESS_JARS) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
247 |
|
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
248 |
# Setup default copyright year. Mostly overridden when building close to a new year. |
27584
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
249 |
AC_ARG_WITH(copyright-year, [AS_HELP_STRING([--with-copyright-year], |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
250 |
[Set copyright year value for build @<:@current year@:>@])]) |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
251 |
if test "x$with_copyright_year" = xyes; then |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
252 |
AC_MSG_ERROR([Copyright year must have a value]) |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
253 |
elif test "x$with_copyright_year" != x; then |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
254 |
COPYRIGHT_YEAR="$with_copyright_year" |
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
255 |
else |
38843
2b141e8e916f
8158535: Configure script uses basic tools directly in many places
erikj
parents:
38546
diff
changeset
|
256 |
COPYRIGHT_YEAR=`$DATE +'%Y'` |
27584
01a719b65d1e
8065183: Add --with-copyright-year option to configure
erikj
parents:
27133
diff
changeset
|
257 |
fi |
20363 | 258 |
AC_SUBST(COPYRIGHT_YEAR) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
259 |
]) |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
260 |
|
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
261 |
############################################################################### |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
262 |
# |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
263 |
# Enable or disable the elliptic curve crypto implementation |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
264 |
# |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
265 |
AC_DEFUN_ONCE([JDKOPT_DETECT_INTREE_EC], |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
266 |
[ |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
267 |
AC_MSG_CHECKING([if elliptic curve crypto implementation is present]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
268 |
|
47217 | 269 |
if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then |
43388
509c3ebb5c97
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
43383
diff
changeset
|
270 |
ENABLE_INTREE_EC=true |
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
271 |
AC_MSG_RESULT([yes]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
272 |
else |
43388
509c3ebb5c97
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
43383
diff
changeset
|
273 |
ENABLE_INTREE_EC=false |
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
274 |
AC_MSG_RESULT([no]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
275 |
fi |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
276 |
|
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
277 |
AC_SUBST(ENABLE_INTREE_EC) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
278 |
]) |
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
29305
diff
changeset
|
279 |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
280 |
AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS], |
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
281 |
[ |
20363 | 282 |
# |
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
283 |
# NATIVE_DEBUG_SYMBOLS |
20363 | 284 |
# This must be done after the toolchain is setup, since we're looking at objcopy. |
285 |
# |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
286 |
AC_MSG_CHECKING([what type of native debug symbols to use]) |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
287 |
AC_ARG_WITH([native-debug-symbols], |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
288 |
[AS_HELP_STRING([--with-native-debug-symbols], |
35747 | 289 |
[set the native debug symbol configuration (none, internal, external, zipped) @<:@varying@:>@])], |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
290 |
[ |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
291 |
if test "x$OPENJDK_TARGET_OS" = xaix; then |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
292 |
if test "x$withval" = xexternal || test "x$withval" = xzipped; then |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
293 |
AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols]) |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
294 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
295 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
296 |
], |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
297 |
[ |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
298 |
if test "x$OPENJDK_TARGET_OS" = xaix; then |
47933
19122c10fc52
8191205: Set native-debug-symbols default to "external"
ihse
parents:
47701
diff
changeset
|
299 |
# AIX doesn't support 'external' so use 'internal' as default |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
300 |
with_native_debug_symbols="internal" |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
301 |
else |
35747 | 302 |
if test "x$STATIC_BUILD" = xtrue; then |
303 |
with_native_debug_symbols="none" |
|
304 |
else |
|
47933
19122c10fc52
8191205: Set native-debug-symbols default to "external"
ihse
parents:
47701
diff
changeset
|
305 |
with_native_debug_symbols="external" |
35747 | 306 |
fi |
34605
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
307 |
fi |
60c12f0860d6
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
simonis
parents:
34596
diff
changeset
|
308 |
]) |
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
309 |
NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
310 |
AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
311 |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
312 |
if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
313 |
|
34495 | 314 |
if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
315 |
if test "x$OBJCOPY" = x; then |
|
316 |
# enabling of enable-debug-symbols and can't find objcopy |
|
317 |
# this is an error |
|
318 |
AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) |
|
319 |
fi |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
320 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
321 |
|
35032 | 322 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
323 |
COPY_DEBUG_SYMBOLS=true |
|
324 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=true |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
325 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then |
35032 | 326 |
COMPILE_WITH_DEBUG_SYMBOLS=false |
327 |
COPY_DEBUG_SYMBOLS=false |
|
328 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
329 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then |
35032 | 330 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
331 |
COPY_DEBUG_SYMBOLS=false |
|
332 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
333 |
elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
334 |
|
34495 | 335 |
if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
336 |
if test "x$OBJCOPY" = x; then |
|
337 |
# enabling of enable-debug-symbols and can't find objcopy |
|
338 |
# this is an error |
|
339 |
AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols]) |
|
340 |
fi |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
341 |
fi |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
342 |
|
35032 | 343 |
COMPILE_WITH_DEBUG_SYMBOLS=true |
344 |
COPY_DEBUG_SYMBOLS=true |
|
345 |
ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
346 |
else |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
347 |
AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped]) |
20363 | 348 |
fi |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
349 |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
350 |
# --enable-debug-symbols is deprecated. |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
351 |
# Please use --with-native-debug-symbols=[internal,external,zipped] . |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
352 |
BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols, |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
353 |
[Please use --with-native-debug-symbols=[[internal,external,zipped]] .]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
354 |
|
34493
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
355 |
# --enable-zip-debug-info is deprecated. |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
356 |
# Please use --with-native-debug-symbols=zipped . |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
357 |
BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info, |
c68e0ab807d8
8036003: Add --with-debug-symbols=[none|internal|external|zipped]
ysuenaga
parents:
33954
diff
changeset
|
358 |
[Please use --with-native-debug-symbols=zipped .]) |
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
359 |
|
35032 | 360 |
AC_SUBST(COMPILE_WITH_DEBUG_SYMBOLS) |
361 |
AC_SUBST(COPY_DEBUG_SYMBOLS) |
|
362 |
AC_SUBST(ZIP_EXTERNAL_DEBUG_SYMBOLS) |
|
13133
701e61c32ece
7182051: Update of latest build-infra Makefiles (missing files)
erikj
parents:
diff
changeset
|
363 |
]) |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
364 |
|
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
365 |
################################################################################ |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
366 |
# |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
367 |
# Gcov coverage data for hotspot |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
368 |
# |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
369 |
AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE], |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
370 |
[ |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
371 |
AC_ARG_ENABLE(native-coverage, [AS_HELP_STRING([--enable-native-coverage], |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
372 |
[enable native compilation with code coverage data@<:@disabled@:>@])]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
373 |
GCOV_ENABLED="false" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
374 |
if test "x$enable_native_coverage" = "xyes"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
375 |
if test "x$TOOLCHAIN_TYPE" = "xgcc"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
376 |
AC_MSG_CHECKING([if native coverage is enabled]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
377 |
AC_MSG_RESULT([yes]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
378 |
GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
379 |
GCOV_LDFLAGS="-fprofile-arcs" |
42979
2f9e19a72974
8171922: Hotspot code coverage doesn't seem to work
erikj
parents:
42303
diff
changeset
|
380 |
JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" |
2f9e19a72974
8171922: Hotspot code coverage doesn't seem to work
erikj
parents:
42303
diff
changeset
|
381 |
JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" |
29305
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
382 |
CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
383 |
CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
384 |
CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
385 |
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
386 |
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
387 |
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
388 |
GCOV_ENABLED="true" |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
389 |
else |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
390 |
AC_MSG_ERROR([--enable-native-coverage only works with toolchain type gcc]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
391 |
fi |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
392 |
elif test "x$enable_native_coverage" = "xno"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
393 |
AC_MSG_CHECKING([if native coverage is enabled]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
394 |
AC_MSG_RESULT([no]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
395 |
elif test "x$enable_native_coverage" != "x"; then |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
396 |
AC_MSG_ERROR([--enable-native-coverage can only be assigned "yes" or "no"]) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
397 |
fi |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
398 |
|
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
399 |
AC_SUBST(GCOV_ENABLED) |
4ddc6faf7842
8073021: add native code coverage target into makefiles
erikj
parents:
29162
diff
changeset
|
400 |
]) |
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
401 |
|
47479 | 402 |
############################################################################### |
403 |
# |
|
404 |
# AddressSanitizer |
|
405 |
# |
|
406 |
AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER], |
|
407 |
[ |
|
408 |
AC_ARG_ENABLE(asan, [AS_HELP_STRING([--enable-asan], |
|
409 |
[enable AddressSanitizer if possible @<:@disabled@:>@])]) |
|
410 |
ASAN_ENABLED="no" |
|
411 |
if test "x$enable_asan" = "xyes"; then |
|
412 |
case $TOOLCHAIN_TYPE in |
|
413 |
gcc | clang) |
|
414 |
AC_MSG_CHECKING([if asan is enabled]) |
|
415 |
AC_MSG_RESULT([yes]) |
|
416 |
ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" |
|
417 |
ASAN_LDFLAGS="-fsanitize=address" |
|
418 |
JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" |
|
419 |
JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" |
|
420 |
CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" |
|
421 |
CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" |
|
422 |
CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" |
|
423 |
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" |
|
424 |
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" |
|
425 |
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" |
|
426 |
ASAN_ENABLED="yes" |
|
427 |
;; |
|
428 |
*) |
|
429 |
AC_MSG_ERROR([--enable-asan only works with toolchain type gcc or clang]) |
|
430 |
;; |
|
431 |
esac |
|
432 |
elif test "x$enable_asan" = "xno"; then |
|
433 |
AC_MSG_CHECKING([if asan is enabled]) |
|
434 |
AC_MSG_RESULT([no]) |
|
435 |
elif test "x$enable_asan" != "x"; then |
|
436 |
AC_MSG_ERROR([--enable-asan can only be assigned "yes" or "no"]) |
|
437 |
fi |
|
438 |
||
439 |
AC_SUBST(ASAN_ENABLED) |
|
440 |
]) |
|
441 |
||
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
442 |
################################################################################ |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
443 |
# |
35747 | 444 |
# Static build support. When enabled will generate static |
33562
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
445 |
# libraries instead of shared libraries for all JDK libs. |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
446 |
# |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
447 |
AC_DEFUN_ONCE([JDKOPT_SETUP_STATIC_BUILD], |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
448 |
[ |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
449 |
AC_ARG_ENABLE([static-build], [AS_HELP_STRING([--enable-static-build], |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
450 |
[enable static library build @<:@disabled@:>@])]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
451 |
STATIC_BUILD=false |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
452 |
if test "x$enable_static_build" = "xyes"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
453 |
AC_MSG_CHECKING([if static build is enabled]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
454 |
AC_MSG_RESULT([yes]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
455 |
if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
456 |
AC_MSG_ERROR([--enable-static-build is only supported for macosx builds]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
457 |
fi |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
458 |
STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
459 |
CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
460 |
CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
461 |
STATIC_BUILD=true |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
462 |
elif test "x$enable_static_build" = "xno"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
463 |
AC_MSG_CHECKING([if static build is enabled]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
464 |
AC_MSG_RESULT([no]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
465 |
elif test "x$enable_static_build" != "x"; then |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
466 |
AC_MSG_ERROR([--enable-static-build can only be assigned "yes" or "no"]) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
467 |
fi |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
468 |
|
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
469 |
AC_SUBST(STATIC_BUILD) |
c76b2fa11486
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
32554
diff
changeset
|
470 |
]) |
36506 | 471 |
|
472 |
################################################################################ |
|
473 |
# |
|
37035
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
474 |
# jlink options. |
36506 | 475 |
# We always keep packaged modules in JDK image. |
476 |
# |
|
477 |
AC_DEFUN_ONCE([JDKOPT_SETUP_JLINK_OPTIONS], |
|
478 |
[ |
|
479 |
AC_ARG_ENABLE([keep-packaged-modules], [AS_HELP_STRING([--disable-keep-packaged-modules], |
|
480 |
[Do not keep packaged modules in jdk image @<:@enable@:>@])]) |
|
481 |
||
43046
717ce6d4eaa1
8171409: Create a smoother configure experience on macosx
ihse
parents:
42979
diff
changeset
|
482 |
AC_MSG_CHECKING([if packaged modules are kept]) |
36506 | 483 |
if test "x$enable_keep_packaged_modules" = "xyes"; then |
484 |
AC_MSG_RESULT([yes]) |
|
485 |
JLINK_KEEP_PACKAGED_MODULES=true |
|
486 |
elif test "x$enable_keep_packaged_modules" = "xno"; then |
|
487 |
AC_MSG_RESULT([no]) |
|
488 |
JLINK_KEEP_PACKAGED_MODULES=false |
|
489 |
elif test "x$enable_keep_packaged_modules" = "x"; then |
|
490 |
AC_MSG_RESULT([yes (default)]) |
|
491 |
JLINK_KEEP_PACKAGED_MODULES=true |
|
492 |
else |
|
43046
717ce6d4eaa1
8171409: Create a smoother configure experience on macosx
ihse
parents:
42979
diff
changeset
|
493 |
AC_MSG_RESULT([error]) |
36506 | 494 |
AC_MSG_ERROR([--enable-keep-packaged-modules accepts no argument]) |
495 |
fi |
|
496 |
||
497 |
AC_SUBST(JLINK_KEEP_PACKAGED_MODULES) |
|
498 |
]) |
|
37035
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
499 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
500 |
################################################################################ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
501 |
# |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
502 |
# Check if building of the jtreg failure handler should be enabled. |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
503 |
# |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
504 |
AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_FAILURE_HANDLER], |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
505 |
[ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
506 |
AC_ARG_ENABLE([jtreg-failure-handler], [AS_HELP_STRING([--enable-jtreg-failure-handler], |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
507 |
[forces build of the jtreg failure handler to be enabled, missing dependencies |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
508 |
become fatal errors. Default is auto, where the failure handler is built if all |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
509 |
dependencies are present and otherwise just disabled.])]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
510 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
511 |
AC_MSG_CHECKING([if jtreg failure handler should be built]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
512 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
513 |
if test "x$enable_jtreg_failure_handler" = "xyes"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
514 |
if test "x$JT_HOME" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
515 |
AC_MSG_ERROR([Cannot enable jtreg failure handler without jtreg.]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
516 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
517 |
BUILD_FAILURE_HANDLER=true |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
518 |
AC_MSG_RESULT([yes, forced]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
519 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
520 |
elif test "x$enable_jtreg_failure_handler" = "xno"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
521 |
BUILD_FAILURE_HANDLER=false |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
522 |
AC_MSG_RESULT([no, forced]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
523 |
elif test "x$enable_jtreg_failure_handler" = "xauto" \ |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
524 |
|| test "x$enable_jtreg_failure_handler" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
525 |
if test "x$JT_HOME" = "x"; then |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
526 |
BUILD_FAILURE_HANDLER=false |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
527 |
AC_MSG_RESULT([no, missing jtreg]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
528 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
529 |
BUILD_FAILURE_HANDLER=true |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
530 |
AC_MSG_RESULT([yes, jtreg present]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
531 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
532 |
else |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
533 |
AC_MSG_ERROR([Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler]) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
534 |
fi |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
535 |
|
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
536 |
AC_SUBST(BUILD_FAILURE_HANDLER) |
08e00f202d7a
8154292: jdk9-dev: All SE builds failed on 2016-04-14
erikj
parents:
36506
diff
changeset
|
537 |
]) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
538 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
539 |
################################################################################ |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
540 |
# |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
541 |
# Enable or disable generation of the classlist at build time |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
542 |
# |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
543 |
AC_DEFUN_ONCE([JDKOPT_ENABLE_DISABLE_GENERATE_CLASSLIST], |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
544 |
[ |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
545 |
AC_ARG_ENABLE([generate-classlist], [AS_HELP_STRING([--disable-generate-classlist], |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
546 |
[forces enabling or disabling of the generation of a CDS classlist at build time. |
47060 | 547 |
Default is to generate it when either the server or client JVMs are built and |
548 |
enable-cds is true.])]) |
|
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
549 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
550 |
# Check if it's likely that it's possible to generate the classlist. Depending |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
551 |
# on exact jvm configuration it could be possible anyway. |
47060 | 552 |
if test "x$ENABLE_CDS" = "xtrue" && (HOTSPOT_CHECK_JVM_VARIANT(server) || HOTSPOT_CHECK_JVM_VARIANT(client)); then |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
553 |
ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
554 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
555 |
ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
556 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
557 |
|
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
558 |
AC_MSG_CHECKING([if the CDS classlist generation should be enabled]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
559 |
if test "x$enable_generate_classlist" = "xyes"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
560 |
AC_MSG_RESULT([yes, forced]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
561 |
ENABLE_GENERATE_CLASSLIST="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
562 |
if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then |
47060 | 563 |
AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS]) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
564 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
565 |
elif test "x$enable_generate_classlist" = "xno"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
566 |
AC_MSG_RESULT([no, forced]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
567 |
ENABLE_GENERATE_CLASSLIST="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
568 |
elif test "x$enable_generate_classlist" = "x"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
569 |
if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
570 |
AC_MSG_RESULT([yes]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
571 |
ENABLE_GENERATE_CLASSLIST="true" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
572 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
573 |
AC_MSG_RESULT([no]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
574 |
ENABLE_GENERATE_CLASSLIST="false" |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
575 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
576 |
else |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
577 |
AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist]) |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
578 |
fi |
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
579 |
|
43383 | 580 |
AC_SUBST(ENABLE_GENERATE_CLASSLIST) |
38546
91a5c3430d4f
8157336: Generation of classlists at build time should be configurable
erikj
parents:
37968
diff
changeset
|
581 |
]) |