build-sys: json-c changed everything :(

json-c 0.11 ships a pkg-config file with a different name, and changes
the name of its library as well.
This commit is contained in:
Arun Raghavan 2013-04-27 08:57:05 +05:30
parent ca4942e89c
commit 759c0bc6f9

View file

@ -624,7 +624,8 @@ AM_CONDITIONAL([HAVE_TESTS], [test "x$HAVE_LIBCHECK" = x1])
#### json parsing ####
PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])
PKG_CHECK_MODULES(LIBJSON, [ json-c >= 0.11 ], [],
[PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])])
AC_SUBST(LIBJSON_CFLAGS)
AC_SUBST(LIBJSON_LIBS)