summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2011-03-30 09:21:04 +0200
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2011-03-30 16:15:29 +0200
commitdd950e2ebb08cadf8f5a5c42d6506a89abc06996 (patch)
tree0d848358cb3b62c2378c7e8c78d820feb8793222 /configure
parentf9c215e260d62c1213ea4f241b01ba4c4cf1c7b7 (diff)
vaapi: require version >= 0.32.0.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index df1b485a1f..9cf64d272a 100755
--- a/configure
+++ b/configure
@@ -2945,7 +2945,13 @@ check_func XOpenDisplay -lX11 &&
check_func XShmCreateImage -lX11 -lXext &&
check_func XFixesGetCursorImage -lX11 -lXext -lXfixes
-disabled vaapi || check_lib va/va.h vaInitialize -lva || disable vaapi
+if ! disabled vaapi; then
+ check_lib va/va.h vaInitialize -lva && {
+ check_cpp_condition va/va_version.h "VA_CHECK_VERSION(0,32,0)" ||
+ { echolog "Please upgrade to VA-API >= 0.32 if you would like VA-API support." &&
+ disable vaapi; }
+ } || disable vaapi
+fi
if ! disabled vdpau && enabled vdpau_vdpau_h; then
check_cpp_condition \