blob: 69d68baac49bbdc845abac59357cdaa4f664476b [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From dd023c133980fcc0cff5896e85377675e0571894 Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: Roy Li <rongqing.li@windriver.com>
3Date: Tue, 8 Jul 2014 13:20:47 +0800
4Subject: [PATCH] unnecessary to check libpcap
Patrick Williamsb48b7b42016-08-17 15:04:38 -05005
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006since the check of libpcap did not consider the cross-compile, lead to the
7below error:
8 This autoconf log indicates errors, it looked at host include and/or
9 library paths while determining system capabilities.
10
11In fact, the libpcap has been added into the tcpdump's DEPENDS, not need to
12check if libpcap existed.
13
Brad Bishop19323692019-04-05 15:28:33 -040014Upstream-Status: Inappropriate [OE specific]
Brad Bishop316dfdd2018-06-25 12:45:53 -040015
Brad Bishop19323692019-04-05 15:28:33 -040016Signed-off-by: Roy Li <rongqing.li@windriver.com>
17Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018---
Brad Bishop19323692019-04-05 15:28:33 -040019 configure.in | 4 +++-
20 1 file changed, 3 insertions(+), 1 deletion(-)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
22diff --git a/configure.in b/configure.in
Brad Bishop19323692019-04-05 15:28:33 -040023index b2305a5..c882909 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050024--- a/configure.in
25+++ b/configure.in
Brad Bishop19323692019-04-05 15:28:33 -040026@@ -418,7 +418,9 @@ dnl Some platforms may need -lnsl for getrpcbynumber.
Brad Bishop316dfdd2018-06-25 12:45:53 -040027 AC_SEARCH_LIBS(getrpcbynumber, nsl,
28 AC_DEFINE(HAVE_GETRPCBYNUMBER, 1, [define if you have getrpcbynumber()]))
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029
30-AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
Brad Bishop19323692019-04-05 15:28:33 -040031+# Simplified (more cross compile friendly) check for libpcap. All we really
32+# need is to sanity check that libpcap is available and add -lpcap to LIBS.
33+AC_CHECK_LIB(pcap, pcap_compile, LIBS="$LIBS -lpcap")
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034
35 #
36 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
Brad Bishop19323692019-04-05 15:28:33 -040037--
381.9.1
39