Automatically generate config.h.in

After cleaning up some templates it's now possible (and highly
recommended) to use autoheader(1) to generate config.h.in instead of
the old method of editing it by hand.

The file config checks were modified to stop generating preprocessor
symbols.