Mercurial > hg > octave-shane > gnulib-hg
annotate m4/fstat.m4 @ 17252:7a29ec33d6c5
missing @item
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Tue, 01 Jan 2013 09:17:08 -0800 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
17185
dd46d4e6beea
dup, execute, fatal-signal, etc.: no 'static inline'
Paul Eggert <eggert@cs.ucla.edu>
parents:
16811
diff
changeset
|
1 # fstat.m4 serial 4 |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
17185
diff
changeset
|
2 dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. |
15781 | 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 AC_DEFUN([gl_FUNC_FSTAT], | |
8 [ | |
9 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) | |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
10 |
15781 | 11 AC_REQUIRE([gl_MSVC_INVAL]) |
12 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then | |
13 REPLACE_FSTAT=1 | |
14 fi | |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
15 |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
16 AC_REQUIRE([gl_HEADER_SYS_STAT_H]) |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
17 if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
18 REPLACE_FSTAT=1 |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
19 fi |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
20 |
15781 | 21 dnl Replace fstat() for supporting the gnulib-defined open() on directories. |
22 m4_ifdef([gl_FUNC_FCHDIR], [ | |
23 gl_TEST_FCHDIR | |
16811
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
24 if test $HAVE_FCHDIR = 0; then |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
25 case "$gl_cv_func_open_directory_works" in |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
26 *yes) ;; |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
27 *) |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
28 REPLACE_FSTAT=1 |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
29 ;; |
b187fc49964b
Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
16795
diff
changeset
|
30 esac |
15781 | 31 fi |
32 ]) | |
33 ]) | |
34 | |
35 # Prerequisites of lib/fstat.c. | |
17185
dd46d4e6beea
dup, execute, fatal-signal, etc.: no 'static inline'
Paul Eggert <eggert@cs.ucla.edu>
parents:
16811
diff
changeset
|
36 AC_DEFUN([gl_PREREQ_FSTAT], [:]) |