view modules/stdint @ 14102:f49fe7e6d028

add _HEADERS primaries to Makefile.am snippets for installable headers * modules/alloca-opt, modules/arg-nonnull, modules/argz, modules/arpa_inet, modules/byteswap, modules/c++defs, modules/ctype, modules/dirent, modules/errno, modules/fcntl-h, modules/float, modules/fnmatch, modules/getopt-posix, modules/glob, modules/iconv-h, modules/iconv_open, modules/inttypes, modules/langinfo, modules/link-warning, modules/locale, modules/math, modules/netdb, modules/netinet_in, modules/poll-h, modules/pthread, modules/pty, modules/sched, modules/search, modules/selinux-h, modules/signal, modules/spawn, modules/stdarg, modules/stdbool, modules/stddef, modules/stdint, modules/stdio, modules/stdlib, modules/string, modules/strings, modules/sys_file, modules/sys_ioctl, modules/sys_select, modules/sys_socket, modules/sys_stat, modules/sys_time, modules/sys_times, modules/sys_utsname, modules/sys_wait, modules/sysexits, modules/termios, modules/time, modules/unistd, modules/unitypes, modules/unused-parameter, modules/warn-on-use, modules/wchar, modules/wctype (Makefile.am): Add nodist_include_HEADERS, nobase_nodist_include_HEADERS and EXTRA_HEADERS declarations for potentially installable header files. * gnulib-tool: Initialize nodist_include_HEADERS, nobase_nodist_include_HEADERS and EXTRA_HEADERS to prime for new `.*_HEADERS +=' declarations. (func_emit_lib_Makefile_am): Edit away new nodist_include_HEADERS, nobase_nodist_include_HEADERS and EXTRA_HEADERS declarations by default, reverting the Makefile.am snippets above to their original condition prior to this change *unless* the gnulib library is being installed.
author Gary V. Vaughan <gary@gnu.org>
date Mon, 11 Oct 2010 15:51:59 +0700
parents a19ace3ba849
children c1a1f592f879
line wrap: on
line source

Description:
A <stdint.h> that nearly conforms to C99.
Assumes typical host with 8-bit bytes, two's complement
representation, and no padding or trap representations, with int
widths equal to 8, 16, 32, and 64 bits.  {uint,int}_fast{8,16,32,64}_t
may not correspond to the fastest types available on the system.
Macros are used instead of typedefs.

Files:
lib/stdint.in.h
m4/stdint.m4
m4/longlong.m4

Depends-on:
include_next
multiarch
wchar

configure.ac:
gl_STDINT_H

Makefile.am:
nodist_include_HEADERS += $(STDINT_H)
EXTRA_HEADERS += stdint.h

BUILT_SOURCES += $(STDINT_H)

# We need the following in order to create <stdint.h> when the system
# doesn't have one that works with the given compiler.
stdint.h: stdint.in.h
	$(AM_V_GEN)rm -f $@-t $@ && \
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
	  sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
	      -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
	      -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
	      -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
	      -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
	      -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
	      -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
	      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
	      -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
	      -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
	      -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
	      -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
	      -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
	      -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
	      -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
	      -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
	      -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
	      -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
	      -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
	      -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
	      -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
	      -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
	      < $(srcdir)/stdint.in.h; \
	} > $@-t && \
	mv $@-t $@
MOSTLYCLEANFILES += stdint.h stdint.h-t

Include:
<stdint.h>

License:
LGPLv2+

Maintainer:
all