From c6fa939e01c95cffde53c802997bbf0a1623a91d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 5 Aug 2003 22:45:02 +0300 Subject: [PATCH] We should be checking C99 types using stdint.h, not inttypes.h --HG-- branch : HEAD --- configure.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f1e8e5131e..bcebb86db7 100644 --- a/configure.in +++ b/configure.in @@ -478,13 +478,19 @@ AC_DEFUN(AC_CHECKTYPE2, [ AC_MSG_RESULT($i_cv_type_$1) ]) -AC_CHECKTYPE2(uintmax_t, [#include ]) +dnl some systems don't have stdint.h, but still have some of the types +dnl defined elsewhere +AC_CHECK_HEADER(stdint.h, [ + stdint_include="#include " +]) + +AC_CHECKTYPE2(uintmax_t, [$stdint_include]) if test $i_cv_type_uintmax_t = yes; then AC_DEFINE(HAVE_UINTMAX_T,, Define if you have uintmax_t (C99 type)) fi dnl use separate check, eg. Solaris 8 has uintmax_t but not uint_fast32_t -AC_CHECKTYPE2(uint_fast32_t, [#include ]) +AC_CHECKTYPE2(uint_fast32_t, [$stdint_include]) if test $i_cv_type_uint_fast32_t = yes; then AC_DEFINE(HAVE_UINT_FAST32_T,, Define if you have uint_fast32_t (C99 type)) fi -- 2.47.3