Mercurial > octave-antonio
changeset 19860:e8ccfc5d892b
Improved configure error handling when missing Fortran compiler (bug #44367)
* configure.ac: Check if there is no Fortran compiler, and emit an
appropriate error message.
author | Claudius Zingerli <czingerl@gmail.com> (edited by Jordi Gutiérrez Hermoso <jordigh@octave.org>) |
---|---|
date | Wed, 25 Feb 2015 16:23:45 +0100 |
parents | 734a77207e2e |
children | 19755f4fc851 |
files | configure.ac |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Feb 25 12:04:01 2015 -0500 +++ b/configure.ac Wed Feb 25 16:23:45 2015 +0100 @@ -615,6 +615,15 @@ AC_MSG_ERROR([g77 is not a supported Fortran compiler. Select another compiler by setting the environment variable F77 and re-running configure.]) fi +AC_MSG_CHECKING([if we have a usable Fortran compiler]) +if test x"$F77" = x""; then + AC_MSG_RESULT(no) + AC_MSG_ERROR(No Fortran compiler found) +else + AC_MSG_RESULT(yes) +fi + + ## Determine calling conventions for Fortran compiler AC_F77_LIBRARY_LDFLAGS AC_F77_DUMMY_MAIN