The selected Fortran 90 compiler /usr/bin/gfortran does not work with the selected Fortran 77 compiler ....
This happens when you have both fort77 and gfortran installed on your machine. As a solution, use variables F77 and F90 both pointing to the gfortran. The configure command should look like;