From d0f36d1858242ef1a1117d4869adac184b0e51a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 1 Apr 2010 11:53:00 +0000 Subject: [PATCH] - based on libpcap/libpcap-m4.patch Changed files: libpcap-m4.patch -> 1.1 --- libpcap-m4.patch | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 libpcap-m4.patch diff --git a/libpcap-m4.patch b/libpcap-m4.patch new file mode 100644 index 0000000..e915907 --- /dev/null +++ b/libpcap-m4.patch @@ -0,0 +1,61 @@ +--- tcpdump-4.1/aclocal.m4~ 2010-03-12 03:56:43.000000000 +0200 ++++ tcpdump-4.1/aclocal.m4 2010-04-01 14:44:14.199261084 +0300 +@@ -284,28 +284,6 @@ + LIBS="$LIBS $pfopen" + fi + fi +- AC_MSG_CHECKING(for local pcap library) +- libpcap=FAIL +- lastdir=FAIL +- places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ +- egrep '/libpcap-[[0-9]]+\.[[0-9]]+(\.[[0-9]]*)?([[ab]][[0-9]]*|-PRE-GIT)?$'` +- for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do +- basedir=`echo $dir | sed -e 's/[[ab]][[0-9]]*$//' | \ +- sed -e 's/-PRE-GIT$//' ` +- if test $lastdir = $basedir ; then +- dnl skip alphas when an actual release is present +- continue; +- fi +- lastdir=$dir +- if test -r $dir/libpcap.a ; then +- libpcap=$dir/libpcap.a +- d=$dir +- dnl continue and select the last one that exists +- fi +- done +- if test $libpcap = FAIL ; then +- AC_MSG_RESULT(not found) +- + # + # Look for pcap-config. + # +@@ -360,29 +338,6 @@ + AC_MSG_RESULT(found -- -I$d added) + fi + fi +- else +- $1=$libpcap +- places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ +- egrep '/libpcap-[[0-9]]*.[[0-9]]*(.[[0-9]]*)?([[ab]][[0-9]]*)?$'` +- if test -r $d/pcap.h; then +- $2="-I$d $$2" +- elif test -r $places/pcap.h; then +- $2="-I$places $$2" +- else +- AC_MSG_ERROR(cannot find pcap.h, see INSTALL) +- fi +- AC_MSG_RESULT($libpcap) +- AC_PATH_PROG(PCAP_CONFIG, pcap-config,, $d) +- if test -n "$PCAP_CONFIG"; then +- # +- # The libpcap directory has a pcap-config script. +- # Use it to get any additioal libraries needed +- # to link with the libpcap archive library in +- # that directory +- # +- libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`" +- fi +- fi + LIBS="$libpcap $LIBS" + if ! test -n "$PCAP_CONFIG" ; then + # -- 2.44.0