Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    4545using_cgen=no
    4646
    47 build_warnings="-W -Wall"
     47build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
    4848AC_ARG_ENABLE(build-warnings,
    4949[  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
     
    7373GDBINIT=".gdbinit"
    7474case "${host}" in
    75   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
     75  *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
    7676    GDBINIT="gdb.ini"
    7777    ;;
     
    116116    case ${cpu} in
    117117      alpha*)           cpu_type=alpha ;;
    118       armeb)            cpu_type=arm endian=big ;;
    119       arm*)             cpu_type=arm endian=little ;;
    120       armb*)            cpu_type=arm endian=little ;;
    121       armv*l)           cpu_type=arm endian=little ;;
    122       armv*b)           cpu_type=arm endian=big ;;
    123       xscale*)          cpu_type=arm endian=little ;;
    124       strongarm*)       cpu_type=arm endian=little ;;
    125       thumb*)           cpu_type=arm endian=little ;;
     118      arm*b|xscale*b|strongarm*b) cpu_type=arm endian=big ;;
     119      arm*|xscale*|strongarm*)    cpu_type=arm endian=little ;;
    126120      hppa*)            cpu_type=hppa ;;
    127121changequote(,)dnl
     
    129123      x86_64)           cpu_type=i386 arch=x86_64;;
    130124      ia64)             cpu_type=ia64 ;;
     125      ip2k)             cpu_type=ip2k endian=big ;;
     126      iq2000)           cpu_type=iq2000 endian=big ;;
    131127      m6811|m6812|m68hc12) cpu_type=m68hc11 ;;
    132128      m680[012346]0)    cpu_type=m68k ;;
     
    138134      mips*el)          cpu_type=mips endian=little ;;
    139135      mips*)            cpu_type=mips endian=big ;;
     136      or32*)            cpu_type=or32 endian=big ;;
    140137      pjl*)             cpu_type=pj endian=little ;;
    141138      pj*)              cpu_type=pj endian=big ;;
    142       powerpcle*)       cpu_type=ppc endian=little ;;
     139      powerpc*le*)      cpu_type=ppc endian=little ;;
    143140      powerpc*)         cpu_type=ppc endian=big ;;
    144141      rs6000*)          cpu_type=ppc ;;
     142      s390x*)           cpu_type=s390 arch=s390x ;;
     143      s390*)            cpu_type=s390 arch=s390 ;;
     144      sh5*)             cpu_type=sh64 endian=big ;;
     145      sh5le*)           cpu_type=sh64 endian=little ;;
     146      sh64*)            cpu_type=sh64 endian=big ;;
     147      sh64le*)          cpu_type=sh64 endian=little ;;
     148      sh*le)            cpu_type=sh endian=little ;;
     149      sh*)              cpu_type=sh endian=big ;;
    145150      sparclite*)       cpu_type=sparc arch=sparclite ;;
    146151      sparclet*)        cpu_type=sparc arch=sparclet ;;
     
    149154      sparc*)           cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
    150155      v850*)            cpu_type=v850 ;;
     156      xtensa*)          cpu_type=xtensa arch=xtensa ;;
    151157      *)                cpu_type=${cpu} ;;
    152158    esac
     
    165171    # assign object format
    166172    case ${generic_target} in
    167       a29k-*-coff)          fmt=coff ;;
    168       a29k-amd-udi)         fmt=coff ;;
    169       a29k-amd-ebmon)       fmt=coff ;;
    170       a29k-nyu-sym1)        fmt=coff ;;
    171       a29k-*-rtems*)        fmt=coff ;;
    172       a29k-*-vxworks*)      fmt=coff ;;
    173 
    174       alpha*-*-*vms*)       fmt=evax ;;
    175       alpha*-*-netware*)    fmt=ecoff ;;
    176       alpha*-*-openbsd*)    fmt=ecoff ;;
    177       alpha*-*-osf*)        fmt=ecoff ;;
    178       alpha*-*-linuxecoff*) fmt=ecoff ;;
    179       alpha*-*-linux-gnu*)  fmt=elf em=linux ;;
    180       alpha*-*-netbsd*)     fmt=elf em=nbsd ;;
    181 
    182       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
    183 
    184       arm-*-aout)                       fmt=aout ;;
    185       arm-*-coff | thumb-*-coff)        fmt=coff ;;
    186       arm-*-rtems | thumb-*-rtems)      fmt=elf ;;
    187       arm-*-elf | thumb-*-elf)          fmt=elf ;;
     173      a29k-*-coff)                      fmt=coff ;;
     174      a29k-amd-udi)                     fmt=coff ;;
     175      a29k-amd-ebmon)                   fmt=coff ;;
     176      a29k-nyu-sym1)                    fmt=coff ;;
     177      a29k-*-rtems*)                    fmt=coff ;;
     178      a29k-*-vxworks*)                  fmt=coff ;;
     179
     180      alpha*-*-*vms*)                   fmt=evax ;;
     181      alpha*-*-netware*)                fmt=ecoff ;;
     182      alpha*-*-osf*)                    fmt=ecoff ;;
     183      alpha*-*-linuxecoff*)             fmt=ecoff ;;
     184      alpha*-*-linux-gnu*)              fmt=elf em=linux ;;
     185      alpha*-*-netbsd*)                 fmt=elf em=nbsd ;;
     186      alpha*-*-openbsd*)                fmt=elf em=obsd ;;
     187
     188      arc-*-elf*)                       fmt=elf ;;
     189
     190      arm-*-aout)                       fmt=aout ;;
     191      arm-*-coff | thumb-*-coff)        fmt=coff ;;
     192      arm-*-rtems | thumb-*-rtems)      fmt=elf ;;
     193      arm-*-elf | thumb-*-elf)          fmt=elf ;;
     194      arm-*-kaos*)                      fmt=elf ;;
    188195      arm*-*-conix*)                    fmt=elf ;;
    189       arm-*-linux*aout*)                fmt=aout em=linux ;;
    190       arm*-*-linux-gnu* | arm*-*-uclinux*)     
    191                                         fmt=elf  em=linux ;;
    192       arm-*-netbsd*)                    fmt=aout em=nbsd ;;
    193       arm-*-oabi | thumb-*-oabi)        fmt=elf ;;
    194       arm-epoc-pe | thumb-epoc-pe)      fmt=coff em=epoc-pe ;;
     196      arm-*-linux*aout*)                fmt=aout em=linux ;;
     197      arm*-*-linux-gnu*)                fmt=elf  em=linux ;;
     198      arm*-*-uclinux*)                  fmt=elf  em=linux ;;
     199      arm-*-netbsdelf*)                 fmt=elf  em=nbsd ;;
     200      arm-*-*n*bsd*)                    fmt=aout em=nbsd ;;
     201      arm-**-nto*)                      fmt=elf ;;
     202      arm-*-oabi | thumb-*-oabi)        fmt=elf ;;
     203      arm-epoc-pe | thumb-epoc-pe)      fmt=coff em=epoc-pe ;;
    195204      arm-*-wince)                      fmt=coff em=wince-pe ;;
    196       arm-*-pe | thumb-*-pe)            fmt=coff em=pe ;;
    197       arm-*-riscix*)                    fmt=aout em=riscix ;;
    198       arm-*-vxworks)                    fmt=coff ;;
    199 
    200       avr-*-*)              fmt=elf bfd_gas=yes ;;
    201 
    202       cris-*-*)             fmt=multi bfd_gas=yes ;;
    203 
    204       d10v-*-*)             fmt=elf bfd_gas=yes ;;
    205       d30v-*-*)             fmt=elf bfd_gas=yes ;;
    206 
    207 
    208       fr30-*-*)             fmt=elf bfd_gas=yes ;;
    209 
    210       hppa-*-linux-gnu*)    case ${cpu} in
    211                                 hppa*64*)
    212                                         fmt=elf em=hppalinux64;;
    213                                 hppa*)
    214                                         fmt=elf em=linux;;
    215                             esac ;;
    216       hppa-*-*elf*)         fmt=elf em=hppa ;;
    217       hppa-*-lites*)        fmt=elf em=hppa ;;
    218       hppa-*-osf*)          fmt=som em=hppa ;;
    219       hppa-*-rtems*)        fmt=elf em=hppa ;;
    220       hppa-*-hpux11*)       case ${cpu} in
    221                                 hppa*64*)
    222                                         fmt=elf em=hppa64 ;;
    223                                 hppa*)
    224                                         fmt=som em=hppa ;;
    225                             esac ;;
    226       hppa-*-hpux*)         fmt=som em=hppa ;;
    227       hppa-*-mpeix*)        fmt=som em=hppa ;;
    228       hppa-*-bsd*)          fmt=som em=hppa ;;
    229       hppa-*-hiux*)         fmt=som em=hppa ;;
    230 
    231       h8300-*-rtems*)       fmt=coff ;;
    232       h8300-*-coff)         fmt=coff ;;
    233       h8500-*-rtems*)       fmt=coff ;;
    234       h8500-*-coff)         fmt=coff ;;
    235 
    236       i370-*-elf* | i370-*-linux*) fmt=elf ;;
    237       i386-ibm-aix*)        fmt=coff em=i386aix ;;
    238       i386-sequent-bsd*)    fmt=aout em=dynix bfd_gas=yes ;;
    239       i386-*-beospe*)       fmt=coff em=pe bfd_gas=yes ;;
    240       i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
    241       i386-*-bsd*)          fmt=aout em=386bsd ;;
    242       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
    243       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
    244       i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
    245       i386-*-linux*aout* | i386-*-linux*oldld)   fmt=aout em=linux ;;
    246       i386-*-linux*coff*)   fmt=coff em=linux ;;
    247       i386-*-linux-gnu*)    fmt=elf em=linux bfd_gas=yes ;;
    248       x86_64-*-linux-gnu*)  fmt=elf em=linux bfd_gas=yes ;;
    249       i386-*-lynxos*)       fmt=coff em=lynx ;;
     205      arm-*-pe | thumb-*-pe)            fmt=coff em=pe ;;
     206      arm-*-riscix*)                    fmt=aout em=riscix ;;
     207      arm-*-vxworks)                    fmt=coff ;;
     208
     209      avr-*-*)                          fmt=elf ;;
     210
     211      cris-*-*)                         fmt=multi bfd_gas=yes ;;
     212
     213      d10v-*-*)                         fmt=elf ;;
     214      d30v-*-*)                         fmt=elf ;;
     215      dlx-*-*)                          fmt=elf ;;
     216
     217      fr30-*-*)                         fmt=elf ;;
     218      frv-*-*)                          fmt=elf ;;
     219
     220      hppa-*-linux*)    case ${cpu} in
     221                            hppa*64*)   fmt=elf em=hppalinux64;;
     222                            hppa*)      fmt=elf em=linux;;
     223                        esac ;;
     224      hppa-*-*elf*)                     fmt=elf em=hppa ;;
     225      hppa-*-lites*)                    fmt=elf em=hppa ;;
     226      hppa-*-netbsd*)                   fmt=elf em=nbsd ;;
     227      hppa-*-openbsd*)                  fmt=elf em=hppa ;;
     228      hppa-*-osf*)                      fmt=som em=hppa ;;
     229      hppa-*-rtems*)                    fmt=elf em=hppa ;;
     230      hppa-*-hpux11*)   case ${cpu} in
     231                            hppa*64*)   fmt=elf em=hppa64 ;;
     232                            hppa*)      fmt=som em=hppa ;;
     233                        esac ;;
     234      hppa-*-hpux*)                     fmt=som em=hppa ;;
     235      hppa-*-mpeix*)                    fmt=som em=hppa ;;
     236      hppa-*-bsd*)                      fmt=som em=hppa ;;
     237      hppa-*-hiux*)                     fmt=som em=hppa ;;
     238
     239      h8300-*-rtems*)                   fmt=coff ;;
     240      h8300-*-coff)                     fmt=coff ;;
     241      h8300-*-elf)                      fmt=elf ;;
     242      h8500-*-rtems*)                   fmt=coff ;;
     243      h8500-*-coff)                     fmt=coff ;;
     244
     245      i370-*-elf* | i370-*-linux*)      fmt=elf ;;
     246      i386-ibm-aix*)                    fmt=coff em=i386aix ;;
     247      i386-sequent-bsd*)                fmt=aout em=dynix ;;
     248      i386-*-beospe*)                   fmt=coff em=pe ;;
     249      i386-*-beos*)                     fmt=elf ;;
     250      i386-*-coff)                      fmt=coff ;;
     251      i386-*-elf)                       fmt=elf ;;
     252      i386-*-kaos*)                     fmt=elf ;;
     253      i386-*-bsd*)                      fmt=aout em=386bsd ;;
     254      i386-*-netbsd0.8)                 fmt=aout em=386bsd ;;
     255      i386-*-netbsdpe*)                 fmt=coff em=pe ;;
     256      i386-*-netbsdelf*)                fmt=elf em=nbsd ;;
     257      i386-*-*n*bsd*)   case ${cpu} in
     258                            x86_64)     fmt=elf em=nbsd ;;
     259                            *)          fmt=aout em=nbsd ;;
     260                        esac ;;
     261      i386-*-linux*aout*)               fmt=aout em=linux ;;
     262      i386-*-linux*oldld)               fmt=aout em=linux ;;
     263      i386-*-linux*coff*)               fmt=coff em=linux ;;
     264      i386-*-linux-gnu*)                fmt=elf em=linux ;;
     265      x86_64-*-linux-gnu*)              fmt=elf em=linux ;;
     266      i386-*-lynxos*)                   fmt=coff em=lynx ;;
    250267changequote(,)dnl
    251       i386-*-sysv[45]* | i386-*-solaris* | i386-*-elf)
    252                             fmt=elf bfd_gas=yes ;;
    253       i386-*-freebsdaout* | i386-*-freebsd[12].* | i386-*-freebsd[12])
    254                             fmt=aout em=386bsd ;;
     268      i386-*-sysv[45]*)                 fmt=elf ;;
     269      i386-*-solaris*)                  fmt=elf ;;
     270      i386-*-freebsdaout*)              fmt=aout em=386bsd ;;
     271      i386-*-freebsd[12].*)             fmt=aout em=386bsd ;;
     272      i386-*-freebsd[12])               fmt=aout em=386bsd ;;
    255273changequote([,])dnl
    256       i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
    257                           fmt=coff ;;
    258       i386-*-sco3.2v5*)      fmt=elf
    259                             if test ${this_target} = $target; then
    260                                 AC_DEFINE(SCO_ELF, 1,
    261                                     [Define if defaulting to ELF on SCO 5.])
    262                             fi
    263                             ;;
    264       i386-*-sco3.2*)       fmt=coff ;;
    265       i386-*-vsta)          fmt=aout ;;
    266       i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
    267                             fmt=coff em=go32 bfd_gas=yes
    268                             AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
    269                             ;;
    270       i386-*-rtemself*)     fmt=elf ;;
    271       i386-*-rtems*)        fmt=coff ;;
    272       i386-*-gnu*)          fmt=elf ;;
    273       i386-*-mach*)
    274                             fmt=aout em=mach bfd_gas=yes ;;
    275       i386-*-msdos*)        fmt=aout ;;
    276       i386-*-moss*)         fmt=elf ;;
    277       i386-*-pe)            fmt=coff em=pe bfd_gas=yes ;;
    278       i386-*-cygwin*)       fmt=coff em=pe bfd_gas=yes ;;
    279       i386-*-interix*)      fmt=coff em=interix bfd_gas=yes ;;
    280       i386-*-mingw32*)      fmt=coff em=pe bfd_gas=yes ;;
    281       i386-*-*nt*)          fmt=coff em=pe bfd_gas=yes ;;
    282       i386-*-vxworks*)      fmt=aout ;;
    283       i386-*-chaos)         fmt=elf ;;
    284       i860-stardent-sysv4* | i860-stardent-elf*)
    285                             fmt=elf bfd_gas=yes endian=little
    286                             AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress) ;;
    287       i960-*-bout)          fmt=bout ;;
    288       i960-*-coff)          fmt=coff em=ic960 ;;
    289       i960-*-rtems*)        fmt=coff em=ic960 ;;
    290       i960-*-nindy*)        fmt=bout ;;
    291       i960-*-vxworks4*)     fmt=bout ;;
    292       i960-*-vxworks5.0)    fmt=bout ;;
    293       i960-*-vxworks5.*)    fmt=coff em=ic960 ;;
    294       i960-*-vxworks*)      fmt=bout ;;
    295       i960-*-elf*)          fmt=elf ;;
    296 
    297       ia64-*-elf*)          fmt=elf ;;
    298       ia64-*-linux-gnu*)    fmt=elf em=linux ;;
    299       ia64-*-hpux*)         fmt=elf em=hpux ;;
    300 
    301       m32r-*-*)             fmt=elf bfd_gas=yes ;;
    302 
    303       m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)fmt=elf bfd_gas=yes ;;
    304 
    305       m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
    306                             fmt=aout em=sun3 ;;
    307       m68k-motorola-sysv*)  fmt=coff em=delta ;;
    308       m68k-bull-sysv3*)     fmt=coff em=dpx2 ;;
    309       m68k-apollo-*)        fmt=coff em=apollo ;;
    310       m68k-*-sysv4*) # must be before -sysv*
    311                             fmt=elf em=svr4 ;;
    312       m68k-*-elf*)          fmt=elf ;;
    313       m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
    314                             fmt=coff ;;
    315       m68k-*-hpux*)         fmt=hp300 em=hp300 ;;
    316       m68k-*-linux*aout*)   fmt=aout em=linux ;;
    317       m68k-*-linux-gnu*)    fmt=elf em=linux ;;
    318       m68k-*-gnu*)          fmt=elf ;;
    319       m68k-*-lynxos*)       fmt=coff em=lynx ;;
    320       m68k-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes ;;
    321       m68k-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes ;;
    322       m68k-apple-aux*)      fmt=coff em=aux ;;
    323       m68k-*-psos*)         fmt=elf em=psos;;
    324 
    325       m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
    326       m88k-*-coff*)         fmt=coff ;;
    327 
    328       mcore-*-elf)          fmt=elf bfd_gas=yes ;;
    329       mcore-*-pe)           fmt=coff em=pe bfd_gas=yes ;;
     274      i386-*-sysv*)                     fmt=coff ;;
     275      i386-*-sco3.2v5*coff)             fmt=coff ;;
     276      i386-*-isc*)                      fmt=coff ;;
     277      i386-*-sco3.2v5*)                 fmt=elf
     278          if test ${this_target} = $target; then
     279            AC_DEFINE(SCO_ELF, 1, [Define if defaulting to ELF on SCO 5.])
     280          fi ;;
     281      i386-*-sco3.2*)                   fmt=coff ;;
     282      i386-*-vsta)                      fmt=aout ;;
     283      i386-*-msdosdjgpp* \
     284      | i386-*-go32* \
     285      | i386-go32-rtems*)               fmt=coff em=go32
     286            AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?]) ;;
     287      i386-*-rtemself*)                 fmt=elf ;;
     288      i386-*-rtemscoff*)                fmt=coff ;;
     289      i386-*-rtems*)                    fmt=elf ;;
     290      i386-*-gnu*)                      fmt=elf ;;
     291      i386-*-mach*)                     fmt=aout em=mach ;;
     292      i386-*-msdos*)                    fmt=aout ;;
     293      i386-*-moss*)                     fmt=elf ;;
     294      i386-*-pe)                        fmt=coff em=pe ;;
     295      i386-*-cygwin*)                   fmt=coff em=pe ;;
     296      i386-*-interix*)                  fmt=coff em=interix ;;
     297      i386-*-mingw32*)                  fmt=coff em=pe ;;
     298      i386-*-nto-qnx*)                  fmt=elf ;;
     299      i386-*-*nt*)                      fmt=coff em=pe ;;
     300      i386-*-vxworks*)                  fmt=aout ;;
     301      i386-*-chaos)                     fmt=elf ;;
     302
     303      i860-*-*)                         fmt=elf endian=little
     304                AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress) ;;
     305      i960-*-bout)                      fmt=bout ;;
     306      i960-*-coff)                      fmt=coff em=ic960 ;;
     307      i960-*-rtems*)                    fmt=coff em=ic960 ;;
     308      i960-*-nindy*)                    fmt=bout ;;
     309      i960-*-vxworks5.0)                fmt=bout ;;
     310      i960-*-vxworks5.*)                fmt=coff em=ic960 ;;
     311      i960-*-vxworks*)                  fmt=bout ;;
     312      i960-*-elf*)                      fmt=elf ;;
     313
     314      ia64-*-elf*)                      fmt=elf ;;
     315      ia64-*-aix*)                      fmt=elf em=ia64aix ;;
     316      ia64-*-linux-gnu*)                fmt=elf em=linux ;;
     317      ia64-*-hpux*)                     fmt=elf em=hpux ;;
     318      ia64-*-netbsd*)                   fmt=elf em=nbsd ;;
     319
     320      ip2k-*-*)                         fmt=elf ;;
     321
     322      iq2000-*-elf)                     fmt=elf bfd_gas=yes ;;
     323
     324      m32r-*-*)                         fmt=elf ;;
     325
     326      m68hc11-*-* | m6811-*-*)          fmt=elf ;;
     327      m68hc12-*-* | m6812-*-*)          fmt=elf ;;
     328
     329      m68k-*-vxworks*)                  fmt=aout em=sun3 ;;
     330      m68k-ericsson-ose)                fmt=aout em=sun3 ;;
     331      m68k-*-sunos*)                    fmt=aout em=sun3 ;;
     332      m68k-motorola-sysv*)              fmt=coff em=delta ;;
     333      m68k-bull-sysv3*)                 fmt=coff em=dpx2 ;;
     334      m68k-apollo-*)                    fmt=coff em=apollo ;;
     335      m68k-*-elf*)                      fmt=elf ;;
     336      m68k-*-sysv4*)                    fmt=elf em=svr4 ;;
     337      m68k-*-sysv*)                     fmt=coff ;;
     338      m68k-*-coff | m68k-*-rtemscoff*)  fmt=coff ;;
     339      m68k-*-rtems*)                    fmt=elf ;;
     340      m68k-*-hpux*)                     fmt=hp300 em=hp300 ;;
     341      m68k-*-linux*aout*)               fmt=aout em=linux ;;
     342      m68k-*-linux-gnu*)                fmt=elf em=linux ;;
     343      m68k-*-gnu*)                      fmt=elf ;;
     344      m68k-*-lynxos*)                   fmt=coff em=lynx ;;
     345      m68k-*-netbsdelf*)                fmt=elf em=nbsd ;;
     346      m68k-*-netbsd*)                   fmt=aout em=nbsd bfd_gas=yes ;;
     347      m68k-*-openbsd*)                  fmt=aout em=nbsd bfd_gas=yes ;;
     348      m68k-apple-aux*)                  fmt=coff em=aux ;;
     349      m68k-*-psos*)                     fmt=elf em=psos;;
     350
     351      m88k-motorola-sysv3*)             fmt=coff em=delt88 ;;
     352      m88k-*-coff*)                     fmt=coff ;;
     353
     354      mcore-*-elf)                      fmt=elf ;;
     355      mcore-*-pe)                       fmt=coff em=pe bfd_gas=yes ;;
    330356
    331357      # don't change em like *-*-bsd does
    332       mips-dec-netbsd*)     fmt=elf endian=little ;;
    333       mips-dec-openbsd*)    fmt=elf endian=little ;;
    334       mips-dec-bsd*)        fmt=aout endian=little ;;
    335       mips-sony-bsd*)       fmt=ecoff ;;
    336       mips-*-bsd*)          AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
    337       mips-*-ultrix*)       fmt=ecoff endian=little ;;
    338       mips-*-osf*)          fmt=ecoff endian=little ;;
    339       mips-*-ecoff*)        fmt=ecoff ;;
    340       mips-*-pe*)           fmt=coff endian=little em=pe ;;
    341       mips-*-irix6*)        fmt=elf ;;
    342       mips-*-irix5*)        fmt=elf ;;
    343       mips-*-irix*)         fmt=ecoff ;;
    344       mips-*-lnews*)        fmt=ecoff em=lnews ;;
    345       mips-*-riscos*)       fmt=ecoff ;;
    346       mips-*-linux-gnu*)
    347                             fmt=elf em=tmips
    348                             AC_DEFINE(MIPS_STABS_ELF, 1,
    349                                 [Use ELF stabs for MIPS, not ECOFF stabs])
    350                             ;;
    351       mips-*-sysv4*MP* | mips-*-gnu*)
    352                             fmt=elf em=tmips ;;
    353       mips-*-sysv*)         fmt=ecoff ;;
    354       mips-*-elf* | mips-*-rtems* | mips-*-openbsd*)
    355                             fmt=elf ;;
    356       mips-*-vxworks*)      fmt=elf
    357                             AC_DEFINE(MIPS_STABS_ELF, 1,
    358                                 [Use ELF stabs for MIPS, not ECOFF stabs])
    359                             ;;
    360       mn10200-*-*)          fmt=elf bfd_gas=yes ;;
    361       mn10300-*-*)          fmt=elf bfd_gas=yes ;;
    362       pj*)                  fmt=elf ;;
    363       ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
    364                             fmt=coff em=pe ;;
    365       ppc-*-aix*)           fmt=coff ;;
    366       ppc-*-beos*)          fmt=coff ;;
    367       ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
    368                             fmt=elf ;;
    369       ppc-*-linux-gnu*)     fmt=elf
    370                             case "$endian" in
    371                             big)  ;;
    372                             *)    AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
    373                             esac
    374                             ;;
    375       ppc-*-solaris*)       fmt=elf
    376                             if test ${this_target} = $target; then
    377                                 AC_DEFINE(TARGET_SOLARIS_COMMENT, 1,
    378                                 [Define if default target is PowerPC Solaris.])
    379                             fi
    380                             if test x${endian} = xbig; then
    381                                 AC_MSG_ERROR(Solaris must be configured little endian)
    382                             fi
    383                             ;;
    384       ppc-*-rtems*)         fmt=elf ;;
    385       ppc-*-macos* | ppc-*-mpw*)
    386                             fmt=coff em=macos ;;
    387       ppc-*-netware*)       fmt=elf em=ppcnw ;;
    388       ppc-*-vxworks*)       fmt=elf ;;
    389 
    390       sh-*-linux*)          fmt=elf em=linux ;;
    391       sh-*-elf*)            fmt=elf ;;
    392       sh-*-coff*)           fmt=coff ;;
    393       sh-*-pe*)             fmt=coff em=pe bfd_gas=yes;;
    394       sh-*-rtemself*)       fmt=elf ;;
    395       sh-*-rtems*)          fmt=coff ;;
    396 
    397       ns32k-pc532-mach* | ns32k-pc532-ux*)    fmt=aout em=pc532mach ;;
    398       ns32k-pc532-netbsd* | ns32k-pc532-lites*)  fmt=aout em=nbsd532 ;;
    399       ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
    400 
    401       sparc-*-rtemsaout*)   fmt=aout ;;
    402       sparc-*-rtemself*)    fmt=elf ;;
    403       sparc-*-rtems*)       fmt=elf ;;
    404       sparc-*-sunos4*)      fmt=aout em=sun3 ;;
    405       sparc-*-aout | sparc*-*-vxworks*)
    406                             fmt=aout em=sparcaout ;;
    407       sparc-*-coff)         fmt=coff ;;
    408       sparc-*-linux*aout*)  fmt=aout em=linux ;;
    409       sparc-*-linux-gnu*)   fmt=elf em=linux ;;
    410       sparc-*-lynxos*)      fmt=coff em=lynx ;;
    411       sparc-fujitsu-none)   fmt=aout ;;
    412       sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
    413                             fmt=elf ;;
    414       sparc-*-netbsd*)      em=nbsd bfd_gas=yes
    415                             case ${cpu} in
    416                                 sparc) case ${os} in
    417                                            *elf*) fmt=elf ;;
    418                                            *)     fmt=aout ;;
    419                                        esac ;;
    420                                 sparc64) fmt=elf ;;
    421                             esac
    422                             ;;
    423       sparc-*-openbsd*)     fmt=aout em=nbsd ;;
    424 
    425       strongarm-*-coff)     fmt=coff ;;
    426       strongarm-*-elf)      fmt=elf ;;
    427       xscale-*-coff)     fmt=coff ;;
    428       xscale-*-elf)      fmt=elf ;;
    429 
    430       tic30-*-*aout*)       fmt=aout bfd_gas=yes ;;
    431       tic30-*-*coff*)       fmt=coff bfd_gas=yes ;;
    432       tic54x-*-* | c54x*-*-*)
    433                             fmt=coff bfd_gas=yes need_libm=yes;;
    434       tic80-*-*)            fmt=coff ;;
    435 
    436       v850-*-*)             fmt=elf bfd_gas=yes ;;
    437       v850e-*-*)            fmt=elf bfd_gas=yes ;;
    438       v850ea-*-*)           fmt=elf bfd_gas=yes ;;
    439 
    440       vax-*-bsd* | vax-*-ultrix*)
    441                             fmt=aout ;;
    442       vax-*-vms)            fmt=vms ;;
    443 
    444 
    445       z8k-*-coff | z8k-*-sim)
    446                             fmt=coff ;;
    447 
    448       w65-*-*)              fmt=coff ;;
    449 
    450       *-*-aout | *-*-scout)
    451                             fmt=aout ;;
    452       *-*-freebsd*)         fmt=elf em=freebsd bfd_gas=yes ;;
    453       *-*-nindy*)
    454                             fmt=bout ;;
    455       *-*-bsd*)
    456                             fmt=aout em=sun3 ;;
    457       *-*-generic)          fmt=generic ;;
    458       *-*-xray | *-*-hms)   fmt=coff ;;
    459       *-*-sim)              fmt=coff ;;
    460       *-*-elf | *-*-sysv4* | *-*-solaris*)
    461                             AC_MSG_WARN(GAS support for ${generic_target} is incomplete.)
    462                             fmt=elf dev=yes ;;
    463       *-*-vxworks)          fmt=aout ;;
    464       *-*-netware)          fmt=elf ;;
     358      mips-dec-openbsd*)                fmt=elf endian=little ;;
     359      mips-dec-bsd*)                    fmt=aout endian=little ;;
     360      mips-sony-bsd*)                   fmt=ecoff ;;
     361      mips-*-bsd*)
     362            AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
     363      mips-*-ultrix*)                   fmt=ecoff endian=little ;;
     364      mips-*-osf*)                      fmt=ecoff endian=little ;;
     365      mips-*-ecoff*)                    fmt=ecoff ;;
     366      mips-*-pe*)                       fmt=coff endian=little em=pe ;;
     367      mips-*-irix6*)                    fmt=elf em=irix ;;
     368      mips-*-irix5*)                    fmt=elf em=irix ;;
     369      mips-*-irix*)                     fmt=ecoff em=irix ;;
     370      mips-*-lnews*)                    fmt=ecoff em=lnews ;;
     371      mips-*-riscos*)                   fmt=ecoff ;;
     372      mips*-*-linux*)                   fmt=elf em=tmips ;;
     373      mips-*-sysv4*MP* | mips-*-gnu*)   fmt=elf em=tmips ;;
     374      mips-*-sysv*)                     fmt=ecoff ;;
     375      mips-*-elf* | mips-*-rtems*)      fmt=elf ;;
     376      mips-*-netbsd*)                   fmt=elf ;;
     377      mips-*-openbsd*)                  fmt=elf ;;
     378      mips-*-vxworks*)                  fmt=elf ;;
     379
     380      mmix-*-*)                         fmt=elf ;;
     381      mn10200-*-*)                      fmt=elf ;;
     382      mn10300-*-*)                      fmt=elf ;;
     383      msp430-*-*)                       fmt=elf ;;
     384      openrisc-*-*)                     fmt=elf ;;
     385      or32-*-rtems*)                    fmt=coff ;;
     386      or32-*-coff)                      fmt=coff ;;
     387      or32-*-elf)                       fmt=elf ;;
     388      pj*)                              fmt=elf ;;
     389
     390      ppc-*-pe | ppc-*-cygwin*)         fmt=coff em=pe ;;
     391      ppc-*-winnt*)                     fmt=coff em=pe ;;
     392      ppc-*-aix5*)                      fmt=coff em=aix5 ;;
     393      ppc-*-aix*)                       fmt=coff ;;
     394      ppc-*-beos*)                      fmt=coff ;;
     395      ppc-*-*n*bsd* | ppc-*-elf*)       fmt=elf ;;
     396      ppc-*-eabi* | ppc-*-sysv4*)       fmt=elf ;;
     397      ppc-*-linux-gnu*)                 fmt=elf
     398            case "$endian" in
     399                big)  ;;
     400                *)    AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
     401            esac ;;
     402      ppc-*-solaris*)                   fmt=elf
     403            if test ${this_target} = $target; then
     404                AC_DEFINE(TARGET_SOLARIS_COMMENT, 1,
     405                          [Define if default target is PowerPC Solaris.])
     406            fi
     407            if test x${endian} = xbig; then
     408                AC_MSG_ERROR(Solaris must be configured little endian)
     409            fi ;;
     410      ppc-*-rtems*)                     fmt=elf ;;
     411      ppc-*-macos* | ppc-*-mpw*)        fmt=coff em=macos ;;
     412      ppc-*-netware*)                   fmt=elf em=ppcnw ;;
     413      ppc-**-nto*)                      fmt=elf ;;
     414      ppc-*-vxworks*)                   fmt=elf ;;
     415      ppc-*-windiss*)                   fmt=elf ;;
     416      ppc-*-kaos*)                      fmt=elf ;;
     417
     418      s390x-*-linux-gnu*)               fmt=elf em=linux ;;
     419      s390-*-linux-gnu*)                fmt=elf em=linux ;;
     420
     421      sh*-*-linux*)                     fmt=elf em=linux
     422            case ${cpu} in
     423                sh*eb)  endian=big ;;
     424                *)      endian=little ;;
     425            esac ;;
     426      sh5*-*-netbsd*)                   fmt=elf em=nbsd ;;
     427      sh64*-*-netbsd*)                  fmt=elf em=nbsd ;;
     428      sh*-*-netbsdelf*)                 fmt=elf em=nbsd ;;
     429      sh-*-elf*)                        fmt=elf ;;
     430      sh-*-coff*)                       fmt=coff ;;
     431      sh-*-nto*)                        fmt=elf ;;
     432      sh-*-pe*)                         fmt=coff em=pe bfd_gas=yes endian=little ;;
     433      sh-*-rtemself*)                   fmt=elf ;;
     434      sh-*-rtems*)                      fmt=coff ;;
     435      sh-*-kaos*)                       fmt=elf ;;
     436      shle*-*-kaos*)                    fmt=elf ;;
     437      sh64-*-elf*)                      fmt=elf ;;
     438
     439      ns32k-pc532-mach*)                fmt=aout em=pc532mach ;;
     440      ns32k-pc532-ux*)                  fmt=aout em=pc532mach ;;
     441      ns32k-pc532-lites*)               fmt=aout em=nbsd532 ;;
     442      ns32k-*-*n*bsd*)                  fmt=aout em=nbsd532 ;;
     443
     444      sparc-*-rtemsaout*)               fmt=aout ;;
     445      sparc-*-rtemself*)                fmt=elf ;;
     446      sparc-*-rtems*)                   fmt=elf ;;
     447      sparc-*-sunos4*)                  fmt=aout em=sun3 ;;
     448      sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
     449      sparc-*-coff)                     fmt=coff ;;
     450      sparc-*-linux*aout*)              fmt=aout em=linux ;;
     451      sparc-*-linux-gnu*)               fmt=elf em=linux ;;
     452      sparc-*-lynxos*)                  fmt=coff em=lynx ;;
     453      sparc-fujitsu-none)               fmt=aout ;;
     454      sparc-*-elf)                      fmt=elf ;;
     455      sparc-*-sysv4*)                   fmt=elf ;;
     456      sparc-*-solaris*)                 fmt=elf ;;
     457      sparc-*-netbsdelf*)               fmt=elf em=nbsd ;;
     458      sparc-*-*n*bsd*)  case ${cpu} in
     459                            sparc64)    fmt=elf em=nbsd ;;
     460                            *)          fmt=aout em=nbsd ;;
     461                        esac ;;
     462      strongarm-*-coff)                 fmt=coff ;;
     463      strongarm-*-elf)                  fmt=elf ;;
     464      strongarm-*-kaos*)                fmt=elf ;;
     465      xscale-*-coff)                    fmt=coff ;;
     466      xscale-*-elf)                     fmt=elf ;;
     467
     468      tic30-*-*aout*)                   fmt=aout bfd_gas=yes ;;
     469      tic30-*-*coff*)                   fmt=coff bfd_gas=yes ;;
     470      tic4x-*-* | c4x-*-*)              fmt=coff bfd_gas=yes ;;
     471      tic54x-*-* | c54x*-*-*)           fmt=coff bfd_gas=yes need_libm=yes;;
     472      tic80-*-*)                        fmt=coff ;;
     473
     474      v850-*-*)                         fmt=elf ;;
     475      v850e-*-*)                        fmt=elf ;;
     476      v850ea-*-*)                       fmt=elf ;;
     477
     478      vax-*-netbsdelf*)                 fmt=elf em=nbsd ;;
     479      vax-*-netbsd*)                    fmt=aout em=nbsd ;;
     480      vax-*-bsd* | vax-*-ultrix*)       fmt=aout ;;
     481      vax-*-vms)                        fmt=vms ;;
     482
     483      w65-*-*)                          fmt=coff ;;
     484
     485      xstormy16-*-*)                    fmt=elf ;;
     486
     487      xtensa-*-*)                       fmt=elf ;;
     488
     489      z8k-*-coff | z8k-*-sim)           fmt=coff ;;
     490
     491      *-*-aout | *-*-scout)             fmt=aout ;;
     492      *-*-freebsd*)                     fmt=elf em=freebsd ;;
     493      *-*-nindy*)                       fmt=bout ;;
     494      *-*-bsd*)                         fmt=aout em=sun3 ;;
     495      *-*-generic)                      fmt=generic ;;
     496      *-*-xray | *-*-hms)               fmt=coff ;;
     497      *-*-sim)                          fmt=coff ;;
     498      *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
     499      *-*-aros*)                                fmt=elf em=linux bfd_gas=yes ;;
     500      *-*-vxworks)                      fmt=aout ;;
     501      *-*-netware)                      fmt=elf ;;
    465502    esac
    466503
     
    479516
    480517    case ${cpu_type}-${fmt} in
    481       alpha*-*) bfd_gas=yes ;;
    482       arm-*)    bfd_gas=yes ;;
    483     # not yet
    484     # i386-aout)        bfd_gas=preferred ;;
    485       ia64*-*)  bfd_gas=yes ;;
    486       mips-*)   bfd_gas=yes ;;
    487       ns32k-*)  bfd_gas=yes ;;
    488       ppc-*)    bfd_gas=yes ;;
    489       sparc-*)  bfd_gas=yes ;;
    490       strongarm-*)      bfd_gas=yes ;;
    491       xscale-*) bfd_gas=yes ;;
    492       *-elf)    bfd_gas=yes ;;
    493       *-ecoff)  bfd_gas=yes ;;
    494       *-som)    bfd_gas=yes ;;
    495     #enable bfd for coff and aout to allow testing if a bfd target is
    496     #the primary target, but not for coff or aout as the primary target
    497       i386-coff)        if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
    498       i386-aout)        if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
    499       *)                ;;
     518        alpha*-* | arm-* | i386-* | ia64*-* | mips-* | ns32k-* \
     519                | pdp11-* | ppc-* | sparc-* | strongarm-* | xscale-* \
     520                | *-elf | *-ecoff | *-som)
     521            bfd_gas=yes ;;
    500522    esac
    501523
    502524# Other random stuff.
     525
     526    case ${cpu_type} in
     527      mips)
     528        # Set mips_cpu to the name of the default CPU.
     529        case ${target_cpu} in
     530          mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
     531            mips_cpu=from-abi
     532            ;;
     533          mipsisa32 | mipsisa32el)
     534            mips_cpu=mips32
     535            ;;
     536          mipsisa32r2 | mipsisa32r2el)
     537            mips_cpu=mips32r2
     538            ;;
     539          mipsisa64 | mipsisa64el)
     540            mips_cpu=mips64
     541            ;;
     542          mipstx39 | mipstx39el)
     543            mips_cpu=r3900
     544            ;;
     545          mips64vr | mips64vrel)
     546            mips_cpu=vr4100
     547            ;;
     548          mipsisa32r2*)
     549changequote(,)dnl
     550            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
     551changequote([,])dnl
     552            ;;
     553          mips64* | mipsisa64* | mipsisa32*)
     554changequote(,)dnl
     555            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
     556changequote([,])dnl
     557            ;;
     558          *)
     559            AC_ERROR($target_cpu isn't a supported MIPS CPU name)
     560            ;;
     561        esac
     562        # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
     563        # binaries.  It's a GNU extension that some OSes don't understand.
     564        # The value only matters on ELF targets.
     565        case ${target} in
     566          *-*-irix*)
     567            use_e_mips_abi_o32=0
     568            ;;
     569          *)
     570            use_e_mips_abi_o32=1
     571            ;;
     572        esac
     573        # Decide whether to generate 32-bit or 64-bit code by default.
     574        # Used to resolve -march=from-abi when an embedded ABI is selected.
     575        case ${target} in
     576          mips64*-*-* | mipsisa64*-*-*)
     577            mips_default_64bit=1
     578            ;;
     579          *)
     580            mips_default_64bit=0
     581            ;;
     582        esac
     583        # Decide which ABI to target by default.
     584        case ${target} in
     585          mips64*-linux* | mips-sgi-irix6*)
     586            mips_default_abi=N32_ABI
     587            ;;
     588          mips*-linux*)
     589            mips_default_abi=O32_ABI
     590            ;;
     591          *)
     592            mips_default_abi=NO_ABI
     593            ;;
     594        esac
     595        AC_DEFINE_UNQUOTED(MIPS_CPU_STRING_DEFAULT, "$mips_cpu",
     596                           [Default CPU for MIPS targets. ])
     597        AC_DEFINE_UNQUOTED(USE_E_MIPS_ABI_O32, $use_e_mips_abi_o32,
     598                           [Allow use of E_MIPS_ABI_O32 on MIPS targets. ])
     599        AC_DEFINE_UNQUOTED(MIPS_DEFAULT_64BIT, $mips_default_64bit,
     600                           [Generate 64-bit code by default on MIPS targets. ])
     601        AC_DEFINE_UNQUOTED(MIPS_DEFAULT_ABI, $mips_default_abi,
     602                           [Choose a default ABI for MIPS targets. ])
     603        ;;
     604    esac
    503605
    504606    # Do we need the opcodes library?
     
    524626    # Any other special object files needed ?
    525627    case ${cpu_type} in
    526       fr30 | m32r)
     628      fr30 | ip2k | iq2000 | m32r | openrisc)
    527629        using_cgen=yes
    528630        ;;
    529631
     632      frv)
     633        using_cgen=yes
     634        ;;
    530635      m68k)
    531636        case ${extra_objects} in
     
    552657        ;;
    553658
    554       i386)
     659      i386 | s390 | sparc)
    555660        if test $this_target = $target ; then
    556661          AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
    557662        fi
    558663        ;;
    559       sparc)
    560         if test $this_target = $target ; then
    561           AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
     664
     665      xstormy16)
     666        using_cgen=yes
     667        ;;
     668
     669      xtensa)
     670        echo ${extra_objects} | grep -s "xtensa-relax.o"
     671        if test $? -ne 0 ; then
     672          extra_objects="$extra_objects xtensa-relax.o"
    562673        fi
    563674        ;;
     675
    564676      *)
    565677        ;;
     
    593705    case ${generic_target}-${fmt} in
    594706      mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
    595       mips-*-linux-gnu*-*) case "$endian" in
    596                         big)    emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
    597                         *)      emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
     707      mips*-*-linux*-*) case "$endian" in
     708                        big)    emulation="mipsbelf mipslelf mipself" ;;
     709                        *)      emulation="mipslelf mipsbelf mipself" ;;
    598710                        esac ;;
    599711      mips-*-lnews*-ecoff) ;;
     
    650762case ${target_cpu} in
    651763  vax | tahoe ) atof=${target_cpu} ;;
     764  pdp11)        atof=vax ;;
    652765  *)            atof=ieee ;;
    653766esac
     
    817930yes)
    818931  BFDLIB=../bfd/libbfd.la
    819   ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
     932  BFDVER_H=../bfd/bfdver.h
     933  ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
    820934  ;;
    821935esac
     
    824938AC_SUBST(OPCODES_LIB)
    825939
     940AC_SUBST(BFDVER_H)
    826941AC_SUBST(ALL_OBJ_DEPS)
    827942
     
    837952AM_PROG_LEX
    838953
    839 ALL_LINGUAS=
     954ALL_LINGUAS="fr tr es"
    840955CY_GNU_GETTEXT
    841956
Note: See TracChangeset for help on using the changeset viewer.