]> granicus.if.org Git - php/commitdiff
Whoops, OSF/1 has -lpthread and -lpthreads, but defines most
authorSascha Schumann <sas@php.net>
Mon, 4 Oct 1999 15:00:38 +0000 (15:00 +0000)
committerSascha Schumann <sas@php.net>
Mon, 4 Oct 1999 15:00:38 +0000 (15:00 +0000)
    pthread_* as __pthread*. According to pthread(3), -lpthread is the
    correct choice.

TSRM/configure.in

index 6a40ea0c099d0cd42969ef303f8d79fbc5a351e7..d81618eb4db6f8b7cd3e21f969fba12367a5be52 100644 (file)
@@ -12,13 +12,12 @@ AM_PROG_CC_STDC
 AC_PROG_CC_C_O
 AC_PROG_RANLIB
 
-AC_CHECK_LIB(c_r, pthread_create)
-AC_CHECK_LIB(pthread, pthread_create)
-AC_CHECK_LIB(pthreads, pthread_create)
+AC_CHECK_LIB(c_r, pthread_kill)
+AC_CHECK_LIB(pthread, pthread_kill)
 
-AC_CHECK_FUNCS(pthread_create)
+AC_CHECK_FUNCS(pthread_kill)
 
-if test "$ac_cv_func_pthread_create" != "yes"; then
+if test "$ac_cv_func_pthread_kill" != "yes"; then
   AC_MSG_ERROR(You need pthreads to build TSRM.)
 fi