]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix a spurious failure due to lacking Fortran compilers
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Sep 2011 12:55:45 +0000 (14:55 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Sep 2011 12:55:45 +0000 (14:55 +0200)
* tests/silent-many-generic.test (configure.in): Cause the test
to be skipped if `configure' fails to find working C++, Fortran
and Fortran 77 compilers.

ChangeLog
tests/silent-many-generic.test

index 8c1e1cbcb6fb489bcd1732070f4236e7a12e266e..4ba81aa4cc12486a9d73dd32b6618ac8e515651e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: fix a spurious failure due to lacking Fortran compilers
+       * tests/silent-many-generic.test (configure.in): Cause the test
+       to be skipped if `configure' fails to find working C++, Fortran
+       and Fortran 77 compilers.
+
 2011-09-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        self tests: more use of TAP
index b2c7e89fa8500d17cd5b2e0f75d410d0a27291b0..4ae52de888680b3a3237c8ae8892a73ed5dc87a2 100755 (executable)
@@ -105,6 +105,12 @@ AC_PROG_LEX
 AC_PROG_YACC
 AC_PROG_CXX
 
+# FIXME: remove this hack once the requirements c++, fortran and fortran77
+# are implemented correctly.
+test -n "`echo $CXX`" || AC_MSG_ERROR([C++ compiler not found], [77])
+test -n "`echo $FC`"  || AC_MSG_ERROR([Fortran compiler not found], [77])
+test -n "`echo $F77`" || AC_MSG_ERROR([Fortran 77 compiler not found], [77])
+
 # The SunStudio C++ compiler is unfortunately named `CC' (yuck!),
 # and this can cause problems with our grepping checks on the
 # output from make.  Avoid these problems by invoking a wrapper