waf: Only build smb_krb5_wrapper if we have CUPS
authorAndreas Schneider <asn@samba.org>
Tue, 26 Jan 2016 10:28:50 +0000 (11:28 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Feb 2016 07:56:20 +0000 (08:56 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 192f1516c378ae942d14921bfcc1e11173da36e6)

source3/wscript_build

index f82b05bca8a56d9b8e338d8d56cbaa2c43f17bd1..58e1b9996d90842ba9a2521e0a08d4852feb1c43 100755 (executable)
@@ -1157,7 +1157,8 @@ bld.SAMBA3_BINARY('smbspool_krb5_wrapper',
                  deps='''
                  DYNCONFIG
                  cups
-                 ''')
+                 ''',
+                 enabled=bld.CONFIG_SET('HAVE_CUPS'))
 
 bld.SAMBA3_BINARY('testparm',
                  source='utils/testparm.c',