[libvirt] [PATCH 1/2] build: properly handle ./configure --with-libpcap

Eric Blake eblake at redhat.com
Tue Dec 14 19:55:48 UTC 2010


On 12/13/2010 06:44 AM, Diego Elio Pettenò wrote:
> Without this fix, ./configure --with-libpcap will cause --with-libpcap=yes
> to be implicitly passed down, which cause yes/bin/pcap-config to be
> searched for rather than /usr/bin/pcap-config.
> 
> +  AS_CASE(["x$with_libpcap"],
> +    [xno], [LIBPCAP_CONFIG=""],
> +    [x|xyes], [LIBPCAP_CONFIG="pcap-config"],
> +    [LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config"]
> +  )

Oops; AS_CASE is not supported in autoconf 2.59, which means this breaks
builds on RHEL 5.  If you don't beat me to it, I'll submit a patch that
breaks this into a raw shell case statement (AS_CASE is really only
needed when you invoke other autoconf macros inside the case statement,
but this usage does not suffer from any problems where AS_CASE is required).

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101214/f9a92f9c/attachment-0001.sig>


More information about the libvir-list mailing list