OSDN Git Service

* Make-lang.in (stmp-f2c.h): Don't configure the runtime
[pf3gnuchains/gcc-fork.git] / gcc / configure.in
index 17ac2f4..4cc80d2 100644 (file)
@@ -24,7 +24,6 @@
 AC_INIT(tree.c)
 AC_CONFIG_HEADER(config.h:config.in)
 
-native_prefix=/usr
 remove=rm
 hard_link=ln
 symbolic_link='ln -s'
@@ -124,21 +123,27 @@ AC_CANONICAL_SYSTEM
 # Find some useful tools
 AC_PROG_AWK
 AC_PROG_LEX
-AC_PROG_LN_S
+GCC_PROG_LN
+GCC_PROG_LN_S
 AC_PROG_RANLIB
 AC_PROG_YACC
-AC_PROG_INSTALL
+EGCS_PROG_INSTALL
 
 # Find the native compiler
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
+AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h varargs.h sys/varargs.h)
 
 GCC_NEED_DECLARATION(malloc)
 GCC_NEED_DECLARATION(realloc)
+GCC_NEED_DECLARATION(calloc)
 GCC_NEED_DECLARATION(free)
 
+AC_DECL_SYS_SIGLIST
+
+AC_CHECK_FUNCS(strerror strtoul bsearch)
+
 # File extensions
 manext='.1'
 objext='.o'
@@ -146,7 +151,6 @@ AC_SUBST(manext)
 AC_SUBST(objext)
 
 build_xm_file=
-build_broken_install=
 build_install_headers_dir=install-headers-tar
 build_exeext=
 host_xm_file=
@@ -174,8 +178,6 @@ for machine in $build $host $target; do
        use_collect2=
        # Set this to override the default target model.
        target_cpu_default=
-       # Set this to force use of install.sh.
-       broken_install=
        # Set this to control which fixincludes program to use.
        fixincludes=fixincludes
        # Set this to control how the header file directory is installed.
@@ -275,15 +277,25 @@ for machine in $build $host $target; do
                fixincludes=Makefile.in
                gas=yes gnu_ld=yes
                ;;
+       alpha*-*-linux-gnulibc1*)
+               tm_file="${tm_file} alpha/linux.h alpha/elf.h"
+               xm_file="${xm_file} alpha/xm-linux.h"
+               target_cpu_default="MASK_GAS"
+               tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
+               xmake_file=none
+               fixincludes=Makefile.in
+               gas=yes gnu_ld=yes
+               if [[ x$enable_threads = xyes ]]; then
+                       thread_file='posix'
+               fi
+               ;;
        alpha*-*-linux-gnu*)
                tm_file="${tm_file} alpha/linux.h alpha/elf.h"
                xm_file="${xm_file} alpha/xm-linux.h"
                target_cpu_default="MASK_GAS"
-               gas=no
                tmake_file="t-linux alpha/t-linux"
                xmake_file=none
                fixincludes=Makefile.in
-               extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                gas=yes gnu_ld=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='posix'
@@ -298,7 +310,6 @@ for machine in $build $host $target; do
                then
                        extra_passes="mips-tfile mips-tdump"
                fi
-               broken_install=yes
                use_collect2=yes
                # Some versions of OSF4 (specifically X4.0-9 296.7) have
                # a broken tar, so we use cpio instead.
@@ -318,7 +329,6 @@ for machine in $build $host $target; do
                then
                        extra_passes="mips-tfile mips-tdump"
                fi
-               broken_install=yes
                use_collect2=yes
                ;;
        alpha*-dec-osf1.2)
@@ -331,7 +341,6 @@ for machine in $build $host $target; do
                then
                        extra_passes="mips-tfile mips-tdump"
                fi
-               broken_install=yes
                use_collect2=yes
                ;;
        alpha*-*-osf*)
@@ -343,7 +352,6 @@ for machine in $build $host $target; do
                then
                        extra_passes="mips-tfile mips-tdump"
                fi
-               broken_install=yes
                use_collect2=yes
                ;;
        alpha*-*-winnt3*)
