From: Bart Van Assche Date: Tue, 20 Jan 2009 13:45:38 +0000 (+0000) Subject: Added configure tests for optional POSIX threads functionality. X-Git-Tag: svn/VALGRIND_3_5_0~1080 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df449fd0aa1a6f88151f91c04fe87b24542b0b06;p=thirdparty%2Fvalgrind.git Added configure tests for optional POSIX threads functionality. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8995 --- diff --git a/configure.in b/configure.in index ace0161aec..3ae6c73483 100644 --- a/configure.in +++ b/configure.in @@ -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