comparison m4/math_h.m4 @ 15913:adefeca52f7d

New module 'copysignl'. * lib/math.in.h (copysignl): New declaration. * lib/copysignl.c: New file. * m4/copysignl.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL. * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL, HAVE_COPYSIGNL. * modules/copysignl: New file. * tests/test-math-c++.cc: Check the declaration of copysignl. * modules/math-c++-tests (Makefile.am): Link test-math-c++ against $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc. * doc/posix-functions/copysignl.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sun, 09 Oct 2011 15:53:49 +0200
parents bc21ee3c09aa
children 2a90104cab5b
comparison
equal deleted inserted replaced
15912:4dc23e6fdabd 15913:adefeca52f7d
1 # math_h.m4 serial 49 1 # math_h.m4 serial 50
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
38 38
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 [acosf acosl asinf asinl atanf atanl 42 [acosf acosl asinf asinl atanf atanl
43 ceilf ceill copysign copysignf cosf cosl coshf 43 ceilf ceill copysign copysignf copysignl cosf cosl coshf
44 expf expl fabsf floorf floorl fmodf frexpf frexpl 44 expf expl fabsf floorf floorl fmodf frexpf frexpl
45 ldexpf ldexpl logb logf logl log10f modff powf 45 ldexpf ldexpl logb logf logl log10f modff powf
46 round roundf roundl sinf sinl sinhf sqrtf sqrtl 46 round roundf roundl sinf sinl sinhf sqrtf sqrtl
47 tanf tanl tanhf trunc truncf truncl]) 47 tanf tanl tanhf trunc truncf truncl])
48 ]) 48 ])
68 GNULIB_CEIL=0; AC_SUBST([GNULIB_CEIL]) 68 GNULIB_CEIL=0; AC_SUBST([GNULIB_CEIL])
69 GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF]) 69 GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF])
70 GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL]) 70 GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL])
71 GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN]) 71 GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN])
72 GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF]) 72 GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF])
73 GNULIB_COPYSIGNL=0; AC_SUBST([GNULIB_COPYSIGNL])
73 GNULIB_COSF=0; AC_SUBST([GNULIB_COSF]) 74 GNULIB_COSF=0; AC_SUBST([GNULIB_COSF])
74 GNULIB_COSL=0; AC_SUBST([GNULIB_COSL]) 75 GNULIB_COSL=0; AC_SUBST([GNULIB_COSL])
75 GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF]) 76 GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF])
76 GNULIB_EXPF=0; AC_SUBST([GNULIB_EXPF]) 77 GNULIB_EXPF=0; AC_SUBST([GNULIB_EXPF])
77 GNULIB_EXPL=0; AC_SUBST([GNULIB_EXPL]) 78 GNULIB_EXPL=0; AC_SUBST([GNULIB_EXPL])
120 HAVE_ATANF=1; AC_SUBST([HAVE_ATANF]) 121 HAVE_ATANF=1; AC_SUBST([HAVE_ATANF])
121 HAVE_ATANL=1; AC_SUBST([HAVE_ATANL]) 122 HAVE_ATANL=1; AC_SUBST([HAVE_ATANL])
122 HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F]) 123 HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F])
123 HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN]) 124 HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
124 HAVE_COPYSIGNF=1; AC_SUBST([HAVE_COPYSIGNF]) 125 HAVE_COPYSIGNF=1; AC_SUBST([HAVE_COPYSIGNF])
126 HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
125 HAVE_COSF=1; AC_SUBST([HAVE_COSF]) 127 HAVE_COSF=1; AC_SUBST([HAVE_COSF])
126 HAVE_COSL=1; AC_SUBST([HAVE_COSL]) 128 HAVE_COSL=1; AC_SUBST([HAVE_COSL])
127 HAVE_COSHF=1; AC_SUBST([HAVE_COSHF]) 129 HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
128 HAVE_EXPF=1; AC_SUBST([HAVE_EXPF]) 130 HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
129 HAVE_EXPL=1; AC_SUBST([HAVE_EXPL]) 131 HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])