Update the configure script check for sys/poll.h to also provide the result in

include/asterisk/autoconfig.h.  Also, move the conditional include of sys/poll.h
or asterisk/poll-compat.h into asterisk/config.h instead of the two headers it
existed in before.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-11-17 06:33:07 +00:00
parent 89a49511a4
commit 505499588b
6 changed files with 29 additions and 8 deletions

View File

@@ -288,7 +288,10 @@ AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent ftruncate getcwd gethostbyna
AC_CHECK_FUNCS([glob])
AC_CHECK_FUNCS([timersub])
AC_CHECK_HEADER([sys/poll.h], [HAS_POLL=1],)
AC_CHECK_HEADER([sys/poll.h],
[HAS_POLL=1]
AC_DEFINE([HAVE_SYS_POLL_H], 1, [Define to 1 if your system has working sys/poll.h]),
)
AC_SUBST(HAS_POLL)
# https support (in main/http.c) uses funopen on BSD systems,