From: Sascha Schumann Date: Sun, 30 Apr 2000 02:31:07 +0000 (+0000) Subject: Work around the non-working pthread.h detection on OpenBSD. X-Git-Tag: APACHE_2_0_ALPHA_4~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb5807c705f512cf61a501b06ef5158ab38c64ae;p=apache Work around the non-working pthread.h detection on OpenBSD. We can savely assume that pthread.h exists on every system which supports Pthreads. PR: #29 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85104 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/config.m4 b/server/mpm/config.m4 index 2e3d53bd3c..c06769e482 100644 --- a/server/mpm/config.m4 +++ b/server/mpm/config.m4 @@ -61,18 +61,11 @@ AC_DEFUN(APACHE_MPM_CHECK_SHMEM, [ dnl Check for pthreads and attempt to support it AC_DEFUN(APACHE_MPM_PTHREAD, [ + if test "$pthreads_working" != "yes"; then + AC_MSG_ERROR(This MPM requires pthreads. Try --with-mpm=prefork.) + fi -dnl XXX - We should be checking for the proper flags to use on a particular -dnl platform. This will cover a couple of them, anyway - - AC_CHECK_HEADER(pthread.h, [ ],[ - AC_MSG_ERROR(This MPM requires pthreads. Try --with-mpm=prefork.) - ]) - AC_CHECK_FUNC(pthread_create, [ ],[ - AC_MSG_ERROR(Can't compile pthread code.) - ]) - - dnl User threads libraries need pthread.h included everywhere - AC_DEFINE(PTHREAD_EVERYWHERE,, - [Define if all code should have #include ]) + dnl User threads libraries need pthread.h included everywhere + AC_DEFINE(PTHREAD_EVERYWHERE,, + [Define if all code should have #include ]) ])