~ubuntu-branches/ubuntu/precise/gzip/precise

« back to all changes in this revision

Viewing changes to m4/dirent_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-10-19 11:42:42 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20111019114242-d8wiiu8kbvdtgmgj
Tags: 1.4-1ubuntu1
* Merge with Debian testing.  Remaining Ubuntu changes:
  - debian/{control,rules}: Remove the Win32 build and mingw64
    build-dependency, since mingw is in universe, and will remain so for
    the forseeable future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# dirent_h.m4 serial 8
 
2
dnl Copyright (C) 2008-2010 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
 
 
7
dnl Written by Bruno Haible.
 
8
 
 
9
AC_DEFUN([gl_DIRENT_H],
 
10
[
 
11
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
12
  dnl once only, before all statements that occur in other macros.
 
13
  AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
 
14
 
 
15
  dnl <dirent.h> is always overridden, because of GNULIB_POSIXCHECK.
 
16
  gl_CHECK_NEXT_HEADERS([dirent.h])
 
17
])
 
18
 
 
19
dnl Unconditionally enables the replacement of <dirent.h>.
 
20
AC_DEFUN([gl_REPLACE_DIRENT_H],
 
21
[
 
22
  dnl This is a no-op, because <dirent.h> is always overridden.
 
23
  :
 
24
])
 
25
 
 
26
AC_DEFUN([gl_DIRENT_MODULE_INDICATOR],
 
27
[
 
28
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
29
  AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
 
30
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
31
])
 
32
 
 
33
AC_DEFUN([gl_DIRENT_H_DEFAULTS],
 
34
[
 
35
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
 
36
  GNULIB_DIRFD=0;       AC_SUBST([GNULIB_DIRFD])
 
37
  GNULIB_FDOPENDIR=0;   AC_SUBST([GNULIB_FDOPENDIR])
 
38
  GNULIB_SCANDIR=0;     AC_SUBST([GNULIB_SCANDIR])
 
39
  GNULIB_ALPHASORT=0;   AC_SUBST([GNULIB_ALPHASORT])
 
40
  dnl Assume proper GNU behavior unless another module says otherwise.
 
41
  HAVE_DECL_DIRFD=1;    AC_SUBST([HAVE_DECL_DIRFD])
 
42
  HAVE_FDOPENDIR=1;     AC_SUBST([HAVE_FDOPENDIR])
 
43
  HAVE_SCANDIR=1;       AC_SUBST([HAVE_SCANDIR])
 
44
  HAVE_ALPHASORT=1;     AC_SUBST([HAVE_ALPHASORT])
 
45
  REPLACE_CLOSEDIR=0;   AC_SUBST([REPLACE_CLOSEDIR])
 
46
  REPLACE_FDOPENDIR=0;  AC_SUBST([REPLACE_FDOPENDIR])
 
47
  REPLACE_OPENDIR=0;    AC_SUBST([REPLACE_OPENDIR])
 
48
])