/[hydra]/hydra/poll_or_select.m4
ViewVC logotype

Annotation of /hydra/poll_or_select.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Oct 21 18:46:25 2002 UTC (21 years, 5 months ago) by nmav
Branch: MAIN
CVS Tags: hydra_0_0_8
Added several stuff from Boa 0.94.14rc1

1 nmav 1.1 dnl Exports one of ac_cv_func_poll or ac_cv_func_select
2     AC_DEFUN([POLL_OR_SELECT],
3     [
4     AC_MSG_CHECKING(whether to use poll or select)
5     AC_ARG_WITH(poll,
6     [ --with-poll Use poll],
7     [
8     if test "$withval" = "yes" ; then
9     AC_MSG_RESULT(trying poll)
10     ac_x=1
11     else
12     AC_MSG_RESULT(trying select)
13     ac_x=0
14     fi
15     ],
16     [
17     AC_MSG_RESULT(trying select)
18     ac_x=0
19     ])
20    
21     if test $ac_x = 1; then
22     AC_CHECK_HEADERS(sys/poll.h)
23     AC_CHECK_FUNCS(poll)
24     if test "x$ac_cv_func_poll" = "x"; then
25     AC_MSG_ERROR(We attempted to find poll but could not. Please try again with --without-poll)
26     fi
27     BOA_ASYNC_IO="poll"
28     else
29     AC_CHECK_HEADERS(sys/select.h)
30     AC_CHECK_FUNCS(select)
31     if test "x$ac_cv_func_select" = "x"; then
32     AC_MSG_ERROR(We attempted to find select but could not. Please try again with --with-poll)
33     fi
34     BOA_ASYNC_IO="select"
35     fi
36     ]
37     )
38    

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26