$NetBSD: patch-aa,v 1.5 2004/01/30 14:36:09 adam Exp $

--- configure.orig	2003-08-10 02:12:55.000000000 +0000
+++ configure
@@ -1566,16 +1566,8 @@ pcap_dir=""
 for dir in $PCAP_DIR ; 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
 
@@ -1968,7 +1960,12 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
   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 1974 "configure"
 #include "confdefs.h"
