]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: allow autoconf 2.59 again
authorEric Blake <eblake@redhat.com>
Tue, 14 Dec 2010 20:26:44 +0000 (13:26 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 20 Dec 2010 17:18:54 +0000 (10:18 -0700)
Autoconf 2.59 doesn't define ${localedir}, so libvirt was failing
to compile due to a missing LOCALEDIR until today's configmake fix.

* .gnulib: Update to latest for configmake fix.
* configure.ac (libpcap): Avoid AS_CASE.

.gnulib
configure.ac

diff --git a/.gnulib b/.gnulib
index 980f9d2ceb43f9d86ea57db0367e569267c8571b..ce083ca023ca1e479dc48ee9934878f42e81cb79 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 980f9d2ceb43f9d86ea57db0367e569267c8571b
+Subproject commit ce083ca023ca1e479dc48ee9934878f42e81cb79
index 558bb7757bf9a7a1eb436f9246eea661c3eeb404..c44d0246eb9b37196947d16ec0c82a7e64da3b6d 100644 (file)
@@ -1211,11 +1211,11 @@ LIBPCAP_FOUND="no"
 
 AC_ARG_WITH([libpcap], AC_HELP_STRING([--with-libpcap=@<:@PFX@:>@], [libpcap location]))
 if test "$with_qemu" = "yes"; then
-  AS_CASE(["x$with_libpcap"],
-    [xno], [LIBPCAP_CONFIG=""],
-    [x|xyes], [LIBPCAP_CONFIG="pcap-config"],
-    [LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config"]
-  )
+  case $with_libpcap in
+    no)     LIBPCAP_CONFIG= ;;
+    ''|yes) LIBPCAP_CONFIG="pcap-config" ;;
+    *)      LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config" ;;
+  esac
   AS_IF([test "x$LIBPCAP_CONFIG" != "x"], [
     AC_MSG_CHECKING(libpcap $LIBPCAP_CONFIG >= $LIBPCAP_REQUIRED )
     if ! $LIBPCAP_CONFIG --libs > /dev/null 2>&1 ; then