Support versions of autoconf prior to 2.59c.
authorJim Meyering <meyering@redhat.com>
Thu, 6 Dec 2007 20:00:24 +0000 (21:00 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 11 Dec 2007 12:30:57 +0000 (13:30 +0100)
* gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
if it is not already defined.

ChangeLog
gnulib-tool

index 3b509e0..9f7f1a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-11  Jim Meyering  <meyering@redhat.com>
+
+       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  <bruno@clisp.org>
 
        Let 'gnulib-tool --import' collect sources needed for the tests in
index 35638b9..39ac977 100755 (executable)
@@ -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], ["