diff options
author | wm4 <wm4@nowhere> | 2014-12-21 21:55:36 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:14 +0900 |
commit | 899822c001eb9f0f46a9a25de3bd1dc03d45f724 (patch) | |
tree | 3fc0626100dcc689c91bfab76141bf254337579d | |
parent | a9db58cc3b39d78aa667c4d993f0f6dba71d809e (diff) | |
download | mpv-899822c001eb9f0f46a9a25de3bd1dc03d45f724.tar.bz2 mpv-899822c001eb9f0f46a9a25de3bd1dc03d45f724.tar.xz |
old-configure: fix disabling VAAPI GLX with --disable-gl
waf handles this correctly.
-rwxr-xr-x | old-configure | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/old-configure b/old-configure index 5fbbd6c5d4..71e08a9aed 100755 --- a/old-configure +++ b/old-configure @@ -607,13 +607,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' @@ -696,6 +691,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;" |