bd95af30e764be57f5512d312779b085a01a03b0
[deliverable/binutils-gdb.git] / ld / configure.in
1 # This file is a shell script fragment that supplies the information
2 # necessary to tailor a template configure script into the configure
3 # script appropriate for this directory. For more information, check
4 # any existing configure script.
5
6 srctrigger=ldmain.c
7 srcname="linker"
8 target_dependent=true
9
10 # per-host:
11
12 case "${host_cpu}" in
13
14 rs6000) my_host=rs6000
15 ;;
16
17 hppa*)
18 case "${host_vendor}" in
19 hp)
20 case "${host_os}" in
21 hpux) my_host=hppahpux ;;
22 bsd) my_host=hppabsd ;;
23 esac
24 ;;
25 esac
26 ;;
27
28 mips)
29 case "${host_vendor}" in
30 dec) my_host=decstation ;;
31 sgi) my_host=irix3 ;;
32 esac
33 ;;
34 m88k)
35 case "${host_vendor}" in
36 motorola)
37 my_host=delta88 ;;
38 *)
39 case "${host_os}" in
40 dgux) my_host=dgux ;;
41 esac
42 ;;
43 esac
44 ;;
45
46 m68*)
47 case "${host_vendor}" in
48 cbm)
49 case ${host_os} in
50 amigados) my_host=amigados ;;
51 svr4) my_host=amix ;;
52 esac
53 ;;
54 hp)
55 case "${host_os}" in
56 hpux) my_host=hp9000 ;;
57 bsd) my_host=hp300bsd ;;
58 esac
59 ;;
60 apollo*)
61 case "${host_os}" in
62 sysv*) my_host=apollov68 ;;
63 bsd*) my_host=apollo68;;
64 esac
65 ;;
66 sony) my_host=news ;;
67 sun) my_host=sun3 ;;
68 esac
69 ;;
70
71 i386)
72 case "${host_vendor}" in
73 *)
74 case "${host_os}" in
75 go32) my_host=go32 ;;
76 sysv) my_host=i386v ;;
77 mach) my_host=i386mach ;;
78 bsd) my_host=i386-aout ;;
79 msdos) my_host=dose ;;
80 esac
81 ;;
82 esac
83 ;;
84
85 sparc)
86 case "${host_os}" in
87 sunos64) my_host=sparc-ll ;;
88 *) my_host=sparc ;;
89 esac
90 ;;
91
92 romp) my_host=rtbsd
93 ;;
94
95 a29k) my_host=ultra3
96 ;;
97
98 tahoe)
99 my_host=tahoe
100 ;;
101
102 vax)
103 case "${host_os}" in
104 ultrix) my_host=vaxult ;;
105 *) my_host=vaxbsd ;;
106 esac
107 ;;
108 esac
109
110 # Set up to make a link between the host's include file and "sysdep.h".
111 files="../bfd/hosts/${my_host}.h"
112 links="sysdep.h"
113
114 if [ ! -f ${srcdir}/${files} ] ; then
115 if [ -n "${my_host}" ] ; then
116 echo '***' No file ${srcdir}/${files} 1>&2
117 fi
118 echo '***' ${srcname} does not support host ${host} 1>&2
119 exit 1
120 fi
121 host_makefile_frag=
122 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
123 host_makefile_frag=config/${my_host}.mh
124 fi
125
126 # per-target:
127
128 case ${target_vendor} in
129 aout | coff) my_target=${target_cpu}-${target_vendor} ;;
130 sun)
131 case ${target_cpu} in
132 sparc) my_target=sun4 ;;
133 m68k) my_target=sun3 ;;
134 esac
135 ;;
136 wrs)
137 case ${target_cpu} in
138 i960) my_target=vxworks960 ;;
139 m68k) my_target=vxworks68;;
140 m680[01234]0) my_target=vxworks68;;
141 m683?2) my_target=vxworks68;;
142 sparc) my_target=vxsparc;;
143 esac
144 ;;
145 ericsson) my_target=ose68 ;;
146 tandem) my_target=st2000 ;;
147 *)
148 case ${target_cpu} in
149 i386) my_target=go32 ;;
150 m88k) my_target=m88k-bcs ;;
151 a29k) case ${target_os} in
152 udi) my_target=sa29200 ;;
153 ebmon) my_target=ebmon29k ;;
154 *) my_target=coff-a29k ;;
155 esac
156 ;;
157 h8300) case ${target_os} in
158 hms) my_target=coff-h8300 ;;
159 xray) my_target=ieee-h8300 ;;
160 esac
161 ;;
162 m68*)
163 case ${target_vendor} in
164 sony) my_target=news ;;
165 hp) my_target=hp300bsd ;;
166 *)
167 case "${target_os}" in
168 aout) my_target=m68k-aout ;;
169 coff) my_target=m68k-coff ;;
170 *) echo "Unknown m68k target vendor:" ${target_vendor} 1>&2
171 exit 1
172 ;;
173 esac
174 ;;
175 esac
176 ;;
177 esac
178 ;;
179 esac
180
181 target_makefile_frag=config/${my_target}.mt
This page took 0.034087 seconds and 4 git commands to generate.