X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=configure.in;h=009d985afd844e0632710bf72d42d24d29abb867;hp=19578351645b52c4a116de2cf5323161bf4ea3e6;hb=90b0ba0f9d93e454cc08a566b718abdcbfd0d9f6;hpb=bae2f7c3ea591799eb6e07556042cd7c244d2d1c diff --git a/configure.in b/configure.in index 1957835..009d985 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT(src/htparser.c) -AM_INIT_AUTOMAKE([ashd], [0.4]) +AM_INIT_AUTOMAKE([ashd], [0.8]) AM_CONFIG_HEADER(config.h) AC_PROG_CC @@ -22,6 +22,25 @@ fi AH_TEMPLATE(HAVE_VALGRIND, [define to include debugging support for Valgrind]) AC_CHECK_HEADER(valgrind/memcheck.h, [AC_DEFINE(HAVE_VALGRIND)], []) +AH_TEMPLATE(HAVE_EPOLL, [define to enable epoll support]) +AC_ARG_WITH(epoll, [ --with-epoll Enable epoll(2) support]) +HAS_EPOLL="" +if test "$with_epoll" = no; then HAS_EPOLL=no; fi +if test -z "$HAS_EPOLL"; then + AC_CHECK_LIB(c, epoll_ctl, [:], [HAS_EPOLL=no]) +fi +if test -z "$HAS_EPOLL"; then + AC_CHECK_HEADER(sys/epoll.h, [], [HAS_EPOLL=no]) +fi +if test "$HAS_EPOLL" != no; then HAS_EPOLL=yes; fi +if test "$with_epoll" = yes -a "$HAS_EPOLL" = no; then + AC_MSG_ERROR([*** cannot find epoll support on this system]) +fi +if test "$HAS_EPOLL" = yes; then + AC_DEFINE(HAVE_EPOLL) +fi +AM_CONDITIONAL(USE_EPOLL, [test "$HAS_EPOLL" = yes ]) + AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes]) AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support]) HAS_XATTR=""