From: Andrew Bartlett Date: Thu, 21 Jun 2018 17:39:08 +0000 (+1200) Subject: lib/audit_logging: Only build audit_logging_test for --enable-selftest on the AD DC X-Git-Tag: tevent-0.9.37~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b650ea5398bbe11dcf7b75d4bfd04649fb6dae7c;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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',