summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-04-26 11:54:37 -0400
committerSteve Dickson <steved@redhat.com>2012-04-26 13:25:04 -0400
commitb9f64af3b83a2916c5b6cd65fe011acc436942d4 (patch)
tree27806f92cbb5d57712bab81a105f6b81aad6d8d5 /configure.ac
parent09d9011c66e518ca7fd01d41607845b940f58c8f (diff)
downloadnfs-utils-b9f64af3b83a2916c5b6cd65fe011acc436942d4.tar.gz
nfs-utils-b9f64af3b83a2916c5b6cd65fe011acc436942d4.tar.xz
nfs-utils-b9f64af3b83a2916c5b6cd65fe011acc436942d4.zip
nfsdcld: make it watch for inotify events in the containing directory
Before opening the pipe, set an inotify watch on the containing dir and then try to open the pipe. If it succeeds, then set up pipe and inotify events and return success. If it fails with -ENOENT, then just set up the inotify event and return success. If it fails with any other error then return the error and the caller can then abort the program. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0d29dc7..b6a1af7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -270,6 +270,9 @@ if test "$enable_nfsv4" = yes; then
AC_SQLITE3_VERS
if test "$enable_nfsdcld" = "yes"; then
+ AC_CHECK_HEADERS([libgen.h sys/inotify.h], ,
+ AC_MSG_ERROR([Cannot find header needed for nfsdcld]))
+
if test "$libsqlite3_cv_is_recent" != "yes" ; then
AC_MSG_ERROR([nfsdcld requires sqlite3])
fi