Guard against M4 versions with a buggy strstr.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 5 Mar 2011 07:33:13 +0000 (07:33 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 5 Mar 2011 07:33:13 +0000 (07:33 +0000)
config/:
* override.m4: Error out if a buggy M4 was detected, to
avoid spurious diffs in generated files.

config/ChangeLog
config/override.m4

index ee4c699b1dbee2c4bb412a75357becec7452e36d..2d8d573ba2552a2c3216d1a3677e0e4c665ea955 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+           Eric Blake  <eblake@redhat.com>
+
+       * override.m4: Error out if a buggy M4 was detected, to
+       avoid spurious diffs in generated files.
+
 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
 
        * cloog.m4 (CLOOG_REQUESTED): Use $2 if --without-cloog.
index fc2d5272d7498a15049d5e273388f98c42af7177..52bd1c3d1b82469bf38c11dddf5fbec82878820f 100644 (file)
@@ -48,6 +48,12 @@ _GCC_AUTOCONF_VERSION_CHECK
 ])
 
 
+dnl Ensure we do not use a buggy M4.
+m4_if(m4_index([..wi.d.], [.d.]), [-1],
+  [m4_fatal(m4_do([m4 with buggy strstr detected.  Please install
+GNU M4 1.4.16 or newer and set the M4 environment variable]))])
+
+
 dnl Fix 2.64 cross compile detection for AVR and RTEMS
 dnl by not trying to compile fopen.
 m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],
This page took 0.025132 seconds and 4 git commands to generate.