Mercurial > hg > octave-lyh
changeset 14185:d584f90d2c47 stable
configure: search for gfortran first instead of g77
* autogen.sh: Avoid g77 by editing generated configure script and
substituting gfortran for g77.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Jan 2012 14:00:24 -0500 (2012-01-10) |
parents | b33589ef9213 |
children | eb29a53834af |
files | .hgsubstate autogen.sh |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate +++ b/.hgsubstate @@ -1,1 +1,1 @@ -3559997a03e82d650aaa708447362fe20a6eaf15 gnulib +fca3cc12dcd2bb7a75a57be2c29a1de417ff3536 gnulib
--- a/autogen.sh +++ b/autogen.sh @@ -37,3 +37,15 @@ echo "bootstrapping..." build-aux/bootstrap "$@" + +## G77 is obsolete, but it is still the first option in the autoconf Fortran +## macros. We should avoid it, because mixing old versions of g77 with modern +## gcc and g++ causes trouble. The following will make it harder (but not +## impossible) for users to make this mistake. +## +## FIXME -- we should really work to fix autoconf so that it prefers gfortran +## over g77 even when searching for a Fortran 77 compiler. + +echo "replacing all occurrences of g77 with gfortran in configure script..." + +sed 's/g77/gfortran/g' configure > configure.t && mv configure.t configure