]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
configure: Check for libmnl
authorVadim Kochan <vadim4j@gmail.com>
Fri, 29 May 2015 10:27:41 +0000 (13:27 +0300)
committerStephen Hemminger <shemming@brocade.com>
Thu, 25 Jun 2015 03:09:25 +0000 (23:09 -0400)
Indicate existence of libmnl which is required by tipc.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
configure

index f1325df8a3ecf0ada43ab2d2cbc4c9436f12ade3..1605464c6c5967ed71ae3e380e6288bb5cb7d535 100755 (executable)
--- a/configure
+++ b/configure
@@ -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 ""