mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Epoll is default for cross-compile. For regular-compile, test kernel (run) support.
This commit is contained in:
parent
c71375ea72
commit
1e5a48f521
21
acinclude.m4
21
acinclude.m4
@ -625,8 +625,9 @@ kqueue();
|
|||||||
}])
|
}])
|
||||||
|
|
||||||
dnl ################################################################################
|
dnl ################################################################################
|
||||||
dnl # LIBZMQ_CHECK_POLLER_EPOLL([action-if-found], [action-if-not-found]) #
|
dnl # LIBZMQ_CHECK_POLLER_EPOLL_RUN([action-if-found], [action-if-not-found]) #
|
||||||
dnl # Checks epoll polling system #
|
dnl # Checks epoll polling system can actually run #
|
||||||
|
dnl # For cross-compile, only requires that epoll can link #
|
||||||
dnl ################################################################################
|
dnl ################################################################################
|
||||||
AC_DEFUN([LIBZMQ_CHECK_POLLER_EPOLL], [{
|
AC_DEFUN([LIBZMQ_CHECK_POLLER_EPOLL], [{
|
||||||
AC_RUN_IFELSE(
|
AC_RUN_IFELSE(
|
||||||
@ -643,7 +644,21 @@ return(r < 0);
|
|||||||
)],
|
)],
|
||||||
[libzmq_cv_have_poller_epoll="yes" ; $1],
|
[libzmq_cv_have_poller_epoll="yes" ; $1],
|
||||||
[libzmq_cv_have_poller_epoll="no" ; $2],
|
[libzmq_cv_have_poller_epoll="no" ; $2],
|
||||||
[libzmq_cv_have_poller_epoll="no" ; $2])
|
[
|
||||||
|
AC_LINK_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM(
|
||||||
|
[
|
||||||
|
#include <sys/epoll.h>
|
||||||
|
],
|
||||||
|
[[
|
||||||
|
struct epoll_event t_ev;
|
||||||
|
epoll_create(10);
|
||||||
|
]]
|
||||||
|
)],
|
||||||
|
[libzmq_cv_have_poller_epoll="yes" ; $1],
|
||||||
|
[libzmq_cv_have_poller_epoll="no" ; $2])
|
||||||
|
|
||||||
|
])
|
||||||
}])
|
}])
|
||||||
|
|
||||||
dnl ################################################################################
|
dnl ################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user