blob: 0bb05a3b8861d4c4ae8a383e5aa4d5f9a58175ac [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 3090dcafac7c8080091b5e3e3720209c65251a1a Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard@openedhand.com>
3Date: Mon, 22 May 2006 22:15:57 +0000
4Subject: [PATCH] add "-disable-xkb" option
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6Upstream-Status: Pending
7
8Rebase for 1.2.1 by: Yu Ke <ke.yu@intel.com>
9
Andrew Geissler517393d2023-01-13 08:55:19 -060010---
11 configure.ac | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/configure.ac b/configure.ac
15index e7c2bdf..8e1ed5e 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -52,11 +52,15 @@ PKG_CHECK_MODULES(SET_XEXT, xext,
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 AC_CHECK_HEADERS([X11/extensions/dpms.h X11/extensions/MITMisc.h],,,[#include <X11/Xlib.h>])
20 CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"])
21
22+AC_ARG_ENABLE(xkb, AC_HELP_STRING([--disable-xkb], [Disable XKB support]),
23+ XKB="$enableval", XKB="yes")
24+if test "x$XKB" = "xyes" ; then
25 PKG_CHECK_MODULES(SET_XKB, x11,
26 [SAVE_CPPFLAGS="$CPPFLAGS"
27 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
28 AC_CHECK_HEADERS([X11/XKBlib.h],,,[#include <X11/Xlib.h>])
29 CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"])
30+fi
31
Andrew Geissler517393d2023-01-13 08:55:19 -060032 AC_ARG_WITH(xf86misc, AS_HELP_STRING([--with-xf86misc],[Enable xf86misc support.]),
33 [USE_XF86MISC="$withval"], [USE_XF86MISC="no"])