emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/configure.in


From: Dave Love
Subject: [Emacs-diffs] Changes to emacs/configure.in
Date: Sun, 29 Jun 2003 08:01:09 -0400

Index: emacs/configure.in
diff -c emacs/configure.in:1.340 emacs/configure.in:1.341
*** emacs/configure.in:1.340    Mon Jun 23 14:35:23 2003
--- emacs/configure.in  Sun Jun 29 08:01:08 2003
***************
*** 2049,2054 ****
--- 2049,2058 ----
  if test "${with_xim}" != "no"; then
    AC_DEFINE(USE_XIM, 1,
            [Define to 1 if we should use XIM, if it is available.])
+   late_CFLAGS=$CFLAGS
+   if test "$GCC" = yes; then
+     CFLAGS="$CFLAGS --pedantic-errors"
+   fi
    AC_TRY_COMPILE([
  #include <X11/Xlib.h>
  #include <X11/Xresource.h>],
***************
*** 2058,2063 ****
--- 2062,2073 ----
  char *res_class;
  XIMProc  callback;
  XPointer *client_data;
+ #ifndef __GNUC__
+ /* If we're not using GCC, it's probably not XFree86, and this is
+    probably right, but we can't use something like --pedantic-errors.  */
+ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
+                                            char*, XIMProc, XPointer*);
+ #endif
  (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, 
callback,
     client_data);],
      [emacs_cv_arg6_star=yes])
***************
*** 2069,2074 ****
--- 2079,2085 ----
    else
       AC_DEFINE(XRegisterIMInstantiateCallback_arg6, [XPointer])
    fi
+   CFLAGS=$late_CFLAGS
  fi
  
  ### Use -lXpm if available, unless `--with-xpm=no'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]