Change config.h.in to avoid clobbering command line defines, if given.

In gcc, a preprocessor definition in source code always takes precedence over one given on the command line. Putting conditionals in config.h.in (and therefore in the config.h that autotools creates) prevents clobbering command line definitions.