From: Stefano Lattarini Date: Wed, 7 Sep 2011 12:55:45 +0000 (+0200) Subject: tests: fix a spurious failure due to lacking Fortran compilers X-Git-Tag: ng-0.5a~89^2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78aac33c9a4bcbdb2e8c1ee37c163a548105b258;p=thirdparty%2Fautomake.git 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. --- diff --git a/ChangeLog b/ChangeLog index 8c1e1cbcb..4ba81aa4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-07 Stefano Lattarini + + 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 self tests: more use of TAP diff --git a/tests/silent-many-generic.test b/tests/silent-many-generic.test index b2c7e89fa..4ae52de88 100755 --- a/tests/silent-many-generic.test +++ b/tests/silent-many-generic.test @@ -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