configure: respect the '-q' option better
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 16 Nov 2012 11:07:52 +0000 (12:07 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 16 Nov 2012 11:07:52 +0000 (12:07 +0100)
* configure.ac: Here, by avoiding to print the warnings about
using a non-stable Automake version if the '$silent' variable
is set to "yes".

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
configure.ac

index 6c9cfc0..82f223b 100644 (file)
@@ -628,7 +628,8 @@ am_release_type=`AS_ECHO(["$PACKAGE_VERSION"]) | LC_ALL=C awk ["
   /^$am_beta_version_rx$/ { print \"beta version\"; exit(0); }
   { print \"development snapshot\"; }"]`
 
-test "$am_release_type" = stable || cat <<EOF
+# '$silent' is set to yes if configure is passed the '--quiet' option.
+test "$am_release_type" = stable || test "$silent" = yes || cat <<EOF
 
 WARNING: You are about to use a $am_release_type of automake.
 WARNING: It might easily suffer from new bugs or regressions.