# HG changeset patch # User Jan Dj¸«£rv # Date 1193902693 0 # Node ID 63b4228fc06abbce6162363d3e162150380cdbb6 # Parent 6a9f9f174e916fd6e5e25c7c687b0775d055d5b5 Remove HAVE_X11R5 check. diff -r 6a9f9f174e91 -r 63b4228fc06a configure.in --- a/configure.in Thu Nov 01 07:16:11 2007 +0000 +++ b/configure.in Thu Nov 01 07:38:13 2007 +0000 @@ -2118,24 +2118,6 @@ fi fi -if test "${window_system}" = "x11"; then - AC_MSG_CHECKING(X11 version 5) - AC_CACHE_VAL(emacs_cv_x11_version_5, - [AC_TRY_LINK([#include ], -[#if XlibSpecificationRelease < 5 -fail; -#endif -], emacs_cv_x11_version_5=yes, emacs_cv_x11_version_5=no)]) - if test $emacs_cv_x11_version_5 = yes; then - AC_MSG_RESULT(5 or newer) - HAVE_X11R5=yes - AC_DEFINE(HAVE_X11R5, 1, - [Define to 1 if you have the X11R5 or newer version of Xlib.]) - else - HAVE_X11R5=no - AC_MSG_RESULT(before 5) - fi -fi ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. HAVE_RSVG=no @@ -2298,46 +2280,42 @@ dnl Older compilers (eg sunos4 cc) choke on it. HAVE_XAW3D=no if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then - if test x"${HAVE_X11R5}" != xyes; then - USE_X_TOOLKIT=none - else - if test "$with_xaw3d" != no; then - AC_MSG_CHECKING(for xaw3d) - AC_CACHE_VAL(emacs_cv_xaw3d, - [AC_TRY_LINK([ + if test "$with_xaw3d" != no; then + AC_MSG_CHECKING(for xaw3d) + AC_CACHE_VAL(emacs_cv_xaw3d, + [AC_TRY_LINK([ #include #include ], - [], - emacs_cv_xaw3d=yes, - emacs_cv_xaw3d=no)]) - else - emacs_cv_xaw3d=no - fi - if test $emacs_cv_xaw3d = yes; then + [], + emacs_cv_xaw3d=yes, + emacs_cv_xaw3d=no)]) + else + emacs_cv_xaw3d=no + fi + if test $emacs_cv_xaw3d = yes; then + AC_MSG_RESULT([yes; using Lucid toolkit]) + USE_X_TOOLKIT=LUCID + HAVE_XAW3D=yes + AC_DEFINE(HAVE_XAW3D, 1, + [Define to 1 if you have the Xaw3d library (-lXaw3d).]) + else + AC_MSG_RESULT(no) + AC_MSG_CHECKING(for libXaw) + AC_CACHE_VAL(emacs_cv_xaw, + [AC_TRY_LINK([ +#include +#include ], + [], + emacs_cv_xaw=yes, + emacs_cv_xaw=no)]) + if test $emacs_cv_xaw = yes; then AC_MSG_RESULT([yes; using Lucid toolkit]) USE_X_TOOLKIT=LUCID - HAVE_XAW3D=yes - AC_DEFINE(HAVE_XAW3D, 1, - [Define to 1 if you have the Xaw3d library (-lXaw3d).]) + elif test x"${USE_X_TOOLKIT}" = xLUCID; then + AC_MSG_ERROR([Lucid toolkit requires X11/Xaw include files]) else - AC_MSG_RESULT(no) - AC_MSG_CHECKING(for libXaw) - AC_CACHE_VAL(emacs_cv_xaw, - [AC_TRY_LINK([ -#include -#include ], - [], - emacs_cv_xaw=yes, - emacs_cv_xaw=no)]) - if test $emacs_cv_xaw = yes; then - AC_MSG_RESULT([yes; using Lucid toolkit]) - USE_X_TOOLKIT=LUCID - elif test x"${USE_X_TOOLKIT}" = xLUCID; then - AC_MSG_ERROR([Lucid toolkit requires X11/Xaw include files]) - else - AC_MSG_RESULT([no; do not use toolkit by default]) - USE_X_TOOLKIT=none - fi + AC_MSG_RESULT([no; do not use toolkit by default]) + USE_X_TOOLKIT=none fi fi fi @@ -3359,7 +3337,7 @@ #ifdef HAVE_X11R6 #define HAVE_X_I18N -#elif defined HAVE_X11R5 && !defined X11R5_INHIBIT_I18N +#elif !defined X11R5_INHIBIT_I18N #define HAVE_X_I18N #endif