summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-03-21 12:44:31 +0100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:02 +1000
commit207869dbf44f23fd3b1576e248851b88d333a6fa (patch)
tree85b12b19536ba962d498e20cd1ac71c8752480dd /source3
parent048b821b29566613a0e494eb2712abcf7f62bd6e (diff)
downloadsamba-207869dbf44f23fd3b1576e248851b88d333a6fa.tar.gz
samba-207869dbf44f23fd3b1576e248851b88d333a6fa.tar.bz2
samba-207869dbf44f23fd3b1576e248851b88d333a6fa.zip
build: Check for kernel change notify support
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 23863675c0..f0d85326c6 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -45,6 +45,19 @@ def configure(conf):
if "HAVE_LINUX_INOTIFY_H" in conf.env and "HAVE_INOTIFY_INIT" in conf.env:
conf.DEFINE('HAVE_INOTIFY', 1)
+ # Check for kernel change notify support
+ conf.CHECK_CODE('''
+#include <sys/types.h>
+#include <fcntl.h>
+#include <signal.h>
+#ifndef F_NOTIFY
+#define F_NOTIFY 1026
+#endif
+main() {
+ exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
+}''', 'HAVE_KERNEL_CHANGE_NOTIFY', addmain=False, execute=True,
+ msg="Checking for kernel change notify support")
+
# Look for CUPS
conf.find_program('cups-config', var='CUPS_CONFIG')
if conf.env.CUPS_CONFIG: