summaryrefslogtreecommitdiff
path: root/lib/audit_logging
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-06-22 05:39:08 +1200
committerRalph Boehme <slow@samba.org>2018-06-25 23:01:20 +0200
commitb650ea5398bbe11dcf7b75d4bfd04649fb6dae7c (patch)
tree886fcdcb347f8782a6cd4c1fdd217f8f6d79aa5b /lib/audit_logging
parenta2783fe1a3a93c6e3d106b2ab23c8c9acd3d382b (diff)
downloadsamba-b650ea5398bbe11dcf7b75d4bfd04649fb6dae7c.tar.gz
lib/audit_logging: Only build audit_logging_test for --enable-selftest on the AD DC
This allows a --without-ad-dc --enable-selftest build to compile, still testing some fileserver-only features. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib/audit_logging')
-rw-r--r--lib/audit_logging/wscript_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/audit_logging/wscript_build b/lib/audit_logging/wscript_build
index fff683788d6..24ac8bb4789 100644
--- a/lib/audit_logging/wscript_build
+++ b/lib/audit_logging/wscript_build
@@ -9,7 +9,7 @@ bld.SAMBA_SUBSYSTEM(
source='audit_logging.c'
)
-if bld.CONFIG_SET('ENABLE_SELFTEST'):
+if bld.AD_DC_BUILD_IS_ENABLED() and bld.CONFIG_GET('ENABLE_SELFTEST'):
bld.SAMBA_BINARY(
'audit_logging_test',
source='tests/audit_logging_test.c',