summaryrefslogtreecommitdiffstats
path: root/source3/auth/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'source3/auth/wscript_build')
-rw-r--r--source3/auth/wscript_build4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/wscript_build b/source3/auth/wscript_build
index 54d710c95d7..47dbea0a486 100644
--- a/source3/auth/wscript_build
+++ b/source3/auth/wscript_build
@@ -104,5 +104,5 @@ bld.SAMBA3_MODULE('auth_samba4',
source='auth_samba4.c',
init_function='',
deps='auth4 samba_server_gensec gensec',
- internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4'),
- enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4'))
+ internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
+ enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED())