From bc47801968fc20369e5794e5d403faf23a98d190 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 9 May 2014 13:53:52 +0200 Subject: [PATCH] configure: check for recent dxva2api headers with fixed COBJMACROS defines This fixes build failures on older mingw chains (before 2012). Signed-off-by: Michael Niedermayer --- configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e5ff72be86..34b161e007 100755 --- a/configure +++ b/configure @@ -1762,6 +1762,7 @@ HAVE_LIST=" $TYPES_LIST atomics_native dos_paths + dxva2api_cobj dxva2_lib libc_msvcrt libdc1394_1 @@ -4802,6 +4803,16 @@ require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes && check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs" +enabled dxva2api_h && + check_cc < +#include +#include +int main(void) { IDirectXVideoDecoder *o = NULL; IDirectXVideoDecoder_Release(o); return 0; } +EOF + enabled vaapi && check_lib va/va.h vaInitialize -lva || disable vaapi @@ -5046,7 +5057,7 @@ if test $target_os = "haiku"; then disable posix_memalign fi -enabled_all dxva2 CoTaskMemFree && +enabled_all dxva2 dxva2api_cobj CoTaskMemFree && prepend ffmpeg_libs $($ldflags_filter "-lole32") && enable dxva2_lib