aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-24 01:01:45 +0000
committerRichard M. Stallman1997-08-24 01:01:45 +0000
commit66d736a953bccfba53acebf6065835f1577febd0 (patch)
treebbd4f855127dc3400b8cd2688fcb5e2bb75c4da8
parentd883eb62329a9c13a9307f973df18f91635f3905 (diff)
downloademacs-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.in28
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
1121if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then 1121if 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
1124fi 1136fi
1125if test "${x_includes}" != NONE && test -n "${x_includes}"; then 1137if 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"
1504fi 1516fi
1505 1517
1518if 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)
1522int x = 5;
1523#else
1524Motif 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])
1531fi
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.
1507AC_MSG_CHECKING(whether netdb declares h_errno) 1534AC_MSG_CHECKING(whether netdb declares h_errno)
1508AC_TRY_LINK([#include <netdb.h>], 1535AC_TRY_LINK([#include <netdb.h>],
@@ -1658,6 +1685,7 @@ AC_SUBST(infodir)
1658AC_SUBST(lispdir) 1685AC_SUBST(lispdir)
1659AC_SUBST(locallisppath) 1686AC_SUBST(locallisppath)
1660AC_SUBST(lisppath) 1687AC_SUBST(lisppath)
1688AC_SUBST(x_default_search_path)
1661AC_SUBST(etcdir) 1689AC_SUBST(etcdir)
1662AC_SUBST(archlibdir) 1690AC_SUBST(archlibdir)
1663AC_SUBST(docdir) 1691AC_SUBST(docdir)