summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-12-04 19:22:16 +0000
committerBruno Haible <bruno@clisp.org>2009-06-21 23:33:46 +0200
commita16654cc6e441f96114242d2b1fb68b1aedafb57 (patch)
treebdc63f65a98c54774b8cd619aad39fe0d5d42a89
parente7c9d1860fdbc5f4957a906e52cc69bb988b5357 (diff)
downloadexternal_gettext-a16654cc6e441f96114242d2b1fb68b1aedafb57.zip
external_gettext-a16654cc6e441f96114242d2b1fb68b1aedafb57.tar.gz
external_gettext-a16654cc6e441f96114242d2b1fb68b1aedafb57.tar.bz2
Avoid an annoying error message.
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/gettext.m44
2 files changed, 8 insertions, 1 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 5770237..5cac075 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-02 Bruno Haible <bruno@clisp.org>
+
+ * gettext.m4 (AM_GNU_GETTEXT): Avoid an error message if there is
+ no Rules-* file.
+
2001-12-04 Bruno Haible <bruno@clisp.org>
* javacomp.m4 (gt_JAVACOMP): Exclude at.dms.kjc.Main (KOPI) versions
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index fd3a42e..604edeb 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -374,7 +374,9 @@ AC_DEFUN([AM_PO_SUBDIRS],
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
for f in "$ac_dir"/Rules-*; do
- cat "$f" >> "$ac_dir/Makefile"
+ if test -f "$f"; then
+ cat "$f" >> "$ac_dir/Makefile"
+ fi
done
fi
;;