@@ -369,6 +377,9 @@ for machine in $build $host $target; do
                tmake_file=alpha/t-vms
                fixincludes=Makefile.in
                ;;
+       arc-*-elf*)
+               extra_parts="crtinit.o crtfini.o"
+               ;;
        arm-*-coff* | armel-*-coff*)
                tm_file=arm/coff.h
                tmake_file=arm/t-bare
@@ -402,8 +413,8 @@ for machine in $build $host $target; do
                tm_file=arm/netbsd.h
                xm_file=arm/xm-netbsd.h
                tmake_file=arm/t-netbsd
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                use_collect2=yes
                ;;
        arm-*-linux-gnuaout*)           # ARM Linux
@@ -413,7 +424,6 @@ for machine in $build $host $target; do
                tm_file=arm/linux-gas.h
                tmake_file=arm/t-linux
                fixincludes=Makefile.in
-               broken_install=yes
                gnu_ld=yes
                ;;
        arm-*-aout)
@@ -451,7 +461,6 @@ for machine in $build $host $target; do
                extra_headers=va-clipper.h
                extra_parts="crtbegin.o crtend.o"
                install_headers_dir=install-headers-cpio
-               broken_install=yes
                ;;
        dsp16xx-*)
                ;;
@@ -465,36 +474,57 @@ for machine in $build $host $target; do
                float_format=i32
                ;;
        hppa1.1-*-pro*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
                xm_file=pa/xm-papro.h
                tmake_file=pa/t-pro
                ;;
        hppa1.1-*-osf*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-osf.h"
                use_collect2=yes
                fixincludes=Makefile.in
                ;;
        hppa1.1-*-rtems*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
                xm_file=pa/xm-papro.h
                tmake_file=pa/t-pro
                ;;
        hppa1.0-*-osf*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-osf.h"
                use_collect2=yes
                fixincludes=Makefile.in
                ;;
        hppa1.1-*-bsd*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                use_collect2=yes
                fixincludes=Makefile.in
                ;;
        hppa1.0-*-bsd*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                use_collect2=yes
                fixincludes=Makefile.in
                ;;
        hppa1.0-*-hpux7*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -502,11 +532,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.0-*-hpux8.0[[0-2]]*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-hpux.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -516,11 +548,13 @@ for machine in $build $host $target; do
                else
                        tm_file="pa/pa-oldas.h ${tm_file}"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.1-*-hpux8.0[[0-2]]*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h"
                xm_file=pa/xm-pahpux.h
@@ -531,11 +565,13 @@ for machine in $build $host $target; do
                else
                        tm_file="pa/pa-oldas.h ${tm_file}"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.1-*-hpux8*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h"
                xm_file=pa/xm-pahpux.h
@@ -544,11 +580,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.0-*-hpux8*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-hpux.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -556,11 +594,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.1-*-hpux10*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
                xm_file=pa/xm-pahpux.h
@@ -569,11 +609,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.0-*-hpux10*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -581,11 +623,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.1-*-hpux*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
                xm_file=pa/xm-pahpux.h
@@ -594,11 +638,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.0-*-hpux*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -606,11 +652,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.1-*-hiux*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
                xm_file=pa/xm-pahpux.h
@@ -619,11 +667,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa1.0-*-hiux*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
                xm_file=pa/xm-pahpux.h
                xmake_file=pa/x-pa-hpux
@@ -631,11 +681,13 @@ for machine in $build $host $target; do
                then
                        tm_file="${tm_file} pa/pa-gas.h"
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                ;;
        hppa*-*-lites*)
+               if [[ x$enable_haifa != xno ]]; then
+                       enable_haifa=yes
+               fi
                target_cpu_default=1
                use_collect2=yes
                fixincludes=Makefile.in
@@ -654,7 +706,6 @@ for machine in $build $host $target; do
                fi
                xm_file=i386/xm-aix.h
                xmake_file=i386/x-aix
-               broken_install=yes
                ;;
        i486-ncr-sysv4*)                # NCR 3000 - i486 running system V.4
                xm_file=i386/xm-sysv4.h
@@ -695,7 +746,6 @@ for machine in $build $host $target; do
                fixincludes=fixinc.ptx
                extra_parts="crtbegin.o crtend.o"
                install_headers_dir=install-headers-cpio
