changeset 14488:4deac8b4941c

(LD_RUN_PATH): Prepend x_libraries to this envvar.
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Feb 1996 20:16:38 +0000
parents 7b7cb366646c
children 9bc700f13f97
files configure.in
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sun Feb 04 20:13:47 1996 +0000
+++ b/configure.in	Sun Feb 04 20:16:38 1996 +0000
@@ -1253,6 +1253,15 @@
   LIBS="$LIBX $LIBS"
   CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
 
+  # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
+  # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
+  # but it's more convenient here to set LD_RUN_PATH
+  # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
+  if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
+    LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
+    export LD_RUN_PATH
+  fi
+
   if test "${opsys}" = "linux"; then
     AC_MSG_CHECKING(whether X on GNU/Linux needs -b to link)
     AC_TRY_LINK([],