commit 2db1b2cd6a64ecea60ef756cfc6932b71d53c15a
parent 24350a8c529e24f7ce15c072fa20b06735f3c2c1
Author: Jordan Ritter <jpr5@darkridge.com>
Date: Fri, 15 Mar 2002 18:45:49 +0000
updated with new stuff to check for a few new DLT_* types
Diffstat:
1 file changed, 29 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
@@ -110,6 +110,35 @@ AC_SUBST(REGEX_OBJS)
dnl
+dnl Check for DLT_* types that might not have existed in older
+dnl libpcap's
+dnl
+AC_MSG_CHECKING(for DLT_LINUX_SLL in bpf.h)
+AC_EGREP_HEADER(yes,
+[
+#include <net/bpf.h>
+#ifdef DLT_LINUX_SLL
+yes
+#endif
+],
+AC_DEFINE(HAVE_SLL)
+echo yes,
+echo no)
+
+AC_MSG_CHECKING(for DLT_LOOP in bpf.h)
+AC_EGREP_HEADER(yes,
+[
+#include <net/bpf.h>
+#ifdef DLT_LOOP
+yes
+#endif
+],
+AC_DEFINE(HAVE_LOOP)
+echo yes,
+echo no)
+
+
+dnl
dnl OS-specific options
dnl
AC_DEFINE(_BSD_SOURCE)