* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
[gnulib.git] / modules / stdint
1 Description:
2 A <stdint.h> that nearly conforms to C99.
3 Assumes typical host with 8-bit bytes, two's complement
4 representation, and no padding or trap representations, with int
5 widths equal to 8, 16, 32, and 64 bits.  {uint,int}_fast{8,16,32,64}_t
6 may not correspond to the fastest types available on the system.
7 Macros are used instead of typedefs.
8
9 Files:
10 lib/stdint_.h
11 m4/stdint.m4
12 m4/longlong.m4
13 m4/ulonglong.m4
14
15 Depends-on:
16 include_next
17 wchar
18
19 configure.ac:
20 gl_STDINT_H
21
22 Makefile.am:
23 BUILT_SOURCES += $(STDINT_H)
24
25 # We need the following in order to create <stdint.h> when the system
26 # doesn't have one that works with the given compiler.
27 stdint.h: stdint_.h
28         rm -f $@-t $@
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30           sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
31               -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
32               -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
33               -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
34               -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
35               -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
36               -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
37               -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
38               -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
39               -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
40               -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
41               -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
42               -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
43               -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
44               -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
45               -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
46               -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
47               -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
48               -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
49               -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
50               -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
51               -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
52               < $(srcdir)/stdint_.h; \
53         } > $@-t
54         mv $@-t $@
55 MOSTLYCLEANFILES += stdint.h stdint.h-t
56
57 Include:
58 #include <stdint.h>
59
60 License:
61 LGPL
62
63 Maintainer:
64 all