changeset 29941:874028c6f9fe

Recommend to put gnulib-cache.m4 into EXTRA_DIST.
author Bruno Haible <bruno@clisp.org>
date Mon, 30 Jun 2008 01:18:28 +0200
parents 82583e5128b8
children 1c64d229a90f
files ChangeLog gnulib-tool
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 26 08:11:16 2008 +0200
+++ b/ChangeLog	Mon Jun 30 01:18:28 2008 +0200
@@ -1,3 +1,9 @@
+2008-06-29  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
+	EXTRA_DIST.
+	Reported by Sylvain Beucler <beuc@beuc.net>.
+
 2008-06-26  Jim Meyering  <meyering@redhat.com>
 
 	make several modules depend on the "open" module
--- a/gnulib-tool	Thu Jun 26 08:11:16 2008 +0200
+++ b/gnulib-tool	Mon Jun 30 01:18:28 2008 +0200
@@ -3409,6 +3409,18 @@
     fi
   fi
   echo "  - mention \"-I ${m4base}\" in ACLOCAL_AMFLAGS in Makefile.am,"
+  {
+    # Find the first parent directory of $m4base that contains a Makefile.am.
+    sed_last='s,^.*/\([^/][^/]*\)//*$,\1/,
+s,//*$,/,'
+    sed_butlast='s,[^/][^/]*//*$,,'
+    dir1="${m4base}/"; dir2=""
+    while test -n "$dir1" && test ! -f "${destdir}/${dir1}Makefile.am"; do
+      dir2=`echo "$dir1" | sed -e "$sed_last"`"$dir2"
+      dir1=`echo "$dir1" | sed -e "$sed_butlast"`
+    done
+    echo "  - mention ${dir2}gnulib-cache.m4 in EXTRA_DIST in ${dir1}Makefile.am."
+  }
   echo "  - invoke ${macro_prefix}_EARLY in $configure_ac, right after AC_PROG_CC,"
   echo "  - invoke ${macro_prefix}_INIT in $configure_ac."
 }