1311128Sdim# stdint_h.m4 serial 3 (gettext-0.12)
2311128Sdimdnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
3353358Sdimdnl This file is free software, distributed under the terms of the GNU
4353358Sdimdnl General Public License.  As a special exception to the GNU General
5353358Sdimdnl Public License, this file may be distributed as part of a program
6311128Sdimdnl that contains a configuration script generated by Autoconf, under
7311128Sdimdnl the same distribution terms as the rest of that program.
8311128Sdim
9311128Sdimdnl From Paul Eggert.
10311128Sdim
11311128Sdim# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
12311128Sdim# doesn't clash with <sys/types.h>, and declares uintmax_t.
13311128Sdim
14311128SdimAC_DEFUN([jm_AC_HEADER_STDINT_H],
15311128Sdim[
16311128Sdim  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
17311128Sdim  [AC_TRY_COMPILE(
18311128Sdim    [#include <sys/types.h>
19311128Sdim#include <stdint.h>],
20311128Sdim    [uintmax_t i = (uintmax_t) -1;],
21311128Sdim    jm_ac_cv_header_stdint_h=yes,
22311128Sdim    jm_ac_cv_header_stdint_h=no)])
23311128Sdim  if test $jm_ac_cv_header_stdint_h = yes; then
24311128Sdim    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
25311128Sdim      [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
26311128Sdim       and declares uintmax_t. ])
27311128Sdim  fi
28311128Sdim])
29353358Sdim