Blame m4/stdint_h.m4

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