summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-24 01:01:45 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-24 01:01:45 +0000
commitacfab9c22b384d58a971508e1aa4e754d386755e (patch)
tree2cd49622ab78e160548942a802df7a2abed04724
parent1b9fcdbe84c3b2ab2749b356a2ca142f588d1474 (diff)
downloademacs-acfab9c22b384d58a971508e1aa4e754d386755e.tar.gz
(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
if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
+ x_default_search_path=""
+ for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
+ x_search_path="${x_library}/%L/%T/%N%C%S:\
+${x_library}/%L/%T/%N%C%S:${x_libary}/%l/%T/%N%C%S:\
+${x_library}/%T/%N%C%S:${x_library}/%L/%T/%N%S:\
+${x_library}/%l/%T/%N%S:${x_library}/%T/%N%S"
+ if test x"${x_default_search_path}" = x; then
+ x_default_search_path=${x_search_path}
+ else
+ x_default_search_path="${x_search_path}:${x_default_search_path}"
+ fi
+ done
fi
if test "${x_includes}" != NONE && test -n "${x_includes}"; then
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.
LIBS="$OLDLIBS"
fi
+if test "${USE_X_TOOLKIT}" = "MOTIF"; then
+ AC_MSG_CHECKING(for Motif version 2.1)
+ AC_TRY_COMPILE([#include <Xm/Xm.h>],
+ [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
+int x = 5;
+#else
+Motif version prior to 2.1.
+#endif],
+ [AC_MSG_RESULT(yes)
+ HAVE_MOTIF_2_1=yes
+ AC_DEFINE(HAVE_MOTIF_2_1)],
+ [AC_MSG_RESULT(no)
+ HAVE_MOTIF_2_1=no])
+fi
+
# If netdb.h doesn't declare h_errno, we must declare it by hand.
AC_MSG_CHECKING(whether netdb declares h_errno)
AC_TRY_LINK([#include <netdb.h>],
@@ -1658,6 +1685,7 @@ AC_SUBST(infodir)
AC_SUBST(lispdir)
AC_SUBST(locallisppath)
AC_SUBST(lisppath)
+AC_SUBST(x_default_search_path)
AC_SUBST(etcdir)
AC_SUBST(archlibdir)
AC_SUBST(docdir)