From 715438f13d741089f507d10fca9a9566a8f10f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Mon, 7 Nov 2011 12:42:28 +0100 Subject: [PATCH] s3-build: Fix bug 8580 Enable inotify if sys or kernel inotify is available. --- source3/configure.in | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 9b49c96..bcec8a5 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2828,8 +2828,10 @@ samba_cv_HAVE_INOTIFY=yes, samba_cv_HAVE_INOTIFY=no, samba_cv_HAVE_INOTIFY=cross) -if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then - AC_DEFINE(HAVE_INOTIFY,1,[Whether kernel has inotify support]) +if test x"$ac_cv_func_inotify_init" = x"yes"; then + if test x"$ac_cv_header_sys_inotify_h" = x"yes" -o x"$ac_cv_header_linux_inotify_h" = x"yes"; then + AC_DEFINE(HAVE_INOTIFY,1,[Whether kernel or sys has inotify support]) + fi fi ################################################# -- 1.7.3.4