]> granicus.if.org Git - flex/commitdiff
configure: fixed realloc test.
authorMike Frysinger <vapier@gentoo.org>
Sun, 13 Dec 2015 04:17:00 +0000 (23:17 -0500)
committerWill Estes <westes575@gmail.com>
Mon, 14 Dec 2015 00:01:29 +0000 (19:01 -0500)
The [] characters are used for quoting in m4, so the attempt to use
them in place of `test` fails yielding the warning at build time:

.../flex/configure: line 20222: no: command not found

configure.ac

index 4350f9dbabee03e27302f3a14b1dd69ea2331bf3..3781e6cb28ce5e65dbd66b57e5b58b0df62db3ea 100644 (file)
@@ -128,7 +128,7 @@ AC_FUNC_REALLOC
 
 AC_CHECK_FUNCS([dup2 memset pow reallocarray regcomp setlocale strchr strdup strtol])
 
-if [ "$ac_cv_func_reallocarray" = "no" ] ; then
+if test "$ac_cv_func_reallocarray" = "no" ; then
    AC_LIBOBJ([reallocarray])
 fi