From 19bdce297f356efb8a75ea2c6a3d5e712ed98b63 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 6 Oct 2010 11:38:54 +0000 Subject: Check for inotify. --- server/configure.in | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/server/configure.in b/server/configure.in index 460b463..0a2bc89 100644 --- a/server/configure.in +++ b/server/configure.in @@ -14,7 +14,19 @@ if test x$with_debug == xyes; then AC_MSG_WARN([*** Building with debug support!]) AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output]) CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0" -fi +fi + +dnl ====================== +dnl Check for inotify (old and new) +dnl ====================== +inotify_support=no +AC_CHECK_HEADERS([sys/inotify.h], +[ + inotify_support=yes + AC_CHECK_FUNCS(inotify_init1) +]) + +AM_CONDITIONAL(HAVE_INOTIFY, [test "$inotify_support" = "yes"]) dnl ====================== dnl Compile with artefact support @@ -149,6 +161,7 @@ dnl Check for libmicrohttpd dnl ====================== PKG_CHECK_MODULES(HTTPD, libmicrohttpd >= 0.4.4) + dnl ====================== dnl Check for eXpat library dnl ====================== -- cgit v1.2.3