--- configure.orig	Sun Jun 17 18:30:26 2001
+++ configure	Thu Aug 16 04:34:42 2001
@@ -1557,8 +1557,8 @@
 if test "`uname -s`" = "FreeBSD" ; then
   echo "FreeBSD detected."
   FREEBSD=1
-  LDFLAGS="-L/usr/local/lib $LDFLAGS"
-  CPPFLAGS="-I/usr/local/include $CPPFLAGS"
+  LDFLAGS="-L${libdir} $LDFLAGS"
+  CPPFLAGS="-I${includedir} $CPPFLAGS"
   cat >> confdefs.h <<\EOF
 #define AUDIO_NONBLOCKING 1
 EOF
@@ -2289,7 +2289,7 @@
 fi
 done
 
-for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h getopt.h
+for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
