2 A <sys/stat.h> for systems with missing declarations.
17 BUILT_SOURCES += $(SYS_STAT_H)
19 # We need the following in order to create <sys/stat.h> when the system
20 # has one that is incomplete.
21 sys/stat.h: sys_stat.in.h
24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
28 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
29 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
30 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
31 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
32 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
33 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
34 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
35 < $(srcdir)/sys_stat.in.h; \
38 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
39 MOSTLYCLEANDIRS += sys