1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

build: check for inotify support

This commit is contained in:
Kai Blin 2010-03-21 12:20:52 +01:00 committed by Andrew Tridgell
parent fcab2b3305
commit 048b821b29

View File

@ -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: