diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac index c745ccf530..0c4f4929c4 100644 --- a/legacy/ecore/configure.ac +++ b/legacy/ecore/configure.ac @@ -903,8 +903,15 @@ m4_ifdef([AC_PROG_OBJC], [ ]) AC_SUBST(cocoa_ldflags) -# check for epoll support -AC_CHECK_HEADERS([sys/epoll.h]) +AC_ARG_ENABLE(epoll, + AC_HELP_STRING([--enable-epoll], [enable or disable epoll support]), + [want_epoll=$enableval]) + +if test "x${want_epoll}" = "xyes" ; then + # check for epoll support + AC_CHECK_HEADERS([sys/epoll.h]) +fi + # basic pthread support