diff -up libvorbis-1.2.0/configure.foo libvorbis-1.2.0/configure
--- libvorbis-1.2.0/configure.foo	2008-09-07 16:51:15.000000000 +0200
+++ libvorbis-1.2.0/configure	2008-09-07 16:51:24.000000000 +0200
@@ -19936,7 +19936,7 @@ fi
   elif test "x$ogg_prefix" != "x" ; then
     OGG_LIBS="-L$ogg_prefix/lib"
   elif test "x$prefix" != "xNONE" ; then
-    OGG_LIBS="-L$prefix/lib"
+    OGG_LIBS="-L$libdir"
   fi
 
   OGG_LIBS="$OGG_LIBS -logg"
@@ -19946,7 +19946,7 @@ fi
   elif test "x$ogg_prefix" != "x" ; then
     OGG_CFLAGS="-I$ogg_prefix/include"
   elif test "x$prefix" != "xNONE"; then
-    OGG_CFLAGS="-I$prefix/include"
+    OGG_CFLAGS=""
   fi
 
   { echo "$as_me:$LINENO: checking for Ogg" >&5
diff -up libvorbis-1.2.0/vorbis.m4.foo libvorbis-1.2.0/vorbis.m4
--- libvorbis-1.2.0/vorbis.m4.foo	2008-09-07 16:51:15.000000000 +0200
+++ libvorbis-1.2.0/vorbis.m4	2008-09-07 16:51:24.000000000 +0200
@@ -20,7 +20,7 @@ AC_ARG_ENABLE(vorbistest, [  --disable-v
   elif test "x$vorbis_prefix" != "x" ; then
     VORBIS_LIBS="-L$vorbis_prefix/lib"
   elif test "x$prefix" != "xNONE"; then
-    VORBIS_LIBS="-L$prefix/lib"
+    VORBIS_LIBS="-L$libdir"
   fi
 
   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
@@ -32,7 +32,7 @@ AC_ARG_ENABLE(vorbistest, [  --disable-v
   elif test "x$vorbis_prefix" != "x" ; then
     VORBIS_CFLAGS="-I$vorbis_prefix/include"
   elif test "x$prefix" != "xNONE"; then
-    VORBIS_CFLAGS="-I$prefix/include"
+    VORBIS_CFLAGS=""
   fi
 
 
