changeset 16580:fdbe3125f81a

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.
author Bruno Haible <bruno@clisp.org>
date Tue, 06 Mar 2012 16:24:16 +0100
parents de008bfc0e6d
children 8e7ddab445f4
files ChangeLog m4/acosf.m4 m4/asinf.m4 m4/atan2f.m4 m4/atanf.m4 m4/cbrt.m4 m4/cbrtf.m4 m4/cbrtl.m4 m4/copysignf.m4 m4/copysignl.m4 m4/cosf.m4 m4/coshf.m4 m4/expf.m4 m4/fabsf.m4 m4/fabsl.m4 m4/fmaf.m4 m4/fmal.m4 m4/fmodf.m4 m4/fmodl.m4 m4/frexpf.m4 m4/frexpl.m4 m4/hypot.m4 m4/hypotf.m4 m4/hypotl.m4 m4/ldexpf.m4 m4/ldexpl.m4 m4/log10f.m4 m4/log10l.m4 m4/logb.m4 m4/logf.m4 m4/modff.m4 m4/modfl.m4 m4/powf.m4 m4/remainderf.m4 m4/remainderl.m4 m4/rintf.m4 m4/rintl.m4 m4/sinf.m4 m4/sinhf.m4 m4/sqrtf.m4 m4/tanf.m4 m4/tanhf.m4 modules/acosf modules/asinf modules/atan2f modules/atanf modules/cbrt modules/cbrtf modules/cbrtl modules/copysignf modules/copysignl modules/cosf modules/coshf modules/expf modules/fabsf modules/fabsl modules/fmaf modules/fmal modules/fmodf modules/fmodl modules/frexpf modules/frexpl modules/hypot modules/hypotf modules/hypotl modules/ldexpf modules/ldexpl modules/log10f modules/log10l modules/log1p modules/logb modules/logf modules/modff modules/modfl modules/powf modules/remainderf modules/remainderl modules/rintf modules/rintl modules/sinf modules/sinhf modules/sqrtf modules/tanf modules/tanhf
diffstat 84 files changed, 298 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,90 @@
+2012-03-06  Bruno Haible  <bruno@clisp.org>
+
+	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  <bruno@clisp.org>
 
 	math: Update module names in warnings.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_ACOS])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_ASIN])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_ATAN2])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_ATAN])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
 
+  dnl Persuade glibc <math.h> to declare cbrt().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   dnl Determine CBRT_LIBM.
   gl_COMMON_DOUBLE_MATHFUNC([cbrt])
 
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CBRT])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
   AC_REQUIRE([gl_FUNC_CBRT])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_COS])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_COSH])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_EXP])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_FABS])
 
+  dnl Persuade glibc <math.h> 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.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_FMOD])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
   AC_REQUIRE([gl_FUNC_FMOD])
 
+  dnl Persuade glibc <math.h> 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 <math.h>, and the
   dnl function produces NaN results for finite values.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_FREXP])
 
+  dnl Persuade glibc <math.h> 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.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
+
+  dnl Persuade glibc <math.h> 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 <math.h>.
   AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]])
+
   FREXPL_LIBM=
   if test $HAVE_DECL_FREXPL = 1; then
     gl_CHECK_FREXPL_NO_LIBM
--- 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 @@
   m4_divert_text([DEFAULTS], [gl_hypot_required=plain])
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
 
+  dnl Persuade glibc <math.h> to declare hypot().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   dnl Determine HYPOT_LIBM.
   gl_COMMON_DOUBLE_MATHFUNC([hypot])
 
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_HYPOT])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_HYPOT])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_LDEXP])
 
+  dnl Persuade glibc <math.h> 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.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
   AC_REQUIRE([gl_FUNC_ISNANL]) dnl for ISNANL_LIBM
+
+  dnl Persuade glibc <math.h> 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 <math.h>.
   AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include <math.h>]])
+
   LDEXPL_LIBM=
   if test $HAVE_DECL_LDEXPL = 1; then
     gl_CHECK_LDEXPL_NO_LIBM
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_LOG10])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
   AC_REQUIRE([gl_FUNC_LOG10])
 
+  dnl Persuade glibc <math.h> 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 <math.h>]])
 
--- 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 @@
 AC_DEFUN([gl_FUNC_LOGB],
 [
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
+
+  dnl Persuade glibc <math.h> to declare logb().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   dnl Test whether logb() is declared.
   AC_CHECK_DECLS([logb], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_logb" != yes; then
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_LOG])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_MODF])
 
+  dnl Persuade glibc <math.h> 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.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
 
+  dnl Persuade glibc <math.h> 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.
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_POW])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_REMAINDER])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
   AC_REQUIRE([gl_FUNC_REMAINDER])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
 
+  dnl Persuade glibc <math.h> 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 \
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_SIN])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_SINH])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_SQRT])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_TAN])
 
+  dnl Persuade glibc <math.h> 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"
--- 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_REQUIRE([gl_MATH_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_TANH])
 
+  dnl Persuade glibc <math.h> 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"
--- a/modules/acosf
+++ b/modules/acosf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 acos            [test $HAVE_ACOSF = 0]
 
 configure.ac:
--- a/modules/asinf
+++ b/modules/asinf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 asin            [test $HAVE_ASINF = 0]
 
 configure.ac:
--- a/modules/atan2f
+++ b/modules/atan2f
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 atan2           [test $HAVE_ATAN2F = 0]
 
 configure.ac:
