aboutsummaryrefslogtreecommitdiff
path: root/LAPACK.sh
diff options
context:
space:
mode:
Diffstat (limited to 'LAPACK.sh')
-rw-r--r--LAPACK.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/LAPACK.sh b/LAPACK.sh
index 6598090..3c22386 100644
--- a/LAPACK.sh
+++ b/LAPACK.sh
@@ -60,6 +60,13 @@ if [ -z "${LAPACK_DIR}" -o "${LAPACK_DIR}" = 'BUILD' ]; then
INSTALL_DIR=${SCRATCH_BUILD}/external/${THORN}
DONE_FILE=${SCRATCH_BUILD}/done/${THORN}
LAPACK_DIR=${INSTALL_DIR}
+
+ if [ "${F77}" = "none" ]; then
+ echo 'BEGIN ERROR'
+ echo "Building LAPACK requires a fortran compiler, but there is none configured: F77 = $F77. Aborting."
+ echo 'END ERROR'
+ exit 1
+ fi
(
exec >&2 # Redirect stdout to stderr