1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

configure: fixes vda compilation issue.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Sebastien Zwickert 2011-11-04 20:34:52 +01:00 committed by Michael Niedermayer
parent f5cd136f2b
commit 38a444e05d

8
configure vendored
View File

@ -2959,7 +2959,6 @@ check_func_headers windows.h MapViewOfFile
check_func_headers windows.h VirtualAlloc
check_header dlfcn.h
check_header VideoDecodeAcceleration/VDADecoder.h
check_header dxva2api.h -D_WIN32_WINNT=0x0600
check_header libcrystalhd/libcrystalhd_if.h
check_header malloc.h
@ -2975,10 +2974,13 @@ check_header X11/extensions/XvMClib.h
disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib
disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
# adds ldflags for VDA module
if enabled vda; then
# check for VDA header
if ! disabled vda; then
if check_header VideoDecodeAcceleration/VDADecoder.h; then
enable vda
add_ldflags -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore
fi
fi
# check for some common methods of building with pthread support
# do this before the optional library checks as some of them require pthreads