1 *** ../bash-2.05b-patched/aclocal.m4 Tue Jun 25 09:45:43 2002
2 --- aclocal.m4 Sat Oct 9 15:03:28 2004
6 AC_DEFUN(BASH_FUNC_GETCWD,
7 ! [AC_MSG_CHECKING([if getcwd() calls popen()])
8 ! AC_CACHE_VAL(bash_cv_getcwd_calls_popen,
13 AC_DEFUN(BASH_FUNC_GETCWD,
14 ! [AC_MSG_CHECKING([if getcwd() will dynamically allocate memory])
15 ! AC_CACHE_VAL(bash_cv_getcwd_malloc,
31 - popen(command, type)
32 - const char *command;
36 - return (FILE *)NULL;
39 - FILE *_popen(command, type)
40 - const char *command;
43 - return (popen (command, type));
65 ! exit (popen_called);
67 ! ], bash_cv_getcwd_calls_popen=no, bash_cv_getcwd_calls_popen=yes,
68 ! [AC_MSG_WARN(cannot check whether getcwd calls popen if cross compiling -- defaulting to no)
69 ! bash_cv_getcwd_calls_popen=no]
71 ! AC_MSG_RESULT($bash_cv_getcwd_calls_popen)
72 ! if test $bash_cv_getcwd_calls_popen = yes; then
73 AC_DEFINE(GETCWD_BROKEN)
81 ! xpwd = getcwd(0, 0);
84 ! ], bash_cv_getcwd_malloc=yes, bash_cv_getcwd_malloc=no,
85 ! [AC_MSG_WARN(cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no)
86 ! bash_cv_getcwd_malloc=no]
88 ! AC_MSG_RESULT($bash_cv_getcwd_malloc)
89 ! if test $bash_cv_getcwd_malloc = no; then
90 AC_DEFINE(GETCWD_BROKEN)