]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added configure test for pthread_create@GLIBC2.0().
authorBart Van Assche <bvanassche@acm.org>
Sun, 26 Apr 2009 07:11:48 +0000 (07:11 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 26 Apr 2009 07:11:48 +0000 (07:11 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9632

configure.in

index 4f02b7225fed4bf31c3b6b0b6c8decd8c2721923..33b2aac527b3cb7b2ba6d3be114f3f209c9c5281 100644 (file)
@@ -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()])