aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-23 21:30:36 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-23 21:30:36 +0000
commit2e3bdba34c4053e8e4d5c3ab3e001574e8a95223 (patch)
tree1d8be9dddf777b551381e5b0a57e0754c90ca50a
parenta6eb7c19a14f2bdbde22c3e2a14dc190b3b97ded (diff)
Change test for pthreads to use AC_SUBST; add ThreadSupport.h as an AC_OUTPUT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11771 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 6fac355742..f8d091ea96 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -222,7 +222,8 @@ AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo
dnl pthread locking functions are optional - but llvm will not be thread-safe
dnl without locks.
-AC_SEARCH_LIBS(pthread_mutex_lock,pthread,AC_DEFINE(HAVE_PTHREAD_MUTEX_LOCK,1,[Define if PThread mutexes (e.g., pthread_mutex_lock) are available in the system's thread library.]))
+AC_SEARCH_LIBS(pthread_mutex_lock,pthread,HAVE_PTHREAD_MUTEX_LOCK=1,HAVE_PTHREAD_MUTEX_LOCK=0)
+AC_SUBST(HAVE_PTHREAD_MUTEX_LOCK)
dnl Checks for header files.
dnl We don't check for ancient stuff or things that are guaranteed to be there
@@ -447,7 +448,8 @@ dnl Create the output files
AC_OUTPUT(Makefile.config
include/Support/iterator
include/Support/hash_map
- include/Support/hash_set)
+ include/Support/hash_set
+ include/Support/ThreadSupport.h)
dnl Warn loudly if llvm-gcc was not obviously working
if test $llvmgccwarn = yes