Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-03-05 10:33:13 +0300
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-03-05 10:33:13 +0300
commit66e49b8532aee9ab83d8148cc2b086b3da4287b2 (patch)
tree8c014c6d39504979200010406c1dea06e6e0d35c /config
parente8dc396d7a3596f353c9688cba37e37b8acf6a4b (diff)
Guard against M4 versions with a buggy strstr.
config/: * override.m4: Error out if a buggy M4 was detected, to avoid spurious diffs in generated files.
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog6
-rw-r--r--config/override.m46
2 files changed, 12 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index ee4c699b1..2d8d573ba 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -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.
diff --git a/config/override.m4 b/config/override.m4
index fc2d5272d..52bd1c3d1 100644
--- a/config/override.m4
+++ b/config/override.m4
@@ -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],