X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=configure.in;h=f3dbd7275cd4b437d0e98e59056db607bfa92d34;hp=92434ec7d044945f9a25914804cd0df289acade1;hb=9d348d00d9eda2aede0ea9052bcc34cd070d3b5a;hpb=9e48f3f8f8c312ee20caef70cfb377a0d89260bb diff --git a/configure.in b/configure.in index 92434ec7..f3dbd727 100644 --- a/configure.in +++ b/configure.in @@ -252,13 +252,22 @@ AC_ARG_WITH(poll, CPPFLAGS="-I$withval/include $CPPFLAGS" LDFLAGS="-L$withval/lib $LDFLAGS" fi - AC_CHECK_FUNCS(poll, x_io_backend=poll\(\), - AC_MSG_ERROR([Can't enable poll IO support!]) + AC_CHECK_FUNCS(poll, + 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 ], [ - AC_CHECK_FUNCS(poll, x_io_backend=poll\(\)) + AC_CHECK_FUNCS(poll, + AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\)) + ) ] )