build: Assert that auth_domain, auth_builtin, auth_sam, auth_winbind are builtin
authorAndrew Bartlett <abartlet@samba.org>
Thu, 18 Oct 2012 08:58:04 +0000 (19:58 +1100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Oct 2012 11:14:38 +0000 (13:14 +0200)
These modules are used by default and for various reasons cannot be compiled into a .so

The code setting up these lists is generic, so it is easier to just assert early,
for this non-default configuration.

Andrew Bartlett

Signed-off-by: Andreas Schneider <asn@samba.org>
Address bug #9295 - Can't find guest.so module if auth_builtin is built as
module.

Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Thu Oct 18 13:14:38 CEST 2012 on sn-devel-104

source3/wscript

index 11ef767c0a715f39b3b6bff1b3fd4e666075e19d..3874df5fbc89d27cd2617b5848a2cade98f698f7 100644 (file)
@@ -1617,6 +1617,12 @@ main() {
             final_static_modules.remove(m)
         final_shared_modules.append(m)
 
+    if ("auth_domain" not in final_static_modules) or \
+            ("auth_builtin" not in final_static_modules) or \
+            ("auth_sam" not in final_static_modules) or \
+            ("auth_winbind" not in final_static_modules):
+        raise Utils.WafError('These auth modules MUST be configured as static modules: auth_domain, auth_builtin, auth_sam, auth_winbind')
+
     conf.env['static_modules'] = final_static_modules
     conf.env['shared_modules'] = final_shared_modules