1 # fixautomake.m4 serial 8 (gettext-0.18)
2 dnl Copyright (C) 2002-2003, 2006, 2009, 2015 Free Software Foundation,
4 dnl This file is free software, distributed under the terms of the GNU
5 dnl General Public License. As a special exception to the GNU General
6 dnl Public License, this file may be distributed as part of a program
7 dnl that contains a configuration script generated by Autoconf, under
8 dnl the same distribution terms as the rest of that program.
12 dnl Fix an automake-1.5-1.11 bug: the distrib rule is omitted.
13 AC_DEFUN([FIX_MAKEFILE_DISTRIB], [
14 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
15 mv $ac_file.tmp $ac_file
18 dnl Fix an automake-1.9-1.11 bug: the distrib rule is not extensible.
19 dnl Insert a invocation of the distdir1 target inside the distdir commands,
20 dnl after $(distdir) has been erased and re-created.
21 AC_DEFUN([FIX_MAKEFILE_TOPDIR_DISTRIB], [
22 sed_script='/mkdir "*\$(distdir)"*$/{a\
25 sed -e "$sed_script" < $ac_file > $ac_file.tmp
26 mv $ac_file.tmp $ac_file