summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-23 14:43:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-23 14:46:48 +0100
commit3e641b4842b8b5f6592991479d19f1a7ce846308 (patch)
tree25bee33d11ceddf0ee1758dd8cf5763764d5fc80 /configure
parent62e10c375968d9cbbe2a0bc321e00eef52d32917 (diff)
parent7671dd7cd7d51bbd637cc46d8f104a141bc355ea (diff)
downloadffmpeg-3e641b4842b8b5f6592991479d19f1a7ce846308.tar.gz
Merge commit '7671dd7cd7d51bbd637cc46d8f104a141bc355ea'
* commit '7671dd7cd7d51bbd637cc46d8f104a141bc355ea': avconv: add support for VDPAU decoding Conflicts: Changelog Makefile configure ffmpeg.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index e4eb01cc32..1e138fa9dc 100755
--- a/configure
+++ b/configure
@@ -1559,11 +1559,13 @@ HAVE_LIST="
threads
unistd_h
usleep
+ vdpau_x11
vfp_args
VirtualAlloc
windows_h
winsock2_h
xform_asm
+ xlib
xmm_clobbers
"
@@ -4426,10 +4428,12 @@ if enabled libcdio; then
die "ERROR: libcdio-paranoia not found"
fi
+check_lib X11/Xlib.h XOpenDisplay -lX11 && enable xlib
+
enabled x11grab &&
-require X11 X11/Xlib.h XOpenDisplay -lX11 &&
require Xext X11/extensions/XShm.h XShmCreateImage -lXext &&
-require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes
+require Xfixes X11/extensions/Xfixes.h XFixesGetCursorImage -lXfixes &&
+{ enabled xlib || die "ERROR: Xlib not found"; }
enabled vaapi &&
check_lib va/va.h vaInitialize -lva ||
@@ -4439,6 +4443,10 @@ enabled vdpau &&
check_cpp_condition vdpau/vdpau.h "defined VDP_DECODER_PROFILE_MPEG4_PART2_ASP" ||
disable vdpau
+enabled vdpau && enabled xlib &&
+ check_lib2 "vdpau/vdpau.h vdpau/vdpau_x11.h" vdp_device_create_x11 -lvdpau &&
+ enable vdpau_x11
+
# Funny iconv installations are not unusual, so check it after all flags have been set
disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -liconv || disable iconv