From 20ece5977c43da03f0ae99bab2847f4c8d474fbf Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 14 Sep 1996 00:04:09 +0000 Subject: * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@. (just-check): Add shared library paths for libstdc++, tk, tcl, bfd, and opcodes to the environment variable specified in RPATH_ENVVAR. * configure.in: Add support to recognize --enable-shared flag and generate correct value for RPATH_ENVVAR. * configure: Regenerated with autoconf. --- gdb/testsuite/configure.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gdb/testsuite/configure.in') diff --git a/gdb/testsuite/configure.in b/gdb/testsuite/configure.in index 6cbf599..9026b71 100644 --- a/gdb/testsuite/configure.in +++ b/gdb/testsuite/configure.in @@ -34,6 +34,26 @@ case "${target}" in fi ;; esac +# Begin stuff to support --enable-shared +AC_ARG_ENABLE(shared, +[ --enable-shared use shared libraries], +[case "${enableval}" in + yes) shared=true ;; + no) shared=false ;; + *) shared=true ;; +esac])dnl +RPATH_ENVVAR=LD_LIBRARY_PATH +# If we have shared libraries, try to set RPATH_ENVVAR reasonably. +if test "${shared}" = "true"; then + case "${host}" in + *-*-hpux*) + RPATH_ENVVAR=SHLIB_PATH + ;; + esac +fi +AC_SUBST(RPATH_ENVVAR) +# End stuff to support --enable-shared + # configure the subdirectories too AC_CONFIG_SUBDIRS($configdirs) -- cgit v1.1