# HG changeset patch # User Richard M. Stallman # Date 769151650 0 # Node ID 3049e726a161bbb38cedb28d1dc08d10acb45f2c # Parent 2971264ff9aa466b1f6a05c02c591387a4ebe042 [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. diff -r 2971264ff9aa -r 3049e726a161 configure1.in --- a/configure1.in Tue May 17 04:30:32 1994 +0000 +++ b/configure1.in Tue May 17 05:14:10 1994 +0000 @@ -1417,9 +1417,14 @@ 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 XtSpecificationRelease < 6 fail; -#endif], +#endif +], AC_DEFINE(HAVE_X11XTR6)) fi @@ -1453,6 +1459,10 @@ 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 \