configure: do the same protoc check as done in the contribs
In the contribs we
- check that
HOST-protoc
has the same version as protobuf
otherwise
- check that
protoc
has the same version as protobuf
AC_CHECK_TOOL() only tests one version of protoc for the protobuf matching.
Hopefully this should fix the issue of Mac-m1-monterey-lasvegas
finding protoc in the contribs but not during configure.
Edited by Steve Lhomme