diff --git a/fastjar/ChangeLog b/fastjar/ChangeLog
index 7b354255e2ec8adff33fa708ddfdd107bb395080..56538111880f65668d30462d02ad2b5b6edfc17b 100644
--- a/fastjar/ChangeLog
+++ b/fastjar/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-11  Kelley Cook  <kcook@gcc.gnu.org>
+
+	PR bootstrap/16164
+	* Makefile.am: Force fastjar.info to be built in build directory.
+	* Makefile.in: Regenerate.
+
 2004-07-23  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
 	* Makefile.am: Rename jar binary to fastjar.
diff --git a/fastjar/Makefile.am b/fastjar/Makefile.am
index 901e8995d8a865437b45e431fd477c9bb7cd5faa..dec4c5edd5cc380d2a28c207c8d82adec029e982 100644
--- a/fastjar/Makefile.am
+++ b/fastjar/Makefile.am
@@ -103,7 +103,7 @@ stamp-geninsrc: fastjar.1 grepjar.1 fastjar.info
 	-cp -p $(top_builddir)/fastjar.info $(srcdir)/fastjar.info
 	touch $@
 
-CLEANFILES = stamp-geninsrc
+CLEANFILES = stamp-geninsrc fastjar.info
 MAINTAINERCLEANFILES = $(srcdir)/fastjar.1 \
                        $(srcdir)/grepjar.1 \
                        $(srcdir)/fastjar.info
diff --git a/fastjar/Makefile.in b/fastjar/Makefile.in
index 2bef6898446e0c1409c30f758a96e35593298e62..3df1abc5f9cc8a3481ebe66ef0e5e1cb40f92149 100644
--- a/fastjar/Makefile.in
+++ b/fastjar/Makefile.in
@@ -77,7 +77,7 @@ CCLD = $(CC)
 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
 SOURCES = $(fastjar_SOURCES) $(grepjar_SOURCES)
 DIST_SOURCES = $(fastjar_SOURCES) $(grepjar_SOURCES)
-INFO_DEPS = $(srcdir)/fastjar.info
+INFO_DEPS = fastjar.info
 am__TEXINFO_TEX_DIR = $(srcdir)/../gcc/doc/include
 DVIS = fastjar.dvi
 PDFS = fastjar.pdf
@@ -259,7 +259,7 @@ POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@"
 # and info documentation prebuilt.  This feature is enabled via 
 # --enable-generated-files-in-srcdir in the configure script.
 @GENINSRC_TRUE@STAMP_GENINSRC = stamp-geninsrc
-CLEANFILES = stamp-geninsrc
+CLEANFILES = stamp-geninsrc fastjar.info
 MAINTAINERCLEANFILES = $(srcdir)/fastjar.1 \
                        $(srcdir)/grepjar.1 \
                        $(srcdir)/fastjar.info
@@ -268,7 +268,7 @@ all: config.h
 	$(MAKE) $(AM_MAKEFLAGS) all-am
 
 .SUFFIXES:
-.SUFFIXES: .1 .c .dvi .html .info .o .obj .pdf .pod .ps .texi
+.SUFFIXES: .1 .c .dvi .o .obj .pod .ps
 am--refresh:
 	@:
 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
@@ -393,10 +393,9 @@ fastjar-shift.o: shift.c
 fastjar-shift.obj: shift.c
 	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fastjar_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o fastjar-shift.obj `if test -f 'shift.c'; then $(CYGPATH_W) 'shift.c'; else $(CYGPATH_W) '$(srcdir)/shift.c'; fi`
 
-.texi.info:
+fastjar.info: fastjar.texi $(fastjar_TEXINFOS)
 	restore=: && \
 	backupdir="$(am__leading_dot)am$$$$" && \
-	am__cwd=`pwd` && cd $(srcdir) && \
 	rm -rf $$backupdir && mkdir $$backupdir && \
 	for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
 	  if test -f $$f; then \
@@ -404,39 +403,32 @@ fastjar-shift.obj: shift.c
 	    restore=mv; \
 	  fi; \
 	done; \
-	cd "$$am__cwd"; \
 	if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
-	 -o $@ $<; \
+	 -o $@ `test -f 'fastjar.texi' || echo '$(srcdir)/'`fastjar.texi; \
 	then \
 	  rc=0; \
-	  cd $(srcdir); \
 	else \
 	  rc=$$?; \
-	  cd $(srcdir) && \
 	  $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
 	fi; \
 	rm -rf $$backupdir; \
 	exit $$rc
 
-.texi.dvi:
+fastjar.dvi: fastjar.texi $(fastjar_TEXINFOS) 
 	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
 	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
-	$(TEXI2DVI) $<
+	$(TEXI2DVI) -o $@ `test -f 'fastjar.texi' || echo '$(srcdir)/'`fastjar.texi
 
-.texi.pdf:
+fastjar.pdf: fastjar.texi $(fastjar_TEXINFOS) 
 	TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
 	MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
-	$(TEXI2PDF) $<
+	$(TEXI2PDF) -o $@ `test -f 'fastjar.texi' || echo '$(srcdir)/'`fastjar.texi
 
-.texi.html:
+fastjar.html: fastjar.texi $(fastjar_TEXINFOS) 
 	$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
-	 -o $@ $<
+	 -o $@ `test -f 'fastjar.texi' || echo '$(srcdir)/'`fastjar.texi
 	if test ! -d $@ && test -d $(@:.html=); then \
 	  mv $(@:.html=) $@; else :; fi
-$(srcdir)/fastjar.info: fastjar.texi $(fastjar_TEXINFOS)
-fastjar.dvi: fastjar.texi $(fastjar_TEXINFOS)
-fastjar.pdf: fastjar.texi $(fastjar_TEXINFOS)
-fastjar.html: fastjar.texi $(fastjar_TEXINFOS)
 .dvi.ps:
 	$(DVIPS) -o $@ $<