Blame config/stdint_h.m4

Packit Service 706eca
# stdint_h.m4 serial 3 (gettext-0.12)
Packit Service 706eca
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
Packit Service 706eca
dnl This file is free software, distributed under the terms of the GNU
Packit Service 706eca
dnl General Public License.  As a special exception to the GNU General
Packit Service 706eca
dnl Public License, this file may be distributed as part of a program
Packit Service 706eca
dnl that contains a configuration script generated by Autoconf, under
Packit Service 706eca
dnl the same distribution terms as the rest of that program.
Packit Service 706eca
Packit Service 706eca
dnl From Paul Eggert.
Packit Service 706eca
Packit Service 706eca
# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
Packit Service 706eca
# doesn't clash with <sys/types.h>, and declares uintmax_t.
Packit Service 706eca
Packit Service 706eca
AC_DEFUN([jm_AC_HEADER_STDINT_H],
Packit Service 706eca
[
Packit Service 706eca
  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
Packit Service 706eca
  [AC_TRY_COMPILE(
Packit Service 706eca
    [#include <sys/types.h>
Packit Service 706eca
#include <stdint.h>],
Packit Service 706eca
    [uintmax_t i = (uintmax_t) -1;],
Packit Service 706eca
    jm_ac_cv_header_stdint_h=yes,
Packit Service 706eca
    jm_ac_cv_header_stdint_h=no)])
Packit Service 706eca
  if test $jm_ac_cv_header_stdint_h = yes; then
Packit Service 706eca
    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
Packit Service 706eca
      [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
Packit Service 706eca
       and declares uintmax_t. ])
Packit Service 706eca
  fi
Packit Service 706eca
])