]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: fix some escapes in configure.ac
authorDavid Lamparter <equinox@diac24.net>
Sun, 7 Oct 2018 22:49:24 +0000 (00:49 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 19 Oct 2018 11:13:42 +0000 (13:13 +0200)
Some test statements were missing "" around variables causing syntax
errors during configure runs.

Signed-off-by: David Lamparter <equinox@diac24.net>
configure.ac

index 60d3a876a8bbef66ed535f0f019c77fa94d07b0b..f498a65129f441a764c40492e4a95b0002ad6049 100755 (executable)
@@ -462,9 +462,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
@@ -1398,7 +1398,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