[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Exp: GNU M4
From: |
Akim Demaille |
Subject: |
FYI: Exp: GNU M4 |
Date: |
Mon, 25 Feb 2002 15:04:34 +0100 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* m4/m4.m4: New, from CVS Autoconf.
* configure.in: Invoke it.
* src/output.c (output_skeleton): Use its result instead of the
hard coded name.
Index: configure.in
===================================================================
RCS file: /cvsroot/bison/bison/configure.in,v
retrieving revision 1.59
diff -u -u -r1.59 configure.in
--- configure.in 25 Feb 2002 13:44:43 -0000 1.59
+++ configure.in 25 Feb 2002 13:59:53 -0000
@@ -42,6 +42,11 @@
AM_PROG_CC_STDC
AC_PROG_RANLIB
AM_MISSING_PROG([AUTOM4TE], [autom4te])
+BISON_PROG_GNU_M4
+if test x"$ac_cv_prog_gnu_m4" != xyes; then
+ AC_MSG_ERROR([GNU M4 1.4 is required])
+fi
+AC_DEFINE_UNQUOTED([M4], ["$M4"], [Define to the GNU M4 executable name.])
AC_ARG_ENABLE(gcc-warnings,
[ --enable-gcc-warnings turn on lots of GCC warnings (not recommended)],
Index: m4/Makefile.am
===================================================================
RCS file: /cvsroot/bison/bison/m4/Makefile.am,v
retrieving revision 1.12
diff -u -u -r1.12 Makefile.am
--- m4/Makefile.am 25 Feb 2002 13:44:43 -0000 1.12
+++ m4/Makefile.am 25 Feb 2002 13:59:53 -0000
@@ -9,6 +9,7 @@
iconv.m4 \
isc-posix.m4 \
lcmessage.m4 \
+m4.m4 \
malloc.m4 \
mbrtowc.m4 \
mbstate_t.m4 \
Index: src/output.c
===================================================================
RCS file: /cvsroot/bison/bison/src/output.c,v
retrieving revision 1.126
diff -u -u -r1.126 output.c
--- src/output.c 25 Feb 2002 13:44:43 -0000 1.126
+++ src/output.c 25 Feb 2002 13:59:53 -0000
@@ -1001,15 +1001,17 @@
/* Invoke m4 on the definition of the muscles, and the skeleton. */
{
const char *bison_pkgdatadir = getenv ("BISON_PKGDATADIR");
+ const char *m4 = getenv ("M4");
+ if (!m4)
+ m4 = M4;
if (!bison_pkgdatadir)
bison_pkgdatadir = PKGDATADIR;
if (trace_flag)
fprintf (stderr,
- "running: m4 -I %s m4sugar/m4sugar.m4 %s %s\n",
- bison_pkgdatadir, tempfile, skeleton);
- skel_in = readpipe ("m4",
- "-I",
- bison_pkgdatadir,
+ "running: %s -I %s m4sugar/m4sugar.m4 %s %s\n",
+ m4, bison_pkgdatadir, tempfile, skeleton);
+ skel_in = readpipe (m4,
+ "-I", bison_pkgdatadir,
"m4sugar/m4sugar.m4",
tempfile,
skeleton,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Exp: GNU M4,
Akim Demaille <=