]> granicus.if.org Git - php/commitdiff
Let check succeed on systems which don't need special flags for pthreads.
authorSascha Schumann <sas@php.net>
Thu, 30 Dec 1999 00:48:45 +0000 (00:48 +0000)
committerSascha Schumann <sas@php.net>
Thu, 30 Dec 1999 00:48:45 +0000 (00:48 +0000)
Also change the message to be more informative.

TSRM/tsrm.m4

index 0eea9be2fa056ba6add0419a2b7c12151ef30065..96fe78a22f1d7af2a0dfd3491e38a63b374e0808 100644 (file)
@@ -53,21 +53,21 @@ if test -n "$GCC"; then
       break
     fi
   done
-  AC_CHECK_FUNCS(pthread_kill)
 fi
 
+AC_CHECK_FUNCS(pthread_kill)
+
 if test "$ac_cv_func_pthread_kill" != "yes"; then
   CFLAGS="$old_CFLAGS"
-dnl Fall back to the standard -lpthread
   AC_CHECK_LIB(pthread, pthread_kill)
   unset ac_cv_func_pthread_kill
   AC_CHECK_FUNCS(pthread_kill)
   if test "$ac_cv_func_pthread_kill" != "yes"; then
-    AC_MSG_ERROR(You need Pthreads to build TSRM on UNIX.)
+    AC_MSG_ERROR(Your system seems to lack POSIX threads.)
   fi
 fi
                
-AC_DEFINE(PTHREADS, [], Whether to use Pthreads)
+AC_DEFINE(PTHREADS, 1, Whether to use Pthreads)
 
 AC_MSG_CHECKING(for POSIX threads)
 AC_MSG_RESULT(yes)