Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 3090dcafac7c8080091b5e3e3720209c65251a1a Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard@openedhand.com> |
| 3 | Date: Mon, 22 May 2006 22:15:57 +0000 |
| 4 | Subject: [PATCH] add "-disable-xkb" option |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Rebase for 1.2.1 by: Yu Ke <ke.yu@intel.com> |
| 9 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 10 | --- |
| 11 | configure.ac | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | diff --git a/configure.ac b/configure.ac |
| 15 | index e7c2bdf..8e1ed5e 100644 |
| 16 | --- a/configure.ac |
| 17 | +++ b/configure.ac |
| 18 | @@ -52,11 +52,15 @@ PKG_CHECK_MODULES(SET_XEXT, xext, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | 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 Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 32 | AC_ARG_WITH(xf86misc, AS_HELP_STRING([--with-xf86misc],[Enable xf86misc support.]), |
| 33 | [USE_XF86MISC="$withval"], [USE_XF86MISC="no"]) |