malloc-h: New module.
[gnulib.git] / modules / dirent
blob08a6326cf1a344f6143208a33ba4211f31035955
1 Description:
2 A GNU-like <dirent.h>.
4 Files:
5 lib/dirent.in.h
6 m4/dirent_h.m4
7 m4/unistd_h.m4
8 m4/pid_t.m4
10 Depends-on:
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
16 configure.ac:
17 gl_DIRENT_H
19 Makefile.am:
20 BUILT_SOURCES += dirent.h
22 # We need the following in order to create <dirent.h> when the system
23 # doesn't have one that works with the given compiler.
24 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28               -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
29               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
30               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
31               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
32               -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
33               -e 's/@''GNULIB_OPENDIR''@/$(GNULIB_OPENDIR)/g' \
34               -e 's/@''GNULIB_READDIR''@/$(GNULIB_READDIR)/g' \
35               -e 's/@''GNULIB_REWINDDIR''@/$(GNULIB_REWINDDIR)/g' \
36               -e 's/@''GNULIB_CLOSEDIR''@/$(GNULIB_CLOSEDIR)/g' \
37               -e 's/@''GNULIB_DIRFD''@/$(GNULIB_DIRFD)/g' \
38               -e 's/@''GNULIB_FDOPENDIR''@/$(GNULIB_FDOPENDIR)/g' \
39               -e 's/@''GNULIB_SCANDIR''@/$(GNULIB_SCANDIR)/g' \
40               -e 's/@''GNULIB_ALPHASORT''@/$(GNULIB_ALPHASORT)/g' \
41               -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
42               -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
43               -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
44               -e 's/@''HAVE_CLOSEDIR''@/$(HAVE_CLOSEDIR)/g' \
45               -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
46               -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
47               -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
48               -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
49               -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
50               -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
51               -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
52               -e 's|@''REPLACE_DIRFD''@|$(REPLACE_DIRFD)|g' \
53               -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
54               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
55               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
56               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
57               < $(srcdir)/dirent.in.h; \
58         } > $@-t && \
59         mv $@-t $@
60 MOSTLYCLEANFILES += dirent.h dirent.h-t
62 Include:
63 <dirent.h>
65 License:
66 LGPLv2+
68 Maintainer:
69 all