1275970Scy# inttypes_h.m4 serial 6 2275970Scydnl Copyright (C) 1997-2004 Free Software Foundation, Inc. 3275970Scydnl This file is free software; the Free Software Foundation 4275970Scydnl gives unlimited permission to copy and/or distribute it, 5275970Scydnl with or without modifications, as long as this notice is preserved. 6275970Scy 7275970Scydnl From Paul Eggert. 8275970Scy 9275970Scy# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, 10275970Scy# doesn't clash with <sys/types.h>, and declares uintmax_t. 11275970Scy 12275970ScyAC_DEFUN([gl_AC_HEADER_INTTYPES_H], 13275970Scy[ 14275970Scy AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, 15275970Scy [AC_TRY_COMPILE( 16275970Scy [#include <sys/types.h> 17275970Scy#include <inttypes.h>], 18275970Scy [uintmax_t i = (uintmax_t) -1;], 19275970Scy gl_cv_header_inttypes_h=yes, 20275970Scy gl_cv_header_inttypes_h=no)]) 21275970Scy if test $gl_cv_header_inttypes_h = yes; then 22275970Scy AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, 23275970Scy [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, 24275970Scy and declares uintmax_t. ]) 25275970Scy fi 26275970Scy]) 27275970Scy