224 fi
225 fi
226 else
227 ENABLE_AOT="false"
228 if test "x$enable_aot" = "xyes"; then
229 AC_MSG_ERROR([Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot.])
230 fi
231 fi
232 else
233 ENABLE_AOT="false"
234 if test "x$enable_aot" = "xyes"; then
235 AC_MSG_ERROR([AOT is currently only supported on Linux-x86_64. Remove --enable-aot.])
236 fi
237 fi
238 fi
239
240 AC_SUBST(ENABLE_AOT)
241 ])
242
243 ###############################################################################
244 # Set up all JVM features for each JVM variant.
245 #
246 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
247 [
248 # The user can in some cases supply additional jvm features. For the custom
249 # variant, this defines the entire variant.
250 AC_ARG_WITH([jvm-features], [AS_HELP_STRING([--with-jvm-features],
251 [additional JVM features to enable (separated by comma), use '--help' to show possible values @<:@none@:>@])])
252 if test "x$with_jvm_features" != x; then
253 AC_MSG_CHECKING([additional JVM features])
254 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
255 AC_MSG_RESULT([$JVM_FEATURES])
256 fi
257
258 # Override hotspot cpu definitions for ARM platforms
259 if test "x$OPENJDK_TARGET_CPU" = xarm; then
260 HOTSPOT_TARGET_CPU=arm_32
261 HOTSPOT_TARGET_CPU_DEFINE="ARM32"
262 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char"
263 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char"
|
224 fi
225 fi
226 else
227 ENABLE_AOT="false"
228 if test "x$enable_aot" = "xyes"; then
229 AC_MSG_ERROR([Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot.])
230 fi
231 fi
232 else
233 ENABLE_AOT="false"
234 if test "x$enable_aot" = "xyes"; then
235 AC_MSG_ERROR([AOT is currently only supported on Linux-x86_64. Remove --enable-aot.])
236 fi
237 fi
238 fi
239
240 AC_SUBST(ENABLE_AOT)
241 ])
242
243 ###############################################################################
244 # Check if the serviceability agent attach functionality should be included.
245 #
246 AC_DEFUN_ONCE([HOTSPOT_SETUP_SA],
247 [
248 # Test for serviceability agent attach dependencies
249 AC_ARG_ENABLE([saattach], [AS_HELP_STRING([--enable-saattach@<:@=yes/no/auto@:>@],
250 [enable serviceability agent attach. Default is auto, where it is enabled if all dependencies
251 are present.])])
252
253 SA_ATTACH_DEP_MISSING=false
254
255 AC_CHECK_HEADERS([thread_db.h], [SA_ATTACH_HEADERS_OK=yes],[SA_ATTACH_HEADERS_OK=no])
256 if test "x$SA_ATTACH_HEADERS_OK" != "xyes"; then
257 SA_ATTACH_DEP_MISSING=true
258 fi
259
260 AC_MSG_CHECKING([if serviceability agent attach should be included])
261 if test "x$enable_saattach" = "xyes"; then
262 if test "x$SA_ATTACH_DEP_MISSING" = "xtrue"; then
263 AC_MSG_RESULT([no, missing dependencies])
264 HELP_MSG_MISSING_DEPENDENCY([saattach])
265 AC_MSG_ERROR([Cannot enable saattach with missing dependencies. See above. $HELP_MSG])
266 else
267 INCLUDE_SA_ATTACH=true
268 AC_MSG_RESULT([yes, forced])
269 fi
270 elif test "x$enable_saattach" = "xno"; then
271 INCLUDE_SA_ATTACH=false
272 AC_MSG_RESULT([no, forced])
273 elif test "x$enable_saattach" = "xauto" || test "x$enable_saattach" = "x"; then
274 if test "x$SA_ATTACH_DEP_MISSING" = "xtrue"; then
275 INCLUDE_SA_ATTACH=false
276 AC_MSG_RESULT([no, missing dependencies])
277 else
278 INCLUDE_SA_ATTACH=true
279 AC_MSG_RESULT([yes, dependencies present])
280 fi
281 else
282 AC_MSG_ERROR([Invalid value for --enable-saattach: $enable_saattach])
283 fi
284 AC_SUBST(INCLUDE_SA_ATTACH)
285 ])
286
287 ###############################################################################
288 # Set up all JVM features for each JVM variant.
289 #
290 AC_DEFUN_ONCE([HOTSPOT_SETUP_JVM_FEATURES],
291 [
292 # The user can in some cases supply additional jvm features. For the custom
293 # variant, this defines the entire variant.
294 AC_ARG_WITH([jvm-features], [AS_HELP_STRING([--with-jvm-features],
295 [additional JVM features to enable (separated by comma), use '--help' to show possible values @<:@none@:>@])])
296 if test "x$with_jvm_features" != x; then
297 AC_MSG_CHECKING([additional JVM features])
298 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'`
299 AC_MSG_RESULT([$JVM_FEATURES])
300 fi
301
302 # Override hotspot cpu definitions for ARM platforms
303 if test "x$OPENJDK_TARGET_CPU" = xarm; then
304 HOTSPOT_TARGET_CPU=arm_32
305 HOTSPOT_TARGET_CPU_DEFINE="ARM32"
306 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char"
307 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char"
|