* libbfd.h, libbfd-in.h (bfd_seek): Make prototype match definition.
[deliverable/binutils-gdb.git] / bfd / configure.in
CommitLineData
21c9f626
RP
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
3b4f1a5d 6configdirs="doc"
21c9f626 7srctrigger=libbfd.c
5b2765bf 8srcname="BFD"
d89b9f99 9target_dependent=true
21c9f626
RP
10
11# per-host:
12
5b2765bf
JG
13case "${host_cpu}" in
14
15rs6000) my_host=rs6000
16 ;;
17
18mips)
19 case "${host_vendor}" in
20 dec) my_host=decstation ;;
5868184b
FF
21 sgi)
22 case "${host_os}" in
23 irix3) my_host=irix3 ;;
24 irix4) my_host=irix4 ;;
25 esac
26 ;;
5b2765bf
JG
27 esac
28 ;;
29
30m88k)
31 case "${host_vendor}" in
01dd1b2b 32 motorola)
56b10d6d
SC
33 my_host=delta88 ;;
34 harris)
35 my_host=harris ;;
5b2765bf
JG
36 *)
37 case "${host_os}" in
38 dgux) my_host=dgux ;;
4dfe09da
RP
39 esac
40 ;;
5b2765bf
JG
41 esac
42 ;;
43
ab37d4f6 44m68k|m680[01234]0)
5b2765bf
JG
45 case "${host_vendor}" in
46 cbm)
47 case ${host_os} in
48 amigados) my_host=amigados ;;
d89b9f99 49 sysv4*) my_host=amix ;;
4dfe09da
RP
50 esac
51 ;;
5b2765bf
JG
52 hp)
53 case "${host_os}" in
54 hpux) my_host=hp9000 ;;
55 bsd) my_host=hp300bsd ;;
4dfe09da
RP
56 esac
57 ;;
5b2765bf
JG
58 sony) my_host=news ;;
59 sun) my_host=sun3 ;;
77c3feee
JG
60 apollo*)
61 case "${host_os}" in
5868184b 62 sysv*) my_host=apollov68 ;;
ab37d4f6 63 bsd*) my_host=apollo68 ;;
77c3feee
JG
64 esac
65 ;;
5b2765bf
JG
66 esac
67 ;;
4dfe09da 68
d89b9f99
JG
69i860) my_host=stratus
70 ;;
71
5b2765bf
JG
72i386)
73 case "${host_vendor}" in
5868184b
FF
74 ncr*)
75 case "${host_os}" in
76 sysv4*) my_host=ncr3000 ;;
77 esac
78 ;;
5b2765bf
JG
79 *)
80 case "${host_os}" in
7b42a5d9 81 go32) my_host=go32 ;;
d89b9f99 82 sysv4*) my_host=i386v4 ;;
588d21ac 83 sysv* | scosysv*) my_host=i386v ;;
56b10d6d
SC
84 mach*) my_host=i386mach ;;
85 msdos*) my_host=dose ;;
f74d9941 86 linux) my_host=i386linux ;;
4dfe09da
RP
87 esac
88 ;;
5b2765bf
JG
89 esac
90 ;;
4dfe09da 91
5b2765bf
JG
92sparc)
93 case "${host_os}" in
52bcb9e3 94 sunos64) my_host=sparc-ll ;;
cf9395e5
JG
95 sysv4) my_host=sysv4 ;;
96 solaris2) my_host=solaris2 ;;
5868184b 97 sysv64) my_host=sysv4-ll ;;
5b2765bf
JG
98 *) my_host=sparc ;;
99 esac
100 ;;
4dfe09da 101
5b2765bf
JG
102romp) my_host=rtbsd
103 ;;
126334ae 104
5b2765bf
JG
105a29k) my_host=ultra3
106 ;;
126334ae 107
5b2765bf
JG
108tahoe)
109 my_host=tahoe
110 ;;
111
112vax)
113 case "${host_os}" in
77c3feee 114 ultrix*) my_host=vaxult ;;
5b2765bf 115 *) my_host=vaxbsd ;;
4dfe09da 116 esac
5b2765bf 117 ;;
e3c01e92
SG
118hppa)
119 case "${host_vendor}" in
120 hp)
121 case "${host_os}" in
122 hpux) my_host=hppahpux ;;
123 bsd) my_host=hppabsd ;;
124 esac
125 ;;
126 esac
127 ;;
5b2765bf 128esac
4dfe09da 129
5b2765bf 130# Set up to make a link between the host's include file and "sysdep.h".
5868184b 131files="hosts/${my_host}.h"
5b2765bf
JG
132links="sysdep.h"
133
d89b9f99 134if [ ! -f ${srcdir}/${files} ] ; then
5b2765bf 135 if [ -n "${my_host}" ] ; then
d89b9f99 136 echo '***' No file ${srcdir}/${files}
5b2765bf
JG
137 fi
138 echo '***' ${srcname} does not support host ${host}
21c9f626
RP
139 exit 1
140fi
141
5b2765bf 142host_makefile_frag=
5868184b
FF
143if [ -f ${srcdir}/config/${my_host}.mh ] ; then
144 host_makefile_frag=config/${my_host}.mh
5b2765bf 145fi
4dfe09da 146
21c9f626
RP
147# per-target:
148
1e730c4b
JG
149case "${target}" in
150
151rs6000-ibm-* ) bfd_target=rs6000 ;;
152
153a29k-amd-ebmon ) bfd_target=a29k-coff ;;
154a29k-amd-udi ) bfd_target=a29k-coff ;;
155a29k-amd-* ) bfd_target=a29k-aout ;;
156
157h8300-hitachi-* ) bfd_target=h8300-coff ;;
158*-hitachi-* ) echo "bad hitachi cpu"; exit 1 ;;
159
160i960-wrs-* ) bfd_target=i960-bout ;;
161m68k-wrs-* ) bfd_target=m68k-aout ;;
cf9395e5 162m680[01234]0-wrs-* ) bfd_target=m68k-aout ;;
1e730c4b
JG
163
164m68k-sun-* ) bfd_target=m68k-aout ;;
165m680[01234]0-sun-* ) bfd_target=m68k-aout ;;
166sparc-sun-sysv4 ) bfd_target=sparc-elf ;;
167sparc-sun-solaris2* ) bfd_target=sparc-elf ;;
168sparc-sun-* ) bfd_target=sparc-aout ;;
169
170mips-dec-* ) bfd_target=decstation ;;
171vax-dec-* ) bfd_target=vax ;;
172
173m68k-hp-hpux ) bfd_target=hp9000 ;;
174m680[01234]0-hp-hpux ) bfd_target=hp9000 ;;
175m68k-hp-bsd ) bfd_target=hp300bsd ;;
176m60[01234]0-hp-bsd ) bfd_target=hp300bsd ;;
177
178mips-sgi-* ) bfd_target=irix3 ;;
179mips-big-* ) bfd_target=irix3 ;;
180
181*-tandem-* ) bfd_target=st2000 ;;
182
183m68k-none-os68k ) bfd_target=m68k-aout ;;
184m680[01234]0-none-os68k ) bfd_target=m68k-aout ;;
185i386-sco-* ) bfd_target=i386-coff ;;
186
187a29k-none-aout ) bfd_target=a29k-aout ;;
188a29k-none-coff ) bfd_target=a29k-coff ;;
189a29k-nyu-sym1 ) bfd_target=a29k-coff ;;
190
191m88k-harris-* ) bfd_target=m88k-coff ;;
192m88k-motorola-* ) bfd_target=m88k-coff ;;
193
194vax-*-* ) bfd_target=vax ;;
195tahoe-*-* ) bfd_target=tahoe ;;
196
e3c01e92
SG
197hppa-hp-hpux ) bfd_target=hppahpux ;;
198hppa-hp-bsd ) bfd_target=hppabsd ;;
199
1e730c4b
JG
200*-*-aout ) bfd_target=${target_cpu}-aout ;;
201*-*-bsd ) bfd_target=${target_cpu}-aout ;;
202*-*-sysv4* ) bfd_target=${target_cpu}-elf ;;
203*-*-solaris2* ) bfd_target=${target_cpu}-elf ;;
204*-*-go32 ) bfd_target=${target_cpu}-aout ;;
f74d9941 205*-*-linux* ) bfd_target=${target_cpu}-linux ;;
1e730c4b
JG
206*-*-sysv* ) bfd_target=${target_cpu}-coff ;;
207*-*-scosysv* ) bfd_target=${target_cpu}-coff ;;
208tahoe-*-none ) bfd_target=${target_cpu} ;;
209vax-*-none ) bfd_target=${target_cpu} ;;
210
211# These are obsolete and should be removed. FIXME. -- gnu
212*-aout-* ) bfd_target=${target_cpu}-aout ;;
213*-bout-* ) bfd_target=${target_cpu}-bout ;;
214*-coff-* ) bfd_target=${target_cpu}-coff ;;
215*-elf-* ) bfd_target=${target_cpu}-elf ;;
216
217i386-none-* ) bfd_target=i386-coff ;;
218*-sony-* ) bfd_target=news ;;
219*-intel-* ) bfd_target=${target_cpu}-coff ;;
220*-stratus-* ) bfd_target=${target_cpu}-elf ;;
221*-cbm-* ) bfd_target=${target_cpu}-elf ;;
222*-ncr-* ) bfd_target=${target_cpu}-elf ;;
56b10d6d 223
4dfe09da
RP
224esac
225
5868184b 226if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
5b2765bf 227 if [ -n "${bfd_target}" ] ; then
5868184b 228 echo '***' No file ${srcdir}/config/${bfd_target}.mt
5b2765bf
JG
229 fi
230 echo '***' BFD does not support target ${target}
d33598ee 231 echo '***' Look in bfd/configure.in for supported targets
21c9f626
RP
232 exit 1
233fi
5868184b 234target_makefile_frag=config/${bfd_target}.mt
4dfe09da 235
5b2765bf
JG
236# We don't do any links based on the target system, just very minor makefile
237# config.
This page took 0.05374 seconds and 4 git commands to generate.