configure: Use AC_CONFIG_FILES conditionally

This avoids creating files in directories that are never used by make
and hence leaving files behind after "make distclean".