comparison m4/math_h.m4 @ 15869:7fb8367bf966

New module 'powf'. * lib/math.in.h (powf): New declaration. * lib/powf.c: New file. * m4/powf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF. * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF. * modules/powf: New file. * tests/test-math-c++.cc: Check the declaration of powf. * doc/posix-functions/powf.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sat, 08 Oct 2011 22:45:54 +0200
parents 215da3b412e0
children 83e1d08997e4
comparison
equal deleted inserted replaced
15868:7df646579b3e 15869:7fb8367bf966
1 # math_h.m4 serial 35 1 # math_h.m4 serial 36
2 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. 2 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
39 dnl Check for declarations of anything we want to poison if the 39 dnl Check for declarations of anything we want to poison if the
40 dnl corresponding gnulib module is not in use. 40 dnl corresponding gnulib module is not in use.
41 gl_WARN_ON_USE_PREPARE([[#include <math.h>]], 41 gl_WARN_ON_USE_PREPARE([[#include <math.h>]],
42 [acosl asinl atanl ceilf ceill cosl expf expl fabsf floorf floorl fmodf 42 [acosl asinl atanl ceilf ceill cosl expf expl fabsf floorf floorl fmodf
43 frexpf frexpl 43 frexpf frexpl
44 ldexpf ldexpl logb logf logl log10f modff 44 ldexpf ldexpl logb logf logl log10f modff powf
45 round roundf roundl sinl sqrtf sqrtl 45 round roundf roundl sinl sqrtf sqrtl
46 tanl trunc truncf truncl]) 46 tanl trunc truncf truncl])
47 ]) 47 ])
48 48
49 AC_DEFUN([gl_MATH_MODULE_INDICATOR], 49 AC_DEFUN([gl_MATH_MODULE_INDICATOR],
85 GNULIB_LOGB=0; AC_SUBST([GNULIB_LOGB]) 85 GNULIB_LOGB=0; AC_SUBST([GNULIB_LOGB])
86 GNULIB_LOGF=0; AC_SUBST([GNULIB_LOGF]) 86 GNULIB_LOGF=0; AC_SUBST([GNULIB_LOGF])
87 GNULIB_LOGL=0; AC_SUBST([GNULIB_LOGL]) 87 GNULIB_LOGL=0; AC_SUBST([GNULIB_LOGL])
88 GNULIB_LOG10F=0; AC_SUBST([GNULIB_LOG10F]) 88 GNULIB_LOG10F=0; AC_SUBST([GNULIB_LOG10F])
89 GNULIB_MODFF=0; AC_SUBST([GNULIB_MODFF]) 89 GNULIB_MODFF=0; AC_SUBST([GNULIB_MODFF])
90 GNULIB_POWF=0; AC_SUBST([GNULIB_POWF])
90 GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND]) 91 GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND])
91 GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF]) 92 GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF])
92 GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL]) 93 GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL])
93 GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT]) 94 GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT])
94 GNULIB_SINL=0; AC_SUBST([GNULIB_SINL]) 95 GNULIB_SINL=0; AC_SUBST([GNULIB_SINL])
114 HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF]) 115 HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF])
115 HAVE_LOGF=1; AC_SUBST([HAVE_LOGF]) 116 HAVE_LOGF=1; AC_SUBST([HAVE_LOGF])
116 HAVE_LOGL=1; AC_SUBST([HAVE_LOGL]) 117 HAVE_LOGL=1; AC_SUBST([HAVE_LOGL])
117 HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F]) 118 HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F])
118 HAVE_MODFF=1; AC_SUBST([HAVE_MODFF]) 119 HAVE_MODFF=1; AC_SUBST([HAVE_MODFF])
120 HAVE_POWF=1; AC_SUBST([HAVE_POWF])
119 HAVE_SINL=1; AC_SUBST([HAVE_SINL]) 121 HAVE_SINL=1; AC_SUBST([HAVE_SINL])
120 HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF]) 122 HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF])
121 HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL]) 123 HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL])
122 HAVE_TANL=1; AC_SUBST([HAVE_TANL]) 124 HAVE_TANL=1; AC_SUBST([HAVE_TANL])
123 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL]) 125 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])