aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-11-02 17:09:47 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-02 17:09:47 +0000
commit786b30af267d69b7cf7d06c72b1d5f80d16f9a88 (patch)
tree9d60e3fb069bb6158a1b8fa21f112b1be6eaf9b6 /configure
parent6dc7b6b37768b804f4ec795c5f16452538f987e8 (diff)
downloadffmpeg-786b30af267d69b7cf7d06c72b1d5f80d16f9a88.tar.gz
Add option to disable ffmpeg build.
Patch taken from the Debian package by Sam Hocevar. Originally committed as revision 6871 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 22be3a3b2e..462d2530e9 100755
--- a/configure
+++ b/configure
@@ -98,6 +98,7 @@ show_help(){
echo " --disable-mpegaudio-hp faster (but less accurate)"
echo " MPEG audio decoding [default=no]"
echo " --disable-protocols disable I/O protocols support [default=no]"
+ echo " --disable-ffmpeg disable ffmpeg build"
echo " --disable-ffserver disable ffserver build"
echo " --disable-ffplay disable ffplay build"
echo " --enable-small optimize for size instead of speed"
@@ -455,6 +456,7 @@ VHOOKSHFLAGS='$(SHFLAGS)'
netserver="no"
need_inet_aton="no"
protocols="yes"
+ffmpeg="yes"
ffserver="yes"
ffplay="yes"
LIBOBJFLAGS=""
@@ -810,6 +812,8 @@ for opt do
;;
--disable-protocols) protocols="no"; network="no"; ffserver="no"
;;
+ --disable-ffmpeg) ffmpeg="no"
+ ;;
--disable-ffserver) ffserver="no"
;;
--disable-ffplay) ffplay="no"
@@ -2104,6 +2108,11 @@ if test "$protocols" = "yes" ; then
echo "CONFIG_PROTOCOLS=yes" >> config.mak
fi
+if test "$ffmpeg" = "yes" ; then
+ echo "#define CONFIG_FFMPEG 1" >> $TMPH
+ echo "CONFIG_FFMPEG=yes" >> config.mak
+fi
+
if test "$ffserver" = "yes" ; then
echo "#define CONFIG_FFSERVER 1" >> $TMPH
echo "CONFIG_FFSERVER=yes" >> config.mak