autoconf: use AC_CONFIG_COMMANDS instead of ad-hoc 'config.mak.append'