By the looks of the log file, the configure script is using gcc, not icc as it should be. -x tells gcc to turn off the specification of a language (http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html) and -x tells icc/ifort what processor extensions to use (http://www2.fkf.mpg.de/edv/docs/intel_c ... _lcase.htm). Wasn't aware of a C compiler specifically for MPI stuff (mpicc?), might try specifying your compilers ahead of time with export, i.e. export CC=icc and export FC=ifort. Sorry I can't be of more help.
Thanks for your answer.
I probably found a solution (partially). I have compiled openmpi with ifort. And then I have recompiled Elmer in mpi mode. But I also have another problem; during compilation of fem package I have obtained following error: