From bf6909e5ca400414ed0730b7f64e48d04993936e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 6 Mar 2012 16:24:16 +0100 Subject: [PATCH] math: Ensure declarations of math functions. * modules/acosf (Depends-on): Add 'extensions'. * modules/asinf (Depends-on): Likewise. * modules/atan2f (Depends-on): Likewise. * modules/atanf (Depends-on): Likewise. * modules/cbrt (Depends-on): Likewise. * modules/cbrtf (Depends-on): Likewise. * modules/cbrtl (Depends-on): Likewise. * modules/copysignf (Depends-on): Likewise. * modules/copysignl (Depends-on): Likewise. * modules/cosf (Depends-on): Likewise. * modules/coshf (Depends-on): Likewise. * modules/expf (Depends-on): Likewise. * modules/fabsf (Depends-on): Likewise. * modules/fabsl (Depends-on): Likewise. * modules/fmaf (Depends-on): Likewise. * modules/fmal (Depends-on): Likewise. * modules/fmodf (Depends-on): Likewise. * modules/fmodl (Depends-on): Likewise. * modules/frexpf (Depends-on): Likewise. * modules/frexpl (Depends-on): Likewise. * modules/hypot (Depends-on): Likewise. * modules/hypotf (Depends-on): Likewise. * modules/hypotl (Depends-on): Likewise. * modules/ldexpf (Depends-on): Likewise. * modules/ldexpl (Depends-on): Likewise. * modules/log10f (Depends-on): Likewise. * modules/log10l (Depends-on): Likewise. * modules/log1p (Depends-on): Likewise. * modules/logb (Depends-on): Likewise. * modules/logf (Depends-on): Likewise. * modules/modff (Depends-on): Likewise. * modules/modfl (Depends-on): Likewise. * modules/powf (Depends-on): Likewise. * modules/remainderf (Depends-on): Likewise. * modules/remainderl (Depends-on): Likewise. * modules/rintf (Depends-on): Likewise. * modules/rintl (Depends-on): Likewise. * modules/sinf (Depends-on): Likewise. * modules/sinhf (Depends-on): Likewise. * modules/sqrtf (Depends-on): Likewise. * modules/tanf (Depends-on): Likewise. * modules/tanhf (Depends-on): Likewise. * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS. * m4/asinf.m4 (gl_FUNC_ASINF): Likewise. * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise. * m4/atanf.m4 (gl_FUNC_ATANF): Likewise. * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise. * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise. * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise. * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise. * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise. * m4/cosf.m4 (gl_FUNC_COSF): Likewise. * m4/coshf.m4 (gl_FUNC_COSHF): Likewise. * m4/expf.m4 (gl_FUNC_EXPF): Likewise. * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise. * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise. * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise. * m4/fmal.m4 (gl_FUNC_FMAL): Likewise. * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise. * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise. * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise. * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise. * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise. * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise. * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise. * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise. * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise. * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise. * m4/logb.m4 (gl_FUNC_LOGB): Likewise. * m4/logf.m4 (gl_FUNC_LOGF): Likewise. * m4/modff.m4 (gl_FUNC_MODFF): Likewise. * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. * m4/powf.m4 (gl_FUNC_POWF): Likewise. * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise. * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise. * m4/rintf.m4 (gl_FUNC_RINTF): Likewise. * m4/rintl.m4 (gl_FUNC_RINTL): Likewise. * m4/sinf.m4 (gl_FUNC_SINF): Likewise. * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise. * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise. * m4/tanf.m4 (gl_FUNC_TANF): Likewise. * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise. --- ChangeLog | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ m4/acosf.m4 | 5 +++- m4/asinf.m4 | 5 +++- m4/atan2f.m4 | 5 +++- m4/atanf.m4 | 5 +++- m4/cbrt.m4 | 5 +++- m4/cbrtf.m4 | 5 +++- m4/cbrtl.m4 | 5 +++- m4/copysignf.m4 | 5 +++- m4/copysignl.m4 | 5 +++- m4/cosf.m4 | 5 +++- m4/coshf.m4 | 5 +++- m4/expf.m4 | 5 +++- m4/fabsf.m4 | 5 +++- m4/fabsl.m4 | 5 +++- m4/fmaf.m4 | 5 +++- m4/fmal.m4 | 5 +++- m4/fmodf.m4 | 5 +++- m4/fmodl.m4 | 5 +++- m4/frexpf.m4 | 5 +++- m4/frexpl.m4 | 7 ++++- m4/hypot.m4 | 5 +++- m4/hypotf.m4 | 5 +++- m4/hypotl.m4 | 5 +++- m4/ldexpf.m4 | 5 +++- m4/ldexpl.m4 | 7 ++++- m4/log10f.m4 | 5 +++- m4/log10l.m4 | 5 +++- m4/logb.m4 | 6 +++- m4/logf.m4 | 5 +++- m4/modff.m4 | 5 +++- m4/modfl.m4 | 5 +++- m4/powf.m4 | 5 +++- m4/remainderf.m4 | 5 +++- m4/remainderl.m4 | 5 +++- m4/rintf.m4 | 5 +++- m4/rintl.m4 | 5 +++- m4/sinf.m4 | 5 +++- m4/sinhf.m4 | 5 +++- m4/sqrtf.m4 | 5 +++- m4/tanf.m4 | 5 +++- m4/tanhf.m4 | 5 +++- modules/acosf | 1 + modules/asinf | 1 + modules/atan2f | 1 + modules/atanf | 1 + modules/cbrt | 1 + modules/cbrtf | 1 + modules/cbrtl | 1 + modules/copysignf | 1 + modules/copysignl | 1 + modules/cosf | 1 + modules/coshf | 1 + modules/expf | 1 + modules/fabsf | 1 + modules/fabsl | 1 + modules/fmaf | 1 + modules/fmal | 1 + modules/fmodf | 1 + modules/fmodl | 1 + modules/frexpf | 1 + modules/frexpl | 1 + modules/hypot | 1 + modules/hypotf | 1 + modules/hypotl | 1 + modules/ldexpf | 1 + modules/ldexpl | 1 + modules/log10f | 1 + modules/log10l | 1 + modules/log1p | 1 + modules/logb | 1 + modules/logf | 1 + modules/modff | 1 + modules/modfl | 1 + modules/powf | 1 + modules/remainderf | 1 + modules/remainderl | 1 + modules/rintf | 1 + modules/rintl | 1 + modules/sinf | 1 + modules/sinhf | 1 + modules/sqrtf | 1 + modules/tanf | 1 + modules/tanhf | 1 + 84 files changed, 298 insertions(+), 41 deletions(-) diff --git a/ChangeLog b/ChangeLog index d12dcfe9c..163e154d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,92 @@ 2012-03-06 Bruno Haible + math: Ensure declarations of math functions. + * modules/acosf (Depends-on): Add 'extensions'. + * modules/asinf (Depends-on): Likewise. + * modules/atan2f (Depends-on): Likewise. + * modules/atanf (Depends-on): Likewise. + * modules/cbrt (Depends-on): Likewise. + * modules/cbrtf (Depends-on): Likewise. + * modules/cbrtl (Depends-on): Likewise. + * modules/copysignf (Depends-on): Likewise. + * modules/copysignl (Depends-on): Likewise. + * modules/cosf (Depends-on): Likewise. + * modules/coshf (Depends-on): Likewise. + * modules/expf (Depends-on): Likewise. + * modules/fabsf (Depends-on): Likewise. + * modules/fabsl (Depends-on): Likewise. + * modules/fmaf (Depends-on): Likewise. + * modules/fmal (Depends-on): Likewise. + * modules/fmodf (Depends-on): Likewise. + * modules/fmodl (Depends-on): Likewise. + * modules/frexpf (Depends-on): Likewise. + * modules/frexpl (Depends-on): Likewise. + * modules/hypot (Depends-on): Likewise. + * modules/hypotf (Depends-on): Likewise. + * modules/hypotl (Depends-on): Likewise. + * modules/ldexpf (Depends-on): Likewise. + * modules/ldexpl (Depends-on): Likewise. + * modules/log10f (Depends-on): Likewise. + * modules/log10l (Depends-on): Likewise. + * modules/log1p (Depends-on): Likewise. + * modules/logb (Depends-on): Likewise. + * modules/logf (Depends-on): Likewise. + * modules/modff (Depends-on): Likewise. + * modules/modfl (Depends-on): Likewise. + * modules/powf (Depends-on): Likewise. + * modules/remainderf (Depends-on): Likewise. + * modules/remainderl (Depends-on): Likewise. + * modules/rintf (Depends-on): Likewise. + * modules/rintl (Depends-on): Likewise. + * modules/sinf (Depends-on): Likewise. + * modules/sinhf (Depends-on): Likewise. + * modules/sqrtf (Depends-on): Likewise. + * modules/tanf (Depends-on): Likewise. + * modules/tanhf (Depends-on): Likewise. + * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS. + * m4/asinf.m4 (gl_FUNC_ASINF): Likewise. + * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise. + * m4/atanf.m4 (gl_FUNC_ATANF): Likewise. + * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise. + * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise. + * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise. + * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise. + * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise. + * m4/cosf.m4 (gl_FUNC_COSF): Likewise. + * m4/coshf.m4 (gl_FUNC_COSHF): Likewise. + * m4/expf.m4 (gl_FUNC_EXPF): Likewise. + * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise. + * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise. + * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise. + * m4/fmal.m4 (gl_FUNC_FMAL): Likewise. + * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise. + * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise. + * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise. + * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise. + * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. + * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise. + * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise. + * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise. + * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise. + * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise. + * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise. + * m4/logb.m4 (gl_FUNC_LOGB): Likewise. + * m4/logf.m4 (gl_FUNC_LOGF): Likewise. + * m4/modff.m4 (gl_FUNC_MODFF): Likewise. + * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. + * m4/powf.m4 (gl_FUNC_POWF): Likewise. + * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise. + * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise. + * m4/rintf.m4 (gl_FUNC_RINTF): Likewise. + * m4/rintl.m4 (gl_FUNC_RINTL): Likewise. + * m4/sinf.m4 (gl_FUNC_SINF): Likewise. + * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise. + * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise. + * m4/tanf.m4 (gl_FUNC_TANF): Likewise. + * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise. + +2012-03-06 Bruno Haible + math: Update module names in warnings. * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl): Use specific module name in warn-on-use warning. diff --git a/m4/acosf.m4 b/m4/acosf.m4 index fe80cf051..7c25ca28d 100644 --- a/m4/acosf.m4 +++ b/m4/acosf.m4 @@ -1,4 +1,4 @@ -# acosf.m4 serial 1 +# acosf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ACOSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ACOS]) + dnl Persuade glibc to declare acosf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether acosf() exists. Assume that acosf(), if it exists, is dnl defined in the same library as acos(). save_LIBS="$LIBS" diff --git a/m4/asinf.m4 b/m4/asinf.m4 index 3590c1f8f..553b71547 100644 --- a/m4/asinf.m4 +++ b/m4/asinf.m4 @@ -1,4 +1,4 @@ -# asinf.m4 serial 1 +# asinf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ASINF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ASIN]) + dnl Persuade glibc to declare asinf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether asinf() exists. Assume that asinf(), if it exists, is dnl defined in the same library as asin(). save_LIBS="$LIBS" diff --git a/m4/atan2f.m4 b/m4/atan2f.m4 index bb3d870f4..bdca293b5 100644 --- a/m4/atan2f.m4 +++ b/m4/atan2f.m4 @@ -1,4 +1,4 @@ -# atan2f.m4 serial 1 +# atan2f.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ATAN2F], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN2]) + dnl Persuade glibc to declare atan2f(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether atan2f() exists. Assume that atan2f(), if it exists, is dnl defined in the same library as atan2(). save_LIBS="$LIBS" diff --git a/m4/atanf.m4 b/m4/atanf.m4 index 816bf1782..b37e08bc8 100644 --- a/m4/atanf.m4 +++ b/m4/atanf.m4 @@ -1,4 +1,4 @@ -# atanf.m4 serial 1 +# atanf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ATANF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN]) + dnl Persuade glibc to declare atanf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether atanf() exists. Assume that atanf(), if it exists, is dnl defined in the same library as atan(). save_LIBS="$LIBS" diff --git a/m4/cbrt.m4 b/m4/cbrt.m4 index 065f328af..61147902f 100644 --- a/m4/cbrt.m4 +++ b/m4/cbrt.m4 @@ -1,4 +1,4 @@ -# cbrt.m4 serial 1 +# cbrt.m4 serial 2 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_CBRT], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare cbrt(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine CBRT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([cbrt]) diff --git a/m4/cbrtf.m4 b/m4/cbrtf.m4 index f948bd494..b5bda931c 100644 --- a/m4/cbrtf.m4 +++ b/m4/cbrtf.m4 @@ -1,4 +1,4 @@ -# cbrtf.m4 serial 2 +# cbrtf.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_CBRTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc to declare cbrtf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cbrtf() exists. Assume that cbrtf(), if it exists, is dnl defined in the same library as cbrt(). save_LIBS="$LIBS" diff --git a/m4/cbrtl.m4 b/m4/cbrtl.m4 index f40a1c0d6..b2a1a7c1a 100644 --- a/m4/cbrtl.m4 +++ b/m4/cbrtl.m4 @@ -1,4 +1,4 @@ -# cbrtl.m4 serial 2 +# cbrtl.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_CBRTL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc to declare cbrtl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cbrtl() exists. Assume that cbrtl(), if it exists, is dnl defined in the same library as cbrt(). save_LIBS="$LIBS" diff --git a/m4/copysignf.m4 b/m4/copysignf.m4 index f706009a3..4f2825cb4 100644 --- a/m4/copysignf.m4 +++ b/m4/copysignf.m4 @@ -1,4 +1,4 @@ -# copysignf.m4 serial 1 +# copysignf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_COPYSIGNF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare copysignf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine COPYSIGNF_LIBM. gl_MATHFUNC([copysignf], [float], [(float, float)]) if test $gl_cv_func_copysignf_no_libm = no \ diff --git a/m4/copysignl.m4 b/m4/copysignl.m4 index 2b60472c4..cc1985222 100644 --- a/m4/copysignl.m4 +++ b/m4/copysignl.m4 @@ -1,4 +1,4 @@ -# copysignl.m4 serial 2 +# copysignl.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COPYSIGNL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare copysignl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine COPYSIGNL_LIBM. gl_MATHFUNC([copysignl], [long double], [(long double, long double)]) if test $gl_cv_func_copysignl_no_libm = no \ diff --git a/m4/cosf.m4 b/m4/cosf.m4 index 59350246e..021ee0363 100644 --- a/m4/cosf.m4 +++ b/m4/cosf.m4 @@ -1,4 +1,4 @@ -# cosf.m4 serial 1 +# cosf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COS]) + dnl Persuade glibc to declare cosf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cosf() exists. Assume that cosf(), if it exists, is dnl defined in the same library as cos(). save_LIBS="$LIBS" diff --git a/m4/coshf.m4 b/m4/coshf.m4 index e9bf574f4..33b3aa03a 100644 --- a/m4/coshf.m4 +++ b/m4/coshf.m4 @@ -1,4 +1,4 @@ -# coshf.m4 serial 1 +# coshf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COSHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COSH]) + dnl Persuade glibc to declare coshf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether coshf() exists. Assume that coshf(), if it exists, is dnl defined in the same library as cosh(). save_LIBS="$LIBS" diff --git a/m4/expf.m4 b/m4/expf.m4 index d6370bf9a..c57554a93 100644 --- a/m4/expf.m4 +++ b/m4/expf.m4 @@ -1,4 +1,4 @@ -# expf.m4 serial 1 +# expf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_EXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_EXP]) + dnl Persuade glibc to declare expf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether expf() exists. Assume that expf(), if it exists, is dnl defined in the same library as exp(). save_LIBS="$LIBS" diff --git a/m4/fabsf.m4 b/m4/fabsf.m4 index ef577a9b6..d2e7e7a3d 100644 --- a/m4/fabsf.m4 +++ b/m4/fabsf.m4 @@ -1,4 +1,4 @@ -# fabsf.m4 serial 2 +# fabsf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FABSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FABS]) + dnl Persuade glibc to declare fabsf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fabsf() exists. We cannot assume that fabsf(), if it dnl exists, is defined in the same library as fabs(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/fabsl.m4 b/m4/fabsl.m4 index fa4825bb3..530a13c8d 100644 --- a/m4/fabsl.m4 +++ b/m4/fabsl.m4 @@ -1,4 +1,4 @@ -# fabsl.m4 serial 1 +# fabsl.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FABSL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare fabsl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FABSL_LIBM. gl_MATHFUNC([fabsl], [long double], [(long double)]) if test $gl_cv_func_fabsl_no_libm = yes \ diff --git a/m4/fmaf.m4 b/m4/fmaf.m4 index 6ca1c972d..6174eb5a0 100644 --- a/m4/fmaf.m4 +++ b/m4/fmaf.m4 @@ -1,4 +1,4 @@ -# fmaf.m4 serial 1 +# fmaf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_FMAF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare fmaf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FMAF_LIBM. gl_MATHFUNC([fmaf], [float], [(float, float, float)]) if test $gl_cv_func_fmaf_no_libm = yes \ diff --git a/m4/fmal.m4 b/m4/fmal.m4 index eb379712e..3a5aba25e 100644 --- a/m4/fmal.m4 +++ b/m4/fmal.m4 @@ -1,4 +1,4 @@ -# fmal.m4 serial 1 +# fmal.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FMAL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare fmal(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FMAL_LIBM. gl_MATHFUNC([fmal], [long double], [(long double, long double, long double)]) if test $gl_cv_func_fmal_no_libm = yes \ diff --git a/m4/fmodf.m4 b/m4/fmodf.m4 index 812140d6f..d4279c796 100644 --- a/m4/fmodf.m4 +++ b/m4/fmodf.m4 @@ -1,4 +1,4 @@ -# fmodf.m4 serial 2 +# fmodf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_FMODF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc to declare fmodf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fmodf() exists. Assume that fmodf(), if it exists, is dnl defined in the same library as fmod(). save_LIBS="$LIBS" diff --git a/m4/fmodl.m4 b/m4/fmodl.m4 index ff72c8c12..93bc007ac 100644 --- a/m4/fmodl.m4 +++ b/m4/fmodl.m4 @@ -1,4 +1,4 @@ -# fmodl.m4 serial 3 +# fmodl.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_FMODL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc to declare fmodl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fmodl() is declared. dnl AIX 5.1 has fmodl() in libc but doesn't declare it in , and the dnl function produces NaN results for finite values. diff --git a/m4/frexpf.m4 b/m4/frexpf.m4 index 5a37b39b7..c7aa59d89 100644 --- a/m4/frexpf.m4 +++ b/m4/frexpf.m4 @@ -1,4 +1,4 @@ -# frexpf.m4 serial 3 +# frexpf.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FREXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FREXP]) + dnl Persuade glibc to declare frexpf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether frexpf() exists. We cannot assume that frexpf(), if it dnl exists, is defined in the same library as frexp(). This is not the case dnl on NetBSD, OpenBSD. diff --git a/m4/frexpl.m4 b/m4/frexpl.m4 index 8e71420a3..9df87ab82 100644 --- a/m4/frexpl.m4 +++ b/m4/frexpl.m4 @@ -1,4 +1,4 @@ -# frexpl.m4 serial 18 +# frexpl.m4 serial 19 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,9 +8,14 @@ AC_DEFUN([gl_FUNC_FREXPL], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + + dnl Persuade glibc to declare frexpl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Check whether it's declared. dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in . AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include ]]) + FREXPL_LIBM= if test $HAVE_DECL_FREXPL = 1; then gl_CHECK_FREXPL_NO_LIBM diff --git a/m4/hypot.m4 b/m4/hypot.m4 index 1837a01a0..52df05f32 100644 --- a/m4/hypot.m4 +++ b/m4/hypot.m4 @@ -1,4 +1,4 @@ -# hypot.m4 serial 2 +# hypot.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_HYPOT], m4_divert_text([DEFAULTS], [gl_hypot_required=plain]) AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare hypot(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine HYPOT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([hypot]) diff --git a/m4/hypotf.m4 b/m4/hypotf.m4 index c6185a543..b4ebe9e23 100644 --- a/m4/hypotf.m4 +++ b/m4/hypotf.m4 @@ -1,4 +1,4 @@ -# hypotf.m4 serial 2 +# hypotf.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_HYPOTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc to declare hypotf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether hypotf() exists. Assume that hypotf(), if it exists, is dnl defined in the same library as hypot(). save_LIBS="$LIBS" diff --git a/m4/hypotl.m4 b/m4/hypotl.m4 index 424e0a13d..e7b0eb242 100644 --- a/m4/hypotl.m4 +++ b/m4/hypotl.m4 @@ -1,4 +1,4 @@ -# hypotl.m4 serial 2 +# hypotl.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_HYPOTL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc to declare hypotl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether hypotl() exists. Assume that hypotl(), if it exists, is dnl defined in the same library as hypot(). save_LIBS="$LIBS" diff --git a/m4/ldexpf.m4 b/m4/ldexpf.m4 index 0ffa59169..1065b66b7 100644 --- a/m4/ldexpf.m4 +++ b/m4/ldexpf.m4 @@ -1,4 +1,4 @@ -# ldexpf.m4 serial 1 +# ldexpf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LDEXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LDEXP]) + dnl Persuade glibc to declare ldexpf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether ldexpf() exists. We cannot assume that ldexpf(), if it dnl exists, is defined in the same library as ldexp(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/ldexpl.m4 b/m4/ldexpl.m4 index 9c9ec6705..11f20ca2a 100644 --- a/m4/ldexpl.m4 +++ b/m4/ldexpl.m4 @@ -1,4 +1,4 @@ -# ldexpl.m4 serial 14 +# ldexpl.m4 serial 15 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,9 +9,14 @@ AC_DEFUN([gl_FUNC_LDEXPL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_ISNANL]) dnl for ISNANL_LIBM + + dnl Persuade glibc to declare ldexpl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Check whether it's declared. dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in . AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include ]]) + LDEXPL_LIBM= if test $HAVE_DECL_LDEXPL = 1; then gl_CHECK_LDEXPL_NO_LIBM diff --git a/m4/log10f.m4 b/m4/log10f.m4 index 4bac5e309..e9f8ce1a5 100644 --- a/m4/log10f.m4 +++ b/m4/log10f.m4 @@ -1,4 +1,4 @@ -# log10f.m4 serial 1 +# log10f.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LOG10F], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc to declare log10f(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether log10f() exists. Assume that log10f(), if it exists, is dnl defined in the same library as log10(). save_LIBS="$LIBS" diff --git a/m4/log10l.m4 b/m4/log10l.m4 index 6d72b6a9d..c124f891c 100644 --- a/m4/log10l.m4 +++ b/m4/log10l.m4 @@ -1,4 +1,4 @@ -# log10l.m4 serial 1 +# log10l.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_LOG10L], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc to declare log10l(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether log10l() is declared. On AIX 5.1 it is not declared. AC_CHECK_DECL([log10l], , [HAVE_DECL_LOG10L=0], [[#include ]]) diff --git a/m4/logb.m4 b/m4/logb.m4 index f6d1555fc..ee23e243d 100644 --- a/m4/logb.m4 +++ b/m4/logb.m4 @@ -1,4 +1,4 @@ -# logb.m4 serial 4 +# logb.m4 serial 5 dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,6 +7,10 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_LOGB], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + + dnl Persuade glibc to declare logb(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether logb() is declared. AC_CHECK_DECLS([logb], , , [[#include ]]) if test "$ac_cv_have_decl_logb" != yes; then diff --git a/m4/logf.m4 b/m4/logf.m4 index d10b5a67f..717ccee6d 100644 --- a/m4/logf.m4 +++ b/m4/logf.m4 @@ -1,4 +1,4 @@ -# logf.m4 serial 1 +# logf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LOGF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG]) + dnl Persuade glibc to declare logf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether logf() exists. Assume that logf(), if it exists, is dnl defined in the same library as log(). save_LIBS="$LIBS" diff --git a/m4/modff.m4 b/m4/modff.m4 index 3b117eccf..2d4fc72d9 100644 --- a/m4/modff.m4 +++ b/m4/modff.m4 @@ -1,4 +1,4 @@ -# modff.m4 serial 3 +# modff.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_MODFF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MODF]) + dnl Persuade glibc to declare modff(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether modff() exists. We cannot assume that modff(), if it dnl exists, is defined in the same library as modf(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/modfl.m4 b/m4/modfl.m4 index 634358ebf..705605078 100644 --- a/m4/modfl.m4 +++ b/m4/modfl.m4 @@ -1,4 +1,4 @@ -# modfl.m4 serial 1 +# modfl.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_MODFL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare modfl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether modfl() exists. We cannot assume that modfl(), if it dnl exists, is defined in the same library as modf(). This is not the case dnl on FreeBSD, Solaris. diff --git a/m4/powf.m4 b/m4/powf.m4 index 7a39d6b73..6f8c66d70 100644 --- a/m4/powf.m4 +++ b/m4/powf.m4 @@ -1,4 +1,4 @@ -# powf.m4 serial 1 +# powf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_POWF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_POW]) + dnl Persuade glibc to declare powf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether powf() exists. Assume that powf(), if it exists, is dnl defined in the same library as pow(). save_LIBS="$LIBS" diff --git a/m4/remainderf.m4 b/m4/remainderf.m4 index 19760edf7..b9f4d63de 100644 --- a/m4/remainderf.m4 +++ b/m4/remainderf.m4 @@ -1,4 +1,4 @@ -# remainderf.m4 serial 3 +# remainderf.m4 serial 4 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_REMAINDERF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc to declare remainderf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether remainderf() exists. Assume that remainderf(), if it exists, is dnl defined in the same library as remainder(). save_LIBS="$LIBS" diff --git a/m4/remainderl.m4 b/m4/remainderl.m4 index 60653bd20..912f18123 100644 --- a/m4/remainderl.m4 +++ b/m4/remainderl.m4 @@ -1,4 +1,4 @@ -# remainderl.m4 serial 3 +# remainderl.m4 serial 4 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_REMAINDERL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc to declare remainderl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether remainderl() exists. Assume that remainderl(), if it exists, is dnl defined in the same library as remainder(). save_LIBS="$LIBS" diff --git a/m4/rintf.m4 b/m4/rintf.m4 index 208626e6e..9e92a9757 100644 --- a/m4/rintf.m4 +++ b/m4/rintf.m4 @@ -1,4 +1,4 @@ -# rintf.m4 serial 2 +# rintf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_RINTF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare rintf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine RINTF_LIBM. gl_MATHFUNC([rintf], [float], [(float)]) if test $gl_cv_func_rintf_no_libm = no \ diff --git a/m4/rintl.m4 b/m4/rintl.m4 index 63e7665b6..f9d70c551 100644 --- a/m4/rintl.m4 +++ b/m4/rintl.m4 @@ -1,4 +1,4 @@ -# rintl.m4 serial 3 +# rintl.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_RINTL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare rintl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine RINTL_LIBM. gl_MATHFUNC([rintl], [long double], [(long double)]) if test $gl_cv_func_rintl_no_libm = no \ diff --git a/m4/sinf.m4 b/m4/sinf.m4 index 612da994a..bde7d633f 100644 --- a/m4/sinf.m4 +++ b/m4/sinf.m4 @@ -1,4 +1,4 @@ -# sinf.m4 serial 1 +# sinf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SINF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SIN]) + dnl Persuade glibc to declare sinf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sinf() exists. Assume that sinf(), if it exists, is dnl defined in the same library as sin(). save_LIBS="$LIBS" diff --git a/m4/sinhf.m4 b/m4/sinhf.m4 index e22068048..69f96da0b 100644 --- a/m4/sinhf.m4 +++ b/m4/sinhf.m4 @@ -1,4 +1,4 @@ -# sinhf.m4 serial 1 +# sinhf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SINHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SINH]) + dnl Persuade glibc to declare sinhf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sinhf() exists. Assume that sinhf(), if it exists, is dnl defined in the same library as sinh(). save_LIBS="$LIBS" diff --git a/m4/sqrtf.m4 b/m4/sqrtf.m4 index ded7c587c..c2e09ea37 100644 --- a/m4/sqrtf.m4 +++ b/m4/sqrtf.m4 @@ -1,4 +1,4 @@ -# sqrtf.m4 serial 1 +# sqrtf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SQRTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SQRT]) + dnl Persuade glibc to declare sqrtf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sqrtf() exists. Assume that sqrtf(), if it exists, is dnl defined in the same library as sqrt(). save_LIBS="$LIBS" diff --git a/m4/tanf.m4 b/m4/tanf.m4 index 7ecbe81e7..030abe95d 100644 --- a/m4/tanf.m4 +++ b/m4/tanf.m4 @@ -1,4 +1,4 @@ -# tanf.m4 serial 1 +# tanf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_TANF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TAN]) + dnl Persuade glibc to declare tanf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether tanf() exists. Assume that tanf(), if it exists, is dnl defined in the same library as tan(). save_LIBS="$LIBS" diff --git a/m4/tanhf.m4 b/m4/tanhf.m4 index f5336e5e0..b8410f30b 100644 --- a/m4/tanhf.m4 +++ b/m4/tanhf.m4 @@ -1,4 +1,4 @@ -# tanhf.m4 serial 1 +# tanhf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_TANHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TANH]) + dnl Persuade glibc to declare tanhf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether tanhf() exists. Assume that tanhf(), if it exists, is dnl defined in the same library as tanh(). save_LIBS="$LIBS" diff --git a/modules/acosf b/modules/acosf index aa61b0365..d91a2e23e 100644 --- a/modules/acosf +++ b/modules/acosf @@ -7,6 +7,7 @@ m4/acosf.m4 Depends-on: math +extensions acos [test $HAVE_ACOSF = 0] configure.ac: diff --git a/modules/asinf b/modules/asinf index 395ff2c27..4fae74fe0 100644 --- a/modules/asinf +++ b/modules/asinf @@ -7,6 +7,7 @@ m4/asinf.m4 Depends-on: math +extensions asin [test $HAVE_ASINF = 0] configure.ac: diff --git a/modules/atan2f b/modules/atan2f index f2d7dc65e..73b52bad2 100644 --- a/modules/atan2f +++ b/modules/atan2f @@ -7,6 +7,7 @@ m4/atan2f.m4 Depends-on: math +extensions atan2 [test $HAVE_ATAN2F = 0] configure.ac: diff --git a/modules/atanf b/modules/atanf index b17a4e621..1ff77684a 100644 --- a/modules/atanf +++ b/modules/atanf @@ -7,6 +7,7 @@ m4/atanf.m4 Depends-on: math +extensions atan [test $HAVE_ATANF = 0] configure.ac: diff --git a/modules/cbrt b/modules/cbrt index 3cb47118d..7b5109a12 100644 --- a/modules/cbrt +++ b/modules/cbrt @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $HAVE_CBRT = 0] fabs [test $HAVE_CBRT = 0] frexp [test $HAVE_CBRT = 0] diff --git a/modules/cbrtf b/modules/cbrtf index 06d2b7662..c07e8ecc0 100644 --- a/modules/cbrtf +++ b/modules/cbrtf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] fabsf [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] frexpf [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] diff --git a/modules/cbrtl b/modules/cbrtl index aec1cd732..83c074c37 100644 --- a/modules/cbrtl +++ b/modules/cbrtl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions cbrt [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] frexpl [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/copysignf b/modules/copysignf index a446046ca..f1bbdec03 100644 --- a/modules/copysignf +++ b/modules/copysignf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions signbit [test $HAVE_COPYSIGNF = 0] configure.ac: diff --git a/modules/copysignl b/modules/copysignl index f3d1fd3ef..4691cdba9 100644 --- a/modules/copysignl +++ b/modules/copysignl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions copysign [test $HAVE_COPYSIGNL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] signbit [test $HAVE_COPYSIGNL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/cosf b/modules/cosf index b9b9860c9..1deb1abd7 100644 --- a/modules/cosf +++ b/modules/cosf @@ -7,6 +7,7 @@ m4/cosf.m4 Depends-on: math +extensions cos [test $HAVE_COSF = 0] configure.ac: diff --git a/modules/coshf b/modules/coshf index d8a1e4be0..1eea14054 100644 --- a/modules/coshf +++ b/modules/coshf @@ -7,6 +7,7 @@ m4/coshf.m4 Depends-on: math +extensions cosh [test $HAVE_COSHF = 0] configure.ac: diff --git a/modules/expf b/modules/expf index 857fa25d4..48502083a 100644 --- a/modules/expf +++ b/modules/expf @@ -7,6 +7,7 @@ m4/expf.m4 Depends-on: math +extensions exp [test $HAVE_EXPF = 0] configure.ac: diff --git a/modules/fabsf b/modules/fabsf index 2b203d154..2d8088a27 100644 --- a/modules/fabsf +++ b/modules/fabsf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fabs [test $HAVE_FABSF = 0] configure.ac: diff --git a/modules/fabsl b/modules/fabsl index 686ddaa31..cf43a20e8 100644 --- a/modules/fabsl +++ b/modules/fabsl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fabs [{ test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] signbit [{ test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/fmaf b/modules/fmaf index fe80913e4..172f38968 100644 --- a/modules/fmaf +++ b/modules/fmaf @@ -11,6 +11,7 @@ m4/mathfunc.m4 Depends-on: math +extensions float [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] stdbool [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] verify [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] diff --git a/modules/fmal b/modules/fmal index 962632baa..8ec896ae1 100644 --- a/modules/fmal +++ b/modules/fmal @@ -11,6 +11,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fma [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] stdbool [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/fmodf b/modules/fmodf index fa49437a6..83f29bc53 100644 --- a/modules/fmodf +++ b/modules/fmodf @@ -7,6 +7,7 @@ m4/fmodf.m4 Depends-on: math +extensions fmod [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1] configure.ac: diff --git a/modules/fmodl b/modules/fmodl index 2a4a3c959..b8446f74f 100644 --- a/modules/fmodl +++ b/modules/fmodl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fmod [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] isfinite [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/frexpf b/modules/frexpf index efb2db72e..b4ecd88c1 100644 --- a/modules/frexpf +++ b/modules/frexpf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions frexp [test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1] configure.ac: diff --git a/modules/frexpl b/modules/frexpl index a06edc566..5e89907bd 100644 --- a/modules/frexpl +++ b/modules/frexpl @@ -8,6 +8,7 @@ m4/frexpl.m4 Depends-on: math +extensions frexp [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isnanl-nolibm [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fpucw [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/hypot b/modules/hypot index 5d1414ee7..c67ee23f0 100644 --- a/modules/hypot +++ b/modules/hypot @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $REPLACE_HYPOT = 1] fabs [test $REPLACE_HYPOT = 1] frexp [test $REPLACE_HYPOT = 1] diff --git a/modules/hypotf b/modules/hypotf index 82e09aa8a..f9328e2e6 100644 --- a/modules/hypotf +++ b/modules/hypotf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions hypot [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1] configure.ac: diff --git a/modules/hypotl b/modules/hypotl index e8ba6e537..7962cb1b7 100644 --- a/modules/hypotl +++ b/modules/hypotl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions hypot [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fabsl [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/ldexpf b/modules/ldexpf index 3c1f15c69..f2a9f37c1 100644 --- a/modules/ldexpf +++ b/modules/ldexpf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions ldexp [test $HAVE_LDEXPF = 0] configure.ac: diff --git a/modules/ldexpl b/modules/ldexpl index 35e52ab0c..69b222833 100644 --- a/modules/ldexpl +++ b/modules/ldexpl @@ -7,6 +7,7 @@ m4/ldexpl.m4 Depends-on: math +extensions ldexp [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isnanl [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fpucw [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/log10f b/modules/log10f index d6c5b8b1c..abcbaa64a 100644 --- a/modules/log10f +++ b/modules/log10f @@ -7,6 +7,7 @@ m4/log10f.m4 Depends-on: math +extensions log10 [test $HAVE_LOG10F = 0] configure.ac: diff --git a/modules/log10l b/modules/log10l index 6e4002141..16b49cd68 100644 --- a/modules/log10l +++ b/modules/log10l @@ -7,6 +7,7 @@ m4/log10l.m4 Depends-on: math +extensions log10 [test $HAVE_LOG10L = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] logl [test $HAVE_LOG10L = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/log1p b/modules/log1p index 955893b73..3470e8730 100644 --- a/modules/log1p +++ b/modules/log1p @@ -5,6 +5,7 @@ Files: m4/mathfunc.m4 Depends-on: +extensions configure.ac: gl_COMMON_DOUBLE_MATHFUNC([log1p]) diff --git a/modules/logb b/modules/logb index 7c93afbb0..9747473aa 100644 --- a/modules/logb +++ b/modules/logb @@ -7,6 +7,7 @@ m4/mathfunc.m4 Depends-on: math +extensions configure.ac: gl_FUNC_LOGB diff --git a/modules/logf b/modules/logf index a2e3f256b..7811af22f 100644 --- a/modules/logf +++ b/modules/logf @@ -7,6 +7,7 @@ m4/logf.m4 Depends-on: math +extensions log [test $HAVE_LOGF = 0] configure.ac: diff --git a/modules/modff b/modules/modff index 894bf67dc..9c510eb37 100644 --- a/modules/modff +++ b/modules/modff @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions modf [test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1] configure.ac: diff --git a/modules/modfl b/modules/modfl index c2f414b8a..4b0e94112 100644 --- a/modules/modfl +++ b/modules/modfl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions modf [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] truncl [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/powf b/modules/powf index 0f31ce2cf..d58be430d 100644 --- a/modules/powf +++ b/modules/powf @@ -7,6 +7,7 @@ m4/powf.m4 Depends-on: math +extensions pow [test $HAVE_POWF = 0] configure.ac: diff --git a/modules/remainderf b/modules/remainderf index e4f0600d7..98e64e86b 100644 --- a/modules/remainderf +++ b/modules/remainderf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions remainder [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] isfinite [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] signbit [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] diff --git a/modules/remainderl b/modules/remainderl index 4eb1c91bb..40272caf8 100644 --- a/modules/remainderl +++ b/modules/remainderl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions remainder [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] isfinite [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/rintf b/modules/rintf index 92b93a399..78e4edf37 100644 --- a/modules/rintf +++ b/modules/rintf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions configure.ac: gl_FUNC_RINTF diff --git a/modules/rintl b/modules/rintl index dac26185f..325f6a619 100644 --- a/modules/rintl +++ b/modules/rintl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions rint [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] configure.ac: diff --git a/modules/sinf b/modules/sinf index f3496871d..f79be4658 100644 --- a/modules/sinf +++ b/modules/sinf @@ -7,6 +7,7 @@ m4/sinf.m4 Depends-on: math +extensions sin [test $HAVE_SINF = 0] configure.ac: diff --git a/modules/sinhf b/modules/sinhf index f45bbe319..820882a75 100644 --- a/modules/sinhf +++ b/modules/sinhf @@ -7,6 +7,7 @@ m4/sinhf.m4 Depends-on: math +extensions sinh [test $HAVE_SINHF = 0] configure.ac: diff --git a/modules/sqrtf b/modules/sqrtf index 412364956..2517c0c5c 100644 --- a/modules/sqrtf +++ b/modules/sqrtf @@ -7,6 +7,7 @@ m4/sqrtf.m4 Depends-on: math +extensions sqrt [test $HAVE_SQRTF = 0] configure.ac: diff --git a/modules/tanf b/modules/tanf index 943f7c786..c5bde4b3c 100644 --- a/modules/tanf +++ b/modules/tanf @@ -7,6 +7,7 @@ m4/tanf.m4 Depends-on: math +extensions tan [test $HAVE_TANF = 0] configure.ac: diff --git a/modules/tanhf b/modules/tanhf index 44f606e75..c844649f7 100644 --- a/modules/tanhf +++ b/modules/tanhf @@ -7,6 +7,7 @@ m4/tanhf.m4 Depends-on: math +extensions tanh [test $HAVE_TANHF = 0] configure.ac: -- 2.11.0