2 A <sys/stat.h> for systems with missing declarations.
18 BUILT_SOURCES += sys/stat.h
20 # We need the following in order to create <sys/stat.h> when the system
21 # has one that is incomplete.
22 sys/stat.h: sys_stat.in.h
23 $(AM_V_at)$(MKDIR_P) sys
24 $(AM_V_GEN)rm -f $@-t $@ && \
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
29 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
30 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
31 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
32 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
33 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
34 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
35 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
36 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
37 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
38 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
39 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
40 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
41 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
42 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
43 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
44 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
45 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
46 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
47 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
48 < $(srcdir)/sys_stat.in.h; \
51 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
52 MOSTLYCLEANDIRS += sys