scons: Check for pkg-config before trying to use it

Silences warning about missing packages
This commit is contained in:
Jakob Bornecrantz
2010-11-04 20:47:13 +00:00
parent b4ac0adb75
commit 98d6ed8742

View File

@@ -114,6 +114,9 @@ def pkg_config_modules(env, name, modules):
if not env.Detect('pkg-config'):
return
if subprocess.call(["pkg-config", "--exists", ' '.join(modules)]) != 0:
return
# Put -I and -L flags directly into the environment, as these don't affect
# the compilation of targets that do not use them
try: