From 9cb8bb6d065f0453abea50b35e7bbd4c4598a52b Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Wed, 30 Oct 2013 12:01:27 +1300 Subject: tests: skip fcdemo checks when $FC cannot compile fortran90. Avoid spurious fcdemo failures when Autoconf picks f77 or similar for a fortran90 compiler. * tests/testsuite.at (LT_AT_TAG): Using FC and FCFLAGS from make TESTS_ENVIRONMENT, check that we really can compile fortran90 or else skip. Signed-off-by: Gary V. Vaughan --- tests/testsuite.at | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/testsuite.at b/tests/testsuite.at index 99122be6..31344772 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -352,6 +352,15 @@ AT_CHECK([{ test -n "[$]$1" && test "X[$]$1" != Xno; } || (exit 77)]) m4_case([$1], [CXX], [AT_CHECK([test g++ != "$CXX" || (g++ -v >/dev/null 2>&1) || (exit 77)])], + [FC], + [# Autoconf will accept f77 or similar as a valid FC, but often f77 + # will not compile fortran90 code; in that case skip the FC checks. + AT_DATA([fc_test.f90], +[[ program main + + end +]]) + AT_CHECK([$FC $FCFLAGS fc_test.f90 || exit 77], [], [ignore], [ignore])], [GCJ], [# There are just too many broken gcj installations out there, either missing # libgcj.spec or unable to find it. Skip the test for them. -- cgit v1.2.1