[netcf-devel] [PATCH 2/4] Require libnl for build/install.

Laine Stump laine at laine.org
Thu Oct 22 17:38:40 UTC 2009


libnl has APIs to make it easier to deal with the NETLINK socket, which
is the approved method of retrieving IPv6 addresses of interfaces, among
other useful things.
---
 configure.ac  |    3 ++-
 netcf.spec.in |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 784ae81..e1db576 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,10 +31,11 @@ PKG_CHECK_MODULES([LIBAUGEAS], [augeas >= 0.5.0])
 PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
 PKG_CHECK_MODULES([LIBXSLT], [libxslt])
 PKG_CHECK_MODULES([LIBEXSLT], [libexslt])
+PKG_CHECK_MODULES([LIBNL], [libnl-1])
 
 NETCF_CHECK_READLINE
 
-NETCF_LIBDEPS=$(echo $LIBAUGEAS_LIBS $LIBEXSLT_LIBS $LIBXSLT_LIBS $LIBXML_LIBS)
+NETCF_LIBDEPS=$(echo $LIBAUGEAS_LIBS $LIBEXSLT_LIBS $LIBXSLT_LIBS $LIBXML_LIBS $LIBNL_LIBS)
 AC_SUBST([NETCF_LIBDEPS])
 
 AC_OUTPUT(Makefile                                          \
diff --git a/netcf.spec.in b/netcf.spec.in
index 4f5a5ab..f423386 100644
--- a/netcf.spec.in
+++ b/netcf.spec.in
@@ -11,6 +11,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  readline-devel augeas-devel >= 0.5.2
 BuildRequires:  libxml2-devel libxslt-devel
+BuildRequires:  libnl-devel
 Requires:       %{name}-libs = %{version}-%{release}
 
 %description
-- 
1.6.5.15.gc274d



More information about the netcf-devel mailing list