Mercurial > hg > octave-kai > gnulib-hg
diff 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 (2011-10-09) |
parents | bc21ee3c09aa |
children | 2a90104cab5b |
line wrap: on
line diff
--- a/m4/math_h.m4 +++ b/m4/math_h.m4 @@ -1,4 +1,4 @@ -# math_h.m4 serial 49 +# math_h.m4 serial 50 dnl Copyright (C) 2007-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, @@ -40,7 +40,7 @@ dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include <math.h>]], [acosf acosl asinf asinl atanf atanl - ceilf ceill copysign copysignf cosf cosl coshf + ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl fabsf floorf floorl fmodf frexpf frexpl ldexpf ldexpl logb logf logl log10f modff powf round roundf roundl sinf sinl sinhf sqrtf sqrtl @@ -70,6 +70,7 @@ GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL]) GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN]) GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF]) + GNULIB_COPYSIGNL=0; AC_SUBST([GNULIB_COPYSIGNL]) GNULIB_COSF=0; AC_SUBST([GNULIB_COSF]) GNULIB_COSL=0; AC_SUBST([GNULIB_COSL]) GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF]) @@ -122,6 +123,7 @@ HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F]) HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN]) HAVE_COPYSIGNF=1; AC_SUBST([HAVE_COPYSIGNF]) + HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL]) HAVE_COSF=1; AC_SUBST([HAVE_COSF]) HAVE_COSL=1; AC_SUBST([HAVE_COSL]) HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])