configure: Fail smbd w/o smb1 if selftest when configured with ad_dc
authorDavid Mulder <dmulder@suse.com>
Wed, 6 Apr 2022 18:55:01 +0000 (12:55 -0600)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:30 +0000 (17:37 +0000)
When we build with samba selftest and ad_dc, we must
include smb1 in smbd.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
wscript

diff --git a/wscript b/wscript
index 9d928034228ce4560b3450f540e576f6d00e57d4..3af4207516daf4605a5cac3a0f54a053082838e7 100644 (file)
--- a/wscript
+++ b/wscript
@@ -394,6 +394,13 @@ def configure(conf):
                          msg="Checking compiler for full RELRO support"):
             conf.env['ENABLE_RELRO'] = True
 
+    if conf.CONFIG_GET('ENABLE_SELFTEST') and \
+       Options.options.with_smb1server == False and \
+       Options.options.without_ad_dc != True:
+        conf.fatal('--without-smb1-server cannot be specified with '
+                   '--enable-selftest/--enable-developer if '
+                   '--without-ad-dc is NOT set!')
+
     if Options.options.with_smb1server != False:
         conf.DEFINE('WITH_SMB1SERVER', '1')