Skip to contentSkip to conversation

configure: Check for libmnl

PATCH New Vadim Kochan 1 participant 1 message May 29, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Check for libmnl

From: Vadim Kochan <[email protected]>

Indicate existence of libmnl which is required by tipc.

---
 configure | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
configure +16 -0
index f1325df..1605464 100755
@@ -284,6 +284,17 @@ check_selinux()
 	fi
 }
 
+check_mnl()
+{
+	if ${PKG_CONFIG} libmnl --exists
+	then
+		echo "HAVE_MNL:=y" >>Config
+		echo -n "yes"
+	else
+		echo -n "no"
+	fi
+}
+
 echo "# Generated config based on" $INCLUDE >Config
 check_toolchain
 
@@ -313,5 +324,10 @@ check_selinux
 echo -n "ELF support: "
 check_elf
 
+echo -n "libmnl support: "
+check_mnl
+echo " (required by tipc)"
+
 echo -e "\nDocs"
 check_docs
+echo ""
Signature · 1 line
2.3.1