-               broken_install=yes
                ;;
        i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*)
                xm_file=i386/xm-sysv3.h
@@ -705,7 +755,6 @@ for machine in $build $host $target; do
                extra_parts="crtbegin.o crtend.o"
                fixincludes=fixinc.ptx
                install_headers_dir=install-headers-cpio
-               broken_install=yes
                ;;
        i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*)
                xm_file=i386/xm-sysv4.h
@@ -715,7 +764,6 @@ for machine in $build $host $target; do
                extra_parts="crtbegin.o crtend.o"
                fixincludes=fixinc.ptx
                install_headers_dir=install-headers-cpio
-               broken_install=yes
                ;;
        i386-sun-sunos*)                # Sun i386 roadrunner
                xm_file=i386/xm-sun.h
@@ -741,8 +789,8 @@ for machine in $build $host $target; do
        i[[3456]]86-*-freebsdelf*)
                tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
                xm_file=i386/xm-freebsd.h
-               # On FreeBSD, the headers are already ok.
-               fixincludes=Makefile.in
+               # On FreeBSD, the headers are already ok, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=i386/t-freebsd
                gas=yes
                gnu_ld=yes
@@ -751,15 +799,15 @@ for machine in $build $host $target; do
        i[[3456]]86-*-freebsd*)
                tm_file=i386/freebsd.h
                xm_file=i386/xm-freebsd.h
-               # On FreeBSD, the headers are already ok.
-               fixincludes=Makefile.in
+               # On FreeBSD, the headers are already ok, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=i386/t-freebsd
                ;;
        i[[3456]]86-*-netbsd*)
                tm_file=i386/netbsd.h
                xm_file=i386/xm-netbsd.h
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
                ;;
        i[[3456]]86-*-coff*)
@@ -787,7 +835,6 @@ for machine in $build $host $target; do
                        extra_parts="crtbegin.o crtend.o"
                fi
                install_headers_dir=install-headers-cpio
-               broken_install=yes
                ;;
        i[[3456]]86-*-linux-gnuoldld*)  # Intel 80386's running Linux
                xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
@@ -795,7 +842,6 @@ for machine in $build $host $target; do
                tmake_file="t-linux-aout i386/t-crtstuff"
                tm_file=i386/linux-oldld.h
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                ;;
        i[[3456]]86-*-linux-gnuaout*)           # Intel 80386's running Linux
@@ -804,7 +850,6 @@ for machine in $build $host $target; do
                tmake_file="t-linux-aout i386/t-crtstuff"
                tm_file=i386/linux-aout.h
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                ;;
        i[[3456]]86-*-linux-gnulibc1)
@@ -814,7 +859,6 @@ for machine in $build $host $target; do
                tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='single'
@@ -827,7 +871,6 @@ for machine in $build $host $target; do
                tmake_file="t-linux i386/t-crtstuff"
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='posix'
@@ -892,7 +935,6 @@ for machine in $build $host $target; do
                xm_file=i386/xm-sco5.h
                xmake_file=i386/x-sco5
                fixincludes=fixinc.sco
-               broken_install=yes
                tm_file=i386/sco5.h
                tmake_file=i386/t-sco5
                extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
@@ -901,7 +943,6 @@ for machine in $build $host $target; do
                xm_file=i386/xm-sco.h
                xmake_file=i386/x-sco4
                fixincludes=fixinc.sco
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                 if [[ x$stabs = xyes ]]
                then
@@ -918,7 +959,6 @@ for machine in $build $host $target; do
        i[[3456]]86-*-sco*)             # 80386 running SCO system
                xm_file=i386/xm-sco.h
                xmake_file=i386/x-sco
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                 if [[ x$stabs = xyes ]]
                then
@@ -944,7 +984,6 @@ for machine in $build $host $target; do
                extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
                xmake_file=x-svr4
                fixincludes=fixinc.svr4
-               broken_install=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='solaris'
                fi
@@ -1060,7 +1099,6 @@ for machine in $build $host $target; do
                tm_file="${tm_file} svr3.h i860/paragon.h"
                xm_file="${xm_file} xm-svr3.h"
                tmake_file=t-osf
