~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/chdir-long.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 12
 
1
#serial 14
2
2
 
3
3
# Use Gnulib's robust chdir function.
4
4
# It can handle arbitrarily long directory names, which means
6
6
# never fails with ENAMETOOLONG.
7
7
# Arrange to compile chdir-long.c only on systems that define PATH_MAX.
8
8
 
9
 
dnl Copyright (C) 2004-2007, 2009-2011 Free Software Foundation, Inc.
 
9
dnl Copyright (C) 2004-2007, 2009-2012 Free Software Foundation, Inc.
10
10
dnl This file is free software; the Free Software Foundation
11
11
dnl gives unlimited permission to copy and/or distribute it,
12
12
dnl with or without modifications, as long as this notice is preserved.
15
15
 
16
16
AC_DEFUN([gl_FUNC_CHDIR_LONG],
17
17
[
 
18
  AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
18
19
  AC_CACHE_CHECK([whether this system has an arbitrary file name length limit],
19
20
    gl_cv_have_arbitrary_file_name_length_limit,
20
21
    [AC_EGREP_CPP([have_arbitrary_file_name_length_limit],
21
 
                  [#include <unistd.h>
22
 
#include <limits.h>
23
 
#if defined PATH_MAX || defined MAXPATHLEN
 
22
                  gl_PATHMAX_SNIPPET[
 
23
#ifdef PATH_MAX
24
24
have_arbitrary_file_name_length_limit
25
25
#endif],
26
26
    gl_cv_have_arbitrary_file_name_length_limit=yes,