]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - configure.ac
Fix libatomic detection in configure.ac
[thirdparty/squid.git] / configure.ac
index 4d9a23887e50bfd1141c96192448c1107dd066ed..b322830b615e6ba1224a0be2abdd0c7f54351bca 100644 (file)
@@ -458,7 +458,10 @@ if test "x$with_dl" = "xyes"; then
 fi
 
 ## check for atomics library before anything that might need it
-AC_SEARCH_LIBS([__atomic_load_8],[atomic],[ATOMICLIB="-latomic"],[])
+AC_SEARCH_LIBS([__atomic_load_8],[atomic])
+if test "x$ac_cv_search___atomic_load_8" = "-latomic"; then
+  ATOMICLIB="-latomic"
+fi
 AC_SUBST(ATOMICLIB)
 
 AC_SEARCH_LIBS([shm_open], [rt])