📄 configure
字号:
#!/bin/sh## ffmpeg configure script (c) 2000, 2001, 2002 Fabrice Bellard#if test x"$1" = x"-h" -o x"$1" = x"--help" ; thencat << EOFUsage: configure [options]Options: [defaults in brackets after descriptions]EOFecho "Standard options:"echo " --help print this message"echo " --prefix=PREFIX install in PREFIX [$prefix]"echo " --libdir=DIR install libs in DIR [PREFIX/lib]"echo " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]"echo " --mandir=DIR install man page in DIR [PREFIX/man]"echo " --enable-mp3lame enable MP3 encoding via libmp3lame [default=no]"echo " --enable-libogg 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]"echo " --enable-libgsm enable GSM support via libgsm [default=no]"echo " --enable-xvid enable XviD support via xvidcore [default=no]"echo " --enable-x264 enable H.264 encoding via x264 [default=no]"echo " --enable-mingw32 enable MinGW native/cross Windows compile"echo " --enable-mingwce enable MinGW native/cross WinCE compile"echo " --enable-a52 enable GPLed A52 support [default=no]"echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"echo " --enable-dts enable GPLed DTS support [default=no]"echo " --enable-pp enable GPLed postprocessing support [default=no]"echo " --enable-static build static libraries [default=yes]"echo " --disable-static do not build static libraries [default=no]"echo " --enable-shared build shared libraries [default=no]"echo " --disable-shared do not build shared libraries [default=yes]"echo " --enable-amr_nb enable amr_nb float audio codec"echo " --enable-amr_nb-fixed use fixed point for amr-nb codec"echo " --enable-amr_wb enable amr_wb float audio codec"echo " --enable-amr_if2 enable amr_wb IF2 audio codec"echo " --enable-sunmlib use Sun medialib [default=no]"echo " --enable-pthreads use pthreads [default=no]"echo " --enable-dc1394 enable IIDC-1394 grabbing using libdc1394"echo " and libraw1394 [default=no]"echo " --enable-gpl allow use of GPL code, the resulting libav*"echo " and ffmpeg will be under GPL [default=no]"echo ""echo "Advanced options (experts only):"echo " --source-path=PATH path to source code [$source_path]"echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]"echo " --cc=CC use C compiler CC [$cc]"echo " --make=MAKE use specified make [$make]"echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"echo " --extra-libs=ELIBS add ELIBS [$ELIBS]"echo " --build-suffix=SUFFIX suffix for application specific build []"echo " --cpu=CPU force cpu to CPU [$cpu]"echo " --tune=CPU tune code for a particular CPU"echo " (may fail or perform badly on other CPUs)"echo " --powerpc-perf-enable enable performance report on PPC"echo " (requires enabling PMC)"echo " --disable-mmx disable MMX usage"echo " --disable-iwmmxt disable iwmmxt usage"echo " --disable-altivec disable AltiVec usage"echo " --disable-audio-oss disable OSS audio support [default=no]"echo " --disable-audio-beos disable BeOS audio support [default=no]"echo " --disable-v4l disable video4linux grabbing [default=no]"echo " --disable-v4l2 disable video4linux2 grabbing [default=no]"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]"echo " --disable-debug disable debugging symbols"echo " --disable-opts disable compiler optimizations"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-ffserver disable ffserver build"echo " --disable-ffplay disable ffplay build"echo " --enable-small optimize for size instead of speed"echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers"echo " --disable-strip disable stripping of executables and shared libraries"echo " --disable-encoder=NAME disables encoder NAME"echo " --enable-encoder=NAME enables encoder NAME"echo " --disable-decoder=NAME disables decoder NAME"echo " --enable-decoder=NAME enables decoder NAME"echo " --disable-encoders disables all encoders"echo " --disable-decoders disables all decoders"echo " --disable-muxers disables all muxers"echo " --disable-demuxers disables all demuxers"echo ""echo "NOTE: Object files are built at the place where configure is launched."exit 1fi# set temporary file nameif test ! -z "$TMPDIR" ; then TMPDIR1="${TMPDIR}"elif test ! -z "$TEMPDIR" ; then TMPDIR1="${TEMPDIR}"else TMPDIR1="/tmp"fiTMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"TMPE="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}"TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"# default parametersprefix="/usr/local"libdir=""incdir=""mandir=""bindir=""cross_prefix=""cc="gcc"ar="ar"ranlib="ranlib"make="make"strip="strip"cpu=`uname -m`tune="generic"powerpc_perf="no"mmx="default"iwmmxt="default"altivec="default"mmi="default"case "$cpu" in i386|i486|i586|i686|i86pc|BePC) cpu="x86" ;; x86_64|amd64) cpu="x86" canon_arch="`cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`" if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then cpu="x86_64" fi fi ;; # armv4l is a subset of armv5tel armv4l|armv5tel) cpu="armv4l" ;; alpha) cpu="alpha" ;; "Power Macintosh"|ppc|powerpc) cpu="powerpc" ;; mips|mipsel) cpu="mips" ;; sun4u|sparc64) cpu="sparc64" ;; sparc) cpu="sparc" ;; sh4) cpu="sh4" ;; parisc|parisc64) cpu="parisc" ;; s390|s390x) cpu="s390" ;; m68k) cpu="m68k" ;; ia64) cpu="ia64" ;; *) cpu="unknown" ;;esacgprof="no"v4l="yes"v4l2="yes"bktr="no"audio_oss="yes"audio_beos="no"dv1394="yes"dc1394="no"network="yes"zlib="yes"lzo="yes"libgsm="no"mp3lame="no"libogg="no"vorbis="no"theora="no"faad="no"faadbin="no"faac="no"xvid="no"x264="no"a52="no"a52bin="no"dts="no"pp="no"mingw32="no"mingwce="no"cygwin="no"os2="no"lstatic="yes"lshared="no"optimize="yes"debug="yes"dostrip="yes"installstrip="-s"extralibs="-lm"simpleidct="yes"bigendian="no"inttypes="yes"emu_fast_int="no"vhook="default"dlfcn="no"dlopen="no"mpegaudio_hp="yes"SHFLAGS='-shared -Wl,-soname,$@.$(LIBMAJOR)'netserver="no"need_inet_aton="no"protocols="yes"ffserver="yes"ffplay="yes"LIBOBJFLAGS=""LDFLAGS=-Wl,--warn-commonFFSLDFLAGS=-Wl,-ELDCONFIG="ldconfig"LIBPREF="lib"LIBSUF=".a"LIB='$(LIBPREF)$(NAME)$(LIBSUF)'SLIBPREF="lib"SLIBSUF=".so"SLIBNAME='$(SLIBPREF)$(NAME)$(SLIBSUF)'SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBVERSION)'SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)$(SLIBSUF).$(LIBMAJOR)'EXESUF=""BUILDSUF=""amr_nb="no"amr_wb="no"amr_nb_fixed="no"amr_if2="no"sunmlib="no"pthreads="no"gpl="no"memalignhack="no"muxers="yes"demuxers="yes"# OS specifictargetos=`uname -s`case $targetos inBeOS)prefix="/boot/home/config"# helps building libavcodecCFLAGS="-DPIC -fomit-frame-pointer"# 3 gcc releases known for BeOS, each with ugly bugsgcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"case "$gcc_version" in2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"mmx="no";;*20010315*) echo "BeBits gcc"CFLAGS="$CFLAGS -fno-expensive-optimizations";;esacSHFLAGS=-nostart# disable Linux thingsaudio_oss="no"v4l="no"v4l2="no"dv1394="no"# enable BeOS thingsaudio_beos="yes"# no need for libm, but the inet stuff# Check for BONEif (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); thenextralibs="-lbind -lsocket"elsenetserver="yes"need_inet_aton="yes"extralibs="-lnet"fi ;;SunOS)v4l="no"v4l2="no"audio_oss="no"dv1394="no"make="gmake"LDFLAGS=""FFSLDFLAGS=""need_inet_aton="yes"extralibs="$extralibs -lsocket -lnsl";;NetBSD)v4l="no"v4l2="no"bktr="yes"audio_oss="yes"dv1394="no"make="gmake"LDFLAGS="$LDFLAGS -export-dynamic"case `uname -r` in2.*) extralibs="$extralibs -lossaudio";;esac;;OpenBSD)v4l="no"v4l2="no"bktr="yes"audio_oss="yes"dv1394="no"make="gmake"LIBOBJFLAGS="\$(PIC)"LDFLAGS="$LDFLAGS -export-dynamic -pthread"LDCONFIG="ldconfig -m \$(libdir)"extralibs="$extralibs -lossaudio";;FreeBSD)v4l="no"v4l2="no"bktr="yes"audio_oss="yes"dv1394="no"make="gmake"CFLAGS="-pthread"LDFLAGS="$LDFLAGS -export-dynamic -pthread";;BSD/OS)v4l="no"v4l2="no"bktr="yes"audio_oss="yes"dv1394="no"extralibs="-lpoll -lgnugetopt -lm"make="gmake"strip="strip -d"installstrip="";;Darwin)cc="cc"v4l="no"v4l2="no"audio_oss="no"dv1394="no"SHFLAGS="-dynamiclib -Wl,-single_module -Wl,-install_name,\$(libdir)/\$(SLIBNAME),-current_version,\$(SPPVERSION),-compatibility_version,\$(SPPVERSION)"extralibs=""darwin="yes"strip="strip -x"installstrip=""LDFLAGS="-Wl,-dynamic,-search_paths_first"SLIBSUF=".dylib"SLIBNAME_WITH_FULLVERSION='$(SLIBPREF)$(NAME).$(LIBVERSION)$(SLIBSUF)'SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME).$(LIBMAJOR)$(SLIBSUF)'FFSLDFLAGS=-Wl,-bind_at_load;;MINGW32*)# Note: the rest of the mingw32 config is done afterwards as mingw32# can be forced on the command line for Linux cross compilation.mingw32="yes";;CYGWIN*)v4l="no"v4l2="no"audio_oss="yes"dv1394="no"vhook="no"extralibs=""cygwin="yes"EXESUF=".exe";;Linux)LDFLAGS="$LDFLAGS -rdynamic";;IRIX*)ranlib="echo ignoring ranlib"v4l="no"v4l2="no"audio_oss="no"make="gmake";;OS/2)TMPE=$TMPE".exe"ar="emxomfar -p128"ranlib="echo ignoring ranlib"strip="echo ignoring strip"CFLAGS="-Zomf"LDFLAGS="-Zomf -Zstack 16384 -s"SHFLAGS="-Zdll -Zomf"FFSLDFLAGS=""LIBPREF=""LIBSUF=".lib"SLIBPREF=""SLIBSUF=".dll"EXESUF=".exe"extralibs=""pkg_requires=""v4l="no"v4l2="no"audio_oss="no"dv1394="no"ffserver="no"vhook="no"os2="yes";;*) ;;esac# From MPlayer configure. We need TARGET_OS available# to the Makefile, so it can distinguish between flavors# of AltiVec on PowerPC.TARGET_OS=`( uname -s ) 2>&1` case "$TARGET_OS" in Linux|FreeBSD|NetBSD|BSD/OS|OpenBSD|SunOS|QNX|Darwin|GNU|BeOS|MorphOS) ;; IRIX*) TARGET_OS=IRIX ;; HP-UX*) TARGET_OS=HP-UX ;; [cC][yY][gG][wW][iI][nN]*) TARGET_OS=CYGWIN ;; *) TARGET_OS="$TARGET_OS-UNKNOWN" ;; esac# find source pathsource_path="`dirname $0`"source_path_used="yes"if test -z "$source_path" -o "$source_path" = "." ; then source_path=`pwd` source_path_used="no"else source_path="`cd \"$source_path\"; pwd`"fiFFMPEG_CONFIGURATION=" "for opt do FFMPEG_CONFIGURATION="$FFMPEG_CONFIGURATION""$opt "doneCODEC_LIST=`grep 'register_avcodec(&[a-z]' $source_path/libavcodec/allcodecs.c | sed 's/.*&\(.*\)).*/\1/'`for opt do case "$opt" in --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`; force_prefix=yes ;; --libdir=*) libdir=`echo $opt | cut -d '=' -f 2`; force_libdir=yes ;; --incdir=*) incdir=`echo $opt | cut -d '=' -f 2`; ;; --mandir=*) mandir=`echo $opt | cut -d '=' -f 2` ;; --source-path=*) source_path=`echo $opt | cut -d '=' -f 2` ;; --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2` ;; --cc=*) cc=`echo $opt | cut -d '=' -f 2-` ;; --make=*) make=`echo $opt | cut -d '=' -f 2` ;; --extra-cflags=*) CFLAGS="$CFLAGS ${opt#--extra-cflags=}" ;; --extra-ldflags=*) LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}" ;; --extra-libs=*) extralibs=${opt#--extra-libs=} ;; --build-suffix=*) BUILDSUF=${opt#--build-suffix=} ;; --cpu=*) cpu=`echo $opt | cut -d '=' -f 2` ;; --tune=*) tune=`echo $opt | cut -d '=' -f 2` ;; --powerpc-perf-enable) powerpc_perf="yes" ;; --disable-mmx) mmx="no" ;; --disable-iwmmxt) iwmmxt="no" ;; --disable-altivec) altivec="no" ;; --enable-gprof) gprof="yes" ;; --disable-v4l) v4l="no" ;; --disable-v4l2) v4l2="no" ;; --disable-bktr) bktr="no" ;; --disable-audio-oss) audio_oss="no" ;; --disable-audio-beos) audio_beos="no" ;; --disable-dv1394) dv1394="no" ;; --disable-network) network="no"; ffserver="no" ;; --disable-zlib) zlib="no" ;; --disable-lzo) lzo="no" ;; --enable-a52) a52="yes" ;; --enable-a52bin) a52bin="yes" ;; --enable-dts) dts="yes" extralibs="$extralibs -ldts"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -