]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: 'silent-many-gcc.test' improved and made more robust
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 May 2011 09:58:21 +0000 (11:58 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 May 2011 09:58:21 +0000 (11:58 +0200)
* tests/silent-many-gcc.test:  Also force "fast" gcc depmode
for C++ compilations.  Add sanity checks verifying that the
cache variables we force are really used by configure.  Fix
typo in comments.

ChangeLog
tests/silent-many-gcc.test

index 6021006fc960beff1b2df57163d259eb3f3f00db..6ab07c7e7b52c3ed8bfe43849defb39bd21844f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: 'silent-many-gcc.test' improved and made more robust
+       * tests/silent-many-gcc.test:  Also force "fast" gcc depmode
+       for C++ compilations.  Add sanity checks verifying that the
+       cache variables we force are really used by configure.  Fix
+       typo in comments.
+
 2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tests: drop useless requirements of 'g++'
index 62dafa196b12de97d1fcab18b02929afcf535867..79fa4a634c3cf672cf02b4f2926f070ec894c9b6 100755 (executable)
@@ -180,11 +180,18 @@ $ACLOCAL
 $AUTOMAKE --add-missing
 $AUTOCONF
 
+# Sanity check: make sure the cache variables we force are really
+# used by configure.
+$FGREP am_cv_CC_dependencies_compiler_type configure
+$FGREP am_cv_CXX_dependencies_compiler_type configure
+
 # Force gcc ("fast") depmode.
+depmodes="am_cv_CC_dependencies_compiler_type=gcc \
+          am_cv_CXX_dependencies_compiler_type=gcc"
 # This apparently useless "for" loop is here to simplify the syncing
-# with sister test `silent-many-gcc.test'.
+# with sister test `silent-many-generic.test'.
 for config_args in \
-  am_cv_CC_dependencies_compiler_type=gcc
+  "$depmodes"
 do
 
   ./configure $config_args --enable-silent-rules