+2004-01-14 Paul Eggert <eggert@twinsun.com>
+
+ * doc/autoconf.texi (Programming in M4sh): Document that
+ AS_MKDIR_P succeeds if the destination is a symbolic link
+ to an existing directory.
+ (Limitations of Usual Tools): Note that mkdir -p might not
+ succeed on symlinks to directories.
+
2004-01-13 Paul Hilfinger <hilfinger@CS.Berkeley.EDU>
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Grammar fix in comment.
* bin/autoheader.in: Grammar fix in message.
- (trivial changes)
-
+ * lib/m4sugar/m4sh.m4 (AS_MKDIR_P):
+ Test for dir before calling mkdir -p. (trivial changes)
+
2004-01-13 Eric Blake <ebb9@byu.net>
* doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
Make the directory @var{filename}, including intervening directories
as necessary. This is equivalent to @samp{mkdir -p @var{filename}},
except that it is portable to older versions of @command{mkdir} that
-lack support for the @option{-p} option.
+lack support for the @option{-p} option. Also, @code{AS_MKDIR_P}
+succeeds if @var{filename} is a symbolic link to an existing directory,
+even though @acronym{POSIX} is unclear whether @samp{mkdir -p} should
+succeed in that case.
@end defmac
@defmac AS_SET_CATFILE (@var{var}, @var{dir}, @var{file})
@c ------------------
@prindex @command{mkdir}
@cindex Making directories
-None of @command{mkdir}'s options are portable. Instead of
+None of @command{mkdir}'s options are portable to older systems. Instead of
@samp{mkdir -p @var{filename}}, you should use use
@code{AS_MKDIR_P(@var{filename})} (@pxref{Programming in M4sh}).
+@acronym{POSIX} does not clearly specify whether @samp{mkdir -p foo}
+should succeed when @file{foo} is a symbolic link to an already-existing
+directory. GNU Coreutils 5.1.0 @command{mkdir} succeeds, but Solaris 9
+@command{mkdir} fails.
+
@item @command{mv}
@c ---------------
@prindex @command{mv}