build: Remove support for a system libsmbclient
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 05:03:05 +0000 (15:03 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 23 Apr 2012 10:48:02 +0000 (20:48 +1000)
With the new --private-libraries option, there is no longer the need
to have this support, which was aimed at avoiding the duplication
between two different libsmbclient binaries in a packaged
distribution.  By using --private-libraries instead, we do not
introduce a dependency between Samba 4.0 packages and whatever other
packages are on the system.

This effectivly reverts part of
e3ffb31554927a24df35576bd753ee4eb2dc2a3c while kpeeing the improved
SAMBA_LIBRARY declaration.

Andrew Bartlett

source3/libsmb/wscript
wscript

index 6260945c11f4b06afc73f412a7e954db406b3ac9..e614557e35a30823b3ad06ab90daa0f0d67e2e37 100644 (file)
@@ -2,16 +2,7 @@
 
 import Options, Logs
 
-def configure(conf):
-    if conf.CHECK_BUNDLED_SYSTEM_PKG('smbclient', minversion='0'):
-        conf.define('USING_SYSTEM_LIBSMBCLIENT', 1)
-
 def build(bld):
-    if bld.CONFIG_SET('USING_SYSTEM_LIBSMBCLIENT'):
-        Logs.info("\tSelected system libsmbclient build")
-        return
-
-    Logs.info("\tSelected embedded libsmbclient build")
     bld.SAMBA3_LIBRARY('smbclient',
                        source='''
                               libsmb_cache.c
diff --git a/wscript b/wscript
index f96327c90d73bfbfc060d78f881184e39539a264..15e1ce51bfc2df3fe22a7e26ecd35bbe4295dae6 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -105,7 +105,6 @@ def configure(conf):
     conf.RECURSE('selftest')
     conf.RECURSE('source3')
     conf.RECURSE('lib/addns')
-    conf.RECURSE('source3/libsmb')
 
     conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()