diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e5ea2590..b9918093 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -247,7 +247,11 @@ test "x$with_threads" = "xpthreads" && with_threads='posix' | |||
247 | 247 | ||
248 | # Check for posix threads support, regardless of configure parameters as | 248 | # Check for posix threads support, regardless of configure parameters as |
249 | # posix threads are used in some tests even on W32. | 249 | # posix threads are used in some tests even on W32. |
250 | AX_PTHREAD([HAVE_POSIX_THREADS='yes'],[HAVE_POSIX_THREADS='no']) | 250 | AX_PTHREAD( |
251 | [ | ||
252 | HAVE_POSIX_THREADS='yes' | ||
253 | AC_DEFINE([[HAVE_PTHREAD_H]],[[1]],[Define to 1 if you have the <pthread.h> header file.]) | ||
254 | ],[[HAVE_POSIX_THREADS='no']]) | ||
251 | AM_CONDITIONAL([HAVE_POSIX_THREADS],[test "x$HAVE_POSIX_THREADS" = "xyes"]) | 255 | AM_CONDITIONAL([HAVE_POSIX_THREADS],[test "x$HAVE_POSIX_THREADS" = "xyes"]) |
252 | 256 | ||
253 | HAVE_W32_THREADS='no' | 257 | HAVE_W32_THREADS='no' |
@@ -418,10 +422,10 @@ if test "x$HAVE_POSIX_THREADS" = "xyes"; then | |||
418 | fi | 422 | fi |
419 | 423 | ||
420 | # Check for headers that are ALWAYS required | 424 | # Check for headers that are ALWAYS required |
421 | AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h],,AC_MSG_ERROR([Compiling libmicrohttpd requires standard UNIX headers files])) | 425 | AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling libmicrohttpd requires standard UNIX headers files])) |
422 | 426 | ||
423 | # Check for optional headers | 427 | # Check for optional headers |
424 | AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h search.h endian.h machine/endian.h sys/endian.h sys/param.h sys/machine.h sys/byteorder.h machine/param.h sys/isa_defs.h inttypes.h]) | 428 | AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h search.h endian.h machine/endian.h sys/endian.h sys/param.h sys/machine.h sys/byteorder.h machine/param.h sys/isa_defs.h inttypes.h stddef.h]) |
425 | AM_CONDITIONAL([HAVE_TSEARCH], [test "x$ac_cv_header_search_h" = "xyes"]) | 429 | AM_CONDITIONAL([HAVE_TSEARCH], [test "x$ac_cv_header_search_h" = "xyes"]) |
426 | 430 | ||
427 | AC_CHECK_MEMBER([struct sockaddr_in.sin_len], | 431 | AC_CHECK_MEMBER([struct sockaddr_in.sin_len], |