Getting the same error on RHEL...
tried with make FC=f90 CC=gcc
checking whether it is safe to define __EXTENSIONS__... yes
checking for C compiler vendor... gnu
checking for perl... /usr/bin/perl
checking for base gcc compiler... cc
checking whether a simple C MPI program compiles... no
configure: error: in `/home/user/nwchem/nwchem-6.1.1-src/src/tools/build':
configure: error: could not compile simple C MPI program
See `config.log' for more details
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1
|