-# ------------------------------------------------------------------------------
-have_xkbcommon=no
-AC_ARG_ENABLE(xkbcommon, AS_HELP_STRING([--disable-xkbcommon], [disable xkbcommon keymap support]))
-if test "x$enable_xkbcommon" != "xno"; then
- PKG_CHECK_MODULES(XKBCOMMON, [ xkbcommon >= 0.3.0 ],
- [AC_DEFINE(HAVE_XKBCOMMON, 1, [Define if libxkbcommon is available]) have_xkbcommon=yes], have_xkbcommon=no)
- if test "x$have_xkbcommon" = xno -a "x$enable_xkbcommon" = xyes; then
- AC_MSG_ERROR([*** xkbcommon support requested but libraries not found])
- fi
-fi
-AM_CONDITIONAL(HAVE_XKBCOMMON, [test "$have_xkbcommon" = "yes"])
-