The link of the library fails with --enable-f90 on macOS Big Sur because the C compiler is used to link objects that refer the names in libgfortran. Moreover with --enable-mpi the names in libmpifort are missing. In MacPorts I patched src/Makefile.in.