… | |
… | |
565 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
565 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
566 | if test x$support_xim = xyes; then |
566 | if test x$support_xim = xyes; then |
567 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
567 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
568 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
568 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
569 | #include <stdlib.h> |
569 | #include <stdlib.h> |
570 | main() { |
570 | int main() { |
571 | char *p; |
571 | char *p; |
572 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
572 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
573 | exit (XSupportsLocale() ? 0 : 1); |
573 | exit (XSupportsLocale() ? 0 : 1); |
574 | else |
574 | else |
575 | exit (1);}]])],[dnl |
575 | exit (1);}]])],[dnl |
576 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
576 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
577 | :])]) |
577 | :])]) |
578 | if test x$rxvt_cv_func_xlocale = xyes; then |
578 | if test x$rxvt_cv_func_xlocale = xyes; then |
579 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
579 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
580 | AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, |
580 | AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, |
581 | [AC_COMPILE_IFELSE([ |
581 | [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
582 | #include <X11/Xlib.h> |
582 | #include <X11/Xlib.h> |
583 | |
583 | |
584 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
584 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
585 | |
585 | |
586 | void f() { |
586 | void f() { |
587 | XIMCallback cb; |
587 | XIMCallback cb; |
588 | cb.callback = im_destroy_cb; |
588 | cb.callback = im_destroy_cb; |
589 | } |
589 | } |
590 | ],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) |
590 | ]])],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) |
591 | |
591 | |
592 | if test x$rxvt_cv_broken_ximcb = xyes; then |
592 | if test x$rxvt_cv_broken_ximcb = xyes; then |
593 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
593 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
594 | fi |
594 | fi |
595 | fi |
595 | fi |