diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:02:53 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:02:53 +0900 |
commit | d61e244821de3705a0312e9f23550de4c1dcdf11 (patch) | |
tree | 0dcf286bd48497f12d2dd6f4cca0621d8ecef0a8 /acinclude.m4 | |
parent | eeb7e724560f8ed3d830726492e0a37f5a438115 (diff) |
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.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 7 |
1 files changed, 2 insertions, 5 deletions
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 <sys/epoll.h> ], [[ 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]) }]) |