307 AC_MSG_ERROR([Specified JVM feature 'vm-structs' requires feature 'all-gcs']) 308 fi 309 310 # Turn on additional features based on other parts of configure 311 if test "x$INCLUDE_DTRACE" = "xtrue"; then 312 JVM_FEATURES="$JVM_FEATURES dtrace" 313 else 314 if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then 315 AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace]) 316 fi 317 fi 318 319 if test "x$STATIC_BUILD" = "xtrue"; then 320 JVM_FEATURES="$JVM_FEATURES static-build" 321 else 322 if HOTSPOT_CHECK_JVM_FEATURE(static-build); then 323 AC_MSG_ERROR([To enable static-build, you must use --enable-static-build]) 324 fi 325 fi 326 327 # Only enable jvmci on x86_64, sparcv9 and aarch64. 328 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 329 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 330 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 331 JVM_FEATURES_jvmci="jvmci" 332 else 333 JVM_FEATURES_jvmci="" 334 fi 335 336 AC_MSG_CHECKING([if jdk.internal.vm.compiler should be built]) 337 if HOTSPOT_CHECK_JVM_FEATURE(graal); then 338 AC_MSG_RESULT([yes, forced]) 339 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 340 AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci']) 341 fi 342 INCLUDE_GRAAL="true" 343 else 344 # By default enable graal build on linux-x64 or where AOT is available. 345 # graal build requires jvmci. 346 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ | 307 AC_MSG_ERROR([Specified JVM feature 'vm-structs' requires feature 'all-gcs']) 308 fi 309 310 # Turn on additional features based on other parts of configure 311 if test "x$INCLUDE_DTRACE" = "xtrue"; then 312 JVM_FEATURES="$JVM_FEATURES dtrace" 313 else 314 if HOTSPOT_CHECK_JVM_FEATURE(dtrace); then 315 AC_MSG_ERROR([To enable dtrace, you must use --enable-dtrace]) 316 fi 317 fi 318 319 if test "x$STATIC_BUILD" = "xtrue"; then 320 JVM_FEATURES="$JVM_FEATURES static-build" 321 else 322 if HOTSPOT_CHECK_JVM_FEATURE(static-build); then 323 AC_MSG_ERROR([To enable static-build, you must use --enable-static-build]) 324 fi 325 fi 326 327 if ! HOTSPOT_CHECK_JVM_VARIANT(zero); then 328 if HOTSPOT_CHECK_JVM_FEATURE(zero); then 329 AC_MSG_ERROR([To enable zero, you must use --with-jvm-variants=zero]) 330 fi 331 fi 332 333 # Only enable jvmci on x86_64, sparcv9 and aarch64. 334 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 335 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 336 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 337 JVM_FEATURES_jvmci="jvmci" 338 else 339 JVM_FEATURES_jvmci="" 340 fi 341 342 AC_MSG_CHECKING([if jdk.internal.vm.compiler should be built]) 343 if HOTSPOT_CHECK_JVM_FEATURE(graal); then 344 AC_MSG_RESULT([yes, forced]) 345 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 346 AC_MSG_ERROR([Specified JVM feature 'graal' requires feature 'jvmci']) 347 fi 348 INCLUDE_GRAAL="true" 349 else 350 # By default enable graal build on linux-x64 or where AOT is available. 351 # graal build requires jvmci. 352 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ |