]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove the configure-time NPTL test, the results of which are no longer used.
authorNicholas Nethercote <njn@valgrind.org>
Sat, 18 Oct 2003 14:05:42 +0000 (14:05 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sat, 18 Oct 2003 14:05:42 +0000 (14:05 +0000)
MERGE TO STABLE, if the corresponding change to valgrind.in is also merged.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1951

configure.in

index f3f032c17ff5946910c1c69c55ac3a59d5ef8b0a..3fe1cd8a51d0d5f978ade0636e815ff347e7fed3 100644 (file)
@@ -281,43 +281,6 @@ EOF
 fi
 
 
-AC_MSG_CHECKING([if this is an NPTL-based system])
-safe_LIBS="$LIBS"
-LIBS="$LIBS -lpthread"
-AC_TRY_RUN([
-#include <pthread.h>
-#include <stdio.h>
-int main (int argc, char * argv [])
-{
-   int ret;
-   pthread_mutexattr_t mutexattr;
-   ret = pthread_mutexattr_init (&mutexattr);
-   if (ret == 0) {
-      ret = pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED);
-     if (ret == 0) /* nptl */
-         return 0;
-     else          /* not nptl */
-         return 1;
-   }
-   return 1;
-}
-],
-[
-  NPTL_THREADING="yes"
-  AC_MSG_RESULT([yes])
-],
-[
-  NPTL_THREADING="no"
-  AC_MSG_RESULT([no])
-],
-[
-  AC_MSG_RESULT([couldn't run test program])
-  NPTL_THREADING="no"
-])
-LIBS=$safe_LIBS
-
-AC_SUBST(NPTL_THREADING)
-
 # check if the GNU as supports CFI directives
 AC_MSG_CHECKING([if gas accepts .cfi])
 AC_TRY_COMPILE(, [