[llvm-commits] CVS: llvm/autoconf/configure.ac

Brian Gaeke gaeke at cs.uiuc.edu
Fri Dec 5 13:30:05 PST 2003


Changes in directory llvm/autoconf:

configure.ac updated: 1.59 -> 1.60

---
Log message:

Add check for pthread_mutex_lock() in -lpthread (or otherwise).
Regenerated configure w/ autoconf-2.57.


---
Diffs of the changes:  (+4 -0)

Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.59 llvm/autoconf/configure.ac:1.60
--- llvm/autoconf/configure.ac:1.59	Tue Nov 25 14:36:46 2003
+++ llvm/autoconf/configure.ac	Fri Dec  5 13:28:58 2003
@@ -294,6 +294,10 @@
 dnl mallinfo is optional; the code can compile (minus features) without it
 AC_SEARCH_LIBS(mallinfo,malloc,AC_DEFINE([HAVE_MALLINFO],[1],[Define if mallinfo() is available on this platform.]))
 
+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.]))
+
 dnl
 dnl The math libraries are used by the test code, but not by the actual LLVM
 dnl code.





More information about the llvm-commits mailing list