New module 'sys_types'.
[gnulib.git] / modules / sys_types
1 Description:
2 A <sys/types.h> that conforms better to POSIX.
3
4 Files:
5 lib/sys_types.in.h
6 m4/sys_types_h.m4
7
8 Depends-on:
9 include_next
10
11 configure.ac:
12 gl_SYS_TYPES_H
13 AC_PROG_MKDIR_P
14
15 Makefile.am:
16 BUILT_SOURCES += sys/types.h
17
18 # We need the following in order to create <sys/types.h> when the system
19 # doesn't have one that works with the given compiler.
20 sys/types.h: sys_types.in.h $(top_builddir)/config.status
21         $(AM_V_at)$(MKDIR_P) sys
22         $(AM_V_GEN)rm -f $@-t $@ && \
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
25               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
28               -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
29               < $(srcdir)/sys_types.in.h; \
30         } > $@-t && \
31         mv $@-t $@
32 MOSTLYCLEANFILES += sys/types.h sys/types.h-t
33
34 Include:
35 <sys/types.h>
36
37 License:
38 LGPLv2+
39
40 Maintainer:
41 all