aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-14 11:12:33 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-14 11:12:33 +0000
commitf693477fe44829276ad0b270fb8856228c6313d8 (patch)
tree9fe44df8bb670a822bb62142bfd7008137378599 /autoconf
parent8407f6b1defd05a0adf914c15c33a273e22819c6 (diff)
downloadexternal_llvm-f693477fe44829276ad0b270fb8856228c6313d8.zip
external_llvm-f693477fe44829276ad0b270fb8856228c6313d8.tar.gz
external_llvm-f693477fe44829276ad0b270fb8856228c6313d8.tar.bz2
Undo pthread patch from rev. 83930 & 83823. Credit to Paul Davey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-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]))