I am trying to install hdf5 with GCC 4.7 from binary, because I do not have root permissions, using following script on a machine using CentOS release 5.6(AMD64bit):module purgemodule unload Parallel/openmpi-1.4.3module load Compilateurs/gnumodule load Compilateurs/gnu-4.7module load Parallel/openmpi-1.6.5export  CC=/share/apps/openmpi/1.6.5/gnu-4.7/bin/mpiccexport  FC=/share/apps/openmpi/1.6.5/gnu-4.7/bin/mpif90export CXX=/share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicxxexport MPICC=/share/apps/gcc/bin/gccexport MPIF90=/share/apps/gcc/bin/gfortranexport MPICCC=/share/apps/gcc/bin/gc++export   CFLAGS=-O3 -march=native -funroll-loops -I$MPIHOME/includeexport  FCFLAGS=-O3 -march=native -funroll-loops -I$MPIHOME/includeexport CXXFLAGS=-O3 -march=native -funroll-loops -I$MPIHOME/includeexport   CFLAGS=-O3 -march=native -funroll-loops -I$MPIHOME/includeexport LDFLAGS=export LD_LIBRARY_PATH=/share/apps/gcc/4.7/lib64:$MPIHOME/lib:$LD_LIBRARY_PATHmkdir -p hdf5/buildmkdir -p hdf5/bincp hdf5-1.8.12.tar.gz hdf5/buildcd hdf5/buildrm -r hdf5-1.8.12tar -xf hdf5-1.8.12.tar.gzcd hdf5-1.8.12mkdir buildcd build../configure --prefix='/home/isolak01/hdf5/bin' --enable-static --disable-shared --enable-fortran --enable-parallelmake -j8make installBut I am getting following error: checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether to enable maintainer-specific portions of Makefiles... nochecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking shell variables initial values... donechecking if basename works... yeschecking if xargs works... yeschecking for cached host... nonechecking for config x86_64-unknown-linux-gnu... nochecking for config x86_64-unknown-linux-gnu... nochecking for config unknown-linux-gnu... nochecking for config unknown-linux-gnu... nochecking for config x86_64-linux-gnu... nochecking for config x86_64-linux-gnu... nochecking for config x86_64-unknown... nochecking for config linux-gnu... foundcompiler '/share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicc' is GNU gcc-4.7.3CC_BASENAME is mpicc.No match to get fc_version_info for /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpif90No match to get cxx_version_info for /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicxxchecking for config ../config/site-specific/host-mc2p-login0.local... nochecking for config ../config/site-specific/host-local... nochecking for gcc... /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpiccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicc accepts -g... yeschecking for /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpicc... gcc3checking if unsupported combinations of configure options are allowed... nochecking if Fortran interface enabled... yeschecking if Fortran 2003 interface enabled... yeschecking whether we are using the GNU Fortran compiler... nochecking whether /share/apps/openmpi/1.6.5/gnu-4.7/bin/mpif90 accepts -g... yeschecking for Fortran flag to compile .f90 files... unknownconfigure: error: Fortran could not compile .f90 filesmake: *** No targets specified and no makefile found.  Stop.make: *** No rule to make target `install'.  Stop.Where I am making a mistake? Is there any mistake in Fortran flags?Is there any documentation like this for (GNU) GCC 4.7 instead of Intel?
Building HDF5 with GCC 4.7 and OpenMPI
compiling;gcc;source;gnu;configure