Mercurial > hg > octave-shane > gnulib-hg
annotate m4/closedir.m4 @ 16201:8250f2777afc
maint: update all copyright year number ranges
Run "make update-copyright".
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 01 Jan 2012 10:04:58 +0100 |
parents | df1c78661f1f |
children | e542fd46ad6f |
rev | line source |
---|---|
16125
df1c78661f1f
Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
Bruno Haible <bruno@clisp.org>
parents:
15610
diff
changeset
|
1 # closedir.m4 serial 2 |
16201
8250f2777afc
maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents:
16125
diff
changeset
|
2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. |
15610
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_CLOSEDIR], |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 AC_REQUIRE([gl_DIRENT_H_DEFAULTS]) |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 AC_CHECK_FUNCS([closedir]) |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 if test $ac_cv_func_closedir = no; then |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 HAVE_CLOSEDIR=0 |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 fi |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 dnl Replace closedir() for supporting the gnulib-defined fchdir() function, |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 dnl to keep fchdir's bookkeeping up-to-date. |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 m4_ifdef([gl_FUNC_FCHDIR], [ |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 gl_TEST_FCHDIR |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 if test $HAVE_FCHDIR = 0; then |
16125
df1c78661f1f
Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
Bruno Haible <bruno@clisp.org>
parents:
15610
diff
changeset
|
20 if test $HAVE_CLOSEDIR = 1; then |
df1c78661f1f
Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
Bruno Haible <bruno@clisp.org>
parents:
15610
diff
changeset
|
21 REPLACE_CLOSEDIR=1 |
df1c78661f1f
Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
Bruno Haible <bruno@clisp.org>
parents:
15610
diff
changeset
|
22 fi |
15610
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 fi |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
24 ]) |
de2ecfd7fc4a
New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 ]) |