build: Remove support for system libwbclient
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 05:00:47 +0000 (15:00 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 10:48:02 +0000 (20:48 +1000)
This effectively reverts commit 2c49782dc1069eebc9f5a5cd2a055b5912665595

This also adds explaination about what would need to be done to
support a system libwbclient

Andrew Bartlett

nsswitch/libwbclient/wscript
wscript

index f51c3d001f6c67d061f12c0ab2925720d7619ac1..6b9c99ced9d46a2d24f589e7dfe7a1e00372c9fd 100644 (file)
@@ -5,16 +5,27 @@ import Options, Logs
 # Remember to also update wbclient.h
 VERSION="0.9"
 
-def configure(conf):
-    if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion=VERSION):
-        conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
+# It may be useful at some point to allow Samba to build against a
+# system libwbclient, such as the one provided by Likewise.  To to
+# this, not only must the check below be activated but this must only
+# be activated with an off-by-default option to disable the internal
+# build of both winbindd implementations, and all the internal
+# references to libwbclient.h will need to be fixed to point at the
+# system libwbclient.  Finally, as a system libwbclient would probably
+# not use the same version scheme as Samba, so this would need to
+# reference Likewise version numbers instead.
+#
+#def configure(conf):
+#    if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion=VERSION):
+#        conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
+#
 
 def build(bld):
-    if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
-        Logs.info("\tSelected system libwbclient build")
-        return
-
-    Logs.info("\tSelected embedded libwbclient build")
+#    if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
+#        Logs.info("\tSelected system libwbclient build")
+#        return
+#
+#    Logs.info("\tSelected embedded libwbclient build")
 
     bld.SAMBA_LIBRARY('wbclient',
                       source='''
diff --git a/wscript b/wscript
index d1c71217002f19c350a1f6f6648b1cc37fc08ba1..f96327c90d73bfbfc060d78f881184e39539a264 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -95,7 +95,6 @@ def configure(conf):
     conf.RECURSE('source4/auth')
     conf.RECURSE('lib/nss_wrapper')
     conf.RECURSE('nsswitch')
-    conf.RECURSE('nsswitch/libwbclient')
     conf.RECURSE('lib/socket_wrapper')
     conf.RECURSE('lib/uid_wrapper')
     conf.RECURSE('lib/popt')