From 3f1b8d5a44a1a9ca78ec649b148f609f04e515fc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 Dec 2007 21:00:24 +0100 Subject: [PATCH] Support versions of autoconf prior to 2.59c. * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w if it is not already defined. --- ChangeLog | 6 ++++++ gnulib-tool | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3b509e09ca..9f7f1a0068 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Jim Meyering + + Support versions of autoconf prior to 2.59c. + * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w + if it is not already defined. + 2007-12-09 Bruno Haible Let 'gnulib-tool --import' collect sources needed for the tests in diff --git a/gnulib-tool b/gnulib-tool index 35638b9d2f..39ac9775d4 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -2015,6 +2015,13 @@ func_emit_initmacro_done () echo " ${macro_prefix_arg}_LIBOBJS=\"\$${macro_prefix_arg}_LIBOBJS \$1.\$ac_objext\"" echo "])" echo + echo "# m4_foreach_w is provided by autoconf-2.59c and later." + echo "# This definition is to accommodate developers using versions" + echo "# of autoconf older than that." + echo "m4_ifndef([m4_foreach_w]," + echo " [m4_define([m4_foreach_w]," + echo " [m4_foreach([\$1], m4_split(m4_normalize([\$2]), [ ]), [\$3])])])" + echo echo "# Like AC_REPLACE_FUNCS, except that the module name goes" echo "# into ${macro_prefix_arg}_LIBOBJS instead of into LIBOBJS." echo "AC_DEFUN([${macro_prefix_arg}_REPLACE_FUNCS], [" -- 2.30.2