diff --git a/config/opal_config_asm.m4 b/config/opal_config_asm.m4 index 41672d65d7..1883c2f13d 100644 --- a/config/opal_config_asm.m4 +++ b/config/opal_config_asm.m4 @@ -24,7 +24,7 @@ AC_DEFUN([OPAL_CHECK_SYNC_BUILTIN_CSWAP_INT128], [ OPAL_VAR_SCOPE_PUSH([sync_bool_compare_and_swap_128_result CFLAGS_save]) AC_MSG_CHECKING([for __sync builtin atomic compare-and-swap on 128-bit values]) - AC_TRY_COMPILE([], [__int128 x = 0; __sync_bool_compare_and_swap (&x, 0, 1);], + AC_TRY_LINK([], [__int128 x = 0; __sync_bool_compare_and_swap (&x, 0, 1);], [AC_MSG_RESULT([yes]) sync_bool_compare_and_swap_128_result=1], [AC_MSG_RESULT([no]) @@ -35,7 +35,7 @@ AC_DEFUN([OPAL_CHECK_SYNC_BUILTIN_CSWAP_INT128], [ CFLAGS="$CFLAGS -mcx16" AC_MSG_CHECKING([for __sync builtin atomic compare-and-swap on 128-bit values with -mcx16 flag]) - AC_TRY_COMPILE([], [__int128 x = 0; __sync_bool_compare_and_swap (&x, 0, 1);], + AC_TRY_LINK([], [__int128 x = 0; __sync_bool_compare_and_swap (&x, 0, 1);], [AC_MSG_RESULT([yes]) sync_bool_compare_and_swap_128_result=1 CFLAGS_save="$CFLAGS"],