Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From dd023c133980fcc0cff5896e85377675e0571894 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 2 | From: Roy Li <rongqing.li@windriver.com> |
| 3 | Date: Tue, 8 Jul 2014 13:20:47 +0800 |
| 4 | Subject: [PATCH] unnecessary to check libpcap |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 5 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | since the check of libpcap did not consider the cross-compile, lead to the |
| 7 | below error: |
| 8 | This autoconf log indicates errors, it looked at host include and/or |
| 9 | library paths while determining system capabilities. |
| 10 | |
| 11 | In fact, the libpcap has been added into the tcpdump's DEPENDS, not need to |
| 12 | check if libpcap existed. |
| 13 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 14 | Upstream-Status: Inappropriate [OE specific] |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 16 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 17 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | --- |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 19 | configure.in | 4 +++- |
| 20 | 1 file changed, 3 insertions(+), 1 deletion(-) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
| 22 | diff --git a/configure.in b/configure.in |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 23 | index b2305a5..c882909 100644 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | --- a/configure.in |
| 25 | +++ b/configure.in |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 26 | @@ -418,7 +418,9 @@ dnl Some platforms may need -lnsl for getrpcbynumber. |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 27 | AC_SEARCH_LIBS(getrpcbynumber, nsl, |
| 28 | AC_DEFINE(HAVE_GETRPCBYNUMBER, 1, [define if you have getrpcbynumber()])) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
| 30 | -AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 31 | +# 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 Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | |
| 35 | # |
| 36 | # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 37 | -- |
| 38 | 1.9.1 |
| 39 | |