s3-waf: correctly handle cups dependencies when cups development packages are not...
authorAndrew Tridgell <tridge@samba.org>
Thu, 8 Apr 2010 21:04:55 +0000 (15:04 -0600)
committerKai Blin <kai@samba.org>
Thu, 20 May 2010 20:16:13 +0000 (22:16 +0200)
source3/wscript

index bb17c7cccbda5eac6b8b4ded4f49c80e15c4357e..ef06a7e7b01ca8adde56036692f3b18d8694a809 100644 (file)
@@ -287,6 +287,9 @@ yp_get_default_domain
                        package="", uselib_store="cups")
         conf.CHECK_HEADERS('cups/cups.h cups/language.h', lib='cups')
         conf.CHECK_LIB('cups')
+    else:
+        # define an empty subsystem for cups, to allow it to be used as an empty dependency
+        conf.SET_TARGET_TYPE('cups', 'EMPTY')
 
     # Check for LDAP
     conf.CHECK_HEADERS('ldap.h lber.h')