view modules/strtoumax @ 35248:dd8cc782c33d

strtoumax: Avoid link error on OSF/1 with DTK cc. * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is defined as a function. * modules/strtoumax (Depends-on, configure.ac): Test only whether strtoumax is defined, not whether it is declared.
author Bruno Haible <bruno@clisp.org>
date Fri, 02 Sep 2011 01:36:31 +0200
parents 4ee123f63c70
children d4beb8189862
line wrap: on
line source

Description:
strtoumax() function: convert string to 'uintmax_t'.

Files:
lib/strtoimax.c
lib/strtoumax.c
m4/longlong.m4
m4/strtoumax.m4

Depends-on:
inttypes-incomplete
verify          [test $ac_cv_func_strtoumax = no]
stdint          [test $ac_cv_func_strtoumax = no]
strtoull        [test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes]

configure.ac:
gl_FUNC_STRTOUMAX
if test $ac_cv_func_strtoumax = no; then
  AC_LIBOBJ([strtoumax])
  gl_PREREQ_STRTOUMAX
fi
gl_INTTYPES_MODULE_INDICATOR([strtoumax])

Makefile.am:

Include:
<inttypes.h>

License:
LGPL

Maintainer:
Paul Eggert