]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: ignore ksh -n warnings
authorEric Blake <eblake@redhat.com>
Wed, 7 Mar 2012 17:40:11 +0000 (10:40 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 7 Mar 2012 17:41:37 +0000 (10:41 -0700)
Recent ksh is noisy:

$ ksh -nc '``'; echo $?
ksh: warning: line 1: `...` obsolete, use $(...)
0

* tests/local.at (AT_CHECK_SHELL_SYNTAX): Ignore noisy ksh on.
Reported by Martin Zaun.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/local.at

index eb01cc0a86e5b89761beb16e9acac66b1c1139dd..66027e83b1f72971801f53dd6154ff5fac766a12 100644 (file)
@@ -47,10 +47,11 @@ AT_CHECK([$at_diff "$1" "$2"])
 # AT_CHECK_SHELL_SYNTAX(PROGRAM)
 # ------------------------------
 # If the shell handles `-n' well, use it to check the syntax of PROGRAM;
-# otherwise, do nothing.
+# otherwise, do nothing.  ksh93 -n also spits outs loads of warnings
+# about older constructs, but we don't care about the warnings.
 m4_define([AT_CHECK_SHELL_SYNTAX],
 [AT_SKIP_IF([test "$ac_cv_sh_n_works" != yes])
-AT_CHECK([/bin/sh -n $1])])
+AT_CHECK([/bin/sh -n $1], [], [], [ignore])])
 
 m4_define([AT_CHECK_PERL_SYNTAX],
 [AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c "$abs_top_builddir"/bin/$1],