mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 09:27:04 +00:00
sldump-0.9-libpcap.patch
This commit is contained in:
parent
b15b27c315
commit
c98257f57e
2 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ static char *RCSSTRING="$Id: pcap-snoop.c,v 1.14 2002/09/09 21:02:58 ekr Exp $";
|
||||||
|
|
||||||
#include <pcap.h>
|
#include <pcap.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <net/bpf.h>
|
#include <pcap-bpf.h>
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -62,7 +62,7 @@ RECORD_MOD="dummy"
|
||||||
dnl Look for PCAP
|
dnl Look for PCAP
|
||||||
dnl We absolutely need pcap
|
dnl We absolutely need pcap
|
||||||
ac_pcap_inc_dir="/usr/include /usr/include/pcap /usr/local/include"
|
ac_pcap_inc_dir="/usr/include /usr/include/pcap /usr/local/include"
|
||||||
ac_pcap_lib_dir="/usr/lib /usr/local/lib"
|
ac_pcap_lib_dir="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib"
|
||||||
|
|
||||||
AC_ARG_WITH(pcap,[--with-pcap root location for pcap library],
|
AC_ARG_WITH(pcap,[--with-pcap root location for pcap library],
|
||||||
if test "$withval" = "no"; then
|
if test "$withval" = "no"; then
|
||||||
|
@ -102,13 +102,13 @@ fi
|
||||||
AC_MSG_CHECKING(for PCAP library)
|
AC_MSG_CHECKING(for PCAP library)
|
||||||
ac_found_pcap_lib_dir="no"
|
ac_found_pcap_lib_dir="no"
|
||||||
for dir in $ac_pcap_lib_dir; do
|
for dir in $ac_pcap_lib_dir; do
|
||||||
if test -f $dir/libpcap.a; then
|
if test -f $dir/libpcap.a -o -f $dir/libpcap.so; then
|
||||||
dnl Ok, we think we've found them, but check that they
|
dnl Ok, we think we've found them, but check that they
|
||||||
dnl actually ontain the right functions
|
dnl actually ontain the right functions
|
||||||
save_LIBS=$LIBS
|
save_LIBS=$LIBS
|
||||||
save_LDFLAGS=$LDFLAGS
|
save_LDFLAGS=$LDFLAGS
|
||||||
LIBS="-lpcap $LIBS"
|
LIBS="-lpcap $LIBS"
|
||||||
if test "$dir" != "/usr/lib"; then
|
if test "$dir" != "/usr/lib" -a "$dir" != "/usr/lib64"; then
|
||||||
LDFLAGS="-L$dir $LDFLAGS"
|
LDFLAGS="-L$dir $LDFLAGS"
|
||||||
fi
|
fi
|
||||||
AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true",
|
AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true",
|
||||||
|
|
Loading…
Reference in a new issue