Fix epoll detection

The "ac_cv_header-..." macros are either set to "yes" or "no" and never to
the empty string.
This commit is contained in:
Christian Gudrian committed 2019-10-25 23:20:55 +02:00
1 parent 7858c57919
commit f8a6debe81
1 file changed
+1 -1
+1 -1
View File
@@ -575,7 +575,7 @@ AC_CHECK_HEADERS([assert.h arpa/inet.h limits.h netdb.h netinet/in.h \
# For epoll, need two headers (sys/epoll.h sys/timerfd.h), but set up one #define
AC_CHECK_HEADER([sys/epoll.h])
AC_CHECK_HEADER([sys/timerfd.h])
if test "x$ac_cv_header_sys_epoll_h" != "x" -a "x$ac_cv_header_sys_timerfd_h" != "x"; then
if test "x$ac_cv_header_sys_epoll_h" = "xyes" -a "x$ac_cv_header_sys_timerfd_h" = "xyes"; then
have_epoll="yes"
AC_ARG_WITH([epoll],
[AS_HELP_STRING([--with-epoll],