From 66675789502f83675335ad45404ed311536e9603 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 4 Oct 2010 18:03:36 -0400 Subject: [PATCH] add --disable option inotify so we can test compiling without it present --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0278b81a..f491be27 100644 --- a/configure.ac +++ b/configure.ac @@ -90,7 +90,18 @@ AM_GNU_GETTEXT([external]) AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h grp.h locale.h pwd.h) AC_CHECK_HEADERS(signal.h string.h stdio.h stdlib.h unistd.h sys/stat.h) AC_CHECK_HEADERS(sys/select.h sys/socket.h sys/time.h sys/types.h sys/wait.h) -AC_CHECK_HEADERS(sys/inotify.h) + +AC_ARG_ENABLE(inotify, + AC_HELP_STRING( + [--disable-inotify], + [disable inotify support [default=enabled]] + ), + [enable_inotify=$enableval], + [enable_inotify=yes] +) +if test "$enable_inotify" = yes; then + AC_CHECK_HEADERS(sys/inotify.h) +fi AC_PATH_PROG([SED], [sed], [no]) if test "$SED" = "no"; then -- 2.34.1