aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNilesh Bansal <nileshbansal@gmail.com>2005-02-24 15:18:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-02-24 15:18:02 +0000
commit5c5dea3f0c495e371faa2962cde83dc187bdf2e4 (patch)
tree79114f92e1f67bd8b55a24423132f2debebf3082 /configure
parent738386a5ed5eff0dbad36c33ff96b3b3d4d80af6 (diff)
downloadffmpeg-5c5dea3f0c495e371faa2962cde83dc187bdf2e4.tar.gz
01-makefile_fix_updated.patch
Adds --enable-theora/--enable-vorbis/--enable-ogg to configure If compiled WITHOUT --enable-theora, native VP3 decoder is used patch by (Nilesh Bansal <nileshbansal gmail com>) Originally committed as revision 3975 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure42
1 files changed, 39 insertions, 3 deletions
diff --git a/configure b/configure
index 0e21d327ea..cf865c8f9c 100755
--- a/configure
+++ b/configure
@@ -15,7 +15,9 @@ echo " --help print this message"
echo " --prefix=PREFIX install in PREFIX [$prefix]"
echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
-echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
+echo " --enable-ogg enable ogg support via libogg [default=no]"
+echo " --enable-vorbis enable vorbis support via libvorbis [default=no]"
+echo " --enable-theora enable theora support via libtheora [default=no]"
echo " --enable-faad enable faad support via libfaad [default=no]"
echo " --enable-faadbin build faad support with runtime linking [default=no]"
echo " --enable-faac enable faac support via libfaac [default=no]"
@@ -149,7 +151,9 @@ dc1394="no"
network="yes"
zlib="yes"
mp3lame="no"
+ogg="no"
vorbis="no"
+theora="no"
faad="no"
faadbin="no"
faac="no"
@@ -410,8 +414,12 @@ for opt do
;;
--enable-mp3lame) mp3lame="yes"
;;
+ --enable-ogg) ogg="yes"
+ ;;
--enable-vorbis) vorbis="yes"
;;
+ --enable-theora) theora="yes"
+ ;;
--enable-faad) faad="yes"
;;
--enable-faadbin) faadbin="yes"
@@ -461,6 +469,22 @@ for opt do
esac
done
+if test "$theora" = "yes" ; then
+ if test "$ogg" = "no" ; then
+ echo "Ogg must be enabled to enable Theora"
+ fail="yes"
+ theora="no"
+ fi
+fi
+
+if test "$vorbis" = "yes" ; then
+ if test "$ogg" = "no" ; then
+ echo "Ogg must be enabled to enable Vorbis"
+ fail="yes"
+ vorbis="no"
+ fi
+fi
+
if test "$gpl" != "yes"; then
if test "$pp" != "no" -o "$shared_pp" != "no"; then
echo "The Postprocessing code is under GPL and --enable-gpl is not specified"
@@ -1040,7 +1064,9 @@ fi
echo "gprof enabled $gprof"
echo "zlib enabled $zlib"
echo "mp3lame enabled $mp3lame"
+echo "ogg enabled $ogg"
echo "vorbis enabled $vorbis"
+echo "theora enabled $theora"
echo "faad enabled $faad"
echo "faadbin enabled $faadbin"
echo "faac enabled $faac"
@@ -1335,9 +1361,19 @@ if test "$mp3lame" = "yes" ; then
echo "CONFIG_MP3LAME=yes" >> config.mak
fi
+if test "$ogg" = "yes" ; then
+ echo "#define CONFIG_LIBOGG 1" >> $TMPH
+ echo "CONFIG_LIBOGG=yes" >> config.mak
+fi
+
if test "$vorbis" = "yes" ; then
- echo "#define CONFIG_VORBIS 1" >> $TMPH
- echo "CONFIG_VORBIS=yes" >> config.mak
+ echo "#define CONFIG_LIBVORBIS 1" >> $TMPH
+ echo "CONFIG_LIBVORBIS=yes" >> config.mak
+fi
+
+if test "$theora" = "yes" ; then
+ echo "#define CONFIG_LIBTHEORA 1" >> $TMPH
+ echo "CONFIG_LIBTHEORA=yes" >> config.mak
fi
if test "$faad" = "yes" ; then