diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-03-03 23:42:55 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-03-03 23:42:55 +0000 |
commit | 8442f95d1db65bcee7ec9f9e515b4fa812030dbd (patch) | |
tree | bd2ee3a59e87ad6afc150fe4d10265bc352c7029 /configure.ac | |
parent | 4152f010b2eab67d2f84c1dc69179d6aee6a507d (diff) | |
download | libmicrohttpd-8442f95d1db65bcee7ec9f9e515b4fa812030dbd.tar.gz libmicrohttpd-8442f95d1db65bcee7ec9f9e515b4fa812030dbd.zip |
Check for epoll_create1() function, fix build for Android
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f64e18f4..69e672ea 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -293,6 +293,18 @@ if test "$enable_epoll" != "no"; then | |||
293 | fi | 293 | fi |
294 | fi | 294 | fi |
295 | 295 | ||
296 | if test "x$enable_epoll" = "xyes"; then | ||
297 | AC_CACHE_CHECK([for epoll_create1()], [mhd_cv_have_epoll_create1], [ | ||
298 | AC_LINK_IFELSE([ | ||
299 | AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[ | ||
300 | int fd; | ||
301 | fd = epoll_create1(EPOLL_CLOEXEC);]])], | ||
302 | [mhd_cv_have_epoll_create1=yes], | ||
303 | [mhd_cv_have_epoll_create1=no])]) | ||
304 | AS_IF([test "x$mhd_cv_have_epoll_create1" = "xyes"],[ | ||
305 | AC_DEFINE([[HAVE_EPOLL_CREATE1]], [[1]], [Define if you have epoll_create1 function.])]) | ||
306 | fi | ||
307 | |||
296 | if test "x$HAVE_POSIX_THREADS" = "xyes"; then | 308 | if test "x$HAVE_POSIX_THREADS" = "xyes"; then |
297 | # Check for pthread_setname_np() | 309 | # Check for pthread_setname_np() |
298 | SAVE_LIBS="$LIBS" | 310 | SAVE_LIBS="$LIBS" |