From 34fcbdac42ee29170a7a270cd02ea30d80c2a0cd Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 6 Sep 2016 11:43:35 +0200 Subject: Fix atomic configure test (again). --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configure.ac') 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 int main() { struct Test { int val; }; std::atomic 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 -- cgit v1.2.3