waf: Only build KRB5 KDC tests when AD_DC build is enabled
authorAndreas Schneider <asn@samba.org>
Tue, 25 Apr 2017 06:32:01 +0000 (08:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Sat, 29 Apr 2017 21:31:10 +0000 (23:31 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/krb5/wscript_build

index b9d9eb7..49947fe 100644 (file)
@@ -1,19 +1,19 @@
 #!/usr/bin/env python
 
-if bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'):
-      bld.SAMBA_MODULE('TORTURE_KRB5',
-                       source='kdc-heimdal.c kdc-canon-heimdal.c',
-                       autoproto='proto.h',
-                       subsystem='smbtorture',
-                       init_function='torture_krb5_init',
-                       deps='authkrb5 popt POPT_CREDENTIALS torture KERBEROS_UTIL',
-                       internal_module=True
-                 )
-else:
-      bld.SAMBA_MODULE('TORTURE_KRB5',
-                       source='kdc-mit.c',
-                       autoproto='proto.h',
-                       subsystem='smbtorture',
-                       init_function='torture_krb5_init',
-                       deps='authkrb5 popt POPT_CREDENTIALS torture KERBEROS_UTIL',
-                       internal_module=True)
+if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
+    if bld.CONFIG_SET('SAMBA4_USES_HEIMDAL'):
+        bld.SAMBA_MODULE('TORTURE_KRB5',
+                         source='kdc-heimdal.c kdc-canon-heimdal.c',
+                         autoproto='proto.h',
+                         subsystem='smbtorture',
+                         init_function='torture_krb5_init',
+                         deps='authkrb5 popt POPT_CREDENTIALS torture KERBEROS_UTIL',
+                         internal_module=True)
+    else:
+            bld.SAMBA_MODULE('TORTURE_KRB5',
+                             source='kdc-mit.c',
+                             autoproto='proto.h',
+                             subsystem='smbtorture',
+                             init_function='torture_krb5_init',
+                             deps='authkrb5 popt POPT_CREDENTIALS torture KERBEROS_UTIL',
+                             internal_module=True)