Having successfully built autoconf-2.62 for use with MSYS, on
MS-Windows, `make check' fails as follows:--
$ make check
[...]
/bin/sh ./testsuite
rm: reading directory `tdir /': No such file or directory
testsuite: error: invalid content: atlocal
make[3]: *** [check-local] Error 1
make[3]: Leaving directory \
`/home/keith/foobar/foo/autoconf-2.62/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory \
`/home/keith/foobar/foo/autoconf-2.62/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/keith/foobar/foo/autoconf-2.62'
make: *** [check] Error 2
While it seems likely that this is a consequence of a bug in MSYS:
http://sourceforge.net/tracker/index.php?func=detail&aid=1959460&group_id=2435&atid=102435
...it may be worked around by applying the attached patch, (against
tests/atlocal.in, in released autoconf-2.61).
FWIW, after applying this, the testsuite runs for seven hours, on my
1.7GHz Pentium-D Win2K box; after this protracted period, it completes
successfully, with zero unexpected results.
Regards,
Keith.
2008-05-08 Keith Marshall <[EMAIL PROTECTED]>
Work around MSYS bug, which would cause `make check' to fail.
* tests/atlocal.in (rm -rf 'tdir /'): Fails on MSYS; replace with...
(rm -rf tdir*/): ...this, in all instances.
--- autoconf-2.62/tests/atlocal.in 2008-04-06 00:04:48 +0100
+++ autoconf-2.62-patches/atlocal.in 2008-05-08 11:20:41 +0100
@@ -44,11 +44,11 @@
fi
# Can we create directories with trailing whitespaces in their name?
-rm -rf 'tdir /'
+rm -rf tdir*/
mkdir 'tdir ' && touch 'tdir /tfile' 2>/dev/null
if test -f 'tdir /tfile'; then
func_sanitize_dir_name () { echo "$@"; }
else
func_sanitize_dir_name () { echo "$@" | sed 's/ *$//'; }
fi
-rm -rf 'tdir /'
+rm -rf tdir*/