tcpdump mailing list archives

[PATCH] Fix --with-pcap={linux,bpf} when SNF API is present


From: Christian Bell <christian () myri com>
Date: Tue, 12 Jan 2010 17:29:07 -0500

From: Christian Bell <csbell () myri com>

Can be squashed with previous patch, if previous is acceptable.

---
 configure.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 4a7c629..46f45c7 100644
--- a/configure.in
+++ b/configure.in
@@ -1082,7 +1082,11 @@ if test "$with_snf" != no; then
                        fi
                else
                        V_INCLS="$V_INCLS -I$snf_include_dir"
-                       LIBS="$LIBS -L$snf_lib_dir -lsnf"
+                       LIBS="$LIBS -lsnf"
+                       LDFLAGS="$LDFLAGS -L$snf_lib_dir"
+                       if test "$V_PCAP" != snf ; then
+                               SSRC="pcap-snf.c"
+                       fi
                        AC_DEFINE(HAVE_SNF_API, 1, [define if you have Myricom SNF API])
                fi
        fi
-- 
1.6.4

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: