summaryrefslogtreecommitdiffstats
path: root/patches/libpcap-1.8.1/0102-configure.ac-allow-specifying-path-for-libnl3.patch
blob: 3e56d90c96844f2fceba46f3da06162b7dc86e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Wed, 29 Jan 2014 09:17:52 +0100
Subject: [PATCH] configure.ac: allow specifying path for libnl3

---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index da2f940da963..8a3ab56d865c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -511,7 +511,11 @@ linux)
 			AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
 			AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
 			AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
-			V_INCLS="$V_INCLS ${incdir}"
+			if test x$with_libnl != xyes ; then
+				V_INCLS="$V_INCLS -I${with_libnl}/include/libnl3"
+			else
+				V_INCLS="$V_INCLS ${incdir}"
+			fi
 			have_any_nl="yes"
 		],[], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )