diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-02-26 19:42:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-02-26 19:42:29 +0000 |
commit | af00935834172dde87dd749f00decd461d251883 (patch) | |
tree | 159c6ef7ad4e3e48be38f6568f5c280425d9d9f8 /configure.in | |
parent | 6210a2ba472f3dcaf8a4534cb2cf8c8460b9219c (diff) | |
download | emacs-af00935834172dde87dd749f00decd461d251883.tar.gz |
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.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 22 |
1 files 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 <time.h> #if STDC_HEADERS # include <stdlib.h> |