X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=21ea16170a384e29dd1a422e6210c7a11493b6c5;hb=f3f5eb6e70f46fb2f0c06efed198b31a72ee1f29;hp=eca3390d531301088116a8e602ad03a27d09016a;hpb=bdefad7366d27561ad863488cffa9184639e2921;p=ffmpeg diff --git a/configure b/configure index eca3390d531..21ea16170a3 100755 --- a/configure +++ b/configure @@ -162,6 +162,7 @@ Configuration options: External library support: --enable-avisynth enable reading of AVISynth script files [no] --enable-bzlib enable bzlib [autodetect] + --enable-frei0r enable frei0r video filtering --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no] --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no] --enable-libopencv enable video filtering via libopencv [no] @@ -873,6 +874,7 @@ CONFIG_LIST=" ffprobe ffserver fft + frei0r golomb gpl gray @@ -1050,6 +1052,7 @@ HAVE_LIST=" poll_h setrlimit strerror_r + strtok_r struct_addrinfo struct_ipv6_mreq struct_sockaddr_in6 @@ -1395,7 +1398,10 @@ tcp_protocol_deps="network" udp_protocol_deps="network" # filters +blackframe_filter_deps="gpl" +frei0r_filter_deps="frei0r dlopen strtok_r" ocv_smooth_filter_deps="libopencv" +yadif_filter_deps="gpl" # libraries avdevice_deps="avcodec avformat" @@ -2599,14 +2605,23 @@ EOF check_asm bswap '"bswap %%eax" ::: "%eax"' - YASMFLAGS="-f $objformat" - enabled x86_64 && append YASMFLAGS "-m amd64" - enabled pic && append YASMFLAGS "-DPIC" - test -n "$extern_prefix" && append YASMFLAGS "-DPREFIX" - case "$objformat" in - elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; - esac if ! disabled_any asm mmx yasm; then + if check_cmd $yasmexe --version; then + enabled x86_64 && yasm_extra="-m amd64" + yasm_debug="-g dwarf2" + elif check_cmd nasm -v; then + yasmexe=nasm + yasm_debug="-g -F dwarf" + enabled x86_64 && test "$objformat" = elf && objformat=elf64 + fi + + YASMFLAGS="-f $objformat $yasm_extra" + enabled pic && append YASMFLAGS "-DPIC" + test -n "$extern_prefix" && append YASMFLAGS "-DPREFIX" + case "$objformat" in + elf*) enabled debug && append YASMFLAGS $yasm_debug ;; + esac + check_yasm "pabsw xmm0, xmm0" && enable yasm || die "yasm not found, use --disable-yasm for a crippled build" fi @@ -2647,6 +2662,7 @@ check_func mkstemp check_func ${malloc_prefix}posix_memalign && enable posix_memalign check_func setrlimit check_func strerror_r +check_func strtok_r check_func_headers io.h setmode check_func_headers lzo/lzo1x.h lzo1x_999_compress check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi @@ -2720,6 +2736,7 @@ check_mathfunc truncf # these are off by default, so fail if requested and not available enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lavifil32 +enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; } enabled libdirac && add_cflags $(pkg-config --cflags dirac) && require libdirac libdirac_decoder/dirac_parser.h dirac_decoder_init $(pkg-config --libs dirac) && require libdirac libdirac_encoder/dirac_encoder.h dirac_encoder_init $(pkg-config --libs dirac) @@ -3012,6 +3029,7 @@ echo "threading support ${thread_type-no}" echo "SDL support ${sdl-no}" echo "Sun medialib support ${mlib-no}" echo "AVISynth enabled ${avisynth-no}" +echo "frei0r enabled ${frei0r-no}" echo "libdc1394 support ${libdc1394-no}" echo "libdirac enabled ${libdirac-no}" echo "libfaac enabled ${libfaac-no}" @@ -3066,6 +3084,7 @@ if enabled source_path_used; then libavcore libavdevice libavfilter + libavfilter/$arch libavformat libavutil libavutil/$arch @@ -3085,6 +3104,7 @@ if enabled source_path_used; then libavcore/Makefile libavdevice/Makefile libavfilter/Makefile + libavfilter/${arch}/Makefile libavformat/Makefile libavutil/Makefile libpostproc/Makefile