aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 41d4031811..02ba072c9a 100644
--- a/configure.in
+++ b/configure.in
@@ -808,9 +808,11 @@ if test "x$use_vaapi" != "xno"; then
fi
else
initial_val=$use_vaapi
- AC_CHECK_LIB([va], main,
- [AC_CHECK_LIB([va-glx], main,, use_vaapi=no, -lva)],
- [use_vaapi=no])
+ AC_CHECK_LIB([va-glx], main,, use_vaapi=no, -lva)
+ if test "x$use_vaapi" != "xno"; then
+ AC_CHECK_LIB([va], main,, use_vaapi=no)
+ fi
+
if test "x$use_vaapi" = "xno"; then
if test "x$initial_val" = "xyes"; then
AC_MSG_ERROR($vaapi_not_found)