From eeb7e724560f8ed3d830726492e0a37f5a438115 Mon Sep 17 00:00:00 2001 From: Michael Fox <415fox@gmail.com> Date: Thu, 16 Feb 2012 10:02:49 +0900 Subject: Fix: Case where system library has epoll but kernel does not support it. --- acinclude.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 531568d..e2e3951 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -629,17 +629,20 @@ dnl # LIBXS_CHECK_POLLER_EPOLL([action-if-found], [action-if-not-found]) dnl # Checks epoll polling system # dnl ################################################################################ AC_DEFUN([LIBXS_CHECK_POLLER_EPOLL], [{ - AC_LINK_IFELSE( + AC_RUN_IFELSE( [AC_LANG_PROGRAM( [ #include ], [[ struct epoll_event t_ev; -epoll_create(10); +int r; +r = epoll_create(10); +return(r < 0); ]] )], [libxs_cv_have_poller_epoll="yes" ; $1], + [libxs_cv_have_poller_epoll="no" ; $2], [libxs_cv_have_poller_epoll="no" ; $2]) }]) -- cgit v1.2.3