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

« back to all changes in this revision

Viewing changes to m4/faccessat.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 3
 
1
# serial 6
2
2
# See if we need to provide faccessat replacement.
3
3
 
4
 
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
4
dnl Copyright (C) 2009-2012 Free Software Foundation, Inc.
5
5
dnl This file is free software; the Free Software Foundation
6
6
dnl gives unlimited permission to copy and/or distribute it,
7
7
dnl with or without modifications, as long as this notice is preserved.
10
10
 
11
11
AC_DEFUN([gl_FUNC_FACCESSAT],
12
12
[
13
 
  AC_REQUIRE([gl_FUNC_OPENAT])
14
 
  AC_REQUIRE([gl_FUNC_EUIDACCESS])
15
13
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
 
14
 
 
15
  dnl Persuade glibc <unistd.h> to declare faccessat().
16
16
  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
17
 
  AC_CHECK_FUNCS_ONCE([access])
 
17
 
18
18
  AC_CHECK_FUNCS_ONCE([faccessat])
19
19
  if test $ac_cv_func_faccessat = no; then
20
20
    HAVE_FACCESSAT=0
21
 
    AC_LIBOBJ([faccessat])
22
21
  fi
23
22
])
 
23
 
 
24
# Prerequisites of lib/faccessat.m4.
 
25
AC_DEFUN([gl_PREREQ_FACCESSAT],
 
26
[
 
27
  AC_CHECK_FUNCS([access])
 
28
])