ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/acinclude.m4
(Generate patch)

Comparing ircd-hybrid-7.3/acinclude.m4 (file contents):
Revision 1105 by michael, Tue Sep 14 08:15:53 2010 UTC vs.
Revision 1106 by michael, Tue Nov 2 15:10:53 2010 UTC

# Line 43 | Line 43 | AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM
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)
# Line 72 | Line 72 | AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM
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
# Line 90 | Line 90 | main() { return epoll_create(256) == -1
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines