Don't require libnl-devel, guess the path to it based on default location during...
Daniel Hokka Zakrisson [Mon, 30 Jul 2007 21:19:00 +0000 (21:19 +0000)]
configure
configure.ac
util-vserver.spec
util-vserver.spec.in

index d9e3794..e4939b2 100755 (executable)
--- a/configure
+++ b/configure
 
 
 ensc_have_libnl=yes
+LIBNL_ROOT=`echo ../libnl*/`
+if test -d "$LIBNL_ROOT"; then
+       CFLAGS="$CFLAGS -isystem $LIBNL_ROOT/include"
+       LDFLAGS="$LDFLAGS -L$LIBNL_ROOT/lib"
+fi
 
 if test x"$ensc_have_libnl" = xyes; then
 
index 1d952bf..56e7bc0 100644 (file)
@@ -342,6 +342,11 @@ dnl {check for libnl
 dnl
 
 ensc_have_libnl=yes
+LIBNL_ROOT=`echo ../libnl*/`
+if test -d "$LIBNL_ROOT"; then
+       CFLAGS="$CFLAGS -isystem $LIBNL_ROOT/include"
+       LDFLAGS="$LDFLAGS -L$LIBNL_ROOT/lib"
+fi
 
 if test x"$ensc_have_libnl" = xyes; then
        AC_CHECK_HEADERS([netlink/netlink.h netlink/route/addr.h], [ : ],
index 534ee4e..a3bdd88 100644 (file)
@@ -52,8 +52,6 @@ Obsoletes:    vserver < %version
 BuildRequires: mount vconfig gawk iproute iptables
 BuildRequires: gcc-c++ wget which diffutils
 BuildRequires: e2fsprogs-devel beecrypt-devel
-# vip6-autod
-BuildRequires:  libnl-devel
 %{!?_without_doc:BuildRequires:        doxygen tetex-latex}
 Requires(post):                %name-core
 Requires(pre):         %pkglibdir
index 26633ef..ed381b6 100644 (file)
@@ -52,8 +52,6 @@ Obsoletes:    vserver < %version
 BuildRequires: mount vconfig gawk iproute iptables
 BuildRequires: gcc-c++ wget which diffutils
 BuildRequires: e2fsprogs-devel beecrypt-devel
-# vip6-autod
-BuildRequires:  libnl-devel
 %{!?_without_doc:BuildRequires:        doxygen tetex-latex}
 Requires(post):                %name-core
 Requires(pre):         %pkglibdir