diff options
author | Christian Bell <csbell@myri.com> | 2010-01-26 12:02:38 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-01-26 12:02:38 -0800 |
commit | 271747b20bb1347407a58a1d0a03509cd6cbabf8 (patch) | |
tree | c1e0a303be9968df1651787614a42170e88cfd46 | |
parent | e1539bdbcb636f3fc3d3982bc3ee1987d6c00643 (diff) |
Fix --with-pcap={linux,bpf} when SNF API is present.
Signed-off-by: Guy Harris <guy@alum.mit.edu>
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.in | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -9289,7 +9289,11 @@ echo "$as_me: error: SNF API cannot correctly be linked check config.log; use -- 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 cat >>confdefs.h <<\_ACEOF #define HAVE_SNF_API 1 diff --git a/configure.in b/configure.in index 4e515cf..794da27 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 |