b1c241ba7243d7c88a3fb7f0daf7788a0974d37a
[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 srctrigger=libbfd.c
7 srcname="BFD"
8
9 # per-host:
10
11 case "${host_cpu}" in
12
13 rs6000) my_host=rs6000
14 ;;
15
16 mips)
17 case "${host_vendor}" in
18 dec) my_host=decstation ;;
19 sgi) my_host=irix3 ;;
20 esac
21 ;;
22
23 m88k)
24 case "${host_vendor}" in
25 *)
26 case "${host_os}" in
27 dgux) my_host=dgux ;;
28 esac
29 ;;
30 esac
31 ;;
32
33 m68k)
34 case "${host_vendor}" in
35 cbm)
36 case ${host_os} in
37 amigados) my_host=amigados ;;
38 svr4) my_host=amix ;;
39 esac
40 ;;
41 hp)
42 case "${host_os}" in
43 hpux) my_host=hp9000 ;;
44 bsd) my_host=hp300bsd ;;
45 esac
46 ;;
47 sony) my_host=news ;;
48 sun) my_host=sun3 ;;
49 esac
50 ;;
51
52 i386)
53 case "${host_vendor}" in
54 *)
55 case "${host_os}" in
56 sysv) my_host=i386v ;;
57 mach) my_host=i386mach ;;
58 msdos) my_host=dose ;;
59 esac
60 ;;
61 esac
62 ;;
63
64 sparc)
65 case "${host_os}" in
66 sunos64) my_host=sparc-ll ;;
67 *) my_host=sparc ;;
68 esac
69 ;;
70
71 romp) my_host=rtbsd
72 ;;
73
74 a29k) my_host=ultra3
75 ;;
76
77 tahoe)
78 my_host=tahoe
79 ;;
80
81 vax)
82 case "${host_os}" in
83 ultrix) my_host=vaxult ;;
84 *) my_host=vaxbsd ;;
85 esac
86 ;;
87 esac
88
89 # Set up to make a link between the host's include file and "sysdep.h".
90 files="hosts/h-${my_host}.h"
91 links="sysdep.h"
92
93 if [ ! -f ${files} ] ; then
94 if [ -n "${my_host}" ] ; then
95 echo '***' No file ${files}
96 fi
97 echo '***' ${srcname} does not support host ${host}
98 exit 1
99 fi
100
101 host_makefile_frag=
102 if [ -f config/mh-${my_host} ] ; then
103 host_makefile_frag=config/mh-${my_host}
104 fi
105
106 # per-target:
107
108 case "${target_vendor}" in
109 aout | coff | bout | elf) bfd_target=${target_cpu}-${target_vendor} ;;
110 sony) bfd_target=news ;;
111 intel) bfd_target=${target_cpu}-coff ;;
112 cbm) bfd_target=${target_cpu}-elf ;;
113
114 ibm) my_host=rs6000
115 case "${target_cpu}" in
116 rs6000) bfd_target=rs6000 ;;
117 esac
118 ;;
119
120 amd)
121 case "${target_os}" in
122 ebmon) bfd_target=a29k-coff ;;
123 *) bfd_target=a29k-aout ;;
124 esac
125 ;;
126
127 hitachi)
128 case "${target_cpu}" in
129 h8300) bfd_target=h8300-ieee ;;
130 *) echo "bad hitachi cpu" ;;
131 esac
132 ;;
133
134
135 wrs)
136 case "${target_cpu}" in
137 i960) bfd_target=i960-bout ;;
138 m68k) bfd_target=m68k-aout ;;
139 esac
140 ;;
141 sun)
142 case "${target_cpu}" in
143 m68k) bfd_target=m68k-aout ;;
144 sparc) bfd_target=sparc-aout ;;
145 esac
146 ;;
147 dec)
148 case "${target_cpu}" in
149 mips) bfd_target=decstation ;;
150 vax) bfd_target=vax ;;
151 esac
152 ;;
153 hp)
154 case "${target_cpu}" in
155 m68k)
156 case "${target_os}" in
157 hpux) bfd_target=hp9000 ;;
158 bsd) bfd_target=hp300bsd ;;
159 esac
160 ;;
161 esac
162 ;;
163 sgi)
164 case "${target_cpu}" in
165 mips)
166 bfd_target=irix3 ;;
167 esac
168 ;;
169 none|nyu|sco)
170 case "${target_cpu}" in
171 i386) bfd_target=i386_coff ;;
172 a29k) case "${target_os}" in
173 aout) bfd_target=a29k-aout ;;
174 coff) bfd_target=a29k-coff ;;
175 sym1) bfd_target=a29k-coff ;;
176 esac
177 ;;
178 tahoe | vax) bfd_target=${target_cpu} ;;
179 esac
180 ;;
181 *)
182 case "${target_cpu}" in
183 tahoe | vax) bfd_target=${target_cpu} ;;
184 esac
185 ;;
186 esac
187
188 if [ ! -f config/mt-${bfd_target} ] ; then
189 if [ -n "${bfd_target}" ] ; then
190 echo '***' No file config/mt-${bfd_target}
191 fi
192 echo '***' BFD does not support target ${target}
193 exit 1
194 fi
195 target_makefile_frag=config/mt-${bfd_target}
196
197 # We don't do any links based on the target system, just very minor makefile
198 # config.
This page took 0.032914 seconds and 3 git commands to generate.