summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-26 17:20:44 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-08-26 17:20:44 +0200
commit445f8bd29a8e32aa81dce105f464362963cad105 (patch)
tree97f037cdd08b2535c638ab93f43282bebc4f5339 /configure
parentbeab54506e61bc080880e827e351439f76542e68 (diff)
downloadmpv-445f8bd29a8e32aa81dce105f464362963cad105.tar.bz2
mpv-445f8bd29a8e32aa81dce105f464362963cad105.tar.xz
configure: move wayland-egl check
This makes it possible to build the shm backend when no EGL platform is available.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 576ef5bbdf..0a2aaee9a1 100755
--- a/configure
+++ b/configure
@@ -1705,7 +1705,7 @@ fi #if darwin
echocheck "Wayland"
if test "$_wayland" != no; then
_wayland="no"
- pkg_config_add "wayland-client >= 1.0.0 wayland-egl >= 9.0.0 wayland-cursor >= 1.0.0 xkbcommon >= 0.3.0" \
+ pkg_config_add "wayland-client >= 1.0.0 wayland-cursor >= 1.0.0 xkbcommon >= 0.3.0" \
&& _wayland="yes"
fi
if test "$_wayland" = yes; then
@@ -2046,7 +2046,8 @@ EOF
fi
done
fi
- if test "$_wayland" = yes && cc_check -DGL_WAYLAND -lGL -lEGL ; then
+ if test "$_wayland" = yes && cc_check -DGL_WAYLAND -lGL -lEGL &&
+ pkg_config_add "wayland-egl >= 9.0.0"; then
_gl=yes
_gl_wayland=yes
libs_mplayer="$libs_mplayer -lGL -lEGL"