ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.126 by sf-exg, Tue Jan 4 23:12:10 2011 UTC vs.
Revision 1.129 by sf-exg, Sat Jan 8 17:30:46 2011 UTC

563save_CFLAGS=$CFLAGS 563save_CFLAGS=$CFLAGS
564CFLAGS="$CFLAGS $X_CFLAGS" 564CFLAGS="$CFLAGS $X_CFLAGS"
565LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 565LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
566if test x$support_xim = xyes; then 566if 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([[
569 #include <X11/Xlib.h>
569 #include <stdlib.h> 570 #include <stdlib.h>
570 main() { 571 int main() {
571 char *p; 572 char *p;
572 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 573 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
573 exit (XSupportsLocale() ? 0 : 1); 574 exit (XSupportsLocale() ? 0 : 1);
574 else 575 else
575 exit (1);}]])],[dnl 576 exit (1);
577 }
576 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl 578 ]])],[rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[:])])
577 :])])
578 if test x$rxvt_cv_func_xlocale = xyes; then 579 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) 580 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, 581 AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb,
581 [AC_COMPILE_IFELSE([ 582 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
582 #include <X11/Xlib.h> 583 #include <X11/Xlib.h>
583 584
584 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); 585 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
585 586
586 void f() { 587 void f() {
587 XIMCallback cb; 588 XIMCallback cb;
588 cb.callback = im_destroy_cb; 589 cb.callback = im_destroy_cb;
589 } 590 }
590 ],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) 591 ]])],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)])
591 592
592 if test x$rxvt_cv_broken_ximcb = xyes; then 593 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.) 594 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
594 fi 595 fi
595 fi 596 fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines