From 13f3b55881f2f97a5ab89eaaf1602c5c9fbaf054 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Tue, 3 Sep 2013 19:31:10 +0200 Subject: configure: improve wayland check --- configure | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ea8a3692da..f6705f89a8 100755 --- a/configure +++ b/configure @@ -1702,30 +1702,24 @@ depends_on_application_services(){ fi #if darwin +_wlver="1.2.90" echocheck "Wayland" -if test "$_wayland" != no; then - cat > $TMPC << EOF -#include -int main(int argc, char *argv[]) { - WL_SHM_FORMAT_C8; - return 0; -} -EOF - +if test "$_wayland" = yes || test "$_wayland" = auto; then _wayland="no" - pkg_config_add "wayland-client >= 1.2.0 wayland-cursor >= 1.2.0 xkbcommon >= 0.3.0" \ - && cc_check -lwayland-client && _wayland="yes" + pkg_config_add "wayland-client >= $_wlver wayland-cursor >= $_wlver xkbcommon >= 0.3.0" \ + && _wayland="yes" fi if test "$_wayland" = yes; then res_comment="" def_wayland='#define CONFIG_WAYLAND' vomodules="wayland $vomodules" else + res_comment="version >= $_wlver" def_wayland='#undef CONFIG_WAYLAND' - res_comment="" novomodules="wayland $novomodules" fi echores "$_wayland" +unset _wlver echocheck "X11 headers presence" _x11_headers="no" -- cgit v1.2.3