aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-01-09 15:41:39 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-01-09 15:41:39 +0000
commite0f80bd744996df4429624373f96442e6fa5ec07 (patch)
tree9bf26d526dfbe61065b227d25a9aafbcb0ec7d50 /configure
parente8b562087db87a426aa895d6c3664bc26949eb54 (diff)
downloadffmpeg-e0f80bd744996df4429624373f96442e6fa5ec07.tar.gz
CamStudio decoder, only 32 bit lzo mode is tested
Originally committed as revision 4836 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index 3fe8d43fce..d726704551 100755
--- a/configure
+++ b/configure
@@ -67,6 +67,7 @@ echo " --disable-bktr disable bktr video grabbing [default=no]"
echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
echo " --disable-network disable network support [default=no]"
echo " --disable-zlib disable zlib [default=no]"
+echo " --disable-lzo disable lzo [default=no]"
echo " --disable-simple_idct disable simple IDCT routines [default=no]"
echo " --disable-vhook disable video hooking support"
echo " --enable-gprof enable profiling with gprof [$gprof]"
@@ -185,6 +186,7 @@ dv1394="yes"
dc1394="no"
network="yes"
zlib="yes"
+lzo="yes"
libgsm="no"
mp3lame="no"
libogg="no"
@@ -485,6 +487,8 @@ for opt do
;;
--disable-zlib) zlib="no"
;;
+ --disable-lzo) lzo="no"
+ ;;
--enable-a52) a52="yes"
;;
--enable-a52bin) a52bin="yes"
@@ -985,6 +989,23 @@ if test "$zlib" = "yes"; then
extralibs="$extralibs -lz"
fi
+if test "$lzo" = "yes" -a "$gpl" = "yes"; then
+# check for liblzo
+cat > $TMPC << EOF
+#include <lzo1x.h>
+int main ( void ) {
+lzo_init();
+return 0;
+}
+EOF
+$cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -llzo 2> /dev/null || lzo="no"
+else
+lzo="no"
+fi
+if test "$lzo" = "yes"; then
+extralibs="$extralibs -llzo"
+fi
+
# test for lrintf in math.h
cat > $TMPC << EOF
#define _ISOC9X_SOURCE 1
@@ -1245,6 +1266,7 @@ echo "AltiVec enabled $altivec"
fi
echo "gprof enabled $gprof"
echo "zlib enabled $zlib"
+echo "lzo enabled $lzo"
echo "libgsm enabled $libgsm"
echo "mp3lame enabled $mp3lame"
echo "libogg enabled $libogg"
@@ -1592,6 +1614,11 @@ if test "$zlib" = "yes" ; then
echo "CONFIG_ZLIB=yes" >> config.mak
fi
+if test "$lzo" = "yes" ; then
+ echo "#define CONFIG_LZO 1" >> $TMPH
+ echo "CONFIG_LZO=yes" >> config.mak
+fi
+
if test "$libgsm" = "yes" ; then
echo "#define CONFIG_LIBGSM 1" >> $TMPH
echo "CONFIG_LIBGSM=yes" >> config.mak