From aab887a3c9c40c4df211ceff8d75d1e9fc51f25c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 29 May 2017 10:22:39 +0300 Subject: [PATCH] Improve detection of internal libatomic_ops (configure) * configure.ac [with_libatomic_ops=no]: Check presence of libatomic_ops/src/atomic_ops.h file instead of libatomic_ops/src folder. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8c6c837a..70ff263e 100644 --- a/configure.ac +++ b/configure.ac @@ -955,7 +955,8 @@ AS_IF([test x$missing_libatomic_ops = xtrue ], # If we have neither an external or an internal version, offer a useful hint # and exit. -AS_IF([test x"$with_libatomic_ops" = xno -a ! -e "$srcdir/libatomic_ops"], +AS_IF([test x"$with_libatomic_ops" = xno \ + -a ! -e "$srcdir/libatomic_ops/src/atomic_ops.h"], [ AC_MSG_ERROR([libatomic_ops is required. You can either install it on your system, or fetch and unpack a recent version into the source directory and link or rename it to libatomic_ops.]) ]) -- 2.40.0