diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-05-29 10:22:39 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-05-29 10:22:39 +0300 |
commit | 8759c47b16162efe3c5d96aba799daeebdd88c1d (patch) | |
tree | 02d761e7a96183de34e21455ecdd84025b6e23e0 /configure.ac | |
parent | ee7f74ee058363cb7e2760918e3e0eac2c7a8041 (diff) |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 38db91e6..162284b9 100644 --- a/configure.ac +++ b/configure.ac @@ -987,7 +987,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.]) ]) |