Mercurial > emacs
comparison configure.in @ 52077:00e4f19cb4e2
(HAVE_XIM): Define if XIM is available.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 29 Jul 2003 17:41:12 +0000 |
parents | 766599ef3cf7 |
children | b65587ad3c5e |
comparison
equal
deleted
inserted
replaced
52076:039e1c55561e | 52077:00e4f19cb4e2 |
---|---|
1246 | 1246 |
1247 dnl checks for programs | 1247 dnl checks for programs |
1248 AC_PROG_LN_S | 1248 AC_PROG_LN_S |
1249 AC_PROG_CPP | 1249 AC_PROG_CPP |
1250 AC_PROG_INSTALL | 1250 AC_PROG_INSTALL |
1251 AC_PROG_GNU_LD | |
1251 if test "x$RANLIB" = x; then | 1252 if test "x$RANLIB" = x; then |
1252 AC_PROG_RANLIB | 1253 AC_PROG_RANLIB |
1253 fi | 1254 fi |
1254 AC_PATH_PROG(INSTALL_INFO, install-info) | 1255 AC_PATH_PROG(INSTALL_INFO, install-info) |
1255 AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) | 1256 AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) |
2064 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) | 2065 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) |
2065 USE_TOOLKIT_SCROLL_BARS=yes | 2066 USE_TOOLKIT_SCROLL_BARS=yes |
2066 fi | 2067 fi |
2067 fi | 2068 fi |
2068 | 2069 |
2069 dnl Don't use X11 input methods if user specifies he doesn't want it | 2070 dnl See if XIM is available. |
2070 dnl with `--with-xim=no'. | 2071 AC_TRY_COMPILE([ |
2072 #include <X11/Xlib.h> | |
2073 #include <X11/Xresource.h>], | |
2074 [XIMProc callback;], | |
2075 HAVE_XIM=yes | |
2076 AC_DEFINE(HAVE_XIM, 1, [Define to 1 if XIM is available]), | |
2077 HAVE_XIM=no) | |
2078 | |
2079 dnl `--with-xim' now controls only the initial value of use_xim at run time. | |
2071 | 2080 |
2072 if test "${with_xim}" != "no"; then | 2081 if test "${with_xim}" != "no"; then |
2073 AC_DEFINE(USE_XIM, 1, | 2082 AC_DEFINE(USE_XIM, 1, |
2074 [Define to 1 if we should use XIM, if it is available.]) | 2083 [Define to 1 if we should use XIM, if it is available.]) |
2075 fi | 2084 fi |
2076 if test "${HAVE_X11}" = "yes"; then | 2085 |
2086 | |
2087 if test "${HAVE_XIM}" != "no"; then | |
2077 late_CFLAGS=$CFLAGS | 2088 late_CFLAGS=$CFLAGS |
2078 if test "$GCC" = yes; then | 2089 if test "$GCC" = yes; then |
2079 CFLAGS="$CFLAGS --pedantic-errors" | 2090 CFLAGS="$CFLAGS --pedantic-errors" |
2080 fi | 2091 fi |
2081 AC_TRY_COMPILE([ | 2092 AC_TRY_COMPILE([ |