Linker now works for go32; other changes keep it from breaking the other
[deliverable/binutils-gdb.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 case "${host}" in
14 # WHEN ADDING ENTRIES TO THIS MATRIX:
15 # Make sure that the left side always has two dashes. Otherwise you
16 # can get spurious matches. Even for unambiguous cases, do this as a
17 # convention, else the table becomes a real mess to understand and maintain.
18 #
19 # Note that these entries cannot be fully alphabetical. Don't try.
20 # The order of matching is critical when multiple lines could match.
21
22 a29k-*-*) my_host=ultra3 ;;
23
24 hppa*-hp-hpux) my_host=hppahpux ;;
25 hppa*-hp-bsd) my_host=hppabsd ;;
26
27 i[34]86-*-bsd) my_host=i386bsd ;;
28 i[34]86-ncr*-sysv4*) my_host=ncr3000 ;;
29 i[34]86-*-go32) my_host=go32 ;;
30 i[34]86-*-sysv4*) my_host=i386v4 ;;
31 i[34]86-*-sysv*) my_host=i386v ;;
32 i[34]86-*-solaris*) my_host=i386v ;;
33 i[34]86-*-sco*) my_host=i386v ;;
34 i[34]86-*-mach*) my_host=i386mach ;;
35 i[34]86-*-msdos*) my_host=dose ;;
36 i[34]86-*-linux) my_host=i386linux ;;
37
38 i860-*-*) my_host=stratus ;;
39
40 mips-dec-*) my_host=decstation ;;
41 mips-sgi-irix3) my_host=irix3 ;;
42 mips-sgi-irix4) my_host=irix4 ;;
43
44 m68*-cbm-amigados) my_host=amigados ;;
45 m68*-cbm-sysv4*) my_host=amix ;;
46 m68*-hp-hpux) my_host=hp300 ;;
47 m68*-hp-bsd) my_host=hp300bsd ;;
48 m68*-sony-*) my_host=news ;;
49 m68*-sun-*) my_host=sun3 ;;
50 m68*-apollo*-sysv*) my_host=apollov68 ;;
51 m68*-apollo*-bsd*) my_host=apollo68 ;;
52
53 m88k-motorola-*) my_host=delta88 ;;
54 m88k-harris-*) my_host=harris ;;
55 m88k-*-dgux) my_host=dgux ;;
56
57 romp-*-*) my_host=rtbsd ;;
58
59 rs6000-*-*) my_host=rs6000 ;;
60
61 sparc-*-sunos64) my_host=sparc-ll ;;
62 sparc-*-sysv4*) my_host=sysv4 ;;
63 sparc-*-solaris2*) my_host=solaris2 ;;
64 sparc-*-sysv64) my_host=sysv4-ll ;;
65 sparc-*-*) my_host=sparc ;;
66
67 tahoe-*-*) my_host=tahoe ;;
68
69 vax-*-ultrix*) my_host=vaxult ;;
70 vax-*-*) my_host=vaxbsd ;;
71
72 we32k-*-*) my_host=we32k ;;
73
74 esac
75
76 # Set up to make a link between the host's include file and "sysdep.h".
77 files="hosts/${my_host}.h"
78 links="sysdep.h"
79
80 if [ ! -f ${srcdir}/${files} ] ; then
81 if [ -n "${my_host}" ] ; then
82 echo '***' No file ${srcdir}/${files} 1>&2
83 fi
84 echo '***' ${srcname} does not support host ${host} 1>&2
85 exit 1
86 fi
87
88 host_makefile_frag=
89 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
90 host_makefile_frag=config/${my_host}.mh
91 fi
92
93 # per-target:
94
95 # WHEN ADDING ENTRIES TO THIS MATRIX:
96 # Make sure that the left side always has two dashes. Otherwise you
97 # can get spurious matches. Even for unambiguous cases, do this as a
98 # convention, else the table becomes a real mess to understand and maintain.
99
100 case "${target}" in
101 a29k-amd-ebmon) bfd_target=a29k-coff ;;
102 a29k-amd-udi) bfd_target=a29k-coff ;;
103 a29k-amd-*) bfd_target=a29k-aout ;;
104 a29k-*-aout) bfd_target=a29k-aout ;;
105 a29k-*-coff) bfd_target=a29k-coff ;;
106 a29k-nyu-sym1) bfd_target=a29k-coff ;;
107 h8300-hitachi-*) bfd_target=h8300-coff ;;
108 hppa*-hp-bsd) bfd_target=hppabsd ;;
109 hppa*-hp-hpux) bfd_target=hppahpux ;;
110 i386-sco-*) bfd_target=i386-coff ;;
111 i960-wrs-vxworks) bfd_target=i960-bout ;;
112 i[34]86-*-bsd) bfd_target=i386-bsd ;;
113 i[34]86-*-sysv4*) bfd_target=i386-elf ;;
114 m60[01234]0-hp-bsd) bfd_target=hp300bsd ;;
115 m68*-ericsson-*) bfd_target=m68k-aout ;;
116 m68*-*-aout) bfd_target=m68k-aout ;;
117 m68*-*-coff) bfd_target=m68k-coff ;;
118 m680[01234]0-hp-hpux) bfd_target=hp300 ;;
119 m680[01234]0-netx-*) bfd_target=m68k-aout ;;
120 m680[01234]0-none-os68k) bfd_target=m68k-aout ;;
121 m680[01234]0-sun-*) bfd_target=m68k-aout ;;
122 m680[01234]0-wrs-vxworks) bfd_target=m68k-aout ;;
123 m683?2-hp-bsd) bfd_target=hp300bsd ;;
124 m683?2-hp-hpux) bfd_target=hp300 ;;
125 m683?2-none-os68k) bfd_target=m68k-aout ;;
126 m683?2-netx-*) bfd_target=m68k-aout ;;
127 m683?2-sun-*) bfd_target=m68k-aout ;;
128 m683?2-wrs-*) bfd_target=m68k-aout ;;
129 m68k-hp-bsd) bfd_target=hp300bsd ;;
130 m68k-hp-hpux) bfd_target=hp300 ;;
131 m68k-netx-*) bfd_target=m68k-aout ;;
132 m68k-none-os68k) bfd_target=m68k-aout ;;
133 m68k-sun-*) bfd_target=m68k-aout ;;
134 m68k-wrs-vxworks) bfd_target=m68k-aout ;;
135 m88k-harris-*) bfd_target=m88k-coff ;;
136 m88k-motorola-*) bfd_target=m88k-coff ;;
137 mips-big-*) bfd_target=irix3 ;;
138 mips-dec-*) bfd_target=decstation ;;
139 mips-sgi-*) bfd_target=irix3 ;;
140 rs6000-ibm-*) bfd_target=rs6000 ;;
141 sparc-sun-solaris2*) bfd_target=sparc-elf ;;
142 sparc-sun-sysv4) bfd_target=sparc-elf ;;
143 sparc-sun-*) bfd_target=sparc-aout ;;
144 sparc-wrs-vxworks) bfd_target=sparc-aout ;;
145 sparclite-fujitsu-*) bfd_target=sparc-aout ;;
146 tahoe-*-none) bfd_target=tahoe ;;
147 tahoe-*-*) bfd_target=tahoe ;;
148 vax-dec-*) bfd_target=vax ;;
149 vax-*-none) bfd_target=vax ;;
150 vax-*-*) bfd_target=vax ;;
151 we32k-*-*) bfd_target=we32k ;;
152 z8k*-*-*) bfd_target=z8k-coff ;;
153
154 *-*-aout) bfd_target=${target_cpu}-aout ;;
155 *-*-bsd) bfd_target=${target_cpu}-aout ;;
156 *-*-sysv4*) bfd_target=${target_cpu}-elf ;;
157 *-*-solaris2*) bfd_target=${target_cpu}-elf ;;
158 *-*-go32) bfd_target=${target_cpu}-aout ;;
159 *-*-linux*) bfd_target=${target_cpu}-linux ;;
160 *-*-sysv*) bfd_target=${target_cpu}-coff ;;
161 *-*-scosysv*) bfd_target=${target_cpu}-coff ;;
162
163 i386-none-*) bfd_target=i386-coff ;;
164 *-adobe-*) bfd_target=adobe ;;
165 *-sony-*) bfd_target=news ;;
166 *-intel-*) bfd_target=${target_cpu}-coff ;;
167 *-stratus-*) bfd_target=${target_cpu}-elf ;;
168 *-cbm-*) bfd_target=${target_cpu}-elf ;;
169 *-ncr-*) bfd_target=${target_cpu}-elf ;;
170 *-hitachi-*) echo "bad hitachi cpu" 1>&2 ; exit 1 ;;
171 *-tandem-*) bfd_target=st2000 ;;
172 esac
173
174 if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
175 if [ -n "${bfd_target}" ] ; then
176 echo '***' No file ${srcdir}/config/${bfd_target}.mt 1>&2
177 fi
178 echo '***' BFD does not support target ${target} 1>&2
179 echo '***' Look in bfd/configure.in for supported targets 1>&2
180 exit 1
181 fi
182 target_makefile_frag=config/${bfd_target}.mt
183
184 # We don't do any links based on the target system, just very minor makefile
185 # config.
This page took 0.034453 seconds and 5 git commands to generate.