Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | add "-disable-xkb" option |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Rebase for 1.2.1 by: Yu Ke <ke.yu@intel.com> |
| 6 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | Index: xset-1.2.3/configure.ac |
| 8 | =================================================================== |
| 9 | --- xset-1.2.3.orig/configure.ac |
| 10 | +++ xset-1.2.3/configure.ac |
| 11 | @@ -53,11 +53,15 @@ PKG_CHECK_MODULES(SET_XEXT, xext, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | AC_CHECK_HEADERS([X11/extensions/dpms.h X11/extensions/MITMisc.h],,,[#include <X11/Xlib.h>]) |
| 13 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) |
| 14 | |
| 15 | +AC_ARG_ENABLE(xkb, AC_HELP_STRING([--disable-xkb], [Disable XKB support]), |
| 16 | + XKB="$enableval", XKB="yes") |
| 17 | +if test "x$XKB" = "xyes" ; then |
| 18 | PKG_CHECK_MODULES(SET_XKB, x11, |
| 19 | [SAVE_CPPFLAGS="$CPPFLAGS" |
| 20 | CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS" |
| 21 | AC_CHECK_HEADERS([X11/XKBlib.h],,,[#include <X11/Xlib.h>]) |
| 22 | CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"]) |
| 23 | +fi |
| 24 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 25 | AC_ARG_WITH(xf86misc, AS_HELP_STRING([--without-xf86misc],[Disable xf86misc support.]), |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | [USE_XF86MISC="$withval"], [USE_XF86MISC="yes"]) |