-               broken_install=yes
                ;;
        i860-*-sysv3*)
                tm_file="${tm_file} svr3.h i860/sysv3.h"
@@ -1128,7 +1166,6 @@ for machine in $build $host $target; do
                        xmake_file=m68k/x-hp320
                        tm_file=m68k/hp310.h
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                extra_headers=math-68881.h
@@ -1157,7 +1194,6 @@ for machine in $build $host $target; do
        m68k-apple-aux*)                # Apple Macintosh running A/UX
                xm_file=m68k/xm-aux.h
                tmake_file=m68k/t-aux
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                extra_headers=math-68881.h
                extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
@@ -1266,7 +1302,6 @@ for machine in $build $host $target; do
                xm_file=m68k/xm-crds.h
                xmake_file=m68k/x-crds
                tm_file=m68k/crds.h
-               broken_install=yes
                use_collect2=yes
                extra_headers=math-68881.h
                ;;
@@ -1283,7 +1318,6 @@ for machine in $build $host $target; do
                xmake_file=m68k/x-ccur
                extra_headers=math-68881.h
                use_collect2=yes
-               broken_install=yes
                ;;
        m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
                tm_file=m68k/hp3bsd44.h
@@ -1316,7 +1350,6 @@ for machine in $build $host $target; do
                        xmake_file=m68k/x-hp320
                        tm_file=m68k/hpux7.h
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                extra_headers=math-68881.h
@@ -1331,7 +1364,6 @@ for machine in $build $host $target; do
                        xmake_file=m68k/x-hp320
                        tm_file=m68k/hp320.h
                fi
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                use_collect2=yes
                extra_headers=math-68881.h
@@ -1432,8 +1464,8 @@ for machine in $build $host $target; do
        m68k-*-netbsd*)
                tm_file=m68k/netbsd.h
                xm_file=m68k/xm-netbsd.h
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
                ;;
        m68k-*-sysv3*)                  # Motorola m68k's running system V.3
@@ -1504,7 +1536,6 @@ for machine in $build $host $target; do
                    ;;
                esac
                extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
-               broken_install=yes
                xmake_file=m88k/x-dgux
                if [[ x$gas = xyes ]]
                then
@@ -1568,7 +1599,6 @@ for machine in $build $host $target; do
        mips-sgi-irix6*)                # SGI System V.4., IRIX 6
                tm_file=mips/iris6.h
                xm_file=mips/xm-iris6.h
-               broken_install=yes
                fixincludes=fixinc.irix
                xmake_file=mips/x-iris6
                tmake_file=mips/t-iris6
@@ -1579,7 +1609,6 @@ for machine in $build $host $target; do
        mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
                tm_file=mips/cross64.h
                xm_file=mips/xm-iris5.h
-               broken_install=yes
                fixincludes=Makefile.in
                xmake_file=mips/x-iris
                tmake_file=mips/t-cross64
@@ -1608,7 +1637,6 @@ for machine in $build $host $target; do
                 then
                         use_collect2=yes
                 fi
-                broken_install=yes
                 ;;
        mips-sgi-irix5*)                # SGI System V.4., IRIX 5
                if [[ x$gas = xyes ]]
@@ -1622,7 +1650,6 @@ for machine in $build $host $target; do
                        tm_file=mips/iris5.h
                fi
                xm_file=mips/xm-iris5.h
-               broken_install=yes
                fixincludes=fixinc.irix
                xmake_file=mips/x-iris
                # mips-tfile doesn't work yet
@@ -1639,7 +1666,6 @@ for machine in $build $host $target; do
                        tm_file="${tm_file} dbx.h"
                fi
                xm_file=mips/xm-iris4.h
-               broken_install=yes
                xmake_file=mips/x-iris
                if [[ x$gas = xyes ]]
                then
@@ -1661,7 +1687,6 @@ for machine in $build $host $target; do
                        tm_file="${tm_file} dbx.h"
                fi
                xm_file=mips/xm-iris4.h
