diff options
| author | Karl Heuer | 1996-01-09 22:56:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-09 22:56:20 +0000 |
| commit | 4be21f6638d5e20ecae42d0a4ba0940dcf79c20e (patch) | |
| tree | 8e1cade8dc9e9d30d09cdd74e98cc83ebcd65834 | |
| parent | 1c8c5693802955f9237f05e76b7b6decff8dc4ca (diff) | |
| download | emacs-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.in | 31 |
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) | |||
| 7 | AC_CONFIG_HEADER(src/config.h:src/config.in) | 7 | AC_CONFIG_HEADER(src/config.h:src/config.in) |
| 8 | 8 | ||
| 9 | lispdir='${datadir}/emacs/${version}/lisp' | 9 | lispdir='${datadir}/emacs/${version}/lisp' |
| 10 | locallisppath='${datadir}/emacs/site-lisp:'\ | 10 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| 11 | '${datadir}/emacs/${version}/site-lisp' | 11 | '${datadir}/emacs/site-lisp' |
| 12 | lisppath='${locallisppath}:${lispdir}' | 12 | lisppath='${locallisppath}:${lispdir}' |
| 13 | etcdir='${datadir}/emacs/${version}/etc' | 13 | etcdir='${datadir}/emacs/${version}/etc' |
| 14 | lockdir='${sharedstatedir}/emacs/lock' | 14 | lockdir='${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 ;; |
| 1023 | dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; | 1026 | dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; |
| 1024 | * ) USE_X_TOOLKIT=none ;; | 1027 | no ) USE_X_TOOLKIT=none ;; |
| 1028 | dnl If user did not say whether to use a toolkit, | ||
| 1029 | dnl 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 | ;; |
| 1032 | esac | 1038 | esac |
| 1033 | X_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. |
| 1036 | HAVE_MENUS=no | 1041 | HAVE_MENUS=no |
| @@ -1257,7 +1262,7 @@ XScreenNumberOfScreen XSetWMProtocols) | |||
| 1257 | fi | 1262 | fi |
| 1258 | 1263 | ||
| 1259 | if test "${window_system}" = "x11"; then | 1264 | if 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 |
| 1263 | fail; | 1268 | fail; |
| @@ -1267,6 +1272,22 @@ fail; | |||
| 1267 | [AC_MSG_RESULT(not 6)]) | 1272 | [AC_MSG_RESULT(not 6)]) |
| 1268 | fi | 1273 | fi |
| 1269 | 1274 | ||
| 1275 | if 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 | ||
| 1279 | fail; | ||
| 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 | ||
| 1287 | fi | ||
| 1288 | |||
| 1289 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | ||
| 1290 | |||
| 1270 | if test "${USE_X_TOOLKIT}" != "none"; then | 1291 | if 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>], |