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.73 by ayin, Sat Aug 4 10:46:22 2007 UTC vs.
Revision 1.74 by ayin, Sun Aug 26 18:47:40 2007 UTC

659dnl# this is a really hack test for some basic Xlocale stuff 659dnl# this is a really hack test for some basic Xlocale stuff
660ac_save_LIBS=$LIBS 660ac_save_LIBS=$LIBS
661ac_save_CFLAGS=$CFLAGS 661ac_save_CFLAGS=$CFLAGS
662CFLAGS="$CFLAGS $X_CFLAGS" 662CFLAGS="$CFLAGS $X_CFLAGS"
663LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 663LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
664AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
665[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
666#include <stdlib.h>
667main() {
668char *p;
669if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
670exit (XSupportsLocale() ? 0 : 1);
671else
672exit (1);}]])],[dnl
673 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
674 :])])
675if test x$support_xim = xyes; then 664if test x$support_xim = xyes; then
665 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
666 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
667 #include <stdlib.h>
668 main() {
669 char *p;
670 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
671 exit (XSupportsLocale() ? 0 : 1);
672 else
673 exit (1);}]])],[dnl
674 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
675 :])])
676 if test x$rxvt_cv_func_xlocale = xyes; then 676 if test x$rxvt_cv_func_xlocale = xyes; then
677 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) 677 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input)
678 AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
679 [AC_COMPILE_IFELSE([
680 #include <X11/Xlib.h>
681
682 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
683
684 void f() {
685 XIMCallback cb;
686 cb.callback = im_destroy_cb;
687 }
688 ],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
689
690 if test x$rxvt_broken_ximcb = xyes; then
691 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
692 fi
678 fi 693 fi
679fi 694fi
680 695
681AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, 696AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale,
682[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 697[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1
698if test x$rxvt_cv_func_nl_langinfo = xyes; then 713if test x$rxvt_cv_func_nl_langinfo = xyes; then
699 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 714 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
700fi 715fi
701 716
702SCM_RIGHTS_CHECK 717SCM_RIGHTS_CHECK
703
704AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
705[AC_COMPILE_IFELSE([
706#include <X11/Xlib.h>
707
708void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
709
710void f() {
711 XIMCallback cb;
712 cb.callback = im_destroy_cb;
713}
714],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
715
716if test x$rxvt_broken_ximcb = xyes; then
717 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
718fi
719 718
720PTY_CHECK 719PTY_CHECK
721 720
722TTY_GROUP_CHECK 721TTY_GROUP_CHECK
723 722

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines