From aba8a49486bd9e4af0d052cb621c20d37bbe7340 Mon Sep 17 00:00:00 2001 From: Nathanael Nerode Date: Thu, 3 Oct 2002 19:06:16 +0000 Subject: [PATCH] Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy. 2002-10-03 Nathanael Nerode * Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy. * configure.in: Make SET_LIB_PATH substitution more autoconfy. * Makefile.in: Regenerate. From-SVN: r57783 --- ChangeLog | 4 ++++ Makefile.in | 2 +- Makefile.tpl | 2 +- configure.in | 10 ++++++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 05936b20bc6..8ba652d9c01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2002-10-03 Nathanael Nerode + * Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy. + * configure.in: Make SET_LIB_PATH substitution more autoconfy. + * Makefile.in: Regenerate. + * Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy. * configure.in: Make RPATH_ENVVAR substitution more autoconfy. * Makefile.in: Regenerate. diff --git a/Makefile.in b/Makefile.in index 6d5acc65b44..ce4bffa88a4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -201,7 +201,7 @@ BUILD_CONFIGARGS = @build_configargs@ # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared # was used. -SET_LIB_PATH = +SET_LIB_PATH = @SET_LIB_PATH@ # This is the name of the environment variable used for the path to # the libraries. This may be changed by configure.in. diff --git a/Makefile.tpl b/Makefile.tpl index 2c72994066c..5ef7d55fa3f 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -204,7 +204,7 @@ BUILD_CONFIGARGS = @build_configargs@ # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared # was used. -SET_LIB_PATH = +SET_LIB_PATH = @SET_LIB_PATH@ # This is the name of the environment variable used for the path to # the libraries. This may be changed by configure.in. diff --git a/configure.in b/configure.in index 98f56c34ebf..8988bef2782 100644 --- a/configure.in +++ b/configure.in @@ -1321,11 +1321,13 @@ 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 + 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