43 |
|
dnl {{{ check for epoll oechanism support |
44 |
|
iopoll_mechanism_epoll=2 |
45 |
|
AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_EPOLL],[$iopoll_mechanism_epoll],[epoll mechanism]) |
46 |
< |
AC_RUN_IFELSE([ |
46 |
> |
AC_RUN_IFELSE([AC_LANG_PROGRAM([[ |
47 |
|
#include <sys/epoll.h> |
48 |
|
#include <sys/syscall.h> |
49 |
|
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
72 |
|
#endif |
73 |
|
_syscall1(int, epoll_create, int, size) |
74 |
|
#endif |
75 |
< |
main() { return epoll_create(256) == -1 ? 1 : 0; } |
76 |
< |
],[is_epoll_mechanism_available="yes"],[is_epoll_mechanism_available="no"]) |
75 |
> |
]], [[ return epoll_create(256) == -1 ? 1 : 0 ]])], |
76 |
> |
[is_epoll_mechanism_available="yes"],[is_epoll_mechanism_available="no"]) |
77 |
|
dnl }}} |
78 |
|
dnl {{{ check for devpoll mechanism support |
79 |
|
iopoll_mechanism_devpoll=3 |
90 |
|
dnl {{{ check for rtsigio mechanism support |
91 |
|
iopoll_mechanism_rtsigio=4 |
92 |
|
AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_RTSIGIO],[$iopoll_mechanism_rtsigio],[rtsigio mechanism]) |
93 |
< |
AC_RUN_IFELSE([AC_LANG_PROGRAM([ |
93 |
> |
AC_RUN_IFELSE([AC_LANG_PROGRAM([[ |
94 |
> |
#define _GNU_SOURCE |
95 |
|
#include <fcntl.h> |
96 |
+ |
static unsigned int have_f_setsig = 0; |
97 |
+ |
]], [[ |
98 |
|
#ifdef F_SETSIG |
99 |
< |
main () { return 0; } /* F_SETSIG defined */ |
97 |
< |
#else |
98 |
< |
main () { return 1; } /* F_SETSIG not defined */ |
99 |
> |
have_f_setsig = 1; |
100 |
|
#endif |
101 |
< |
])],[is_rtsigio_mechanism_available="yes"],[is_rtsigio_mechanism_available="no"]) |
101 |
> |
return have_f_setsig == 0; |
102 |
> |
]])], [is_rtsigio_mechanism_available="yes"],[is_rtsigio_mechanism_available="no"]) |
103 |
|
dnl }}} |
104 |
|
dnl {{{ check for poll mechanism support |
105 |
|
iopoll_mechanism_poll=5 |