naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0181-configure-Check-for-libmnl.patch

049c96
From f827299674966fbd0cbc13a243323f8ea7fbcc8d Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Sat, 9 Jul 2016 11:29:56 +0200
049c96
Subject: [PATCH] configure: Check for libmnl
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1342515
049c96
Upstream Status: iproute2.git commit b6907403efd9d
049c96
Conflicts: Context changes due to missing commit
049c96
           11c39b5e98a16 ("tc: add eBPF support to f_bpf").
049c96
049c96
commit b6907403efd9d64ed5a140d3bc6e23773452bef9
049c96
Author: Vadim Kochan <vadim4j@gmail.com>
049c96
Date:   Fri May 29 13:27:41 2015 +0300
049c96
049c96
    configure: Check for libmnl
049c96
049c96
    Indicate existence of libmnl which is required by tipc.
049c96
049c96
    Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
049c96
---
049c96
 configure | 16 ++++++++++++++++
049c96
 1 file changed, 16 insertions(+)
049c96
049c96
diff --git a/configure b/configure
049c96
index c3dacdb..b270ace 100755
049c96
--- a/configure
049c96
+++ b/configure
049c96
@@ -261,6 +261,17 @@ check_selinux()
049c96
 	fi
049c96
 }
049c96
 
049c96
+check_mnl()
049c96
+{
049c96
+	if ${PKG_CONFIG} libmnl --exists
049c96
+	then
049c96
+		echo "HAVE_MNL:=y" >>Config
049c96
+		echo -n "yes"
049c96
+	else
049c96
+		echo -n "no"
049c96
+	fi
049c96
+}
049c96
+
049c96
 echo "# Generated config based on" $INCLUDE >Config
049c96
 check_toolchain
049c96
 
049c96
@@ -287,5 +298,10 @@ check_setns
049c96
 echo -n "SELinux support: "
049c96
 check_selinux
049c96
 
049c96
+echo -n "libmnl support: "
049c96
+check_mnl
049c96
+echo " (required by tipc)"
049c96
+
049c96
 echo -e "\nDocs"
049c96
 check_docs
049c96
+echo ""
049c96
-- 
049c96
1.8.3.1
049c96