1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-01 11:09:07 +00:00

Change configure check for libpcap to require pcap_create (libpcap 1.0.0 or later). See #1291

This commit is contained in:
dmiller
2018-08-20 22:08:55 +00:00
parent 9e77964022
commit 4deb24fec4
8 changed files with 77 additions and 77 deletions

View File

@@ -129,7 +129,7 @@ AC_HELP_STRING([--with-libpcap=included], [Always use version included with Nmap
[ case "$with_libpcap" in
yes)
AC_CHECK_HEADER(pcap.h,[
AC_CHECK_LIB(pcap, pcap_datalink,
AC_CHECK_LIB(pcap, pcap_create,
[have_libpcap=yes ])])
;;
included)
@@ -143,7 +143,7 @@ AC_HELP_STRING([--with-libpcap=included], [Always use version included with Nmap
LDFLAGS="-L$with_libpcap/lib $LDFLAGS"
AC_CHECK_HEADER(pcap.h,[
AC_CHECK_LIB(pcap, pcap_datalink,
AC_CHECK_LIB(pcap, pcap_create,
[have_libpcap=yes
LIBPCAP_INC=$with_libpcap/include
LIBPCAP_LIB=$with_libpcap/lib])])