The attached patch applied over current ebuild adds a --program-prefix=g when the userland is a non-gnu one (usually bsd) so that gnu's m4 doesn't conflict with the other one. Thanks in advance, Diego
Created attachment 57581 [details, diff] m4-1.4.3.patch
done in a slightly diff way in 1.4.3