diff options
| author | Richard M. Stallman | 1997-08-24 01:01:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-24 01:01:45 +0000 |
| commit | 66d736a953bccfba53acebf6065835f1577febd0 (patch) | |
| tree | bbd4f855127dc3400b8cd2688fcb5e2bb75c4da8 | |
| parent | d883eb62329a9c13a9307f973df18f91635f3905 (diff) | |
| download | emacs-66d736a953bccfba53acebf6065835f1577febd0.tar.gz emacs-66d736a953bccfba53acebf6065835f1577febd0.zip | |
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Compute x_default_search_path and substitute into makefiles.
| -rw-r--r-- | configure.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 612b2a179ad..78f67190e9e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1121,6 +1121,18 @@ fi | |||
| 1121 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | 1121 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
| 1122 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | 1122 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
| 1123 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | 1123 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` |
| 1124 | x_default_search_path="" | ||
| 1125 | for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | ||
| 1126 | x_search_path="${x_library}/%L/%T/%N%C%S:\ | ||
| 1127 | ${x_library}/%L/%T/%N%C%S:${x_libary}/%l/%T/%N%C%S:\ | ||
| 1128 | ${x_library}/%T/%N%C%S:${x_library}/%L/%T/%N%S:\ | ||
| 1129 | ${x_library}/%l/%T/%N%S:${x_library}/%T/%N%S" | ||
| 1130 | if test x"${x_default_search_path}" = x; then | ||
| 1131 | x_default_search_path=${x_search_path} | ||
| 1132 | else | ||
| 1133 | x_default_search_path="${x_search_path}:${x_default_search_path}" | ||
| 1134 | fi | ||
| 1135 | done | ||
| 1124 | fi | 1136 | fi |
| 1125 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | 1137 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
| 1126 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | 1138 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` |
| @@ -1503,6 +1515,21 @@ dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. | |||
| 1503 | LIBS="$OLDLIBS" | 1515 | LIBS="$OLDLIBS" |
| 1504 | fi | 1516 | fi |
| 1505 | 1517 | ||
| 1518 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | ||
| 1519 | AC_MSG_CHECKING(for Motif version 2.1) | ||
| 1520 | AC_TRY_COMPILE([#include <Xm/Xm.h>], | ||
| 1521 | [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | ||
| 1522 | int x = 5; | ||
| 1523 | #else | ||
| 1524 | Motif version prior to 2.1. | ||
| 1525 | #endif], | ||
| 1526 | [AC_MSG_RESULT(yes) | ||
| 1527 | HAVE_MOTIF_2_1=yes | ||
| 1528 | AC_DEFINE(HAVE_MOTIF_2_1)], | ||
| 1529 | [AC_MSG_RESULT(no) | ||
| 1530 | HAVE_MOTIF_2_1=no]) | ||
| 1531 | fi | ||
| 1532 | |||
| 1506 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | 1533 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
| 1507 | AC_MSG_CHECKING(whether netdb declares h_errno) | 1534 | AC_MSG_CHECKING(whether netdb declares h_errno) |
| 1508 | AC_TRY_LINK([#include <netdb.h>], | 1535 | AC_TRY_LINK([#include <netdb.h>], |
| @@ -1658,6 +1685,7 @@ AC_SUBST(infodir) | |||
| 1658 | AC_SUBST(lispdir) | 1685 | AC_SUBST(lispdir) |
| 1659 | AC_SUBST(locallisppath) | 1686 | AC_SUBST(locallisppath) |
| 1660 | AC_SUBST(lisppath) | 1687 | AC_SUBST(lisppath) |
| 1688 | AC_SUBST(x_default_search_path) | ||
| 1661 | AC_SUBST(etcdir) | 1689 | AC_SUBST(etcdir) |
| 1662 | AC_SUBST(archlibdir) | 1690 | AC_SUBST(archlibdir) |
| 1663 | AC_SUBST(docdir) | 1691 | AC_SUBST(docdir) |