timer-time: link explicitly with pthreads on glibc
[gnulib.git] / ChangeLog
index 1829df0..d470b30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,78 @@
+2012-03-10  Pádraig Brady  <P@draigBrady.com>
+
+       timer-time: link explicitly with pthreads on glibc
+       * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
+       to support static linking, when newer glibc is
+       detected, as that contains pthread emulation of
+       POSIX timer functions where required.
+       * modules/timer-time: Depend on threadlib to
+       pull in the appropriate library to link.
+
+2012-03-10  Bruno Haible  <bruno@clisp.org>
+
+       log* tests: More tests.
+       * tests/test-log.h: New file.
+       * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
+       (main): Invoke test_function.
+       * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
+       (main): Invoke test_function.
+       * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
+       (main): Invoke test_function.
+       * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+       tests/randomd.c.
+       (Makefile.am): Add randomd.c to test_log_SOURCES.
+       * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+       tests/randomf.c.
+       (Makefile.am): Add randomf.c to test_logf_SOURCES.
+       * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
+       tests/randoml.c.
+       (Depends-on): Add 'float'.
+       (Makefile.am): Add randoml.c to test_logl_SOURCES.
+
+2012-03-09  Bruno Haible  <bruno@clisp.org>
+
+       logl: Work around OSF/1 5.1 bug.
+       * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
+       * lib/logl.c (logl): If logf exists, use it and provide just the
+       workaround.
+       * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
+       (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
+       * modules/math (Makefile.am): Substitute REPLACE_LOGL.
+       * modules/logl (configure.ac): Consider REPLACE_LOGL.
+       (Depends-on): Update conditions.
+       * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
+
+2012-03-09  Bruno Haible  <bruno@clisp.org>
+
+       logf: Work around OSF/1 5.1 bug.
+       * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
+       * lib/logf.c (logf): If logf exists, use it and provide just the
+       workaround.
+       * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
+       (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
+       * modules/math (Makefile.am): Substitute REPLACE_LOGF.
+       * modules/logf (configure.ac): Consider REPLACE_LOGF.
+       (Depends-on): Update conditions.
+       * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
+
+2012-03-09  Bruno Haible  <bruno@clisp.org>
+
+       log: Work around OSF/1 5.1 bug.
+       * lib/math.in.h (log): New declaration.
+       * lib/log.c: New file.
+       * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
+       (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
+       * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
+       (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
+       * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
+       * modules/log (Files): Add lib/log.c.
+       (Depends-on): Add math.
+       (configure.ac): If REPLACE_LOG is 1, compile an override.
+       * tests/test-math-c++.cc: Check the declaration of log.
+       * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
+
 2012-03-09  Jim Meyering  <meyering@redhat.com>
 
        readtokens.c: adjust wording in a comment