[FFmpeg-cvslog] build: Detect blocks C language extension and add it as VDA dependency

Diego Biurrun git at videolan.org
Sat May 20 17:30:46 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Jan 25 18:40:51 2017 +0100| [6151e9128ce2a84a443c82b78f5b5cb364ba2ab4] | committer: Diego Biurrun

build: Detect blocks C language extension and add it as VDA dependency

Newer versions of OS X use the blocks extension in VDA-related headers.
Some compilers, like current gcc, do not support the blocks extension
and fail to compile code using those headers.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6151e9128ce2a84a443c82b78f5b5cb364ba2ab4
---

 configure | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 7570c0a388..04b19211cf 100755
--- a/configure
+++ b/configure
@@ -1639,6 +1639,7 @@ TOOLCHAIN_FEATURES="
     asm_mod_q
     attribute_may_alias
     attribute_packed
+    blocks_extension
     ebp_available
     ebx_available
     gnu_as
@@ -2136,7 +2137,7 @@ zmbv_encoder_deps="zlib"
 d3d11va_deps="d3d11_h dxva_h ID3D11VideoDecoder"
 dxva2_deps="dxva2api_h DXVA2_ConfigPictureDecode"
 dxva2_lib_deps="dxva2"
-vda_deps="VideoDecodeAcceleration_VDADecoder_h pthreads"
+vda_deps="VideoDecodeAcceleration_VDADecoder_h blocks_extension pthreads"
 vda_extralibs="-framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore"
 
 h263_vaapi_hwaccel_deps="vaapi"
@@ -4850,6 +4851,10 @@ check_disable_warning_headers -Wno-unused-variable
 
 check_objcflags -fobjc-arc && enable objc_arc
 
+check_cc <<EOF && enable blocks_extension
+void (^block)(void);
+EOF
+
 # add some linker flags
 check_ldflags -Wl,--warn-common
 check_ldflags -Wl,-rpath-link=libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample



More information about the ffmpeg-cvslog mailing list