Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/configure.ac,v
retrieving revision 1.525
diff -u -3 -p -r1.525 configure.ac
--- configure.ac	22 Feb 2005 16:48:58 -0000	1.525
+++ configure.ac	5 May 2005 19:22:36 -0000
@@ -838,6 +839,15 @@ GST_CHECK_FEATURE(AUDIORESAMPLE, [audior
   AC_SUBST(AUDIORESAMPLE_LIBS)
 ])
 
+dnl *** bz2 ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
+GST_CHECK_FEATURE(BZ2, [bz2 plug-in], bz2, [
+	GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzDecompressInit, -lm, bzlib.h, [
+		BZ2_LIBS="-lbz2 -lm"
+		AC_SUBST(BZ2_LIBS)
+	])
+])
+
 dnl *** cairo ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
 GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
@@ -2046,6 +2057,7 @@ ext/arts/Makefile
 ext/artsd/Makefile
 ext/audiofile/Makefile
 ext/audioresample/Makefile
+ext/bz2/Makefile
 ext/cairo/Makefile
 ext/cdaudio/Makefile
 ext/cdparanoia/Makefile
