diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-05-17 05:14:10 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-05-17 05:14:10 +0000 |
commit | 21d38bc056ff894c9bfc935654e4b9aee5a3d9d7 (patch) | |
tree | 9e93aac24fa05e593f9ae053d83589def777853a /configure1.in | |
parent | ba3b7e5c0c6685ff17eb7c39de4183c96d9ba6b9 (diff) | |
download | emacs-21d38bc056ff894c9bfc935654e4b9aee5a3d9d7.tar.gz |
[HAVE_X11]: Merge $C_SWITCH_X_SITE into CFLAGS
for the Xlib and Xt checks; then restore old CFLAGS.
(HAVE_X11XTR6): Add newline after #endif.
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure1.in b/configure1.in index 0b32ec9fbda..01e65784854 100755 --- a/configure1.in +++ b/configure1.in @@ -1417,9 +1417,14 @@ if test -d /usr/X386/include; then test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" fi +# We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used +# for the tests that follow. +orig_cflags="$CFLAGS" + if test "${HAVE_X11}" = "yes"; then DEFS="$C_SWITCH_X_SITE $DEFS" LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" + CFLAGS="$C_SWITCH_X_SITE $CFLAGS" AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \ XScreenNumberOfScreen XSetWMProtocols) fi @@ -1430,7 +1435,8 @@ if test "${USE_X_TOOLKIT}" != "none"; then [ #if XtSpecificationRelease < 6 fail; -#endif], +#endif +], AC_DEFINE(HAVE_X11XTR6)) fi @@ -1453,6 +1459,10 @@ fi if test -n "$ok_so_far"; then AC_DEFINE(HAVE_INET_SOCKETS) fi + +# Restore the original CFLAGS value. +CFLAGS="$orig_cflags" + [ #### Find out which version of Emacs this is. version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |