From: Francesco Chemolli Date: Sun, 3 Jan 2016 10:45:27 +0000 (+0100) Subject: Fix libatomic detection in configure.ac X-Git-Tag: SQUID_4_0_4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97c0a2878457ed0c0f15f07767799031bfb38434;p=thirdparty%2Fsquid.git Fix libatomic detection in configure.ac --- diff --git a/configure.ac b/configure.ac index 4d9a23887e..b322830b61 100644 --- a/configure.ac +++ b/configure.ac @@ -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])