X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=8b7b99668089669861d5158aa32a2261ccd97355;hb=58ad770f9215a47e5b4d9f71e8f80bcd401bb418;hp=165484b4c33a0b4b35da9b0b4933aaedbebb685d;hpb=7c5bfe7add44be19301c29a11cde43e27d2f7272;p=ffmpeg diff --git a/configure b/configure index 165484b4c33..8b7b9966808 100755 --- a/configure +++ b/configure @@ -75,6 +75,7 @@ show_help(){ echo " --enable-shared build shared libraries [no]" echo " --enable-gpl allow use of GPL code, the resulting libs" echo " and binaries will be under GPL [no]" + echo " --enable-version3 upgrade (L)GPL to version 3 [no]" echo " --enable-nonfree allow use of nonfree code, the resulting libs" echo " and binaries will be unredistributable [no]" echo " --disable-ffmpeg disable ffmpeg build" @@ -92,6 +93,7 @@ show_help(){ echo " --disable-ipv6 disable IPv6 support [no]" echo " --disable-mpegaudio-hp faster (but less accurate) MPEG audio decoding [no]" echo " --enable-gray enable full grayscale support (slower color)" + echo " --disable-swscale-alpha disable alpha channel support in swscale" echo " --disable-fastdiv disable table-based division" echo " --enable-small optimize for size instead of speed" echo " --disable-aandct disable AAN DCT code" @@ -99,6 +101,9 @@ show_help(){ echo " --disable-golomb disable Golomb code" echo " --disable-mdct disable MDCT code" echo " --disable-rdft disable RDFT code" + echo " --disable-vaapi disable VAAPI code" + echo " --disable-vdpau disable VDPAU code" + echo " --enable-runtime-cpudetect detect cpu capabilities at runtime (bigger binary)" echo " --enable-hardcoded-tables use hardcoded tables instead of runtime generation" echo " --enable-memalign-hack emulate memalign, interferes with memory debuggers" echo " --enable-beos-netserver enable BeOS netserver" @@ -108,6 +113,9 @@ show_help(){ echo " --disable-decoder=NAME disable decoder NAME" echo " --enable-decoder=NAME enable decoder NAME" echo " --disable-decoders disable all decoders" + echo " --disable-hwaccel=NAME disable hwaccel NAME" + echo " --enable-hwaccel=NAME enable hwaccel NAME" + echo " --disable-hwaccels disable all hwaccels" echo " --disable-muxer=NAME disable muxer NAME" echo " --enable-muxer=NAME enable muxer NAME" echo " --disable-muxers disable all muxers" @@ -123,6 +131,8 @@ show_help(){ echo " --enable-protocol=NAME enable protocol NAME" echo " --disable-protocol=NAME disable protocol NAME" echo " --disable-protocols disable all protocols" + echo " --disable-indev=NAME disable input device NAME" + echo " --disable-outdev=NAME disable output device NAME" echo " --disable-indevs disable input devices" echo " --disable-outdevs disable output devices" echo " --disable-devices disable all devices" @@ -131,6 +141,7 @@ show_help(){ echo " --disable-filters disable all filters" echo " --list-decoders show all available decoders" echo " --list-encoders show all available encoders" + echo " --list-hwaccels show all available hardware accelerators" echo " --list-muxers show all available muxers" echo " --list-demuxers show all available demuxers" echo " --list-parsers show all available parsers" @@ -143,8 +154,8 @@ show_help(){ echo "External library support:" echo " --enable-avisynth enable reading of AVISynth script files [no]" echo " --enable-bzlib enable bzlib [autodetect]" - echo " --enable-libamr-nb enable libamr-nb floating point audio codec [no]" - echo " --enable-libamr-wb enable libamr-wb floating point audio codec [no]" + echo " --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no]" + echo " --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]" echo " --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394" echo " and libraw1394 [no]" echo " --enable-libdirac enable Dirac support via libdirac [no]" @@ -179,6 +190,7 @@ show_help(){ echo " --nm=NM use nm tool" echo " --as=AS use assembler AS [$as_default]" echo " --cc=CC use C compiler CC [$cc_default]" + echo " --ld=LD use linker LD" echo " --host-cc=HOSTCC use host C compiler HOSTCC" echo " --host-cflags=HCFLAGS use HCFLAGS when compiling for host" echo " --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host" @@ -240,6 +252,7 @@ echolog(){ die(){ echolog "$@" cat < $TMPC log_file $TMPC - check_cmd $cc $CFLAGS "$@" -c -o $TMPO $TMPC + check_cmd $cc $CPPFLAGS $CFLAGS "$@" -c -o $TMPO $TMPC } check_cpp(){ log check_cpp "$@" cat > $TMPC log_file $TMPC - check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC + check_cmd $cc $CPPFLAGS $CFLAGS "$@" -E -o $TMPO $TMPC } check_as(){ log check_as "$@" cat > $TMPC log_file $TMPC - check_cmd $as $CFLAGS "$@" -c -o $TMPO $TMPC + check_cmd $as $CPPFLAGS $ASFLAGS "$@" -c -o $TMPO $TMPC } check_asm(){ @@ -557,12 +584,21 @@ check_ld(){ for f; do test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f" done - check_cmd $cc $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs + check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $extralibs $libs +} + +check_cppflags(){ + log check_cppflags "$@" + set -- $($filter_cppflags "$@") + check_cc "$@" < $logfile +echo "# $0 $FFMPEG_CONFIGURATION" > $logfile set >> $logfile test -n "$cross_prefix" && enable cross_compile @@ -1326,7 +1421,6 @@ strip="${cross_prefix}${strip}" sysinclude_default="${sysroot}/usr/include" set_default cc nm sysinclude -as_default=$cc enabled cross_compile || host_cc_default=$cc set_default host_cc @@ -1385,6 +1479,10 @@ EOF die "Sanity test failed." fi +filter_cflags=echo +filter_cppflags=echo +filter_asflags=echo + if $cc --version 2>/dev/null | grep -qi gcc; then cc_type=gcc elif $cc --version 2>/dev/null | grep -q Intel; then @@ -1393,7 +1491,7 @@ elif $cc -v 2>&1 | grep -q xlc; then cc_type=xlc elif $cc -V 2>/dev/null | grep -q Compaq; then cc_type=ccc - DEPEND_CMD='$(CC) $(CFLAGS) -M $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"' + DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -M' debuglevel=3 add_ldflags -Wl,-z,now # calls to libots crash without this elif $cc --vsn 2>/dev/null | grep -q RVCT; then @@ -1411,17 +1509,103 @@ fi test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc" -set_default as +: ${as_default:=$cc} +: ${dep_cc_default:=$cc} +: ${ld_default:=$cc} +set_default as dep_cc ld + +add_cflags $extra_cflags +add_asflags $extra_cflags if test -n "$sysroot"; then case "$cc_type" in gcc) - add_cflags --sysroot="$sysroot" + add_cppflags --sysroot="$sysroot" add_ldflags --sysroot="$sysroot" ;; esac fi +# Add processor-specific flags +case $cpu in + 601|ppc601|PowerPC601) + cpuflags="-mcpu=601" + ;; + 603*|ppc603*|PowerPC603*) + cpuflags="-mcpu=603" + ;; + 604*|ppc604*|PowerPC604*) + cpuflags="-mcpu=604" + ;; + G3|g3|75*|ppc75*|PowerPC75*) + cpuflags="-mcpu=750 -mpowerpc-gfxopt" + ;; + G4|g4|745*|ppc745*|PowerPC745*) + cpuflags="-mcpu=7450 -mpowerpc-gfxopt" + ;; + 74*|ppc74*|PowerPC74*) + cpuflags="-mcpu=7400 -mpowerpc-gfxopt" + ;; + G5|g5|970|ppc970|PowerPC970|power4*|Power4*) + cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64" + ;; + Cell|CELL|cell) + cpuflags="-mcpu=cell" + enable ldbrx + ;; + # targets that do NOT support conditional mov (cmov) + i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) + cpuflags="-march=$cpu" + disable cmov + ;; + # targets that do support conditional mov (cmov) + i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2) + cpuflags="-march=$cpu" + enable cmov + enable fast_cmov + ;; + # targets that do support conditional mov but on which it's slow + pentium4|pentium4m|prescott|nocona) + cpuflags="-march=$cpu" + enable cmov + disable fast_cmov + ;; + sparc64) + cpuflags="-mcpu=v9" + ;; + arm11*|cortex*) + cpuflags="-mcpu=$cpu" + enable fast_unaligned + ;; + armv[67]*) + cpuflags="-march=$cpu" + enable fast_unaligned + ;; + armv*) + cpuflags="-march=$cpu" + ;; + arm*) + cpuflags="-mcpu=$cpu" + ;; + ev4|ev45|ev5|ev56|pca56|ev6|ev67) + enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu" + ;; + bf*) + cpuflags="-mcpu=$cpu" + ;; + mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef]) + cpuflags="-march=$cpu" + ;; + generic) + ;; + *) + echo "WARNING: Unknown CPU \"$cpu\", ignored." + ;; +esac + +add_cflags $cpuflags +add_asflags $cpuflags + # compiler sanity check check_exec < EOF -check_cc -D_LARGEFILE_SOURCE < EOF @@ -1469,6 +1654,7 @@ case "$arch" in ;; mips64) arch="mips" + subarch="mips64" enable fast_64bit ;; parisc|hppa) @@ -1484,6 +1670,7 @@ case "$arch" in ;; ppc64) arch="ppc" + subarch="ppc64" enable fast_64bit enable fast_unaligned ;; @@ -1528,7 +1715,8 @@ case $target_os in beos|haiku|zeta) prefix_default="$HOME/config" # helps building libavcodec - add_cflags -DPIC -fomit-frame-pointer + add_cppflags -DPIC + add_cflags -fomit-frame-pointer # 3 gcc releases known for BeOS, each with ugly bugs gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" case "$gcc_version" in @@ -1555,28 +1743,28 @@ case $target_os in FFSERVERLDFLAGS="" SHFLAGS='-shared -Wl,-h,$$(@F)' network_extralibs="-lsocket -lnsl" - add_cflags -D__EXTENSIONS__ + add_cppflags -D__EXTENSIONS__ ;; netbsd) - oss_demuxer_extralibs="-lossaudio" - oss_muxer_extralibs="-lossaudio" + oss_indev_extralibs="-lossaudio" + oss_outdev_extralibs="-lossaudio" ;; openbsd) - disable need_memalign + enable malloc_aligned LIBOBJFLAGS='$(PIC)' SHFLAGS='-shared' - oss_demuxer_extralibs="-lossaudio" - oss_muxer_extralibs="-lossaudio" + oss_indev_extralibs="-lossaudio" + oss_outdev_extralibs="-lossaudio" ;; - freebsd) - disable need_memalign + freebsd|dragonfly) + enable malloc_aligned ;; bsd/os) osextralibs="-lpoll -lgnugetopt" strip="strip -d" ;; darwin) - disable need_memalign + enable malloc_aligned SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress' strip="strip -x" FFLDFLAGS="-Wl,-dynamic,-search_paths_first" @@ -1591,8 +1779,10 @@ case $target_os in target_os=mingw32 LIBTARGET=i386 if enabled x86_64; then - disable need_memalign + enable malloc_aligned LIBTARGET=x64 + elif enabled arm; then + LIBTARGET=arm fi shlibdir_default="$bindir_default" disable ffserver @@ -1602,17 +1792,20 @@ case $target_os in SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' SLIB_EXTRA_CMD='-lib.exe /machine:$(LIBTARGET) /def:$$(@:$(SLIBSUF)=.def) /out:$(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)' SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"; \ - install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"' + install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"; \ + install -d "$(LIBDIR)"; \ + install -m 644 $(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) "$(LIBDIR)/lib$(SLIBNAME:$(SLIBSUF)=.dll.a)"' SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"' - SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base' + SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--out-implib,$(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base' objformat="win32" enable dos_paths + check_cflags -fno-common if ! enabled x86_64; then check_cpp_condition _mingw.h "(__MINGW32_MAJOR_VERSION > 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || die "ERROR: MinGW runtime version must be >= 3.15." - enabled_any avisynth vfwcap_demuxer && + enabled_any avisynth vfwcap_indev && { check_cpp_condition w32api.h "(__W32API_MAJOR_VERSION > 3) || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION >= 13)" || - die "ERROR: avisynth and vfwcap_demuxer require w32api version 3.13 or later."; } + die "ERROR: avisynth and vfwcap_indev require w32api version 3.13 or later."; } fi ;; cygwin*) @@ -1625,6 +1818,7 @@ case $target_os in SHFLAGS='-shared -Wl,--enable-auto-image-base' objformat="win32" enable dos_paths + check_cflags -fno-common ;; *-dos|freedos|opendos) disable ffplay ffserver @@ -1663,6 +1857,10 @@ case $target_os in SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib' enable dos_paths ;; + gnu/kfreebsd) + ;; + gnu) + ;; *) die "Unknown OS '$target_os'." @@ -1705,26 +1903,24 @@ EOF fi -if ! enabled gpl; then - die_gpl_disabled(){ - name=$1 - shift - enabled_any $@ && die "$name is under GPL and --enable-gpl is not specified." - } - die_gpl_disabled "The Postprocessing code" postproc - die_gpl_disabled "libx264" libx264 - die_gpl_disabled "libxvidcore" libxvid - die_gpl_disabled "FAAD2" libfaad2 - die_gpl_disabled "The X11 grabber" x11grab -fi +die_license_disabled() { + enabled $1 || { enabled $2 && die "$2 is $1 and --enable-$1 is not specified."; } +} -if ! enabled nonfree && enabled_any libamr_nb libamr_wb; then - die "libamr is nonfree and --enable-nonfree is not specified." -fi +die_license_disabled gpl libfaad2 +die_license_disabled gpl libx264 +die_license_disabled gpl libxvid +die_license_disabled gpl postproc +die_license_disabled gpl x11grab -check_deps $ARCH_EXT_LIST +die_license_disabled nonfree libfaac + +die_license_disabled version3 libopencore_amrnb +die_license_disabled version3 libopencore_amrwb -test -z "$need_memalign" && need_memalign="$mmx" +enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; } + +check_deps $ARCH_EXT_LIST #Darwin CC versions if test $target_os = darwin; then @@ -1740,85 +1936,6 @@ fi disabled optimizations || check_cflags -fomit-frame-pointer -# Add processor-specific flags -if test $cpu != "generic"; then - warn_altivec(){ - $1 altivec && echo "WARNING: Tuning for $2 but AltiVec $1."; - } - case $cpu in - 601|ppc601|PowerPC601) - add_cflags -mcpu=601 - warn_altivec enabled PPC601 - ;; - 603*|ppc603*|PowerPC603*) - add_cflags -mcpu=603 - warn_altivec enabled PPC603 - ;; - 604*|ppc604*|PowerPC604*) - add_cflags -mcpu=604 - warn_altivec enabled PPC604 - ;; - G3|g3|75*|ppc75*|PowerPC75*) - add_cflags -mcpu=750 -mpowerpc-gfxopt - warn_altivec enabled PPC75x - ;; - G4|g4|745*|ppc745*|PowerPC745*) - add_cflags -mcpu=7450 -mpowerpc-gfxopt - warn_altivec disabled PPC745x - ;; - 74*|ppc74*|PowerPC74*) - add_cflags -mcpu=7400 -mpowerpc-gfxopt - warn_altivec disabled PPC74xx - ;; - G5|g5|970|ppc970|PowerPC970|power4*|Power4*) - add_cflags -mcpu=970 -mpowerpc-gfxopt -mpowerpc64 - warn_altivec disabled PPC970 - enable ppc64 - ;; - Cell|CELL|cell) - add_cflags -mcpu=cell - warn_altivec disabled Cell - enable ppc64 - ;; - # targets that do NOT support conditional mov (cmov) - i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) - add_cflags -march=$cpu - disable cmov - ;; - # targets that do support conditional mov (cmov) - i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2) - add_cflags -march=$cpu - enable cmov - enable fast_cmov - ;; - # targets that do support conditional mov but on which it's slow - pentium4|pentium4m|prescott|nocona) - add_cflags -march=$cpu - enable cmov - disable fast_cmov - ;; - sparc64) - add_cflags -mcpu=v9 - ;; - arm11*|cortex*) - add_cflags -mcpu=$cpu - enable fast_unaligned - ;; - armv*) - add_cflags -march=$cpu - ;; - arm*) - add_cflags -mcpu=$cpu - ;; - ev4|ev45|ev5|ev56|pca56|ev6|ev67) - enabled ccc && add_cflags -arch $cpu || add_cflags -mcpu=$cpu - ;; - *) - echo "WARNING: Unknown CPU \"$cpu\", ignored." - ;; - esac -fi - check_cc < -int main(void) { return ($func(3.999f) > 0)?0:1; } -EOF -done +check_func llrint +check_func log2 +check_func lrint +check_func lrintf +check_func round +check_func roundf +check_func truncf # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32 -enabled libamr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm -enabled libamr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm enabled libdirac && add_cflags $(pkg-config --cflags dirac) && require libdirac libdirac_decoder/dirac_parser.h dirac_decoder_init -ldirac_decoder && require libdirac libdirac_encoder/dirac_encoder.h dirac_encoder_init -ldirac_encoder @@ -2014,6 +2130,8 @@ enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad enabled libgsm && require libgsm gsm.h gsm_create -lgsm enabled libmp3lame && require libmp3lame lame/lame.h lame_init -lmp3lame -lm enabled libnut && require libnut libnut.h nut_demuxer_init -lnut +enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb -lm +enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -lm enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg enabled libschroedinger && add_cflags $(pkg-config --cflags schroedinger-1.0) && require libschroedinger schroedinger/schro.h schro_init $(pkg-config --libs schroedinger-1.0) @@ -2043,8 +2161,9 @@ void foo(char * $restrict_keyword p); EOF done -########################################## -# SDL check +check_cc < /dev/null 2>&1 && enable texi2html || disable texi2html -########################################## -# Network check - if enabled network; then check_type "sys/types.h sys/socket.h" socklen_t # Prefer arpa/inet.h over winsock2 if check_header arpa/inet.h ; then check_func closesocket elif check_header winsock2.h ; then - network_extralibs="-lws2_32" + check_func_headers winsock2.h closesocket -lws2 && \ + network_extralibs="-lws2" || \ + { check_func_headers winsock2.h closesocket -lws2_32 && \ + network_extralibs="-lws2_32"; } check_type ws2tcpip.h socklen_t - check_func_headers winsock2.h closesocket + else + disable network fi fi -########################################## -# IPv6 check - enabled network && enabled ipv6 && check_ld < #include @@ -2124,9 +2241,10 @@ check_header dev/ic/bt8xx.h check_header sys/soundcard.h check_header soundcard.h -check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound +enabled alsa_indev || enabled alsa_outdev && check_lib2 alsa/asoundlib.h snd_pcm_htimestamp -lasound + +enabled jack_indev && check_lib2 jack/jack.h jack_client_open -ljack -# deal with the X11 frame grabber enabled x11grab && check_header X11/Xlib.h && check_header X11/extensions/XShm.h && @@ -2171,7 +2289,6 @@ fi check_cflags -fno-math-errno check_cflags -fno-signed-zeros -# add some flags for Intel C Compiler if enabled icc; then # Just warnings, no remarks check_cflags -w1 @@ -2195,6 +2312,8 @@ elif enabled ccc; then add_cflags -msg_disable nomainieee add_cflags -msg_disable ptrmismatch1 add_cflags -msg_disable unreachcode +elif enabled gcc; then + check_cflags -fno-tree-vectorize fi # PIC flags for shared library objects where they are needed @@ -2217,6 +2336,7 @@ check_asm asmalign_pot '".align 3"' enabled_any $DECODER_LIST && enable decoders enabled_any $ENCODER_LIST && enable encoders +enabled_any $HWACCEL_LIST && enable hwaccels enabled_any $BSF_LIST && enable bsfs enabled_any $DEMUXER_LIST && enable demuxers enabled_any $MUXER_LIST && enable muxers @@ -2232,6 +2352,7 @@ check_deps $CONFIG_LIST \ $HAVE_LIST \ $DECODER_LIST \ $ENCODER_LIST \ + $HWACCEL_LIST \ $PARSER_LIST \ $BSF_LIST \ $DEMUXER_LIST \ @@ -2253,6 +2374,7 @@ if test "$extra_version" != ""; then echo "version string suffix $extra_version" fi echo "big-endian ${bigendian-no}" +echo "runtime cpu detection ${runtime_cpudetect-no}" if enabled x86; then echo "yasm ${yasm-no}" echo "MMX enabled ${mmx-no}" @@ -2307,8 +2429,6 @@ if enabled sdl_too_old; then fi echo "Sun medialib support ${mlib-no}" echo "AVISynth enabled ${avisynth-no}" -echo "libamr-nb support ${libamr_nb-no}" -echo "libamr-wb support ${libamr_wb-no}" echo "libdc1394 support ${libdc1394-no}" echo "libdirac enabled ${libdirac-no}" echo "libfaac enabled ${libfaac-no}" @@ -2317,6 +2437,8 @@ echo "libfaad dlopened ${libfaadbin-no}" echo "libgsm enabled ${libgsm-no}" echo "libmp3lame enabled ${libmp3lame-no}" echo "libnut enabled ${libnut-no}" +echo "libopencore-amrnb support ${libopencore_amrnb-no}" +echo "libopencore-amrwb support ${libopencore_amrwb-no}" echo "libopenjpeg enabled ${libopenjpeg-no}" echo "libschroedinger enabled ${libschroedinger-no}" echo "libspeex enabled ${libspeex-no}" @@ -2328,7 +2450,7 @@ echo "zlib enabled ${zlib-no}" echo "bzlib enabled ${bzlib-no}" echo -for type in decoder encoder parser demuxer muxer protocol filter bsf indev outdev; do +for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do echo "Enabled ${type}s:" eval list=\$$(toupper $type)_LIST for part in $list; do @@ -2337,11 +2459,15 @@ for type in decoder encoder parser demuxer muxer protocol filter bsf indev outde echo done -license="LGPL" +license="LGPL version 2.1 or later" if enabled nonfree; then - license="unredistributable" + license="nonfree and unredistributable" +elif enabled gplv3; then + license="GPL version 3 or later" +elif enabled lgplv3; then + license="LGPL version 3 or later" elif enabled gpl; then - license="GPL" + license="GPL version 2 or later" fi echo "License: $license" @@ -2352,9 +2478,12 @@ echo "# Automatically generated by configure - do not modify!" > config.mak echo "/* Automatically generated by configure - do not modify! */" > $TMPH echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH echo "#define FFMPEG_CONFIG_H" >> $TMPH -echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH +echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH +echo "ifndef FFMPEG_CONFIG_MAK" >> config.mak +echo "FFMPEG_CONFIG_MAK=1" >> config.mak + echo "FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION" >> config.mak echo "prefix=$prefix" >> config.mak echo "LIBDIR=\$(DESTDIR)$libdir" >> config.mak @@ -2363,8 +2492,13 @@ echo "INCDIR=\$(DESTDIR)$incdir" >> config.mak echo "BINDIR=\$(DESTDIR)$bindir" >> config.mak echo "DATADIR=\$(DESTDIR)$datadir" >> config.mak echo "MANDIR=\$(DESTDIR)$mandir" >> config.mak +echo "SRC_PATH=\"$source_path\"" >> config.mak +echo "SRC_PATH_BARE=$source_path" >> config.mak +echo "BUILD_ROOT=\"$PWD\"" >> config.mak echo "CC=$cc" >> config.mak echo "AS=$as" >> config.mak +echo "LD=$ld" >> config.mak +echo "DEPCC=$dep_cc" >> config.mak echo "YASM=$yasmexe" >> config.mak echo "AR=$ar" >> config.mak echo "RANLIB=$ranlib" >> config.mak @@ -2373,7 +2507,10 @@ enabled stripping && echo "STRIP=$strip" >> config.mak || echo "STRIP=echo ignoring strip" >> config.mak -echo "OPTFLAGS=$CFLAGS" >> config.mak +echo "CPPFLAGS=$CPPFLAGS" >> config.mak +echo "CFLAGS=$CFLAGS" >> config.mak +echo "ASFLAGS=$ASFLAGS" >> config.mak +echo "CC_O=$CC_O" >> config.mak echo "LDFLAGS=$LDFLAGS" >> config.mak echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak echo "SHFLAGS=$SHFLAGS" >> config.mak @@ -2390,6 +2527,7 @@ echo "SLIBSUF=$SLIBSUF" >> config.mak echo "EXESUF=$EXESUF" >> config.mak echo "EXTRA_VERSION=$extra_version" >> config.mak echo "DEPEND_CMD=$DEPEND_CMD" >> config.mak +echo "DEPFLAGS=$DEPFLAGS" >> config.mak echo "HOSTCC=$host_cc" >> config.mak echo "HOSTCFLAGS=$host_cflags" >> config.mak echo "HOSTEXESUF=$HOSTEXESUF" >> config.mak @@ -2452,6 +2590,7 @@ print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ $CONFIG_EXTRA \ $DECODER_LIST \ $ENCODER_LIST \ + $HWACCEL_LIST \ $PARSER_LIST \ $BSF_LIST \ $DEMUXER_LIST \ @@ -2467,9 +2606,6 @@ if enabled small; then echo "#define av_always_inline" >> $TMPH fi -echo "SRC_PATH=\"$source_path\"" >> config.mak -echo "SRC_PATH_BARE=$source_path" >> config.mak -echo "BUILD_ROOT=\"$PWD\"" >> config.mak # Apparently it's not possible to portably echo a backslash. enabled asmalign_pot && @@ -2479,6 +2615,7 @@ enabled asmalign_pot && echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH +echo "endif # FFMPEG_CONFIG_MAK" >> config.mak # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. cmp -s $TMPH config.h && @@ -2504,6 +2641,11 @@ if enabled source_path_used; then libavutil \ libpostproc \ libswscale \ + libswscale/bfin \ + libswscale/mlib \ + libswscale/ppc \ + libswscale/sparc \ + libswscale/x86 \ tests \ tools \ "