From d9f448da02c24b23556d90758121f2f2131c84d3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Dec 2014 21:55:36 +0100 Subject: [PATCH] old-configure: fix disabling VAAPI GLX with --disable-gl waf handles this correctly. --- old-configure | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/old-configure b/old-configure index 6d00ff4946..4c0bb511fd 100755 --- a/old-configure +++ b/old-configure @@ -606,13 +606,8 @@ define_yes_no $_vaapi HAVE_VAAPI_HWACCEL if test "$_vaapi" = yes ; then check_pkg_config "VAAPI VPP" auto VAAPI_VPP 'libva >= 0.34.0' - - check_pkg_config "VAAPI GLX" auto VAAPI_GLX 'libva-glx >= 0.32.0' - _vaapi_glx=$(defretval) else check_yes_no no VAAPI_VPP - check_yes_no no VAAPI_GLX - _vaapi_glx=no fi check_pkg_config "Xinerama" $_xinerama XINERAMA 'xinerama' @@ -695,6 +690,10 @@ _vdpau_gl_x11=no check_yes_no $_vdpau_gl_x11 VDPAU_GL_X11 echores "$_vdpau_gl_x11" +_vaapi_glx=no +(test "$_gl_x11" = yes && test "$_vaapi" = yes) && _vaapi_glx=auto +check_pkg_config "VAAPI with OpenGL/X11" $_vaapi_glx VAAPI_GLX 'libva-glx >= 0.32.0' + check_pkg_config "SDL 2.0" $_sdl2 SDL2 'sdl2' check_statement_libs "OSS Audio" $_ossaudio OSS_AUDIO $_soundcard_header "int x = SNDCTL_DSP_SETFRAGMENT;"