+--- .common/src/gettext-0.10.38/po/Makefile.in.in Fri May 18 17:06:54 2001
++++ src/lyx/lyx-devel/po/Makefile.in.in Mon Oct 8 16:24:11 2001
+@@ -50,6 +50,8 @@
+ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
+ $(POFILES) $(GMOFILES)
+
++POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
++
+ POTFILES = \
+
+ CATALOGS = @CATALOGS@
+@@ -69,7 +71,10 @@
+
+ .po.gmo:
+ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+- && rm -f $$file && $(GMSGFMT) --statistics -o $$file $<
++ && case "$(GMSGFMT)" in \
++ */msgfmt) rm -f $$file && $(GMSGFMT) --statistics -o $$file $<;; \
++ *) touch $$file ;; \
++ esac
+
+
+ all: all-@USE_NLS@
+@@ -89,7 +94,6 @@
+ || ( rm -f $(srcdir)/$(PACKAGE).pot \
+ && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
+
+-
+ install: install-exec install-data
+ install-exec:
+ install-data: install-data-@USE_NLS@
+@@ -190,6 +194,26 @@
+ cd $(top_builddir) \
+ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
+ $(SHELL) ./config.status
++
++${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
++ rm -f $@-t \
++ && ( cd $(top_srcdir); \
++ grep -l "_(\".*\")" `find src -name \*.[hHC] -print` |\
++ grep -v frontends/kde |\
++ sed -e '/xforms.forms/d' | \
++ sort -f -n | uniq ) > $@-t \
++ && echo "src/ext_l10n.h" >> $@-t \
++ && mv $@-t $@
++
++$(top_srcdir)/src/ext_l10n.h: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/ui/default.ui $(top_srcdir)/lib/languages
++ sed < $(top_srcdir)/lib/ui/default.ui -n \
++ -e 's/.*[sS]ub[mM]enu[^"]*\("[^"]*"\).*/_(\1);/p' \
++ -e 's/.*[iI]tem[^"]*\("[^"]*"\).*/_(\1);/p' \
++ > $@
++ cat $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc | \
++ sed -n -e 's/^[sS]tyle[ ]*\([^ ]*\)$$/_("\1");/p' | \
++ sort | uniq >> $@
++ sed < $(top_srcdir)/lib/languages -e '/^#/d' -e 's/[^"]*\("[A-Za-z0-9][^"]*"\).*/_(\1);/' >> $@