build: Add new dependency on json-c

This will eventually replace Jansson for all JSON parsing.  However
this commit simply introduces the new dependency in the configure
script and documents it.

I chose json-c 0.14 as the baseline since that is the version in RHEL 9.
Probably earlier versions would work.
This commit is contained in:
Richard W.M. Jones
2024-10-22 11:01:25 +01:00
parent 798e3e59b2
commit 53872a0a1a
2 changed files with 7 additions and 0 deletions

View File

@@ -189,6 +189,10 @@ I<Required>.
I<Required>.
=item json-c E<ge> 0.14
I<Required>.
=item po4a
I<Required> if compiling from git.

View File

@@ -304,6 +304,9 @@ LIBS="$old_LIBS"
dnl Check for Jansson JSON library (required).
PKG_CHECK_MODULES([JANSSON], [jansson >= 2.7])
dnl Check for JSON-C library (required).
PKG_CHECK_MODULES([JSON_C], [json-c >= 0.14])
dnl Check for C++ (optional, we just use this to test the header works).
AC_PROG_CXX