This should be an easy scripting change in the "configure" file:
Suppose I have the correct up-to-date version of menhir already installed for building CompCert, but my installation of ocaml is more recent than the ocaml that I (had previously) used to build menhir. Then at the very end of the CompCert build-and-extract process, I get an error message that the menhir libraries use a different version of ocaml than the one that CompCert was compiled with, and the build fails.
It would be better to check for this mismatch in the configure script.
I only make this suggestion because this has happened to me twice now.