mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
make pre-inst-guile use pre-inst-guile-env
* pre-inst-guile-env.in: * pre-inst-guile.in: Change so that pre-inst-guile uses pre-inst-guile-env. Fixed inconsistency regarding $subdirs_with_ltlibs.
This commit is contained in:
parent
9106a44eaa
commit
be52b55a32
2 changed files with 2 additions and 50 deletions
|
@ -31,7 +31,7 @@
|
||||||
# Example: ../../pre-inst-guile-env ./guile-test-foo
|
# Example: ../../pre-inst-guile-env ./guile-test-foo
|
||||||
|
|
||||||
# config
|
# config
|
||||||
subdirs_with_ltlibs="srfi guile-readline" # maintain me
|
subdirs_with_ltlibs="srfi guile-readline libguile" # maintain me
|
||||||
|
|
||||||
# env (set by configure)
|
# env (set by configure)
|
||||||
top_srcdir="@top_srcdir_absolute@"
|
top_srcdir="@top_srcdir_absolute@"
|
||||||
|
|
|
@ -19,13 +19,6 @@
|
||||||
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
# to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||||
# Floor, Boston, MA 02110-1301 USA
|
# Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
# NOTE: at some point we might consider invoking this under
|
|
||||||
# pre-inst-guile-env. If this will work, then most of the code below
|
|
||||||
# can be removed.
|
|
||||||
|
|
||||||
# NOTE: If you update this file, please update pre-inst-guile-env.in
|
|
||||||
# as well, if appropriate.
|
|
||||||
|
|
||||||
# Commentary:
|
# Commentary:
|
||||||
|
|
||||||
# Usage: pre-inst-guile [ARGS]
|
# Usage: pre-inst-guile [ARGS]
|
||||||
|
@ -42,56 +35,15 @@
|
||||||
|
|
||||||
# Code:
|
# Code:
|
||||||
|
|
||||||
# config
|
|
||||||
subdirs_with_ltlibs="srfi guile-readline libguile" # maintain me
|
|
||||||
|
|
||||||
# env (set by configure)
|
# env (set by configure)
|
||||||
top_srcdir="@top_srcdir_absolute@"
|
|
||||||
top_builddir="@top_builddir_absolute@"
|
top_builddir="@top_builddir_absolute@"
|
||||||
|
|
||||||
[ x"$top_srcdir" = x -o ! -d "$top_srcdir" -o \
|
|
||||||
x"$top_builddir" = x -o ! -d "$top_builddir" ] && {
|
|
||||||
echo $0: bad environment
|
|
||||||
echo top_srcdir=$top_srcdir
|
|
||||||
echo top_builddir=$top_builddir
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# handle GUILE_LOAD_PATH (no clobber)
|
|
||||||
if [ x"$GUILE_LOAD_PATH" = x ]
|
|
||||||
then
|
|
||||||
GUILE_LOAD_PATH="${top_srcdir}/guile-readline:${top_srcdir}"
|
|
||||||
else
|
|
||||||
for d in "${top_srcdir}" "${top_srcdir}/guile-readline"
|
|
||||||
do
|
|
||||||
# This hair prevents double inclusion.
|
|
||||||
# The ":" prevents prefix aliasing.
|
|
||||||
case x"$GUILE_LOAD_PATH" in
|
|
||||||
x*${d}:*) ;;
|
|
||||||
*) GUILE_LOAD_PATH="${d}:$GUILE_LOAD_PATH" ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
export GUILE_LOAD_PATH
|
|
||||||
|
|
||||||
# handle LTDL_LIBRARY_PATH (no clobber)
|
|
||||||
ltdl_prefix=""
|
|
||||||
dyld_prefix=""
|
|
||||||
for dir in $subdirs_with_ltlibs ; do
|
|
||||||
ltdl_prefix="${top_builddir}/${dir}:${ltdl_prefix}"
|
|
||||||
dyld_prefix="${top_builddir}/${dir}/.libs:${dyld_prefix}"
|
|
||||||
done
|
|
||||||
LTDL_LIBRARY_PATH="${ltdl_prefix}$LTDL_LIBRARY_PATH"
|
|
||||||
export LTDL_LIBRARY_PATH
|
|
||||||
DYLD_LIBRARY_PATH="${dyld_prefix}${top_builddir}/libguile/.libs:$DYLD_LIBRARY_PATH"
|
|
||||||
export DYLD_LIBRARY_PATH
|
|
||||||
|
|
||||||
# set GUILE (clobber)
|
# set GUILE (clobber)
|
||||||
GUILE=${top_builddir}/libguile/guile
|
GUILE=${top_builddir}/libguile/guile
|
||||||
export GUILE
|
export GUILE
|
||||||
|
|
||||||
# do it
|
# do it
|
||||||
exec $GUILE "$@"
|
exec ${top_builddir}/pre-inst-guile-env $GUILE "$@"
|
||||||
|
|
||||||
# never reached
|
# never reached
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue