The following patch changes the directory against which the mkdir -p command
is tested in install-sh script. Currently the test for POSIX compliance is
run against the root directory, which gets annoying in those systems trying
to wrap packages into a sandbox when building (making sure nothing relies on
writing to external paths). This is the case of Gentoo for instance (when
not using GNU mkdir). mkinstalldirs for example already tests against the
current directory.
I thought this is the right place to propose install-sh changes. If this
gets applied it would be great if it could also be forwarded to automake and
libtool.
Thanks,
Alex.
diff -Naur autoconf-2.60/config/install-sh autoconf-2.60/config/install-sh
--- autoconf-2.60/config/install-sh 2006-05-17 04:05:19.000000000 +0200
+++ autoconf-2.60/config/install-sh 2006-10-08 23:34:15.000000000 +0200
@@ -275,7 +275,7 @@
case $posix_mkdir in
'')
posix_mkdir=false
- if $mkdirprog -m $test_mode -p -- / >/dev/null 2>&1; then
+ if $mkdirprog -m $test_mode -p -- . >/dev/null 2>&1; then
posix_mkdir=true
else
# Remove any dirs left behind by ancient mkdir implementations.