-               broken_install=yes
                xmake_file=mips/x-iris
                if [[ x$gas = xyes ]]
                then
@@ -1683,7 +1708,6 @@ for machine in $build $host $target; do
                        tm_file="${tm_file} dbx.h"
                fi
                xm_file=mips/xm-iris3.h
-               broken_install=yes
                xmake_file=mips/x-iris3
                if [[ x$gas = xyes ]]
                then
@@ -1739,13 +1763,9 @@ for machine in $build $host $target; do
        mips-dec-netbsd*)                  # Decstation running NetBSD
                tm_file=mips/netbsd.h
                xm_file=mips/xm-netbsd.h
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
-               if [[ x$prefix = xNONE ]]; then
-                       prefix=$native_prefix
-               fi
-               prefix=$native_prefix
                ;;
        mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
                tm_file=mips/news4.h
@@ -1802,7 +1822,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-ultrix* | mips-dec-mach3)        # Decstation.
                tm_file=mips/ultrix.h
@@ -1838,7 +1857,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
                tm_file=mips/bsd-4.h    # MIPS BSD 4.3, RISC-OS 4.0
@@ -1856,7 +1874,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-riscos[[56789]]sysv4*)
                tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
@@ -1876,7 +1893,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
                tm_file=mips/svr4-4.h   # MIPS System V.4. RISC-OS 4.0
@@ -1896,7 +1912,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-riscos[[56789]]sysv*)
                tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
@@ -1916,7 +1931,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-sysv* | mips-*-riscos*sysv*)
                tm_file=mips/svr3-4.h   # MIPS System V.3, RISC-OS 4.0
@@ -1936,7 +1950,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-riscos[[56789]]*)                # Default MIPS RISC-OS 5.0.
                tm_file=mips/mips-5.h
@@ -1953,7 +1966,6 @@ for machine in $build $host $target; do
                then
                        use_collect2=yes
                fi
-               broken_install=yes
                ;;
        mips-*-gnu*)
                ;;
@@ -1970,7 +1982,6 @@ for machine in $build $host $target; do
                        tm_file="${tm_file} dbx.h"
                fi
                tmake_file=mips/t-ecoff
-               broken_install=yes
                ;;
        mipsel-*-elf*)
                tm_file="mips/elfl.h libgloss.h"
@@ -2043,12 +2054,10 @@ for machine in $build $host $target; do
                ;;
        ns32k-tek6100-bsd*)
                tm_file=ns32k/tek6100.h
-               broken_install=yes
                use_collect2=yes
                ;;
        ns32k-tek6200-bsd*)
                tm_file=ns32k/tek6200.h
-               broken_install=yes
                use_collect2=yes
                ;;
 # This has not been updated to GCC 2.
@@ -2056,7 +2065,6 @@ for machine in $build $host $target; do
 #              xm_file=ns32k/xm-genix.h
 #              xmake_file=ns32k/x-genix
 #              tm_file=ns32k/genix.h
-#              broken_install=yes
 #              use_collect2=yes
 #              ;;
        ns32k-merlin-*)
@@ -2075,8 +2083,8 @@ for machine in $build $host $target; do
        ns32k-pc532-netbsd*)
                tm_file=ns32k/netbsd.h
                xm_file=ns32k/xm-netbsd.h
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
                ;;
         pdp11-*-bsd)
@@ -2281,6 +2289,11 @@ for machine in $build $host $target; do
                tm_file=sh/elf.h
                float_format=sh
                ;;
+       sh-*-rtems*)
+               tmake_file="sh/t-sh t-rtems"
+               tm_file=sh/rtems.h
+               float_format=sh
+               ;;
        sh-*-*)
                float_format=sh
                ;;
@@ -2300,39 +2313,36 @@ for machine in $build $host $target; do
        sparc-*-netbsd*)
                tm_file=sparc/netbsd.h
                xm_file=sparc/xm-netbsd.h
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
                ;;
        sparc-*-bsd*)
                tm_file=sparc/bsd.h
                ;;
        sparc-*-linux-gnuaout*)         # Sparc's running Linux, a.out
