summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/sysdep/config.m4')
-rw-r--r--source4/ntvfs/sysdep/config.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ntvfs/sysdep/config.m4 b/source4/ntvfs/sysdep/config.m4
index 6de75a4294..f54f65d08d 100644
--- a/source4/ntvfs/sysdep/config.m4
+++ b/source4/ntvfs/sysdep/config.m4
@@ -1,9 +1,13 @@
-AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h)
+AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h sys/inotify.h)
AC_CHECK_FUNC(inotify_init)
AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
SMB_ENABLE(sys_notify_inotify, NO)
+if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_sys_inotify_h" = x"yes"; then
+ SMB_ENABLE(sys_notify_inotify, YES)
+fi
+
if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
SMB_ENABLE(sys_notify_inotify, YES)
fi