< prev index next >

make/autoconf/jvm-features.m4

Print this page

290     AC_MSG_CHECKING([if platform is supported by JVMCI])
291     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
292       AC_MSG_RESULT([yes])
293     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
294       AC_MSG_RESULT([yes])
295     else
296       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
297       AVAILABLE=false
298     fi
299   ])
300 ])
301 
302 ###############################################################################
303 # Check if the feature 'shenandoahgc' is available on this platform.
304 #
305 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
306 [
307   JVM_FEATURES_CHECK_AVAILABILITY(shenandoahgc, [
308     AC_MSG_CHECKING([if platform is supported by Shenandoah])
309     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
310         test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then

311       AC_MSG_RESULT([yes])
312     else
313       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
314       AVAILABLE=false
315     fi
316   ])
317 ])
318 
319 ###############################################################################
320 # Check if the feature 'static-build' is available on this platform.
321 #
322 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
323 [
324   JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
325     AC_MSG_CHECKING([if static-build is enabled in configure])
326     if test "x$STATIC_BUILD" = "xtrue"; then
327       AC_MSG_RESULT([yes])
328     else
329       AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
330       AVAILABLE=false

340   JVM_FEATURES_CHECK_AVAILABILITY(zgc, [
341     AC_MSG_CHECKING([if platform is supported by ZGC])
342     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
343       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
344           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
345           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
346         AC_MSG_RESULT([yes])
347       else
348         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
349         AVAILABLE=false
350       fi
351     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
352       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
353           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
354           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
355         AC_MSG_RESULT([yes])
356       else
357         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
358         AVAILABLE=false
359       fi
360     elif test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then

361       if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
362         AC_MSG_RESULT([yes])
363       else
364         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
365         AVAILABLE=false
366       fi
367     else
368       AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
369       AVAILABLE=false
370     fi
371 
372     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
373       AC_MSG_CHECKING([if Windows APIs required for ZGC is present])
374       AC_COMPILE_IFELSE(
375         [AC_LANG_PROGRAM([[#include <windows.h>]],
376           [[struct MEM_EXTENDED_PARAMETER x;]])
377         ],
378         [
379           AC_MSG_RESULT([yes])
380         ],

290     AC_MSG_CHECKING([if platform is supported by JVMCI])
291     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
292       AC_MSG_RESULT([yes])
293     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
294       AC_MSG_RESULT([yes])
295     else
296       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
297       AVAILABLE=false
298     fi
299   ])
300 ])
301 
302 ###############################################################################
303 # Check if the feature 'shenandoahgc' is available on this platform.
304 #
305 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
306 [
307   JVM_FEATURES_CHECK_AVAILABILITY(shenandoahgc, [
308     AC_MSG_CHECKING([if platform is supported by Shenandoah])
309     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
310         test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
311         test "x$OPENJDK_TARGET_CPU" = "xriscv64" ; then
312       AC_MSG_RESULT([yes])
313     else
314       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
315       AVAILABLE=false
316     fi
317   ])
318 ])
319 
320 ###############################################################################
321 # Check if the feature 'static-build' is available on this platform.
322 #
323 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
324 [
325   JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
326     AC_MSG_CHECKING([if static-build is enabled in configure])
327     if test "x$STATIC_BUILD" = "xtrue"; then
328       AC_MSG_RESULT([yes])
329     else
330       AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
331       AVAILABLE=false

341   JVM_FEATURES_CHECK_AVAILABILITY(zgc, [
342     AC_MSG_CHECKING([if platform is supported by ZGC])
343     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
344       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
345           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
346           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
347         AC_MSG_RESULT([yes])
348       else
349         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
350         AVAILABLE=false
351       fi
352     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
353       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
354           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
355           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
356         AC_MSG_RESULT([yes])
357       else
358         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
359         AVAILABLE=false
360       fi
361     elif test "x$OPENJDK_TARGET_CPU" = "xppc64le" || \
362           test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
363       if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
364         AC_MSG_RESULT([yes])
365       else
366         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
367         AVAILABLE=false
368       fi
369     else
370       AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
371       AVAILABLE=false
372     fi
373 
374     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
375       AC_MSG_CHECKING([if Windows APIs required for ZGC is present])
376       AC_COMPILE_IFELSE(
377         [AC_LANG_PROGRAM([[#include <windows.h>]],
378           [[struct MEM_EXTENDED_PARAMETER x;]])
379         ],
380         [
381           AC_MSG_RESULT([yes])
382         ],
< prev index next >