? bz2.diff
? ext/bz2
? ext/bz2.tar.bz2
Index: configure.ac
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/configure.ac,v
retrieving revision 1.633
diff -u -3 -p -b -B -d -r1.633 configure.ac
--- configure.ac	28 Jan 2006 04:39:18 -0000	1.633
+++ configure.ac	4 Feb 2006 15:58:05 -0000
@@ -400,6 +400,13 @@ else
   AC_SUBST(X_LIBS)
 fi
 
+dnl *** BZ2 ***
+translit(bz2, m, l) AM_CONDITIONAL(USE_BZ2, true)
+GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
+  GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
+  AC_SUBST(BZ2_LIBS)
+])
+
 dnl *** DTS ***
 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
 GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
@@ -652,6 +659,7 @@ sys/glsink/Makefile
 examples/Makefile
 examples/directfb/Makefile
 ext/Makefile
+ext/bz2/Makefile
 ext/directfb/Makefile
 ext/faac/Makefile
 ext/faad/Makefile
Index: ext/Makefile.am
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/ext/Makefile.am,v
retrieving revision 1.167
diff -u -3 -p -b -B -d -r1.167 Makefile.am
--- ext/Makefile.am	28 Dec 2005 21:07:17 -0000	1.167
+++ ext/Makefile.am	4 Feb 2006 15:58:05 -0000
@@ -22,6 +22,12 @@ AUDIOFILE_DIR=
 AUDIORESAMPLE_DIR=
 # endif
 
+if USE_BZ2
+BZ2_DIR=bz2
+else
+BZ2_DIR=
+endif
+
 # if USE_CDAUDIO
 # CDAUDIO_DIR=cdaudio
 # else
@@ -207,6 +213,7 @@ SUBDIRS=\
 	$(ARTSC_DIR) \
 	$(AUDIOFILE_DIR) \
 	$(AUDIORESAMPLE_DIR) \
+	$(BZ2_DIR) \
 	$(CDAUDIO_DIR) \
 	$(DIRAC_DIR) \
 	$(DIRECTFB_DIR) \
@@ -239,6 +246,7 @@ SUBDIRS=\
 	$(XVID_DIR)
 
 DIST_SUBDIRS= \
+	bz2 \
 	directfb \
 	faac \
 	faad \
