mbrlen: Fix cross-compilation guess for AIX.
[gnulib.git] / modules / sys_stat
1 Description:
2 A <sys/stat.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_stat.in.h
6 m4/sys_stat_h.m4
7 m4/unistd_h.m4
8
9 Depends-on:
10 arg-nonnull
11 c++defs
12 include_next
13 time
14 warn-on-use
15
16 configure.ac:
17 gl_HEADER_SYS_STAT_H
18 AC_PROG_MKDIR_P
19
20 Makefile.am:
21 BUILT_SOURCES += sys/stat.h
22
23 # We need the following in order to create <sys/stat.h> when the system
24 # has one that is incomplete.
25 sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
26         $(AM_V_at)$(MKDIR_P) sys
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
32               -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
33               -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
34               -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
35               -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
36               -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
37               -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
38               -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
39               -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
40               -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
41               -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
42               -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
43               -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
44               -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
45               -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
46               -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
47               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
48               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
49               -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
50               -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
51               -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
52               -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
53               -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
54               -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
55               -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
56               -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
57               -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
58               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
59               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
60               -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
61               -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
62               -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
63               -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
64               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
65               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
66               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
67               < $(srcdir)/sys_stat.in.h; \
68         } > $@-t && \
69         mv $@-t $@
70 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
71 MOSTLYCLEANDIRS += sys
72
73 Include:
74 <sys/stat.h>
75
76 License:
77 LGPLv2+
78
79 Maintainer:
80 all