]> The Tcpdump Group git mirrors - tcpdump/blobdiff - configure.in
Use the new libpcap API's if available; that means we can support "-B"
[tcpdump] / configure.in
index 1829ddcdfe6f70932fae35669135c3d39d1cf468..1907ad397d1ca23669cd5f7eaa466e15ab0ee6e4 100644 (file)
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.196.2.4 2008-03-13 18:40:01 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.196.2.5 2008-04-04 19:42:51 guy Exp $ (LBL)
 dnl
 dnl Copyright (c) 1994, 1995, 1996, 1997
 dnl    The Regents of the University of California.  All rights reserved.
@@ -6,7 +6,7 @@ dnl
 dnl Process this file with autoconf to produce a configure script.
 dnl
 
-AC_REVISION($Revision: 1.196.2.4 $)
+AC_REVISION($Revision: 1.196.2.5 $)
 AC_PREREQ(2.50)
 AC_INIT(tcpdump.c)
 
@@ -707,6 +707,11 @@ if test "$ac_cv_sockaddr_has_sa_len" = no; then
        missing_includes=yes
 fi
 
+#
+# Do we have the new open API?  Check for pcap_create, and assume that,
+# if we do, we also have pcap_activate() and the other new routines.
+AC_CHECK_FUNCS(pcap_create)
+
 AC_CHECK_FUNCS(pcap_findalldevs pcap_dump_flush pcap_lib_version)
 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
 dnl Check for Mac OS X, which may ship pcap.h from 0.6 but libpcap may