This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: po/POTFILES.in doesn't exist


On Tue, Oct 02, 2001 at 08:02:27PM -0300, Alexandre Oliva wrote:
> On Oct  2, 2001, Alan Modra <amodra@bigpond.net.au> wrote:
> 
> >> > checking for xgettext... (cached) /usr/bin/xgettext
> >> > ./configure: ./po/POTFILES.in: No such file or directory
> 
> > This tweak should fix it.
> 
> > 	* gettext.m4: Test po/POTFILES.in exists before trying to read.
> 
> > Anybody have any objections to installing this?
> 
> Erhm...  IIRC, this file is imported from the GNU gettext
> distribution, so I'd rather not needlessly diverge.  Anyway, what's
> the point of having a `po' directory if it doesn't contain
> POTFILES.in?

bfd/po is a little unusual in that is has SRC-POTFILES.in and
BLD-POTFILES.in rather than plain POTFILES.in.  The bug has already
been fixed in getttext-0.10.40, and as far as diverging goes, it
looks like our gettext.m4 is very old (serial 3 vs. serial 10).

I'm applying this simpler patch.  I realised the -d test was redundant
10 seconds after sending my last email. :-(

Index: gettext.m4
===================================================================
RCS file: /cvs/src/src/gettext.m4,v
retrieving revision 1.1
diff -u -p -r1.1 gettext.m4
--- gettext.m4	2000/08/31 09:25:11	1.1
+++ gettext.m4	2001/10/03 01:15:56
@@ -256,8 +256,8 @@ __argz_count __argz_stringify __argz_nex
 
    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]