Use a simple shell loop instead of _AC_SUBST_VARS.