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

Re: [libvirt] [PATCHv2] build: force libnl1 if netcf also used libnl1

On 09/13/2012 01:15 AM, Guido Günther wrote:
> Since this went in ./configure fails on Debian with a netcf linked
> against libnl1:

Where does libnl.so live on your platform?  Is it just a matter of
expanding the for loop to find the library to run ldd on?

> configure:66413: result: no
> No package 'libnl-3.0' found
> configure:66429: error: Package requirements (libnl-3.0) were not met:

Ah, I think I know how to fix this one.  PKG_CHECK_MODULES defaults to a
fatal error unless we supply a non-empty fourth argument.  Does this
patch do it?

diff --git i/configure.ac w/configure.ac
index 690de2a..fd89bfc 100644
--- i/configure.ac
+++ w/configure.ac
@@ -2924,7 +2924,7 @@ if test "$with_linux" = "yes"; then
             PKG_CHECK_MODULES([LIBNL_ROUTE3], [libnl-route-3.0])
-        ], []) ;;
+        ], [:]) ;;
     if test "$have_libnl" = no; then
         PKG_CHECK_MODULES([LIBNL], [libnl-1 >= $LIBNL_REQUIRED], [

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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