From: Bart Van Assche Date: Sun, 26 Apr 2009 07:11:48 +0000 (+0000) Subject: Added configure test for pthread_create@GLIBC2.0(). X-Git-Tag: svn/VALGRIND_3_5_0~773 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9d7ba95958b9179bec903b7e37511c7efa3e0f3;p=thirdparty%2Fvalgrind.git Added configure test for pthread_create@GLIBC2.0(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9632 --- diff --git a/configure.in b/configure.in index 4f02b7225f..33b2aac527 100644 --- a/configure.in +++ b/configure.in @@ -883,6 +883,31 @@ AM_CONDITIONAL([HAS_ALTIVEC], [test x$ac_have_altivec = xyes]) AM_CONDITIONAL([HAVE_ALTIVEC_H], [test x$ac_have_altivec = xyes]) +# Check for pthread_create@GLIBC2.0 +AC_MSG_CHECKING([for pthread_create@GLIBC2.0()]) + +AC_TRY_LINK( +[ +extern int pthread_create_glibc_2_0(void*, const void*, + void *(*)(void*), void*); +__asm__(".symver pthread_create_glibc_2_0, pthread_create@GLIBC_2.0"); +], [ + return &pthread_create_glibc_2_0 != 0; +], +[ +ac_have_pthread_create_glibc_2_0=yes +AC_MSG_RESULT([yes]) +AC_DEFINE([HAVE_PTHREAD_CREATE_GLIBC_2_0], 1, + [Define to 1 if you have the `pthread_create@glibc2.0' function.]) +], [ +ac_have_pthread_create_glibc_2_0=no +AC_MSG_RESULT([no]) +]) + +AM_CONDITIONAL(HAVE_PTHREAD_CREATE_GLIBC_2_0, + test x$ac_have_pthread_create_glibc_2_0 = yes) + + # Check for eventfd_t, eventfd() and eventfd_read() AC_MSG_CHECKING([for eventfd()])