I have always used modules.sourceforge.net for this problem, but that also needs a useful "ports" tree to handle installing that way. You might try looking at http://staff.e.kth.se/mpkg/ as a starting point.
The FreeBSD /usr/ports stuff has another way of handling different versions of the auto* tools. H