+2003-02-18 Bruno Haible <haible@clisp.cons.org>
+
+ Fix the 2002-09-16 fix.
+ * ltmain.sh (install): If "ln -s -f" fails (this is the case with
+ /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
+
2003-02-18 Bruno Haible <haible@clisp.cons.org>
* config.guess, config.sub: Update to GNU version 2003-02-03.
for linkname
do
if test "$linkname" != "$realname"; then
- $show "(cd $destdir && $LN_S -f $realname $linkname)"
- $run eval "(cd $destdir && $LN_S -f $realname $linkname)"
+ $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
+ $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
fi
done
fi