mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 10:33:28 +08:00
Use system libpcap when configured with --with-system-pcap
Don't force the local libpcap build when the system provides one. When --with-system-pcap is given to configure, don't try to locate a local libpcap build. This help build systems like Buildroot that store build trees in the same directory, but still prefer dynamically linking against system wide libpcap.so to save space. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
4ac72261ee
commit
4289e62c79
6
aclocal.m4
vendored
6
aclocal.m4
vendored
@ -438,8 +438,11 @@ AC_DEFUN(AC_LBL_LIBPCAP,
|
||||
LIBS="$LIBS $pfopen"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_CHECKING(for local pcap library)
|
||||
libpcap=FAIL
|
||||
AC_MSG_CHECKING(for local pcap library)
|
||||
AC_ARG_WITH([system-libpcap],
|
||||
[AS_HELP_STRING([--with-system-libpcap], [don't use local pcap library])])
|
||||
if test "x$with_system_libpcap" != xyes ; then
|
||||
lastdir=FAIL
|
||||
places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
|
||||
egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'`
|
||||
@ -459,6 +462,7 @@ AC_DEFUN(AC_LBL_LIBPCAP,
|
||||
dnl continue and select the last one that exists
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test $libpcap = FAIL ; then
|
||||
AC_MSG_RESULT(not found)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user