use AC_CONFIG_FILES to avoid outputting files over and over