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.125 by sf-exg, Tue Jan 4 10:01:53 2011 UTC vs.
Revision 1.128 by sf-exg, Wed Jan 5 17:41:24 2011 UTC

517 stdint.h \ 517 stdint.h \
518 wchar.h \ 518 wchar.h \
519 cwchar \ 519 cwchar \
520) 520)
521 521
522AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer,
523[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])])
524if test x$rxvt_cv_xpointer = xyes; then
525 AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef)
526fi
527
528AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, 522AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access,
529[AC_COMPILE_IFELSE( 523[AC_COMPILE_IFELSE(
530 [AC_LANG_PROGRAM([ 524 [AC_LANG_PROGRAM([
531#define XLIB_ILLEGAL_ACCESS 525#define XLIB_ILLEGAL_ACCESS
532#include <X11/Xlib.h> 526#include <X11/Xlib.h>
571LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 565LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
572if test x$support_xim = xyes; then 566if test x$support_xim = xyes; then
573 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, 567 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
574 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> 568 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
575 #include <stdlib.h> 569 #include <stdlib.h>
576 main() { 570 int main() {
577 char *p; 571 char *p;
578 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 572 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
579 exit (XSupportsLocale() ? 0 : 1); 573 exit (XSupportsLocale() ? 0 : 1);
580 else 574 else
581 exit (1);}]])],[dnl 575 exit (1);}]])],[dnl
582 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl 576 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
583 :])]) 577 :])])
584 if test x$rxvt_cv_func_xlocale = xyes; then 578 if test x$rxvt_cv_func_xlocale = xyes; then
585 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)
586 AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, 580 AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb,
587 [AC_COMPILE_IFELSE([ 581 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
588 #include <X11/Xlib.h> 582 #include <X11/Xlib.h>
589 583
590 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); 584 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
591 585
592 void f() { 586 void f() {
593 XIMCallback cb; 587 XIMCallback cb;
594 cb.callback = im_destroy_cb; 588 cb.callback = im_destroy_cb;
595 } 589 }
596 ],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) 590 ]])],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)])
597 591
598 if test x$rxvt_cv_broken_ximcb = xyes; then 592 if test x$rxvt_cv_broken_ximcb = xyes; then
599 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.)
600 fi 594 fi
601 fi 595 fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines