$NetBSD: patch-aa,v 1.7 2005/02/25 09:23:41 adam Exp $ --- configure.orig 2005-02-24 04:25:20.000000000 +0000 +++ configure @@ -3231,16 +3231,8 @@ fi; pcap_dir="" for dir in $PCAP_DIR ; do if test -d $dir -a -r "$dir/pcap.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 @@ -3421,7 +3413,12 @@ if test "${ac_cv_lib_pcap_pcap_open_live echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcap $LIBS" +case `uname -s` in +SunOS) + LIBS="-lpcap -lxnet $LIBS" ;; +*) + LIBS="-lpcap $LIBS" ;; +esac cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF