If your F77 compiler do not support array of LOGICAL variables (whichseems to be the case if you look in the
config.log file), then you'releft with only one option. Remove the F77 support from thecompilation. This means adding the --disable-mpi-f77 option to the ./configure.