summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-10-30 12:26:12 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:17 +0200
commitfae2acdeb5f79ae7c6d63427b8d623f1d7058803 (patch)
treee44268e6979f32f250c31621861853d7ede4034f /build-aux
parentdabab19a993f97d61fc9066248678e4c21c082a3 (diff)
downloadexternal_gettext-fae2acdeb5f79ae7c6d63427b8d623f1d7058803.zip
external_gettext-fae2acdeb5f79ae7c6d63427b8d623f1d7058803.tar.gz
external_gettext-fae2acdeb5f79ae7c6d63427b8d623f1d7058803.tar.bz2
Work around automake-1.10 annoyance.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/fixaclocal33
1 files changed, 33 insertions, 0 deletions
diff --git a/build-aux/fixaclocal b/build-aux/fixaclocal
new file mode 100755
index 0000000..953dc3a
--- /dev/null
+++ b/build-aux/fixaclocal
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Script for fixing aclocal.m4 files produced by 'aclocal' from automake 1.10.
+# Copyright (C) 2006 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: fixaclocal aclocal [OPTIONS]
+
+"$@"
+result=$?
+if test $result = 0 && test -f aclocal.m4; then
+ # Remove the block of 4 lines starting with 'm4_if(m4_PACKAGE_VERSION'.
+ sed -e '/m4_if(m4_PACKAGE_VERSION/{N;N;N;d}' < aclocal.m4 > aclocal.m4.tmp
+ if cmp aclocal.m4 aclocal.m4.tmp > /dev/null; then
+ rm -f aclocal.m4.tmp
+ else
+ mv aclocal.m4.tmp aclocal.m4
+ fi
+else
+ exit $result
+fi