On 18/02/2006 11:26, Keith Marshall wrote:
On Friday 17 February 2006 1:12 pm, Ralf Wildenhues wrote:
`pwd' may not support `-W' either.
`pwd -W' is an MSYS extension, (it displays the native MS-Windows path,
rather than the POSIX style favoured by MSYS). Some shells will simply
ignore it, (e.g. `sh' on SunOS-5); others treat it as an error, (e.g.
`bash' other than in MSYS, Cygwin's `ash').
True, pwd may not support -W, but in the autoconf script itself it does
a check to see if it's handled (same for 'cygpath' which is used if on
Cygwin, see macro) Unless the following is buggy (with $1 equal to 'pwd
-W' for example):
if ( ($1) || exit) >/dev/null 2>&1 && \
( (cd $srcdir && $1) || exit) >/dev/null 2>&1; then
Note: the '|| exit' may seem like overkill, but I copied those two lines
from another autoconf macro. This may be to avoid a long lost documented
shell bug.
Julien
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf