You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/ssldump/files/ssldump-0.9-configure-dylib...

29 lines
743 B

--- 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