summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch')
-rw-r--r--net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch b/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch
new file mode 100644
index 000000000000..941350e8c789
--- /dev/null
+++ b/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib.patch
@@ -0,0 +1,28 @@
+--- a/configure.in
++++ b/configure.in
+@@ -102,14 +102,13 @@
+ AC_MSG_CHECKING(for PCAP library)
+ ac_found_pcap_lib_dir="no"
+ for dir in $ac_pcap_lib_dir; do
+- if test -f $dir/libpcap.a; then
++ if test -f $dir/libpcap.so -o -f $dir/libpcap.dylib; then
+ dnl Ok, we think we've found them, but check that they
+- dnl actually ontain the right functions
++ dnl actually contain the right functions
+ save_LIBS=$LIBS
+- save_LDFLAGS=$LDFLAGS
+ LIBS="-lpcap $LIBS"
+ if test "$dir" != "/usr/lib"; then
+- LDFLAGS="-L$dir $LDFLAGS"
++ LIBS="-L$dir $LIBS"
+ fi
+ AC_TRY_LINK_FUNC(pcap_open_live,ac_linked_libpcap="true",
+ ac_linked_libpcap="false");
+@@ -118,7 +117,6 @@
+ break
+ fi
+ LIBS=$save_LIBS
+- LDFLAGS=$save_LDFLAGS
+ fi
+ done
+