summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-03-20 16:51:15 +0100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:02 +1000
commit59074dcfb1b07d487f01c63d1e06408605332884 (patch)
tree1f2d18742a6280c6a0d4749595c0f8a0c71907f8
parent41e8e54406bfadbbb2419b904d52f8bfe9ff40fa (diff)
downloadsamba-59074dcfb1b07d487f01c63d1e06408605332884.tar.gz
samba-59074dcfb1b07d487f01c63d1e06408605332884.tar.bz2
samba-59074dcfb1b07d487f01c63d1e06408605332884.zip
build: Check for CUPS
-rw-r--r--source3/wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 64deadbcde..4b140baccf 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -37,5 +37,10 @@ def configure(conf):
conf.sub_config('../lib/socket_wrapper')
conf.sub_config('../lib/uid_wrapper')
+ # Look for CUPS
+ conf.find_program('cups-config', var='CUPS_CONFIG')
+ if conf.env.CUPS_CONFIG:
+ conf.check_cfg(path="cups-config", args="--cflags --ldflags --libs", package="", uselib_store="CUPS")
+ conf.CHECK_HEADERS('cups/cups.h cups/language.h', add_headers=False)
conf.SAMBA_CONFIG_H('include/config.h')