-               xm_file=sparc/xm-linux.h
+               xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
                tm_file=sparc/linux-aout.h
                xmake_file=x-linux
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                ;;
-       sparc-*-linux-gnulibc1*)                 # Sparc's running Linux
-               xm_file=sparc/xm-linux.h # with ELF format using the
-               xmake_file=x-linux       # Linux C library 5.
+       sparc-*-linux-gnulibc1*)        # Sparc's running Linux, libc5
+               xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
+               xmake_file=x-linux
                tm_file=sparc/linux.h
                tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                ;;
-       sparc-*-linux-gnu*)                      # Sparc's running Linux
-               xm_file=sparc/xm-linux.h # with ELF format using glibc 2
-               xmake_file=x-linux       # aka the Linux C library 6.
+       sparc-*-linux-gnu*)             # Sparc's running Linux, libc6
+               xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
+               xmake_file=x-linux
                tm_file=sparc/linux.h
                tmake_file="t-linux sparc/t-linux"
                extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
                fixincludes=Makefile.in #On Linux, the headers are ok already.
-               broken_install=yes
                gnu_ld=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='posix'
@@ -2360,7 +2370,6 @@ for machine in $build $host $target; do
                xmake_file=sparc/x-sysv4
                extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
                fixincludes=fixinc.svr4
-               broken_install=yes
                if [[ x$enable_threads = xyes ]]; then
                        thread_file='solaris'
                fi
@@ -2374,6 +2383,9 @@ for machine in $build $host $target; do
                tm_file=sparc/sunos4.h
                tmake_file=sparc/t-sunos41
                use_collect2=yes
+               if [[ x$gas = xyes ]]; then
+                       tm_file="${tm_file} sparc/sun4gas.h"
+               fi
                ;;
        sparc-*-sunos3*)
                tm_file=sparc/sun4o3.h
@@ -2413,6 +2425,14 @@ for machine in $build $host $target; do
                tm_file=sparc/sp64-elf.h
                extra_parts="crtbegin.o crtend.o"
                ;;
+       sparc64-*-linux*)               # 64-bit Sparc's running Linux
+               tmake_file=sparc/t-sp64
+               xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
+               tm_file=sparc/linux64.h
+               xmake_file=x-linux
+               fixincludes=Makefile.in # On Linux, the headers are ok already.
+               gnu_ld=yes
+               ;;
 # This hasn't been upgraded to GCC 2.
 #      tahoe-harris-*)                 # Harris tahoe, using COFF.
 #              tm_file=tahoe/harris.h
@@ -2424,6 +2444,16 @@ for machine in $build $host $target; do
 #              cpu_type=gmicro
 #              use_collect2=yes
 #              ;;
+       v850-*-*)
+               cpu_type=v850
+               tm_file="v850/v850.h"
+               xm_file="v850/xm-v850.h"
+               if [[ x$stabs = xyes ]]
+               then
+                       tm_file="${tm_file} dbx.h"
+               fi
+               use_collect2=no
+               ;;
        vax-*-bsd*)                     # vaxen running BSD
                use_collect2=yes
                float_format=vax
@@ -2436,8 +2466,8 @@ for machine in $build $host $target; do
        vax-*-netbsd*)
                tm_file="${tm_file} netbsd.h vax/netbsd.h"
                xm_file="${xm_file} xm-netbsd.h"
-               # On NetBSD, the headers are already okay.
-               fixincludes=Makefile.in
+               # On NetBSD, the headers are already okay, except for math.h.
+               fixincludes=fixinc.math
                tmake_file=t-netbsd
                float_format=vax
                ;;
@@ -2487,11 +2517,9 @@ for machine in $build $host $target; do
        *-*-sysv4*)
                fixincludes=fixinc.svr4
                xmake_try_sysv=x-sysv
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                ;;
        *-*-sysv*)
-               broken_install=yes
                install_headers_dir=install-headers-cpio
                ;;
        esac
@@ -2556,7 +2584,7 @@ for machine in $build $host $target; do
                          | xrios1 | xrios2 | xrsc | xrsc1 \
                          | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
                          | x403 | x505 | x801 | x821 | x823 | x860)
