]> xenbits.xensource.com Git - libvirt.git/commitdiff
Accommodate developers using autoconf-2.59.
authorJim Meyering <meyering@redhat.com>
Wed, 5 Dec 2007 23:02:13 +0000 (23:02 +0000)
committerJim Meyering <meyering@redhat.com>
Wed, 5 Dec 2007 23:02:13 +0000 (23:02 +0000)
* configure.in (m4_foreach_w): Define if not defined.

Author: Jim Meyering <meyering@redhat.com>

ChangeLog
configure.in

index 4b3c266ab52d63738f29396fae64b7d7f093f567..302706c2bcfcb8704bdb7a19e391baa9b85aa6fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec  5 23:57:53 CET 2007 Jim Meyering <meyering@redhat.com>
+
+       Accommodate developers using autoconf-2.59.
+       * configure.in (m4_foreach_w): Define if not defined.
+
 Wed Dec  5 22:38:18 CET 2007 Jim Meyering <meyering@redhat.com>
 
        Include "config.h".
index a7f692ef58086008fcf318a90243275611e95f26..8d2a14367badefbc3bf555cda283a1c414b40dc3 100644 (file)
@@ -33,6 +33,13 @@ AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_CPP
 
+dnl gl_INIT uses m4_foreach_w, yet that is not defined in autoconf-2.59.
+dnl In order to accommodate developers with such old tools, here's a
+dnl replacement definition.
+m4_ifndef([m4_foreach_w],
+  [m4_define([m4_foreach_w],
+    [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
+
 gl_EARLY
 gl_INIT
 
@@ -289,8 +296,8 @@ LIBXML_LIBS=""
 LIBXML_FOUND="no"
 
 AC_ARG_WITH(libxml, [  --with-libxml=[PFX]       libxml2 location])
-if test "z$with_libxml" = "zno" ; then 
-    AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_REQUIRED) 
+if test "z$with_libxml" = "zno" ; then
+    AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_REQUIRED)
     AC_MSG_ERROR(libxml2 >= $LIBXML_REQUIRED is required for libvirt)
 elif test "z$with_libxml" = "z" -a "x$PKG_CONFIG" != "x" ; then
     PKG_CHECK_EXISTS(libxml-2.0,[LIBXML_FOUND=yes])
@@ -299,7 +306,7 @@ elif test "z$with_libxml" = "z" -a "x$PKG_CONFIG" != "x" ; then
     fi
 fi
 if test "z$LIBXML_FOUND" = "zno" ; then
-    if test "z$with_libxml" != "z" ; then 
+    if test "z$with_libxml" != "z" ; then
        LIBXML_CONFIG=$with_libxml/bin/$LIBXML_CONFIG
     fi
     AC_MSG_CHECKING(libxml2 $LIBXML_CONFIG >= $LIBXML_REQUIRED )
@@ -442,8 +449,8 @@ AC_SUBST(AVAHI_LIBS)
 
 dnl virsh libraries
 AC_CHECK_HEADERS([readline/readline.h])
-AC_CHECK_LIB(readline, main, 
-       [VIRSH_LIBS="$VIRSH_LIBS -lreadline"], 
+AC_CHECK_LIB(readline, main,
+       [VIRSH_LIBS="$VIRSH_LIBS -lreadline"],
        [AC_MSG_WARN([readline library not found])],
        [$VIRSH_LIBS])
 AC_SUBST(VIRSH_LIBS)