changeset 28442:098ed8584f6a

Add bzlib check for FFmpeg.
author diego
date Sat, 07 Feb 2009 15:33:10 +0000
parents 669df097f203
children ca091f84eb5d
files configure
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Feb 07 15:29:22 2009 +0000
+++ b/configure	Sat Feb 07 15:33:10 2009 +0000
@@ -5986,6 +5986,21 @@
 echores "$_zlib"
 
 
+echocheck "bzlib"
+bzlib=no
+def_bzlib='#define CONFIG_BZLIB 0'
+cat > $TMPC << EOF
+#include <bzlib.h>
+int main(void) { BZ2_bzlibVersion(); return 0; }
+EOF
+cc_check -lbz2 && bzlib=yes
+if test "$bzlib" = yes ; then
+  def_bzlib='#define CONFIG_BZLIB 1'
+  _ld_extra="$_ld_extra -lbz2"
+fi
+echores "$bzlib"
+
+
 echocheck "RTC"
 if test "$_rtc" = auto ; then
   cat > $TMPC << EOF