Fix clock_gettime library access problem on recent GNU/Linux systems.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Feb 2005 07:19:43 +0000 (07:19 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Feb 2005 07:19:43 +0000 (07:19 +0000)
ChangeLog
lib/ChangeLog
m4/ChangeLog

index ea85b978d5b0d6d8eeb483281ac03510b13d2ec4..2964647b239155e9b7068f8837b098416a0a01e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
-2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+2005-02-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.1.
 
+       * src/Makefile.am (dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
+       (nanosec_libs): Add $(LIB_XNANOSLEEP).  Needed for newer GNU/Linux
+       hosts with clock_gettime.
+
+2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
        * NEWS: Describe user-visible change to dd.
        * src/Makefile.am (dd_LDADD, shred_LDADD, nanosec_libs):
        Remove $(LIB_CLOCK_GETTIME).  These functions now use
index 5fa2f782ec24982b5bdfee4c9ef8c959ea2cf6c3..60f76b2b67536a15d6d6294cf3a1e6ba5275f9f0 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.am (libfetish_a_SOURCES): Remove xnanosleep.c,
+       xnanosleep.h; now done by ../m4/xnanosleep.m4 automatically.
+
 2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * gethrxtime.h, gethrxtime.c, xtime.h: New files.
index 0e3804ce69306c103651d4d9a07516af21ee00e1..ca3ac1b31dd34a58e8ee2497f6c36f8b0699aa31 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xnanosleep.m4: New file.
+       * gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Require gl_CLOCK_TIME,
+       gl_USE_SYSTEM_EXTENSIONS.  Check whether CLOCK_MONOTONIC is
+       defined, and set LIB_GETHRXTIME accordingly.  This is needed
+       for newer GNU/Linux systems that have clock_gettime, so that they
+       link in the appropriate library for it when needed.
+       * prereq.m4 (gl_PREREQ): Require gl_XNANOSLEEP.
+
 2005-02-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * gethrxtime.m4: New file.