mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
wafsamba: Add set_target to CHECK_BUNDLED_SYSTEM.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
c6a8edb4a7
commit
ad3a431670
@ -122,7 +122,7 @@ def CHECK_BUNDLED_SYSTEM_PKG(conf, libname, minversion='0.0.0',
|
||||
def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
|
||||
checkfunctions=None, headers=None, checkcode=None,
|
||||
onlyif=None, implied_deps=None,
|
||||
require_headers=True, pkg=None):
|
||||
require_headers=True, pkg=None, set_target=True):
|
||||
'''check if a library is available as a system library.
|
||||
this first tries via pkg-config, then if that fails
|
||||
tries by testing for a specified function in the specified lib
|
||||
@ -180,7 +180,8 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
|
||||
args='"%s >= %s" --cflags --libs' % (pkg, minversion),
|
||||
msg=msg, uselib_store=uselib_store) and
|
||||
check_functions_headers_code()):
|
||||
conf.SET_TARGET_TYPE(libname, 'SYSLIB')
|
||||
if set_target:
|
||||
conf.SET_TARGET_TYPE(libname, 'SYSLIB')
|
||||
conf.env[found] = True
|
||||
if implied_deps:
|
||||
conf.SET_SYSLIB_DEPS(libname, implied_deps)
|
||||
@ -190,7 +191,8 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
|
||||
conf.env[found] = True
|
||||
if implied_deps:
|
||||
conf.SET_SYSLIB_DEPS(libname, implied_deps)
|
||||
conf.SET_TARGET_TYPE(libname, 'SYSLIB')
|
||||
if set_target:
|
||||
conf.SET_TARGET_TYPE(libname, 'SYSLIB')
|
||||
return True
|
||||
conf.env[found] = False
|
||||
if not conf.LIB_MAY_BE_BUNDLED(libname):
|
||||
|
Reference in New Issue
Block a user