# Taken from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?r1=1.91&r2=1.92
# Should fix error
#   Configuration x86_64-host_unknown-linux-gnu not supported
# when configuring gcc-2.95 on x86_64 build for i686 target
# It's a bit silly, since tm_file refers to files that don't exist,
# but as long as x86_64 is just the build machine, that doesn't matter.

--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
+++ gcc-2.95.3/gcc/configure	2004-03-24 12:19:30.000000000 -0800
@@ -2929,6 +2929,9 @@
 	i[34567]86-*-*)
 		cpu_type=i386
 		;;
+	x86_64-*-*)
+		cpu_type=i386
+		;;
 	hppa*-*-*)
 		cpu_type=pa
 		;;
@@ -3643,6 +3646,19 @@
  			thread_file='posix'
  		fi
 		;;
+	x86_64-*-linux*)
+		xmake_file=x-linux
+		tm_file="i386/biarch64.h i386/i386.h i386/att.h linux.h i386/x86-64.h \
+			 i386/linux64.h"
+		tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
+		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
+		gnu_ld=yes
+		float_format=i386
+		if test x$enable_threads = xyes; then
+			thread_file='posix'
+		fi
+		;;
+
 	i[34567]86-*-gnu*)
 		float_format=i386
 		;;
