Hand-rolled configure script for when the standard Makefile won't suffice (FreeBSD, Solaris, NetBSD).