]> granicus.if.org Git - php/commitdiff
Additionally check libc_r (*BSD) for pthread functions
authorSascha Schumann <sas@php.net>
Fri, 24 Sep 1999 20:14:44 +0000 (20:14 +0000)
committerSascha Schumann <sas@php.net>
Fri, 24 Sep 1999 20:14:44 +0000 (20:14 +0000)
TSRM/configure.in
TSRM/tsrm_config.h.in

index 1cee23a9a953cbd9f7b13a0b7eb4efa4a28e376b..5f2654f50de06aa10f4279ba3aee571cbdfe4273 100644 (file)
@@ -12,12 +12,16 @@ AM_PROG_CC_STDC
 AC_PROG_CC_C_O
 AC_PROG_RANLIB
 
-AC_CHECK_LIB(pthread, pthread_create, [
-  AC_DEFINE(PTHREADS)
-  LIBS="$LIBS -lpthread"
-],[
+AC_CHECK_LIB(c_r, pthread_create)
+AC_CHECK_LIB(pthread, pthread_create)
+
+AC_CHECK_FUNCS(pthread_create)
+
+if test "$ac_cv_func_pthread_create" != "yes"; then
   AC_MSG_ERROR(You need pthreads to build TSRM.)
-])
+fi
+
+AC_DEFINE(PTHREADS)
 
 AC_CHECK_HEADERS(stdarg.h)
 
index 414851122ca66417400b88c49f7705d8c46f647b..211c8ac5cc500fe496e4654defe3c3f38fbd11a0 100644 (file)
@@ -5,11 +5,21 @@
 
 #undef PTHREADS
 
+/* Define if you have the pthread_create function.  */
+#undef HAVE_PTHREAD_CREATE
+
 /* Define if you have the <stdarg.h> header file.  */
 #undef HAVE_STDARG_H
 
-#ifdef DEFINE_TSRM_VERSION
-# undef PACKAGE
-# undef VERSION
-#endif
+/* Define if you have the c_r library (-lc_r).  */
+#undef HAVE_LIBC_R
+
+/* Define if you have the pthread library (-lpthread).  */
+#undef HAVE_LIBPTHREAD
+
+/* Name of package */
+#undef PACKAGE
+
+/* Version number of package */
+#undef VERSION