2N/A# stdint_h.m4 serial 9
2N/Adnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/Adnl From Paul Eggert.
2N/A
2N/A# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
2N/A# doesn't clash with <sys/types.h>, and declares uintmax_t.
2N/A
2N/AAC_DEFUN([gl_AC_HEADER_STDINT_H],
2N/A[
2N/A AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h],
2N/A [AC_COMPILE_IFELSE(
2N/A [AC_LANG_PROGRAM(
2N/A [[#include <sys/types.h>
2N/A #include <stdint.h>]],
2N/A [[uintmax_t i = (uintmax_t) -1; return !i;]])],
2N/A [gl_cv_header_stdint_h=yes],
2N/A [gl_cv_header_stdint_h=no])])
2N/A if test $gl_cv_header_stdint_h = yes; then
2N/A AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1],
2N/A [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
2N/A and declares uintmax_t. ])
2N/A fi
2N/A])