]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Improve autoconf's efficacy at detecting atomic ops.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 29 Jan 2012 23:08:45 +0000 (00:08 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 29 Jan 2012 23:08:45 +0000 (00:08 +0100)
configure.ac

index 0d08e7de431ead64e6a6569fa5dbaaab8bd06226..9a3d4fdbef5dc69de669f44ea6cac297c31687d6 100644 (file)
@@ -388,7 +388,7 @@ dnl
 dnl Check for atomic operations support in the compiler
 dnl
 AC_MSG_CHECKING([for atomic operations support])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[
     int n = 0;
 ]],[[
     __sync_add_and_fetch(&n, 10); // n becomes 10