1
# check for EPOLL and native Linux AIO interface
2
SMB_ENABLE(EVENTS_EPOLL, NO)
3
SMB_ENABLE(EVENTS_AIO, NO)
4
AC_CHECK_HEADERS(sys/epoll.h)
5
AC_CHECK_FUNCS(epoll_create)
6
if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes";then
7
SMB_ENABLE(EVENTS_EPOLL,YES)
8
AC_DEFINE(HAVE_EVENTS_EPOLL, 1, [Whether epoll is available])
10
# check for native Linux AIO interface
11
AC_CHECK_HEADERS(libaio.h)
12
AC_CHECK_LIB_EXT(aio, AIO_LIBS, io_getevents)
13
if test x"$ac_cv_header_libaio_h" = x"yes" -a x"$ac_cv_lib_ext_aio_io_getevents" = x"yes";then
14
SMB_ENABLE(EVENTS_AIO,YES)
15
AC_DEFINE(HAVE_LINUX_AIO, 1, [Whether Linux AIO is available])
18
SMB_EXT_LIB(LIBAIO_LINUX, $AIO_LIBS)