summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAdam Thayer <krevnik@comcast.net>2004-07-16 19:48:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-07-16 19:48:30 +0000
commit1ddadfa9e3caa6266783688741fea7a4e9321930 (patch)
treeecfb601f3854a84e565452c8706ef835fc27afcf /configure
parent6cfe51d9dab860515bf1bb6fb703dd5bddeeb4e7 (diff)
XviD Support patch by (Adam Thayer <krevnik at comcast dot net>)
Originally committed as revision 3325 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index 7b86f31b11..3fe6099407 100755
--- a/configure
+++ b/configure
@@ -19,6 +19,7 @@ echo " --enable-vorbis enable vorbis support via libvorbisenc [default
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]"
+echo " --enable-xvid enable xvid support via xvidcore [default=no]"
echo " --enable-mingw32 enable mingw32 native/cross windows compile"
echo " --enable-a52 enable GPL'ed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
@@ -142,6 +143,7 @@ vorbis="no"
faad="no"
faadbin="no"
faac="no"
+xvid="no"
a52="no"
a52bin="no"
dts="no"
@@ -399,6 +401,8 @@ for opt do
;;
--enable-faac) faac="yes"
;;
+ --enable-xvid) xvid="yes"
+ ;;
--disable-vhook) vhook="no"
;;
--disable-simple_idct) simpleidct="no"
@@ -449,6 +453,11 @@ if test "$gpl" != "yes"; then
fail="yes"
fi
+ if test "$xvid" != "no"; then
+ echo "libxvidcore is under GPL and --enable-gpl is not specified"
+ fail="yes"
+ fi
+
if test "$dts" != "no"; then
echo "libdts is under GPL and --enable-gpl is not specified"
fail="yes"
@@ -980,6 +989,7 @@ echo "vorbis enabled $vorbis"
echo "faad enabled $faad"
echo "faadbin enabled $faadbin"
echo "faac enabled $faac"
+echo "xvid enabled $xvid"
echo "a52 support $a52"
echo "a52 dlopened $a52bin"
echo "dts support $dts"
@@ -1264,6 +1274,11 @@ if test "$faac" = "yes" ; then
echo "CONFIG_FAAC=yes" >> config.mak
fi
+if test "$xvid" = "yes" ; then
+ echo "#define CONFIG_XVID 1" >> $TMPH
+ echo "CONFIG_XVID=yes" >> config.mak
+fi
+
if test "$mingw32" = "yes" ; then
echo "#define CONFIG_WIN32 1" >> $TMPH
echo "CONFIG_WIN32=yes" >> config.mak