use more AC macros to simplify makefile generation