changeset 31156:60b56e01e401

Work around an autoconf limitation on line lengths.
author Bruno Haible <bruno@clisp.org>
date Mon, 06 Apr 2009 03:05:17 +0200
parents a495f8f9d6ac
children 6c2c5aba92d7
files ChangeLog gnulib-tool
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Apr 06 01:32:32 2009 +0200
+++ b/ChangeLog	Mon Apr 06 03:05:17 2009 +0200
@@ -1,3 +1,9 @@
+2009-04-05  Bruno Haible  <bruno@clisp.org>
+
+	Work around an autoconf limitation.
+	* gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
+	comment line if it would be longer than 3 KB.
+
 2009-04-05  Bruno Haible  <bruno@clisp.org>
 
 	Avoid test failure with libiconv-1.13.
--- a/gnulib-tool	Mon Apr 06 01:32:32 2009 +0200
+++ b/gnulib-tool	Mon Apr 06 03:05:17 2009 +0200
@@ -1953,7 +1953,14 @@
   echo "## Process this file with automake to produce Makefile.in."
   func_emit_copyright_notice
   if test -n "$actioncmd"; then
-    echo "# Reproduce by: $actioncmd"
+    # The maximum line length (excluding the terminating newline) of any file
+    # that is to be preprocessed by config.status is 3070.  config.status uses
+    # awk, and the HP-UX 11.00 awk fails if a line has length >= 3071;
+    # similarly, the IRIX 6.5 awk fails if a line has length >= 3072.
+    len=`echo "$actioncmd" | wc -c`
+    if test -n "$len" && test "$len" -le 3000; then
+      echo "# Reproduce by: $actioncmd"
+    fi
   fi
   echo
   uses_subdirs=