<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#99ffff" text="#000099">
Pavan Balaji wrote:
<blockquote cite="mid47F947F6.70007@earthlink.net" type="cite">
  <blockquote cite="mid47F92643.7080906@mcs.anl.gov" type="cite"><br>
You can force MPICH2 to use g95 by setting environment variables at
configure time: <br>
    <br>
&nbsp; $ F77=/path/to/g95 F90=/path/to/g95 ./configure
--prefix=/some/place/mpich2-install <br>
    <br>
&nbsp; $ make &amp;&amp; make install <br>
    <br>
&nbsp;-- Pavan <br>
  </blockquote>
</blockquote>
I didn't have luck with this:patti-desktop:<br>
# F77=/usr/local/bin/g95<br>
# F90=/usr/local/bin/g95<br>
# ./configure<br>
Configuring MPICH2 version 1.0.7<br>
Running on system: Linux patti-desktop 2.6.18.8-0.9-default #1 SMP Sun
Feb 10 22:48:05 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux<br>
Executing mpich2prereq in /usr/local/mpich2-1.0.7/src/mpid/ch3 with<br>
Executing mpich2prereq in
/usr/local/mpich2-1.0.7/src/mpid/ch3/channels/sock<br>
sourcing /usr/local/mpich2-1.0.7/src/pm/mpd/mpich2prereq<br>
sourcing /usr/local/mpich2-1.0.7/src/pm/mpd/setup_pm<br>
checking for gcc... gcc<br>
checking for C compiler default output file name... a.out<br>
checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>
checking for suffix of executables...<br>
checking for suffix of object files... o<br>
checking whether we are using the GNU C compiler... yes<br>
checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>
checking whether C compiler accepts option -O2... yes<br>
checking whether routines compiled with -O2 can be linked with ones
compiled without -O2... yes<br>
checking for type of weak symbol support... pragma weak<br>
checking whether __attribute__ ((weak)) allowed... yes<br>
checking for multiple weak symbol support... yes<br>
checking for g77... no<br>
checking for f77... no<br>
checking for xlf... no<br>
checking for frt... no<br>
checking for pgf77... no<br>
checking for fort77... no<br>
checking for fl32... no<br>
checking for af77... no<br>
checking for f90... no<br>
checking for xlf90... no<br>
checking for pgf90... no<br>
checking for epcf90... no<br>
checking for f95... no<br>
checking for fort... no<br>
checking for xlf95... no<br>
checking for ifc... no<br>
checking for efc... no<br>
checking for pgf95... no<br>
checking for lf95... no<br>
checking for gfortran... gfortran<br>
checking whether we are using the GNU Fortran 77 compiler... no<br>
checking whether gfortran accepts -g... no<br>
checking whether Fortran 77 compiler accepts option -O2... no<br>
checking how to get verbose linking output from gfortran... configure:
WARNING: compilation failed<br>
<br>
checking for Fortran libraries of gfortran...<br>
checking whether gfortran accepts the FLIBS found by autoconf... no<br>
checking for valid entries in FLIBS...<br>
checking whether C can link with ... yes<br>
checking for linker for Fortran main programs... configure: error:
Could not compile Fortran test program<br>
<br>
</body>
</html>