We use awk extensively already and it will do the job here. SVr4
printf does not implement the POSIX behaviour of repeating the output
when there are more arguments than needed for the given format string.
$(GPERFFILES:.gperf=.c): $(srcdir)/src/gperf-wordwrap.awk
atlocal: config.status
- $(AM_V_GEN) :; { \
- printf ': "$${%s=%s}"\n' \
- AWK '$(AWK)' \
- EXEEXT '$(EXEEXT)' \
- check_PROGRAMS '$(check_PROGRAMS)' \
- ; } >$@.tmp
+ $(AM_V_GEN) $(AWK) </dev/null >$@.tmp \
+ 'BEGIN{ for (i = 1; i < ARGC; i++) print ": \"$${" ARGV[i] "}\""; }' \
+ 'AWK=$(AWK)' 'EXEEXT=$(EXEEXT)' 'check_PROGRAMS=$(check_PROGRAMS)'
$(AM_V_at) mv -f $@.tmp $@
check_DATA = atlocal
CLEANFILES += atlocal