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

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

 



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])
             LIBNL_CFLAGS="$LIBNL_CFLAGS $LIBNL_ROUTE3_CFLAGS"
             LIBNL_LIBS="$LIBNL_LIBS $LIBNL_ROUTE3_LIBS"
-        ], []) ;;
+        ], [:]) ;;
     esac
     if test "$have_libnl" = no; then
         PKG_CHECK_MODULES([LIBNL], [libnl-1 >= $LIBNL_REQUIRED], [


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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]