summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-07-12 09:46:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-07-13 12:28:41 +1000
commit13d1e26d696c5113a20dfc2f56c03ddb837a2eac (patch)
tree35813feb77c99c49552119759c4c6bebb5ff60ba /configure.ac
parente03ecc3e00b411108449923cf006251b54f91c26 (diff)
Check for Xwayland and print a warning
Running setxkbmap isn't supported by Xwayland, so let's warn the user that this won't work. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d5733ff..9b475d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,7 +47,8 @@ AC_ARG_WITH(xkb-config-root,
AC_SUBST([XKBCONFIGROOT])
# Checks for pkg-config packages
-PKG_CHECK_MODULES(SETXKBMAP, xkbfile x11)
+# xrandr is needed for the XWayland check
+PKG_CHECK_MODULES(SETXKBMAP, xkbfile x11 xrandr)
# Allow checking code with lint, sparse, etc.
XORG_WITH_LINT