The configure is attempting to compile a simple Fortran example and is not able to.
If you are sure that you can compile with your Fortran compiler, then please try to build again, but first set the FC environment variable to your Fortran compiler. For example:
setenv FC /usr/local/gfortran/bin/gfortran
./configure --enable-fortran …
If that does not solve the issue, then look at the config.log file to see what the issue is. Go to the end of it, and then search backwards for the error message. If you still cannot resolve the issue, please send your config.log file to the HDF Helpdesk (firstname.lastname@example.org).
To see the influential environment variables that you can use with configure, type: configure -help