summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-14 12:38:06 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:09:20 +0200
commitba60b8faab114719c9b082886603c50b524cff8f (patch)
tree5061f3455ce42014bd87af815d0f33d187d688e5 /config
parenta3ac599d4e6d0b58595afb269a9760275de424a2 (diff)
downloadexternal_gettext-ba60b8faab114719c9b082886603c50b524cff8f.zip
external_gettext-ba60b8faab114719c9b082886603c50b524cff8f.tar.gz
external_gettext-ba60b8faab114719c9b082886603c50b524cff8f.tar.bz2
Move m4/fixautomake.m4 to config/m4/fixautomake.m4.
Diffstat (limited to 'config')
-rw-r--r--config/m4/fixautomake.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/config/m4/fixautomake.m4 b/config/m4/fixautomake.m4
new file mode 100644
index 0000000..82371c5
--- /dev/null
+++ b/config/m4/fixautomake.m4
@@ -0,0 +1,27 @@
+# fixautomake.m4 serial 1 (gettext-0.11.6)
+dnl Copyright (C) 2002 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+dnl From Bruno Haible
+
+dnl Fix unesthetic build commands generated by automake.
+AC_DEFUN([FIX_MAKEFILE_COMPILE], [
+ sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $1 > $1.tmp
+ mv $1.tmp $1
+])
+
+dnl Fix an automake-1.5-1.7.2 bug: the distrib rule is omitted.
+AC_DEFUN([FIX_MAKEFILE_DISTRIB], [
+ sed -e 's,^#distdir:,distdir:,' < $1 > $1.tmp
+ mv $1.tmp $1
+])
+
+dnl Fix an automake-1-5.1.7.2 bug: all info files are erased by "make".
+AC_DEFUN([FIX_MAKEFILE_INFO], [
+ sed -e '/@rm -f \$''@/d' < $1 > $1.tmp
+ mv $1.tmp $1
+])