]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: avoid a spurious failure with ${CC} lacking dep-tracking support
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Jan 2015 10:02:46 +0000 (11:02 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Jan 2015 10:54:50 +0000 (11:54 +0100)
* t/subobj-indir-pr13928.sh: Here: do not expect .Po files to be created in
the .deps directories if the compiler is found not to support generation of
dependency tracking information.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/subobj-indir-pr13928.sh

index 9a7116d35aec3d36f1ef179041ff3e7cfb4b204a..7626996f8d3ee7f53c0ae6f3e3d9514ff5e1451c 100644 (file)
@@ -44,8 +44,15 @@ $AUTOMAKE -a
 
 ./configure
 $MAKE
-test -f s/.deps/foo.Po
+
+test -d s/.deps
+if ! grep '^am_cv_CC_dependencies_compiler_type=none$' config.log; then
+  # This file is not created if the compiler does not support generation
+  # of dependency tracking information.
+  test -f s/.deps/foo.Po
+fi
 find . | $FGREP '$(src)' && exit 1
+
 $MAKE distcheck
 
 :