$NetBSD: patch-aa,v 1.4 2001/09/14 23:05:43 wiz Exp $

--- configure.orig	Tue Feb 27 07:08:56 2001
+++ configure
@@ -1551,16 +1551,8 @@
 for dir in $possible_dirs ; do 
     if test -d $dir -a -r "$dir/pcap.h" -a \
                        -r "$dir/net/bpf.h" ; then 
-       if test -n "$pcap_dir" -a "$pcap_dir" != "$dir"; then
-          echo 
-          echo; echo more than one set found in:
-          echo  $pcap_dir 
-          echo  $dir
-          echo; echo please wipe out all unused pcap installations
-          exit
-       else 
-          pcap_dir="$dir"
-       fi
+       pcap_dir="$dir"
+       break
     fi
 done
 
@@ -1835,7 +1827,12 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lpcap  $LIBS"
+case `uname -s` in
+SunOS)
+	LIBS="-lpcap -lxnet $LIBS" ;;
+*)
+	LIBS="-lpcap  $LIBS" ;;
+esac
 cat > conftest.$ac_ext <<EOF
 #line 1841 "configure"
 #include "confdefs.h"
