s4-torture: dns torture test depends on AD DC build
authorAlexander Bokovoy <ab@samba.org>
Thu, 6 Sep 2012 12:29:13 +0000 (15:29 +0300)
committerAlexander Bokovoy <ab@samba.org>
Fri, 7 Sep 2012 10:31:42 +0000 (12:31 +0200)
source4/torture/dns/wscript_build

index 83df02fec426774973e319f206f504af985d78ca..674a3a0c2bd78a391e9db37d02d3cde90626b562 100644 (file)
@@ -1,10 +1,11 @@
 #!/usr/bin/env python
 
-bld.SAMBA_MODULE('TORTURE_DNS',
-       source='dlz_bind9.c',
-       subsystem='smbtorture',
-       init_function='torture_dns_init',
-       cflags='-DBIND_VERSION_9_8',
-       deps='torture talloc torturemain dlz_bind9_for_torture',
-       internal_module=True
-       )
+if bld.AD_DC_BUILD_IS_ENABLED():
+       bld.SAMBA_MODULE('TORTURE_DNS',
+               source='dlz_bind9.c',
+               subsystem='smbtorture',
+               init_function='torture_dns_init',
+               cflags='-DBIND_VERSION_9_8',
+               deps='torture talloc torturemain dlz_bind9_for_torture',
+               internal_module=True
+               )