There's a few things checked in Makefile that could be moved to configure so it's not executed every time Makefile is sourced (which seems to happen multiple times while building with gmake).
If others think this is a good idea I'll whip a patch for a review.