From: Alexander Traud Date: Fri, 2 Mar 2018 11:12:17 +0000 (+0100) Subject: BuildSystem: Avoid == for comparison in ./configure. X-Git-Tag: 15.4.0-rc1~106^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5012d436fb3278748aec6d90a06c3b3333fb42f5;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 aac26236b1..587bd847de 100755 --- a/configure +++ b/configure @@ -14069,7 +14069,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 233a52dac3..4a35f9d695 100644 --- a/configure.ac +++ b/configure.ac @@ -658,7 +658,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