only add the path if we have one

This commit is contained in:
Konstantin Käfer
2014-04-09 16:11:22 -04:00
parent 6b9d614833
commit 271591cf37

5
configure vendored
View File

@@ -31,7 +31,8 @@ parser.add_option("--boost",
def pkg_config(pkg, pkgconfig_root):
env = os.environ.copy()
env["PKG_CONFIG_PATH"] = pkgconfig_root
if pkgconfig_root:
env["PKG_CONFIG_PATH"] = pkgconfig_root
cmd = subprocess.Popen(['pkg-config', '--static', '--libs', pkg], stdout=subprocess.PIPE, env=env)
libs, ret = cmd.communicate()
if (ret): return None
@@ -106,4 +107,4 @@ if __name__ == '__main__':
config = '\n'.join(map('='.join, config.iteritems())) + '\n'
write('config.mk',
'# Do not edit. Generated by the configure script.\n' + config)
'# Do not edit. Generated by the configure script.\n' + config)