Work around an autoconf limitation on line lengths.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Apr 2009 01:05:17 +0000 (03:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 6 Apr 2009 01:05:17 +0000 (03:05 +0200)
ChangeLog
gnulib-tool

index 41b9d685778fa00342444305a708559839c44e42..946f4006aef9543f49291c2f801f2d7b1d38001e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 2009-04-05  Bruno Haible  <bruno@clisp.org>
 
        Avoid test failure with libiconv-1.13.
index 56f5616ceb8dc294e32a4e73f884ebd6fe11ae35..74ea4fc8a9ef7454ad262109a78bfc320b8fd1aa 100755 (executable)
@@ -1953,7 +1953,14 @@ func_emit_lib_Makefile_am ()
   echo "## Process this file with automake to produce Makefile.in."
   func_emit_copyright_notice
   if test -n "$actioncmd"; then
   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=
   fi
   echo
   uses_subdirs=