Look for gfortran before enabling support for smpif90.