1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

configure: use here-doc for --help output

Originally committed as revision 20427 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-10-31 15:59:08 +00:00
parent 173c983b52
commit 0645487701

360
configure vendored
View File

@ -55,185 +55,187 @@ if test "$E1" != 0 || test "$E2" = 0; then
fi fi
show_help(){ show_help(){
echo "Usage: configure [options]" cat <<EOF
echo "Options: [defaults in brackets after descriptions]" Usage: configure [options]
echo Options: [defaults in brackets after descriptions]
echo "Standard options:"
echo " --help print this message" Standard options:
echo " --logfile=FILE log tests and output to FILE [config.err]" --help print this message
echo " --disable-logging do not log configure debug information" --logfile=FILE log tests and output to FILE [config.err]
echo " --prefix=PREFIX install in PREFIX [$prefix]" --disable-logging do not log configure debug information
echo " --bindir=DIR install binaries in DIR [PREFIX/bin]" --prefix=PREFIX install in PREFIX [$prefix]
echo " --datadir=DIR install data files in DIR [PREFIX/share/ffmpeg]" --bindir=DIR install binaries in DIR [PREFIX/bin]
echo " --libdir=DIR install libs in DIR [PREFIX/lib]" --datadir=DIR install data files in DIR [PREFIX/share/ffmpeg]
echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]" --libdir=DIR install libs in DIR [PREFIX/lib]
echo " --incdir=DIR install includes in DIR [PREFIX/include]" --shlibdir=DIR install shared libs in DIR [PREFIX/lib]
echo " --mandir=DIR install man page in DIR [PREFIX/share/man]" --incdir=DIR install includes in DIR [PREFIX/include]
echo --mandir=DIR install man page in DIR [PREFIX/share/man]
echo "Configuration options:"
echo " --disable-static do not build static libraries [no]" Configuration options:
echo " --enable-shared build shared libraries [no]" --disable-static do not build static libraries [no]
echo " --enable-gpl allow use of GPL code, the resulting libs" --enable-shared build shared libraries [no]
echo " and binaries will be under GPL [no]" --enable-gpl allow use of GPL code, the resulting libs
echo " --enable-version3 upgrade (L)GPL to version 3 [no]" and binaries will be under GPL [no]
echo " --enable-nonfree allow use of nonfree code, the resulting libs" --enable-version3 upgrade (L)GPL to version 3 [no]
echo " and binaries will be unredistributable [no]" --enable-nonfree allow use of nonfree code, the resulting libs
echo " --disable-doc do not build documentation" and binaries will be unredistributable [no]
echo " --disable-ffmpeg disable ffmpeg build" --disable-doc do not build documentation
echo " --disable-ffplay disable ffplay build" --disable-ffmpeg disable ffmpeg build
echo " --disable-ffserver disable ffserver build" --disable-ffplay disable ffplay build
echo " --enable-postproc enable GPLed postprocessing support [no]" --disable-ffserver disable ffserver build
echo " --enable-avfilter video filter support [no]" --enable-postproc enable GPLed postprocessing support [no]
echo " --enable-avfilter-lavf video filters dependent on avformat [no]" --enable-avfilter video filter support [no]
echo " --enable-beosthreads use BeOS threads [no]" --enable-avfilter-lavf video filters dependent on avformat [no]
echo " --enable-os2threads use OS/2 threads [no]" --enable-beosthreads use BeOS threads [no]
echo " --enable-pthreads use pthreads [no]" --enable-os2threads use OS/2 threads [no]
echo " --enable-w32threads use Win32 threads [no]" --enable-pthreads use pthreads [no]
echo " --enable-x11grab enable X11 grabbing [no]" --enable-w32threads use Win32 threads [no]
echo " --disable-network disable network support [no]" --enable-x11grab enable X11 grabbing [no]
echo " --disable-ipv6 disable IPv6 support [no]" --disable-network disable network support [no]
echo " --disable-mpegaudio-hp faster (but less accurate) MPEG audio decoding [no]" --disable-ipv6 disable IPv6 support [no]
echo " --enable-gray enable full grayscale support (slower color)" --disable-mpegaudio-hp faster (but less accurate) MPEG audio decoding [no]
echo " --disable-swscale-alpha disable alpha channel support in swscale" --enable-gray enable full grayscale support (slower color)
echo " --disable-fastdiv disable table-based division" --disable-swscale-alpha disable alpha channel support in swscale
echo " --enable-small optimize for size instead of speed" --disable-fastdiv disable table-based division
echo " --disable-aandct disable AAN DCT code" --enable-small optimize for size instead of speed
echo " --disable-fft disable FFT code" --disable-aandct disable AAN DCT code
echo " --disable-golomb disable Golomb code" --disable-fft disable FFT code
echo " --disable-lpc disable LPC code" --disable-golomb disable Golomb code
echo " --disable-mdct disable MDCT code" --disable-lpc disable LPC code
echo " --disable-rdft disable RDFT code" --disable-mdct disable MDCT code
echo " --disable-vaapi disable VAAPI code" --disable-rdft disable RDFT code
echo " --disable-vdpau disable VDPAU code" --disable-vaapi disable VAAPI code
echo " --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)" --disable-vdpau disable VDPAU code
echo " --enable-hardcoded-tables use hardcoded tables instead of runtime generation" --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)
echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers" --enable-hardcoded-tables use hardcoded tables instead of runtime generation
echo " --enable-beos-netserver enable BeOS netserver" --enable-memalign-hack emulate memalign, interferes with memory debuggers
echo " --disable-encoder=NAME disable encoder NAME" --enable-beos-netserver enable BeOS netserver
echo " --enable-encoder=NAME enable encoder NAME" --disable-encoder=NAME disable encoder NAME
echo " --disable-encoders disable all encoders" --enable-encoder=NAME enable encoder NAME
echo " --disable-decoder=NAME disable decoder NAME" --disable-encoders disable all encoders
echo " --enable-decoder=NAME enable decoder NAME" --disable-decoder=NAME disable decoder NAME
echo " --disable-decoders disable all decoders" --enable-decoder=NAME enable decoder NAME
echo " --disable-hwaccel=NAME disable hwaccel NAME" --disable-decoders disable all decoders
echo " --enable-hwaccel=NAME enable hwaccel NAME" --disable-hwaccel=NAME disable hwaccel NAME
echo " --disable-hwaccels disable all hwaccels" --enable-hwaccel=NAME enable hwaccel NAME
echo " --disable-muxer=NAME disable muxer NAME" --disable-hwaccels disable all hwaccels
echo " --enable-muxer=NAME enable muxer NAME" --disable-muxer=NAME disable muxer NAME
echo " --disable-muxers disable all muxers" --enable-muxer=NAME enable muxer NAME
echo " --disable-demuxer=NAME disable demuxer NAME" --disable-muxers disable all muxers
echo " --enable-demuxer=NAME enable demuxer NAME" --disable-demuxer=NAME disable demuxer NAME
echo " --disable-demuxers disable all demuxers" --enable-demuxer=NAME enable demuxer NAME
echo " --enable-parser=NAME enable parser NAME" --disable-demuxers disable all demuxers
echo " --disable-parser=NAME disable parser NAME" --enable-parser=NAME enable parser NAME
echo " --disable-parsers disable all parsers" --disable-parser=NAME disable parser NAME
echo " --enable-bsf=NAME enable bitstream filter NAME" --disable-parsers disable all parsers
echo " --disable-bsf=NAME disable bitstream filter NAME" --enable-bsf=NAME enable bitstream filter NAME
echo " --disable-bsfs disable all bitstream filters" --disable-bsf=NAME disable bitstream filter NAME
echo " --enable-protocol=NAME enable protocol NAME" --disable-bsfs disable all bitstream filters
echo " --disable-protocol=NAME disable protocol NAME" --enable-protocol=NAME enable protocol NAME
echo " --disable-protocols disable all protocols" --disable-protocol=NAME disable protocol NAME
echo " --disable-indev=NAME disable input device NAME" --disable-protocols disable all protocols
echo " --disable-outdev=NAME disable output device NAME" --disable-indev=NAME disable input device NAME
echo " --disable-indevs disable input devices" --disable-outdev=NAME disable output device NAME
echo " --disable-outdevs disable output devices" --disable-indevs disable input devices
echo " --disable-devices disable all devices" --disable-outdevs disable output devices
echo " --enable-filter=NAME enable filter NAME" --disable-devices disable all devices
echo " --disable-filter=NAME disable filter NAME" --enable-filter=NAME enable filter NAME
echo " --disable-filters disable all filters" --disable-filter=NAME disable filter NAME
echo " --list-decoders show all available decoders" --disable-filters disable all filters
echo " --list-encoders show all available encoders" --list-decoders show all available decoders
echo " --list-hwaccels show all available hardware accelerators" --list-encoders show all available encoders
echo " --list-muxers show all available muxers" --list-hwaccels show all available hardware accelerators
echo " --list-demuxers show all available demuxers" --list-muxers show all available muxers
echo " --list-parsers show all available parsers" --list-demuxers show all available demuxers
echo " --list-protocols show all available protocols" --list-parsers show all available parsers
echo " --list-bsfs show all available bitstream filters" --list-protocols show all available protocols
echo " --list-indevs show all available input devices" --list-bsfs show all available bitstream filters
echo " --list-outdevs show all available output devices" --list-indevs show all available input devices
echo " --list-filters show all available filters" --list-outdevs show all available output devices
echo --list-filters show all available filters
echo "External library support:"
echo " --enable-avisynth enable reading of AVISynth script files [no]" External library support:
echo " --enable-bzlib enable bzlib [autodetect]" --enable-avisynth enable reading of AVISynth script files [no]
echo " --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]" --enable-bzlib enable bzlib [autodetect]
echo " --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]" --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]
echo " --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394" --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
echo " and libraw1394 [no]" --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394
echo " --enable-libdirac enable Dirac support via libdirac [no]" and libraw1394 [no]
echo " --enable-libfaac enable FAAC support via libfaac [no]" --enable-libdirac enable Dirac support via libdirac [no]
echo " --enable-libfaad enable FAAD support via libfaad [no]" --enable-libfaac enable FAAC support via libfaac [no]
echo " --enable-libfaadbin open libfaad.so.0 at runtime [no]" --enable-libfaad enable FAAD support via libfaad [no]
echo " --enable-libgsm enable GSM support via libgsm [no]" --enable-libfaadbin open libfaad.so.0 at runtime [no]
echo " --enable-libmp3lame enable MP3 encoding via libmp3lame [no]" --enable-libgsm enable GSM support via libgsm [no]
echo " --enable-libnut enable NUT (de)muxing via libnut," --enable-libmp3lame enable MP3 encoding via libmp3lame [no]
echo " native (de)muxer exists [no]" --enable-libnut enable NUT (de)muxing via libnut,
echo " --enable-libopenjpeg enable JPEG 2000 decoding via OpenJPEG [no]" native (de)muxer exists [no]
echo " --enable-libschroedinger enable Dirac support via libschroedinger [no]" --enable-libopenjpeg enable JPEG 2000 decoding via OpenJPEG [no]
echo " --enable-libspeex enable Speex decoding via libspeex [no]" --enable-libschroedinger enable Dirac support via libschroedinger [no]
echo " --enable-libtheora enable Theora encoding via libtheora [no]" --enable-libspeex enable Speex decoding via libspeex [no]
echo " --enable-libvorbis enable Vorbis encoding via libvorbis," --enable-libtheora enable Theora encoding via libtheora [no]
echo " native implementation exists [no]" --enable-libvorbis enable Vorbis encoding via libvorbis,
echo " --enable-libx264 enable H.264 encoding via x264 [no]" native implementation exists [no]
echo " --enable-libxvid enable Xvid encoding via xvidcore," --enable-libx264 enable H.264 encoding via x264 [no]
echo " native MPEG-4/Xvid encoder exists [no]" --enable-libxvid enable Xvid encoding via xvidcore,
echo " --enable-mlib enable Sun medialib [no]" native MPEG-4/Xvid encoder exists [no]
echo " --enable-zlib enable zlib [autodetect]" --enable-mlib enable Sun medialib [no]
echo "" --enable-zlib enable zlib [autodetect]
echo "Advanced options (experts only):"
echo " --source-path=PATH path to source code [$source_path]" Advanced options (experts only):
echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]" --source-path=PATH path to source code [$source_path]
echo " --enable-cross-compile assume a cross-compiler is used" --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]
echo " --sysroot=PATH root of cross-build tree" --enable-cross-compile assume a cross-compiler is used
echo " --sysinclude=PATH location of cross-build system headers" --sysroot=PATH root of cross-build tree
echo " --target-os=OS compiler targets OS [$target_os]" --sysinclude=PATH location of cross-build system headers
echo " --target-exec=CMD command to run executables on target" --target-os=OS compiler targets OS [$target_os]
echo " --target-path=DIR path to view of build directory on target" --target-exec=CMD command to run executables on target
echo " --nm=NM use nm tool" --target-path=DIR path to view of build directory on target
echo " --as=AS use assembler AS [$as_default]" --nm=NM use nm tool
echo " --cc=CC use C compiler CC [$cc_default]" --as=AS use assembler AS [$as_default]
echo " --ld=LD use linker LD" --cc=CC use C compiler CC [$cc_default]
echo " --host-cc=HOSTCC use host C compiler HOSTCC" --ld=LD use linker LD
echo " --host-cflags=HCFLAGS use HCFLAGS when compiling for host" --host-cc=HOSTCC use host C compiler HOSTCC
echo " --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host" --host-cflags=HCFLAGS use HCFLAGS when compiling for host
echo " --host-libs=HLIBS use libs HLIBS when linking for host" --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host
echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]" --host-libs=HLIBS use libs HLIBS when linking for host
echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]" --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]
echo " --extra-libs=ELIBS add ELIBS [$ELIBS]" --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]
echo " --extra-version=STRING version string suffix []" --extra-libs=ELIBS add ELIBS [$ELIBS]
echo " --build-suffix=SUFFIX library name suffix []" --extra-version=STRING version string suffix []
echo " --arch=ARCH select architecture [$arch]" --build-suffix=SUFFIX library name suffix []
echo " --cpu=CPU select the minimum required CPU (affects" --arch=ARCH select architecture [$arch]
echo " instruction selection, may crash on older CPUs)" --cpu=CPU select the minimum required CPU (affects
echo " --enable-powerpc-perf enable performance report on PPC" instruction selection, may crash on older CPUs)
echo " (requires enabling PMC)" --enable-powerpc-perf enable performance report on PPC
echo " --disable-altivec disable AltiVec optimizations" (requires enabling PMC)
echo " --disable-amd3dnow disable 3DNow! optimizations" --disable-altivec disable AltiVec optimizations
echo " --disable-amd3dnowext disable 3DNow! extended optimizations" --disable-amd3dnow disable 3DNow! optimizations
echo " --disable-mmx disable MMX optimizations" --disable-amd3dnowext disable 3DNow! extended optimizations
echo " --disable-mmx2 disable MMX2 optimizations" --disable-mmx disable MMX optimizations
echo " --disable-sse disable SSE optimizations" --disable-mmx2 disable MMX2 optimizations
echo " --disable-ssse3 disable SSSE3 optimizations" --disable-sse disable SSE optimizations
echo " --disable-armv5te disable armv5te optimizations" --disable-ssse3 disable SSSE3 optimizations
echo " --disable-armv6 disable armv6 optimizations" --disable-armv5te disable armv5te optimizations
echo " --disable-armv6t2 disable armv6t2 optimizations" --disable-armv6 disable armv6 optimizations
echo " --disable-armvfp disable ARM VFP optimizations" --disable-armv6t2 disable armv6t2 optimizations
echo " --disable-iwmmxt disable iwmmxt optimizations" --disable-armvfp disable ARM VFP optimizations
echo " --disable-mmi disable MMI optimizations" --disable-iwmmxt disable iwmmxt optimizations
echo " --disable-neon disable neon optimizations" --disable-mmi disable MMI optimizations
echo " --disable-vis disable VIS optimizations" --disable-neon disable neon optimizations
echo " --disable-yasm disable use of yasm assembler" --disable-vis disable VIS optimizations
echo " --enable-pic build position-independent code" --disable-yasm disable use of yasm assembler
echo --enable-pic build position-independent code
echo "Developer options (useful when working on FFmpeg itself):"
echo " --disable-debug disable debugging symbols" Developer options (useful when working on FFmpeg itself):
echo " --enable-debug=LEVEL set the debug level [$debuglevel]" --disable-debug disable debugging symbols
echo " --enable-gprof enable profiling with gprof [$gprof]" --enable-debug=LEVEL set the debug level [$debuglevel]
echo " --disable-optimizations disable compiler optimizations" --enable-gprof enable profiling with gprof [$gprof]
echo " --enable-extra-warnings enable more compiler warnings" --disable-optimizations disable compiler optimizations
echo " --disable-stripping disable stripping of executables and shared libraries" --enable-extra-warnings enable more compiler warnings
echo "" --disable-stripping disable stripping of executables and shared libraries
echo "NOTE: Object files are built at the place where configure is launched."
NOTE: Object files are built at the place where configure is launched.
EOF
exit 0 exit 0
} }