-                               target_cpu_default2="'\"$with_cpu\"'"
+                               target_cpu_default2="\"$with_cpu\""
                                ;;
 
                        xyes | xno)
@@ -2611,7 +2639,6 @@ for machine in $build $host $target; do
                then build_xm_file=$cpu_type/xm-$cpu_type.h
                else build_xm_file=$xm_file
                fi
-               build_broken_install=$broken_install
                build_install_headers_dir=$install_headers_dir
                build_exeext=$exeext
                pass1done=yes
@@ -2748,15 +2775,6 @@ fi
 # Get the version number from the toplevel
 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
 
-# Are we using gcc as the native compiler?
-case $host in
-*linux*)       # All Linux's use gcc as the native compiler.
-       if [[ x$prefix = xNONE ]]; then
-               prefix=$native_prefix
-       fi
-       ;;
-esac
-
 # Get an absolute path to the GCC top-level source directory
 holddir=`pwd`
 cd $srcdir
@@ -2881,15 +2899,15 @@ fi
 
 # If we have gas in the build tree, make a link to it.
 if [[ -f ../gas/Makefile ]]; then
-       rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
+       rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
 fi
 
 # If we have ld in the build tree, make a link to it.
 if [[ -f ../ld/Makefile ]]; then
 #      if [[ x$use_collect2 = x ]]; then
-#              rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
+#              rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
 #      else
-               rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
+               rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
 #      fi
 fi
 
@@ -3027,6 +3045,16 @@ if [[ ! -f Makefile.in ]]; then
        echo "source ${srcdir}/.gdbinit" >> .gdbinit
 fi
 
+# If this is using newlib, then define inhibit_libc in
+# LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
+# libgcc.a, but that's OK because newib should have its own version of
+# assert.h.
+inhibit_libc=
+if [[ x$with_newlib = xyes ]]; then
+       inhibit_libc=-Dinhibit_libc
+fi
+AC_SUBST(inhibit_libc)
+
 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
 sched_prefix=
 sched_cflags=
@@ -3040,7 +3068,7 @@ AC_SUBST(sched_cflags)
 if [[ x$enable_haifa != x ]]; then
     # Explicitly remove files that need to be recompiled for the Haifa scheduler.
     for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
-       if [ -f $x ]; then
+       if [[ -f $x ]]; then
            echo "Removing $x"
            rm -f $x
        fi
@@ -3090,6 +3118,7 @@ AC_SUBST(will_use_collect2)
 AC_SUBST(maybe_use_collect2)
 AC_SUBST(cc_set_by_configure)
 AC_SUBST(stage_prefix_set_by_configure)
+AC_SUBST(install)
 
 AC_SUBST_FILE(target_overrides)
 AC_SUBST_FILE(host_overrides)
@@ -3137,6 +3166,26 @@ case x$CONFIG_HEADERS in
 xconfig.h:config.in)
 echo > cstamp-h ;;
 esac
+# If the host supports symlinks, point stage[1234] at ../stage[1234] so
+# bootstrapping and the installation procedure can still use
+# CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
+# FLAGS_TO_PASS has been modified to solve the problem there.
+# This is virtually a duplicate of what happens in configure.lang; we do
+# an extra check to make sure this only happens if ln -s can be used.
+if [[ "$symbolic_link" = "ln -s" ]]; then
+ for d in .. ${subdirs} ; do
+   if [[ $d != .. ]]; then
+       STARTDIR=`pwd`
+       cd $d
+       for t in stage1 stage2 stage3 stage4 include
+       do
+               rm -f $t
+               $symbolic_link ../$t $t 2>/dev/null
+       done
+       cd $STARTDIR
+   fi
+ done
+else true ; fi
 ],
 [
 host='${host}'
@@ -3158,9 +3207,9 @@ version='${version}'
 local_prefix='${local_prefix}'
 build_install_headers_dir='${build_install_headers_dir}'
 build_exeext='${build_exeext}'
+out_file='${out_file}'
 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
 SET_MAKE='${SET_MAKE}'
-build_broken_install='${build_broken_install}'
 target_list='${target_list}'
 target_overrides='${target_overrides}'
 host_overrides='${host_overrides}'