home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-src.tgz / tar.out / fsf / gcc / configure < prev    next >
Text File  |  1996-09-28  |  78KB  |  3,135 lines

  1. #!/bin/sh
  2. # Configuration script for GNU CC
  3. #   Copyright (C) 1988, 90, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
  4.  
  5. #This file is part of GNU CC.
  6.  
  7. # AmigaOS Notes:  Where "echo" can be invoked with a first arg that
  8. # starts with '-', run the external echo instead, since the pdksh builtin
  9. # version botches this case.
  10.  
  11. #GNU CC is free software; you can redistribute it and/or modify
  12. #it under the terms of the GNU General Public License as published by
  13. #the Free Software Foundation; either version 2, or (at your option)
  14. #any later version.
  15.  
  16. #GNU CC is distributed in the hope that it will be useful,
  17. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. #GNU General Public License for more details.
  20.  
  21. #You should have received a copy of the GNU General Public License
  22. #along with GNU CC; see the file COPYING.  If not, write to
  23. #the Free Software Foundation, 59 Temple Place - Suite 330,
  24. #Boston, MA 02111-1307, USA.
  25.  
  26. #
  27. # Shell script to create proper links to machine-dependent files in
  28. # preparation for compiling gcc.
  29. #
  30. # Options: --srcdir=DIR        specifies directory where sources are.
  31. #        --host=HOST        specifies host configuration.
  32. #       --target=TARGET    specifies target configuration.
  33. #       --build=TARGET    specifies configuration of machine you are
  34. #                using to compile GCC.
  35. #       --prefix=DIR        specifies directory to install in.
  36. #       --local-prefix=DIR    specifies directory to put local ./include in.
  37. #       --gxx-include-dir=DIR specifies directory to put g++ header files in.
  38. #       --exec-prefix=DIR    specifies directory to install executables in.
  39. #       --with-gnu-ld    arrange to work with GNU ld.
  40. #       --with-gnu-as    arrange to work with GAS.
  41. #       --with-stabs        arrange to use stabs instead of host debug format.
  42. #       --with-elf        arrange to use elf instead of host debug format.
  43. #       --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
  44. #       --disable-FOO    do not include feature FOO
  45. #       --nfp        assume system has no FPU.
  46. #       --program-prefix=PREFIX specifies prefix for executable names.
  47. #       --program-suffix=SUFFIX specifies suffix for executable names.
  48. #       --program-transform-name=SED-EXPR specifies `sed' expression to
  49. #                apply to executable names.
  50. #
  51. # If configure succeeds, it leaves its status in config.status.
  52. # If configure fails after disturbing the status quo, 
  53. #     config.status is removed.
  54. #
  55.  
  56. progname=$0
  57.  
  58. # Default --srcdir to the directory where the script is found, 
  59. # if a directory was specified.
  60. # The first sed call works around a bug in the AmigaOS port of sksh, where
  61. # $0 has a trailing slash appended to it.  It is a NOP for other systems.
  62. # The third sed call is to convert `.//configure' to `./configure'.
  63. srcdir=`echo $0 | sed 's|/$||' | sed 's|//|/|' | sed 's|/[^/]*$||'`
  64. if [ x$srcdir = x$0 ]
  65. then
  66. srcdir=
  67. fi
  68. # On systems where GCC is the native compiler, $prefix should be
  69. # /usr. But the user can change it with configure --prefix=/foo/bar
  70. native_prefix=/usr
  71.  
  72.  
  73. host=
  74.  
  75. # Note:  For AmigaOS we want this to default to /ade unless we specify
  76. # otherwise to configure.  We also don't want to have to remember to always
  77. # configure with "--prefix=/ade".  Changing it in Makefile.in or in
  78. # config/m68k/x-amigaos is ineffective since configure will always change
  79. # it back in the final generated Makefile, so we have to go to the root of
  80. # the problem, which is here.  There should be a way to do this in the
  81. # individual machine configuration files!  -fnf
  82. # here.  -fnf
  83. # Default prefix to "/ade".
  84. prefix=/ade
  85.   
  86. # On systems where GCC is the native compiler, $prefix should be
  87. # /usr. But the user can change it with configure --prefix=/foo/bar
  88. native_prefix=/usr
  89.  
  90. # local_prefix specifies where to find the directory /ade/local/include
  91. # We don't use $(prefix) for this
  92. # because we always want GCC to search /ade/local/include
  93. # even if GCC is installed somewhere other than /ade/local.
  94. # Think THREE TIMES before specifying any other value for this!
  95. # DO NOT make this use $prefix!
  96. # Note:  See AmigaOS note above for this AmigaOS specific change.  -fnf
  97. # NoteII:We don't want to have yet-another-assign so we use /ade/local
  98. local_prefix=/ade/local
  99. # Default is to let the Makefile set exec_prefix from $(prefix)
  100. exec_prefix='$(prefix)'
  101. #
  102. # The default g++ include directory is $(libdir)/g++-include.
  103. gxx_include_dir='$(libdir)/g++-include'
  104.  
  105. # Default --program-transform-name to nothing.
  106. program_transform_name=
  107. program_transform_set=
  108.  
  109. remove=rm
  110. # AmigaOS specific change.  Although we support symbolic links using
  111. # the GNU tools, they need to be made using the syntax "somewhere:foo/bar"
  112. # and not "/somewhere/foo/bar", since they must be in standard AmigaOS
  113. # format.  This should probably be done by having GNU ln translate paths
  114. # that start with '/' to canonical AmigaOS device:name form.
  115. hard_link=cp
  116. symbolic_link=cp
  117. copy=cp
  118.  
  119. # Record all the arguments, to write them in config.status.
  120. arguments=$*
  121.  
  122. #for Test
  123. #remove="echo rm"
  124. #hard_link="echo ln"
  125. #symbolic_link="echo ln -s"
  126.  
  127. target=
  128. host=
  129. build=
  130. name1=
  131. name2=
  132.  
  133. for arg in $*;
  134. do
  135.   case $next_arg in
  136.   --srcdir)
  137.     srcdir=$arg
  138.     next_arg=
  139.     ;;
  140.   --host)
  141.     host=$arg
  142.     next_arg=
  143.     ;;
  144.   --target)
  145.     target=$arg
  146.     next_arg=
  147.     ;;
  148.   --build)
  149.     build=$arg
  150.     next_arg=
  151.     ;;
  152.   --prefix)
  153.     prefix=$arg
  154.     native_prefix=$prefix
  155.     next_arg=
  156.     ;;
  157.   --local-prefix)
  158.     local_prefix=$arg
  159.     next_arg=
  160.     ;;
  161.   --gxx-include-dir)
  162.     gxx_include_dir=$arg
  163.     next_arg=
  164.     ;;
  165.   --exec-prefix)
  166.     exec_prefix=$arg
  167.     next_arg=
  168.     ;;
  169.   --program-transform-name)
  170.     # Double any backslashes or dollar signs in the argument.
  171.     if [ -n "${arg}" ] ; then
  172.       program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  173.     fi
  174.     program_transform_set=yes
  175.     next_arg=
  176.     ;;    
  177.   --program-prefix)
  178.     if [ -n "${arg}" ]; then
  179.       program_transform_name="${program_transform_name} -e s,^,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
  180.     fi
  181.     program_transform_set=yes
  182.     next_arg=
  183.     ;;
  184.   --program-suffix)
  185.     if [ -n "${arg}" ]; then
  186.       program_transform_name="${program_transform_name} -e s,\$\$,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
  187.     fi
  188.     program_transform_set=yes
  189.     next_arg=
  190.     ;;
  191.   --x-*)
  192.     next_arg=
  193.     ;;
  194.   *)
  195.  
  196. # Note: This causes problems in the Amiga port for some reason
  197. # and eliminating it seems to cause no trouble.  -fnf
  198. #    case $arg in
  199. #      -*)
  200. #    if [ x$name1 != x ]
  201. #    then
  202. #        echo "Positional arguments must be last." 1>&2
  203. #        exit 1
  204. #    fi
  205. #    ;;
  206. #    esac
  207.  
  208.     case $arg in
  209.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  210.     next_arg=--srcdir
  211.     ;;
  212.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  213.     srcdir=`echo $arg | sed 's/-*s[a-z]*=//'`
  214.     ;;
  215.      -host | --host | --hos | --ho)
  216.     next_arg=--host
  217.     ;;
  218.      -host=* | --host=* | --hos=* | --ho=*)
  219.     host=`echo $arg | sed 's/-*h[a-z]*=//'`
  220.     ;; 
  221.      -target | --target | --targe | --targ | --tar | --ta | --t)
  222.     next_arg=--target
  223.     ;;
  224.      -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  225.     target=`echo $arg | sed 's/-*t[a-z]*=//'`
  226.     ;; 
  227.      -build | --build | --buil | --bui | --bu | --b)
  228.     next_arg=--build
  229.     ;;
  230.      -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  231.     build=`echo $arg | sed 's/-*b[a-z]*=//'`
  232.     ;; 
  233.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  234.     next_arg=--prefix
  235.     ;;
  236.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  237.     prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
  238.     native_prefix=$prefix
  239.     ;;
  240.      -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
  241.     | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
  242.     next_arg=--local-prefix
  243.     ;;
  244.      -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
  245.     | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
  246.     | --loc=* | --lo=* | --l=*)
  247.     local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
  248.     ;;
  249.      -gxx-include-dir | --gxx-include-dir | --gxx-include \
  250.     | --gxx-incl | --gxx-inc | --gxx-in | --gxx-i | --gxx- \
  251.     | --gxx | --gxx | --gx | --g)
  252.     next_arg=--gxx-include-dir
  253.     ;;
  254.      -gxx-include-dir=* | --gxx-include-dir=* | --gxx-include=* \
  255.     | --gxx-incl=* | --gxx-inc=* | --gxx-in=* | --gxx-i=* \
  256.     | --gxx-=* | --gxx=* | --gxx=* | --gxx=* | --g=*)
  257.     gxx_include_dir=`echo $arg | sed 's/-*g[-a-z]*=//'`
  258.     ;;
  259.      -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
  260.     | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  261.     next_arg=--exec-prefix
  262.     ;;
  263.      -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* \
  264.     | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \
  265.     | --exe=* | --ex=* | --e=*)
  266.     exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`
  267.     ;;
  268.      -program-transform-name | --program-transform-name \
  269.     | --program-transform-nam | --program-transform-na \
  270.     | --program-transform-n | --program-transform- | --program-transform \
  271.     | --program-transfor | --program-transfo | --program-transf \
  272.     | --program-trans | --program-tran | --program-tra \
  273.     | --program-tr | --program-t)
  274.     next_arg=--program-transform-name
  275.     ;;
  276.      -program-transform-name=* | --program-transform-name=* \
  277.     | --program-transform-nam=* | --program-transform-na=* \
  278.     | --program-transform-n=* | --program-transform-=* \
  279.     | --program-transform=* | --program-transfor=* | --program-transfo=* \
  280.     | --program-transf=* | --program-trans=* | --program-tran=* \
  281.     | --program-tra=* | --program-tr=* | --program-t=*)
  282.     arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
  283.     # Double any \ or $ in the argument.
  284.     if [ -n "${arg}" ] ; then
  285.       program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
  286.     fi
  287.     program_transform_set=yes
  288.     ;;
  289.      -program-prefix | --program-prefix | --program-prefi \
  290.     | --program-pref | --program-pre | --program-pr \
  291.     | --program-p)
  292.     next_arg=--program-prefix
  293.     ;;
  294.      -program-prefix=* | --program-prefix=* | --program-prefi=* \
  295.     | --program-pref=* | --program-pre=* | --program-pr=* \
  296.     | --program-p=*)
  297.     arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
  298.     if [ -n "${arg}" ]; then
  299.       program_transform_name="${program_transform_name} -e s,^,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
  300.     fi
  301.     program_transform_set=yes
  302.     ;;
  303.      -program-suffix | --program-suffix | --program-suffi \
  304.     | --program-suff | --program-suf | --program-su \
  305.     | --program-s)
  306.     next_arg=--program-suffix
  307.     ;;
  308.      -program-suffix=* | --program-suffix=* | --program-suffi=* \
  309.     | --program-suff=* | --program-suf=* | --program-su=* \
  310.     | --program-s=*)
  311.     arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
  312.     if [ -n "${arg}" ]; then
  313.       program_transform_name="${program_transform_name} -e s,\$\$,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
  314.     fi
  315.     program_transform_set=yes
  316.     ;;
  317.      -with-gnu-ld | --with-gnu-ld | --with-gnu-l)
  318.     gnu_ld=yes
  319.     ;;
  320.      -gas | --gas | --ga | --g | -with-gnu-as | --with-gnu-as | -with-gnu-a)
  321.         gas=yes
  322.     ;;
  323.      -nfp | --nfp | --nf | --n)
  324.     nfp=yes
  325.     ;;
  326.      -with-stabs | -with-stab | -with-sta | -with-st | -with-s \
  327.     | --with-stabs | --with-stab | --with-sta | --with-st | --with-s \
  328.     | -stabs | -stab | -sta | -st  \
  329.     | --stabs | --stab | --sta | --st)
  330.     stabs=yes
  331.     ;;
  332.      -with-elf | -with-el | -with-se \
  333.     | --with-elf | --with-el | --with-e \
  334.     | -elf | -el | -e \
  335.     |--elf | --el | --e)
  336.     elf=yes
  337.     ;;
  338.      -with-* | --with-*) ;; #ignored
  339.      -without-* | --without-*) ;; #ignored
  340.      -disable-* | --disable-*)
  341.     enableopt=`echo ${arg} | sed 's:^-*disable-:enable_:;s:-:_:g'`
  342.     eval $enableopt=no
  343.     ;;
  344.      -enable-* | --enable-*)
  345.     case "$arg" in
  346.     *=*)    optarg=`echo $arg | sed 's:^[^=]*=::;s:-:_:g'` ;;
  347.     *)    optarg=yes ;;
  348.     esac
  349.     enableopt=`echo ${arg} | sed 's:^-*::;s:=.*$::;s:-:_:g'`
  350.     eval $enableopt="$optarg"
  351.     ;;
  352.      -x | --x) ;; # ignored
  353.      -x-*=* | --x-*=*) ;; # ignored
  354.      -x-* | --x-*)
  355.     next_arg=--x-ignored # ignored
  356.     ;;
  357.      --he*) ;; # ignored for now (--help)
  358.      --vers*) ;; # ignored for now (--version)
  359.      -v | -verb* | --verb*) ;; # ignored for now (--verbose)
  360.      --program-*) ;; #ignored (--program-prefix, --program-suffix)
  361.      --c*) ;; #ignored (--cache-file)
  362.      --q*) ;; #ignored (--quiet)
  363.      --si*) ;; #ignored (--silent)
  364.      -*)
  365.     echo "Invalid option \`$arg'" 1>&2
  366.     exit 1
  367.     ;;
  368.      *)
  369. # Allow configure HOST TARGET.  If just one name is given, it is used
  370. # as both unless a host was previously given, in which case it is
  371. # just the target.
  372.     if [ x$name1 != x ]
  373.     then
  374.         if [ x$name2 != x ]
  375.         then
  376.             echo "More than two configuration names." 1>&2
  377.             exit 1
  378.         fi
  379.         name2=$arg
  380.     elif [ x$host != x ]
  381.     then
  382.         name1=$host
  383.         name2=$arg
  384.         host=
  385.     else
  386.         name1=$arg
  387.     fi
  388.     ;;
  389.     esac
  390.   esac
  391. done
  392.  
  393. if [ x$name1 != x ]
  394. then
  395.     if [ x$name2 = x ]
  396.     then
  397.         name2=$name1
  398.     fi
  399.  
  400.     if [ x$host != x ]
  401.     then
  402.         echo "Duplicate specification of host." 1>&2
  403.         exit 1
  404.     fi
  405.  
  406.     if [ x$target != x ]
  407.     then
  408.         echo "Duplicate specification of target." 1>&2
  409.         exit 1
  410.     fi
  411.  
  412.     host=$name1
  413.     build=$name1
  414.     target=$name2
  415. fi
  416.  
  417. # Find the source files, if location was not specified.
  418. if [ x$srcdir = x ]
  419. then
  420.     srcdirdefaulted=1
  421.     srcdir=.
  422.     if [ ! -r tree.c ]
  423.     then
  424.         srcdir=..
  425.     fi
  426. fi
  427.  
  428. if [ ! -r ${srcdir}/tree.c ]
  429. then
  430.     if [ x$srcdirdefaulted = x ]
  431.     then
  432.       echo "$progname: Can't find compiler sources in \`${srcdir}'" 1>&2
  433.     else
  434.       echo "$progname: Can't find compiler sources in \`.' or \`..'" 1>&2
  435.     fi
  436.     exit 1
  437. fi
  438.  
  439. if [ -r ${srcdir}/config.status ] && [ x$srcdir != x. ]
  440. then
  441.     echo "$progname: \`configure' has been run in \`${srcdir}'" 1>&2
  442.     exit 1
  443. fi
  444.  
  445. # Complain if an arg is missing
  446. if [ x$build = x ]
  447. then
  448.     # If host was specified, always use it for build also to avoid
  449.     # confusion.  If someone wants a cross compiler where build != host,
  450.     # then they must specify build explicitly.  Since this case is
  451.     # extremely rare, it does not matter that it is slightly inconvenient.
  452.     if [ x$host != x ]
  453.     then
  454.         build=$host
  455.     
  456.     # This way of testing the result of a command substitution is
  457.     # defined by Posix.2 (section 3.9.1) as well as traditional shells.
  458.     elif build=`${srcdir}/config.guess`
  459.     then
  460.         echo "This appears to be a ${build} system." 1>&2
  461.  
  462.     elif [ x$target != x ]
  463.     then
  464.         echo 'Config.guess failed to determine the host type.  Defaulting to target.'
  465.         build=$target
  466.     else
  467.         echo 'Config.guess failed to determine the host type.  You need to specify one.' 1>&2
  468.         echo "\
  469. Usage: `basename $progname` [--host=HOST] [--build=BUILD]
  470.        [--prefix=DIR] [--gxx-include-dir=DIR] [--local-pref=DIR] [--exec-pref=DIR]
  471.        [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--with-elf] [--nfp] TARGET" 1>&2
  472.     echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
  473.         if [ -r config.status ]
  474.         then
  475.             tail +2 config.status 1>&2
  476.         fi
  477.         exit 1
  478.     fi
  479. fi
  480.  
  481. # If $host was not specified, use $build.
  482. if [ x$host = x ]
  483. then
  484.     host=$build
  485. fi
  486.  
  487. # If $target was not specified, use $host.
  488. if [ x$target = x ]
  489. then
  490.     target=$host
  491. fi
  492.  
  493. build_xm_file=
  494. host_xm_file=
  495. host_xmake_file=
  496. host_broken_install=
  497. host_install_headers_dir=install-headers-tar
  498. host_truncate_target=
  499.  
  500. # Validate the specs, and canonicalize them.
  501. canon_build=`/bin/sh $srcdir/config.sub $build` || exit 1
  502. canon_host=`/bin/sh $srcdir/config.sub $host` || exit 1
  503. canon_target=`/bin/sh $srcdir/config.sub $target` || exit 1
  504.  
  505. # Decode the host machine, then the target machine.
  506. # For the host machine, we save the xm_file variable as host_xm_file;
  507. # then we decode the target machine and forget everything else
  508. # that came from the host machine.
  509. for machine in $canon_build $canon_host $canon_target; do
  510.  
  511.     cpu_type=
  512.     xm_file=
  513.     tm_file=
  514.     out_file=
  515.     xmake_file=
  516.     tmake_file=
  517.     extra_headers=
  518.     extra_passes=
  519.     extra_parts=
  520.     extra_programs=
  521.     extra_objs=
  522.     extra_gcc_objs=
  523.     # Set this to force installation and use of collect2.
  524.     use_collect2=
  525.     # Set this to override the default target model.
  526.     target_cpu_default=
  527.     # Set this to force use of install.sh (if set to 'yes')
  528.     # Set to name of installer to use a custom installer.
  529.     broken_install=
  530.     # Set this to control which fixincludes program to use.
  531.     fixincludes=fixincludes
  532.     # Set this to control how the header file directory is installed.
  533.     install_headers_dir=install-headers-tar
  534.     # Set this to a non-empty list of args to pass to cpp if the target
  535.     # wants its .md file passed through cpp.
  536.     md_cppflags=
  537.     # Set this if directory names should be truncated to 14 characters.
  538.     truncate_target=
  539.     # Set this if gdb needs a dir command with `dirname $out_file`
  540.     gdb_needs_out_file_path=
  541.  
  542.     case $machine in
  543.     # Support site-specific machine types.
  544.     *local*)
  545.         cpu_type=`echo $machine | sed -e 's/-.*//'`
  546.         rest=`echo $machine | sed -e "s/$cpu_type-//"`
  547.         xm_file=${cpu_type}/xm-$rest.h
  548.         tm_file=${cpu_type}/$rest.h
  549.         if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
  550.         then xmake_file=${cpu_type}/x-$rest; \
  551.         else true; \
  552.         fi
  553.         if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
  554.         then tmake_file=${cpu_type}/t-$rest; \
  555.         else true; \
  556.         fi
  557.         ;;
  558.     1750a-*-*)
  559.         ;;
  560.     a29k-*-bsd* | a29k-*-sym1*)
  561.         tm_file=a29k/unix.h
  562.         xm_file=a29k/xm-unix.h
  563.         xmake_file=a29k/x-unix
  564.         tmake_file=a29k/t-a29k
  565.         use_collect2=yes
  566.         ;;
  567.     a29k-*-udi | a29k-*-coff)
  568.         tmake_file=a29k/t-a29kbare
  569.         tm_file=a29k/a29k-udi.h
  570.         ;;
  571.     a29k-*-vxworks*)
  572.         tmake_file=a29k/t-vx29k
  573.         tm_file=a29k/vx29k.h
  574.         extra_parts="crtbegin.o crtend.o"
  575.         ;;
  576.     a29k-*-*)            # Default a29k environment.
  577.         use_collect2=yes
  578.         ;;
  579.     alpha-dec-osf[23456789]*)
  580.         tm_file=alpha/osf2.h
  581.         if [ x$stabs = xyes ]
  582.         then
  583.             tm_file=alpha/gdb-osf2.h
  584.         fi
  585.         if [ x$gas != xyes ]
  586.         then
  587.             extra_passes="mips-tfile mips-tdump"
  588.         fi
  589.         broken_install=yes
  590.         use_collect2=yes
  591.         ;;
  592.     alpha-dec-osf1.2)
  593.         tm_file=alpha/osf12.h
  594.         if [ x$stabs = xyes ]
  595.         then
  596.             tm_file=alpha/gdb-osf12.h
  597.         fi
  598.         if [ x$gas != xyes ]
  599.         then
  600.             extra_passes="mips-tfile mips-tdump"
  601.         fi
  602.         broken_install=yes
  603.         use_collect2=yes
  604.         ;;
  605.     alpha-*-osf*)
  606.         if [ x$stabs = xyes ]
  607.         then
  608.             tm_file=alpha/gdb.h
  609.         fi
  610.         if [ x$gas != xyes ]
  611.         then
  612.             extra_passes="mips-tfile mips-tdump"
  613.         fi
  614.         broken_install=yes
  615.         use_collect2=yes
  616.         ;;
  617.     alpha-*-winnt3*)
  618.         tm_file=alpha/win-nt.h
  619.         xm_file=alpha/xm-winnt.h
  620.         tmake_file=t-libc-ok
  621.         xmake_file=winnt/x-winnt
  622.         extra_objs=oldnames.o
  623.         extra_gcc_objs="spawnv.o oldnames.o"
  624.         fixincludes=fixinc.winnt
  625.         if [ x$gnu_ld != xyes ]
  626.         then
  627.             extra_programs=ld.exe
  628.         fi
  629.         ;;
  630.     arm-*-riscix1.[01]*)        # Acorn RISC machine (early versions)
  631.         tm_file=arm/riscix1-1.h
  632.         use_collect2=yes
  633.         ;;
  634.     arm-*-riscix*)            # Acorn RISC machine
  635.         if [ x$gas = xyes ]
  636.         then
  637.             tm_file=arm/rix-gas.h
  638.         else
  639.             tm_file=arm/riscix.h
  640.         fi
  641.         xmake_file=arm/x-riscix
  642.         tmake_file=arm/t-riscix
  643.         use_collect2=yes
  644.         ;;
  645.     arm-semi-aout | armel-semi-aout)
  646.         cpu_type=arm
  647.         tm_file=arm/semi.h
  648.         tmake_file=arm/t-semi
  649.         fixincludes=Makefile.in # There is nothing to fix
  650.         ;;
  651.     arm-*-*)            # generic version
  652.         ;;
  653.     c1-convex-*)            # Convex C1
  654.         cpu_type=convex
  655.         tm_file=convex/convex1.h
  656.         use_collect2=yes
  657.         fixincludes=Makefile.in
  658.         ;;
  659.     c2-convex-*)            # Convex C2
  660.         cpu_type=convex
  661.         tm_file=convex/convex2.h
  662.         use_collect2=yes
  663.         fixincludes=Makefile.in
  664.         ;;
  665.     c32-convex-*)
  666.         cpu_type=convex
  667.         tm_file=convex/convex32.h    # Convex C32xx
  668.         use_collect2=yes
  669.         fixincludes=Makefile.in
  670.         ;;
  671.     c34-convex-*)
  672.         cpu_type=convex
  673.         tm_file=convex/convex34.h    # Convex C34xx
  674.         use_collect2=yes
  675.         fixincludes=Makefile.in
  676.         ;;
  677.     c38-convex-*)
  678.         cpu_type=convex
  679.         tm_file=convex/convex38.h    # Convex C38xx
  680.         use_collect2=yes
  681.         fixincludes=Makefile.in
  682.         ;;
  683.     clipper-intergraph-clix*)
  684.         broken_install=yes
  685.         cpu_type=clipper
  686.         xm_file=clipper/xm-clix.h
  687.         tm_file=clipper/clix.h
  688.         extra_headers=va-clipper.h
  689.         extra_parts="crtbegin.o crtend.o"
  690.         xmake_file=clipper/x-clix
  691.         install_headers_dir=install-headers-cpio
  692.         ;;
  693.     dsp16xx-*)
  694.         ;;
  695.     elxsi-elxsi-*)
  696.         use_collect2=yes
  697.         ;;
  698. # This hasn't been upgraded to GCC 2.
  699. #    fx80-alliant-*)            # Alliant FX/80
  700. #        ;;
  701.     h8300-*-*)
  702.         cpu_type=h8300
  703.         ;;
  704.     hppa1.1-*-osf*)
  705.         cpu_type=pa
  706.         tm_file=pa/pa1-osf.h
  707.         use_collect2=yes
  708.         fixincludes=Makefile.in
  709.         ;;
  710.     hppa1.0-*-osf*)
  711.         cpu_type=pa
  712.         tm_file=pa/pa-osf.h
  713.         use_collect2=yes
  714.         fixincludes=Makefile.in
  715.         ;;
  716.     hppa1.1-*-bsd*)
  717.         cpu_type=pa
  718.         tm_file=pa/pa1.h
  719.         use_collect2=yes
  720.         fixincludes=Makefile.in
  721.         ;;
  722.     hppa1.0-*-bsd*)
  723.         cpu_type=pa
  724.         use_collect2=yes
  725.         fixincludes=Makefile.in
  726.         ;;
  727.     hppa1.0-*-hpux7*)
  728.         cpu_type=pa
  729.         xm_file=pa/xm-pahpux.h
  730.         xmake_file=pa/x-pa-hpux
  731.         tmake_file=pa/t-pa
  732.         if [ x$gas = xyes ]
  733.         then
  734.             tm_file=pa/pa-gux7.h
  735.         else
  736.             tm_file=pa/pa-hpux7.h
  737.         fi
  738.         broken_install=yes
  739.         install_headers_dir=install-headers-cpio
  740.         use_collect2=yes
  741.         ;;
  742.     hppa1.0-*-hpux8.0[0-2]*)
  743.         cpu_type=pa
  744.         xm_file=pa/xm-pahpux.h
  745.         xmake_file=pa/x-pa-hpux
  746.         tmake_file=pa/t-pa
  747.         if [ x$gas = xyes ]
  748.         then
  749.             tm_file=pa/pa-ghpux.h
  750.         else
  751.             tm_file=pa/pa-oldas.h
  752.         fi
  753.         broken_install=yes
  754.         install_headers_dir=install-headers-cpio
  755.         use_collect2=yes
  756.         ;;
  757.     hppa1.1-*-hpux8.0[0-2]*)
  758.         cpu_type=pa
  759.         xm_file=pa/xm-pahpux.h
  760.         xmake_file=pa/x-pa-hpux
  761.         tmake_file=pa/t-pa
  762.         if [ x$gas = xyes ]
  763.         then
  764.             tm_file=pa/pa1-ghpux.h
  765.         else
  766.             tm_file=pa/pa1-oldas.h
  767.         fi
  768.         broken_install=yes
  769.         install_headers_dir=install-headers-cpio
  770.         use_collect2=yes
  771.         ;;
  772.     hppa1.1-*-hpux9* | \
  773.     hppa1.1-*-hpux10*)
  774.         cpu_type=pa
  775.         xm_file=pa/xm-pahpux.h
  776.         xmake_file=pa/x-pa-hpux
  777.         tmake_file=pa/t-pa
  778.         if [ x$gas = xyes ]
  779.         then
  780.             tm_file=pa/pa1-ghpux9.h
  781.         else
  782.             tm_file=pa/pa1-hpux9.h
  783.         fi
  784.         broken_install=yes
  785.         install_headers_dir=install-headers-cpio
  786.         use_collect2=yes
  787.         ;;
  788.     hppa1.0-*-hpux9* | \
  789.     hppa1.0-*-hpux10*)
  790.         cpu_type=pa
  791.         xm_file=pa/xm-pahpux.h
  792.         xmake_file=pa/x-pa-hpux
  793.         tmake_file=pa/t-pa
  794.         if [ x$gas = xyes ]
  795.         then
  796.             tm_file=pa/pa-ghpux9.h
  797.         else
  798.             tm_file=pa/pa-hpux9.h
  799.         fi
  800.         broken_install=yes
  801.         install_headers_dir=install-headers-cpio
  802.         use_collect2=yes
  803.         ;;
  804.     hppa1.1-*-hpux*)
  805.         cpu_type=pa
  806.         xm_file=pa/xm-pahpux.h
  807.         xmake_file=pa/x-pa-hpux
  808.         tmake_file=pa/t-pa
  809.         if [ x$gas = xyes ]
  810.         then
  811.             tm_file=pa/pa1-ghpux.h
  812.         else
  813.             tm_file=pa/pa1-hpux.h
  814.         fi
  815.         broken_install=yes
  816.         install_headers_dir=install-headers-cpio
  817.         use_collect2=yes
  818.         ;;
  819.     hppa1.0-*-hpux*)
  820.         cpu_type=pa
  821.         xm_file=pa/xm-pahpux.h
  822.         xmake_file=pa/x-pa-hpux
  823.         tmake_file=pa/t-pa
  824.         if [ x$gas = xyes ]
  825.         then
  826.             tm_file=pa/pa-ghpux.h
  827.         else
  828.             tm_file=pa/pa-hpux.h
  829.         fi
  830.         broken_install=yes
  831.         install_headers_dir=install-headers-cpio
  832.         use_collect2=yes
  833.         ;;
  834.     hppa1.1-*-hiux*)
  835.         cpu_type=pa
  836.         xm_file=pa/xm-pahpux.h
  837.         xmake_file=pa/x-pa-hpux
  838.         tmake_file=pa/t-pa
  839.         if [ x$gas = xyes ]
  840.         then
  841.             tm_file=pa/pa1-ghiux.h
  842.         else
  843.             tm_file=pa/pa1-hiux.h
  844.         fi
  845.         broken_install=yes
  846.         install_headers_dir=install-headers-cpio
  847.         use_collect2=yes
  848.         ;;
  849.     hppa1.0-*-hiux*)
  850.         cpu_type=pa
  851.         xm_file=pa/xm-pahpux.h
  852.         xmake_file=pa/x-pa-hpux
  853.         tmake_file=pa/t-pa
  854.         if [ x$gas = xyes ]
  855.         then
  856.             tm_file=pa/pa-ghiux.h
  857.         else
  858.             tm_file=pa/pa-hiux.h
  859.         fi
  860.         broken_install=yes
  861.         install_headers_dir=install-headers-cpio
  862.         use_collect2=yes
  863.         ;;
  864.     hppa*-*-lites*)
  865.         cpu_type=pa
  866.         tm_file=pa/pa1.h
  867.         use_collect2=yes
  868.         fixincludes=Makefile.in
  869.         ;;
  870.     i370-*-mvs*)
  871.         cpu_type=i370
  872.         tm_file=i370/mvs.h
  873.         xm_file=i370/xm-mvs.h
  874.         out_file=i370/mvs370.c
  875.         ;;
  876.     i[345]86-ibm-aix*)        # IBM PS/2 running AIX
  877.         cpu_type=i386
  878.                 if [ x$gas = xyes ]
  879.         then
  880.             tm_file=i386/aix386.h
  881.             extra_parts="crtbegin.o crtend.o"
  882.             tmake_file=i386/t-crtstuff
  883.         else
  884.             tm_file=i386/aix386ng.h
  885.             use_collect2=yes
  886.         fi
  887.         xm_file=i386/xm-aix.h
  888.         xmake_file=i386/x-aix
  889.         broken_install=yes
  890.         ;;
  891.     i486-ncr-sysv4*)        # NCR 3000 - i486 running system V.4
  892.         cpu_type=i386
  893.         xm_file=i386/xm-sysv4.h
  894.         xmake_file=i386/x-ncr3000
  895.         tm_file=i386/sysv4.h
  896.         extra_parts="crtbegin.o crtend.o"
  897.         tmake_file=i386/t-crtpic
  898.         ;;
  899.     i[345]86-next-*)
  900.         cpu_type=i386
  901.         tm_file=i386/next.h
  902.         out_file=i386/next.c
  903.         xm_file=i386/xm-next.h
  904.         tmake_file=i386/t-next
  905.         xmake_file=i386/x-next
  906.         ;;
  907.     i[345]86-sequent-bsd*)         # 80386 from Sequent
  908.         cpu_type=i386
  909.         use_collect2=yes
  910.         if [ x$gas = xyes ]
  911.         then
  912.             tm_file=i386/seq-gas.h
  913.         else
  914.             tm_file=i386/sequent.h
  915.         fi
  916.         ;;
  917.     i[345]86-sequent-ptx1*)
  918.         cpu_type=i386
  919.         xm_file=i386/xm-sysv3.h
  920.         xmake_file=i386/x-sysv3
  921.         tm_file=i386/seq-sysv3.h
  922.         tmake_file=i386/t-crtstuff
  923.         fixincludes=fixinc.ptx
  924.         extra_parts="crtbegin.o crtend.o"
  925.         install_headers_dir=install-headers-cpio
  926.         broken_install=yes
  927.         ;;
  928.     i[345]86-sequent-ptx2* | i[345]86-sequent-sysv*)
  929.         cpu_type=i386
  930.         xm_file=i386/xm-sysv3.h
  931.         xmake_file=i386/x-sysv3
  932.         tm_file=i386/seq2-sysv3.h
  933.         tmake_file=i386/t-crtstuff
  934.         extra_parts="crtbegin.o crtend.o"
  935.         fixincludes=fixinc.ptx
  936.         install_headers_dir=install-headers-cpio
  937.         broken_install=yes
  938.         ;;
  939.     i386-sun-sunos*)        # Sun i386 roadrunner
  940.         xm_file=i386/xm-sun.h
  941.         tm_file=i386/sun.h
  942.         use_collect2=yes
  943.         ;;
  944.     i[345]86-*-aout*)
  945.         cpu_type=i386
  946.         tm_file=i386/i386-aout.h
  947.         tmake_file=i386/t-i386bare
  948.         ;;
  949.     i[345]86-*-bsdi* | i[345]86-*-bsd386*)
  950.         cpu_type=i386
  951.         tm_file=i386/bsd386.h
  952.         xm_file=i386/xm-bsd386.h
  953. #        tmake_file=t-libc-ok
  954.         ;;
  955.     i[345]86-*-bsd*)
  956.         cpu_type=i386
  957.         tm_file=i386/386bsd.h
  958.         xm_file=i386/xm-bsd386.h
  959. #        tmake_file=t-libc-ok
  960. # Next line turned off because both 386BSD and BSD/386 use GNU ld.
  961. #        use_collect2=yes
  962.         ;;
  963.     i[345]86-*-freebsd*)
  964.         cpu_type=i386
  965.         tm_file=i386/freebsd.h
  966.         xm_file=i386/xm-freebsd.h
  967.         # On FreeBSD, the headers are already ok.
  968.         fixincludes=Makefile.in
  969.         xmake_file=i386/x-freebsd
  970.         ;;
  971.     i[345]86-*-netbsd*)
  972.         cpu_type=i386
  973.         tm_file=i386/netbsd.h
  974.         xm_file=i386/xm-netbsd.h
  975.         # On NetBSD, the headers are already okay.
  976.         fixincludes=Makefile.in
  977.         tmake_file=t-libc-ok
  978.         xmake_file=x-netbsd
  979.         ;;
  980.     i[345]86-*-coff*)
  981.         cpu_type=i386
  982.         tm_file=i386/i386-coff.h
  983.         tmake_file=i386/t-i386bare
  984.         ;;
  985.     i[345]86-*-gnu*)
  986.         cpu_type=i386    # GNU supports this CPU; rest done below.
  987.         ;;
  988.     i[345]86-*-isc*)        # 80386 running ISC system
  989.         cpu_type=i386
  990.         xm_file=i386/xm-isc.h
  991.         case $machine in
  992.           i[345]86-*-isc[34]*)
  993.             xmake_file=i386/x-isc3
  994.             ;;
  995.           *)
  996.             xmake_file=i386/x-isc
  997.             ;;
  998.         esac
  999.         echo $xmake_file
  1000.                 if [ x$gas = xyes -a x$stabs = xyes ]
  1001.         then
  1002.             tm_file=i386/iscdbx.h
  1003.             tmake_file=i386/t-svr3dbx
  1004.             extra_parts="crtbegin.o crtend.o svr3.ifile svr3z.ifile"
  1005.         else
  1006.             tm_file=i386/isccoff.h
  1007.             tmake_file=i386/t-crtstuff
  1008.             extra_parts="crtbegin.o crtend.o"
  1009.         fi
  1010.         install_headers_dir=install-headers-cpio
  1011.         broken_install=yes
  1012.         ;;
  1013.     i[345]86-*-linux*oldld*)    # Intel 80386's running Linux
  1014.         cpu_type=i386        # with a.out format using pre BFD linkers
  1015.         xm_file=i386/xm-linux.h
  1016.         xmake_file=x-linux
  1017.         tm_file=i386/linux-oldld.h
  1018.         fixincludes=Makefile.in #On Linux, the headers are ok already.
  1019.         broken_install=yes
  1020.         gnu_ld=yes
  1021.         ;;
  1022.     i[345]86-*-linux*aout*)        # Intel 80386's running Linux
  1023.         cpu_type=i386        # with a.out format
  1024.         xm_file=i386/xm-linux.h
  1025.         xmake_file=x-linux
  1026.         tm_file=i386/linux-aout.h
  1027.         fixincludes=Makefile.in #On Linux, the headers are ok already.
  1028.         broken_install=yes
  1029.         gnu_ld=yes
  1030.         ;;
  1031.     i[345]86-*-linux*)        # Intel 80386's running Linux
  1032.         cpu_type=i386        # with ELF format
  1033.         xm_file=i386/xm-linux.h
  1034.         xmake_file=x-linux
  1035.         tm_file=i386/linux.h
  1036.         fixincludes=Makefile.in #On Linux, the headers are ok already.
  1037.         broken_install=yes
  1038.         gnu_ld=yes
  1039.         # Don't use it. Linux uses a slightly different one.
  1040.         # The real one comes with the Linux C library.
  1041.         #extra_parts="crtbegin.o crtend.o"
  1042.         ;;
  1043.       i[345]86-go32-msdos | i[345]86-*-go32)
  1044.               cpu_type=i386
  1045.               tm_file=i386/go32.h
  1046.               ;;
  1047.     i[345]86-*-lynxos*)
  1048.         cpu_type=i386
  1049.         if [ x$gas = xyes ]
  1050.         then
  1051.             tm_file=i386/lynx.h
  1052.         else
  1053.             tm_file=i386/lynx-ng.h
  1054.         fi
  1055.         xm_file=i386/xm-lynx.h
  1056.         tmake_file=i386/t-i386bare
  1057.         xmake_file=x-lynx
  1058.         ;;
  1059.     i[345]86-*-mach*)
  1060.         cpu_type=i386
  1061.         tm_file=i386/mach.h
  1062. #        tmake_file=t-libc-ok
  1063.         use_collect2=yes
  1064.         ;;
  1065.     i[345]86-*-osfrose*)        # 386 using OSF/rose
  1066.         cpu_type=i386
  1067.                 if [ x$elf = xyes ]
  1068.         then
  1069.             tm_file=i386/osfelf.h
  1070.             use_collect2=
  1071.         else
  1072.             tm_file=i386/osfrose.h
  1073.             use_collect2=yes
  1074.         fi
  1075.         xm_file=i386/xm-osf.h
  1076.         xmake_file=i386/x-osfrose
  1077.         extra_objs=halfpic.o
  1078.         ;;
  1079.     i[345]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
  1080.         cpu_type=i386
  1081.         xm_file=i386/xm-sco.h
  1082.         xmake_file=i386/x-sco4
  1083.         fixincludes=fixinc.sco
  1084.         broken_install=yes
  1085.         install_headers_dir=install-headers-cpio
  1086.                 if [ x$stabs = xyes ]
  1087.         then
  1088.             tm_file=i386/sco4dbx.h
  1089.             tmake_file=i386/t-svr3dbx
  1090.             extra_parts="svr3.ifile svr3z.rfile"
  1091.         else
  1092.             tm_file=i386/sco4.h
  1093.             tmake_file=i386/t-crtstuff
  1094.             extra_parts="crtbegin.o crtend.o"
  1095.         fi
  1096.         ;;
  1097.     i[345]86-*-sco*)         # 80386 running SCO system
  1098.         cpu_type=i386
  1099.         xm_file=i386/xm-sco.h
  1100.         xmake_file=i386/x-sco
  1101.         broken_install=yes
  1102.         install_headers_dir=install-headers-cpio
  1103.                 if [ x$stabs = xyes ]
  1104.         then
  1105.             tm_file=i386/scodbx.h
  1106.             tmake_file=i386/t-svr3dbx
  1107.             extra_parts="svr3.ifile svr3z.rfile"
  1108.         else
  1109.             tm_file=i386/sco.h
  1110.             extra_parts="crtbegin.o crtend.o"
  1111.             tmake_file=i386/t-crtstuff
  1112.         fi
  1113.         truncate_target=yes
  1114.         ;;
  1115.     i[345]86-*-solaris2* | i[345]86-*-sunos5*)
  1116.         cpu_type=i386
  1117.         xm_file=i386/xm-sysv4.h
  1118.         tm_file=i386/sol2.h
  1119.         tmake_file=i386/t-sol2
  1120.         extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
  1121.         xmake_file=x-svr4
  1122.         fixincludes=fixinc.svr4
  1123.         broken_install=yes
  1124.         ;;
  1125.     i[345]86-*-sysv4*)        # Intel 80386's running system V.4
  1126.         cpu_type=i386
  1127.         xm_file=i386/xm-sysv4.h
  1128.         if [ x$stabs = xyes ]
  1129.         then
  1130.             tm_file=i386/sysv4gdb.h
  1131.         else
  1132.             tm_file=i386/sysv4.h
  1133.         fi
  1134.         tmake_file=i386/t-crtpic
  1135.         xmake_file=x-svr4
  1136.         extra_parts="crtbegin.o crtend.o"
  1137.         ;;
  1138.     i[345]86-*-sysv*)        # Intel 80386's running system V
  1139.         cpu_type=i386
  1140.         xm_file=i386/xm-sysv3.h
  1141.         xmake_file=i386/x-sysv3
  1142.         if [ x$gas = xyes ]
  1143.         then
  1144.             if [ x$stabs = xyes ]
  1145.             then
  1146.                 tm_file=i386/svr3dbx.h
  1147.                 tmake_file=i386/t-svr3dbx
  1148.                 extra_parts="svr3.ifile svr3z.rfile"
  1149.             else
  1150.                 tm_file=i386/svr3gas.h
  1151.                 extra_parts="crtbegin.o crtend.o"
  1152.                 tmake_file=i386/t-crtstuff
  1153.             fi
  1154.         else
  1155.             tm_file=i386/sysv3.h
  1156.             extra_parts="crtbegin.o crtend.o"
  1157.             tmake_file=i386/t-crtstuff
  1158.         fi
  1159.         ;;
  1160.     i386-*-vsta)            # Intel 80386's running VSTa kernel
  1161.         xm_file=i386/xm-vsta.h
  1162.         tm_file=i386/vsta.h
  1163.         tmake_file=i386/t-vsta
  1164.         xmake_file=i386/x-vsta
  1165.         ;;
  1166.     i[345]86-*-winnt3*)
  1167.         cpu_type=i386
  1168.         tm_file=i386/win-nt.h
  1169.         out_file=i386/i386.c
  1170.         xm_file=i386/xm-winnt.h
  1171.         xmake_file=winnt/x-winnt
  1172.         tmake_file=i386/t-winnt
  1173.         extra_objs="winnt.o oldnames.o"
  1174.         extra_gcc_objs="spawnv.o oldnames.o"
  1175.         fixincludes=fixinc.winnt
  1176.         if [ x$gnu_ld != xyes ]
  1177.         then
  1178.             extra_programs=ld.exe
  1179.         fi
  1180.         ;;
  1181.     i860-alliant-*)        # Alliant FX/2800
  1182.         xm_file=i860/xm-fx2800.h
  1183.         xmake_file=i860/x-fx2800
  1184.         tm_file=i860/fx2800.h
  1185.         tmake_file=i860/t-fx2800
  1186.         extra_parts="crtbegin.o crtend.o"
  1187.         ;;
  1188.     i860-*-bsd*)
  1189.         if [ x$gas = xyes ]
  1190.         then
  1191.             tm_file=i860/bsd-gas.h
  1192.         else
  1193.             tm_file=i860/bsd.h
  1194.         fi
  1195.         use_collect2=yes
  1196.         ;;
  1197.     i860-*-mach*)
  1198.         xm_file=i860/xm-i860.h
  1199.         tm_file=i860/mach.h
  1200.         tmake_file=t-libc-ok
  1201.         ;;
  1202.     i860-*-osf*)            # Intel Paragon XP/S, OSF/1AD
  1203.         xm_file=i860/xm-paragon.h
  1204.         tm_file=i860/paragon.h
  1205.         tmake_file=t-osf
  1206.         broken_install=yes
  1207.         ;;
  1208.     i860-*-sysv3*)
  1209.         xm_file=i860/xm-sysv3.h
  1210.         xmake_file=i860/x-sysv3
  1211.         tm_file=i860/sysv3.h
  1212.         extra_parts="crtbegin.o crtend.o"
  1213.         ;;
  1214.     i860-*-sysv4*)
  1215.         xm_file=i860/xm-sysv4.h
  1216.         xmake_file=i860/x-sysv4
  1217.         tm_file=i860/sysv4.h
  1218.         tmake_file=t-svr4
  1219.         extra_parts="crtbegin.o crtend.o"
  1220.         ;;
  1221.     i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
  1222.         tmake_file=i960/t-vxworks960
  1223.         tm_file=i960/vx960.h
  1224.         use_collect2=yes
  1225.         ;;
  1226.     i960-wrs-vxworks5*)
  1227.         tmake_file=i960/t-vxworks960
  1228.         tm_file=i960/vx960-coff.h
  1229.         use_collect2=yes
  1230.         ;;
  1231.     i960-wrs-vxworks*)
  1232.         tmake_file=i960/t-vxworks960
  1233.         tm_file=i960/vx960.h
  1234.         use_collect2=yes
  1235.         ;;
  1236.     i960-*-coff*)
  1237.         tmake_file=i960/t-960bare
  1238.         tm_file=i960/i960-coff.h
  1239.         use_collect2=yes
  1240.         ;;
  1241.     i960-*-*)            # Default i960 environment.
  1242.         use_collect2=yes
  1243.         ;;
  1244.     m68000-convergent-sysv*)
  1245.         cpu_type=m68k
  1246.         xm_file=m68k/xm-3b1.h
  1247.         tm_file=m68k/ctix.h
  1248.         use_collect2=yes
  1249.         extra_headers=math-68881.h
  1250.         ;;
  1251.     m68000-hp-bsd*)            # HP 9000/200 running BSD
  1252.         cpu_type=m68k
  1253.         tm_file=m68k/hp2bsd.h
  1254.         xmake_file=m68k/x-hp2bsd
  1255.         use_collect2=yes
  1256.         extra_headers=math-68881.h
  1257.         ;;
  1258.     m68000-hp-hpux*)        # HP 9000 series 300
  1259.         cpu_type=m68k
  1260.         xm_file=m68k/xm-hp320.h
  1261.         if [ x$gas = xyes ]
  1262.         then
  1263.             xmake_file=m68k/x-hp320g
  1264.             tm_file=m68k/hp310g.h
  1265.         else
  1266.             xmake_file=m68k/x-hp320
  1267.             tm_file=m68k/hp310.h
  1268.         fi
  1269.         broken_install=yes
  1270.         install_headers_dir=install-headers-cpio
  1271.         use_collect2=yes
  1272.         extra_headers=math-68881.h
  1273.         ;;
  1274.     m68000-sun-sunos3*)
  1275.         cpu_type=m68k
  1276.         tm_file=m68k/sun2.h
  1277.         use_collect2=yes
  1278.         extra_headers=math-68881.h
  1279.         ;;
  1280.     m68000-sun-sunos4*)
  1281.         cpu_type=m68k
  1282.         tm_file=m68k/sun2o4.h
  1283.         use_collect2=yes
  1284.         extra_headers=math-68881.h
  1285.         ;;
  1286.     m68000-att-sysv*)
  1287.         cpu_type=m68k
  1288.         xm_file=m68k/xm-3b1.h
  1289.         if [ x$gas = xyes ]
  1290.         then
  1291.             tm_file=m68k/3b1g.h
  1292.         else
  1293.             tm_file=m68k/3b1.h
  1294.         fi
  1295.         use_collect2=yes
  1296.         extra_headers=math-68881.h
  1297.         ;;
  1298.     m68k-apollo-*)
  1299.         xmake_file=m68k/x-apollo68
  1300.         tm_file=m68k/apollo68.h
  1301.         use_collect2=yes
  1302.         extra_headers=math-68881.h
  1303.         ;;
  1304.     m68k-altos-sysv*)           # Altos 3068
  1305.         if [ x$gas = xyes ]
  1306.         then
  1307.                 xm_file=m68k/xm-altos3068.h
  1308.                 tm_file=m68k/altos3068.h
  1309.         else
  1310.             echo "The Altos is supported only with the GNU assembler" 1>&2
  1311.             exit 1
  1312.         fi
  1313.         extra_headers=math-68881.h
  1314.             ;;
  1315.     m68k-bull-sysv*)        # Bull DPX/2
  1316.         if [ x$gas = xyes ]
  1317.         then
  1318.             if [ x$stabs = xyes ]
  1319.             then
  1320.                 tm_file=m68k/dpx2cdbx.h
  1321.             else
  1322.                 tm_file=m68k/dpx2g.h
  1323.             fi
  1324.         else
  1325.             tm_file=m68k/dpx2.h
  1326.         fi
  1327.         xm_file=m68k/xm-m68kv.h
  1328.         xmake_file=m68k/x-dpx2
  1329.         use_collect2=yes
  1330.         extra_headers=math-68881.h
  1331.         ;;
  1332.     m68k-atari-sysv4*)              # Atari variant of V.4.
  1333.         tm_file=m68k/atari.h
  1334.         xm_file=m68k/xm-atari.h
  1335.         tmake_file=t-svr4
  1336.         extra_parts="crtbegin.o crtend.o"
  1337.         extra_headers=math-68881.h
  1338.         ;;
  1339.     m68k-motorola-sysv*)
  1340.         xm_file=m68k/xm-mot3300.h
  1341.         xmake_file=m68k/x-mot3300
  1342.         if [ x$gas = xyes ]
  1343.         then
  1344.             tm_file=m68k/mot3300g.h
  1345.         else
  1346.             tm_file=m68k/mot3300.h
  1347.             gdb_needs_out_file_path=yes
  1348.         fi
  1349.         use_collect2=yes
  1350.         extra_headers=math-68881.h
  1351.         ;;
  1352.     m68k-ncr-sysv*)            # NCR Tower 32 SVR3
  1353.         tm_file=m68k/tower-as.h
  1354.         xm_file=m68k/xm-tower.h
  1355.         xmake_file=m68k/x-tower
  1356.         extra_parts="crtbegin.o crtend.o"
  1357.         extra_headers=math-68881.h
  1358.         ;;
  1359.         m68k-plexus-sysv*)
  1360.         tm_file=m68k/plexus.h
  1361.         xm_file=m68k/xm-plexus.h
  1362.         use_collect2=yes
  1363.         extra_headers=math-68881.h
  1364.         ;;
  1365.     m68k-tti-*)
  1366.         tm_file=m68k/pbb.h
  1367.         xm_file=m68k/xm-m68kv.h
  1368.         extra_headers=math-68881.h
  1369.         ;;
  1370.     m68k-crds-unos*)
  1371.         xm_file=m68k/xm-crds.h
  1372.         xmake_file=m68k/x-crds
  1373.         tm_file=m68k/crds.h
  1374.         broken_install=yes
  1375.         use_collect2=yes
  1376.         extra_headers=math-68881.h
  1377.         ;;
  1378.     m68k-cbm-sysv4*)        # Commodore variant of V.4.
  1379.         tm_file=m68k/amix.h
  1380.         xm_file=m68k/xm-amix.h
  1381.         xmake_file=m68k/x-amix
  1382.         tmake_file=t-svr4
  1383.         extra_parts="crtbegin.o crtend.o"
  1384.         extra_headers=math-68881.h
  1385.         ;;
  1386.     m68k-ccur-rtu)
  1387.         tm_file=m68k/ccur-GAS.h
  1388.         xmake_file=m68k/x-ccur
  1389.         extra_headers=math-68881.h
  1390.         use_collect2=yes
  1391.         broken_install=yes
  1392.         ;;
  1393.     m68k-hp-bsd4.4*)        # HP 9000/3xx running 4.4bsd
  1394.         tm_file=m68k/hp3bsd44.h
  1395.         xmake_file=m68k/x-hp3bsd44
  1396.         use_collect2=yes
  1397.         extra_headers=math-68881.h
  1398.         ;;
  1399.     m68k-hp-bsd*)            # HP 9000/3xx running Berkeley Unix
  1400.         tm_file=m68k/hp3bsd.h
  1401.         use_collect2=yes
  1402.         extra_headers=math-68881.h
  1403.         ;;
  1404.     m68k-isi-bsd*)
  1405.         if [ x$nfp = xyes ]
  1406.         then
  1407.             tm_file=m68k/isi-nfp.h
  1408.         else
  1409.             tm_file=m68k/isi.h
  1410.         fi
  1411.         use_collect2=yes
  1412.         extra_headers=math-68881.h
  1413.         ;;
  1414.     m68k-hp-hpux7*)    # HP 9000 series 300 running HPUX version 7.
  1415.         xm_file=m68k/xm-hp320.h
  1416.         if [ x$gas = xyes ]
  1417.         then
  1418.             xmake_file=m68k/x-hp320g
  1419.             tm_file=m68k/hp320g.h
  1420.         else
  1421.             xmake_file=m68k/x-hp320
  1422.             tm_file=m68k/hpux7.h
  1423.         fi
  1424.         broken_install=yes
  1425.         install_headers_dir=install-headers-cpio
  1426.         use_collect2=yes
  1427.         extra_headers=math-68881.h
  1428.         ;;
  1429.     m68k-hp-hpux*)    # HP 9000 series 300
  1430.         xm_file=m68k/xm-hp320.h
  1431.         if [ x$gas = xyes ]
  1432.         then
  1433.             xmake_file=m68k/x-hp320g
  1434.             tm_file=m68k/hp320g.h
  1435.         else
  1436.             xmake_file=m68k/x-hp320
  1437.             tm_file=m68k/hp320.h
  1438.         fi
  1439.         broken_install=yes
  1440.         install_headers_dir=install-headers-cpio
  1441.         use_collect2=yes
  1442.         extra_headers=math-68881.h
  1443.         ;;
  1444.     m68k-sun-mach*)
  1445.         tm_file=m68k/sun3mach.h
  1446.         use_collect2=yes
  1447.         extra_headers=math-68881.h
  1448.         ;;
  1449.     m68k-sony-newsos3*)
  1450.         if [ x$gas = xyes ]
  1451.         then
  1452.             tm_file=m68k/news3gas.h
  1453.         else
  1454.             tm_file=m68k/news3.h
  1455.         fi
  1456.         use_collect2=yes
  1457.         extra_headers=math-68881.h
  1458.         ;;
  1459.     m68k-sony-bsd* | m68k-sony-newsos*)
  1460.         if [ x$gas = xyes ]
  1461.         then
  1462.             tm_file=m68k/newsgas.h
  1463.         else
  1464.             tm_file=m68k/news.h
  1465.         fi
  1466.         use_collect2=yes
  1467.         extra_headers=math-68881.h
  1468.         ;;
  1469.     m68k-next-nextstep2*)
  1470.         tm_file=m68k/next21.h
  1471.         out_file=m68k/next.c
  1472.         xm_file=m68k/xm-next.h
  1473.         tmake_file=m68k/t-next
  1474.         xmake_file=m68k/x-next
  1475.         extra_headers=math-68881.h
  1476.         use_collect2=yes
  1477.                 ;;
  1478.     m68k-next-nextstep3*)
  1479.         tm_file=m68k/next.h
  1480.         out_file=m68k/next.c
  1481.         xm_file=m68k/xm-next.h
  1482.         tmake_file=m68k/t-next
  1483.         xmake_file=m68k/x-next
  1484.         extra_headers=math-68881.h
  1485.         ;;
  1486.     m68k-sun-sunos3*)
  1487.         if [ x$nfp = xyes ]
  1488.         then
  1489.             tm_file=m68k/sun3n3.h
  1490.         else
  1491.             tm_file=m68k/sun3o3.h
  1492.         fi
  1493.         use_collect2=yes
  1494.         extra_headers=math-68881.h
  1495.         ;;
  1496.     m68k-sun-sunos*)            # For SunOS 4 (the default).
  1497.         if [ x$nfp = xyes ]
  1498.         then
  1499.             tm_file=m68k/sun3n.h
  1500.         else
  1501.             tm_file=m68k/sun3.h
  1502.         fi
  1503.         use_collect2=yes
  1504.         extra_headers=math-68881.h
  1505.         ;;
  1506.     m68k-*-amigaos*)
  1507.         xm_file=m68k/xm-amigaos.h
  1508.         out_file=m68k/amigaos.c
  1509.         tm_file=m68k/amigaos.h
  1510.         tmake_file=m68k/t-amigaos
  1511.         xmake_file=m68k/x-amigaos
  1512.         fixincludes=Makefile.in # Headers are already fixed.
  1513.         broken_install=cp
  1514.         install_headers_dir=install-headers-cp
  1515.         ;;
  1516.     m68k-wrs-vxworks*)
  1517.         tm_file=m68k/vxm68k.h
  1518.         tmake_file=m68k/t-vxworks68
  1519.         extra_headers=math-68881.h
  1520.         ;;
  1521.     m68k-*-aout*)
  1522.         tmake_file=m68k/t-m68kbare
  1523.         tm_file=m68k/m68k-aout.h
  1524.         extra_headers=math-68881.h
  1525.         ;;
  1526.     m68k-*-coff*)
  1527.         tmake_file=m68k/t-m68kbare
  1528.         tm_file=m68k/m68k-coff.h
  1529.         extra_headers=math-68881.h
  1530.         ;;
  1531.     m68k-*-lynxos*)
  1532.         if [ x$gas = xyes ]
  1533.         then
  1534.             tm_file=m68k/lynx.h
  1535.         else
  1536.             tm_file=m68k/lynx-ng.h
  1537.         fi
  1538.         xm_file=m68k/xm-lynx.h
  1539.         xmake_file=x-lynx
  1540.         tmake_file=m68k/t-lynx
  1541.         extra_headers=math-68881.h
  1542.         ;;
  1543.     m68k-*-netbsd*)
  1544.         cpu_type=m68k
  1545.         tm_file=m68k/netbsd.h
  1546.         xm_file=m68k/xm-netbsd.h
  1547.         # On NetBSD, the headers are already okay.
  1548.         fixincludes=Makefile.in
  1549.         tmake_file=t-libc-ok
  1550.         xmake_file=x-netbsd
  1551.         ;;
  1552.     m68k-*-sysv3*)            # Motorola m68k's running system V.3
  1553.         xm_file=m68k/xm-m68kv.h
  1554.         xmake_file=m68k/x-m68kv
  1555.         extra_parts="crtbegin.o crtend.o"
  1556.         extra_headers=math-68881.h
  1557.         ;;
  1558.     m68k-*-sysv4*)            # Motorola m68k's running system V.4
  1559.         tm_file=m68k/m68kv4.h
  1560.         xm_file=m68k/xm-m68kv.h
  1561.         tmake_file=t-svr4
  1562.         extra_parts="crtbegin.o crtend.o"
  1563.         extra_headers=math-68881.h
  1564.         ;;
  1565.     m68k-*-linux*aout*)        # Motorola m68k's running Linux
  1566.         xm_file=m68k/xm-linux.h    # with a.out format
  1567.         xmake_file=x-linux
  1568.         tm_file=m68k/linux-aout.h
  1569.         tmake_file=m68k/t-linux
  1570.         fixincludes=Makefile.in #On Linux, the headers are ok already.
  1571.         extra_headers=math-68881.h
  1572.         gnu_ld=yes
  1573.         ;;
  1574.     m68k-*-linux*)            # Motorola m68k's running Linux
  1575.         xm_file=m68k/xm-linux.h    # with ELF format
  1576.         xmake_file=x-linux
  1577.         tm_file=m68k/linux.h
  1578.         tmake_file=m68k/t-linux
  1579.         fixincludes=Makefile.in #On Linux, the headers are ok already.
  1580.         extra_headers=math-68881.h
  1581.         gnu_ld=yes
  1582.         # Don't use it. Linux uses a slightly different one.
  1583.         # The real one comes with the Linux C library.
  1584.         #extra_parts="crtbegin.o crtend.o"
  1585.         ;;
  1586.     m88k-dg-dgux*)
  1587.         case $machine in
  1588.           m88k-dg-dguxbcs*)
  1589.             tm_file=m88k/dguxbcs.h
  1590.             xmake_file=m88k/x-dguxbcs
  1591.             ;;
  1592.           *)
  1593.             tm_file=m88k/dgux.h
  1594.             xmake_file=m88k/x-dgux
  1595.             ;;
  1596.         esac
  1597.         extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
  1598.         broken_install=yes
  1599.         if [ x$gas = xyes ]
  1600.         then
  1601.             tmake_file=m88k/t-dgux-gas
  1602.         else
  1603.             tmake_file=m88k/t-dgux
  1604.         fi
  1605.         fixincludes=fixinc.dgux
  1606.         ;;
  1607.     m88k-dolphin-sysv3*)
  1608.         tm_file=m88k/dolph.h
  1609.         extra_parts="crtbegin.o crtend.o"
  1610.         xm_file=m88k/xm-sysv3.h
  1611.         xmake_file=m88k/x-dolph
  1612.         if [ x$gas = xyes ]
  1613.         then
  1614.             tmake_file=m88k/t-m88k-gas
  1615.         fi
  1616.         ;;
  1617.     m88k-tektronix-sysv3)
  1618.         tm_file=m88k/tekXD88.h
  1619.         extra_parts="crtbegin.o crtend.o"
  1620.         xm_file=m88k/xm-sysv3.h
  1621.         xmake_file=m88k/x-tekXD88
  1622.         if [ x$gas = xyes ]
  1623.         then
  1624.             tmake_file=m88k/t-m88k-gas
  1625.         fi
  1626.         ;;
  1627.     m88k-*-aout*)
  1628.         cpu_type=m88k
  1629.         tm_file=m88k/m88k-aout.h
  1630.         ;;
  1631.     m88k-*-coff*)
  1632.         cpu_type=m88k
  1633.         tm_file=m88k/m88k-coff.h
  1634.         tmake_file=m88k/t-bug
  1635.         ;;
  1636.     m88k-*-luna*)
  1637.         tm_file=m88k/luna.h
  1638.         extra_parts="crtbegin.o crtend.o"
  1639.         if [ x$gas = xyes ]
  1640.         then
  1641.             tmake_file=m88k/t-luna-gas
  1642.         else
  1643.             tmake_file=m88k/t-luna
  1644.         fi
  1645.         ;;
  1646.     m88k-*-sysv3*)
  1647.         tm_file=m88k/sysv3.h
  1648.         extra_parts="crtbegin.o crtend.o"
  1649.         xm_file=m88k/xm-sysv3.h
  1650.         xmake_file=m88k/x-sysv3
  1651.         if [ x$gas = xyes ]
  1652.         then
  1653.             tmake_file=m88k/t-m88k-gas
  1654.         fi
  1655.         ;;
  1656.     m88k-*-sysv4*)
  1657.         tm_file=m88k/sysv4.h
  1658.         extra_parts="crtbegin.o crtend.o"
  1659.         xmake_file=m88k/x-sysv4
  1660.         tmake_file=m88k/t-sysv4
  1661.         ;;
  1662.     mips-sgi-irix6*)        # SGI System V.4., IRIX 6
  1663.         tm_file=mips/iris6.h
  1664.         xm_file=mips/xm-iris6.h
  1665.         broken_install=yes
  1666.         fixincludes=Makefile.in
  1667.         xmake_file=mips/x-iris6
  1668.         tmake_file=mips/t-iris6
  1669.         # See comment in mips/iris[56].h files.
  1670.         use_collect2=yes
  1671.         ;;
  1672.     mips-sgi-irix5cross64)        # Irix5 host, Irix 6 target, cross64
  1673.         tm_file=mips/cross64.h
  1674.         xm_file=mips/xm-iris5.h
  1675.         broken_install=yes
  1676.         fixincludes=Makefile.in
  1677.         xmake_file=mips/x-iris
  1678.         tmake_file=mips/t-cross64
  1679.         # See comment in mips/iris[56].h files.
  1680.         use_collect2=yes
  1681.         ;;
  1682.     mips-sgi-irix5*)        # SGI System V.4., IRIX 5
  1683.         if [ x$gas = xyes ]
  1684.         then
  1685.             if [ x$stabs = xyes ]
  1686.             then
  1687.                 tm_file=mips/iris5gdb.h
  1688.             else
  1689.                 tm_file=mips/iris5gas.h
  1690.             fi
  1691.         else
  1692.             tm_file=mips/iris5.h
  1693.         fi
  1694.         xm_file=mips/xm-iris5.h
  1695.         broken_install=yes
  1696.         fixincludes=Makefile.in
  1697.         xmake_file=mips/x-iris
  1698.         # mips-tfile doesn't work yet
  1699.         tmake_file=mips/t-mips-gas
  1700.         # See comment in mips/iris5.h file.
  1701.         use_collect2=yes
  1702.         ;;
  1703.     mips-sgi-irix4loser*)        # Mostly like a MIPS.
  1704.         if [ x$stabs = xyes ]; then
  1705.             tm_file=mips/iris4gl.h
  1706.         else
  1707.             tm_file=mips/iris4loser.h
  1708.         fi
  1709.         xm_file=mips/xm-iris4.h
  1710.         broken_install=yes
  1711.         xmake_file=mips/x-iris
  1712.         if [ x$gas = xyes ]
  1713.         then
  1714.             tmake_file=mips/t-mips-gas
  1715.         else
  1716.             extra_passes="mips-tfile mips-tdump"
  1717.         fi
  1718.         if [ x$gnu_ld != xyes ]
  1719.         then
  1720.             use_collect2=yes
  1721.         fi
  1722.         ;;
  1723.     mips-sgi-irix4*)        # Mostly like a MIPS.
  1724.         if [ x$stabs = xyes ]; then
  1725.             tm_file=mips/iris4-gdb.h
  1726.         else
  1727.             tm_file=mips/iris4.h
  1728.         fi
  1729.         xm_file=mips/xm-iris4.h
  1730.         broken_install=yes
  1731.         xmake_file=mips/x-iris
  1732.         if [ x$gas = xyes ]
  1733.         then
  1734.             tmake_file=mips/t-mips-gas
  1735.         else
  1736.             extra_passes="mips-tfile mips-tdump"
  1737.         fi
  1738.         if [ x$gnu_ld != xyes ]
  1739.         then
  1740.             use_collect2=yes
  1741.         fi
  1742.         ;;
  1743.     mips-sgi-*)            # Mostly like a MIPS.
  1744.         if [ x$stabs = xyes ]; then
  1745.             tm_file=mips/iris3-gdb.h
  1746.         else
  1747.             tm_file=mips/iris3.h
  1748.         fi
  1749.         xm_file=mips/xm-iris3.h
  1750.         broken_install=yes
  1751.         xmake_file=mips/x-iris3
  1752.         if [ x$gas = xyes ]
  1753.         then
  1754.             tmake_file=mips/t-mips-gas
  1755.         else
  1756.             extra_passes="mips-tfile mips-tdump"
  1757.         fi
  1758.         if [ x$gnu_ld != xyes ]
  1759.         then
  1760.             use_collect2=yes
  1761.         fi
  1762.         ;;
  1763.     mips-dec-osfrose*)        # Decstation running OSF/1 reference port with OSF/rose.
  1764.         tm_file=mips/osfrose.h
  1765.         xmake_file=mips/x-osfrose
  1766.         tmake_file=mips/t-osfrose
  1767.         extra_objs=halfpic.o
  1768.         use_collect2=yes
  1769.         ;;
  1770.     mips-dec-osf*)            # Decstation running OSF/1 as shipped by DIGITAL
  1771.         if [ x$stabs = xyes ]; then
  1772.             tm_file=mips/dec-gosf1.h
  1773.         else
  1774.             tm_file=mips/dec-osf1.h
  1775.         fi
  1776.         xmake_file=mips/x-dec-osf1
  1777.         if [ x$gas = xyes ]
  1778.         then
  1779.             tmake_file=mips/t-mips-gas
  1780.         else
  1781.             tmake_file=mips/t-ultrix
  1782.             extra_passes="mips-tfile mips-tdump"
  1783.         fi
  1784.         if [ x$gnu_ld != xyes ]
  1785.         then
  1786.             use_collect2=yes
  1787.         fi
  1788.         ;;
  1789.     mips-dec-bsd*)                  # Decstation running 4.4 BSD
  1790.               tm_file=mips/dec-bsd.h
  1791.               xmake_file=
  1792.               tmake_file=
  1793.               fixincludes=
  1794.           if [ x$gas = xyes ]
  1795.           then
  1796.                tmake_file=mips/t-mips-gas
  1797.           else
  1798.             tmake_file=mips/t-ultrix
  1799.             extra_passes="mips-tfile mips-tdump"
  1800.           fi
  1801.           if [ x$gnu_ld != xyes ]
  1802.           then
  1803.             use_collect2=yes
  1804.           fi
  1805.           ;;
  1806.     mips-dec-netbsd*)                  # Decstation running NetBSD
  1807.         tm_file=mips/netbsd.h
  1808.         xm_file=mips/xm-netbsd.h
  1809.         xmake_file=x-netbsd
  1810.         tmake_file=t-libc-ok
  1811.         fixincludes=Makefile.in
  1812.         prefix=$native_prefix
  1813.         ;;
  1814.     mips-sony-bsd* | mips-sony-newsos*)    # Sony NEWS 3600 or risc/news.
  1815.         if [ x$stabs = xyes ]; then
  1816.             tm_file=mips/news4-gdb.h
  1817.         else
  1818.             tm_file=mips/news4.h
  1819.         fi
  1820.         if [ x$gas = xyes ]
  1821.         then
  1822.             tmake_file=mips/t-mips-gas
  1823.         else
  1824.             extra_passes="mips-tfile mips-tdump"
  1825.         fi
  1826.         if [ x$gnu_ld != xyes ]
  1827.         then
  1828.             use_collect2=yes
  1829.         fi
  1830.         xmake_file=mips/x-sony
  1831.         ;;
  1832.     mips-sony-sysv*)        # Sony NEWS 3800 with NEWSOS5.0.
  1833.                     # That is based on svr4.
  1834.         # t-svr4 is not right because this system doesn't use ELF.
  1835.         if [ x$stabs = xyes ]; then
  1836.             tm_file=mips/news5-gdb.h
  1837.         else
  1838.             tm_file=mips/news5.h
  1839.         fi
  1840.         xm_file=mips/xm-news.h
  1841.         if [ x$gas = xyes ]
  1842.         then
  1843.             tmake_file=mips/t-mips-gas
  1844.         else
  1845.             extra_passes="mips-tfile mips-tdump"
  1846.         fi
  1847.         if [ x$gnu_ld != xyes ]
  1848.         then
  1849.             use_collect2=yes
  1850.         fi
  1851.         ;;
  1852.     mips-tandem-sysv4*)        # Tandem S2 running NonStop UX
  1853.         if [ x$stabs = xyes ]; then
  1854.             tm_file=mips/svr4-t-gdb.h
  1855.         else
  1856.             tm_file=mips/svr4-t.h
  1857.         fi
  1858.         xm_file=mips/xm-sysv4.h
  1859.         xmake_file=mips/x-sysv
  1860.         if [ x$gas = xyes ]
  1861.         then
  1862.             tmake_file=mips/t-mips-gas
  1863.             extra_parts="crtbegin.o crtend.o"
  1864.         else
  1865.             tmake_file=mips/t-mips
  1866.             extra_passes="mips-tfile mips-tdump"
  1867.         fi
  1868.         if [ x$gnu_ld != xyes ]
  1869.         then
  1870.             use_collect2=yes
  1871.         fi
  1872.         broken_install=yes
  1873.         ;;
  1874.     mips-*-ultrix* | mips-dec-mach3)    # Decstation.
  1875.         if [ x$stabs = xyes ]; then
  1876.             tm_file=mips/ultrix-gdb.h
  1877.         else
  1878.             tm_file=mips/ultrix.h
  1879.         fi
  1880.         xmake_file=mips/x-ultrix
  1881.         if [ x$gas = xyes ]
  1882.         then
  1883.             tmake_file=mips/t-mips-gas
  1884.         else
  1885.             tmake_file=mips/t-ultrix
  1886.             extra_passes="mips-tfile mips-tdump"
  1887.         fi
  1888.         if [ x$gnu_ld != xyes ]
  1889.         then
  1890.             use_collect2=yes
  1891.         fi
  1892.             ;;
  1893.     mips-*-riscos[56789]bsd*)
  1894.         if [ x$stabs = xyes ]; then    # MIPS BSD 4.3, RISC-OS 5.0
  1895.             tm_file=mips/bsd-5-gdb.h
  1896.         else
  1897.             tm_file=mips/bsd-5.h
  1898.         fi
  1899.         if [ x$gas = xyes ]
  1900.         then
  1901.             tmake_file=mips/t-bsd-gas
  1902.         else
  1903.             tmake_file=mips/t-bsd
  1904.             extra_passes="mips-tfile mips-tdump"
  1905.         fi
  1906.         if [ x$gnu_ld != xyes ]
  1907.         then
  1908.             use_collect2=yes
  1909.         fi
  1910.         broken_install=yes
  1911.             ;;
  1912.     mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
  1913.         if [ x$stabs = xyes ]; then    # MIPS BSD 4.3, RISC-OS 4.0
  1914.             tm_file=mips/bsd-4-gdb.h
  1915.         else
  1916.             tm_file=mips/bsd-4.h
  1917.         fi
  1918.         if [ x$gas = xyes ]
  1919.         then
  1920.             tmake_file=mips/t-bsd-gas
  1921.         else
  1922.             tmake_file=mips/t-bsd
  1923.             extra_passes="mips-tfile mips-tdump"
  1924.         fi
  1925.         if [ x$gnu_ld != xyes ]
  1926.         then
  1927.             use_collect2=yes
  1928.         fi
  1929.         broken_install=yes
  1930.             ;;
  1931.     mips-*-riscos[56789]sysv4*)
  1932.         if [ x$stabs = xyes ]; then    # MIPS System V.4., RISC-OS 5.0
  1933.             tm_file=mips/svr4-5-gdb.h
  1934.         else
  1935.             tm_file=mips/svr4-5.h
  1936.         fi
  1937.         xm_file=mips/xm-sysv4.h
  1938.         xmake_file=mips/x-sysv
  1939.         if [ x$gas = xyes ]
  1940.         then
  1941.             tmake_file=mips/t-svr4-gas
  1942.         else
  1943.             tmake_file=mips/t-svr4
  1944.             extra_passes="mips-tfile mips-tdump"
  1945.         fi
  1946.         if [ x$gnu_ld != xyes ]
  1947.         then
  1948.             use_collect2=yes
  1949.         fi
  1950.         broken_install=yes
  1951.         ;;
  1952.     mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
  1953.         if [ x$stabs = xyes ]; then    # MIPS System V.4. RISC-OS 4.0
  1954.             tm_file=mips/svr4-4-gdb.h
  1955.         else
  1956.             tm_file=mips/svr4-4.h
  1957.         fi
  1958.         xm_file=mips/xm-sysv.h
  1959.         xmake_file=mips/x-sysv
  1960.         if [ x$gas = xyes ]
  1961.         then
  1962.             tmake_file=mips/t-svr4-gas
  1963.         else
  1964.             tmake_file=mips/t-svr4
  1965.             extra_passes="mips-tfile mips-tdump"
  1966.         fi
  1967.         if [ x$gnu_ld != xyes ]
  1968.         then
  1969.             use_collect2=yes
  1970.         fi
  1971.         broken_install=yes
  1972.         ;;
  1973.     mips-*-riscos[56789]sysv*)
  1974.         if [ x$stabs = xyes ]; then    # MIPS System V.3, RISC-OS 5.0
  1975.             tm_file=mips/svr3-5-gdb.h
  1976.         else
  1977.             tm_file=mips/svr3-5.h
  1978.         fi
  1979.         xm_file=mips/xm-sysv.h
  1980.         xmake_file=mips/x-sysv
  1981.         if [ x$gas = xyes ]
  1982.         then
  1983.             tmake_file=mips/t-svr3-gas
  1984.         else
  1985.             tmake_file=mips/t-svr3
  1986.             extra_passes="mips-tfile mips-tdump"
  1987.         fi
  1988.         if [ x$gnu_ld != xyes ]
  1989.         then
  1990.             use_collect2=yes
  1991.         fi
  1992.         broken_install=yes
  1993.         ;;
  1994.     mips-*-sysv* | mips-*-riscos*sysv*)
  1995.         if [ x$stabs = xyes ]; then    # MIPS System V.3, RISC-OS 4.0
  1996.             tm_file=mips/svr3-4-gdb.h
  1997.         else
  1998.             tm_file=mips/svr3-4.h
  1999.         fi
  2000.         xm_file=mips/xm-sysv.h
  2001.         xmake_file=mips/x-sysv
  2002.         if [ x$gas = xyes ]
  2003.         then
  2004.             tmake_file=mips/t-svr3-gas
  2005.         else
  2006.             tmake_file=mips/t-svr3
  2007.             extra_passes="mips-tfile mips-tdump"
  2008.         fi
  2009.         if [ x$gnu_ld != xyes ]
  2010.         then
  2011.             use_collect2=yes
  2012.         fi
  2013.         broken_install=yes
  2014.         ;;
  2015.     mips-*-riscos[56789]*)            # Default MIPS RISC-OS 5.0.
  2016.         if [ x$stabs = xyes ]; then
  2017.             tm_file=mips/mips-5-gdb.h
  2018.         else
  2019.             tm_file=mips/mips-5.h
  2020.         fi
  2021.         if [ x$gas = xyes ]
  2022.         then
  2023.             tmake_file=mips/t-mips-gas
  2024.         else
  2025.             extra_passes="mips-tfile mips-tdump"
  2026.         fi
  2027.         if [ x$gnu_ld != xyes ]
  2028.         then
  2029.             use_collect2=yes
  2030.         fi
  2031.         broken_install=yes
  2032.         ;;
  2033.     mips-*-gnu*)
  2034.         cpu_type=mips    # GNU supports this CPU; rest done below.
  2035.         ;;
  2036.     mipsel-*-ecoff*)
  2037.         cpu_type=mips
  2038.         if [ x$stabs = xyes ]; then
  2039.             tm_file=mips/ecoffl-gdb.h
  2040.         else
  2041.             tm_file=mips/ecoffl.h
  2042.         fi
  2043.         tmake_file=mips/t-ecoff
  2044.         ;;
  2045.     mips-*-ecoff*)
  2046.         if [ x$stabs = xyes ]; then
  2047.             tm_file=mips/ecoff-gdb.h
  2048.         else
  2049.             tm_file=mips/ecoff.h
  2050.         fi
  2051.         tmake_file=mips/t-ecoff
  2052.         broken_install=yes
  2053.         ;;
  2054.     mipsel-*-elf*)
  2055.         cpu_type=mips
  2056.         tm_file=mips/elfl.h
  2057.         tmake_file=mips/t-ecoff
  2058.         ;;
  2059.     mips-*-elf*)
  2060.         cpu_type=mips
  2061.         tm_file=mips/elf.h
  2062.         tmake_file=mips/t-ecoff
  2063.         ;;
  2064.     mips64el-*-elf*)
  2065.         cpu_type=mips
  2066.         tm_file=mips/elfl64.h
  2067.         tmake_file=mips/t-ecoff
  2068.         ;;
  2069.     mips64orionel-*-elf*)
  2070.         cpu_type=mips
  2071.         tm_file=mips/elflorion.h
  2072.         tmake_file=mips/t-ecoff
  2073.         ;;
  2074.     mips64-*-elf*)
  2075.         cpu_type=mips
  2076.         tm_file=mips/elf64.h
  2077.         tmake_file=mips/t-ecoff
  2078.         ;;
  2079.     mips64orion-*-elf*)
  2080.         cpu_type=mips
  2081.         tm_file=mips/elforion.h
  2082.         tmake_file=mips/t-ecoff
  2083.         ;;
  2084.     mips-*-*)                # Default MIPS RISC-OS 4.0.
  2085.         if [ x$stabs = xyes ]; then
  2086.             tm_file=mips/mips-4-gdb.h
  2087.         else
  2088.             tm_file=mips/mips.h
  2089.         fi
  2090.         if [ x$gas = xyes ]
  2091.         then
  2092.             tmake_file=mips/t-mips-gas
  2093.         else
  2094.             extra_passes="mips-tfile mips-tdump"
  2095.         fi
  2096.         if [ x$gnu_ld != xyes ]
  2097.         then
  2098.             use_collect2=yes
  2099.         fi
  2100.         ;;
  2101.     ns32k-encore-bsd*)
  2102.         tm_file=ns32k/encore.h
  2103.         use_collect2=yes
  2104.         ;;
  2105.     ns32k-sequent-bsd*)
  2106.         tm_file=ns32k/sequent.h
  2107.         use_collect2=yes
  2108.         ;;
  2109.     ns32k-tek6100-bsd*)
  2110.         tm_file=ns32k/tek6100.h
  2111.         broken_install=yes
  2112.         use_collect2=yes
  2113.         ;;
  2114.     ns32k-tek6200-bsd*)
  2115.         tm_file=ns32k/tek6200.h
  2116.         broken_install=yes
  2117.         use_collect2=yes
  2118.         ;;
  2119. # This has not been updated to GCC 2.
  2120. #    ns32k-ns-genix*)
  2121. #        xm_file=ns32k/xm-genix.h
  2122. #        xmake_file=ns32k/x-genix
  2123. #        tm_file=ns32k/genix.h
  2124. #        broken_install=yes
  2125. #        use_collect2=yes
  2126. #        ;;
  2127.     ns32k-merlin-*)
  2128.         tm_file=ns32k/merlin.h
  2129.         use_collect2=yes
  2130.         ;;
  2131.     ns32k-pc532-mach*)
  2132.         tm_file=ns32k/pc532-mach.h
  2133.         use_collect2=yes
  2134.         ;;
  2135.     ns32k-pc532-minix*)
  2136.         tm_file=ns32k/pc532-min.h
  2137.         xm_file=ns32k/xm-pc532-min.h
  2138.         use_collect2=yes
  2139.         ;;
  2140.     ns32k-pc532-netbsd*)
  2141.         tm_file=ns32k/netbsd.h
  2142.         xm_file=ns32k/xm-netbsd.h
  2143.         tmake_file=t-libc-ok
  2144.         # On NetBSD, the headers are already okay.
  2145.         fixincludes=Makefile.in
  2146.         xmake_file=x-netbsd
  2147.         ;;
  2148.     pyramid-*-*)
  2149.         cpu_type=pyr
  2150.         xmake_file=pyr/x-pyr
  2151.         use_collect2=yes
  2152.         ;;
  2153.     romp-*-aos*)
  2154.         use_collect2=yes
  2155.         ;;
  2156.     romp-*-mach*)
  2157.         xmake_file=romp/x-mach
  2158.         use_collect2=yes
  2159.         ;;
  2160.     powerpc-*-amigaos*)
  2161.         cpu_type=rs6000
  2162.         xm_file=rs6000/xm-amigaos.h
  2163.         tm_file=rs6000/amigaos.h
  2164.         tmake_file=rs6000/t-amigaos
  2165.         xmake_file=rs6000/x-amigaos
  2166.         fixincludes=Makefile.in # Headers are already fixed.
  2167.         broken_install=cp
  2168.         install_headers_dir=install-headers-cp
  2169.         ;;
  2170.     powerpc-ibm-aix[456789].*)
  2171.         cpu_type=rs6000
  2172.         tm_file=rs6000/aix41ppc.h
  2173.         tmake_file=rs6000/t-newas
  2174.         use_collect2=yes
  2175.         ;;
  2176.     powerpc-ibm-aix*)
  2177.         cpu_type=rs6000
  2178.         tm_file=rs6000/powerpc.h
  2179.         tmake_file=rs6000/t-rs6000
  2180.         use_collect2=yes
  2181.         ;;
  2182.     powerpc-*-sysv4* | powerpc-*-elf*)
  2183.         cpu_type=rs6000
  2184.         xm_file=rs6000/xm-sysv4.h
  2185.         tm_file=rs6000/sysv4.h
  2186.         if [ x$gas = xyes ]
  2187.         then
  2188.              tmake_file=rs6000/t-ppcgas
  2189.         else
  2190.              tmake_file=rs6000/t-ppc
  2191.         fi
  2192.         xmake_file=rs6000/x-sysv4
  2193.         ;;
  2194.     powerpc-*-eabiaix*)
  2195.         cpu_type=rs6000
  2196.         tm_file=rs6000/eabiaix.h
  2197.         tmake_file=rs6000/t-eabiaix
  2198.         fixincludes=Makefile.in
  2199.         ;;
  2200.     powerpc-*-eabisim*)
  2201.         cpu_type=rs6000
  2202.         tm_file=rs6000/eabisim.h
  2203.         tmake_file=rs6000/t-eabisim
  2204.         fixincludes=Makefile.in
  2205.         ;;
  2206.     powerpc-*-eabi*)
  2207.         cpu_type=rs6000
  2208.         tm_file=rs6000/eabi.h
  2209.         if [ x$gas = xyes ]
  2210.         then
  2211.              tmake_file=rs6000/t-eabigas
  2212.         else
  2213.              tmake_file=rs6000/t-eabi
  2214.         fi
  2215.         fixincludes=Makefile.in
  2216.         ;;
  2217.     powerpcle-*-sysv4* | powerpcle-*-elf*)
  2218.         cpu_type=rs6000
  2219.         xm_file=rs6000/xm-sysv4.h
  2220.         tm_file=rs6000/sysv4le.h
  2221.         if [ x$gas = xyes ]
  2222.         then
  2223.              tmake_file=rs6000/t-ppclegas
  2224.         else
  2225.              tmake_file=rs6000/t-ppc
  2226.         fi
  2227.         xmake_file=rs6000/x-sysv4
  2228.         ;;
  2229.     powerpcle-*-eabisim*)
  2230.         cpu_type=rs6000
  2231.         tm_file=rs6000/eabilesim.h
  2232.         tmake_file=rs6000/t-eabisim
  2233.         fixincludes=Makefile.in
  2234.         ;;
  2235.     powerpcle-*-eabi*)
  2236.         cpu_type=rs6000
  2237.         tm_file=rs6000/eabile.h
  2238.         if [ x$gas = xyes ]
  2239.         then
  2240.              tmake_file=rs6000/t-eabilegas
  2241.         else
  2242.              tmake_file=rs6000/t-eabi
  2243.         fi
  2244.         fixincludes=Makefile.in
  2245.         ;;
  2246.     rs6000-ibm-aix3.[01]*)
  2247.         tm_file=rs6000/aix31.h
  2248.         tmake_file=rs6000/t-rs6000
  2249.         xmake_file=rs6000/x-aix31
  2250.         use_collect2=yes
  2251.         ;;
  2252.     rs6000-ibm-aix3.2.[456789]*)
  2253.         tm_file=rs6000/aix3newas.h
  2254.         tmake_file=rs6000/t-newas
  2255.         use_collect2=yes
  2256.         ;;
  2257.     rs6000-ibm-aix[456789].*)
  2258.         tm_file=rs6000/aix41.h
  2259.         tmake_file=rs6000/t-newas
  2260.         xmake_file=rs6000/x-aix31
  2261.         use_collect2=yes
  2262.         ;;
  2263.     rs6000-ibm-aix*)
  2264.         use_collect2=yes
  2265.         tmake_file=rs6000/t-rs6000
  2266.         ;;
  2267.     rs6000-bull-bosx)
  2268.         tmake_file=rs6000/t-rs6000
  2269.         use_collect2=yes
  2270.         ;;
  2271.     rs6000-*-mach*)
  2272.         xm_file=rs6000/xm-mach.h
  2273.         tm_file=rs6000/mach.h
  2274.         tmake_file=rs6000/t-rs6000
  2275.         xmake_file=rs6000/x-mach
  2276.         use_collect2=yes
  2277.         ;;
  2278.     rs6000-*-lynxos*)
  2279.         xmake_file=rs6000/x-lynx
  2280.         xm_file=rs6000/xm-lynx.h
  2281.         tm_file=rs6000/lynx.h
  2282.         tmake_file=rs6000/t-rs6000
  2283.         use_collect2=yes
  2284.         ;;
  2285.     sh-*-*)
  2286.         cpu_type=sh
  2287.         ;;
  2288.     sparc-tti-*)
  2289.         tm_file=sparc/pbd.h
  2290.         xm_file=sparc/xm-pbd.h
  2291.         ;;
  2292.     sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
  2293.         cpu_type=sparc
  2294.         tm_file=sparc/vxsparc.h
  2295.         tmake_file=sparc/t-vxsparc
  2296.         use_collect2=yes
  2297.         ;;
  2298.     sparc-*-aout*)
  2299.         tmake_file=sparc/t-sparcbare
  2300.         tm_file=sparc/sparc-aout.h
  2301.         ;;
  2302.     sparc-*-netbsd*)
  2303.         tm_file=sparc/netbsd.h
  2304.         xm_file=sparc/xm-netbsd.h
  2305.         # On NetBSD, the headers are already okay.
  2306.         fixincludes=Makefile.in
  2307.         tmake_file=t-libc-ok
  2308.         xmake_file=x-netbsd
  2309.         ;;
  2310.     sparc-*-bsd*)
  2311.         tm_file=sparc/bsd.h
  2312.         ;;
  2313.     sparc-*-lynxos*)
  2314.         if [ x$gas = xyes ]
  2315.         then
  2316.             tm_file=sparc/lynx.h
  2317.         else
  2318.             tm_file=sparc/lynx-ng.h
  2319.         fi
  2320.         xm_file=sparc/xm-lynx.h
  2321.         tmake_file=sparc/t-sunos41
  2322.         xmake_file=x-lynx
  2323.         ;;
  2324.     sparc-*-solaris2* | sparc-*-sunos5*)
  2325.         xm_file=sparc/xm-sol2.h
  2326.         tm_file=sparc/sol2.h
  2327.         tmake_file=sparc/t-sol2
  2328.         xmake_file=sparc/x-sysv4
  2329.         extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
  2330.         fixincludes=fixinc.svr4
  2331.         broken_install=yes
  2332.         ;;
  2333.     sparc-*-sunos4.0*)
  2334.         tm_file=sparc/sunos4.h
  2335.         tmake_file=sparc/t-sunos40
  2336.         use_collect2=yes
  2337.         ;;
  2338.     sparc-*-sunos4*)
  2339.         tm_file=sparc/sunos4.h
  2340.         tmake_file=sparc/t-sunos41
  2341.         use_collect2=yes
  2342.         ;;
  2343.     sparc-*-sunos3*)
  2344.         tm_file=sparc/sun4o3.h
  2345.         use_collect2=yes
  2346.         ;;
  2347.     sparc-*-sysv4*)
  2348.         xm_file=sparc/xm-sysv4.h
  2349.         tm_file=sparc/sysv4.h
  2350.         tmake_file=t-svr4
  2351.         xmake_file=sparc/x-sysv4
  2352.         extra_parts="crtbegin.o crtend.o"
  2353.         ;;
  2354.     sparclite-*-coff*)
  2355.         cpu_type=sparc
  2356.         tm_file=sparc/litecoff.h
  2357.         tmake_file=sparc/t-sparclite
  2358.         ;;
  2359.     sparclite-*-*)
  2360.         cpu_type=sparc
  2361.         tm_file=sparc/lite.h
  2362.         tmake_file=sparc/t-sparclite
  2363.         use_collect2=yes
  2364.         ;;
  2365.     sparc64-*-aout*)
  2366.         cpu_type=sparc
  2367.         tmake_file=sparc/t-sp64
  2368.         tm_file=sparc/sp64-aout.h
  2369.         ;;
  2370.     sparc64-*-elf*)
  2371.         cpu_type=sparc
  2372.         tmake_file=sparc/t-sp64
  2373.         tm_file=sparc/sp64-elf.h
  2374.         extra_parts="crtbegin.o crtend.o"
  2375.         ;;
  2376. # This hasn't been upgraded to GCC 2.
  2377. #    tahoe-harris-*)            # Harris tahoe, using COFF.
  2378. #        tm_file=tahoe/harris.h
  2379. #        ;;
  2380. #    tahoe-*-bsd*)            # tahoe running BSD
  2381. #        ;;
  2382. # This hasn't been upgraded to GCC 2.
  2383. #    tron-*-*)
  2384. #        cpu_type=gmicro
  2385. #        use_collect2=yes
  2386. #        ;;
  2387.     vax-*-bsd*)            # vaxen running BSD
  2388.         use_collect2=yes
  2389.         ;;
  2390.     vax-*-sysv*)            # vaxen running system V
  2391.         xm_file=vax/xm-vaxv.h
  2392.         tm_file=vax/vaxv.h
  2393.         ;;
  2394.     vax-*-netbsd*)
  2395.         tm_file=vax/netbsd.h
  2396.         xm_file=vax/xm-netbsd.h
  2397.         tmake_file=t-libc-ok
  2398.         # On NetBSD, the headers are already okay.
  2399.         fixincludes=Makefile.in
  2400.         xmake_file=x-netbsd
  2401.         ;;
  2402.     vax-*-ultrix*)            # vaxen running ultrix
  2403.         tm_file=vax/ultrix.h
  2404.         use_collect2=yes
  2405.         ;;
  2406.     vax-*-vms*)            # vaxen running VMS
  2407.         xm_file=vax/xm-vms.h
  2408.         tm_file=vax/vms.h
  2409.         ;;
  2410.         pdp11-*-bsd)
  2411.         xm_file=pdp11/xm-pdp11.h
  2412.         tm_file=pdp11/2bsd.h
  2413.         tmake_file=pdp11/t-pdp11
  2414.                 ;;
  2415.         pdp11-*-*)
  2416.         xm_file=pdp11/xm-pdp11.h
  2417.         tm_file=pdp11/pdp11.h
  2418.         tmake_file=pdp11/t-pdp11
  2419.         ;;
  2420.     we32k-att-sysv*)
  2421.         cpu_type=we32k
  2422.         use_collect2=yes
  2423.         ;;
  2424.     *)
  2425.         echo "Configuration $machine not supported" 1>&2
  2426.         exit 1
  2427.         ;;
  2428.     esac
  2429.  
  2430.     case $machine in
  2431.     *-*-gnu*)
  2432.         # On the GNU system, the setup is just about the same on
  2433.         # each different CPU.  The specific machines that GNU
  2434.         # supports are matched above and just set $cpu_type.
  2435.         xm_file=${cpu_type}/xm-gnu.h
  2436.         tm_file=${cpu_type}/gnu.h
  2437.         extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  2438.         # GNU always uses ELF.
  2439.         elf=yes
  2440.         # GNU tools are the only tools.
  2441.         gnu_ld=yes
  2442.         gas=yes
  2443.         # On GNU, the headers are already okay.
  2444.         fixincludes=Makefile.in
  2445.         # Don't build libgcc1.c, because there is no non-GNU
  2446.         # compiler to build it with.  The GNU system C library will
  2447.         # include assembly versions of any needed functions.
  2448.         tmake_file=t-libc-ok
  2449.         ;;
  2450.     *-*-sysv4*)
  2451.         fixincludes=fixinc.svr4
  2452.         xmake_try_sysv=x-sysv
  2453.         broken_install=yes
  2454.         install_headers_dir=install-headers-cpio
  2455.         ;;
  2456.     *-*-sysv*)
  2457.         broken_install=yes
  2458.         install_headers_dir=install-headers-cpio
  2459.         ;;
  2460.     esac
  2461.  
  2462.     # Distinguish i386 from i486/i586.
  2463.     # ??? For the moment we treat i586 as an i486.
  2464.     # Also, do not run mips-tfile on MIPS if using gas.
  2465.     case $machine in
  2466.     i[45]86-*-*)
  2467.         target_cpu_default=2
  2468.         ;;
  2469.     mips*-*-*)
  2470.         if [ x$gas = xyes ]
  2471.         then
  2472.             target_cpu_default=16
  2473.         fi
  2474.         ;;
  2475.     alpha-*-*)
  2476.         if [ x$gas = xyes ]
  2477.         then
  2478.             target_cpu_default=4
  2479.         fi
  2480.         ;;
  2481.     esac
  2482.  
  2483.     # No need for collect2 if we have the GNU linker.
  2484.     case x$gnu_ld in 
  2485.     xyes)
  2486.         use_collect2=
  2487.         ;;
  2488.     esac
  2489.  
  2490. # Default certain vars that apply to both host and target in turn.
  2491.     if [ x$cpu_type = x ]
  2492.     then cpu_type=`echo $machine | sed 's/-.*$//'`
  2493.     fi
  2494.  
  2495. # Save data on machine being used to compile GCC in build_xm_file.
  2496. # Save data on host machine in vars host_xm_file and host_xmake_file.
  2497.     if [ x$pass1done = x ]
  2498.     then
  2499.         if [ x$xm_file = x ]
  2500.         then build_xm_file=$cpu_type/xm-$cpu_type.h
  2501.         else build_xm_file=$xm_file
  2502.         fi
  2503.         pass1done=yes
  2504.     else
  2505.         if [ x$pass2done = x ]
  2506.         then
  2507.             if [ x$xm_file = x ]
  2508.             then host_xm_file=$cpu_type/xm-$cpu_type.h
  2509.             else host_xm_file=$xm_file
  2510.             fi
  2511.             if [ x$xmake_file = x ]
  2512.             then xmake_file=$cpu_type/x-$cpu_type
  2513.             fi
  2514.             host_xmake_file=$xmake_file
  2515.             host_broken_install=$broken_install
  2516.             host_install_headers_dir=$install_headers_dir
  2517.             host_truncate_target=$truncate_target
  2518.             pass2done=yes
  2519.         fi
  2520.     fi
  2521. done
  2522.  
  2523. # Default the target-machine variables that were not explicitly set.
  2524. if [ x$tm_file = x ]
  2525. then tm_file=$cpu_type/$cpu_type.h; fi
  2526.  
  2527. if [ x$extra_headers = x ]
  2528. then extra_headers=; fi
  2529.  
  2530. if [ x$xm_file = x ]
  2531. then xm_file=$cpu_type/xm-$cpu_type.h; fi
  2532.  
  2533. md_file=$cpu_type/$cpu_type.md
  2534.  
  2535. if [ x$out_file = x ]
  2536. then out_file=$cpu_type/$cpu_type.c; fi
  2537.  
  2538. if [ x$tmake_file = x ]
  2539. then tmake_file=$cpu_type/t-$cpu_type
  2540. fi
  2541.  
  2542. # Say what files are being used for the output code and MD file.
  2543. echo "Using \`$srcdir/config/$out_file' to output insns."
  2544. echo "Using \`$srcdir/config/$md_file' as machine description file."
  2545. echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
  2546. echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
  2547. if [ $host_xm_file != $build_xm_file ]; then
  2548.     echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
  2549. fi
  2550.  
  2551. # Set up the list of links to be made.
  2552. # $links is the list of link names, and $files is the list of names to link to.
  2553. files="$host_xm_file $tm_file $xm_file $build_xm_file"
  2554. links="config.h tm.h tconfig.h hconfig.h"
  2555.  
  2556. rm -f config.bak
  2557. if [ -f config.status ]; then mv -f config.status config.bak; fi
  2558.  
  2559. # Make the links.
  2560. while [ -n "$files" ]
  2561. do
  2562.     # set file to car of files, files to cdr of files
  2563.     set $files; file=$1; shift; files=$*
  2564.     set $links; link=$1; shift; links=$*
  2565.  
  2566.     rm -f $link
  2567.     echo "#include \"$file\"" >$link
  2568. done
  2569.  
  2570. # Truncate the target if necessary
  2571. if [ x$host_truncate_target != x ]; then
  2572.     target=`echo $target | sed -e 's/\(..............\).*/\1/'`
  2573. fi
  2574.  
  2575. # Get the version number from the toplevel
  2576. version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
  2577.  
  2578. # For the current directory and all of the language subdirectories,
  2579. # do the rest of the script ...
  2580.  
  2581. subdirs=
  2582. for lang in ${srcdir}/*/config-lang.in ..
  2583. do
  2584.     case $lang in
  2585.     ..) ;;
  2586.     # The odd quoting in the next line works around
  2587.     # an apparent bug in bash 1.12 on linux.
  2588.     ${srcdir}/[*]/config-lang.in) ;;
  2589.     *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
  2590.     esac
  2591. done
  2592.  
  2593. # Are we using gcc as the native compiler?
  2594. case $canon_host in
  2595. *linux*)    # All Linux's use gcc as the native compiler.
  2596.     prefix=$native_prefix
  2597.     ;;
  2598. esac
  2599.  
  2600. # Make empty files to contain the specs and options for each language.
  2601. # Then add #include lines to for a compiler that has specs and/or options.
  2602.  
  2603. lang_specs_files=
  2604. lang_options_files=
  2605. rm -f specs.h options.h
  2606. touch specs.h options.h
  2607. for lang_specs in $srcdir/*/lang-specs.h
  2608. do
  2609.     echo "#include \"$lang_specs\"" >>specs.h
  2610.     lang_specs_files="$lang_specs_files $lang_specs"
  2611. done
  2612. for lang_options in $srcdir/*/lang-options.h
  2613. do
  2614.     echo "#include \"$lang_options\"" >>options.h
  2615.     lang_options_files="$lang_options_files $lang_options"
  2616. done
  2617.  
  2618. # Define SET_MAKE if this old version of `make' doesn't define $(MAKE).
  2619. rm -f Makefile.xx
  2620. (echo 'all:'; echo '    @echo maketemp=$(MAKE)') >Makefile.xx
  2621. case `${MAKE-make} -f Makefile.xx 2>/dev/null | grep maketemp=` in
  2622. 'maketemp=')
  2623.     SET_MAKE="MAKE = ${MAKE-make}"
  2624.     ;;
  2625. *)
  2626.     SET_MAKE=
  2627.     ;;
  2628. esac
  2629. rm -f Makefile.xx
  2630.  
  2631. savesrcdir=$srcdir
  2632. for subdir in . $subdirs
  2633. do
  2634.     oldsrcdir=$savesrcdir
  2635.  
  2636.     # Re-adjust the path
  2637.     case $oldsrcdir in
  2638.     /*)
  2639.         srcdir=$oldsrcdir/$subdir
  2640.         ;;
  2641.     *)
  2642.         case $subdir in
  2643.         .)
  2644.             ;;
  2645.         *)
  2646.             oldsrcdir=../${oldsrcdir}
  2647.             srcdir=$oldsrcdir/$subdir
  2648.             ;;
  2649.         esac
  2650.         ;;
  2651.     esac
  2652.     mainsrcdir=$oldsrcdir
  2653.     STARTDIR=`pwd`
  2654.     test -d $subdir || mkdir $subdir
  2655.     cd $subdir
  2656.  
  2657.     # Create Makefile.tem from Makefile.in.
  2658.     # Make it set VPATH if necessary so that the sources are found.
  2659.     # Also change its value of srcdir.
  2660.     # Also create a .gdbinit file which runs the one in srcdir
  2661.     # and tells GDB to look there for source files.
  2662.     case $srcdir in
  2663.     . | ./$subdir | .././$subdir)
  2664.         rm -f Makefile.tem
  2665.         cp Makefile.in Makefile.tem
  2666.         chmod +w Makefile.tem
  2667.         ;;
  2668.     *)
  2669.         rm -f Makefile.tem
  2670.         echo "VPATH = ${srcdir}" \
  2671.           | cat - ${srcdir}/Makefile.in \
  2672.           | sed "s@^srcdir = \.@srcdir = ${srcdir}@" > Makefile.tem
  2673.         rm -f .gdbinit
  2674.         echo "dir ." > .gdbinit
  2675.         echo "dir ${srcdir}" >> .gdbinit
  2676.         if [ x$gdb_needs_out_file_path = xyes ]
  2677.         then
  2678.             echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
  2679.         fi
  2680.         if [ "x$subdirs" != x ]; then
  2681.             for s in $subdirs
  2682.             do
  2683.                 echo "dir ${srcdir}/$s" >> .gdbinit
  2684.             done
  2685.         fi
  2686.         echo "source ${srcdir}/.gdbinit" >> .gdbinit
  2687.         ;;
  2688.     esac
  2689.     
  2690.     # Conditionalize the makefile for this host machine.
  2691.     if [ -f ${mainsrcdir}/config/${host_xmake_file} ]
  2692.     then
  2693.         rm -f Makefile.xx
  2694.         sed -e "/####host/  r ${mainsrcdir}/config/${host_xmake_file}" Makefile.tem > Makefile.xx
  2695.         echo "Merged ${host_xmake_file}."
  2696.         rm -f Makefile.tem
  2697.         mv Makefile.xx Makefile.tem
  2698.         dep_host_xmake_file=${host_xmake_file}
  2699.     else
  2700.     # Say in the makefile that there is no host_xmake_file,
  2701.     # by using a name which (when interpreted relative to $srcdir/config)
  2702.     # will duplicate another dependency: $srcdir/Makefile.in.
  2703.         dep_host_xmake_file=../Makefile.in
  2704.     fi
  2705.  
  2706.     # Add a definition for MAKE if system wants one.
  2707.     case "$SET_MAKE" in
  2708.     ?*)
  2709.         rm -f Makefile.xx
  2710.         (echo "$SET_MAKE"; cat Makefile.tem) >Makefile.xx
  2711.         rm -f Makefile.tem
  2712.         mv Makefile.xx Makefile.tem
  2713.     esac
  2714.  
  2715.     # Add a definition for INSTALL if system wants one.
  2716.     # This substitutes for lots of x-* files.
  2717.     if [ x$host_broken_install = x ]
  2718.     then true
  2719.     else
  2720.         rm -f Makefile.xx
  2721.          if [ x$host_broken_install = xyes ]
  2722.          then
  2723.              abssrcdir=`cd ${srcdir}; pwd`
  2724.              installer="${abssrcdir}/install.sh -c"
  2725.          else
  2726.              installer=$host_broken_install
  2727.          fi
  2728.          sed "s|^INSTALL = .*|INSTALL = ${installer}|" Makefile.tem > Makefile.xx
  2729.         rm -f Makefile.tem
  2730.         mv Makefile.xx Makefile.tem
  2731.     fi
  2732.  
  2733.     # Some of the following don't make sense in the language makefiles,
  2734.     # but rather than introduce another level of nesting, we leave them
  2735.     # as is.
  2736.  
  2737.     # Set EXTRA_HEADERS according to extra_headers.
  2738.     # This substitutes for lots of t-* files.
  2739.     if [ "x$extra_headers" = x ]
  2740.     then true
  2741.     else
  2742.         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
  2743.         list=
  2744.         for file in $extra_headers;
  2745.         do
  2746.             list="${list} ${srcdir}/ginclude/${file}"
  2747.         done
  2748.         rm -f Makefile.xx
  2749.         sed "s|^EXTRA_HEADERS =|EXTRA_HEADERS = ${list}|" Makefile.tem > Makefile.xx
  2750.         rm -f Makefile.tem
  2751.         mv Makefile.xx Makefile.tem
  2752.     fi
  2753.     
  2754.     # Set EXTRA_PASSES according to extra_passes.
  2755.     # This substitutes for lots of t-* files.
  2756.     if [ "x$extra_passes" = x ]
  2757.     then true
  2758.     else
  2759.         rm -f Makefile.xx
  2760.         sed "s/^EXTRA_PASSES =/EXTRA_PASSES = $extra_passes/" Makefile.tem > Makefile.xx
  2761.         rm -f Makefile.tem
  2762.         mv Makefile.xx Makefile.tem
  2763.     fi
  2764.     
  2765.     # Set EXTRA_PARTS according to extra_parts.
  2766.     # This substitutes for lots of t-* files.
  2767.     if [ "x$extra_parts" = x ]
  2768.     then true
  2769.     else
  2770.         rm -f Makefile.xx
  2771.         sed "s/^EXTRA_PARTS =/EXTRA_PARTS = $extra_parts/" Makefile.tem > Makefile.xx
  2772.         rm -f Makefile.tem
  2773.         mv Makefile.xx Makefile.tem
  2774.     fi
  2775.  
  2776.     # Set EXTRA_PROGRAMS according to extra_programs.
  2777.     if [ "x$extra_programs" = x ]
  2778.     then true
  2779.     else
  2780.         rm -f Makefile.xx
  2781.         sed "s/^EXTRA_PROGRAMS =/EXTRA_PROGRAMS = $extra_programs/" Makefile.tem > Makefile.xx
  2782.         rm -f Makefile.tem
  2783.         mv Makefile.xx Makefile.tem
  2784.     fi
  2785.  
  2786.     # Set EXTRA_OBJS according to extra_objs.
  2787.     # This substitutes for lots of t-* files.
  2788.     if [ "x$extra_objs" = x ]
  2789.     then true
  2790.     else
  2791.         rm -f Makefile.xx
  2792.         sed "s|^EXTRA_OBJS =|EXTRA_OBJS = $extra_objs|" Makefile.tem > Makefile.xx
  2793.         rm -f Makefile.tem
  2794.         mv Makefile.xx Makefile.tem
  2795.     fi
  2796.  
  2797.     # Set EXTRA_GCC_OBJS according to extra_gcc_objs.
  2798.     # This substitutes for lots of t-* files.
  2799.     if [ "x$extra_gcc_objs" = x ]
  2800.     then true
  2801.     else
  2802.         rm -f Makefile.xx
  2803.         sed "s|^EXTRA_GCC_OBJS =|EXTRA_GCC_OBJS = $extra_gcc_objs|" Makefile.tem > Makefile.xx
  2804.         rm -f Makefile.tem
  2805.         mv Makefile.xx Makefile.tem
  2806.     fi
  2807.  
  2808.     # Add a definition of USE_COLLECT2 if system wants one.
  2809.     # Also tell toplev.c what to do.
  2810.     # This substitutes for lots of t-* files.
  2811.     if [ x$use_collect2 = x ]
  2812.     then true
  2813.     else
  2814.         rm -f Makefile.xx
  2815.         (echo "USE_COLLECT2 = ld"; echo "MAYBE_USE_COLLECT2 = -DUSE_COLLECT2")\
  2816.             | cat - Makefile.tem > Makefile.xx
  2817.         rm -f Makefile.tem
  2818.         mv Makefile.xx Makefile.tem
  2819.     fi
  2820.     
  2821.     # Add -DTARGET_CPU_DEFAULT for toplev.c if system wants one.
  2822.     # This substitutes for lots of *.h files.
  2823.     if [ x$target_cpu_default = x ]
  2824.     then true
  2825.     else
  2826.         rm -f Makefile.xx
  2827.     # This used cat, but rfg@netcom.com said that ran into NFS bugs.
  2828.         sed -e "/^# Makefile for GNU C compiler./c\\
  2829. MAYBE_TARGET_DEFAULT = -DTARGET_CPU_DEFAULT=$target_cpu_default\\
  2830. \# Makefile for GNU C compiler." Makefile.tem > Makefile.xx
  2831.         rm -f Makefile.tem
  2832.         mv Makefile.xx Makefile.tem
  2833.     fi
  2834.     
  2835.     # Set MD_DEPS if the real md file is in md.pre-cpp.
  2836.     # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
  2837.     # for line oriented comments, so we must always use a GNU cpp.  If
  2838.     # building gcc with a cross compiler, use the cross compiler just
  2839.     # built.  Otherwise, we can use the cpp just built.
  2840.     if [ "x$md_cppflags" = x ]
  2841.     then
  2842.         md_file=$srcdir/config/$md_file
  2843.     else
  2844.         rm -f Makefile.xx
  2845.           (if [ x$host = x$build ] ; then
  2846.             echo "MD_DEPS = $(md_file) cpp" ; echo "MD_CPP = ./cpp"
  2847.         else
  2848.             echo "MD_DEPS = md.pre-cpp" ; echo "MD_CPP = \$(HOST_CC) -x c -E"
  2849.         fi
  2850.         md_file=md
  2851.         echo "MD_CPPFLAGS = $md_cppflags") | \
  2852.           cat - Makefile.tem | sed -e "s|^MD_FILE[     ]*=.*|MD_FILE = md|" > Makefile.xx
  2853.         rm -f Makefile.tem
  2854.         mv Makefile.xx Makefile.tem
  2855.     fi
  2856.     
  2857.     # If we have gas in the build tree, make a link to it.
  2858.     if [ -f ../gas/Makefile ]; then
  2859.         rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
  2860.     fi
  2861.     
  2862.     # If we have ld in the build tree, make a link to it.
  2863.     if [ -f ../ld/Makefile ]; then
  2864.         if [ x$use_collect2 = x ]; then
  2865.             rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
  2866.         else
  2867.             rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
  2868.         fi
  2869.     fi
  2870.     
  2871.     # If using -program-transform-name, override the installation names.
  2872.     if [ "x${program_transform_set}" = "xyes" ] ; then
  2873.         sed -e "s/^program_transform_name[     ]*=.*$/program_transform_name = $program_transform_name/" \
  2874.             -e "s/^program_transform_cross_name[     ]*=.*$/program_transform_cross_name = $program_transform_name/" \
  2875.             Makefile.tem > Makefile.xx
  2876.         rm -f Makefile.tem
  2877.         mv Makefile.xx Makefile.tem
  2878.     fi
  2879.     
  2880.     # Conditionalize the makefile for this target machine.
  2881.     if [ -f ${mainsrcdir}/config/${tmake_file} ]
  2882.     then
  2883.         rm -f Makefile.xx
  2884.         sed -e "/####target/  r ${mainsrcdir}/config/${tmake_file}" Makefile.tem > Makefile.xx
  2885.         echo "Merged ${tmake_file}."
  2886.         rm -f Makefile.tem
  2887.         mv Makefile.xx Makefile.tem
  2888.         dep_tmake_file=${tmake_file}
  2889.     else
  2890.     # Say in the makefile that there is no tmake_file,
  2891.     # by using a name which (when interpreted relative to $srcdir/config)
  2892.     # will duplicate another dependency: $srcdir/Makefile.in.
  2893.         dep_tmake_file=../Makefile.in
  2894.     fi
  2895.     
  2896.     # If this is the top level Makefile, add the language fragments.
  2897.     # Languages are added via two mechanisms.  Some information must be
  2898.     # recorded in makefile variables, these are defined in config-lang.in.
  2899.     # We accumulate them and plug them into the main Makefile.
  2900.     # The other mechanism is a set of hooks for each of the main targets
  2901.     # like `clean', `install', etc.
  2902.     if [ $subdir = . ]
  2903.     then
  2904.         # These (without "all_") are set in each config-lang.in.
  2905.         # `language' must be a single word so is spelled singularly.
  2906.         all_languages=
  2907.         all_compilers=
  2908.         all_stagestuff=
  2909.         all_diff_excludes=
  2910.         # List of language makefile fragments.
  2911.         all_lang_makefiles=
  2912.  
  2913.         rm -f Makefile.xx Makefile.ll
  2914.         touch Makefile.ll
  2915.         for s in .. $subdirs
  2916.         do
  2917.             if [ $s != ".." ]
  2918.             then
  2919.                 language=
  2920.                 compilers=
  2921.                 stagestuff=
  2922.                 diff_excludes=
  2923.                 . ${mainsrcdir}/$s/config-lang.in
  2924.                 if [ "x$language" = x ]
  2925.                 then
  2926.                     echo "${mainsrcdir}/$s/config-lang.in doesn't set \$language." 1>&2
  2927.                     exit 1
  2928.                 fi
  2929.                 all_lang_makefiles="$all_lang_makefiles ${mainsrcdir}/$s/Make-lang.in ${mainsrcdir}/$s/Makefile.in"
  2930.                 all_languages="$all_languages $language"
  2931.                 all_compilers="$all_compilers $compilers"
  2932.                 all_stagestuff="$all_stagestuff $stagestuff"
  2933.                 all_diff_excludes="$all_diff_excludes $diff_excludes"
  2934.  
  2935.                 cat ${mainsrcdir}/$s/Make-lang.in >> Makefile.ll
  2936.             fi
  2937.         done
  2938.         sed -e "/####language fragments/ r Makefile.ll" Makefile.tem > Makefile.xx
  2939.         rm -f Makefile.tem
  2940.         mv Makefile.xx Makefile.tem
  2941.         sed -e "s|^SUBDIRS[     ]*=.*$|SUBDIRS = $subdirs|" \
  2942.             -e "s|^LANGUAGES[     ]*=[     ]*\(.*\)$|LANGUAGES = \1 $all_languages|" \
  2943.             -e "s|^COMPILERS[     ]*=[     ]*\(.*\)$|COMPILERS = \1 $all_compilers|" \
  2944.             -e "s|^LANG_MAKEFILES[     ]*=.*$|LANG_MAKEFILES = $all_lang_makefiles|" \
  2945.             -e "s|^LANG_STAGESTUFF[     ]*=.*$|LANG_STAGESTUFF = $all_stagestuff|" \
  2946.             -e "s|^LANG_DIFF_EXCLUDES[     ]*=.*$|LANG_DIFF_EXCLUDES = $all_diff_excludes|" \
  2947.             Makefile.tem > Makefile.xx
  2948.         rm -f Makefile.tem
  2949.         mv Makefile.xx Makefile.tem
  2950.  
  2951.         # Since we can't use `::' targets, we link each language in
  2952.         # with a set of hooks, reached indirectly via lang.${target}.
  2953.  
  2954.         target_list="all.build all.cross start.encap rest.encap \
  2955.             info guide dvi \
  2956.             install-normal install-common install-info install-man \
  2957.             uninstall distdir \
  2958.             mostlyclean clean distclean extraclean maintainer-clean \
  2959.             stage1 stage2 stage3 stage4"
  2960.         rm -f Makefile.ll
  2961.         for t in $target_list
  2962.         do
  2963.             x=
  2964.             for l in .. $all_languages
  2965.             do
  2966.                 if [ $l != ".." ]; then
  2967.                     x="$x $l.$t"
  2968.                 fi
  2969.             done
  2970.             echo "lang.$t: $x" >> Makefile.ll
  2971.         done
  2972.         sed -e "/####language hooks/ r Makefile.ll" Makefile.tem > Makefile.xx
  2973.         rm -f Makefile.tem
  2974.         mv Makefile.xx Makefile.tem
  2975.         rm -f Makefile.ll
  2976.  
  2977.         # If the host doesn't support symlinks, modify CC in
  2978.         # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
  2979.         # Otherwise, we can use "CC=$(CC)".
  2980.         rm -f symtest.tem
  2981.         if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
  2982.         then
  2983.             sed -e 's,CC=set-by-configure,CC=\$(CC),' \
  2984.                 Makefile.tem > Makefile.xx
  2985.         else
  2986.             sed -e "s,CC=set-by-configure,CC=\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`," \
  2987.                 Makefile.tem > Makefile.xx
  2988.         fi
  2989.         rm -f Makefile.tem
  2990.         mv Makefile.xx Makefile.tem
  2991.         rm -f symtest.tem
  2992.  
  2993.         if [ "x$all_languages" != x ]
  2994.         then
  2995.             # Missing space after `Merged' is intentional.
  2996.             echo "Merged$all_languages fragment(s)."
  2997.         fi
  2998.  
  2999.     # Otherwise, this is a language subdirectory.  If the host supports
  3000.     # symlinks, point stage[123] at ../stage[123] so bootstrapping and the
  3001.     # installation procedure can still use CC="stage1/xgcc -Bstage1/".
  3002.     # If the host doesn't support symlinks, FLAGS_TO_PASS has been
  3003.     # modified to solve the problem there.
  3004.     else
  3005.         for t in stage1 stage2 stage3 stage4 include
  3006.         do
  3007.             rm -f $t
  3008.             $symbolic_link ../$t $t 2>/dev/null
  3009.         done
  3010.     fi
  3011.  
  3012.     out_object_file=`basename $out_file .c`.o
  3013.     
  3014.     # Remove all formfeeds, since some Makes get confused by them.
  3015.     # Also arrange to give the variables `target', `host_xmake_file',
  3016.     # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
  3017.     # `out_file', `out_object', `md_file', `lang_specs_files',
  3018.     # `lang_options_files', and `INSTALL_HEADERS_DIR' values in the
  3019.     # Makefile from the values they have in this script.
  3020.     rm -f Makefile.xx
  3021.     rm -f aux-output.c aux-output.o md
  3022.     # Create an empty Makefile.sed first, to work around a Nextstep 3.3 bug.
  3023.     echo 's| ||' > Makefile.sed
  3024.     rm Makefile.sed
  3025.     echo 's| ||' > Makefile.sed
  3026.     echo "s|^target=.*$|target=${target}|" >> Makefile.sed
  3027.     echo "s|^xmake_file=.*$|xmake_file=${dep_host_xmake_file}|" >> Makefile.sed
  3028.     echo "s|^tmake_file=.*$|tmake_file=${dep_tmake_file}|" >> Makefile.sed
  3029.     echo "s|^version=.*$|version=${version}|" >> Makefile.sed
  3030.     echo "s|^version=.*$|version=${version}|" >> Makefile.sed
  3031.     echo "s|^out_file=.*$|out_file=${srcdir}/config/${out_file}|" >> Makefile.sed
  3032.     echo "s|^out_object_file=.*$|out_object_file=${out_object_file}|" >> Makefile.sed
  3033.     echo "s|^md_file=.*$|md_file=${md_file}|" >> Makefile.sed
  3034.     echo "s|^tm_file=.*$|tm_file=${srcdir}/config/${tm_file}|" >> Makefile.sed
  3035.     echo "s|^host_xm_file=.*$|host_xm_file=${srcdir}/config/${host_xm_file}|" >> Makefile.sed
  3036.     echo "s|^build_xm_file=.*$|build_xm_file=${srcdir}/config/${build_xm_file}|" >> Makefile.sed
  3037.     echo "s|^lang_specs_files=.*$|lang_specs_files=${lang_specs_files}|" >> Makefile.sed
  3038.     echo "s|^lang_options_files=.*$|lang_options_files=${lang_options_files}|" >> Makefile.sed
  3039.     echo "s|^prefix[     ]*=.*|prefix = $prefix|" >> Makefile.sed
  3040.     echo "s|^gxx_include_dir[     ]*=.*|gxx_include_dir = $gxx_include_dir|" >> Makefile.sed
  3041.     echo "s|^local_prefix[     ]*=.*|local_prefix = $local_prefix|" >> Makefile.sed
  3042.     echo "s|^exec_prefix[     ]*=.*|exec_prefix = $exec_prefix|" >> Makefile.sed
  3043.     echo "s|^FIXINCLUDES[     ]*=.*|FIXINCLUDES = $fixincludes|" >> Makefile.sed
  3044.     echo "s|^INSTALL_HEADERS_DIR[     ]*=.*$|INSTALL_HEADERS_DIR = ${host_install_headers_dir}|" >> Makefile.sed
  3045.     sed -f Makefile.sed Makefile.tem > Makefile.xx
  3046.     rm -f Makefile.tem Makefile.sed
  3047.     mv Makefile.xx Makefile.tem
  3048.     
  3049.     # Install Makefile for real, after making final changes.
  3050.     # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
  3051.     # Also use all.cross instead of all.internal, and add cross-make to Makefile.
  3052.     if [ x$canon_host = x$canon_target ]
  3053.     then
  3054.         rm -f Makefile
  3055.           if [ x$canon_host = x$canon_build ]
  3056.         then
  3057.             mv Makefile.tem Makefile
  3058.         else
  3059.     #        When building gcc with a cross-compiler, we need to fix a
  3060.     #        few things.
  3061.             echo "build= $build" > Makefile
  3062.                 sed -e "s|objc-runtime$||" \
  3063.                 -e "/####build/  r ${mainsrcdir}/build-make" Makefile.tem >> Makefile
  3064.             rm -f Makefile.tem Makefile.xx
  3065.         fi
  3066.     else
  3067.         rm -f Makefile
  3068.         echo "CROSS=-DCROSS_COMPILE" > Makefile
  3069.         sed -e "/####cross/  r ${mainsrcdir}/cross-make" Makefile.tem >> Makefile
  3070.         rm -f Makefile.tem Makefile.xx
  3071.     fi
  3072.  
  3073.     echo "Created \`$subdir/Makefile'."
  3074.  
  3075.     # If a subdirectory has a configure script, run it.
  3076.     if [ x$subdir != x. ]
  3077.     then
  3078.         if [ -f $srcdir/configure ]
  3079.         then
  3080.             ${CONFIG_SHELL-sh} $srcdir/configure $arguments --srcdir=$srcdir
  3081.         fi
  3082.     fi
  3083.  
  3084.     cd $STARTDIR
  3085. done   # end of current-dir SUBDIRS loop
  3086.     
  3087. srcdir=$savesrcdir
  3088.  
  3089. # Describe the chosen configuration in config.status.
  3090. # Make that file a shellscript which will reestablish the same configuration.
  3091. echo "#!/bin/sh
  3092. # GCC was configured as follows:
  3093. ${srcdir}/configure" $arguments > config.new
  3094. echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
  3095. chmod a+x config.new
  3096. if [ -f config.bak ] && cmp config.bak config.new >/dev/null 2>/dev/null;
  3097. then
  3098.     mv -f config.bak config.status
  3099.     rm -f config.new
  3100. else
  3101.     mv -f config.new config.status
  3102.     rm -f config.bak
  3103. fi
  3104.  
  3105. str2=
  3106. str3=
  3107. str4=.
  3108.  
  3109. if [ x$canon_host = x$canon_target ]
  3110. then
  3111.     str1="native "
  3112. else
  3113.     str1="cross-"
  3114.     str2=" from $canon_host"
  3115. fi
  3116.  
  3117. if [ x$canon_host != x$canon_build ]
  3118. then
  3119.     str3=" on a $canon_build system"
  3120. fi
  3121.  
  3122. if [ "x$str2" != x ] || [ "x$str3" != x ]
  3123. then
  3124.     str4=
  3125. fi
  3126.  
  3127. echo "Links are now set up to build a ${str1}compiler for ${canon_target}$str4" 1>&2
  3128.  
  3129. if [ "x$str2" != x ] || [ "x$str3" != x ]
  3130. then
  3131.     echo " ${str2}${str3}." 1>&2
  3132. fi
  3133.  
  3134. exit 0
  3135.