----------------> superseded by AC CREATE STDINT H !!!!!!!!!!!!!!!!
http://ac-archive.sf.net/guidod/ac_create_stdint.h !!!!!!!!!!!!!!!!
the "ISO C9X: 7.18 Integer types <stdint.h>" section requires the
existence of an include file <stdint.h> that defines a set of
typedefs, especially uint8_t,int32_t,uintptr_t.
Many older installations will not provide this file, but some will
have the very same definitions in <inttypes.h>. In other enviroments
we can use the inet-types in <sys/types.h> which would define the
typedefs int8_t and u_int8_t respectivly.
This macros will create a local "stdint.h" if it cannot find the
global <stdint.h> (or it will create the headerfile given as an argument).
In many cases that file will just have a singular "#include <inttypes.h>"
statement, while in other environments it will provide the set of basic
stdint's defined:
int8_t,uint8_t,int16_t,uint16_t,int32_t,uint32_t,intptr_t,uintptr_t
int_least32_t.. int_fast32_t.. intmax_t
which may or may not rely on the definitions of other files,
or using the AC_COMPILE_CHECK_SIZEOF macro to determine the actual
sizeof each type.
if your header files require the stdint-types you will want to create an
installable file package-stdint.h that all your other installable header
may include. So if you have a library package named "mylib", just use
AC_NEED_STDINT(zziplib-stdint.h)
in configure.in and go to install that very header file in Makefile.am
along with the other headers (mylib.h) - and the mylib-specific headers
can simply use "#include <mylib-stdint.h>" to obtain the stdint-types.
Remember, if the system already had a valid <stdint.h>, the generated
file will include it directly. No need for fuzzy HAVE_STDINT_H things...