aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-01-09 22:56:20 +0000
committerKarl Heuer1996-01-09 22:56:20 +0000
commit4be21f6638d5e20ecae42d0a4ba0940dcf79c20e (patch)
tree8e1cade8dc9e9d30d09cdd74e98cc83ebcd65834
parent1c8c5693802955f9237f05e76b7b6decff8dc4ca (diff)
downloademacs-4be21f6638d5e20ecae42d0a4ba0940dcf79c20e.tar.gz
emacs-4be21f6638d5e20ecae42d0a4ba0940dcf79c20e.zip
(locallisppath): Put version-specific dir first.
(hppa-*-nextstep*): New alternative. (USE_X_TOOLKIT): By default, set this to "maybe"; and change that later to LUCID or "no" according to X11 version.
-rw-r--r--configure.in31
1 files changed, 26 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 3b2e6d2551d..d4913738757 100644
--- a/configure.in
+++ b/configure.in
@@ -7,8 +7,8 @@ AC_INIT(src/lisp.h)
7AC_CONFIG_HEADER(src/config.h:src/config.in) 7AC_CONFIG_HEADER(src/config.h:src/config.in)
8 8
9lispdir='${datadir}/emacs/${version}/lisp' 9lispdir='${datadir}/emacs/${version}/lisp'
10locallisppath='${datadir}/emacs/site-lisp:'\ 10locallisppath='${datadir}/emacs/${version}/site-lisp:'\
11'${datadir}/emacs/${version}/site-lisp' 11'${datadir}/emacs/site-lisp'
12lisppath='${locallisppath}:${lispdir}' 12lisppath='${locallisppath}:${lispdir}'
13etcdir='${datadir}/emacs/${version}/etc' 13etcdir='${datadir}/emacs/${version}/etc'
14lockdir='${sharedstatedir}/emacs/lock' 14lockdir='${sharedstatedir}/emacs/lock'
@@ -407,6 +407,9 @@ case "${canonical}" in
407 *) machine=hp800 opsys=hpux ;; 407 *) machine=hp800 opsys=hpux ;;
408 esac 408 esac
409 ;; 409 ;;
410 hppa-*-nextstep* )
411 machine=hp800 opsys=nextstep
412 ;;
410 413
411 ## Orion machines 414 ## Orion machines
412 orion-orion-bsd* ) 415 orion-orion-bsd* )
@@ -1021,7 +1024,10 @@ case "${window_system}" in
1021 athena | lucid ) USE_X_TOOLKIT=LUCID ;; 1024 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
1022 motif ) USE_X_TOOLKIT=MOTIF ;; 1025 motif ) USE_X_TOOLKIT=MOTIF ;;
1023dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; 1026dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;;
1024 * ) USE_X_TOOLKIT=none ;; 1027 no ) USE_X_TOOLKIT=none ;;
1028dnl If user did not say whether to use a toolkit,
1029dnl make this decision later: use the toolkit if we have X11R5 or newer.
1030 * ) USE_X_TOOLKIT=maybe ;;
1025 esac 1031 esac
1026 ;; 1032 ;;
1027 none ) 1033 none )
@@ -1030,7 +1036,6 @@ dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;;
1030 USE_X_TOOLKIT=none 1036 USE_X_TOOLKIT=none
1031 ;; 1037 ;;
1032esac 1038esac
1033X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1034 1039
1035### If we're using X11, we should use the X menu package. 1040### If we're using X11, we should use the X menu package.
1036HAVE_MENUS=no 1041HAVE_MENUS=no
@@ -1257,7 +1262,7 @@ XScreenNumberOfScreen XSetWMProtocols)
1257fi 1262fi
1258 1263
1259if test "${window_system}" = "x11"; then 1264if test "${window_system}" = "x11"; then
1260 AC_MSG_CHECKING(X11 version) 1265 AC_MSG_CHECKING(X11 version 6)
1261 AC_TRY_LINK([#include <X11/Xlib.h>], 1266 AC_TRY_LINK([#include <X11/Xlib.h>],
1262[#if XlibSpecificationRelease < 6 1267[#if XlibSpecificationRelease < 6
1263fail; 1268fail;
@@ -1267,6 +1272,22 @@ fail;
1267 [AC_MSG_RESULT(not 6)]) 1272 [AC_MSG_RESULT(not 6)])
1268fi 1273fi
1269 1274
1275if test x"${USE_X_TOOLKIT}" = xmaybe; then
1276 AC_MSG_CHECKING(X11 version 5)
1277 AC_TRY_LINK([#include <X11/Xlib.h>],
1278[#if XlibSpecificationRelease < 5
1279fail;
1280#endif
1281], [AC_MSG_RESULT(5, use toolkit)
1282 USE_X_TOOLKIT=LUCID
1283 AC_DEFINE(HAVE_X11R5)],
1284 [AC_MSG_RESULT(not 5, do not use toolkit)
1285 USE_X_TOOLKIT=none])
1286 fi
1287fi
1288
1289X_TOOLKIT_TYPE=$USE_X_TOOLKIT
1290
1270if test "${USE_X_TOOLKIT}" != "none"; then 1291if test "${USE_X_TOOLKIT}" != "none"; then
1271 AC_MSG_CHECKING(X11 toolkit version) 1292 AC_MSG_CHECKING(X11 toolkit version)
1272 AC_TRY_LINK([#include <X11/Intrinsic.h>], 1293 AC_TRY_LINK([#include <X11/Intrinsic.h>],