Hi,
I am sorry, I forgot that I used the seekable_stream_encoder in
libsndfile that is not compatible between 1.1.0 and 1.1.1. But for
libfishsound I used the more simple stream_encoder that did not make any
problems when using 1.1.0 instead of 1.1.1. But I found an error in
configure.ac. Here is a diff for that:

--- configure.ac~       2004-10-12 02:23:37.000000000 +0200
+++ configure.ac        2004-11-09 01:32:01.000000000 +0100
@@ -317,20 +317,20 @@
      [ ac_enable_flac=no ], [ ac_enable_flac=yes] )

 if test "x${ac_enable_flac}" = xyes ; then
-  AC_CHECK_LIB(OggFLAC, FLAC__file_decoder_init, HAVE_FLAC="maybe", ,
[-lm -logg])
+   AC_CHECK_LIB(FLAC, FLAC__stream_decoder_init, HAVE_FLAC="maybe", ,
[-lm -logg])
   if test "x$HAVE_FLAC" = xmaybe; then
     AC_CHECK_HEADER(FLAC/all.h, HAVE_FLAC="yes", HAVE_FLAC="no")
   fi
   if test "x$HAVE_FLAC" = xyes ; then
-    AC_DEFINE(HAVE_FLAC, [1], [Define to 1 if you have libOggFLAC])
+    AC_DEFINE(HAVE_FLAC, [1], [Define to 1 if you have libFLAC])
     FLAC_LIBS="-lFLAC -logg -lm"
     AC_SUBST(FLAC_LIBS)
     FLAC_SUPPORT="yes"
   else
-    AC_DEFINE(HAVE_FLAC, [0], [Define to 1 if you have libOggFLAC])
+    AC_DEFINE(HAVE_FLAC, [0], [Define to 1 if you have libFLAC])
   fi
 else
-  AC_DEFINE(HAVE_FLAC, [0], [Define to 1 if you have libOggFLAC])
+  AC_DEFINE(HAVE_FLAC, [0], [Define to 1 if you have libFLAC])
   FLAC_SUPPORT="disabled"
 fi
 AM_CONDITIONAL(HAVE_FLAC, [test "x$HAVE_FLAC" = "xyes"])
@@ -475,11 +475,11 @@

 if test "x$HAVE_FLAC" != xyes ; then
     AC_MSG_RESULT(
-[*** libOggFLAC, available from  http://flac.sourceforge.net/])
+[*** libFLAC, available from  http://flac.sourceforge.net/])
 fi
 if test "x$HAVE_FLAC" = xmaybe ; then
     AC_MSG_RESULT(
-[      Development files missing: The libOggFLAC library binary seems
to be
+[      Development files missing: The libFLAC library binary seems to
be
       installed, but building of a test program failed.
 ])
 fi


MfG
	Tobias

Am Dienstag, den 09.11.2004, 10:52 +1100 schrieb Conrad Parker:
> On Mon, Nov 08, 2004 at 02:05:19PM +0100, Tobias Gehrig wrote:
> > Hi,
> > I have sent him a patch today that makes the code also compile with flac
> > 1.1.0. Should I include this in libfishsound as well? It's just one
> > function that is not available in 1.1.1, so some simple ifdefs are
> > enough to make the code backward compatible.
> 
> sure, that could be useful :)
> 
> thanks,
> 
> Conrad.
-- 
Tobias Gehrig <tgehrig@ira.uka.de>
Universität Karlsruhe - Fakultät für Informatik - Interactive Systems
Labs

