diff options
| author | Dave Love | 2003-06-29 12:01:08 +0000 |
|---|---|---|
| committer | Dave Love | 2003-06-29 12:01:08 +0000 |
| commit | a6c2ef66b23dfc884c173e5a8c79477b30def1fd (patch) | |
| tree | 3d7115d6549ce07b185b262f2dbd6f5baf36d278 | |
| parent | 78bcc1482ac6d17adf98963391c5ea3c166715e8 (diff) | |
| download | emacs-a6c2ef66b23dfc884c173e5a8c79477b30def1fd.tar.gz emacs-a6c2ef66b23dfc884c173e5a8c79477b30def1fd.zip | |
Fix XRegisterIMInstantiateCallback check for gcc.
| -rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 0433c0ae210..800e80dd079 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -2049,6 +2049,10 @@ dnl with `--with-xim=no'. | |||
| 2049 | if test "${with_xim}" != "no"; then | 2049 | if test "${with_xim}" != "no"; then |
| 2050 | AC_DEFINE(USE_XIM, 1, | 2050 | AC_DEFINE(USE_XIM, 1, |
| 2051 | [Define to 1 if we should use XIM, if it is available.]) | 2051 | [Define to 1 if we should use XIM, if it is available.]) |
| 2052 | late_CFLAGS=$CFLAGS | ||
| 2053 | if test "$GCC" = yes; then | ||
| 2054 | CFLAGS="$CFLAGS --pedantic-errors" | ||
| 2055 | fi | ||
| 2052 | AC_TRY_COMPILE([ | 2056 | AC_TRY_COMPILE([ |
| 2053 | #include <X11/Xlib.h> | 2057 | #include <X11/Xlib.h> |
| 2054 | #include <X11/Xresource.h>], | 2058 | #include <X11/Xresource.h>], |
| @@ -2058,6 +2062,12 @@ char *res_name; | |||
| 2058 | char *res_class; | 2062 | char *res_class; |
| 2059 | XIMProc callback; | 2063 | XIMProc callback; |
| 2060 | XPointer *client_data; | 2064 | XPointer *client_data; |
| 2065 | #ifndef __GNUC__ | ||
| 2066 | /* If we're not using GCC, it's probably not XFree86, and this is | ||
| 2067 | probably right, but we can't use something like --pedantic-errors. */ | ||
| 2068 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | ||
| 2069 | char*, XIMProc, XPointer*); | ||
| 2070 | #endif | ||
| 2061 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, | 2071 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
| 2062 | client_data);], | 2072 | client_data);], |
| 2063 | [emacs_cv_arg6_star=yes]) | 2073 | [emacs_cv_arg6_star=yes]) |
| @@ -2069,6 +2079,7 @@ either XPointer or XPointer*.])dnl | |||
| 2069 | else | 2079 | else |
| 2070 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) | 2080 | AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer]) |
| 2071 | fi | 2081 | fi |
| 2082 | CFLAGS=$late_CFLAGS | ||
| 2072 | fi | 2083 | fi |
| 2073 | 2084 | ||
| 2074 | ### Use -lXpm if available, unless `--with-xpm=no'. | 2085 | ### Use -lXpm if available, unless `--with-xpm=no'. |