view m4/strtoll.m4 @ 5871:8b95519c71b9

* lib/chown.c (rpl_chown): Return -1 on failure. * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs of -1.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 20 May 2005 20:57:40 +0000
parents 87c42e194f4a
children 19c2e5121b2f
line wrap: on
line source

# strtoll.m4 serial 3
dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_FUNC_STRTOLL],
[
  dnl We don't need (and can't compile) the replacement strtoll
  dnl unless the type 'long long' exists.
  AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
  if test "$ac_cv_type_long_long" = yes; then
    AC_REPLACE_FUNCS(strtoll)
    if test $ac_cv_func_strtoll = no; then
      gl_PREREQ_STRTOLL
    fi
  fi
])

# Prerequisites of lib/strtoll.c.
AC_DEFUN([gl_PREREQ_STRTOLL], [
  :
])