diff --git a/configure b/configure index 2849fe59150699400b71a2b978d871e391b6dde6..15db8bff9f9c2d8b0dc35ef5270712626bde940b 100755 --- a/configure +++ b/configure @@ -14105,7 +14105,7 @@ fi -if test "x$JANSSON_LIB" == "x"; then +if test "${PBX_JANSSON}" != 1; then as_fn_error $? "*** JSON support not found (this typically means the libjansson development package is missing)" "$LINENO" 5 fi diff --git a/configure.ac b/configure.ac index 1bb4bc4ff37ffb3061974fd8fd4a51cad018e045..5c81144cd5194ec32d4915eedfc5d9027ea7d23c 100644 --- a/configure.ac +++ b/configure.ac @@ -659,7 +659,7 @@ AC_SUBST(UUID_LIB) # Find required JSON support. AST_EXT_LIB_CHECK([JANSSON], [jansson], [json_dumps], [jansson.h]) -if test "x$JANSSON_LIB" == "x"; then +if test "${PBX_JANSSON}" != 1; then AC_MSG_ERROR([*** JSON support not found (this typically means the libjansson development package is missing)]) fi