2005-09-21  Stepan Kasal  <kasal@ucw.cz>

	* Makefile.in.in (dist): Fix two bugs for srcdir != builddir.

--- Makefile.in.in.sav	2005-09-21 13:34:38.000000000 +0200
+++ Makefile.in.in	2005-09-21 13:41:26.000000000 +0200
@@ -203,11 +203,12 @@
 	dists="$(DISTFILES)"; \
 	extra_dists="$(EXTRA_DISTFILES)"; \
 	for file in $$extra_dists; do \
-	  test -f $$file && dists="$$dists $$file"; \
+	  test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
 	done; \
 	for file in $$dists; do \
-	  ln $(srcdir)/$$file $(distdir) 2> /dev/null \
-	    || cp -p $(srcdir)/$$file $(distdir); \
+	  test -f $$file || file="$(srcdir)/$$file"; \
+	  ln $$file $(distdir) 2> /dev/null \
+	    || cp -p $$file $(distdir); \
 	done
 
 update-po: Makefile
