From 11d7fe8535be45bb354b71cd6db0b394b3f178d7 Mon Sep 17 00:00:00 2001 From: Inga Stotland Date: Fri, 20 Dec 2019 11:13:29 -0800 Subject: mesh: Base config json code on newer version of json-c This removes a roundabout logic that was required to delete a json entry from a json array using libjsonc utilities. A new API function, json_object_array_del_idx(), implemented in json-c version 0.13 simplifies array entry removal to one call. Also, add requirement to configure.ac for json-c version >= 0.13 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 57a816fd5..6f7717f24 100644 --- a/configure.ac +++ b/configure.ac @@ -230,8 +230,8 @@ AC_ARG_ENABLE(mesh, AC_HELP_STRING([--enable-mesh], AM_CONDITIONAL(MESH, test "${enable_mesh}" = "yes") if (test "${enable_mesh}" = "yes"); then - PKG_CHECK_MODULES(JSONC, json-c, dummy=yes, - AC_MSG_ERROR(json-c is required)) + PKG_CHECK_MODULES(JSONC, json-c >= 0.13, dummy=yes, + AC_MSG_ERROR(json-c >= 0.13 is required)) AC_SUBST(JSON_CFLAGS) AC_SUBST(JSON_LIBS) fi -- cgit v1.2.1