1 |
#serial 9 |
#serial 10 |
2 |
# Check for several getcwd bugs with long file names. |
# Check for several getcwd bugs with long file names. |
3 |
# If so, arrange to compile the wrapper function. |
# If so, arrange to compile the wrapper function. |
4 |
|
|
16 |
AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], |
AC_DEFUN([gl_FUNC_GETCWD_PATH_MAX], |
17 |
[ |
[ |
18 |
AC_CHECK_DECLS_ONCE(getcwd) |
AC_CHECK_DECLS_ONCE(getcwd) |
|
AC_CHECK_HEADERS_ONCE(fcntl.h) |
|
19 |
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
20 |
AC_CACHE_CHECK([whether getcwd handles long file names properly], |
AC_CACHE_CHECK([whether getcwd handles long file names properly], |
21 |
gl_cv_func_getcwd_path_max, |
gl_cv_func_getcwd_path_max, |
31 |
#include <limits.h> |
#include <limits.h> |
32 |
#include <sys/stat.h> |
#include <sys/stat.h> |
33 |
#include <sys/types.h> |
#include <sys/types.h> |
34 |
#if HAVE_FCNTL_H |
#include <fcntl.h> |
|
# include <fcntl.h> |
|
|
#endif |
|
35 |
|
|
36 |
#ifndef AT_FDCWD |
#ifndef AT_FDCWD |
37 |
# define AT_FDCWD 0 |
# define AT_FDCWD 0 |