]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: fix syntax-check failures.
authorGary V. Vaughan <gary@gnu.org>
Thu, 11 Dec 2014 22:53:34 +0000 (22:53 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 11 Dec 2014 23:06:09 +0000 (23:06 +0000)
* m4/m4.m4 (AC_PROG_GNU_M4): Reverse some test arguments for
sc_prohibit_test_const_follows_var.
Remove some spurious braces for
sc_useless_braces_in_variable_drefs.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
m4/m4.m4

index 80bd42c2d12cf26888d0255634471a985d0fb237..ba9b4dff8fe8627da79bea653593a19a03c095e5 100644 (file)
--- a/m4/m4.m4
+++ b/m4/m4.m4
@@ -31,8 +31,8 @@ AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4 gnum4],
       # false positive strstr.
       ac_snippet=change'quote(<,>)in''dir(<if''def>,mac,bug)'
       ac_snippet=${ac_snippet}pat'subst(a,\(b\)\|\(a\),\1)d'nl
-      ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(..wi.d.,.d.),-1,bug)'
-      ac_snippet=${ac_snippet}${as_nl}if'else(in''dex(dnl
+      ac_snippet=$ac_snippet${as_nl}if'else(in''dex(..wi.d.,.d.),-1,bug)'
+      ac_snippet=$ac_snippet${as_nl}if'else(in''dex(dnl
 ;:11-:12-:12-:12-:12-:12-:12-:12-:12.:12.:12.:12.:12.:12.:12.:12.:12-,dnl
 :12-:12-:12-:12-:12-:12-:12-:12-),-1,,strstr-bug2)'
       test -z "`$ac_path_M4 -F conftest.m4f </dev/null 2>&1`" \
@@ -51,15 +51,15 @@ Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.])])])
       *--gnu*) ac_cv_prog_gnu_m4_gnu=yes ;;
       *) ac_cv_prog_gnu_m4_gnu=no ;;
     esac])
-  if test "$ac_cv_prog_gnu_m4_gnu" = yes; then
+  if test yes = "$ac_cv_prog_gnu_m4_gnu"; then
     M4_GNU=--gnu
   else
     M4_GNU=
   fi
   AC_SUBST([M4_GNU])
-  if test x$ac_had_posixly_correct = xyes; then
+  if test yes = "$ac_had_posixly_correct"; then
     POSIXLY_CORRECT=:
-    if test $ac_cv_prog_gnu_m4_gnu = no; then
+    if test no = $ac_cv_prog_gnu_m4_gnu; then
       AC_MSG_WARN([the version of M4 that was found does not support -g])
       AC_MSG_WARN([using it with POSIXLY_CORRECT set may cause problems])
     fi