Dear Bruno,
Yes I have gfortran installed, when I try to install it again using $ sudo apt install gfortran, it says "gfortran is already the newest version (4:9.3.0-1ubuntu2)".
The following I found relevant in the config.log file:
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
configure:4338: $? = 0
configure:4327: mpif77 -V >&5
gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.
configure:4338: $? = 1
configure:4327: mpif77 -qversion >&5
gfortran: error: unrecognized command line option '-qversion'; did you mean '--version'?
gfortran: fatal error: no input files
compilation terminated.
and later in the file also
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
configure:5434: $? = 0
configure:5423: mpicc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5434: $? = 1
configure:5423: mpicc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:5434: $? = 1
configure:5438: checking whether we are using the GNU C compiler
configure:5465: mpicc -c -O2 -qopenmp -DSC_LOG_PRIORITY=SC_LP_ESSENTIAL conftest.c >&5
gcc: error: unrecognized command line option '-qopenmp'; did you mean '-fopenmp'?
So is this a problem pertaining to Ubuntu OS?
It is seems that I should follow Matthias suggestion and install through the PPA.
Thank you very much for the inputs,
Best wishes,
Kishore