]> Git Repo - binutils.git/blob - bfd/configure.in
Checkpoint. Linker appears to work.
[binutils.git] / bfd / configure.in
1 # This file is a shell script that supplies the information necessary
2 # to tailor a template configure script into the configure script
3 # appropriate for this directory.  For more information, check any
4 # existing configure script.
5
6 configdirs="doc"
7 srctrigger=libbfd.c
8 srcname="BFD"
9 target_dependent=true
10
11 # per-host:
12
13 . ${srcdir}/configure.host
14
15 # Set up to make a link between the host's include file and "sysdep.h".
16 files="hosts/${my_host}.h"
17 links="sysdep.h"
18
19 if [ ! -f ${srcdir}/${files} ] ; then
20         files=../bfd/hosts/std-host.h
21         echo "[${srcname} has no specific support for host ${host} -- using std-host]"
22 fi
23
24 host_makefile_frag=
25 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
26         host_makefile_frag=config/${my_host}.mh
27 fi
28
29 # per-target:
30
31 # WHEN ADDING ENTRIES TO THIS MATRIX:
32 #  Make sure that the left side always has two dashes.  Otherwise you
33 #  can get spurious matches.  Even for unambiguous cases, do this as a
34 #  convention, else the table becomes a real mess to understand and maintain.
35
36 case "${target}" in
37   a29k-*-ebmon)         bfd_target=a29k-coff ;;
38   a29k-*-udi)           bfd_target=a29k-coff ;;
39   a29k-*-aout)          bfd_target=a29k-aout ;;
40   a29k-*-coff)          bfd_target=a29k-coff ;;
41   a29k-*-sym1)          bfd_target=a29k-coff ;;
42   h8300-*-*)            bfd_target=h8300-coff ;;
43   hppa*-*-bsd)          bfd_target=hppabsd ;;
44   hppa*-*-hpux)         bfd_target=hppahpux ;;
45   i[34]86-*-sysv4*)     bfd_target=i386-elf ;;
46   i[34]86-*-sysv*)      bfd_target=i386-coff ;;
47   i[34]86-*-isc*)       bfd_target=i386-coff ;;
48   i[34]86-*-sco*)       bfd_target=i386-sco ;;
49   i[34]86-*-bsd*)       bfd_target=i386-bsd ;;
50   i[34]86-*-aix*)       bfd_target=i386-coff ;;
51   i[34]86-none-*)       bfd_target=i386-coff ;;
52   i960-*-vxworks)       bfd_target=i960-bout ;;
53   i960-*-aout)          bfd_target=i960-bout ;;
54   i960-*-bout)          bfd_target=i960-bout ;;
55   m68*-hp-bsd)          bfd_target=hp300bsd ;;
56   m68*-*-aout)          bfd_target=m68k-aout ;;
57   m68*-*-coff)          bfd_target=m68k-coff ;;
58   m68*-*-hpux)          bfd_target=hp300 ;;
59   m68*-*-os68k)         bfd_target=m68k-aout ;;
60   m68*-*-sunos*)        bfd_target=m68k-aout ;;
61   m68*-*-vxworks*)      bfd_target=m68k-aout ;;
62   m68*-ericsson-*)      bfd_target=m68k-aout ;;
63   m68*-netx-*)          bfd_target=m68k-aout ;;
64   m88k-*-*)             bfd_target=m88k-coff ;;
65   mips-big-*)           bfd_target=irix3 ;;
66   mips-dec-*)           bfd_target=decstation ;;
67   mips-sgi-*)           bfd_target=irix3 ;;
68   rs6000-*-*)           bfd_target=rs6000 ;;
69   sparc-*-solaris2*)    bfd_target=sparc-elf ;;
70   sparc-*-sysv4*)       bfd_target=sparc-elf ;;
71   sparc*-*-*)           bfd_target=sparc-aout ;;
72   tahoe-*-*)            bfd_target=tahoe ;;
73   vax-*-*)              bfd_target=vax ;;
74   we32k-*-*)            bfd_target=we32k ;;
75   z8k*-*-*)             bfd_target=z8k-coff ;;
76
77   *-*-aout)             bfd_target=${target_cpu}-aout ;;
78   *-*-bsd)              bfd_target=${target_cpu}-aout ;;
79   *-*-sysv4*)           bfd_target=${target_cpu}-elf ;;
80   *-*-solaris2*)        bfd_target=${target_cpu}-elf ;;
81   *-*-go32)             bfd_target=${target_cpu}-aout ;;
82   *-*-linux*)           bfd_target=${target_cpu}-linux ;;
83   *-*-sysv*)            bfd_target=${target_cpu}-coff ;;
84
85   *-adobe-*)            bfd_target=adobe ;;
86   *-sony-*)             bfd_target=news ;;
87   *-intel-*)            bfd_target=${target_cpu}-coff ;;
88   *-stratus-*)          bfd_target=${target_cpu}-elf ;;
89   *-cbm-*)              bfd_target=${target_cpu}-elf ;;
90   *-ncr-*)              bfd_target=${target_cpu}-elf ;;
91   *-tandem-*)           bfd_target=st2000 ;;
92 esac
93
94 if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
95         if [ -n "${bfd_target}" ] ; then
96                 echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2
97         fi
98         echo '***' BFD does not support target ${target} 1>&2
99         echo '***' Look in bfd/configure.in for supported targets 1>&2
100         exit 1
101 fi
102 target_makefile_frag=config/${bfd_target}.mt
103
104 # We don't do any links based on the target system, just very minor makefile
105 # config.
This page took 0.029105 seconds and 4 git commands to generate.