From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Modra To: Alexandre Oliva Cc: Andrew Cagney , Daniel Jacobowitz , Eli Zaretskii , gdb@sources.redhat.com, binutils@sources.redhat.com Subject: Re: po/POTFILES.in doesn't exist Date: Tue, 02 Oct 2001 18:44:00 -0000 Message-id: <20011003111435.Q1019@bubble.sa.bigpond.net.au> References: <3B707412.9080906@cygnus.com> <20010807161144.A28818@nevyn.them.org> <3BB2AC9A.1080306@cygnus.com> <20011002232138.L1019@bubble.sa.bigpond.net.au> X-SW-Source: 2001-10/msg00037.html On Tue, Oct 02, 2001 at 08:02:27PM -0300, Alexandre Oliva wrote: > On Oct 2, 2001, Alan Modra 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