X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=configure.in;h=ece99dbac74bfc708ea6d367f2c3be5b70998b8e;hp=3e0788cc2dfd2290ea0d3d52d05f1f9b58a449cc;hb=5f0c1cd631b9abcca90afe15cf129babba86f7f1;hpb=5518f5b5731a252c7cc871edd28b18af798e185e diff --git a/configure.in b/configure.in index 3e0788c..ece99db 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ AC_INIT(src/htparser.c) -AM_INIT_AUTOMAKE([ashd], [0.2]) +AM_INIT_AUTOMAKE([ashd], [0.11]) AM_CONFIG_HEADER(config.h) AC_PROG_CC @@ -19,6 +19,28 @@ if test "$HAS_MAGIC" = no; then AC_MSG_ERROR([*** cannot find libmagic on this system]) 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=""