From fcc303f4c1853369188ed49b6ced75a0b85e2ecb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 26 Feb 1996 19:42:29 +0000 Subject: [PATCH] Improve messages about X versions. (LOCALTIME_CACHE): Cope if $ac_cv_func_tzset is null. (HAVE_X11XTR6): Set it as a shell variable. (HAVE_LIBXMU): If HAVE_X11XTR6, use -lSM and -lICE. --- configure.in | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index 8bcd982eb55..da8b2efc794 100644 --- a/configure.in +++ b/configure.in @@ -1307,9 +1307,9 @@ if test "${window_system}" = "x11"; then [#if XlibSpecificationRelease < 6 fail; #endif -], [AC_MSG_RESULT(6) +], [AC_MSG_RESULT(6 or newer) AC_DEFINE(HAVE_X11R6)], - [AC_MSG_RESULT(not 6)]) + [AC_MSG_RESULT(before 6)]) fi if test x"${USE_X_TOOLKIT}" = xmaybe; then @@ -1318,10 +1318,10 @@ if test x"${USE_X_TOOLKIT}" = xmaybe; then [#if XlibSpecificationRelease < 5 fail; #endif -], [AC_MSG_RESULT(5, use toolkit) +], [AC_MSG_RESULT(5 or newer; use toolkit by default) USE_X_TOOLKIT=LUCID AC_DEFINE(HAVE_X11R5)], - [AC_MSG_RESULT(not 5, do not use toolkit) + [AC_MSG_RESULT(before 5; do not use toolkit by default) USE_X_TOOLKIT=none]) fi @@ -1333,14 +1333,20 @@ if test "${USE_X_TOOLKIT}" != "none"; then [#if XtSpecificationRelease < 6 fail; #endif -], [AC_MSG_RESULT(6) +], [AC_MSG_RESULT(6 or newer) + HAVE_X11XTR6=yes AC_DEFINE(HAVE_X11XTR6)], - [AC_MSG_RESULT(not 6)]) + [AC_MSG_RESULT(before 6) + HAVE_X11XTR6=no]) dnl If using toolkit, check whether libXmu.a exists. dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. OLDLIBS="$LIBS" - LIBS="-lXt $LIBS" + if test x$HAVE_X11XTR6 = xyes; then + LIBS="-lXt -lSM -lICE $LIBS" + else + LIBS="-lXt $LIBS" + fi AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) LIBS="$OLDLIBS" fi @@ -1364,7 +1370,7 @@ strerror fpathconf select mktime eaccess getpagesize tzset) AC_MSG_CHECKING(whether localtime caches TZ) AC_CACHE_VAL(emacs_cv_localtime_cache, -[if test $ac_cv_func_tzset = yes; then +[if test x$ac_cv_func_tzset = xyes; then AC_TRY_RUN([#include #if STDC_HEADERS # include