Commit eab3ff43 authored by Sascha Schumann's avatar Sascha Schumann
Browse files

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
parent 3e962c78
Loading
Loading
Loading
Loading
+6 −13
Original line number Diff line number Diff line
@@ -61,16 +61,9 @@ AC_DEFUN(APACHE_MPM_CHECK_SHMEM, [

dnl Check for pthreads and attempt to support it
AC_DEFUN(APACHE_MPM_PTHREAD, [

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, [ ],[
  if test "$pthreads_working" != "yes"; then
    AC_MSG_ERROR(This MPM requires pthreads. Try --with-mpm=prefork.)
    ])
    AC_CHECK_FUNC(pthread_create, [ ],[
        AC_MSG_ERROR(Can't compile pthread code.)
    ])
  fi

  dnl User threads libraries need pthread.h included everywhere
  AC_DEFINE(PTHREAD_EVERYWHERE,,