1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-13 10:20:28 +00:00

Not only check for poll(), make sure poll.h exists as well

This fixes building ngIRCd on Debian GNU/Linux 1.3 "Bo" :-)
This commit is contained in:
Alexander Barton 2011-11-25 21:56:33 +01:00
parent 9e48f3f8f8
commit 9d348d00d9

View File

@ -252,13 +252,22 @@ AC_ARG_WITH(poll,
CPPFLAGS="-I$withval/include $CPPFLAGS" CPPFLAGS="-I$withval/include $CPPFLAGS"
LDFLAGS="-L$withval/lib $LDFLAGS" LDFLAGS="-L$withval/lib $LDFLAGS"
fi fi
AC_CHECK_FUNCS(poll, x_io_backend=poll\(\), AC_CHECK_FUNCS(poll,
AC_MSG_ERROR([Can't enable poll IO support!]) AC_CHECK_HEADERS(poll.h,
x_io_backend=poll\(\),
AC_MSG_ERROR(
[Can't enable poll IO support!])
,
AC_MSG_ERROR(
[Can't enable poll IO support!])
)
) )
fi fi
], ],
[ [
AC_CHECK_FUNCS(poll, x_io_backend=poll\(\)) AC_CHECK_FUNCS(poll,
AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
)
] ]
) )