|
Packit |
709fb3 |
#serial 15
|
|
Packit |
709fb3 |
|
|
Packit |
709fb3 |
# Use Gnulib's robust chdir function.
|
|
Packit |
709fb3 |
# It can handle arbitrarily long directory names, which means
|
|
Packit |
709fb3 |
# that when it is given the name of an existing directory, it
|
|
Packit |
709fb3 |
# never fails with ENAMETOOLONG.
|
|
Packit |
709fb3 |
# Arrange to compile chdir-long.c only on systems that define PATH_MAX.
|
|
Packit |
709fb3 |
|
|
Packit |
709fb3 |
dnl Copyright (C) 2004-2007, 2009-2017 Free Software Foundation, Inc.
|
|
Packit |
709fb3 |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
709fb3 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
709fb3 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
709fb3 |
|
|
Packit |
709fb3 |
# Written by Jim Meyering.
|
|
Packit |
709fb3 |
|
|
Packit |
709fb3 |
AC_DEFUN([gl_FUNC_CHDIR_LONG],
|
|
Packit |
709fb3 |
[
|
|
Packit |
709fb3 |
AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
|
|
Packit |
709fb3 |
AC_CACHE_CHECK([whether this system has an arbitrary file name length limit],
|
|
Packit |
709fb3 |
gl_cv_have_arbitrary_file_name_length_limit,
|
|
Packit |
709fb3 |
[AC_EGREP_CPP([have_arbitrary_file_name_length_limit],
|
|
Packit |
709fb3 |
gl_PATHMAX_SNIPPET[
|
|
Packit |
709fb3 |
#ifdef PATH_MAX
|
|
Packit |
709fb3 |
have_arbitrary_file_name_length_limit
|
|
Packit |
709fb3 |
#endif],
|
|
Packit |
709fb3 |
gl_cv_have_arbitrary_file_name_length_limit=yes,
|
|
Packit |
709fb3 |
gl_cv_have_arbitrary_file_name_length_limit=no)])
|
|
Packit |
709fb3 |
])
|
|
Packit |
709fb3 |
|
|
Packit |
709fb3 |
AC_DEFUN([gl_PREREQ_CHDIR_LONG], [:])
|