aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8f64f6c7..1f472830 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,28 @@ AM_CONDITIONAL(USE_PRIVATE_PLIBC_H, test x$our_private_plibc_h = x1)
232AC_CHECK_FUNCS_ONCE(memmem) 232AC_CHECK_FUNCS_ONCE(memmem)
233AC_CHECK_FUNCS_ONCE(accept4) 233AC_CHECK_FUNCS_ONCE(accept4)
234 234
235AC_COMPILE_IFELSE(
236 [AC_LANG_PROGRAM(
237 [
238 #if defined HAVE_SYS_TYPES_H
239 # include <sys/types.h>
240 #endif
241 #if defined HAVE_SYS_SOCKET_H
242 # include <sys/socket.h>
243 #elif defined HAVE_WINSOCK2_H
244 # include <winsock2.h>
245 #endif],
246 [
247 #ifndef SOCK_NONBLOCK
248 # error do not have SOCK_NONBLOCK
249 #endif
250 ])
251 ],
252 [
253 AC_DEFINE([HAVE_SOCK_NONBLOCK], [1], [SOCK_NONBLOCK is defined in a socket header])
254 ])
255
256
235AC_SEARCH_LIBS([clock_gettime], [rt], [ 257AC_SEARCH_LIBS([clock_gettime], [rt], [
236 AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Have clock_gettime]) 258 AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Have clock_gettime])
237]) 259])