1999-03-13 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * tests/sh.test: look for `$Xsed' without `$echo "X...'
+ * ltconfig.in, ltmain.in: fixed a few such occurrences
+
* ltmain.in (-static, -all-static): revert March 11's patch, I was
barking up the wrong tree
if test -z "$srcdir"; then
# Assume the source directory is the same one as the path to LTMAIN.
- srcdir=`$echo "$ltmain" | $Xsed -e 's%/[^/]*$%%'`
+ srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
test "$srcdir" = "$ltmain" && srcdir=.
fi
case "$ltecho" in
*'\$0 --fallback-echo"')
- ltecho=`$echo "X$ltecho" |
- $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
+ ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
;;
esac
;;
-R*)
- xrpath="$xrpath "`echo "X$arg" | $Xsed -e 's/^-R//'`
+ xrpath="$xrpath "`$echo "X$arg" | $Xsed -e 's/^-R//'`
continue
;;
temp_deplibs=
for deplib in $dependency_libs; do
case "$deplib" in
- -R*) temp_xrpath=`echo "X$deplib" | $Xsed -e 's/^-R//'`
+ -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
case " $rpath $xrpath " in
*" $temp_xrpath "*) ;;
*) xrpath="$xrpath $temp_xrpath";;
potliblink=`ls -ld $potlib | sed 's/.* -> //'`
case "$potliblink" in
/*) potlib="$potliblink";;
- *) potlib=`$echo "X$potlib" \
- | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
esac
done
if eval $file_magic_cmd \"\$potlib\" \
# Ensure that we have .o objects for linkers which dislike .lo
# (e.g. aix) incase we are running --disable-static
for obj in $libobjs; do
- oldobj=`echo $obj | $Xsed -e "$lo2o"`
+ oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
test -f $oldobj || ${LN_S} $obj $oldobj
done
# Extract the objects.
xdir="$xlib"x
generated="$generated $xdir"
- xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'`
+ xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
$show "${rm}r $xdir"
$run ${rm}r "$xdir"
if test "$fast_install" != no; then
link_command="$finalize_var$compile_command$finalize_rpath"
if test "$fast_install" = yes; then
- relink_command=`echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+ relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
else
# fast_install is set to needless
relink_command=
# Extract the objects.
xdir="$xlib"x
generated="$generated $xdir"
- xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'`
+ xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
$show "${rm}r $xdir"
$run ${rm}r "$xdir"