On 02/26/2011 05:07 AM, Ralf Wildenhues wrote: > How about this patch to diagnose such issues early (test case taken from > gnulib)? This way you get an error if you run autoconf, aclocal, or > automake, anywhere in GCC, and the underlying M4 has the problem.
I like the concept, although I can make it shorter. Autoconf's m4/m4.m4 needs a similar test. > 2011-02-26 Ralf Wildenhues <ralf.wildenh...@gmx.de> > > * override.m4: Error out if a buggy M4 was detected, to > avoid spurious diffs in generated files. > > diff --git a/config/override.m4 b/config/override.m4 > index fc2d527..9536009 100644 > --- a/config/override.m4 > +++ b/config/override.m4 > @@ -48,6 +48,15 @@ _GCC_AUTOCONF_VERSION_CHECK > ]) > > > +dnl Ensure we do not use a buggy M4. m4_if(m4_index([..wi.d.], [.d.]), [-1], [m4_fatal(... -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature