2
An <inttypes.h> that nearly conforms to C99.
18
BUILT_SOURCES += $(INTTYPES_H)
20
# We need the following in order to create <inttypes.h> when the system
21
# doesn't have one that works with the given compiler.
22
inttypes.h: inttypes_.h
24
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25
sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
26
-e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
27
-e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
28
-e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
29
-e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
30
-e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
31
-e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
32
-e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
33
-e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
34
-e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
35
-e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
36
-e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
37
-e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
38
-e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
39
-e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
40
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
41
< $(srcdir)/inttypes_.h; \
44
MOSTLYCLEANFILES += inttypes.h inttypes.h-t