* configure.ac: Add test to check for poll emulation

* Source/NSRunLoop.h: Don't use poll if we're just emulating.
* Source/unix/GSRunLoopCtxt.m: Idem.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20788 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2005-02-23 22:17:54 +00:00
parent b00056dd18
commit cdbd239478
7 changed files with 335 additions and 154 deletions

View file

@ -568,7 +568,19 @@ AC_CHECK_FUNCS(syslog)
#--------------------------------------------------------------------
AC_CHECK_HEADERS(poll.h)
AC_CHECK_FUNCS(poll)
have_poll=no
if test $ac_cv_header_poll_h = yes; then
have_poll=yes
AC_MSG_CHECKING(for poll emulation)
AC_EGREP_CPP(emulating_poll, [#include "config/config.poll.c"],
have_poll=no,)
if test $have_poll = yes; then
AC_MSG_RESULT(no)
AC_DEFINE(HAVE_POLL_F,1, [ Define if poll is NOT emulated via select])
else
AC_MSG_RESULT(yes)
fi
fi
#--------------------------------------------------------------------
# Check for pthread.h (only when building on Darwin machines)