Annotation of GNUtools/cc/configure, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: # Configuration script for GNU CC
                      3: #   Copyright (C) 1988, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
                      4: 
                      5: #This file is part of GNU CC.
                      6: 
                      7: #GNU CC is free software; you can redistribute it and/or modify
                      8: #it under the terms of the GNU General Public License as published by
                      9: #the Free Software Foundation; either version 2, or (at your option)
                     10: #any later version.
                     11: 
                     12: #GNU CC is distributed in the hope that it will be useful,
                     13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
                     14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     15: #GNU General Public License for more details.
                     16: 
                     17: #You should have received a copy of the GNU General Public License
                     18: #along with GNU CC; see the file COPYING.  If not, write to
                     19: #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
                     20: 
                     21: #
                     22: # Shell script to create proper links to machine-dependent files in
                     23: # preparation for compiling gcc.
                     24: #
                     25: # Options: --srcdir=DIR                specifies directory where sources are.
                     26: #         --host=HOST          specifies host configuration.
                     27: #         --target=TARGET      specifies target configuration.
                     28: #         --build=TARGET       specifies configuration of machine you are
                     29: #                              using to compile GCC.
                     30: #         --prefix=DIR         specifies directory to install in.
                     31: #         --local-prefix=DIR   specifies directory to put local ./include in.
                     32: #         --exec-prefix=DIR    specifies directory to install executables in.
                     33: #         --with-gnu-ld        arrange to work with GNU ld.
                     34: #         --with-gnu-as        arrange to work with GAS.
                     35: #         --with-stabs         arrange to use stabs instead of host debug format.
                     36: #         --with-elf           arrange to use elf instead of host debug format.
                     37: #         --nfp                assume system has no FPU.
                     38: #
                     39: # If configure succeeds, it leaves its status in config.status.
                     40: # If configure fails after disturbing the status quo, 
                     41: #      config.status is removed.
                     42: #
                     43: 
                     44: progname=$0
                     45: 
                     46: # Default --srcdir to the directory where the script is found, 
                     47: # if a directory was specified.
                     48: # The second sed call is to convert `.//configure' to `./configure'.
                     49: srcdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
                     50: if [ x$srcdir = x$0 ]
                     51: then
                     52: srcdir=
                     53: fi
                     54: 
                     55: host=
                     56: 
                     57: # Declare known makefile conditions
                     58: all_makefile_conds="next-headers"
                     59: 
                     60: # Default prefix to /usr/local.
                     61: prefix=/usr/local
                     62: 
                     63: # local_prefix specifies where to find the directory /usr/local/include
                     64: # We don't use $(prefix) for this
                     65: # because we always want GCC to search /usr/local/include
                     66: # even if GCC is installed somewhere other than /usr/local.
                     67: # Think THREE TIMES before specifying any other value for this!
                     68: # DO NOT make this use $prefix!
                     69: local_prefix=/usr/local
                     70: # Default is to let the Makefile set exec_prefix from $(prefix)
                     71: exec_prefix='$(prefix)'
                     72: 
                     73: remove=rm
                     74: hard_link=ln
                     75: symbolic_link='ln -s'
                     76: copy=cp
                     77: 
                     78: # Record all the arguments, to write them in config.status.
                     79: arguments=$*
                     80: 
                     81: #for Test
                     82: #remove="echo rm"
                     83: #hard_link="echo ln"
                     84: #symbolic_link="echo ln -s"
                     85: 
                     86: target=
                     87: host=
                     88: build=
                     89: 
                     90: for arg in $*;
                     91: do
                     92:   case $next_arg in
                     93:   --srcdir)
                     94:     srcdir=$arg
                     95:     next_arg=
                     96:     ;;
                     97:   --host)
                     98:     host=$arg
                     99:     next_arg=
                    100:     ;;
                    101:   --target)
                    102:     target=$arg
                    103:     next_arg=
                    104:     ;;
                    105:   --build)
                    106:     build=$arg
                    107:     next_arg=
                    108:     ;;
                    109:   --prefix)
                    110:     prefix=$arg
                    111:     next_arg=
                    112:     ;;
                    113:   --local-prefix)
                    114:     local_prefix=$arg
                    115:     next_arg=
                    116:     ;;
                    117:   --exec-prefix)
                    118:     exec_prefix=$arg
                    119:     next_arg=
                    120:     ;;
                    121:   *)
                    122:     case $arg in
                    123:      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
                    124:        next_arg=--srcdir
                    125:        ;;
                    126:      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
                    127:        srcdir=`echo $arg | sed 's/-*s[a-z]*=//'`
                    128:        ;;
                    129:      -host | --host | --hos | --ho | --h)
                    130:        next_arg=--host
                    131:        ;;
                    132:      -host=* | --host=* | --hos=* | --ho=* | --h=*)
                    133:        host=`echo $arg | sed 's/-*h[a-z]*=//'`
                    134:        ;; 
                    135:      -target | --target | --targe | --targ | --tar | --ta | --t)
                    136:        next_arg=--target
                    137:        ;;
                    138:      -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    139:        target=`echo $arg | sed 's/-*t[a-z]*=//'`
                    140:        ;; 
                    141:      -build | --build | --buil | --bui | --bu | --b)
                    142:        next_arg=--build
                    143:        ;;
                    144:      -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
                    145:        build=`echo $arg | sed 's/-*b[a-z]*=//'`
                    146:        ;; 
                    147:      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    148:        next_arg=--prefix
                    149:        ;;
                    150:      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    151:        prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
                    152:        ;;
                    153:      -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
                    154:        | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
                    155:        next_arg=--local-prefix
                    156:        ;;
                    157:      -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
                    158:        | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
                    159:        | --loc=* | --lo=* | --l=*)
                    160:        local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
                    161:        ;;
                    162:      -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
                    163:        | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
                    164:        next_arg=--exec-prefix
                    165:        ;;
                    166:      -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* \
                    167:        | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \
                    168:        | --exe=* | --ex=* | --e=*)
                    169:        exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`
                    170:        ;;
                    171:      -with-gnu-ld | --with-gnu-ld | --with-gnu-l)
                    172:        gnu_ld=yes
                    173:        ;;
                    174:      --force-build)
                    175:        force_build=yes
                    176:        ;;
                    177:      -gas | --gas | --ga | --g | -with-gnu-as | --with-gnu-as | -with-gnu-a)
                    178:         gas=yes
                    179:        ;;
                    180:      -nfp | --nfp | --nf | --n)
                    181:        nfp=yes
                    182:        ;;
                    183:      -with-stabs | -with-stab | -with-sta | -with-st | -with-s \
                    184:        | --with-stabs | --with-stab | --with-sta | --with-st | --with-s \
                    185:        | -stabs | -stab | -sta | -st  \
                    186:        | --stabs | --stab | --sta | --st)
                    187:        stabs=yes
                    188:        ;;
                    189:      -with-elf | -with-el | -with-se \
                    190:        | --with-elf | --with-el | --with-e \
                    191:        | -elf | -el | -e \
                    192:        |--elf | --el | --e)
                    193:        elf=yes
                    194:        ;;
                    195:      -with-* | --with-*) ;; #ignored
                    196:      -enable-* | --enable-*) ;; #ignored
                    197:      -x | --x) ;; # ignored
                    198:      --verbose) ;; # ignored for now
                    199:      -*)
                    200:        echo "Invalid option \`$arg'" 1>&2
                    201:        exit 1
                    202:        ;;
                    203:      *)
                    204: # Allow configure HOST TARGET
                    205:        if [ x$host = x ]
                    206:        then
                    207:                host=$target
                    208:        fi
                    209:        target=$arg
                    210:        ;;
                    211:     esac
                    212:   esac
                    213: done
                    214: 
                    215: # Find the source files, if location was not specified.
                    216: if [ x$srcdir = x ]
                    217: then
                    218:        srcdirdefaulted=1
                    219:        srcdir=.
                    220:        if [ ! -r tree.c ]
                    221:        then
                    222:                srcdir=..
                    223:        fi
                    224: fi
                    225: 
                    226: if [ ! -r ${srcdir}/tree.c ]
                    227: then
                    228:        if [ x$srcdirdefaulted = x ]
                    229:        then
                    230:          echo "$progname: Can't find compiler sources in \`${srcdir}'" 1>&2
                    231:        else
                    232:          echo "$progname: Can't find compiler sources in \`.' or \`..'" 1>&2
                    233:        fi
                    234:        exit 1
                    235: fi
                    236: 
                    237: if [ -r ${srcdir}/config.status ] && [ x$srcdir != x. ]
                    238: then
                    239:        echo "$progname: \`configure' has been run in \`${srcdir}'" 1>&2
                    240:        exit 1
                    241: fi
                    242: 
                    243: # Complain if an arg is missing
                    244: if [ x$target = x ]
                    245: then
                    246:        # This way of testing the result of a command substitution is
                    247:        # defined by Posix.2 (section 3.9.1) as well as traditional shells.
                    248:        if target=`${srcdir}/config.guess` ; then
                    249:                echo "Configuring for a ${target} host." 1>&2
                    250:        else
                    251:                echo 'Config.guess failed to determine the host type.  You need to specify one.' 1>&2
                    252:                echo "\
                    253: Usage: `basename $progname` [--host=HOST] [--build=BUILD]
                    254:        [--prefix=DIR] [--local-pref=DIR] [--exec-pref=DIR]
                    255:        [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--with-elf] [--nfp] TARGET" 1>&2
                    256:        echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
                    257:                if [ -r config.status ]
                    258:                then
                    259:                        tail +2 config.status 1>&2
                    260:                fi
                    261:                exit 1
                    262:        fi
                    263: fi
                    264: 
                    265: # Default other arg
                    266: if [ x$host = x ]
                    267: then
                    268:        host=$target
                    269: fi
                    270: # If $build was not specified, use $host.
                    271: if [ x$build = x ]
                    272: then
                    273:        build=$host
                    274: fi
                    275: 
                    276: build_xm_file=
                    277: host_xm_file=
                    278: host_xmake_file=
                    279: host_broken_install=
                    280: host_install_headers_dir=install-headers-tar
                    281: host_truncate_target=
                    282: 
                    283: # Validate the specs, and canonicalize them.
                    284: canon_build=`/bin/sh $srcdir/config.sub $build` || exit 1
                    285: canon_host=`/bin/sh $srcdir/config.sub $host` || exit 1
                    286: canon_target=`/bin/sh $srcdir/config.sub $target` || exit 1
                    287: 
                    288: # Decode the host machine, then the target machine.
                    289: # For the host machine, we save the xm_file variable as host_xm_file;
                    290: # then we decode the target machine and forget everything else
                    291: # that came from the host machine.
                    292: for machine in $canon_build $canon_host $canon_target; do
                    293: 
                    294:        cpu_type=
                    295:        xm_file=
                    296:        tm_file=
                    297:        out_file=
                    298:        xmake_file=
                    299:        tmake_file=
                    300:        header_files=
                    301:        extra_passes=
                    302:        # Set this to force installation and use of collect2.
                    303:        use_collect2=
                    304:        # Set this to override the default target model.
                    305:        target_cpu_default=
                    306:        # Set this to force use of install.sh.
                    307:        broken_install=
                    308:        # Set this to control which fixincludes program to use.
                    309:        fixincludes=fixincludes
                    310:        # Set this to control how the header file directory is installed.
                    311:        install_headers_dir=install-headers-tar
                    312:        # Set this to a non-empty list of args to pass to cpp if the target
                    313:        # wants its .md file passed through cpp.
                    314:        cpp_md_flags=
                    315:        # Set this if directory names should be truncated to 14 characters.
                    316:        truncate_target=
                    317: 
                    318:        case $machine in
                    319:        # Support site-specific machine types.
                    320:        *local*)
                    321:                cpu_type=`echo $machine | sed -e 's/-.*//'`
                    322:                rest=`echo $machine | sed -e "s/$cpu_type-//"`
                    323:                xm_file=${cpu_type}/xm-$rest.h
                    324:                tm_file=${cpu_type}/$rest.h
                    325:                if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
                    326:                then xmake_file=${cpu_type}/x-$rest; \
                    327:                else true; \
                    328:                fi
                    329:                if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
                    330:                then tmake_file=${cpu_type}/t-$rest; \
                    331:                else true; \
                    332:                fi
                    333:                ;;
                    334:        vax-*-bsd*)                     # vaxen running BSD
                    335:                use_collect2=yes
                    336:                ;;
                    337:        vax-*-ultrix*)                  # vaxen running ultrix
                    338:                tm_file=vax/ultrix.h
                    339:                use_collect2=yes
                    340:                ;;
                    341:        vax-*-vms*)                     # vaxen running VMS
                    342:                xm_file=vax/xm-vms.h
                    343:                tm_file=vax/vms.h
                    344:                ;;
                    345:        vax-*-sysv*)                    # vaxen running system V
                    346:                xm_file=vax/xm-vaxv.h
                    347:                tm_file=vax/vaxv.h
                    348:                ;;
                    349: # This hasn't been upgraded to GCC 2.
                    350: #      tahoe-harris-*)                 # Harris tahoe, using COFF.
                    351: #              tm_file=tahoe/harris.h
                    352: #              ;;
                    353: #      tahoe-*-bsd*)                   # tahoe running BSD
                    354: #              ;;
                    355:        i370-*-mvs*)
                    356:                cpu_type=i370
                    357:                tm_file=i370/mvs.h
                    358:                xm_file=i370/xm-mvs.h
                    359:                out_file=i370/mvs370.c
                    360:                ;;
                    361:        i[34]86-*-osfrose*)             # 386 using OSF/rose
                    362: # The following line (and similar below) is not redundant since this can
                    363: # be used for i486 or i386.
                    364:                cpu_type=i386
                    365:                 if [ x$elf = xyes ]
                    366:                then
                    367:                        tm_file=i386/osfelf.h
                    368:                        use_collect2=
                    369:                else
                    370:                        tm_file=i386/osfrose.h
                    371:                        use_collect2=yes
                    372:                fi
                    373:                xmake_file=i386/x-osfrose
                    374:                tmake_file=i386/t-osfrose
                    375:                ;;
                    376:        i[34]86-sequent-bsd*)           # 80386 from Sequent
                    377:                cpu_type=i386
                    378:                use_collect2=yes
                    379:                if [ x$gas = xyes ]
                    380:                then
                    381:                        tm_file=i386/seq-gas.h
                    382:                else
                    383:                        tm_file=i386/sequent.h
                    384:                fi
                    385:                ;;
                    386:        i[34]86-next-*)
                    387:                cpu_type=i386
                    388:                tm_file=i386/next.h
                    389:                out_file=i386/next.c
                    390:                xm_file=i386/xm-next.h
                    391:                tmake_file=i386/t-next
                    392:                xmake_file=i386/x-next
                    393:                fixincludes=Makefile.in # On NeXT, the headers are ok already.
                    394:                makefile_cond="$makefile_cond next-headers"
                    395:                ;;
                    396:        i[34]86-*-bsd*)
                    397:                cpu_type=i386
                    398:                tm_file=i386/386bsd.h
                    399: #              tmake_file=t-libc-ok
                    400: # Next line turned off because both 386BSD and BSD/386 use GNU ld.
                    401: #              use_collect2=yes
                    402:                ;;
                    403:        i[34]86-*-mach*)
                    404:                cpu_type=i386
                    405:                tm_file=i386/mach.h
                    406: #              tmake_file=t-libc-ok
                    407:                use_collect2=yes
                    408:                ;;
                    409:        i[34]86-*-sco3.2v4*)            # 80386 running SCO 3.2v4 system
                    410:                cpu_type=i386
                    411:                xm_file=i386/xm-sco.h
                    412:                xmake_file=i386/x-sco4
                    413:                fixincludes=fixinc.sco
                    414:                broken_install=yes
                    415:                install_headers_dir=install-headers-cpio
                    416:                 if [ x$stabs = xyes ]
                    417:                then
                    418:                        tm_file=i386/sco4dbx.h
                    419:                        tmake_file=i386/t-svr3dbx
                    420:                else
                    421:                        tm_file=i386/sco4.h
                    422:                        tmake_file=i386/t-sco
                    423:                fi
                    424:                ;;
                    425:        i[34]86-*-sco*)                 # 80386 running SCO system
                    426:                cpu_type=i386
                    427:                xm_file=i386/xm-sco.h
                    428:                xmake_file=i386/x-sco
                    429:                broken_install=yes
                    430:                install_headers_dir=install-headers-cpio
                    431:                 if [ x$stabs = xyes ]
                    432:                then
                    433:                        tm_file=i386/scodbx.h
                    434:                        tmake_file=i386/t-svr3dbx
                    435:                else
                    436:                        tm_file=i386/sco.h
                    437:                        tmake_file=i386/t-sco
                    438:                fi
                    439:                truncate_target=yes
                    440:                ;;
                    441:        i[34]86-*-isc*)                 # 80386 running ISC system
                    442:                cpu_type=i386
                    443:                xm_file=i386/xm-isc.h
                    444:                case $machine in
                    445:                  i[34]86-*-isc3*)
                    446:                    xmake_file=i386/x-isc3
                    447:                    ;;
                    448:                  *)
                    449:                    xmake_file=i386/x-isc
                    450:                    ;;
                    451:                esac
                    452:                echo $xmake_file
                    453:                 if [ x$gas = xyes ]
                    454:                then
                    455:                        if [ x$stabs = xyes ]
                    456:                        then
                    457:                                tm_file=i386/iscdbx.h
                    458:                                tmake_file=i386/t-svr3dbx
                    459:                        else
                    460:                                # iscgas.h, a nonexistent file, was used here.
                    461:                                tm_file=i386/isccoff.h
                    462:                                tmake_file=i386/t-isc
                    463:                        fi
                    464:                else
                    465:                        tm_file=i386/isccoff.h
                    466:                        tmake_file=i386/t-isc
                    467:                fi
                    468:                install_headers_dir=install-headers-cpio
                    469:                broken_install=yes
                    470:                ;;
                    471:        i[34]86-ibm-aix*)               # IBM PS/2 running AIX
                    472:                cpu_type=i386
                    473:                 if [ x$gas = xyes ]
                    474:                then
                    475:                        tm_file=i386/aix386.h
                    476:                        tmake_file=i386/t-aix
                    477:                else
                    478:                        tm_file=i386/aix386ng.h
                    479:                        use_collect2=yes
                    480:                fi
                    481:                xm_file=i386/xm-aix.h
                    482:                xmake_file=i386/x-aix
                    483:                broken_install=yes
                    484:                fixincludes=fixinc.ps2
                    485:                ;;
                    486:        i386-sun-sunos*)                # Sun i386 roadrunner
                    487:                xm_file=i386/xm-sun.h
                    488:                tm_file=i386/sun.h
                    489:                use_collect2=yes
                    490:                ;;
                    491:        i[34]86-*-linux*)               # Intel 80386's running Linux
                    492:                cpu_type=i386
                    493:                xm_file=i386/xm-linux.h
                    494:                xmake_file=i386/x-linux
                    495:                 if [ x$elf = xyes ]
                    496:                then
                    497:                        tm_file=i386/linuxelf.h
                    498:                else
                    499:                        tm_file=i386/linux.h
                    500:                fi
                    501:                fixincludes=Makefile.in #On Linux, the headers are ok already.
                    502:                broken_install=yes
                    503:                ;;
                    504:        i486-ncr-sysv4*)                # NCR 3000 - i486 running system V.4
                    505:                cpu_type=i386
                    506:                xm_file=i386/xm-sysv4.h
                    507:                xmake_file=i386/x-ncr3000
                    508:                tm_file=i386/sysv4.h
                    509:                tmake_file=t-svr4
                    510:                ;;
                    511:        i[34]86-*-sysv4*)               # Intel 80386's running system V.4
                    512:                cpu_type=i386
                    513:                xm_file=i386/xm-sysv4.h
                    514:                tm_file=i386/sysv4.h
                    515:                tmake_file=t-svr4
                    516:                xmake_file=x-svr4
                    517:                ;;
                    518:        i[34]86-sequent-sysv*)          # Sequent 80386's running system V
                    519:                cpu_type=i386
                    520:                xm_file=i386/xm-sysv3.h
                    521:                xmake_file=i386/x-sysv3
                    522:                tm_file=i386/seq-sysv3.h
                    523:                tmake_file=t-svr3
                    524:                fixincludes=fixinc.svr4
                    525:                broken_install=yes
                    526:                ;;
                    527:        i[34]86-*-sysv*)                # Intel 80386's running system V
                    528:                cpu_type=i386
                    529:                xm_file=i386/xm-sysv3.h
                    530:                xmake_file=i386/x-sysv3
                    531:                if [ x$gas = xyes ]
                    532:                then
                    533:                        if [ x$stabs = xyes ]
                    534:                        then
                    535:                                tm_file=i386/svr3dbx.h
                    536:                                tmake_file=i386/t-svr3dbx
                    537:                        else
                    538:                                tm_file=i386/svr3gas.h
                    539:                                tmake_file=t-svr3
                    540:                        fi
                    541:                else
                    542:                        tm_file=i386/sysv3.h
                    543:                        tmake_file=t-svr3
                    544:                fi
                    545:                ;;
                    546:        i[34]86-*-solaris2* | i[34]86-*-sunos5*)
                    547:                cpu_type=i386
                    548:                xm_file=i386/xm-sysv4.h
                    549:                tm_file=i386/sol2.h
                    550:                tmake_file=i386/t-sol2
                    551:                xmake_file=x-svr4
                    552:                fixincludes=fixinc.svr4
                    553:                broken_install=yes
                    554:                ;;
                    555:        i[34]86-*-lynxos)
                    556:                cpu_type=i386
                    557:                tm_file=i386/lynx.h
                    558:                xm_file=xm-lynx.h
                    559:                xmake_file=x-lynx
                    560:                # ??? Due to bugs in /bin/sh, it is too much trouble to get
                    561:                # the fixincludes script to run correctly, so just don't do it.
                    562:                # There are only a very few very minor things that need fixing
                    563:                # anyways.  Also, a number of headers files do not have final
                    564:                # newlines, which causes them to be incorrectly editted by sed.
                    565:                fixincludes=Makefile.in
                    566:                ;;
                    567:        i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
                    568:                xm_file=i860/xm-paragon.h
                    569:                tm_file=i860/paragon.h
                    570:                tmake_file=t-osf
                    571:                broken_install=yes
                    572:                ;;
                    573:        i860-*-mach*)
                    574:                xm_file=i860/xm-i860.h
                    575:                tm_file=i860/mach.h
                    576:                tmake_file=t-libc-ok
                    577:                ;;
                    578:        i860-*-sysv3*)
                    579:                xm_file=i860/xm-sysv3.h
                    580:                xmake_file=i860/x-sysv3
                    581:                tm_file=i860/sysv3.h
                    582:                tmake_file=t-svr3
                    583:                ;;
                    584:        i860-*-sysv4*)
                    585:                xm_file=i860/xm-sysv4.h
                    586:                xmake_file=i860/x-sysv4
                    587:                tm_file=i860/sysv4.h
                    588:                tmake_file=t-svr4
                    589:                ;;
                    590:        i860-alliant-*)         # Alliant FX/2800
                    591:                xm_file=i860/xm-fx2800.h
                    592:                xmake_file=i860/x-fx2800
                    593:                tm_file=i860/fx2800.h
                    594:                tmake_file=i860/t-fx2800
                    595:                ;;
                    596:        i860-*-bsd*)
                    597:                if [ x$gas = xyes ]
                    598:                then
                    599:                        tm_file=i860/bsd-gas.h
                    600:                else
                    601:                        tm_file=i860/bsd.h
                    602:                fi
                    603:                use_collect2=yes
                    604:                ;;
                    605:        elxsi-elxsi-*)
                    606:                use_collect2=yes
                    607:                ;;
                    608:        sparc-next-*)
                    609:                tm_file=sparc/next.h
                    610:                out_file=sparc/next.c
                    611:                xm_file=sparc/xm-next.h
                    612:                tmake_file=sparc/t-next
                    613:                xmake_file=sparc/x-next
                    614:                fixincludes=Makefile.in # On NeXT, the headers are ok already.
                    615:                makefile_cond="$makefile_cond next-headers"
                    616:                ;;
                    617:        sparc-tti-*)
                    618:                tm_file=sparc/pbd.h
                    619:                xm_file=sparc/xm-pbd.h
                    620:                ;;
                    621:        sparc-*-sunos4*)
                    622:                tm_file=sparc/sparc.h
                    623:                use_collect2=yes
                    624:                ;;
                    625:        sparc-*-sunos3*)
                    626:                tm_file=sparc/sun4o3.h
                    627:                use_collect2=yes
                    628:                ;;
                    629:        sparc-*-bsd*)
                    630:                tm_file=sparc/bsd.h
                    631:                ;;
                    632:        sparc-*-sysv4*)
                    633:                xm_file=sparc/xm-sysv4.h
                    634:                tm_file=sparc/sysv4.h
                    635:                tmake_file=t-svr4
                    636:                xmake_file=sparc/x-sysv4
                    637:                ;;
                    638:        sparc-*-solaris2* | sparc-*-sunos5*)
                    639:                xm_file=sparc/xm-sol2.h
                    640:                tm_file=sparc/sol2.h
                    641:                tmake_file=sparc/t-sol2
                    642:                xmake_file=sparc/x-sysv4
                    643:                fixincludes=fixinc.svr4
                    644:                broken_install=yes
                    645:                ;;
                    646:        sparc-*-lynxos)
                    647:                tm_file=sparc/lynx.h
                    648:                xm_file=xm-lynx.h
                    649:                xmake_file=x-lynx
                    650:                # ??? Due to bugs in /bin/sh, it is too much trouble to get
                    651:                # the fixincludes script to run correctly, so just don't do it.
                    652:                # There are only a very few very minor things that need fixing
                    653:                # anyways.  Also, a number of headers files do not have final
                    654:                # newlines, which causes them to be incorrectly editted by sed.
                    655:                fixincludes=Makefile.in
                    656:                ;;
                    657:        sparclite-*-*)
                    658:                cpu_type=sparc
                    659:                tm_file=sparc/lite.h
                    660:                use_collect2=yes
                    661:                ;;
                    662:        m68k-cbm-sysv4*)                # Commodore variant of V.4.
                    663:                tm_file=m68k/amix.h
                    664:                xm_file=m68k/xm-amix.h
                    665:                xmake_file=m68k/x-amix
                    666:                tmake_file=t-svr4
                    667:                header_files=math-68881.h
                    668:                ;;
                    669:        m68k-*-sysv4*)                  # Motorola m68k's running system V.4
                    670:                tm_file=m68k/m68kv4.h
                    671:                xm_file=m68k/xm-m68kv.h
                    672:                tmake_file=t-svr4
                    673:                header_files=math-68881.h
                    674:                ;;
                    675:        m68k-bull-sysv*)                # Bull DPX/2
                    676:                if [ x$gas = xyes ]
                    677:                then
                    678:                        if [ x$stabs = xyes ]
                    679:                        then
                    680:                                tm_file=m68k/dpx2cdbx.h
                    681:                        else
                    682:                                tm_file=m68k/dpx2g.h
                    683:                        fi
                    684:                else
                    685:                        tm_file=m68k/dpx2.h
                    686:                fi
                    687:                xm_file=m68k/xm-m68kv.h
                    688:                xmake_file=m68k/x-dpx2
                    689:                use_collect2=yes
                    690:                header_files=math-68881.h
                    691:                ;;
                    692:        m68k-next-*)
                    693:                tm_file=m68k/next.h
                    694:                out_file=m68k/next.c
                    695:                xm_file=m68k/xm-next.h
                    696:                tmake_file=m68k/t-next
                    697:                xmake_file=m68k/x-next
                    698:                header_files=math-68881.h
                    699:                fixincludes=Makefile.in # On NeXT, the headers are ok already.
                    700:                makefile_cond="$makefile_cond next-headers"
                    701:                ;;
                    702:        m68k-sun-sunos3*)
                    703:                if [ x$nfp = xyes ]
                    704:                then
                    705:                        tm_file=m68k/sun3n3.h
                    706:                else
                    707:                        tm_file=m68k/sun3o3.h
                    708:                fi
                    709:                use_collect2=yes
                    710:                header_files=math-68881.h
                    711:                ;;
                    712:        m68k-sun-sunos*)                # For SunOS 4 (the default).
                    713:                if [ x$nfp = xyes ]
                    714:                then
                    715:                        tm_file=m68k/sun3n.h
                    716:                else
                    717:                        tm_file=m68k/sun3.h
                    718:                fi
                    719:                use_collect2=yes
                    720:                header_files=math-68881.h
                    721:                ;;
                    722:        m68k-sun-mach*)
                    723:                tm_file=m68k/sun3mach.h
                    724:                use_collect2=yes
                    725:                header_files=math-68881.h
                    726:                ;;
                    727:        m68k-tti-*)
                    728:                tm_file=m68k/pbb.h
                    729:                xm_file=m68k/xm-m68kv.h
                    730:                header_files=math-68881.h
                    731:                ;;
                    732:        m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
                    733:                xm_file=m68k/xm-hp320.h
                    734:                if [ x$gas = xyes ]
                    735:                then
                    736:                        xmake_file=m68k/x-hp320g
                    737:                        tmake_file=m68k/t-hp320g
                    738:                        tm_file=m68k/hp320g.h
                    739:                else
                    740:                        xmake_file=m68k/x-hp320
                    741:                        tm_file=m68k/hpux7.h
                    742:                fi
                    743:                broken_install=yes
                    744:                install_headers_dir=install-headers-cpio
                    745:                use_collect2=yes
                    746:                header_files=math-68881.h
                    747:                ;;
                    748:        m68k-hp-hpux*)  # HP 9000 series 300
                    749:                xm_file=m68k/xm-hp320.h
                    750:                if [ x$gas = xyes ]
                    751:                then
                    752:                        xmake_file=m68k/x-hp320g
                    753:                        tmake_file=m68k/t-hp320g
                    754:                        tm_file=m68k/hp320g.h
                    755:                else
                    756:                        xmake_file=m68k/x-hp320
                    757:                        tm_file=m68k/hp320.h
                    758:                fi
                    759:                broken_install=yes
                    760:                install_headers_dir=install-headers-cpio
                    761:                use_collect2=yes
                    762:                header_files=math-68881.h
                    763:                ;;
                    764:        m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
                    765:                tm_file=m68k/hp3bsd44.h
                    766:                xmake_file=m68k/x-hp3bsd44
                    767:                use_collect2=yes
                    768:                header_files=math-68881.h
                    769:                ;;
                    770:        m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
                    771:                tm_file=m68k/hp3bsd.h
                    772:                use_collect2=yes
                    773:                header_files=math-68881.h
                    774:                ;;
                    775:        m68k-isi-bsd*)
                    776:                if [ x$nfp = xyes ]
                    777:                then
                    778:                        tm_file=m68k/isi-nfp.h
                    779:                else
                    780:                        tm_file=m68k/isi.h
                    781:                fi
                    782:                use_collect2=yes
                    783:                header_files=math-68881.h
                    784:                ;;
                    785:        m68k-sony-newsos3*)
                    786:                if [ x$gas = xyes ]
                    787:                then
                    788:                        tm_file=m68k/news3gas.h
                    789:                else
                    790:                        tm_file=m68k/news3.h
                    791:                fi
                    792:                use_collect2=yes
                    793:                header_files=math-68881.h
                    794:                ;;
                    795:        m68k-sony-bsd* | m68k-sony-newsos*)
                    796:                if [ x$gas = xyes ]
                    797:                then
                    798:                        tm_file=m68k/newsgas.h
                    799:                else
                    800:                        tm_file=m68k/news.h
                    801:                fi
                    802:                use_collect2=yes
                    803:                header_files=math-68881.h
                    804:                ;;
                    805:        m68k-altos-sysv*)                  # Altos 3068
                    806:                if [ x$gas = xyes ]
                    807:                then
                    808:                        xm_file=m68k/xm-altos3068.h
                    809:                        tm_file=m68k/altos3068.h
                    810:                else
                    811:                        echo "The Altos is supported only with the GNU assembler" 1>&2
                    812:                        exit 1
                    813:                fi
                    814:                header_files=math-68881.h
                    815:                ;;
                    816:        m68k-motorola-sysv*)
                    817:                tm_file=m68k/mot3300.h
                    818:                xm_file=m68k/xm-mot3300.h
                    819:                xmake_file=m68k/x-alloca-c
                    820:                use_collect2=yes
                    821:                header_files=math-68881.h
                    822:                ;;
                    823:        m68k-crds-unos*)
                    824:                xm_file=m68k/xm-crds.h
                    825:                xmake_file=m68k/x-crds
                    826:                tm_file=m68k/crds.h
                    827:                broken_install=yes
                    828:                use_collect2=yes
                    829:                header_files=math-68881.h
                    830:                ;;
                    831:        m68k-apollo-*)
                    832:                xmake_file=m68k/x-apollo68
                    833:                tm_file=m68k/apollo68.h
                    834:                use_collect2=yes
                    835:                header_files=math-68881.h
                    836:                ;;
                    837:         m68k-plexus-sysv*)
                    838:                tm_file=m68k/plexus.h
                    839:                xm_file=m68k/xm-plexus.h
                    840:                use_collect2=yes
                    841:                header_files=math-68881.h
                    842:                ;;
                    843:        m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
                    844:                tm_file=m68k/tower-as.h
                    845:                xm_file=m68k/xm-tower.h
                    846:                xmake_file=m68k/x-tower
                    847:                tmake_file=t-svr3
                    848:                header_files=math-68881.h
                    849:                ;;
                    850:        m68k-*-sysv3*)                  # Motorola m68k's running system V.3
                    851:                xm_file=m68k/xm-m68kv.h
                    852:                xmake_file=m68k/x-m68kv
                    853:                tmake_file=t-svr3
                    854:                header_files=math-68881.h
                    855:                ;;
                    856:        m68000-sun-sunos3*)
                    857:                cpu_type=m68k
                    858:                tm_file=m68k/sun2.h
                    859:                use_collect2=yes
                    860:                header_files=math-68881.h
                    861:                ;;
                    862:        m68000-sun-sunos4*)
                    863:                cpu_type=m68k
                    864:                tm_file=m68k/sun2o4.h
                    865:                use_collect2=yes
                    866:                header_files=math-68881.h
                    867:                ;;
                    868:        m68000-hp-hpux*)                # HP 9000 series 300
                    869:                cpu_type=m68k
                    870:                xm_file=m68k/xm-hp320.h
                    871:                if [ x$gas = xyes ]
                    872:                then
                    873:                        xmake_file=m68k/x-hp320g
                    874:                        tm_file=m68k/hp310g.h
                    875:                else
                    876:                        xmake_file=m68k/x-hp320
                    877:                        tm_file=m68k/hp310.h
                    878:                fi
                    879:                broken_install=yes
                    880:                install_headers_dir=install-headers-cpio
                    881:                use_collect2=yes
                    882:                header_files=math-68881.h
                    883:                ;;
                    884:        m68000-hp-bsd*)                 # HP 9000/200 running BSD
                    885:                cpu_type=m68k
                    886:                tm_file=m68k/hp2bsd.h
                    887:                xmake_file=m68k/x-hp2bsd
                    888:                use_collect2=yes
                    889:                header_files=math-68881.h
                    890:                ;;
                    891:        m68000-att-sysv*)
                    892:                cpu_type=m68k
                    893:                xm_file=m68k/xm-3b1.h
                    894:                if [ x$gas = xyes ]
                    895:                then
                    896:                        tm_file=m68k/3b1g.h
                    897:                else
                    898:                        tm_file=m68k/3b1.h
                    899:                fi
                    900:                use_collect2=yes
                    901:                header_files=math-68881.h
                    902:                ;;
                    903:        m68k-*-lynxos)
                    904:                tm_file=m68k/lynx.h
                    905:                xm_file=xm-lynx.h
                    906:                xmake_file=x-lynx
                    907:                # ??? Due to bugs in /bin/sh, it is too much trouble to get
                    908:                # the fixincludes script to run correctly, so just don't do it.
                    909:                # There are only a very few very minor things that need fixing
                    910:                # anyways.  Also, a number of headers files do not have final
                    911:                # newlines, which causes them to be incorrectly editted by sed.
                    912:                fixincludes=Makefile.in
                    913:                header_files=math-68881.h
                    914:                ;;
                    915:        m68000-convergent-sysv*)
                    916:                cpu_type=m68k
                    917:                xm_file=m68k/xm-3b1.h
                    918:                tm_file=m68k/ctix.h
                    919:                use_collect2=yes
                    920:                header_files=math-68881.h
                    921:                ;;
                    922:        ns32k-sequent-bsd*)
                    923:                tm_file=ns32k/sequent.h
                    924:                use_collect2=yes
                    925:                ;;
                    926:        ns32k-encore-bsd*)
                    927:                tm_file=ns32k/encore.h
                    928:                use_collect2=yes
                    929:                ;;
                    930: # This has not been updated to GCC 2.
                    931: #      ns32k-ns-genix*)
                    932: #              xm_file=ns32k/xm-genix.h
                    933: #              xmake_file=ns32k/x-genix
                    934: #              tm_file=ns32k/genix.h
                    935: #              broken_install=yes
                    936: #              use_collect2=yes
                    937: #              ;;
                    938:        ns32k-merlin-*)
                    939:                tm_file=ns32k/merlin.h
                    940:                use_collect2=yes
                    941:                ;;
                    942:        ns32k-tek6100-bsd*)
                    943:                tm_file=ns32k/tek6100.h
                    944:                broken_install=yes
                    945:                use_collect2=yes
                    946:                ;;
                    947:        ns32k-tek6200-bsd*)
                    948:                tm_file=ns32k/tek6200.h
                    949:                broken_install=yes
                    950:                use_collect2=yes
                    951:                ;;
                    952:        ns32k-pc532-mach*)
                    953:                tm_file=ns32k/pc532-mach.h
                    954:                use_collect2=yes
                    955:                ;;
                    956:        ns32k-pc532-minix*)
                    957:                tm_file=ns32k/pc532-min.h
                    958:                xm_file=ns32k/xm-pc532-min.h
                    959:                use_collect2=yes
                    960:                ;;
                    961:        m88k-*-luna*)
                    962:                tm_file=m88k/luna.h
                    963:                if [ x$gas = xyes ]
                    964:                then
                    965:                  tmake_file=m88k/t-luna-gas
                    966:                else
                    967:                  tmake_file=m88k/t-luna
                    968:                fi
                    969:                ;;
                    970:        m88k-dg-dgux*)
                    971:                tm_file=m88k/dgux.h
                    972:                xmake_file=m88k/x-dgux
                    973:                broken_install=yes
                    974:                if [ x$gas = xyes ]
                    975:                then
                    976:                  tmake_file=m88k/t-dgux-gas
                    977:                else
                    978:                  tmake_file=m88k/t-dgux
                    979:                fi
                    980:                fixincludes=fixinc.dgux
                    981:                ;;
                    982:        m88k-mot*-sysv4*)       #added by kev for Motorola delta machines
                    983:                tm_file=m88k/mot-sysv4.h        #added by kev
                    984:                xmake_file=m88k/x-sysv4         #added by kev
                    985:                tmake_file=m88k/t-sysv4         #added by kev
                    986:                ;;                              #added by kev
                    987:        m88k-*-sysv4*)
                    988:                tm_file=m88k/sysv4.h
                    989:                xmake_file=m88k/x-sysv4
                    990:                tmake_file=m88k/t-sysv4
                    991:                ;;
                    992:        m88k-dolphin-sysv3*)
                    993:                tm_file=m88k/dolph.h
                    994:                xm_file=m88k/xm-sysv3.h
                    995:                xmake_file=m88k/x-dolph
                    996:                if [ x$gas = xyes ]
                    997:                then
                    998:                  tmake_file=m88k/t-m88k-gas
                    999:                fi
                   1000:                ;;
                   1001: 
                   1002:        m88k-tektronix-sysv3)
                   1003:                tm_file=m88k/tekXD88.h
                   1004:                xm_file=m88k/xm-sysv3.h
                   1005:                xmake_file=m88k/x-tekXD88
                   1006:                if [ x$gas = xyes ]
                   1007:                then
                   1008:                  tmake_file=m88k/t-m88k-gas
                   1009:                fi
                   1010:                ;;
                   1011: 
                   1012:        m88k-*-sysv3*)
                   1013:                tm_file=m88k/sysv3.h
                   1014:                xm_file=m88k/xm-sysv3.h
                   1015:                xmake_file=m88k/x-sysv3
                   1016:                if [ x$gas = xyes ]
                   1017:                then
                   1018:                  tmake_file=m88k/t-m88k-gas
                   1019:                fi
                   1020:                ;;
                   1021: # This hasn't been upgraded to GCC 2.
                   1022: #      fx80-alliant-*)                 # Alliant FX/80
                   1023: #              ;;
                   1024:        arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
                   1025:                tm_file=arm/riscix1-1.h
                   1026:                use_collect2=yes
                   1027:                ;;
                   1028:        arm-*-riscix*)                  # Acorn RISC machine
                   1029:                if [ x$gas = xyes ]
                   1030:                then
                   1031:                    tm_file=arm/rix-gas.h
                   1032:                else
                   1033:                    tm_file=arm/riscix.h
                   1034:                fi
                   1035:                use_collect2=yes
                   1036:                ;;
                   1037:        arm-*-*)                        # generic version
                   1038:                ;;
                   1039:        c1-convex-*)                    # Convex C1
                   1040:                cpu_type=convex
                   1041:                tm_file=convex/convex1.h
                   1042:                use_collect2=yes
                   1043:                ;;
                   1044:        c2-convex-*)                    # Convex C2
                   1045:                cpu_type=convex
                   1046:                tm_file=convex/convex2.h
                   1047:                use_collect2=yes
                   1048:                ;;
                   1049:        c32-convex-*)
                   1050:                cpu_type=convex
                   1051:                tm_file=convex/convex32.h       # Convex C32xx
                   1052:                use_collect2=yes
                   1053:                ;;
                   1054:        c34-convex-*)
                   1055:                cpu_type=convex
                   1056:                tm_file=convex/convex34.h       # Convex C34xx
                   1057:                use_collect2=yes
                   1058:                ;;
                   1059:        c38-convex-*)
                   1060:                cpu_type=convex
                   1061:                tm_file=convex/convex38.h       # Convex C38xx
                   1062:                use_collect2=yes
                   1063:                ;;
                   1064:        mips-sgi-irix5*)                # SGI System V.4., IRIX 5
                   1065:                tm_file=mips/iris5.h
                   1066:                xm_file=mips/xm-iris5.h
                   1067:                broken_install=yes
                   1068:                fixincludes=Makefile.in
                   1069:                xmake_file=mips/x-iris
                   1070:                # mips-tfile doesn't work yet
                   1071:                tmake_file=mips/t-mips-gas
                   1072:                ;;
                   1073:        mips-sgi-irix4loser*)           # Mostly like a MIPS.
                   1074:                if [ x$stabs = xyes ]; then
                   1075:                        tm_file=mips/iris4gl.h
                   1076:                else
                   1077:                        tm_file=mips/iris4loser.h
                   1078:                fi
                   1079:                xm_file=mips/xm-iris4.h
                   1080:                broken_install=yes
                   1081:                xmake_file=mips/x-iris
                   1082:                if [ x$gas = xyes ]
                   1083:                then
                   1084:                        tmake_file=mips/t-mips-gas
                   1085:                else
                   1086:                        extra_passes="mips-tfile mips-tdump"
                   1087:                fi
                   1088:                if [ x$gnu_ld != xyes ]
                   1089:                then
                   1090:                        use_collect2=yes
                   1091:                fi
                   1092:                ;;
                   1093:        mips-sgi-irix4*)                # Mostly like a MIPS.
                   1094:                if [ x$stabs = xyes ]; then
                   1095:                        tm_file=mips/iris4-gdb.h
                   1096:                else
                   1097:                        tm_file=mips/iris4.h
                   1098:                fi
                   1099:                xm_file=mips/xm-iris4.h
                   1100:                broken_install=yes
                   1101:                xmake_file=mips/x-iris
                   1102:                if [ x$gas = xyes ]
                   1103:                then
                   1104:                        tmake_file=mips/t-mips-gas
                   1105:                else
                   1106:                        extra_passes="mips-tfile mips-tdump"
                   1107:                fi
                   1108:                if [ x$gnu_ld != xyes ]
                   1109:                then
                   1110:                        use_collect2=yes
                   1111:                fi
                   1112:                ;;
                   1113:        mips-sgi-*)                     # Mostly like a MIPS.
                   1114:                if [ x$stabs = xyes ]; then
                   1115:                        tm_file=mips/iris3-gdb.h
                   1116:                else
                   1117:                        tm_file=mips/iris3.h
                   1118:                fi
                   1119:                xm_file=mips/xm-iris3.h
                   1120:                broken_install=yes
                   1121:                xmake_file=mips/x-iris3
                   1122:                if [ x$gas = xyes ]
                   1123:                then
                   1124:                        tmake_file=mips/t-mips-gas
                   1125:                else
                   1126:                        extra_passes="mips-tfile mips-tdump"
                   1127:                fi
                   1128:                if [ x$gnu_ld != xyes ]
                   1129:                then
                   1130:                        use_collect2=yes
                   1131:                fi
                   1132:                ;;
                   1133:        mips-*-ultrix*)         # Decstation.
                   1134:                if [ x$stabs = xyes ]; then
                   1135:                        tm_file=mips/ultrix-gdb.h
                   1136:                else
                   1137:                        tm_file=mips/ultrix.h
                   1138:                fi
                   1139:                xmake_file=mips/x-ultrix
                   1140:                if [ x$gas = xyes ]
                   1141:                then
                   1142:                        tmake_file=mips/t-mips-gas
                   1143:                else
                   1144:                        tmake_file=mips/t-ultrix
                   1145:                        extra_passes="mips-tfile mips-tdump"
                   1146:                fi
                   1147:                if [ x$gnu_ld != xyes ]
                   1148:                then
                   1149:                        use_collect2=yes
                   1150:                fi
                   1151:                ;;
                   1152:        mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
                   1153:                tm_file=mips/osfrose.h
                   1154:                xmake_file=mips/x-osfrose
                   1155:                tmake_file=mips/t-osfrose
                   1156:                use_collect2=yes
                   1157:                ;;
                   1158:        mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
                   1159:                if [ x$stabs = xyes ]; then
                   1160:                        tm_file=mips/dec-gosf1.h
                   1161:                else
                   1162:                        tm_file=mips/dec-osf1.h
                   1163:                fi
                   1164:                xmake_file=mips/x-dec-osf1
                   1165:                if [ x$gas = xyes ]
                   1166:                then
                   1167:                        tmake_file=mips/t-mips-gas
                   1168:                else
                   1169:                        tmake_file=mips/t-ultrix
                   1170:                        extra_passes="mips-tfile mips-tdump"
                   1171:                fi
                   1172:                if [ x$gnu_ld != xyes ]
                   1173:                then
                   1174:                        use_collect2=yes
                   1175:                fi
                   1176:                ;;
                   1177:       mips-dec-bsd*)                  # Decstation running 4.4 BSD
                   1178:               tm_file=mips/dec-bsd.h
                   1179:               xmake_file=
                   1180:               tmake_file=
                   1181:               fixincludes=
                   1182:              if [ x$gas = xyes ]
                   1183:              then
                   1184:                        tmake_file=mips/t-mips-gas
                   1185:              else
                   1186:                        tmake_file=mips/t-ultrix
                   1187:                        extra_passes="mips-tfile mips-tdump"
                   1188:              fi
                   1189:              if [ x$gnu_ld != xyes ]
                   1190:              then
                   1191:                        use_collect2=yes
                   1192:              fi
                   1193:              ;;
                   1194:        mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
                   1195:                if [ x$stabs = xyes ]; then
                   1196:                        tm_file=mips/news4-gdb.h
                   1197:                else
                   1198:                        tm_file=mips/news4.h
                   1199:                fi
                   1200:                if [ x$gas = xyes ]
                   1201:                then
                   1202:                        tmake_file=mips/t-mips-gas
                   1203:                else
                   1204:                        extra_passes="mips-tfile mips-tdump"
                   1205:                fi
                   1206:                if [ x$gnu_ld != xyes ]
                   1207:                then
                   1208:                        use_collect2=yes
                   1209:                fi
                   1210:                xmake_file=mips/x-sony
                   1211:                ;;
                   1212:        mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
                   1213:                                        # That is based on svr4.
                   1214:                # t-svr4 is not right because this system doesn't use ELF.
                   1215:                if [ x$stabs = xyes ]; then
                   1216:                        tm_file=mips/news5-gdb.h
                   1217:                else
                   1218:                        tm_file=mips/news5.h
                   1219:                fi
                   1220:                xm_file=mips/xm-news.h
                   1221:                if [ x$gas = xyes ]
                   1222:                then
                   1223:                        tmake_file=mips/t-mips-gas
                   1224:                else
                   1225:                        extra_passes="mips-tfile mips-tdump"
                   1226:                fi
                   1227:                if [ x$gnu_ld != xyes ]
                   1228:                then
                   1229:                        use_collect2=yes
                   1230:                fi
                   1231:                ;;
                   1232:        mips-*-riscos[56789]bsd* | mips-*-riscos[56789]-bsd*)
                   1233:                if [ x$stabs = xyes ]; then     # MIPS BSD 4.3, RISC-OS 5.0
                   1234:                        tm_file=mips/bsd-5-gdb.h
                   1235:                else
                   1236:                        tm_file=mips/bsd-5.h
                   1237:                fi
                   1238:                if [ x$gas = xyes ]
                   1239:                then
                   1240:                        tmake_file=mips/t-bsd-gas
                   1241:                else
                   1242:                        tmake_file=mips/t-bsd
                   1243:                        extra_passes="mips-tfile mips-tdump"
                   1244:                fi
                   1245:                if [ x$gnu_ld != xyes ]
                   1246:                then
                   1247:                        use_collect2=yes
                   1248:                fi
                   1249:                fixincludes=fixinc.mips
                   1250:                broken_install=yes
                   1251:                ;;
                   1252:        mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd* \
                   1253:                | mips-*-riscos-bsd* | mips-*-riscos[1234]-bsd*)
                   1254:                if [ x$stabs = xyes ]; then     # MIPS BSD 4.3, RISC-OS 4.0
                   1255:                        tm_file=mips/bsd-4-gdb.h
                   1256:                else
                   1257:                        tm_file=mips/bsd-4.h
                   1258:                fi
                   1259:                if [ x$gas = xyes ]
                   1260:                then
                   1261:                        tmake_file=mips/t-bsd-gas
                   1262:                else
                   1263:                        tmake_file=mips/t-bsd
                   1264:                        extra_passes="mips-tfile mips-tdump"
                   1265:                fi
                   1266:                if [ x$gnu_ld != xyes ]
                   1267:                then
                   1268:                        use_collect2=yes
                   1269:                fi
                   1270:                broken_install=yes
                   1271:                ;;
                   1272:        mips-*-riscos[56789]sysv4* | mips-*-riscos[56789]-sysv4*)
                   1273:                if [ x$stabs = xyes ]; then     # MIPS System V.4., RISC-OS 5.0
                   1274:                        tm_file=mips/svr4-5-gdb.h
                   1275:                else
                   1276:                        tm_file=mips/svr4-5.h
                   1277:                fi
                   1278:                xm_file=mips/xm-sysv4.h
                   1279:                xmake_file=mips/x-sysv
                   1280:                if [ x$gas = xyes ]
                   1281:                then
                   1282:                        tmake_file=mips/t-svr4-gas
                   1283:                else
                   1284:                        tmake_file=mips/t-svr4
                   1285:                        extra_passes="mips-tfile mips-tdump"
                   1286:                fi
                   1287:                if [ x$gnu_ld != xyes ]
                   1288:                then
                   1289:                        use_collect2=yes
                   1290:                fi
                   1291:                fixincludes=fixinc.mips
                   1292:                broken_install=yes
                   1293:                ;;
                   1294:        mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4* \
                   1295:                | mips-*-riscos[1234]-sysv4* | mips-*-riscos-sysv4*)
                   1296:                if [ x$stabs = xyes ]; then     # MIPS System V.4. RISC-OS 4.0
                   1297:                        tm_file=mips/svr4-4-gdb.h
                   1298:                else
                   1299:                        tm_file=mips/svr4-4.h
                   1300:                fi
                   1301:                xm_file=mips/xm-sysv.h
                   1302:                xmake_file=mips/x-sysv
                   1303:                if [ x$gas = xyes ]
                   1304:                then
                   1305:                        tmake_file=mips/t-svr4-gas
                   1306:                else
                   1307:                        tmake_file=mips/t-svr4
                   1308:                        extra_passes="mips-tfile mips-tdump"
                   1309:                fi
                   1310:                if [ x$gnu_ld != xyes ]
                   1311:                then
                   1312:                        use_collect2=yes
                   1313:                fi
                   1314:                broken_install=yes
                   1315:                ;;
                   1316:        mips-*-riscos[56789]sysv* | mips-*-riscos[56788]-sysv*)
                   1317:                if [ x$stabs = xyes ]; then     # MIPS System V.3, RISC-OS 5.0
                   1318:                        tm_file=mips/svr3-5-gdb.h
                   1319:                else
                   1320:                        tm_file=mips/svr3-5.h
                   1321:                fi
                   1322:                xm_file=mips/xm-sysv.h
                   1323:                xmake_file=mips/x-sysv
                   1324:                if [ x$gas = xyes ]
                   1325:                then
                   1326:                        tmake_file=mips/t-svr3-gas
                   1327:                else
                   1328:                        tmake_file=mips/t-svr3
                   1329:                        extra_passes="mips-tfile mips-tdump"
                   1330:                fi
                   1331:                if [ x$gnu_ld != xyes ]
                   1332:                then
                   1333:                        use_collect2=yes
                   1334:                fi
                   1335:                fixincludes=fixinc.mips
                   1336:                broken_install=yes
                   1337:                ;;
                   1338:        mips-*-sysv* | mips-*riscos*sysv*)
                   1339:                if [ x$stabs = xyes ]; then     # MIPS System V.3, RISC-OS 4.0
                   1340:                        tm_file=mips/svr3-4-gdb.h
                   1341:                else
                   1342:                        tm_file=mips/svr3-4.h
                   1343:                fi
                   1344:                xm_file=mips/xm-sysv.h
                   1345:                xmake_file=mips/x-sysv
                   1346:                if [ x$gas = xyes ]
                   1347:                then
                   1348:                        tmake_file=mips/t-svr3-gas
                   1349:                else
                   1350:                        tmake_file=mips/t-svr3
                   1351:                        extra_passes="mips-tfile mips-tdump"
                   1352:                fi
                   1353:                if [ x$gnu_ld != xyes ]
                   1354:                then
                   1355:                        use_collect2=yes
                   1356:                fi
                   1357:                broken_install=yes
                   1358:                ;;
                   1359:        mips-*riscos[56789]*)                   # Default MIPS RISC-OS 5.0.
                   1360:                if [ x$stabs = xyes ]; then
                   1361:                        tm_file=mips/mips-5-gdb.h
                   1362:                else
                   1363:                        tm_file=mips/mips-5.h
                   1364:                fi
                   1365:                if [ x$gas = xyes ]
                   1366:                then
                   1367:                        tmake_file=mips/t-mips-gas
                   1368:                else
                   1369:                        extra_passes="mips-tfile mips-tdump"
                   1370:                fi
                   1371:                if [ x$gnu_ld != xyes ]
                   1372:                then
                   1373:                        use_collect2=yes
                   1374:                fi
                   1375:                fixincludes=fixinc.mips
                   1376:                broken_install=yes
                   1377:                ;;
                   1378:        mips-*-*)                               # Default MIPS RISC-OS 4.0.
                   1379:                if [ x$stabs = xyes ]; then
                   1380:                        tm_file=mips/mips-4-gdb.h
                   1381:                else
                   1382:                        tm_file=mips/mips.h
                   1383:                fi
                   1384:                if [ x$gas = xyes ]
                   1385:                then
                   1386:                        tmake_file=mips/t-mips-gas
                   1387:                else
                   1388:                        extra_passes="mips-tfile mips-tdump"
                   1389:                fi
                   1390:                if [ x$gnu_ld != xyes ]
                   1391:                then
                   1392:                        use_collect2=yes
                   1393:                fi
                   1394:                ;;
                   1395:        pyramid-*-*)
                   1396:                cpu_type=pyr
                   1397:                xmake_file=pyr/x-pyr
                   1398:                use_collect2=yes
                   1399:                ;;
                   1400: # This hasn't been upgraded to GCC 2.
                   1401: #      tron-*-*)
                   1402: #              cpu_type=gmicro
                   1403: #              use_collect2=yes
                   1404: #              ;;
                   1405:        a29k-*-bsd*)
                   1406:                tm_file=a29k/unix.h
                   1407:                xm_file=a29k/xm-unix.h
                   1408:                xmake_file=a29k/x-unix
                   1409:                use_collect2=yes
                   1410:                ;;
                   1411:        a29k-*-*)                       # Default a29k environment.
                   1412:                use_collect2=yes
                   1413:                ;;
                   1414:        romp-*-aos*)
                   1415:                use_collect2=yes
                   1416:                ;;
                   1417:        romp-*-mach*)
                   1418:                xmake_file=romp/x-mach
                   1419:                use_collect2=yes
                   1420:                ;;
                   1421:        rs6000-*-mach*)
                   1422:                xm_file=rs6000/xm-mach.h
                   1423:                tm_file=rs6000/mach.h
                   1424:                xmake_file=rs6000/x-mach
                   1425:                use_collect2=yes
                   1426:                ;;
                   1427:        rs6000-ibm-aix3.[01]*)
                   1428:                tm_file=rs6000/aix31.h
                   1429:                xmake_file=rs6000/x-aix31
                   1430:                use_collect2=yes
                   1431:                ;;
                   1432:        rs6000-ibm-aix*)
                   1433:                use_collect2=yes
                   1434:                ;;
                   1435:        powerpc-ibm-aix*)
                   1436:                cpu_type=rs6000
                   1437:                tm_file=rs6000/powerpc.h
                   1438:                use_collect2=yes
                   1439:                ;;
                   1440:        hppa-next-* | \
                   1441:        hppa1.1-next-*)
                   1442:                cpu_type=pa
                   1443:                tm_file=pa/next.h
                   1444:                out_file=pa/next.c
                   1445:                xm_file=pa/xm-next.h
                   1446:                tmake_file=pa/t-next
                   1447:                xmake_file=pa/x-next
                   1448:                fixincludes=Makefile.in # On NeXT, the headers are ok already.
                   1449:                makefile_cond="$makefile_cond next-headers"
                   1450:                ;;
                   1451:        hppa1.1-nextpdo-hpux*)
                   1452:                cpu_type=pa
                   1453:                xm_file=pa/xm-pahpux.h
                   1454:                xmake_file=pa/x-pa-hpux
                   1455:                tmake_file=t-libc-ok
                   1456:                tm_file=pa/next-pdo.h
                   1457:                out_file=pa/next-pdo.c
                   1458:                broken_install=yes
                   1459:                fixincludes=Makefile.in
                   1460:                use_collect2=yes
                   1461:                ;;
                   1462:        hppa1.1-*-mach*)
                   1463:                cpu_type=pa
                   1464:                tm_file=pa/pa1-utahmach.h
                   1465:                use_collect2=yes
                   1466:                ;;
                   1467:        hppa1.0-*-mach*)
                   1468:                cpu_type=pa
                   1469:                tm_file=pa/pa-utahmach.h
                   1470:                use_collect2=yes
                   1471:                ;;
                   1472:        hppa1.1-*-bsd*)
                   1473:                cpu_type=pa
                   1474:                tm_file=pa/pa1.h
                   1475:                use_collect2=yes
                   1476:                ;;
                   1477:        hppa1.0-*-bsd*)
                   1478:                cpu_type=pa
                   1479:                use_collect2=yes
                   1480:                ;;
                   1481:        hppa1.0-*-hpux7*)
                   1482:                cpu_type=pa
                   1483:                xm_file=pa/xm-pahpux.h
                   1484:                xmake_file=pa/x-pa-hpux
                   1485:                tmake_file=t-libc-ok
                   1486:                if [ x$gas = xyes ]
                   1487:                then
                   1488:                        tm_file=pa/pa-gux7.h
                   1489:                else
                   1490:                        tm_file=pa/pa-hpux7.h
                   1491:                fi
                   1492:                broken_install=yes
                   1493:                install_headers_dir=install-headers-cpio
                   1494:                use_collect2=yes
                   1495:                ;;
                   1496:        hppa1.0-*-hpux8.0[0-2]*)
                   1497:                cpu_type=pa
                   1498:                xm_file=pa/xm-pahpux.h
                   1499:                xmake_file=pa/x-pa-hpux
                   1500:                tmake_file=t-libc-ok
                   1501:                if [ x$gas = xyes ]
                   1502:                then
                   1503:                        tm_file=pa/pa-ghpux.h
                   1504:                else
                   1505:                        tm_file=pa/pa-oldas.h
                   1506:                fi
                   1507:                broken_install=yes
                   1508:                install_headers_dir=install-headers-cpio
                   1509:                use_collect2=yes
                   1510:                ;;
                   1511:        hppa1.1-*-hpux8.0[0-2]*)
                   1512:                cpu_type=pa
                   1513:                xm_file=pa/xm-pahpux.h
                   1514:                xmake_file=pa/x-pa-hpux
                   1515:                tmake_file=t-libc-ok
                   1516:                if [ x$gas = xyes ]
                   1517:                then
                   1518:                        tm_file=pa/pa1-ghpux.h
                   1519:                else
                   1520:                        tm_file=pa/pa1-oldas.h
                   1521:                fi
                   1522:                broken_install=yes
                   1523:                install_headers_dir=install-headers-cpio
                   1524:                use_collect2=yes
                   1525:                ;;
                   1526:        hppa1.1-*-hpux*)
                   1527:                cpu_type=pa
                   1528:                xm_file=pa/xm-pahpux.h
                   1529:                xmake_file=pa/x-pa-hpux
                   1530:                tmake_file=t-libc-ok
                   1531:                if [ x$gas = xyes ]
                   1532:                then
                   1533:                        tm_file=pa/pa1-ghpux.h
                   1534:                else
                   1535:                        tm_file=pa/pa1-hpux.h
                   1536:                fi
                   1537:                broken_install=yes
                   1538:                install_headers_dir=install-headers-cpio
                   1539:                use_collect2=yes
                   1540:                ;;
                   1541:        hppa1.0-*-hpux*)
                   1542:                cpu_type=pa
                   1543:                xm_file=pa/xm-pahpux.h
                   1544:                xmake_file=pa/x-pa-hpux
                   1545:                tmake_file=t-libc-ok
                   1546:                if [ x$gas = xyes ]
                   1547:                then
                   1548:                        tm_file=pa/pa-ghpux.h
                   1549:                else
                   1550:                        tm_file=pa/pa-hpux.h
                   1551:                fi
                   1552:                broken_install=yes
                   1553:                install_headers_dir=install-headers-cpio
                   1554:                use_collect2=yes
                   1555:                ;;
                   1556:        hppa1.1-*-hiux*)
                   1557:                cpu_type=pa
                   1558:                xm_file=pa/xm-pahiux.h
                   1559:                xmake_file=pa/x-pa-hiux
                   1560:                tmake_file=t-libc-ok
                   1561:                if [ x$gas = xyes ]
                   1562:                then
                   1563:                        tm_file=pa/pa1-ghiux.h
                   1564:                else
                   1565:                        tm_file=pa/pa1-hiux.h
                   1566:                fi
                   1567:                broken_install=yes
                   1568:                install_headers_dir=install-headers-cpio
                   1569:                use_collect2=yes
                   1570:                ;;
                   1571:        hppa1.0-*-hiux*)
                   1572:                cpu_type=pa
                   1573:                xm_file=pa/xm-pahiux.h
                   1574:                xmake_file=pa/x-pa-hiux
                   1575:                tmake_file=t-libc-ok
                   1576:                if [ x$gas = xyes ]
                   1577:                then
                   1578:                        tm_file=pa/pa-ghiux.h
                   1579:                else
                   1580:                        tm_file=pa/pa-hiux.h
                   1581:                fi
                   1582:                broken_install=yes
                   1583:                install_headers_dir=install-headers-cpio
                   1584:                use_collect2=yes
                   1585:                ;;
                   1586:        we32k-att-sysv*)
                   1587:                cpu_type=we32k
                   1588:                use_collect2=yes
                   1589:                ;;
                   1590:        h8300-*-*)
                   1591:                cpu_type=h8300
                   1592:                ;;
                   1593:        sh-*-*)
                   1594:                cpu_type=sh
                   1595:                ;;
                   1596:        alpha-dec-osf1.2)
                   1597:                extra_passes="mips-tfile mips-tdump"
                   1598:                tm_file=alpha/osf12.h
                   1599:                broken_install=yes
                   1600:                use_collect2=yes
                   1601:                ;;
                   1602:        alpha-*-osf*)
                   1603:                if [ x$stabs = xyes ]
                   1604:                then
                   1605:                        tm_file=alpha/alpha-gdb.h
                   1606:                fi
                   1607:                if [ x$gas != xyes ]
                   1608:                then
                   1609:                        extra_passes="mips-tfile mips-tdump"
                   1610:                fi
                   1611:                broken_install=yes
                   1612:                use_collect2=yes
                   1613:                ;;
                   1614:        i960-*-*)                       # Default i960 environment.
                   1615:                use_collect2=yes
                   1616:                ;;
                   1617:        clipper-intergraph-clix*)
                   1618:                broken_install=yes
                   1619:                cpu_type=clipper
                   1620:                xm_file=clipper/xm-clix.h
                   1621:                tm_file=clipper/clix.h
                   1622:                tmake_file=clipper/t-clix
                   1623:                xmake_file=clipper/x-clix
                   1624:                install_headers_dir=install-headers-cpio
                   1625:                ;;
                   1626:        *)
                   1627:                echo "Configuration $machine not supported" 1>&2
                   1628:                exit 1
                   1629:                ;;
                   1630:        esac
                   1631: 
                   1632:        case $machine in
                   1633:        *-*-sysv4*)
                   1634:                fixincludes=fixinc.svr4
                   1635:                xmake_try_sysv=x-sysv
                   1636:                broken_install=yes
                   1637:                install_headers_dir=install-headers-cpio
                   1638:                ;;
                   1639:        *-*-sysv*)
                   1640:                broken_install=yes
                   1641:                install_headers_dir=install-headers-cpio
                   1642:                ;;
                   1643:        esac
                   1644: 
                   1645:        # Distinguish i386 from i486.
                   1646:        # Also, do not run mips-tfile on MIPS if using gas.
                   1647:        case $machine in
                   1648:        i486-*-*)
                   1649:                target_cpu_default=2
                   1650:                ;;
                   1651:        mips-*-*)
                   1652:                if [ x$gas = xyes ]
                   1653:                then
                   1654:                        target_cpu_default=16
                   1655:                fi
                   1656:                ;;
                   1657:        esac
                   1658: 
                   1659:        # No need for collect2 if we have the GNU linker.
                   1660:        case x$gnu_ld in 
                   1661:        xyes)
                   1662:                use_collect2=
                   1663:                ;;
                   1664:        esac
                   1665: 
                   1666: # Default certain vars that apply to both host and target in turn.
                   1667:        if [ x$cpu_type = x ]
                   1668:        then cpu_type=`echo $machine | sed 's/-.*$//'`
                   1669:        fi
                   1670: 
                   1671: # Save data on machine being used to compile GCC in build_xm_file.
                   1672: # Save data on host machine in vars host_xm_file and host_xmake_file.
                   1673:        if [ x$pass1done = x ]
                   1674:        then
                   1675:                if [ x$xm_file = x ]
                   1676:                then build_xm_file=$cpu_type/xm-$cpu_type.h
                   1677:                else build_xm_file=$xm_file
                   1678:                fi
                   1679:                pass1done=yes
                   1680:        else
                   1681:                if [ x$pass2done = x ]
                   1682:                then
                   1683:                        if [ x$xm_file = x ]
                   1684:                        then host_xm_file=$cpu_type/xm-$cpu_type.h
                   1685:                        else host_xm_file=$xm_file
                   1686:                        fi
                   1687:                        if [ x$xmake_file = x ]
                   1688:                        then xmake_file=$cpu_type/x-$cpu_type
                   1689:                        fi
                   1690:                        host_xmake_file=$xmake_file
                   1691:                        host_broken_install=$broken_install
                   1692:                        host_install_headers_dir=$install_headers_dir
                   1693:                        host_truncate_target=$truncate_target
                   1694:                        pass2done=yes
                   1695:                fi
                   1696:        fi
                   1697: done
                   1698: 
                   1699: # Default the target-machine variables that were not explicitly set.
                   1700: if [ x$tm_file = x ]
                   1701: then tm_file=$cpu_type/$cpu_type.h; fi
                   1702: 
                   1703: if [ x$header_files = x ]
                   1704: then header_files=; fi
                   1705: 
                   1706: if [ x$xm_file = x ]
                   1707: then xm_file=$cpu_type/xm-$cpu_type.h; fi
                   1708: 
                   1709: md_file=$cpu_type/$cpu_type.md
                   1710: 
                   1711: if [ x$out_file = x ]
                   1712: then out_file=$cpu_type/$cpu_type.c; fi
                   1713: 
                   1714: if [ x$tmake_file = x ]
                   1715: then tmake_file=$cpu_type/t-$cpu_type
                   1716: fi
                   1717: 
                   1718: # Set up the list of links to be made.
                   1719: # $links is the list of link names, and $files is the list of names to link to.
                   1720: files="$host_xm_file $tm_file $out_file $xm_file $build_xm_file $md_file"
                   1721: links="config.h tm.h aux-output.c tconfig.h hconfig.h"
                   1722: 
                   1723: if [ -n "${cpp_md_flags}" ] ; then
                   1724:        links="$links md.pre-cpp"
                   1725: else
                   1726:        links="$links md"
                   1727: fi
                   1728: 
                   1729: rm -f config.bak
                   1730: if [ -f config.status ]; then mv -f config.status config.bak; fi
                   1731: 
                   1732: # Make the links.
                   1733: while [ -n "$files" ]
                   1734: do
                   1735:        # set file to car of files, files to cdr of files
                   1736:        set $files; file=$1; shift; files=$*
                   1737:        set $links; link=$1; shift; links=$*
                   1738: 
                   1739:        if [ ! -r ${srcdir}/config/$file ]
                   1740:        then
                   1741:                echo "$progname: cannot create a link \`$link'," 1>&2
                   1742:                echo "since the file \`config/$file' does not exist" 1>&2
                   1743:                exit 1
                   1744:        fi
                   1745: 
                   1746:        $remove -f $link
                   1747:        # Make a symlink if possible, otherwise try a hard link
                   1748:        $symbolic_link ${srcdir}/config/$file $link 2>/dev/null || $hard_link ${srcdir}/config/$file $link || $copy ${srcdir}/config/$file $link
                   1749: 
                   1750:        if [ ! -r $link ]
                   1751:        then
                   1752:                echo "$progname: unable to link \`$link' to \`${srcdir}/config/$file'" 1>&2
                   1753:                exit 1
                   1754:        fi
                   1755:        echo "Linked \`$link' to \`${srcdir}/config/$file'"
                   1756: done
                   1757: 
                   1758: # Truncate the target if necessary
                   1759: if [ x$host_truncate_target != x ]; then
                   1760:        target=`echo $target | sed -e 's/\(..............\).*/\1/'`
                   1761: fi
                   1762: 
                   1763: # Create Makefile.tem from Makefile.in.
                   1764: # Make it set VPATH if necessary so that the sources are found.
                   1765: # Also change its value of srcdir.
                   1766: # Also create a .gdbinit file which runs the one in srcdir
                   1767: # and tells GDB to look there for source files.
                   1768: case $srcdir in
                   1769: .)
                   1770:        rm -f Makefile.tem
                   1771:        cp Makefile.in Makefile.tem
                   1772:        chmod +w Makefile.tem
                   1773:        ;;
                   1774: *)
                   1775:        rm -f Makefile.tem
                   1776:        echo "VPATH = ${srcdir}" \
                   1777:          | cat - ${srcdir}/Makefile.in \
                   1778:          | sed "s@^srcdir = \.@srcdir = ${srcdir}@" > Makefile.tem
                   1779:        rm -f .gdbinit
                   1780:        echo "dir ." > .gdbinit
                   1781:        echo "dir ${srcdir}" >> .gdbinit
                   1782:        echo "source ${srcdir}/.gdbinit" >> .gdbinit
                   1783:        ;;
                   1784: esac
                   1785: 
                   1786: # Conditionalize the makefile for this host machine.
                   1787: if [ -f ${srcdir}/config/${host_xmake_file} ]
                   1788: then
                   1789:        rm -f Makefile.xx
                   1790:        sed -e "/####host/  r ${srcdir}/config/${host_xmake_file}" Makefile.tem > Makefile.xx
                   1791:        echo "Merged ${host_xmake_file}."
                   1792:        rm -f Makefile.tem
                   1793:        mv Makefile.xx Makefile.tem
                   1794: else
                   1795: # Say in the makefile that there is no host_xmake_file,
                   1796: # by using a name which (when interpreted relative to $srcdir/config)
                   1797: # will duplicate another dependency: $srcdir/Makefile.in.
                   1798:        host_xmake_file=../Makefile.in
                   1799: fi
                   1800: 
                   1801: # Add a definition for INSTALL if system wants one.
                   1802: # This substitutes for lots of x-* files.
                   1803: if [ x$host_broken_install = x ]
                   1804: then true
                   1805: else
                   1806:        rm -f Makefile.xx
                   1807:        abssrcdir=`cd ${srcdir}; pwd`
                   1808:        sed "s|^INSTALL = .*|INSTALL = ${abssrcdir}/install.sh -c|" Makefile.tem > Makefile.xx
                   1809:        rm -f Makefile.tem
                   1810:        mv Makefile.xx Makefile.tem
                   1811: fi
                   1812: 
                   1813: # Set EXTRA_HEADERS according to header_files.
                   1814: # This substitutes for lots of t-* files.
                   1815: if [ "x$header_files" = x ]
                   1816: then true
                   1817: else
                   1818:        rm -f Makefile.xx
                   1819:        sed "s/^EXTRA_HEADERS =/EXTRA_HEADERS = $header_files/" Makefile.tem > Makefile.xx
                   1820:        rm -f Makefile.tem
                   1821:        mv Makefile.xx Makefile.tem
                   1822: fi
                   1823: 
                   1824: # Set EXTRA_PASSES according to extra_passes.
                   1825: # This substitutes for lots of t-* files.
                   1826: if [ "x$extra_passes" = x ]
                   1827: then true
                   1828: else
                   1829:        rm -f Makefile.xx
                   1830:        sed "s/^EXTRA_PASSES =/EXTRA_PASSES = $extra_passes/" Makefile.tem > Makefile.xx
                   1831:        rm -f Makefile.tem
                   1832:        mv Makefile.xx Makefile.tem
                   1833: fi
                   1834: 
                   1835: # Add a definition of USE_COLLECT2 if system wants one.
                   1836: # Also tell toplev.c what to do.
                   1837: # This substitutes for lots of t-* files.
                   1838: if [ x$use_collect2 = x ]
                   1839: then true
                   1840: else
                   1841:        rm -f Makefile.xx
                   1842:        (echo "USE_COLLECT2 = ld"; echo "MAYBE_USE_COLLECT2 = -DUSE_COLLECT2")\
                   1843:           | cat - Makefile.tem > Makefile.xx
                   1844:        rm -f Makefile.tem
                   1845:        mv Makefile.xx Makefile.tem
                   1846: fi
                   1847: 
                   1848: # Add -DTARGET_CPU_DEFAULT for toplev.c if system wants one.
                   1849: # This substitutes for lots of *.h files.
                   1850: if [ x$target_cpu_default = x ]
                   1851: then true
                   1852: else
                   1853:        rm -f Makefile.xx
                   1854: # This used cat, but [email protected] said that ran into NFS bugs.
                   1855:        sed -e "/^# Makefile for GNU C compiler./c\\
                   1856: MAYBE_TARGET_DEFAULT = -DTARGET_CPU_DEFAULT=$target_cpu_default\\
                   1857: \# Makefile for GNU C compiler." Makefile.tem > Makefile.xx
                   1858:        rm -f Makefile.tem
                   1859:        mv Makefile.xx Makefile.tem
                   1860: fi
                   1861: 
                   1862: # Add a CPP_MD dependence if the real md file is in md.pre-cpp.
                   1863: if [ -n "${cpp_md_flags}" ] ; then
                   1864:        rm -f Makefile.xx
                   1865:        (echo "CPP_MD = md.pre-cpp cpp" ; echo "CPP_MD_FLAGS = $cpp_md_flags" ; echo "MD_FILE = md") \
                   1866:          | cat - Makefile.tem > Makefile.xx
                   1867:        rm -f Makefile.tem
                   1868:        mv Makefile.xx Makefile.tem
                   1869: fi
                   1870: 
                   1871: # Conditionalize the makefile for this target machine.
                   1872: if [ -f ${srcdir}/config/${tmake_file} ]
                   1873: then
                   1874:        rm -f Makefile.xx
                   1875:        sed -e "/####target/  r ${srcdir}/config/${tmake_file}" Makefile.tem > Makefile.xx
                   1876:        echo "Merged ${tmake_file}."
                   1877:        rm -f Makefile.tem
                   1878:        mv Makefile.xx Makefile.tem
                   1879: else
                   1880: # Say in the makefile that there is no tmake_file,
                   1881: # by using a name which (when interpreted relative to $srcdir/config)
                   1882: # will duplicate another dependency: $srcdir/Makefile.in.
                   1883:        tmake_file=../Makefile.in
                   1884: fi
                   1885: 
                   1886: # Get the version number.
                   1887: version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
                   1888: 
                   1889: # Remove all formfeeds, since some Makes get confused by them.
                   1890: # Also arrange to give the variables `target', `host_xmake_file',
                   1891: # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
                   1892: # and `INSTALL_HEADERS_DIR' values in the Makefile from the values
                   1893: # they have in this script.
                   1894: rm -f Makefile.xx
                   1895: sed -e "s///" -e "s/^target=.*$/target=${target}/" \
                   1896:     -e "s|^xmake_file=.*$|xmake_file=${host_xmake_file}|" \
                   1897:     -e "s|^tmake_file=.*$|tmake_file=${tmake_file}|" \
                   1898:     -e "s|^version=.*$|version=${version}|" \
                   1899:     -e "s|^prefix[     ]*=.*|prefix = $prefix|" \
                   1900:     -e "s|^local_prefix[       ]*=.*|local_prefix = $local_prefix|" \
                   1901:     -e "s|^exec_prefix[        ]*=.*|exec_prefix = $exec_prefix|" \
                   1902:     -e "s|^FIXINCLUDES[        ]*=.*|FIXINCLUDES = $fixincludes|" \
                   1903:     -e "s|^INSTALL_HEADERS_DIR[        ]*=.*$|INSTALL_HEADERS_DIR = ${host_install_headers_dir}|" \
                   1904:     Makefile.tem > Makefile.xx
                   1905: rm -f Makefile.tem
                   1906: mv Makefile.xx Makefile.tem
                   1907: 
                   1908: # Handle makefile conditions...
                   1909: if [ "x$makefile_cond" != "x" ]; then
                   1910:   for cond in $makefile_cond; do
                   1911:     rm -f Makefile.xx
                   1912:     sed -e "/^%if $cond\$/d" \
                   1913:        -e "/^%else $cond\$/,/^%endif $cond\$/d" \
                   1914:        -e "/^%endif $cond\$/d" \
                   1915:       Makefile.tem > Makefile.xx
                   1916:     rm -f Makefile.tem
                   1917:     mv Makefile.xx Makefile.tem
                   1918:   done
                   1919: fi
                   1920: 
                   1921: # Remove other conditions
                   1922: rm -f Makefile.xx 
                   1923: for cond in $all_makefile_conds; do
                   1924:   sed -e "/^%if $cond/,/^%else $cond/d" \
                   1925:      -e "/^%if $cond\$/,/^%endif $cond\$/d" \
                   1926:      -e "/^%endif $cond\$/d" \
                   1927:      Makefile.tem > Makefile.xx
                   1928:   rm -f Makefile.tem
                   1929:   mv Makefile.xx Makefile.tem
                   1930: done
                   1931: 
                   1932: # Install Makefile for real, after making final changes.
                   1933: # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
                   1934: # Also use all.cross instead of all.internal, and add cross-make to Makefile.
                   1935: if [ x$host = x$target ]
                   1936: then
                   1937:        rm -f Makefile
                   1938:        if [ \( x$host = x$build \) -a \( x$force_build = x \) ]
                   1939:        then
                   1940:                mv Makefile.tem Makefile
                   1941:        else
                   1942: #              When build gcc with cross-compiler, we need to fix a
                   1943: #              few things.
                   1944:                echo "build= $build" > Makefile
                   1945:                sed -e "/####build/  r ${srcdir}/build-make" Makefile.tem >> Makefile
                   1946:                rm -f Makefile.tem Makefile.xx
                   1947:        fi
                   1948: else
                   1949:        rm -f Makefile
                   1950:        echo "CROSS=-DCROSS_COMPILE" > Makefile
                   1951:        sed -e "/####cross/  r ${srcdir}/cross-make" Makefile.tem >> Makefile
                   1952:        rm -f Makefile.tem Makefile.xx
                   1953: fi
                   1954: 
                   1955: echo "Created \`Makefile'."
                   1956: 
                   1957: if [ xx${vint} != xx ]
                   1958: then
                   1959:        vintmsg=" (vint)"
                   1960: fi
                   1961: 
                   1962: # Describe the chosen configuration in config.status.
                   1963: # Make that file a shellscript which will reestablish the same configuration.
                   1964: echo "#!/bin/sh
                   1965: # GCC was configured as follows:
                   1966: ${srcdir}/configure" $arguments > config.new
                   1967: echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
                   1968: chmod a+x config.new
                   1969: if [ -f config.bak ] && cmp config.bak config.new >/dev/null 2>/dev/null;
                   1970: then
                   1971:        mv -f config.bak config.status
                   1972:        rm -f config.new
                   1973: else
                   1974:        mv -f config.new config.status
                   1975:        rm -f config.bak
                   1976: fi
                   1977: 
                   1978: if [ x$canon_host = x$canon_target ]
                   1979: then
                   1980:        echo "Links are now set up for target $canon_target."
                   1981: else
                   1982:        echo "Links are now set up for host $canon_host and target $canon_target."
                   1983: fi
                   1984: 
                   1985: exit 0

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.