Move the weird defines out of config.h and into configure.