]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added configure tests for optional POSIX threads functionality.
authorBart Van Assche <bvanassche@acm.org>
Tue, 20 Jan 2009 13:45:38 +0000 (13:45 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 20 Jan 2009 13:45:38 +0000 (13:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8995

configure.in

index ace0161aec338142255ced0e97d9edc123b80ea3..3ae6c73483bc4b76f1db3c69c80162d178c9e5b9 100644 (file)
@@ -1327,7 +1327,12 @@ AC_CHECK_FUNCS([     \
         memset       \
         mkdir        \
         ppoll        \
-        pthread_condattr_setclock \
+        pthread_barrier_init       \
+        pthread_condattr_setclock  \
+        pthread_mutex_timedlock    \
+        pthread_rwlock_timedrdlock \
+        pthread_rwlock_timedwrlock \
+        pthread_spin_lock          \
         semtimedop   \
         signalfd     \
         syscall      \
@@ -1345,6 +1350,11 @@ AC_CHECK_FUNCS([     \
 # want for e.g. vgpreload_core-x86-linux.so
 LIBS=""
 
+AM_CONDITIONAL([HAVE_PTHREAD_BARRIER],
+               [test x$ac_cv_func_pthread_barrier_init = xyes])
+AM_CONDITIONAL([HAVE_PTHREAD_SPINLOCK],
+               [test x$ac_cv_func_pthread_spin_lock = xyes])
+
 # Do we have a useable MPI setup on the primary and/or secondary targets?
 # On Linux, by default, assumes mpicc and -m32/-m64
 # On AIX, by default, assumes mpxlc and -q32/-q64