From 271591cf37fd919e64cca9bf3b283536cb51c8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 9 Apr 2014 16:11:22 -0400 Subject: [PATCH] only add the path if we have one --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5936072f7..467876969 100755 --- a/configure +++ b/configure @@ -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) \ No newline at end of file + '# Do not edit. Generated by the configure script.\n' + config)