summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2003-06-29 12:05:01 +0000
committerDave Love <fx@gnu.org>2003-06-29 12:05:01 +0000
commitf6f89b46f7ee29dc3b0a3f7f669cce541cad3017 (patch)
tree5cf54a68c24f8e8b662555c82532a22f585988fe /configure
parenta7b48e43a56d596d70039d5447e6e93e7268e9d0 (diff)
downloademacs-f6f89b46f7ee29dc3b0a3f7f669cce541cad3017.tar.gz
*** empty log message ***
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 13 insertions, 3 deletions
diff --git a/configure b/configure
index 9c3d5403a84..19cd5774fa7 100755
--- a/configure
+++ b/configure
@@ -3396,8 +3396,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
- ''\
- '#include <stdlib.h>' \
+ '' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
@@ -3411,8 +3410,8 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdlib.h>
$ac_declaration
+#include <stdlib.h>
int
main ()
{
@@ -8894,6 +8893,10 @@ cat >>confdefs.h <<\_ACEOF
#define USE_XIM 1
_ACEOF
+ late_CFLAGS=$CFLAGS
+ if test "$GCC" = yes; then
+ CFLAGS="$CFLAGS --pedantic-errors"
+ fi
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
@@ -8913,6 +8916,12 @@ char *res_name;
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);
;
@@ -8950,6 +8959,7 @@ _ACEOF
_ACEOF
fi
+ CFLAGS=$late_CFLAGS
fi
### Use -lXpm if available, unless `--with-xpm=no'.