log's attached
my configure options are:
export FATHOM_DIR=/home/anton/FATHOM_DIR
export MPI2_PREFIX=/usr/lib/mpich2
export LD_LIBRARY_PATH=/home/anton/Cubit-14.1-Lin64/bin
./configure --prefix=${FATHOM_DIR}/cgm/build --with-cubit=/home/anton/Cubit-14.1-Lin64 --with-mpi=${MPI2_PREFIX} --disable-shared --enable-static