succeeded, but `ln -s file dir' failed, take care to remove the
leftover target before the next test, to prevent its spurious
failure; also make sure `ln file dir' works before selecting it.
Thanks to Keith Marshall for pointing this out.
* THANKS: Update.
2006-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
+ succeeded, but `ln -s file dir' failed, take care to remove the
+ leftover target before the next test, to prevent its spurious
+ failure; also make sure `ln file dir' works before selecting it.
+ Thanks to Keith Marshall for pointing this out.
+ * THANKS: Update.
+
* lib/autotest/general.m4 (AT_INIT): Store quoted variable
assignments in `at_debug_args', so that we put them correctly
in the `run' script.
Kathryn Hargreaves kathryn@deas.harvard.edu
Kaveh R. Ghazi ghazi@caip.rutgers.edu
Kelly Anderson tgcorp@attglobal.net
+Keith Marshall keith.marshall@total.com
Ken Pizzini ken@halcyon.com
Ken Raeburn raeburn@cygnus.com
Kevin Ryde user42@zip.com.au
else
as_ln_s='ln -s'
fi
-elif ln conf$$.file conf$$ 2>/dev/null; then
+elif rm -f conf$$ conf$$.dir/conf$$.file &&
+ ln conf$$.file conf$$ 2>/dev/null &&
+ ln conf$$.file conf$$.dir 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'