From: Alexander Traud Date: Fri, 2 Mar 2018 11:12:17 +0000 (+0100) Subject: BuildSystem: Avoid == for comparison in ./configure. X-Git-Tag: 16.0.0-rc1~295^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c02e484a69107b69b3a746c04c8f3799d48eb9;p=thirdparty%2Fasterisk.git BuildSystem: Avoid == for comparison in ./configure. ASTERISK-27709 Reported by: John Nemeth Change-Id: I11b1ae8fd404c04066f1458f5d71f9536359d58d --- diff --git a/configure b/configure index 2849fe5915..15db8bff9f 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 1bb4bc4ff3..5c81144cd5 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