aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r--autoconf/configure.ac4
1 files changed, 1 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 49c1c87..f1b060e 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -974,9 +974,7 @@ AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],
dnl pthread locking functions are optional - but llvm will not be thread-safe
dnl without locks.
if test "$ENABLE_THREADS" -eq 1 ; then
- AC_SEARCH_LIBS(pthread_mutex_init,pthread,
- AC_DEFINE([HAVE_PTHREAD],[1],
- [Have pthread]))
+ AC_CHECK_LIB(pthread, pthread_mutex_init)
AC_SEARCH_LIBS(pthread_mutex_lock,pthread,
AC_DEFINE([HAVE_PTHREAD_MUTEX_LOCK],[1],
[Have pthread_mutex_lock]))