configure/meson: fix protoc compatibility version check
Based on findings from #28865 (closed)
Before 22.x or 3.22.x: protoc x.y.z is compatible with protobuf x.y.*
From 22.x and before 26.x: protoc x.y is compatible with protobuf x.*
Since 26.x: protoc x.y is compatible with protobuf x.y.z
Fixes #28865 (closed)
This is not accounting for distros with unofficial version numbers. They will have to tweak the VLC scripts to match their customization.
Edited by Steve Lhomme