summaryrefslogtreecommitdiff
blob: 941350e8c78950886101709075aa780da39aa7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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