aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2014-03-05 13:20:22 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2014-03-05 13:20:22 +0000
commitd6c27e7832c130d5592f585dbc8dc1ce5a13c20d (patch)
treef30e0af7ba87f40407a03eb148ad7d9a879f10bc
parent4a09553b9f89dc6eb6af411cdb862b28a8d0f26f (diff)
downloadlibmicrohttpd-d6c27e7832c130d5592f585dbc8dc1ce5a13c20d.tar.gz
libmicrohttpd-d6c27e7832c130d5592f585dbc8dc1ce5a13c20d.zip
configure.ac: simpler check for SOCK_NONBLOCK and print message for SOCK_NONBLOCK
-rw-r--r--configure.ac11
1 files changed, 1 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index ab92a47b..4925ae5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,8 +279,7 @@ AC_LINK_IFELSE(
279 ]) 279 ])
280 280
281 281
282AC_COMPILE_IFELSE( 282AC_CHECK_DECLS([SOCK_NONBLOCK], [AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBLOCK is defined in a socket header])], [],
283 [AC_LANG_PROGRAM(
284 [ 283 [
285 #if defined HAVE_SYS_TYPES_H 284 #if defined HAVE_SYS_TYPES_H
286 # include <sys/types.h> 285 # include <sys/types.h>
@@ -289,16 +288,8 @@ AC_COMPILE_IFELSE(
289 # include <sys/socket.h> 288 # include <sys/socket.h>
290 #elif defined HAVE_WINSOCK2_H 289 #elif defined HAVE_WINSOCK2_H
291 # include <winsock2.h> 290 # include <winsock2.h>
292 #endif],
293 [
294 #ifndef SOCK_NONBLOCK
295 # error do not have SOCK_NONBLOCK
296 #endif 291 #endif
297 ]) 292 ])
298 ],
299 [
300 AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBLOCK is defined in a socket header])
301 ])
302 293
303 294
304AC_SEARCH_LIBS([clock_gettime], [rt], [ 295AC_SEARCH_LIBS([clock_gettime], [rt], [