$OpenBSD: patch-configure_ac,v 1.3 2008/01/26 02:02:50 jakemsr Exp $
--- configure.ac.orig	Wed Jan  2 12:57:44 2008
+++ configure.ac	Sat Jan 19 21:06:11 2008
@@ -190,6 +190,9 @@ VORBIS_REQUIRED="1.0"
  
 have_vorbis=false
 AH_TEMPLATE([HAVE_VORBIS], [Vorbis libraries are there])
+
+OLD_LIBS="$LIBS"
+LIBS="$LIBS -logg"
   
 if test "x$with_vorbis" != "xno"; then
 XIPH_PATH_VORBIS(have_vorbis=true)
@@ -199,7 +202,9 @@ AM_CONDITIONAL(HAVE_VORBIS, test x$have_vorbis = xtrue
 if test x$have_vorbis = xtrue; then
 AC_DEFINE(HAVE_VORBIS)
 fi
- 
+
+LIBS="$OLD_LIBS"
+
 AC_SUBST(VORBIS_REQUIRED)
 
 dnl
@@ -216,11 +221,11 @@ if test "x$with_lame" != "xno"; then
 OLD_CFLAGS=$CFLAGS
 OLD_LIBS=$LIBS
 
-if test x$have_vorbis = xtrue; then
-LIBS="$LIBS -lmp3lame -lvorbis -lm"
-else
+# if test x$have_vorbis = xtrue; then
+# LIBS="$LIBS -lmp3lame -lvorbis -logg -lm"
+# else
 LIBS="$LIBS -lmp3lame -lm"
-fi
+# fi
 
 dnl CFLAGS="$CFLAGS"
 
