From 19ed4c709526ef59d3f59f736c224bd16bfcfb3d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Mar 2010 19:41:41 +1100 Subject: build: if a library is found, but not the fn, still define the library --- buildtools/wafsamba/samba_autoconf.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'buildtools/wafsamba') diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 6f8985a521..4ea29d4058 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -338,6 +338,8 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, header ret = False else: conf.define('HAVE_LIB%s' % string.replace(lib.upper(),'-','_'), 1) + conf.env['LIB_' + lib.upper()] = lib + LOCAL_CACHE_SET(conf, 'TARGET_TYPE', lib, 'SYSLIB') if not ret: return ret @@ -347,15 +349,6 @@ def CHECK_FUNCS_IN(conf, list, library, mandatory=False, checklibc=False, header if not conf.check_cc(function_name=f, lib=liblist, header_name=hlist): ret = False - if not ret: - return ret - - for lib in liblist: - if GET_TARGET_TYPE(conf, lib): - continue - conf.env['LIB_' + lib.upper()] = lib - LOCAL_CACHE_SET(conf, 'TARGET_TYPE', lib, 'SYSLIB') - return ret -- cgit