diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 216702f377..822bbad073 100644 --- a/configure.in +++ b/configure.in @@ -112,6 +112,8 @@ AC_ARG_ENABLE(xim, [ --enable-xim support XIM [default=yes]], , enable_xim="yes") AC_ARG_ENABLE(xim_inst, [ --disable-xim-inst does not use xim instantiate callback], , enable_xim_inst="maybe") +AC_ARG_ENABLE(xkb, [ --enable-xkb support XKB [default=maybe]], + , enable_xkb="maybe") AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) AC_ARG_WITH(locale, [ --with-locale=LOCALE locale name you want to use ]) @@ -425,6 +427,20 @@ if test "x$gdktarget" = "xx11"; then fi fi + # Check for XKB support. + + if test "x$enable_xkb" = "xyes"; then + AC_MSG_WARN(XKB support explicitly enabled) + AC_DEFINE(HAVE_XKB) + elif test "x$enable_xkb" = "xmaybe"; then + AC_CHECK_LIB(X11, XkbQueryExtension, + AC_DEFINE(HAVE_XKB), + , + $x_libs) + else + AC_MSG_WARN(XKB support explicitly disabled) + fi + x_cflags="$X_CFLAGS" x_ldflags="$X_LDFLAGS $X_LIBS" |