s3-waf: add support for iprint.
authorGünther Deschner <gd@samba.org>
Fri, 4 Feb 2011 15:49:30 +0000 (16:49 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 7 Feb 2011 09:01:50 +0000 (10:01 +0100)
Guenther

source3/wscript

index 61e00aadacf60c433c17420fc18c0ecfd3c3cf0a..3f226a8bbca1faf8bf60b36b378c1c92cc27efdf 100644 (file)
@@ -41,6 +41,7 @@ def set_options(opt):
     opt.SAMBA3_ADD_OPTION('krb5')
     opt.SAMBA3_ADD_OPTION('ldap')
     opt.SAMBA3_ADD_OPTION('cups', with_name="enable", without_name="disable")
+    opt.SAMBA3_ADD_OPTION('iprint', with_name="enable", without_name="disable")
     opt.SAMBA3_ADD_OPTION('merged-build', with_name="enable", without_name="disable")
     opt.SAMBA3_ADD_OPTION('pam')
     opt.SAMBA3_ADD_OPTION('quotas')
@@ -548,6 +549,13 @@ return acl_get_perm_np(permset_d, perm);
         # define an empty subsystem for cups, to allow it to be used as an empty dependency
         conf.SET_TARGET_TYPE('cups', 'EMPTY')
 
+    if Options.options.with_iprint:
+       if conf.CONFIG_SET('HAVE_CUPS'):
+            conf.DEFINE('HAVE_IPRINT', '1')
+        else:
+            print "--enable-iprint=yes but cups support not sufficient"
+            sys.exit(1)
+
     # Check for LDAP
     if Options.options.with_ldap:
         conf.CHECK_HEADERS('ldap.h lber.h')