From 4c2704b8cd82f691b99888d78e54d203b0284bed Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 7 Mar 2003 09:57:29 +0000 Subject: [PATCH] (GL_FUNC_GETCWD_PATH_MAX): Check for declaration of getcwd. --- m4/getcwd-path-max.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/getcwd-path-max.m4 b/m4/getcwd-path-max.m4 index f8a9a2bf39..9069969b32 100644 --- a/m4/getcwd-path-max.m4 +++ b/m4/getcwd-path-max.m4 @@ -1,4 +1,4 @@ -#serial 1 +#serial 2 # Check whether getcwd has the bug that it succeeds for a working directory # longer than PATH_MAX, yet returns a truncated directory name. # If so, arrange to compile the wrapper function. @@ -14,6 +14,7 @@ AC_DEFUN([GL_FUNC_GETCWD_PATH_MAX], AC_CACHE_CHECK([whether getcwd properly handles paths longer than PATH_MAX], gl_cv_func_getcwd_vs_path_max, [ + AC_CHECK_DECLS([getcwd]) # Arrange for deletion of the temporary directory this test creates. ac_clean_files="$ac_clean_files confdir3" AC_RUN_IFELSE([AC_LANG_SOURCE([[ -- 2.47.3