summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 65e401b1ee..23863675c0 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -39,6 +39,12 @@ def configure(conf):
conf.CHECK_HEADERS('execinfo.h libexc.h libunwind.h')
+ # Check for inotify support
+ conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h', add_headers=False)
+ conf.CHECK_FUNCS('inotify_init')
+ if "HAVE_LINUX_INOTIFY_H" in conf.env and "HAVE_INOTIFY_INIT" in conf.env:
+ conf.DEFINE('HAVE_INOTIFY', 1)
+
# Look for CUPS
conf.find_program('cups-config', var='CUPS_CONFIG')
if conf.env.CUPS_CONFIG: