X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstrtoumax.m4;h=58b310de85ade10ae35a5dfe4986c63d04dbc9b6;hb=76565cde8c2a80e85439e164c7598b18649a85ca;hp=5450037c1bb1054755a73b3bc2f5d746c72504d8;hpb=1e6979e8bb29cbb42d09f09c79fbcaa9f57a44a3;p=gnulib.git diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 index 5450037c1..58b310de8 100644 --- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 @@ -1,26 +1,18 @@ -# strtoumax.m4 serial 8 -dnl Copyright (C) 2002, 2003, 2004, 2006, 2009, 2010 Free Software Foundation, -dnl Inc. +# strtoumax.m4 serial 10 +dnl Copyright (C) 2002-2004, 2006, 2009-2011 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_STRTOUMAX], [ - AC_CACHE_CHECK([whether defines strtoumax as a macro], - gl_cv_func_strtoumax_macro, - [AC_EGREP_CPP([inttypes_h_defines_strtoumax], [#include -#ifdef strtoumax - inttypes_h_defines_strtoumax -#endif], - gl_cv_func_strtoumax_macro=yes, - gl_cv_func_strtoumax_macro=no)]) + AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) - if test "$gl_cv_func_strtoumax_macro" != yes; then - AC_REPLACE_FUNCS([strtoumax]) - if test $ac_cv_func_strtoumax = no; then - gl_PREREQ_STRTOUMAX - fi + AC_CHECK_DECLS_ONCE([strtoumax]) + if test "$ac_cv_have_decl_strtoumax" != yes; then + HAVE_DECL_STRTOUMAX=0 + + AC_CHECK_FUNCS([strtoumax]) fi ])