aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2002-10-03 19:08:53 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2002-10-03 19:08:53 +0000
commit8607b6c98d6b9af877240405471108d0d5a6c77f (patch)
tree2e1c2c36fb2dc34143730077d31b271b03c7167e /configure.in
parenta37295f9001a34ba4ebf0dca6298d3fb55b6467e (diff)
downloadgdb-8607b6c98d6b9af877240405471108d0d5a6c77f.zip
gdb-8607b6c98d6b9af877240405471108d0d5a6c77f.tar.gz
gdb-8607b6c98d6b9af877240405471108d0d5a6c77f.tar.bz2
2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy. * Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy. * configure.in: Make SET_LIB_PATH substitution more autoconfy. * configure.in: Make RPATH_ENVVAR substitution more autoconfy. * Makefile.in: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in29
1 files changed, 16 insertions, 13 deletions
diff --git a/configure.in b/configure.in
index bee4c29..8988bef 100644
--- a/configure.in
+++ b/configure.in
@@ -1321,20 +1321,23 @@ esac
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
# binutils tools will find libbfd.so.
if test "${shared}" = "yes" ; then
- sed -e 's/^SET_LIB_PATH[ ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \
- Makefile > Makefile.tem
- rm -f Makefile
- mv -f Makefile.tem Makefile
-
- case "${host}" in
- *-*-hpux*)
- sed -e 's/^RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
- Makefile > Makefile.tem
- rm -f Makefile
- mv -f Makefile.tem Makefile
- ;;
- esac
+ SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)"
+else
+ SET_LIB_PATH=
fi
+sed -e "s/@SET_LIB_PATH@/${SET_LIB_PATH}/" Makefile > Makefile.tem
+rm -f Makefile
+mv -f Makefile.tem Makefile
+
+
+case "${host}" in
+ *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
+ *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
+esac
+sed -e "s/@RPATH_ENVVAR@/${RPATH_ENVVAR}/" Makefile > Makefile.tem
+rm -f Makefile
+mv -f Makefile.tem Makefile
+
# Base args. Strip norecursion, cache-file, srcdir, host, build, target.
# These are the ones we might not want to pass down to subconfigures.