The configuration line is:
./configure --enable-parallel CC=/usr/local/intel/impi/2019/intel64/bin/mpicc --prefix=/home/shimoni/apps/hdf5-1.13.0
configure: error: C compiler cannot create executables
config.log cannot be attached because I’m a new user. exit code is 77.
PATH includes the path to impi bin directory.
LD_LIBRARY_PATH includes the path to impi lib directory.
I’ve tried what lucaferraro76 suggested here, but it did not help.