copysign: Does not require -lm on glibc systems.
authorBruno Haible <bruno@clisp.org>
Sat, 31 Jul 2010 10:11:19 +0000 (12:11 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 31 Jul 2010 10:11:19 +0000 (12:11 +0200)
ChangeLog
m4/mathfunc.m4
modules/copysign

index e2c0d061ab86b6e9f24cd7ad623e18128add9b60..574a1a300d1b7f2a4f24b91ef9f7209784d847e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       copysign: Does not require -lm on glibc systems.
+       * modules/copysign (configure.ac): Use gl_MATHFUNC, not
+       gl_COMMON_DOUBLE_MATHFUNC.
+       * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
+
 2010-07-31  Bruno Haible  <bruno@clisp.org>
 
        duplocale: Work around AIX 7.1 bug.
 2010-07-31  Bruno Haible  <bruno@clisp.org>
 
        duplocale: Work around AIX 7.1 bug.
index f6e091b46afe00004099707d89336110f64951fa..92faac904547bcf1a7139c8a88d7ca887a6e334f 100644 (file)
@@ -1,4 +1,4 @@
-# mathfunc.m4 serial 4
+# mathfunc.m4 serial 5
 dnl Copyright (C) 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl Copyright (C) 2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -65,8 +65,8 @@ AC_DEFUN([gl_MATHFUNC],
 # It sets FUNC_LIBM to empty or "-lm" accordingly.
 # FUNC must be one of the following functions, that are present on all systems
 # and provided by libm on all systems except MacOS X, BeOS, Haiku:
 # It sets FUNC_LIBM to empty or "-lm" accordingly.
 # FUNC must be one of the following functions, that are present on all systems
 # and provided by libm on all systems except MacOS X, BeOS, Haiku:
-#   acos asin atan atan2 cbrt copysign cos cosh erf erfc exp fmod hypot j0 j1
-#   jn lgamma log log10 log1p pow remainder sin sinh sqrt tan tanh y0 y1 yn
+#   acos asin atan atan2 cbrt cos cosh erf erfc exp fmod hypot j0 j1 jn lgamma
+#   log log10 log1p pow remainder sin sinh sqrt tan tanh y0 y1 yn
 
 AC_DEFUN([gl_COMMON_DOUBLE_MATHFUNC],
 [
 
 AC_DEFUN([gl_COMMON_DOUBLE_MATHFUNC],
 [
@@ -86,7 +86,6 @@ AC_DEFUN([gl_COMMON_DOUBLE_MATHFUNC_TEST],
   dnl gl_MATHFUNC([atan], [double], [(double)])
   dnl gl_MATHFUNC([atan2], [double], [(double, double)])
   dnl gl_MATHFUNC([cbrt], [double], [(double)])
   dnl gl_MATHFUNC([atan], [double], [(double)])
   dnl gl_MATHFUNC([atan2], [double], [(double, double)])
   dnl gl_MATHFUNC([cbrt], [double], [(double)])
-  dnl gl_MATHFUNC([copysign], [double], [(double, double)])
   dnl gl_MATHFUNC([cos], [double], [(double)])
   dnl gl_MATHFUNC([cosh], [double], [(double)])
   dnl gl_MATHFUNC([erf], [double], [(double)])
   dnl gl_MATHFUNC([cos], [double], [(double)])
   dnl gl_MATHFUNC([cosh], [double], [(double)])
   dnl gl_MATHFUNC([erf], [double], [(double)])
index c63280655afb504d69049dd76d84c3c7a471513e..5318e80271f876ad42244fe9261e38db780eed34 100644 (file)
@@ -7,7 +7,7 @@ m4/mathfunc.m4
 Depends-on:
 
 configure.ac:
 Depends-on:
 
 configure.ac:
-gl_COMMON_DOUBLE_MATHFUNC([copysign])
+gl_MATHFUNC([copysign], [double], [(double, double)])
 
 Makefile.am:
 
 
 Makefile.am: