8783d83a6f4640974d3ae9497b4b1a1cc725ebd6
[gnulib.git] / modules / dirent
1 Description:
2 A GNU-like <dirent.h>.
3
4 Files:
5 lib/dirent.in.h
6 m4/dirent_h.m4
7 m4/unistd_h.m4
8
9 Depends-on:
10 arg-nonnull
11 c++defs
12 include_next
13 warn-on-use
14
15 configure.ac:
16 gl_DIRENT_H
17
18 Makefile.am:
19 BUILT_SOURCES += dirent.h
20
21 # We need the following in order to create <dirent.h> when the system
22 # doesn't have one that works with the given compiler.
23 dirent.h: dirent.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
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_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
29               -e 's|@''GNULIB_DIRFD''@|$(GNULIB_DIRFD)|g' \
30               -e 's|@''GNULIB_FDOPENDIR''@|$(GNULIB_FDOPENDIR)|g' \
31               -e 's|@''GNULIB_SCANDIR''@|$(GNULIB_SCANDIR)|g' \
32               -e 's|@''GNULIB_ALPHASORT''@|$(GNULIB_ALPHASORT)|g' \
33               -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
34               -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
35               -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
36               -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
37               -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
38               -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
39               -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
40               -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
41               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
42               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
43               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
44               < $(srcdir)/dirent.in.h; \
45         } > $@-t && \
46         mv $@-t $@
47 MOSTLYCLEANFILES += dirent.h dirent.h-t
48
49 Include:
50 <dirent.h>
51
52 License:
53 LGPLv2+
54
55 Maintainer:
56 all