build: Updating build scripts
These changes match similar changes in ndn-cxx library and NFD
Change-Id: Ie8eb5274247eea83bdb99ad212d3d0c56fefdbeb
diff --git a/wscript b/wscript
index 26f4fc8..8aaea63 100644
--- a/wscript
+++ b/wscript
@@ -24,6 +24,11 @@
'boost', 'default-compiler-flags', 'doxygen', 'sphinx_build',
'sqlite3', 'pch', 'coverage'])
+ if not os.environ.has_key('PKG_CONFIG_PATH'):
+ os.environ['PKG_CONFIG_PATH'] = ':'.join([
+ '/usr/local/lib/pkgconfig',
+ '/opt/local/lib/pkgconfig'])
+
conf.check_cfg(package='liblog4cxx', args=['--cflags', '--libs'],
uselib_store='LOG4CXX', mandatory=True)
@@ -32,7 +37,6 @@
conf.check_sqlite3(mandatory=True)
-
if conf.options.with_tests:
conf.env['WITH_TESTS'] = True
conf.define('NDNS_HAVE_TESTS', 1)