]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Use bundled jansson if needed.
authorCorey Farrell <git@cfware.com>
Tue, 24 Jul 2018 15:43:45 +0000 (11:43 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 24 Jul 2018 15:47:35 +0000 (10:47 -0500)
Use pkg-config to determine if jansson is at least 2.11, enabled bundled
version otherwise.

Change-Id: Ib555a8b72ff6f6925f9280ef035caa0b91ca4bd2

tests/CI/buildAsterisk.sh

index b48da236266dac3e19e0505220a4a5f21078b3e6..5cf7a4667d0222f3dfe01f3ea392b81710def420 100755 (executable)
@@ -58,9 +58,11 @@ runner ccache -s
 runner ulimit -a
 
 MAKE=`which make`
+PKGCONFIG=`which pkg-config`
 [ -d /usr/lib64 ] && _libdir=/usr/lib64
 
 common_config_args="--prefix=/usr ${_libdir:+--libdir=${_libdir}} --sysconfdir=/etc --with-pjproject-bundled"
+$PKGCONFIG 'jansson >= 2.11' || common_config_args+=" --with-jansson-bundled"
 common_config_args+=" ${CACHE_DIR:+--with-sounds-cache=${CACHE_DIR}/sounds --with-externals-cache=${CACHE_DIR}/externals}"
 common_config_args+=" --enable-dev-mode"
 export WGET_EXTRA_ARGS="--quiet"