# HG changeset patch # User Gerd Moellmann # Date 977225201 0 # Node ID d5251a5c10ef9e614c001d40d4e3a7ccae3988c5 # Parent 4e626e8c7eb7b3cfa624b52197381c7568f2a6c6 Test for XkbGetKeyboard with an AC_TRY_LINK whose source file includes XKBlib.h. On some broken Solaris systems, there is an XKBlib.h, reportedly, but header files included by XKBlib.h are missing. diff -r 4e626e8c7eb7 -r d5251a5c10ef configure.in --- a/configure.in Tue Dec 19 11:15:38 2000 +0000 +++ b/configure.in Tue Dec 19 11:26:41 2000 +0000 @@ -1632,8 +1632,20 @@ fi fi + # Reportedly, some broken Solaris systems have XKBlib.h but are missing + # header files included from there. + AC_MSG_CHECKING(for Xkb) + AC_TRY_LINK([#include +#include ], + [XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);], + emacs_xkb=yes, emacs_xkb=no) + AC_MSG_CHECKING($emacs_xkb) + if test $emacs_xkb = yes; then + AC_DEFINE(HAVE_XKBGETKEYBOARD) + fi + AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \ -XScreenNumberOfScreen XSetWMProtocols XkbGetKeyboard) +XScreenNumberOfScreen XSetWMProtocols) fi if test "${window_system}" = "x11"; then