< prev index next >

make/autoconf/jvm-features.m4

Print this page

274     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
275       AC_MSG_RESULT([yes])
276     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
277       AC_MSG_RESULT([yes])
278     else
279       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
280       AVAILABLE=false
281     fi
282   ])
283 ])
284 
285 ###############################################################################
286 # Check if the feature 'shenandoahgc' is available on this platform.
287 #
288 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
289 [
290   JVM_FEATURES_CHECK_AVAILABILITY(shenandoahgc, [
291     AC_MSG_CHECKING([if platform is supported by Shenandoah])
292     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
293         test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
294         test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then

295       AC_MSG_RESULT([yes])
296     else
297       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
298       AVAILABLE=false
299     fi
300   ])
301 ])
302 
303 ###############################################################################
304 # Check if the feature 'static-build' is available on this platform.
305 #
306 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
307 [
308   JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
309     AC_MSG_CHECKING([if static-build is enabled in configure])
310     if test "x$STATIC_BUILD" = "xtrue"; then
311       AC_MSG_RESULT([yes])
312     else
313       AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
314       AVAILABLE=false

324   JVM_FEATURES_CHECK_AVAILABILITY(zgc, [
325     AC_MSG_CHECKING([if platform is supported by ZGC])
326     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
327       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
328           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
329           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
330         AC_MSG_RESULT([yes])
331       else
332         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
333         AVAILABLE=false
334       fi
335     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
336       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
337           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
338           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
339         AC_MSG_RESULT([yes])
340       else
341         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
342         AVAILABLE=false
343       fi
344     elif test "x$OPENJDK_TARGET_CPU" = "xppc64le"; then

345       if test "x$OPENJDK_TARGET_OS" = "xlinux"; 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     else
352       AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
353       AVAILABLE=false
354     fi
355 
356     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
357       AC_MSG_CHECKING([if Windows APIs required for ZGC is present])
358       AC_COMPILE_IFELSE(
359         [AC_LANG_PROGRAM([[#include <windows.h>]],
360           [[struct MEM_EXTENDED_PARAMETER x;]])
361         ],
362         [
363           AC_MSG_RESULT([yes])
364         ],

274     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
275       AC_MSG_RESULT([yes])
276     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
277       AC_MSG_RESULT([yes])
278     else
279       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
280       AVAILABLE=false
281     fi
282   ])
283 ])
284 
285 ###############################################################################
286 # Check if the feature 'shenandoahgc' is available on this platform.
287 #
288 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_SHENANDOAHGC],
289 [
290   JVM_FEATURES_CHECK_AVAILABILITY(shenandoahgc, [
291     AC_MSG_CHECKING([if platform is supported by Shenandoah])
292     if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86" || \
293         test "x$OPENJDK_TARGET_CPU" = "xaarch64" || \
294         test "x$OPENJDK_TARGET_CPU" = "xppc64le" || \
295         test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
296       AC_MSG_RESULT([yes])
297     else
298       AC_MSG_RESULT([no, $OPENJDK_TARGET_CPU])
299       AVAILABLE=false
300     fi
301   ])
302 ])
303 
304 ###############################################################################
305 # Check if the feature 'static-build' is available on this platform.
306 #
307 AC_DEFUN_ONCE([JVM_FEATURES_CHECK_STATIC_BUILD],
308 [
309   JVM_FEATURES_CHECK_AVAILABILITY(static-build, [
310     AC_MSG_CHECKING([if static-build is enabled in configure])
311     if test "x$STATIC_BUILD" = "xtrue"; then
312       AC_MSG_RESULT([yes])
313     else
314       AC_MSG_RESULT([no, use --enable-static-build to enable static build.])
315       AVAILABLE=false

325   JVM_FEATURES_CHECK_AVAILABILITY(zgc, [
326     AC_MSG_CHECKING([if platform is supported by ZGC])
327     if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
328       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
329           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
330           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
331         AC_MSG_RESULT([yes])
332       else
333         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
334         AVAILABLE=false
335       fi
336     elif test "x$OPENJDK_TARGET_CPU" = "xaarch64"; then
337       if test "x$OPENJDK_TARGET_OS" = "xlinux" || \
338           test "x$OPENJDK_TARGET_OS" = "xwindows" || \
339           test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
340         AC_MSG_RESULT([yes])
341       else
342         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
343         AVAILABLE=false
344       fi
345     elif test "x$OPENJDK_TARGET_CPU" = "xppc64le" || \
346         test "x$OPENJDK_TARGET_CPU" = "xriscv64"; then
347       if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
348         AC_MSG_RESULT([yes])
349       else
350         AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
351         AVAILABLE=false
352       fi
353     else
354       AC_MSG_RESULT([no, $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU])
355       AVAILABLE=false
356     fi
357 
358     if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
359       AC_MSG_CHECKING([if Windows APIs required for ZGC is present])
360       AC_COMPILE_IFELSE(
361         [AC_LANG_PROGRAM([[#include <windows.h>]],
362           [[struct MEM_EXTENDED_PARAMETER x;]])
363         ],
364         [
365           AC_MSG_RESULT([yes])
366         ],
< prev index next >