mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
waf: backport finding of pkg-config
Allow the builder to customize the location of pkg-config utility by setting PKGCONFIG environment variable. This is backported from upstream waf. Thanks to Zentaro Kavanagh <zentaro@google.com> for pointing that out and proposing the fix. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12529 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 25 04:23:00 CET 2017 on sn-devel-144
This commit is contained in:
parent
17a6e57fcc
commit
2cf141ed45
4
third_party/waf/wafadmin/Tools/config_c.py
vendored
4
third_party/waf/wafadmin/Tools/config_c.py
vendored
@ -106,7 +106,9 @@ def ret_msg(self, f, kw):
|
||||
@conf
|
||||
def validate_cfg(self, kw):
|
||||
if not 'path' in kw:
|
||||
kw['path'] = 'pkg-config --errors-to-stdout --print-errors'
|
||||
if not self.env.PKGCONFIG:
|
||||
self.find_program('pkg-config', var='PKGCONFIG')
|
||||
kw['path'] = self.env.PKGCONFIG
|
||||
|
||||
# pkg-config version
|
||||
if 'atleast_pkgconfig_version' in kw:
|
||||
|
Loading…
Reference in New Issue
Block a user