Browse code

adding error case when json-c is requested but not found. only display preclass in configure summary if json-c is found.

Micah Snyder authored on 2018/02/08 04:01:03
Showing 2 changed files
... ...
@@ -266,13 +266,13 @@ CL_MSG_STATUS([zlib        ],[$ZLIB_HOME],[yes])
266 266
 CL_MSG_STATUS([unrar       ],[$want_unrar],[$want_unrar])
267 267
 if test "x$LIBJSON_HOME" != "x"; then
268 268
     CL_MSG_STATUS([libjson     ],[$LIBJSON_HOME],[$have_json])
269
+    CL_MSG_STATUS([preclass    ],[$LIBJSON_HOME],[$have_json])
269 270
 fi
270 271
 if test "x$PCRE_HOME" = "x"; then
271 272
     CL_MSG_STATUS([pcre        ],[no],[$have_pcre])
272 273
 else
273 274
     CL_MSG_STATUS([pcre        ],[$PCRE_HOME],[$have_pcre])
274 275
 fi
275
-CL_MSG_STATUS([preclass    ],[$LIBJSON_HOME],[$have_json])
276 276
 CL_MSG_STATUS([libmspack   ],[yes],[$mspack_msg])
277 277
 if test "x$XML_LIBS" = "x"; then 
278 278
     CL_MSG_STATUS([libxml2     ],[no],[])
... ...
@@ -28,6 +28,10 @@ else
28 28
     fi
29 29
   fi
30 30
 fi
31
+if test "X$have_json_header" != "Xyes"
32
+then
33
+    AC_MSG_ERROR([unable to find json includes.])
34
+fi
31 35
 AC_MSG_RESULT([$LIBJSON_HOME])
32 36
 ],
33 37
 [