--- a/modules/atanf
+++ b/modules/atanf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 atan            [test $HAVE_ATANF = 0]
 
 configure.ac:
--- a/modules/cbrt
+++ b/modules/cbrt
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 isfinite        [test $HAVE_CBRT = 0]
 fabs            [test $HAVE_CBRT = 0]
 frexp           [test $HAVE_CBRT = 0]
--- a/modules/cbrtf
+++ b/modules/cbrtf
@@ -9,6 +9,7 @@
 
 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]
--- a/modules/cbrtl
+++ b/modules/cbrtl
@@ -9,6 +9,7 @@
 
 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]
--- a/modules/copysignf
+++ b/modules/copysignf
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 signbit         [test $HAVE_COPYSIGNF = 0]
 
 configure.ac:
--- a/modules/copysignl
+++ b/modules/copysignl
@@ -8,6 +8,7 @@
 
 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]
 
--- a/modules/cosf
+++ b/modules/cosf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 cos             [test $HAVE_COSF = 0]
 
 configure.ac:
--- a/modules/coshf
+++ b/modules/coshf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 cosh            [test $HAVE_COSHF = 0]
 
 configure.ac:
--- a/modules/expf
+++ b/modules/expf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 exp             [test $HAVE_EXPF = 0]
 
 configure.ac:
--- a/modules/fabsf
+++ b/modules/fabsf
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 fabs            [test $HAVE_FABSF = 0]
 
 configure.ac:
--- a/modules/fabsl
+++ b/modules/fabsl
@@ -8,6 +8,7 @@
 
 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]
 
--- a/modules/fmaf
+++ b/modules/fmaf
@@ -11,6 +11,7 @@
 
 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]
--- a/modules/fmal
+++ b/modules/fmal
@@ -11,6 +11,7 @@
 
 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]
--- a/modules/fmodf
+++ b/modules/fmodf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 fmod            [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1]
 
 configure.ac:
--- a/modules/fmodl
+++ b/modules/fmodl
@@ -9,6 +9,7 @@
 
 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]
--- a/modules/frexpf
+++ b/modules/frexpf
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 frexp           [test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1]
 
 configure.ac:
--- a/modules/frexpl
+++ b/modules/frexpl
@@ -8,6 +8,7 @@
 
 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]
--- a/modules/hypot
+++ b/modules/hypot
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 isfinite        [test $REPLACE_HYPOT = 1]
 fabs            [test $REPLACE_HYPOT = 1]
 frexp           [test $REPLACE_HYPOT = 1]
--- a/modules/hypotf
+++ b/modules/hypotf
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 hypot           [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1]
 
 configure.ac:
--- a/modules/hypotl
+++ b/modules/hypotl
@@ -8,6 +8,7 @@
 
 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]
--- a/modules/ldexpf
+++ b/modules/ldexpf
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 ldexp           [test $HAVE_LDEXPF = 0]
 
 configure.ac:
--- a/modules/ldexpl
+++ b/modules/ldexpl
@@ -7,6 +7,7 @@
 
 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]
--- a/modules/log10f
+++ b/modules/log10f
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 log10           [test $HAVE_LOG10F = 0]
 
 configure.ac:
--- a/modules/log10l
+++ b/modules/log10l
@@ -7,6 +7,7 @@
 
 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]
 
--- a/modules/log1p
+++ b/modules/log1p
@@ -5,6 +5,7 @@
 m4/mathfunc.m4
 
 Depends-on:
+extensions
 
 configure.ac:
 gl_COMMON_DOUBLE_MATHFUNC([log1p])
--- a/modules/logb
+++ b/modules/logb
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 
 configure.ac:
 gl_FUNC_LOGB
--- a/modules/logf
+++ b/modules/logf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 log             [test $HAVE_LOGF = 0]
 
 configure.ac:
--- a/modules/modff
+++ b/modules/modff
@@ -8,6 +8,7 @@
 
 Depends-on:
 math
+extensions
 modf            [test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1]
 
 configure.ac:
--- a/modules/modfl
+++ b/modules/modfl
@@ -8,6 +8,7 @@
 
 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]
--- a/modules/powf
+++ b/modules/powf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 pow             [test $HAVE_POWF = 0]
 
 configure.ac:
--- a/modules/remainderf
+++ b/modules/remainderf
@@ -9,6 +9,7 @@
 
 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]
--- a/modules/remainderl
+++ b/modules/remainderl
@@ -9,6 +9,7 @@
 
 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]
--- a/modules/rintf
+++ b/modules/rintf
@@ -9,6 +9,7 @@
 
 Depends-on:
 math
+extensions
 
 configure.ac:
 gl_FUNC_RINTF
--- a/modules/rintl
+++ b/modules/rintl
@@ -9,6 +9,7 @@
 
 Depends-on:
 math
+extensions
 rint            [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
 
 configure.ac:
--- a/modules/sinf
+++ b/modules/sinf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 sin             [test $HAVE_SINF = 0]
 
 configure.ac:
--- a/modules/sinhf
+++ b/modules/sinhf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 sinh            [test $HAVE_SINHF = 0]
 
 configure.ac:
--- a/modules/sqrtf
+++ b/modules/sqrtf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 sqrt            [test $HAVE_SQRTF = 0]
 
 configure.ac:
--- a/modules/tanf
+++ b/modules/tanf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 tan             [test $HAVE_TANF = 0]
 
 configure.ac:
--- a/modules/tanhf
+++ b/modules/tanhf
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 tanh            [test $HAVE_TANHF = 0]
 
 configure.ac: