diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 564f36ff..7aa620db 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -372,7 +372,9 @@ AS_IF([[test "x$with_threads" = "xauto"]], | |||
372 | [ | 372 | [ |
373 | AC_MSG_CHECKING([[for W32 threads]]) | 373 | AC_MSG_CHECKING([[for W32 threads]]) |
374 | AC_LINK_IFELSE( | 374 | AC_LINK_IFELSE( |
375 | [AC_LANG_PROGRAM([#include <windows.h>], [ HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL);])] | 375 | [AC_LANG_PROGRAM([[ |
376 | #include <windows.h> | ||
377 | ]], [ HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL);])] | ||
376 | , [[mhd_have_w32_threads='yes']], [[mhd_have_w32_threads='no']] | 378 | , [[mhd_have_w32_threads='yes']], [[mhd_have_w32_threads='no']] |
377 | ) | 379 | ) |
378 | AC_MSG_RESULT([[$mhd_have_w32_threads]]) | 380 | AC_MSG_RESULT([[$mhd_have_w32_threads]]) |
@@ -676,7 +678,9 @@ if test "$enable_poll" != "no"; then | |||
676 | else | 678 | else |
677 | AC_MSG_CHECKING([for WSAPoll()]) | 679 | AC_MSG_CHECKING([for WSAPoll()]) |
678 | AC_LINK_IFELSE([ | 680 | AC_LINK_IFELSE([ |
679 | AC_LANG_PROGRAM([[#include <winsock2.h>]], [[ | 681 | AC_LANG_PROGRAM([[ |
682 | #include <winsock2.h> | ||
683 | ]], [[ | ||
680 | WSAPOLLFD fda[2]; | 684 | WSAPOLLFD fda[2]; |
681 | WSAPoll(fda, 2, 0);]])], | 685 | WSAPoll(fda, 2, 0);]])], |
682 | [ | 686 | [ |
@@ -713,7 +717,9 @@ fi | |||
713 | if test "x$enable_epoll" = "xyes"; then | 717 | if test "x$enable_epoll" = "xyes"; then |
714 | AC_CACHE_CHECK([for epoll_create1()], [mhd_cv_have_epoll_create1], [ | 718 | AC_CACHE_CHECK([for epoll_create1()], [mhd_cv_have_epoll_create1], [ |
715 | AC_LINK_IFELSE([ | 719 | AC_LINK_IFELSE([ |
716 | AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[ | 720 | AC_LANG_PROGRAM([[ |
721 | #include <sys/epoll.h> | ||
722 | ]], [[ | ||
717 | int fd; | 723 | int fd; |
718 | fd = epoll_create1(EPOLL_CLOEXEC);]])], | 724 | fd = epoll_create1(EPOLL_CLOEXEC);]])], |
719 | [mhd_cv_have_epoll_create1=yes], | 725 | [mhd_cv_have_epoll_create1=yes], |
@@ -1080,7 +1086,9 @@ AC_CHECK_DECL([[clock_gettime]], | |||
1080 | ]) | 1086 | ]) |
1081 | ], [], [$MHD_LIBDEPS]) | 1087 | ], [], [$MHD_LIBDEPS]) |
1082 | LIBS="$SAVE_LIBS" | 1088 | LIBS="$SAVE_LIBS" |
1083 | ], [], [[#include <time.h>]]) | 1089 | ], [], [[ |
1090 | #include <time.h> | ||
1091 | ]]) | ||
1084 | 1092 | ||
1085 | AC_MSG_CHECKING([[for clock_get_time]]) | 1093 | AC_MSG_CHECKING([[for clock_get_time]]) |
1086 | AC_LINK_IFELSE( | 1094 | AC_LINK_IFELSE( |
@@ -1544,7 +1552,9 @@ choke me now | |||
1544 | LIBS="$LIBS $GNUTLS_LIBS" | 1552 | LIBS="$LIBS $GNUTLS_LIBS" |
1545 | AC_MSG_CHECKING([[whether GnuTLS is usable]]) | 1553 | AC_MSG_CHECKING([[whether GnuTLS is usable]]) |
1546 | AC_LINK_IFELSE([ | 1554 | AC_LINK_IFELSE([ |
1547 | AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], [[ | 1555 | AC_LANG_PROGRAM([[ |
1556 | #include <gnutls/gnutls.h> | ||
1557 | ]], [[ | ||
1548 | gnutls_session_t session; | 1558 | gnutls_session_t session; |
1549 | gnutls_priority_t priorities; | 1559 | gnutls_priority_t priorities; |
1550 | gnutls_global_init(); | 1560 | gnutls_global_init(); |