From: David Lamparter Date: Sun, 7 Oct 2018 22:49:24 +0000 (+0200) Subject: build: fix some escapes in configure.ac X-Git-Tag: frr-6.0.1~18^2~12 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fd228400391da4f57477c4ea77ae2c47aa180c8b;p=matthieu%2Ffrr.git build: fix some escapes in configure.ac Some test statements were missing "" around variables causing syntax errors during configure runs. Signed-off-by: David Lamparter --- diff --git a/configure.ac b/configure.ac index 91b9c5352d..b23d90af62 100755 --- a/configure.ac +++ b/configure.ac @@ -438,9 +438,9 @@ AC_ARG_ENABLE([memory-sanitizer], AS_IF([test "${enable_clippy_only}" != "yes"], [ AC_CHECK_HEADERS(json-c/json.h) AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c", [], [-lm]) -if test $ac_cv_lib_json_c_json_object_get = no; then +if test "$ac_cv_lib_json_c_json_object_get" = no; then AC_CHECK_LIB(json, json_object_get, LIBS="$LIBS -ljson") - if test $ac_cv_lib_json_json_object_get = no; then + if test "$ac_cv_lib_json_json_object_get" = no; then AC_MSG_ERROR([lib json is needed to compile]) fi fi @@ -1349,7 +1349,7 @@ fi AM_CONDITIONAL(BFDD, [test "x$BFDD" = "xbfdd"]) -if test $ac_cv_lib_json_c_json_object_get = no -a "x$BFDD" = "xbfdd"; then +if test "$ac_cv_lib_json_c_json_object_get" = no -a "x$BFDD" = "xbfdd"; then AC_MSG_ERROR(["you must use json-c library to use bfdd"]) fi