* argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
[gnulib.git] / m4 / strtod.m4
1 # strtod.m4 serial 4
2 dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_STRTOD],
8 [
9   AC_REQUIRE([AC_FUNC_STRTOD])
10   if test $ac_cv_func_strtod = no; then
11     AC_DEFINE(strtod, rpl_strtod,
12       [Define to rpl_strtod if the replacement function should be used.])
13     gl_PREREQ_STRTOD
14   fi
15 ])
16
17 # Prerequisites of lib/strtod.c.
18 # The need for pow() is already handled by AC_FUNC_STRTOD.
19 AC_DEFUN([gl_PREREQ_STRTOD], [
20   AC_REQUIRE([AC_HEADER_STDC])
21   AC_CHECK_FUNCS_ONCE(isascii)
22 ])