diff configure.in @ 314:e867f050912c

Seekable FLAC detection.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 24 Apr 2002 20:48:30 +0000
parents 259daddc2d6b
children 5a72981b8cba
line wrap: on
line diff
--- a/configure.in	Wed Apr 24 20:48:02 2002 +0000
+++ b/configure.in	Wed Apr 24 20:48:30 2002 +0000
@@ -163,6 +163,17 @@
   fi
 fi
 
+dnl Check if libFLAC is recent enough for a seekable decoder
+AC_ARG_ENABLE(seekable-flac,
+[  --enable-seekable-flac     enable the seekable decoder [default=yes]],
+              , enable_seekable_flac=yes)
+if test x$enable_seekable_flac = xyes; then
+  AC_CHECK_LIB(FLAC, FLAC__seekable_stream_decoder_new, have_seekable_flac_lib=yes)
+  if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then
+    AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC)
+  fi
+fi
+
 dnl Check for SMPEG
 AC_ARG_ENABLE(smpeg,
 [  --enable-smpeg             enable MP3 decoding via smpeg [default=yes]],