Blame m4/strtoumax.m4

Packit Service fdd496
# strtoumax.m4 serial 12
Packit Service fdd496
dnl Copyright (C) 2002-2004, 2006, 2009-2017 Free Software Foundation, Inc.
Packit Service fdd496
dnl This file is free software; the Free Software Foundation
Packit Service fdd496
dnl gives unlimited permission to copy and/or distribute it,
Packit Service fdd496
dnl with or without modifications, as long as this notice is preserved.
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_FUNC_STRTOUMAX],
Packit Service fdd496
[
Packit Service fdd496
  AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
Packit Service fdd496
Packit Service fdd496
  dnl On OSF/1 5.1 with cc, this function is declared but not defined.
Packit Service fdd496
  AC_CHECK_FUNCS_ONCE([strtoumax])
Packit Service fdd496
  AC_CHECK_DECLS_ONCE([strtoumax])
Packit Service fdd496
  if test "$ac_cv_have_decl_strtoumax" = yes; then
Packit Service fdd496
    if test "$ac_cv_func_strtoumax" != yes; then
Packit Service fdd496
      # HP-UX 11.11 has "#define strtoimax(...) ..." but no function.
Packit Service fdd496
      REPLACE_STRTOUMAX=1
Packit Service fdd496
    fi
Packit Service fdd496
  else
Packit Service fdd496
    HAVE_DECL_STRTOUMAX=0
Packit Service fdd496
  fi
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
# Prerequisites of lib/strtoumax.c.
Packit Service fdd496
AC_DEFUN([gl_PREREQ_STRTOUMAX], [
Packit Service fdd496
  AC_CHECK_DECLS([strtoull])
Packit Service fdd496
  AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
Packit Service fdd496
])