summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index cbc460a..e1fcec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -470,17 +470,17 @@ dnl ======================
dnl Check for the atomic library
dnl ======================
AC_LANG_PUSH([C++])
-AC_LINK_IFELSE(
- [AC_LANG_SOURCE[
+AC_COMPILE_IFELSE(
+ AC_LANG_SOURCE(
#include <atomic>
int main() {
struct Test { int val; };
std::atomic<Test> s;
s.is_lock_free();
}
- ]],
- [needs_libatomic=yes],
- [needs_libatomic=no])
+ ),
+ [needs_libatomic=no],
+ [needs_libatomic=yes])
ATOMIC_LIBS=""
if test x$needs_libatomic = xyes; then