aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-03 01:46:25 +0000
committerAlan Modra <amodra@gmail.com>2001-10-03 01:46:25 +0000
commit73fb1ef90a4bc8b4ae71b8dabb780ee5bde15499 (patch)
tree42a781038513cc4e5f54f5556af9fe38f54d069c
parent0a30e5973d97a046306cde1ae167101812a2d01c (diff)
downloadgdb-73fb1ef90a4bc8b4ae71b8dabb780ee5bde15499.zip
gdb-73fb1ef90a4bc8b4ae71b8dabb780ee5bde15499.tar.gz
gdb-73fb1ef90a4bc8b4ae71b8dabb780ee5bde15499.tar.bz2
* gettext.m4: Test po/POTFILES.in exists before trying to read.
-rw-r--r--ChangeLog4
-rw-r--r--gettext.m44
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f96331..509b7f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-03 Alan Modra <amodra@bigpond.net.au>
+
+ * gettext.m4: Test po/POTFILES.in exists before trying to read.
+
2001-09-29 Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
diff --git a/gettext.m4 b/gettext.m4
index 012bb81..82a5277 100644
--- a/gettext.m4
+++ b/gettext.m4
@@ -256,8 +256,8 @@ __argz_count __argz_stringify __argz_next])
dnl Generate list of files to be processed by xgettext which will
dnl be included in po/Makefile. But only do this if the po directory
- dnl exists in srcdir.
- if test -d $srcdir/po; then
+ dnl exists in srcdir and contains POTFILES.in.
+ if test -f $srcdir/po/POTFILES.in; then
test -d po || mkdir po
if test "x$srcdir" != "x."; then
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then