aboutsummaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-25 23:10:26 +0000
committerOwen Anderson <resistor@mac.com>2009-06-25 23:10:26 +0000
commit27fcfe1364943dadd99fd0ef5af6793f58acc446 (patch)
treeef1c58589fb0ec613a98e770c1204a453264887c /autoconf
parentc9ee1189c52930812a987932874667f1e04d6715 (diff)
Add a configure test for pthread_getspecific, and use it when building ThreadLocal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 0abe234795..f71e648d57 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -829,6 +829,9 @@ if test "$ENABLE_THREADS" -eq 1 ; then
AC_SEARCH_LIBS(pthread_rwlock_init,pthread,
AC_DEFINE([HAVE_PTHREAD_RWLOCK_INIT],[1],
[Have pthread_rwlock_init]))
+ AC_SEARCH_LIBS(pthread_getspecific,pthread,
+ AC_DEFINE([HAVE_PTHREAD_GETSPECIFIC],[1],
+ [Have pthread_getspecific]))
fi
dnl Allow extra x86-disassembler library