From 6c06a98870d7019c9195b7e733ea41b9d6d1efe0 Mon Sep 17 00:00:00 2001 From: hinder Date: Tue, 28 Jun 2011 15:33:57 +0000 Subject: Abort on missing Fortran compiler git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Fortran/trunk@46 51d2df92-0e4f-0410-a727-bd43d766d6b6 --- fortran.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fortran.sh b/fortran.sh index 38546b7..f8e2191 100644 --- a/fortran.sh +++ b/fortran.sh @@ -1,5 +1,12 @@ #! /bin/sh +if [[ "${F77}" = "none" && "${F90}" = "none" ]]; then + echo 'BEGIN ERROR' + echo "Fortran thorn requires that a Fortran compiler is defined, but F77 = '$F77' and F90 = '$F90'. Aborting." + echo 'END ERROR' + exit 1 +fi + # Try to use ## for token concatenation. # If this works, we likely have an ANSI cpp. -- cgit v1.2.3