changeset 7489:d8600d38d977

* m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of lib/getloadavg.c using "ls -L", not "test -f". The latter would fail with a symlink, which is what coreutils' ./bootstrap now creates by default.
author Jim Meyering <jim@meyering.net>
date Thu, 12 Oct 2006 13:23:10 +0000
parents cd4a1972db26
children 8191ffaeaa2a
files ChangeLog m4/getloadavg.m4
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 12 13:17:48 2006 +0000
+++ b/ChangeLog	Thu Oct 12 13:23:10 2006 +0000
@@ -1,3 +1,10 @@
+2006-10-12  Jim Meyering  <jim@meyering.net>
+
+	* m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
+	lib/getloadavg.c using "ls -L", not "test -f".  The latter would
+	fail with a symlink, which is what coreutils' ./bootstrap now
+	creates by default.
+
 2006-10-12  Bruno Haible  <bruno@clisp.org>
 
 	* lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
--- a/m4/getloadavg.m4	Thu Oct 12 13:17:48 2006 +0000
+++ b/m4/getloadavg.m4	Thu Oct 12 13:23:10 2006 +0000
@@ -16,7 +16,7 @@
 [gl_have_func=no # yes means we've found a way to get the load average.
 
 # Make sure getloadavg.c is where it belongs, at configure-time.
-test -f "$srcdir/$1/getloadavg.c" ||
+ls -L "$srcdir/$1/getloadavg.c" >/dev/null ||
   AC_MSG_ERROR([$srcdir/$1/getloadavg.c is missing])
 
 gl_save_LIBS=$LIBS