Having autoconf search for gfortran

44 views
Skip to first unread message

Ulf Lorenz

unread,
Jan 17, 2014, 4:39:10 PM1/17/14
to libt...@googlegroups.com, Mike Zielinski
Hi,

I had a look at the autoconf documentation, and there seems to be a
simple fix for the issue of spoon-feeding autoconf the fact that you
have gfortran installed. Actually, there are two:

1. In configure.ac, use the macro AC_PROG_FC to denote that you are not
interested in a Fortran-77, but any Fortran compiler. Has some
disadvantages, though (might not be what you want, and some other
macros need tweaking).

2. Add the gfortran compiler in the search list, i.e., change line 83
of configure.ac to

AC_PROG_F77([f77 gfortran])

I would vote for the second option. Since gfortran knows a superset of
Fortran-77 and is the default Fortran compiler at least for Debian
(probably other Linux distros as well), that should be in for
convenience.


Ulf

Juan Jose Garcia-Ripoll

unread,
Jan 22, 2014, 10:18:46 AM1/22/14
to Ulf Lorenz, libt...@googlegroups.com, Mike Zielinski

On Fri, Jan 17, 2014 at 10:39 PM, Ulf Lorenz <u...@wavepacket.org> wrote:
I would vote for the second option. Since gfortran knows a superset of
Fortran-77 and is the default Fortran compiler at least for Debian
(probably other Linux distros as well), that should be in for
convenience

I do not have gfortran around. Could you test it? If it works, we add it.

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain) 
http://juanjose.garciaripoll.googlepages.com

Ulf Lorenz

unread,
Jan 22, 2014, 6:02:31 PM1/22/14
to libt...@googlegroups.com
On Wed, 22 Jan 2014 16:18:46 +0100
Juan Jose Garcia-Ripoll <juanjose.g...@gmail.com> wrote:

> On Fri, Jan 17, 2014 at 10:39 PM, Ulf Lorenz <u...@wavepacket.org>
> wrote:
>
> > I would vote for the second option. Since gfortran knows a superset
> > of Fortran-77 and is the default Fortran compiler at least for
> > Debian (probably other Linux distros as well), that should be in for
> > convenience
> >
>
> I do not have gfortran around. Could you test it? If it works, we add
> it.

Well, I always had to supply the F77=gfortran flag, and this works
indeed fine.


Ulf

Juan Jose Garcia-Ripoll

unread,
Jan 23, 2014, 4:15:05 AM1/23/14
to Ulf Lorenz, libt...@googlegroups.com, Mike Zielinski
On Fri, Jan 17, 2014 at 10:39 PM, Ulf Lorenz <u...@wavepacket.org> wrote:

2. Add the gfortran compiler in the search list, i.e., change line 83
   of configure.ac to

   AC_PROG_F77([f77 gfortran])

Done!
Reply all
Reply to author
Forward
0 new messages