libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d6c27e7832c130d5592f585dbc8dc1ce5a13c20d
parent 4a09553b9f89dc6eb6af411cdb862b28a8d0f26f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  5 Mar 2014 13:20:22 +0000

configure.ac: simpler check for SOCK_NONBLOCK and print message for SOCK_NONBLOCK

Diffstat:
Mconfigure.ac | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -279,8 +279,7 @@ AC_LINK_IFELSE( ]) -AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( +AC_CHECK_DECLS([SOCK_NONBLOCK], [AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBLOCK is defined in a socket header])], [], [ #if defined HAVE_SYS_TYPES_H # include <sys/types.h> @@ -289,16 +288,8 @@ AC_COMPILE_IFELSE( # include <sys/socket.h> #elif defined HAVE_WINSOCK2_H # include <winsock2.h> - #endif], - [ - #ifndef SOCK_NONBLOCK - # error do not have SOCK_NONBLOCK #endif ]) - ], - [ - AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBLOCK is defined in a socket header]) - ]) AC_SEARCH_LIBS([clock_gettime], [rt], [