AC_CACHE_CHECK(
[whether the compiler provides atomic builtins],
[ac_cv_gcc_atomic_builtins],
- [AC_RUN_IFELSE(
+ [AC_LINK_IFELSE(
[AC_LANG_PROGRAM([],[[
int foo= -10; int bar= 10;
if (!__sync_fetch_and_add(&foo, bar) || foo)
[Define to 1 if compiler provides atomic builtins.])
])
-])
\ No newline at end of file
+])