Since 2009-09-10, there is a small bug in getcwd.m4: it treats gl_cv_func_getcwd_null="guessing yes" like a "no" in one place.
This fixes it. 2011-11-20 Bruno Haible <br...@clisp.org> getcwd: Fix bug from 2009-09-10. * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not like "no". --- m4/getcwd.m4.orig Sun Nov 20 23:27:12 2011 +++ m4/getcwd.m4 Sun Nov 20 23:25:20 2011 @@ -6,7 +6,7 @@ # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert. -# serial 9 +# serial 10 AC_DEFUN([gl_FUNC_GETCWD_NULL], [ @@ -108,12 +108,18 @@ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles gl_abort_bug=no - case $gl_cv_func_getcwd_null,$host_os in - *,mingw*) - gl_cv_func_getcwd_path_max=yes;; - yes,*) - gl_FUNC_GETCWD_PATH_MAX - gl_FUNC_GETCWD_ABORT_BUG([gl_abort_bug=yes]);; + case "$host_os" in + mingw*) + gl_cv_func_getcwd_path_max=yes + ;; + *) + case "$gl_cv_func_getcwd_null" in + *yes) + gl_FUNC_GETCWD_PATH_MAX + gl_FUNC_GETCWD_ABORT_BUG([gl_abort_bug=yes]) + ;; + esac + ;; esac case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature$gl_cv_func_getcwd_path_max,$gl_abort_bug in -- In memoriam Kerem Yılmazer <http://en.wikipedia.org/wiki/Kerem_Yılmazer>