That was a good idea. Notice that in the installation instructions, in the paragraph immediately before the `./configure` command you copied-and-pasted, it says:
Originally Posted by Robinho45
"This script will attempt to guess the appropriate configuration values for your system. However, at a minimum, it is recommended that you explicitly specify the appropriate command names for your Fortran compiler and MPI package"
Your FORTRAN compiler isn't `ifort`, it's `gfortran`. Also, you'll want to check if you have the `mpi-default-dev` package installed (that's where `mpif90` comes from).
FWIW, this just worked for me:
Finally, as sudodus said, you should read the rest of the instructions again and make sure you have followed all of the other recommended steps.
./configure FC=gfortran MPIFC=mpif90