summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-22 05:01:20 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-08-22 05:01:20 +0000
commitce2ea6e3fd138f370ad9b0f2674b91a4dc8f1c45 (patch)
tree3fd7d2268e4cb844a22b1c347cb7610a3d07c220 /config-ml.in
parent* elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W, (diff)
downloadbinutils-gdb-ce2ea6e3fd138f370ad9b0f2674b91a4dc8f1c45.tar.gz
binutils-gdb-ce2ea6e3fd138f370ad9b0f2674b91a4dc8f1c45.tar.bz2
binutils-gdb-ce2ea6e3fd138f370ad9b0f2674b91a4dc8f1c45.zip
* config-ml.in (CC, CXX): Avoid trailing whitespace.
(LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to sub-configures.
Diffstat (limited to 'config-ml.in')
-rw-r--r--config-ml.in39
1 files changed, 36 insertions, 3 deletions
diff --git a/config-ml.in b/config-ml.in
index d4e7fe63bae..c968bf0d719 100644
--- a/config-ml.in
+++ b/config-ml.in
@@ -753,11 +753,11 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
break
fi
done
- ml_config_env='CC="${CC_} $flags" CXX="${CXX_} $flags"'
+ ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags"'
if [ "${with_target_subdir}" = "." ]; then
- CC_=$CC
- CXX_=$CXX
+ CC_=$CC' '
+ CXX_=$CXX' '
else
# Create a regular expression that matches any string as long
# as ML_POPDIR.
@@ -786,6 +786,39 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
esac
done
+ if test "x${LD_LIBRARY_PATH+set}" = xset; then
+ LD_LIBRARY_PATH_=
+ for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do
+ case "$arg" in
+ "${ML_POPDIR}"/*)
+ arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
+ ;;
+ esac
+ if test "x$LD_LIBRARY_PATH_" != x; then
+ LD_LIBRARY_PATH_=$LD_LIBRARY_PATH_:$arg
+ else
+ LD_LIBRARY_PATH_=$arg
+ fi
+ done
+ ml_config_env="$ml_config_env LD_LIBRARY_PATH=$LD_LIBRARY_PATH_"
+ fi
+
+ if test "x${SHLIB_PATH+set}" = xset; then
+ SHLIB_PATH_=
+ for arg in `echo "$SHLIB_PATH" | tr ':' ' '`; do
+ case "$arg" in
+ "${ML_POPDIR}"/*)
+ arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
+ ;;
+ esac
+ if test "x$SHLIB_PATH_" != x; then
+ SHLIB_PATH_=$SHLIB_PATH_:$arg
+ else
+ SHLIB_PATH_=$arg
+ fi
+ done
+ ml_config_env="$ml_config_env SHLIB_PATH=$SHLIB_PATH_"
+ fi
fi
if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \