summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-20 17:17:56 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:56 +1000
commit7628cb7da1d2b1f5bcdacecfd27866aad8b199a2 (patch)
tree2fc5b2e67c71f96fbd860458a2191bbcd4a4ee4b /buildtools/wafsamba
parent0bad3dacb02411f46921af23faccd66f4196268f (diff)
downloadsamba-7628cb7da1d2b1f5bcdacecfd27866aad8b199a2.tar.gz
samba-7628cb7da1d2b1f5bcdacecfd27866aad8b199a2.tar.bz2
samba-7628cb7da1d2b1f5bcdacecfd27866aad8b199a2.zip
build: cope with multiple libs in CHECK_FUNCS_IN()
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 028f5f269a..6ad188b760 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -299,21 +299,21 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False):
SET_TARGET_TYPE(conf, library, 'EMPTY')
return True
- if not conf.check(lib=library, uselib_store=library):
- conf.ASSERT(not mandatory,
- "Mandatory library '%s' not found for functions '%s'" % (library, list))
- # if it isn't a mandatory library, then remove it from dependency lists
- SET_TARGET_TYPE(conf, library, 'EMPTY')
- return False
-
- conf.define('HAVE_LIB%s' % string.replace(library.upper(),'-','_'), 1)
+ for lib in TO_LIST(library):
+ if not conf.check(lib=lib, uselib_store=lib):
+ conf.ASSERT(not mandatory,
+ "Mandatory library '%s' not found for functions '%s'" % (library, list))
+ # if it isn't a mandatory library, then remove it from dependency lists
+ SET_TARGET_TYPE(conf, library, 'EMPTY')
+ return False
+ conf.define('HAVE_LIB%s' % string.replace(lib.upper(),'-','_'), 1)
+ conf.env['LIB_' + lib.upper()] = lib
+ LOCAL_CACHE_SET(conf, 'TARGET_TYPE', lib, 'SYSLIB')
ret = True
for f in remaining:
if not conf.check(function_name=f, lib=library, header_name=conf.env.hlist):
ret = False
- conf.env['LIB_' + library.upper()] = library
- LOCAL_CACHE_SET(conf, 'TARGET_TYPE', library, 'SYSLIB')
return ret