2 An <inttypes.h> that conforms to C99 except for PRI* and SCN* macros.
17 gl_INTTYPES_INCOMPLETE
20 BUILT_SOURCES += inttypes.h
22 # We need the following in order to create <inttypes.h> when the system
23 # doesn't have one that works with the given compiler.
24 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
25 $(AM_V_GEN)rm -f $@-t $@ && \
26 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27 sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
28 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31 -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
32 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
33 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
34 -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
35 -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
36 -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
37 -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
38 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
39 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
40 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
41 -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
42 -e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \
43 -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
44 -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
45 -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
46 -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
47 -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
48 -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
49 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
50 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
51 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
52 < $(srcdir)/inttypes.in.h; \
55 MOSTLYCLEANFILES += inttypes.h inttypes.h-t