From d61e244821de3705a0312e9f23550de4c1dcdf11 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:02:53 +0900 Subject: Revert "Fix: Case where system library has epoll but kernel does not support it." Configure-time checking for features should not invoke any code. It won't work for the case of cross-compilation. This reverts commit 5d6abb9379c6860ca6864a02520e5f7443f0b2d6. --- acinclude.m4 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index e2e3951..531568d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -629,20 +629,17 @@ 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_RUN_IFELSE( + AC_LINK_IFELSE( [AC_LANG_PROGRAM( [ #include ], [[ struct epoll_event t_ev; -int r; -r = epoll_create(10); -return(r < 0); +epoll_create(10); ]] )], [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