bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support versions of autoconf prior to 2.59c.


From: Jim Meyering
Subject: Re: Support versions of autoconf prior to 2.59c.
Date: Mon, 10 Dec 2007 14:38:41 +0100

Jim Meyering <address@hidden> wrote:
> I discovered that gnulib-tool requires autoconf-2.59c or newer
> for autoconf's m4_foreach_w macro.  This change lets
> gnulib-tool work also with autoconf-2.59.
>
> This was necessary for libvirt, when running their ./autogen.sh
> script on a RHEL5 system, which has autoconf-2.59:
>   http://thread.gmane.org/gmane.comp.emulators.libvirt/4115
>
> Here's the 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.

Hi Bruno,
I've just rebased, after pulling your latest changes.

Any objection?

---
 gnulib-tool |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gnulib-tool b/gnulib-tool
index 35638b9..69a53df 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -2014,6 +2014,13 @@ func_emit_initmacro_done ()
   echo "  AS_LITERAL_IF([\$1], [${macro_prefix_arg}_LIBSOURCES([\$1.c])])dnl"
   echo "  ${macro_prefix_arg}_LIBOBJS=\"\$${macro_prefix_arg}_LIBOBJS 
\$1.\$ac_objext\""
   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."
--
1.5.3.7.1116.gae2a9




reply via email to

[Prev in Thread] Current Thread [Next in Thread]