1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-02-07 12:50:03 +00:00

./configure: Fix logic and quoting of poll() detection code

This fixes commit 8e193df ...
This commit is contained in:
Alexander Barton 2011-12-05 00:19:32 +01:00
parent 8fa92f0a24
commit ee21490887

View File

@ -252,22 +252,21 @@ 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, AC_CHECK_FUNCS(poll, [
AC_CHECK_HEADERS(poll.h, AC_CHECK_HEADERS(poll.h,
x_io_backend=poll\(\), x_io_backend=poll\(\),
AC_MSG_ERROR( AC_MSG_ERROR(
[Can't enable poll IO support!]) [Can't enable poll IO support!])
,
AC_MSG_ERROR(
[Can't enable poll IO support!])
)
) )
], [
AC_MSG_ERROR([Can't enable poll IO support!])
])
fi fi
], ],
[ [
AC_CHECK_FUNCS(poll, AC_CHECK_FUNCS(poll, [
AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\)) AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
) ])
] ]
) )