summaryrefslogtreecommitdiffstats
path: root/abs/core/libpcap/libnl32.patch
blob: 633fd003eccf9218fc791606d6339d5306b4d9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -u -r libpcap-1.2.1/configure.in libpcap-1.2.1-libnl32/configure.in
--- libpcap-1.2.1/configure.in	2012-01-02 01:47:37.000000000 +0100
+++ libpcap-1.2.1-libnl32/configure.in	2012-02-09 19:29:29.405603749 +0100
@@ -433,12 +433,13 @@
 		#
 		# Try libnl 2.x first.
 		#
-		AC_CHECK_LIB(nl, nl_socket_alloc,
+		AC_CHECK_LIB(nl-3, nl_socket_alloc,
 		[
 			#
 			# Yes, we have libnl 2.x.
 			#
-			LIBS="-lnl-genl -lnl $LIBS"
+			LIBS="$(pkg-config --libs libnl-genl-3.0 libnl-3.0) $LIBS"
+			V_INCLS="$V_INCLS $(pkg-config --cflags libnl-genl-3.0 libnl-3.0)"
 			AC_DEFINE(HAVE_LIBNL,1,[if libnl exists])
 			AC_DEFINE(HAVE_LIBNL_2_x,1,[if libnl exists and is version 2.x])
 		],