diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-06 16:27:41 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-06 16:27:41 +0200 |
commit | 4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb (patch) | |
tree | 852cde1e5bef3e46c5415884e283ef874f8eed73 /configure.ac | |
parent | Fix typo in comment (INT64_MAX -> UINT64_MAX). (diff) | |
download | xz-4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb.tar.xz |
Introduced compatibility with systems that have pre-C99
or no inttypes.h. This is useful when the compiler has
good enough support for C99, but libc headers don't.
Changed liblzma API so that sys/types.h and inttypes.h
have to be #included before #including lzma.h. On systems
that don't have C99 inttypes.h, it's the problem of the
applications to provide the required types and macros
before #including lzma.h.
If lzma.h defined the missing types and macros, it could
conflict with third-party applications whose configure
has detected that the types are missing and defined them
in config.h already. An alternative would have been
introducing lzma_uint32 and similar types, but that would
just be an extra pain on modern systems.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e0b394a5..514408e8 100644 --- a/configure.ac +++ b/configure.ac @@ -392,10 +392,21 @@ AC_CHECK_HEADERS([assert.h errno.h byteswap.h sys/param.h sys/sysctl.h], # Checks for typedefs, structures, and compiler characteristics. ############################################################################### -AC_HEADER_STDBOOL AC_C_INLINE AC_C_RESTRICT +AC_HEADER_STDBOOL + +AC_TYPE_UINT8_T +AC_TYPE_INT32_T +AC_TYPE_UINT32_T +AC_TYPE_INT64_T +AC_TYPE_UINT64_T +AC_TYPE_UINTPTR_T + +AC_CHECK_SIZEOF([unsigned long]) +AC_CHECK_SIZEOF([size_t]) + # The command line tool can copy high resolution timestamps if such # information is availabe in struct stat. Otherwise one second accuracy # is used. Most systems seem to have st_xtim but BSDs have st_xtimespec. |