… | |
… | |
525 | dnl# -------------------------------------------------------------------------- |
525 | dnl# -------------------------------------------------------------------------- |
526 | dnl# -------------------------------------------------------------------------- |
526 | dnl# -------------------------------------------------------------------------- |
527 | |
527 | |
528 | dnl# this is a really hack test for some basic Xlocale stuff |
528 | dnl# this is a really hack test for some basic Xlocale stuff |
529 | save_LIBS=$LIBS |
529 | save_LIBS=$LIBS |
530 | save_CFLAGS=$CFLAGS |
530 | save_CXXFLAGS=$CXXFLAGS |
531 | CFLAGS="$CFLAGS $X_CFLAGS" |
531 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
532 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
532 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
533 | if test x$support_xim = xyes; then |
533 | if test x$support_xim = xyes; then |
534 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
534 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
535 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
535 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
536 | #include <X11/Xlib.h> |
536 | #include <X11/Xlib.h> |
… | |
… | |
568 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
568 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
569 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
569 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
570 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
570 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
571 | fi |
571 | fi |
572 | LIBS=$save_LIBS |
572 | LIBS=$save_LIBS |
573 | CFLAGS=$save_CFLAGS |
573 | CXXFLAGS=$save_CXXFLAGS |
574 | |
574 | |
575 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
575 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
576 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
576 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
577 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
577 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
578 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
578 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |