From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Modra To: Andrew Cagney Cc: Alexandre Oliva , 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 06:51:00 -0000 Message-id: <20011002232138.L1019@bubble.sa.bigpond.net.au> References: <3B707412.9080906@cygnus.com> <20010807161144.A28818@nevyn.them.org> <3BB2AC9A.1080306@cygnus.com> X-SW-Source: 2001-10/msg00022.html > > 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? -- Alan Modra 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/02 12:43:15 @@ -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 -d $srcdir/po && 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