]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
authorJim Meyering <jim@meyering.net>
Sun, 18 Jun 2006 14:00:34 +0000 (14:00 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 18 Jun 2006 14:00:34 +0000 (14:00 +0000)
configure fail, and request a bug report to inform us about it.
Add a comment that, barring reports to the contrary, in 2007 we'll
assume ftruncate is universally available.

m4/ChangeLog
m4/ftruncate.m4

index a8576d75b42519de153275a13905e2e359b2e85f..827bc22d0c73f96df1997097636427d9931d6e0e 100644 (file)
@@ -1,3 +1,10 @@
+2006-06-18  Jim Meyering  <jim@meyering.net>
+
+       * ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
+       configure fail, and request a bug report to inform us about it.
+       Add a comment that, barring reports to the contrary, in 2007 we'll
+       assume ftruncate is universally available.
+
 2006-06-10  Jim Meyering  <jim@meyering.net>
 
        Apply this change from gnulib:
index c225e48a3ed4e452cfcb7b4e09b9cdf76f81a3cb..b82705cca6d260e6000c2fbe83243f576469d3ee 100644 (file)
@@ -1,17 +1,29 @@
-#serial 8
+#serial 9
 
 # See if we need to emulate a missing ftruncate function using fcntl or chsize.
 
-# Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003-2006 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
+# FIXME: remove this macro, along with all uses of HAVE_FTRUNCATE in 2007,
+# if the check below provokes no reports.
+
 AC_DEFUN([gl_FUNC_FTRUNCATE],
 [
   AC_REPLACE_FUNCS(ftruncate)
   if test $ac_cv_func_ftruncate = no; then
     gl_PREREQ_FTRUNCATE
+    # If someone lacks ftruncate, make configure fail, and request
+    # a bug report to inform us about it.
+    if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
+      AC_MSG_FAILURE([Your system lacks the ftruncate function.
+         Please report this, along with the output of "uname -a", to the
+         bug-coreutils@gnu.org mailing list.  To continue past this point,
+         rerun configure with SKIP_FTRUNCATE_CHECK=yes set in the environment.
+         E.g., env SKIP_FTRUNCATE_CHECK=yes ./configure])
+    fi
   fi
 ])