./configure: Fix logic and quoting of poll() detection code
This fixes commit 8e193df
...
This commit is contained in:
parent
8fa92f0a24
commit
ee21490887
15
configure.in
15
configure.in
|
@ -252,22 +252,21 @@ AC_ARG_WITH(poll,
|
|||
CPPFLAGS="-I$withval/include $CPPFLAGS"
|
||||
LDFLAGS="-L$withval/lib $LDFLAGS"
|
||||
fi
|
||||
AC_CHECK_FUNCS(poll,
|
||||
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!])
|
||||
[Can't enable poll IO support!])
|
||||
)
|
||||
)
|
||||
], [
|
||||
AC_MSG_ERROR([Can't enable poll IO support!])
|
||||
])
|
||||
fi
|
||||
],
|
||||
[
|
||||
AC_CHECK_FUNCS(poll,
|
||||
AC_CHECK_FUNCS(poll, [
|
||||
AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
|
||||
)
|
||||
])
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue