Gracefully ignore missing pkg-config
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 10 Jan 2009 19:05:32 +0000
changeset 4075 bc8a646b1338
parent 4074 5780617d9521
child 4076 1c67ab5f959a
Gracefully ignore missing pkg-config
wscript
--- a/wscript	Sat Jan 10 00:46:24 2009 +0000
+++ b/wscript	Sat Jan 10 19:05:32 2009 +0000
@@ -183,7 +183,10 @@
     conf.env['NS3_BUILDDIR'] = conf.blddir
     conf.check_tool('compiler_cxx')
     conf.check_tool('cflags')
-    conf.check_tool('pkgconfig')
+    try:
+        conf.check_tool('pkgconfig')
+    except Configure.ConfigurationError:
+        pass
     conf.check_tool('command')
 
     # create the second environment, set the variant and set its name