Doing this in small pieces because I don't actually know what I'm do^W^W^W^W^W because autoconf is such insufferable cruft.