Remaining m4sugar merge from autoconf.

* data/m4sugar/m4sugar.m4: Copy entire file from autoconf.
* data/m4sugar/foreach.m4: New file, copied from autoconf.
* data/Makefile.am (dist_m4sugar_DATA): Distribute it.
* src/output.c (output_skeleton): Tell m4 how to find it.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake
2008-08-15 11:46:20 -06:00
parent 6bbb2ed5ef
commit d67c52e852
5 changed files with 1484 additions and 277 deletions

View File

@@ -473,7 +473,7 @@ output_skeleton (void)
FILE *in;
FILE *out;
int filter_fd[2];
char const *argv[7];
char const *argv[9];
pid_t pid;
/* Compute the names of the package data dir and skeleton files. */
@@ -524,6 +524,8 @@ output_skeleton (void)
{
int i = 0;
argv[i++] = m4;
argv[i++] = "-I";
argv[i++] = pkgdatadir;
if (trace_flag & trace_m4)
argv[i++] = "-dV";
argv[i++] = full_m4sugar;