From 98d6ed87421cd8a8a43b061a6ba634b8cbbec086 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 4 Nov 2010 20:47:13 +0000 Subject: [PATCH] scons: Check for pkg-config before trying to use it Silences warning about missing packages --- scons/gallium.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index 7374cf58d3b..36f1831af89 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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: -- 2.30.2