Add config.h.in and the required goop to configure.in to ensure that
it is converted into a proper config.h file in the object directory. Look for AC_DEFINE_UNQUOTED in configure.in. This removes some of the headache of defining variables for C code in the makefiles. Be sure sure to add -I.. to CFLAGS and include "config.h" in your source code.