]>
Commit | Line | Data |
---|---|---|
833c46e1 | 1 | #! /bin/sh |
fb589130 | 2 | |
b11fb939 | 3 | # Guess values for system-dependent variables and create Makefiles. |
df586de2 ILT |
4 | # Generated automatically using autoconf version 2.10 |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
b11fb939 | 6 | # |
f2889110 KR |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
b11fb939 | 9 | |
f2889110 | 10 | # Defaults: |
b11fb939 | 11 | ac_help= |
f2889110 KR |
12 | ac_default_prefix=/usr/local |
13 | # Any additions from configure.in: | |
28d3e4a3 | 14 | ac_help="$ac_help |
d7b2038f | 15 | --enable-bfd-assembler use BFD back end for writing object files" |
e7757ad0 KR |
16 | ac_help="$ac_help |
17 | targets alternative target configurations besides the primary" | |
1c9dbb83 ILT |
18 | ac_help="$ac_help |
19 | --enable-shared build shared BFD library" | |
b11fb939 | 20 | |
b11fb939 KR |
21 | # Initialize some variables set by options. |
22 | # The variables have the same names as the options, with | |
23 | # dashes changed to underlines. | |
24 | build=NONE | |
25 | cache_file=./config.cache | |
26 | exec_prefix=NONE | |
27 | host=NONE | |
28 | no_create= | |
29 | nonopt=NONE | |
bf111c9f | 30 | no_recursion= |
b11fb939 | 31 | prefix=NONE |
bf111c9f KR |
32 | program_prefix=NONE |
33 | program_suffix=NONE | |
ba49e48d | 34 | program_transform_name=s,x,x, |
b11fb939 | 35 | silent= |
f2889110 | 36 | site= |
b11fb939 KR |
37 | srcdir= |
38 | target=NONE | |
39 | verbose= | |
40 | x_includes=NONE | |
41 | x_libraries=NONE | |
1c9dbb83 ILT |
42 | bindir='${exec_prefix}/bin' |
43 | sbindir='${exec_prefix}/sbin' | |
44 | libexecdir='${exec_prefix}/libexec' | |
45 | datadir='${prefix}/share' | |
46 | sysconfdir='${prefix}/etc' | |
47 | sharedstatedir='${prefix}/com' | |
48 | localstatedir='${prefix}/var' | |
49 | libdir='${exec_prefix}/lib' | |
50 | includedir='${prefix}/include' | |
51 | oldincludedir='/usr/include' | |
52 | infodir='${prefix}/info' | |
53 | mandir='${prefix}/man' | |
b11fb939 KR |
54 | |
55 | # Initialize some other variables. | |
56 | subdirs= | |
1c9dbb83 | 57 | MFLAGS= MAKEFLAGS= |
b11fb939 KR |
58 | |
59 | ac_prev= | |
60 | for ac_option | |
61 | do | |
62 | ||
63 | # If the previous option needs an argument, assign it. | |
64 | if test -n "$ac_prev"; then | |
65 | eval "$ac_prev=\$ac_option" | |
66 | ac_prev= | |
67 | continue | |
68 | fi | |
69 | ||
70 | case "$ac_option" in | |
71 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
72 | *) ac_optarg= ;; | |
73 | esac | |
74 | ||
bf111c9f | 75 | # Accept the important Cygnus configure options, so we can diagnose typos. |
b11fb939 KR |
76 | |
77 | case "$ac_option" in | |
78 | ||
1c9dbb83 ILT |
79 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
80 | ac_prev=bindir ;; | |
81 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
82 | bindir="$ac_optarg" ;; | |
83 | ||
84 | -build | --build | --buil | --bui | --bu) | |
b11fb939 | 85 | ac_prev=build ;; |
1c9dbb83 | 86 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b11fb939 KR |
87 | build="$ac_optarg" ;; |
88 | ||
89 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
90 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
91 | ac_prev=cache_file ;; | |
92 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
93 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
94 | cache_file="$ac_optarg" ;; | |
95 | ||
1c9dbb83 ILT |
96 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
97 | ac_prev=datadir ;; | |
98 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
99 | | --da=*) | |
100 | datadir="$ac_optarg" ;; | |
101 | ||
b11fb939 KR |
102 | -disable-* | --disable-*) |
103 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
104 | # Reject names that are not valid shell variable names. | |
105 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
ba49e48d | 106 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
b11fb939 KR |
107 | fi |
108 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
109 | eval "enable_${ac_feature}=no" ;; | |
110 | ||
111 | -enable-* | --enable-*) | |
112 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
113 | # Reject names that are not valid shell variable names. | |
114 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
ba49e48d | 115 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
b11fb939 KR |
116 | fi |
117 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
118 | case "$ac_option" in | |
119 | *=*) ;; | |
120 | *) ac_optarg=yes ;; | |
121 | esac | |
122 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
123 | ||
124 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
125 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
126 | | --exec | --exe | --ex) | |
127 | ac_prev=exec_prefix ;; | |
128 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
129 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
130 | | --exec=* | --exe=* | --ex=*) | |
131 | exec_prefix="$ac_optarg" ;; | |
132 | ||
133 | -gas | --gas | --ga | --g) | |
134 | # Obsolete; use --with-gas. | |
135 | with_gas=yes ;; | |
136 | ||
137 | -help | --help | --hel | --he) | |
f1698cb7 KR |
138 | # Omit some internal or obsolete options to make the list less imposing. |
139 | # This message is too long to be a string in the A/UX 3.1 sh. | |
b11fb939 | 140 | cat << EOF |
f1698cb7 KR |
141 | Usage: configure [options] [host] |
142 | Options: [defaults in brackets after descriptions] | |
143 | Configuration: | |
144 | --cache-file=FILE cache test results in FILE | |
145 | --help print this message | |
146 | --no-create do not create output files | |
147 | --quiet, --silent do not print \`checking...' messages | |
148 | --version print the version of autoconf that created configure | |
149 | Directory and file names: | |
150 | --prefix=PREFIX install architecture-independent files in PREFIX | |
151 | [$ac_default_prefix] | |
1c9dbb83 | 152 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
f1698cb7 | 153 | [same as prefix] |
1c9dbb83 ILT |
154 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
155 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
156 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
157 | --datadir=DIR read-only architecture-independent data in DIR | |
158 | [PREFIX/share] | |
159 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
160 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
161 | [PREFIX/com] | |
162 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
163 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
164 | --includedir=DIR C header files in DIR [PREFIX/include] | |
165 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
166 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
167 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
f1698cb7 KR |
168 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
169 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
170 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1c9dbb83 ILT |
171 | --program-transform-name=PROGRAM |
172 | run sed PROGRAM on installed program names | |
173 | EOF | |
174 | cat << EOF | |
f1698cb7 KR |
175 | Host type: |
176 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
177 | --host=HOST configure for HOST [guessed] | |
178 | --target=TARGET configure for TARGET [TARGET=HOST] | |
179 | Features and packages: | |
180 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
181 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
182 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
183 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
184 | --x-includes=DIR X include files are in DIR | |
185 | --x-libraries=DIR X library files are in DIR | |
b11fb939 | 186 | EOF |
1c9dbb83 ILT |
187 | if test -n "$ac_help"; then |
188 | echo "--enable and --with options recognized:$ac_help" | |
189 | fi | |
b11fb939 KR |
190 | exit 0 ;; |
191 | ||
192 | -host | --host | --hos | --ho) | |
193 | ac_prev=host ;; | |
194 | -host=* | --host=* | --hos=* | --ho=*) | |
195 | host="$ac_optarg" ;; | |
196 | ||
1c9dbb83 ILT |
197 | -includedir | --includedir | --includedi | --included | --include \ |
198 | | --includ | --inclu | --incl | --inc) | |
199 | ac_prev=includedir ;; | |
200 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
201 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
202 | includedir="$ac_optarg" ;; | |
203 | ||
204 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
205 | ac_prev=infodir ;; | |
206 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
207 | infodir="$ac_optarg" ;; | |
208 | ||
209 | -libdir | --libdir | --libdi | --libd) | |
210 | ac_prev=libdir ;; | |
211 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
212 | libdir="$ac_optarg" ;; | |
213 | ||
214 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
215 | | --libexe | --libex | --libe) | |
216 | ac_prev=libexecdir ;; | |
217 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
218 | | --libexe=* | --libex=* | --libe=*) | |
219 | libexecdir="$ac_optarg" ;; | |
220 | ||
221 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
222 | | --localstate | --localstat | --localsta | --localst \ | |
223 | | --locals | --local | --loca | --loc | --lo) | |
224 | ac_prev=localstatedir ;; | |
225 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
226 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
227 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
228 | localstatedir="$ac_optarg" ;; | |
229 | ||
230 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
231 | ac_prev=mandir ;; | |
232 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
233 | mandir="$ac_optarg" ;; | |
234 | ||
b11fb939 KR |
235 | -nfp | --nfp | --nf) |
236 | # Obsolete; use --without-fp. | |
237 | with_fp=no ;; | |
238 | ||
239 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
240 | | --no-cr | --no-c) | |
241 | no_create=yes ;; | |
242 | ||
bf111c9f KR |
243 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
244 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
245 | no_recursion=yes ;; | |
b11fb939 | 246 | |
1c9dbb83 ILT |
247 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
248 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
249 | | --oldin | --oldi | --old | --ol | --o) | |
250 | ac_prev=oldincludedir ;; | |
251 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
252 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
253 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
254 | oldincludedir="$ac_optarg" ;; | |
255 | ||
b11fb939 KR |
256 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
257 | ac_prev=prefix ;; | |
258 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
259 | prefix="$ac_optarg" ;; | |
260 | ||
261 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
262 | | --program-pre | --program-pr | --program-p) | |
263 | ac_prev=program_prefix ;; | |
264 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
265 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
266 | program_prefix="$ac_optarg" ;; | |
267 | ||
268 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
269 | | --program-suf | --program-su | --program-s) | |
270 | ac_prev=program_suffix ;; | |
271 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
272 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
273 | program_suffix="$ac_optarg" ;; | |
274 | ||
275 | -program-transform-name | --program-transform-name \ | |
276 | | --program-transform-nam | --program-transform-na \ | |
277 | | --program-transform-n | --program-transform- \ | |
278 | | --program-transform | --program-transfor \ | |
279 | | --program-transfo | --program-transf \ | |
280 | | --program-trans | --program-tran \ | |
281 | | --progr-tra | --program-tr | --program-t) | |
282 | ac_prev=program_transform_name ;; | |
283 | -program-transform-name=* | --program-transform-name=* \ | |
284 | | --program-transform-nam=* | --program-transform-na=* \ | |
285 | | --program-transform-n=* | --program-transform-=* \ | |
286 | | --program-transform=* | --program-transfor=* \ | |
287 | | --program-transfo=* | --program-transf=* \ | |
288 | | --program-trans=* | --program-tran=* \ | |
289 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bf111c9f | 290 | program_transform_name="$ac_optarg" ;; |
b11fb939 KR |
291 | |
292 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
293 | | -silent | --silent | --silen | --sile | --sil) | |
294 | silent=yes ;; | |
295 | ||
1c9dbb83 ILT |
296 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
297 | ac_prev=sbindir ;; | |
298 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
299 | | --sbi=* | --sb=*) | |
300 | sbindir="$ac_optarg" ;; | |
301 | ||
302 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
303 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
304 | | --sharedst | --shareds | --shared | --share | --shar \ | |
305 | | --sha | --sh) | |
306 | ac_prev=sharedstatedir ;; | |
307 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
308 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
309 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
310 | | --sha=* | --sh=*) | |
311 | sharedstatedir="$ac_optarg" ;; | |
312 | ||
f2889110 KR |
313 | -site | --site | --sit) |
314 | ac_prev=site ;; | |
315 | -site=* | --site=* | --sit=*) | |
316 | site="$ac_optarg" ;; | |
317 | ||
b11fb939 KR |
318 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
319 | ac_prev=srcdir ;; | |
320 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
321 | srcdir="$ac_optarg" ;; | |
322 | ||
1c9dbb83 ILT |
323 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
324 | | --syscon | --sysco | --sysc | --sys | --sy) | |
325 | ac_prev=sysconfdir ;; | |
326 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
327 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
328 | sysconfdir="$ac_optarg" ;; | |
329 | ||
b11fb939 KR |
330 | -target | --target | --targe | --targ | --tar | --ta | --t) |
331 | ac_prev=target ;; | |
332 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
333 | target="$ac_optarg" ;; | |
334 | ||
335 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
336 | verbose=yes ;; | |
337 | ||
338 | -version | --version | --versio | --versi | --vers) | |
df586de2 | 339 | echo "configure generated by autoconf version 2.10" |
b11fb939 KR |
340 | exit 0 ;; |
341 | ||
342 | -with-* | --with-*) | |
343 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
344 | # Reject names that are not valid shell variable names. | |
345 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
ba49e48d | 346 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
b11fb939 KR |
347 | fi |
348 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
349 | case "$ac_option" in | |
350 | *=*) ;; | |
351 | *) ac_optarg=yes ;; | |
352 | esac | |
353 | eval "with_${ac_package}='$ac_optarg'" ;; | |
354 | ||
355 | -without-* | --without-*) | |
356 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
357 | # Reject names that are not valid shell variable names. | |
358 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
ba49e48d | 359 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
b11fb939 KR |
360 | fi |
361 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
362 | eval "with_${ac_package}=no" ;; | |
363 | ||
364 | --x) | |
365 | # Obsolete; use --with-x. | |
366 | with_x=yes ;; | |
367 | ||
368 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
369 | | --x-incl | --x-inc | --x-in | --x-i) | |
370 | ac_prev=x_includes ;; | |
371 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
372 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
373 | x_includes="$ac_optarg" ;; | |
374 | ||
375 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
376 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
377 | ac_prev=x_libraries ;; | |
378 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
379 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
380 | x_libraries="$ac_optarg" ;; | |
381 | ||
ba49e48d | 382 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
b11fb939 KR |
383 | ;; |
384 | ||
1c9dbb83 | 385 | *) |
b11fb939 KR |
386 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
387 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
388 | fi | |
389 | if test "x$nonopt" != xNONE; then | |
ba49e48d | 390 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
b11fb939 KR |
391 | fi |
392 | nonopt="$ac_option" | |
393 | ;; | |
394 | ||
395 | esac | |
396 | done | |
397 | ||
398 | if test -n "$ac_prev"; then | |
ba49e48d | 399 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
b11fb939 KR |
400 | fi |
401 | ||
833c46e1 | 402 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
b11fb939 KR |
403 | |
404 | # File descriptor usage: | |
833c46e1 | 405 | # 0 standard input |
b11fb939 KR |
406 | # 1 file creation |
407 | # 2 errors and warnings | |
833c46e1 KR |
408 | # 3 some systems may open it to /dev/tty |
409 | # 4 used on the Kubota Titan | |
410 | # 6 checking for... messages and results | |
b11fb939 KR |
411 | # 5 compiler messages saved in config.log |
412 | if test "$silent" = yes; then | |
833c46e1 | 413 | exec 6>/dev/null |
b11fb939 | 414 | else |
833c46e1 | 415 | exec 6>&1 |
b11fb939 KR |
416 | fi |
417 | exec 5>./config.log | |
418 | ||
419 | echo "\ | |
420 | This file contains any messages produced by compilers while | |
421 | running configure, to aid debugging if configure makes a mistake. | |
422 | " 1>&5 | |
423 | ||
bf111c9f | 424 | # Strip out --no-create and --no-recursion so they do not pile up. |
e23b25ec KR |
425 | # Also quote any args containing shell metacharacters. |
426 | ac_configure_args= | |
427 | for ac_arg | |
428 | do | |
b11fb939 KR |
429 | case "$ac_arg" in |
430 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
431 | | --no-cr | --no-c) ;; | |
bf111c9f KR |
432 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
433 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
e23b25ec KR |
434 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
435 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
436 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
b11fb939 KR |
437 | esac |
438 | done | |
439 | ||
440 | # NLS nuisances. | |
441 | # Only set LANG and LC_ALL to C if already set. | |
442 | # These must not be set unconditionally because not all systems understand | |
443 | # e.g. LANG=C (notably SCO). | |
444 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
445 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
446 | ||
447 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
448 | rm -rf conftest* confdefs.h | |
449 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
450 | echo > confdefs.h | |
451 | ||
452 | # A filename unique to this package, relative to the directory that | |
453 | # configure is in, which we can look for to find out if srcdir is correct. | |
454 | ac_unique_file=as.h | |
455 | ||
456 | # Find the source files, if location was not specified. | |
457 | if test -z "$srcdir"; then | |
458 | ac_srcdir_defaulted=yes | |
459 | # Try the directory containing this script, then its parent. | |
460 | ac_prog=$0 | |
461 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
462 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
463 | srcdir=$ac_confdir | |
464 | if test ! -r $srcdir/$ac_unique_file; then | |
465 | srcdir=.. | |
466 | fi | |
467 | else | |
468 | ac_srcdir_defaulted=no | |
469 | fi | |
470 | if test ! -r $srcdir/$ac_unique_file; then | |
471 | if test "$ac_srcdir_defaulted" = yes; then | |
ba49e48d | 472 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
b11fb939 | 473 | else |
ba49e48d | 474 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
b11fb939 KR |
475 | fi |
476 | fi | |
f2889110 | 477 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
b11fb939 KR |
478 | |
479 | # Prefer explicitly selected file to automatically selected ones. | |
bf111c9f | 480 | if test -z "$CONFIG_SITE"; then |
b11fb939 | 481 | if test "x$prefix" != xNONE; then |
f2889110 | 482 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
b11fb939 | 483 | else |
f2889110 | 484 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
b11fb939 KR |
485 | fi |
486 | fi | |
487 | for ac_site_file in $CONFIG_SITE; do | |
488 | if test -r "$ac_site_file"; then | |
489 | echo "loading site script $ac_site_file" | |
490 | . "$ac_site_file" | |
491 | fi | |
492 | done | |
493 | ||
494 | if test -r "$cache_file"; then | |
495 | echo "loading cache $cache_file" | |
496 | . $cache_file | |
497 | else | |
498 | echo "creating cache $cache_file" | |
499 | > $cache_file | |
500 | fi | |
501 | ||
502 | ac_ext=c | |
503 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
d0352cbb DE |
504 | ac_cpp='$CPP $CPPFLAGS' |
505 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
506 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
b11fb939 | 507 | |
bf111c9f KR |
508 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
509 | # Stardent Vistra SVR4 grep lacks -e, says [email protected]. | |
510 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
511 | ac_n= ac_c=' | |
512 | ' ac_t=' ' | |
513 | else | |
514 | ac_n=-n ac_c= ac_t= | |
515 | fi | |
516 | else | |
517 | ac_n= ac_c='\c' ac_t= | |
518 | fi | |
519 | ||
318b02b6 | 520 | user_bfd_gas= |
b11fb939 | 521 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. |
1c9dbb83 ILT |
522 | if test "${enable_bfd_assembler+set}" = set; then |
523 | enableval="$enable_bfd_assembler" | |
b11fb939 | 524 | case "${enableval}" in |
318b02b6 KR |
525 | yes) need_bfd=yes user_bfd_gas=yes ;; |
526 | no) user_bfd_gas=no ;; | |
ba49e48d | 527 | *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;; |
b11fb939 KR |
528 | esac |
529 | fi | |
e7757ad0 | 530 | # Check whether --enable-targets or --disable-targets was given. |
1c9dbb83 ILT |
531 | if test "${enable_targets+set}" = set; then |
532 | enableval="$enable_targets" | |
e7757ad0 KR |
533 | case "${enableval}" in |
534 | yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
535 | ;; | |
536 | no) enable_targets= ;; | |
537 | *) enable_targets=$enableval ;; | |
538 | esac | |
539 | fi | |
1c9dbb83 ILT |
540 | # Check whether --enable-shared or --disable-shared was given. |
541 | if test "${enable_shared+set}" = set; then | |
542 | enableval="$enable_shared" | |
543 | case "${enableval}" in | |
159e6ef8 | 544 | yes) shared=true shared_bfd=true shared_opcodes=true ;; |
1c9dbb83 | 545 | no) shared=false ;; |
159e6ef8 MM |
546 | *bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;; |
547 | *opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;; | |
548 | *bfd*) shared=true shared_bfd=true ;; | |
549 | *opcodes*) shared=true shared_opcodes=true ;; | |
550 | *) shared=false ;; | |
1c9dbb83 ILT |
551 | esac |
552 | fi | |
b11fb939 KR |
553 | |
554 | # Generate a header file -- gets more post-processing by Makefile later. | |
555 | ||
556 | ||
557 | ac_aux_dir= | |
28d3e4a3 | 558 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do |
e23b25ec KR |
559 | if test -f $ac_dir/install-sh; then |
560 | ac_aux_dir=$ac_dir | |
28d3e4a3 | 561 | ac_install_sh="$ac_aux_dir/install-sh -c" |
e23b25ec KR |
562 | break |
563 | elif test -f $ac_dir/install.sh; then | |
564 | ac_aux_dir=$ac_dir | |
28d3e4a3 | 565 | ac_install_sh="$ac_aux_dir/install.sh -c" |
e23b25ec | 566 | break |
b11fb939 KR |
567 | fi |
568 | done | |
569 | if test -z "$ac_aux_dir"; then | |
ba49e48d | 570 | { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; } |
b11fb939 | 571 | fi |
28d3e4a3 KR |
572 | ac_config_guess=$ac_aux_dir/config.guess |
573 | ac_config_sub=$ac_aux_dir/config.sub | |
574 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
b11fb939 | 575 | |
fb589130 | 576 | |
b11fb939 KR |
577 | # Do some error checking and defaulting for the host and target type. |
578 | # The inputs are: | |
579 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
580 | # | |
581 | # The rules are: | |
582 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1c9dbb83 | 583 | # same time. |
b11fb939 KR |
584 | # 2. Host defaults to nonopt. |
585 | # 3. If nonopt is not specified, then host defaults to the current host, | |
586 | # as determined by config.guess. | |
f2889110 KR |
587 | # 4. Target and build default to nonopt. |
588 | # 5. If nonopt is not specified, then target and build default to host. | |
b11fb939 KR |
589 | |
590 | # The aliases save the names the user supplied, while $host etc. | |
591 | # will get canonicalized. | |
592 | case $host---$target---$nonopt in | |
593 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
ba49e48d | 594 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
b11fb939 KR |
595 | esac |
596 | ||
e23b25ec | 597 | |
b11fb939 | 598 | # Make sure we can run config.sub. |
28d3e4a3 | 599 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
ba49e48d | 600 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
b11fb939 KR |
601 | fi |
602 | ||
833c46e1 | 603 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
b11fb939 KR |
604 | |
605 | host_alias=$host | |
28d3e4a3 | 606 | case "$host_alias" in |
b11fb939 KR |
607 | NONE) |
608 | case $nonopt in | |
609 | NONE) | |
28d3e4a3 | 610 | if host_alias=`$ac_config_guess`; then : |
ba49e48d | 611 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
b11fb939 KR |
612 | fi ;; |
613 | *) host_alias=$nonopt ;; | |
614 | esac ;; | |
615 | esac | |
616 | ||
28d3e4a3 | 617 | host=`$ac_config_sub $host_alias` |
b11fb939 KR |
618 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
619 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
620 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 621 | echo "$ac_t""$host" 1>&6 |
b11fb939 | 622 | |
833c46e1 | 623 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
b11fb939 KR |
624 | |
625 | target_alias=$target | |
28d3e4a3 | 626 | case "$target_alias" in |
b11fb939 KR |
627 | NONE) |
628 | case $nonopt in | |
629 | NONE) target_alias=$host_alias ;; | |
630 | *) target_alias=$nonopt ;; | |
631 | esac ;; | |
632 | esac | |
633 | ||
28d3e4a3 | 634 | target=`$ac_config_sub $target_alias` |
b11fb939 KR |
635 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
636 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
637 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 638 | echo "$ac_t""$target" 1>&6 |
b11fb939 | 639 | |
833c46e1 | 640 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
b11fb939 KR |
641 | |
642 | build_alias=$build | |
28d3e4a3 | 643 | case "$build_alias" in |
f2889110 KR |
644 | NONE) |
645 | case $nonopt in | |
646 | NONE) build_alias=$host_alias ;; | |
647 | *) build_alias=$nonopt ;; | |
648 | esac ;; | |
649 | esac | |
650 | ||
28d3e4a3 | 651 | build=`$ac_config_sub $build_alias` |
b11fb939 KR |
652 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
653 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
654 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 655 | echo "$ac_t""$build" 1>&6 |
b11fb939 | 656 | |
28d3e4a3 KR |
657 | test "$host_alias" != "$target_alias" && |
658 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
833c46e1 KR |
659 | NONENONEs,x,x, && |
660 | program_prefix=${target_alias}- | |
b11fb939 | 661 | |
ba49e48d KR |
662 | if test "$program_transform_name" = s,x,x,; then |
663 | program_transform_name= | |
664 | else | |
1c9dbb83 ILT |
665 | # Double any \ or $. echo might interpret backslashes. |
666 | cat <<\EOF_SED > conftestsed | |
667 | s,\\,\\\\,g; s,\$,$$,g | |
668 | EOF_SED | |
28d3e4a3 | 669 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
bf111c9f | 670 | rm -f conftestsed |
318b02b6 | 671 | fi |
28d3e4a3 KR |
672 | test "$program_prefix" != NONE && |
673 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
bf111c9f | 674 | # Use a double $ so make ignores it. |
28d3e4a3 KR |
675 | test "$program_suffix" != NONE && |
676 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
318b02b6 | 677 | |
bf111c9f | 678 | # sed with no file args requires a program. |
28d3e4a3 | 679 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
318b02b6 | 680 | |
b11fb939 | 681 | |
e7757ad0 | 682 | te_file=generic |
b11fb939 | 683 | |
e7757ad0 KR |
684 | canon_targets="" |
685 | if test -n "$enable_targets" ; then | |
686 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
687 | result=`$ac_config_sub $t 2>/dev/null` | |
688 | if test -n "$result" ; then | |
689 | canon_targets="$canon_targets $result" | |
690 | # else | |
691 | # # Permit "all", etc. We don't support it yet though. | |
692 | # canon_targets="$canon_targets $t" | |
693 | fi | |
694 | done | |
695 | _gas_uniq_list="$canon_targets" | |
696 | _gas_uniq_newlist="" | |
697 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
698 | case $_gas_uniq_i in | |
699 | _gas_uniq_dummy) ;; | |
700 | *) case " $_gas_uniq_newlist " in | |
701 | *" $_gas_uniq_i "*) ;; | |
702 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
703 | esac ;; | |
704 | esac | |
705 | done | |
706 | canon_targets=$_gas_uniq_newlist | |
b11fb939 | 707 | |
e7757ad0 | 708 | fi |
b11fb939 | 709 | |
e7757ad0 KR |
710 | emulations="" |
711 | ||
712 | for this_target in $target $canon_targets ; do | |
713 | ||
714 | eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'` | |
715 | ||
716 | # check for architecture variants | |
717 | case ${cpu} in | |
ae09d880 ILT |
718 | armeb) cpu_type=arm endian=big ;; |
719 | arm*) cpu_type=arm endian=little ;; | |
e7757ad0 | 720 | hppa*) cpu_type=hppa ;; |
7c2fadd1 | 721 | i[456]86) cpu_type=i386 ;; |
e7757ad0 KR |
722 | m680[012346]0) cpu_type=m68k ;; |
723 | m68008) cpu_type=m68k ;; | |
724 | m683??) cpu_type=m68k ;; | |
725 | m8*) cpu_type=m88k ;; | |
726 | mips*el) cpu_type=mips endian=little;; | |
727 | mips*) cpu_type=mips endian=big ;; | |
728 | powerpcle*) cpu_type=ppc endian=little ;; | |
729 | powerpc*) cpu_type=ppc endian=big ;; | |
730 | rs6000*) cpu_type=ppc ;; | |
6df07e7f | 731 | sparc64) cpu_type=sparc want_sparc_v9=true ;; |
63e4edb5 | 732 | sparc*) cpu_type=sparc ;; |
a1c7c0f3 | 733 | *) cpu_type=${cpu} ;; |
e7757ad0 KR |
734 | esac |
735 | ||
736 | if test ${this_target} = $target ; then | |
737 | target_cpu_type=${cpu_type} | |
738 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
739 | continue | |
740 | fi | |
741 | ||
742 | targ=${cpu_type} | |
743 | generic_target=${cpu_type}-$vendor-$os | |
744 | dev=no | |
745 | bfd_gas=no | |
746 | em=generic | |
747 | ||
748 | # assign object format | |
749 | case ${generic_target} in | |
805e36ab | 750 | a29k-*-coff) fmt=coff targ=ebmon29k ;; |
e7757ad0 KR |
751 | a29k-amd-udi) fmt=coff targ=ebmon29k ;; |
752 | a29k-amd-ebmon) fmt=coff targ=ebmon29k ;; | |
880b7429 | 753 | a29k-nyu-sym1) fmt=coff targ=ebmon29k ;; |
e7757ad0 KR |
754 | a29k-*-vxworks*) fmt=coff ;; |
755 | ||
756 | alpha-*-netware*) fmt=ecoff ;; | |
757 | alpha-*-osf*) fmt=ecoff ;; | |
df586de2 ILT |
758 | alpha-*-linuxecoff*) fmt=ecoff ;; |
759 | alpha-*-linux*) fmt=elf em=linux ;; | |
b11fb939 | 760 | |
4181c985 | 761 | # start-sanitize-arc |
e7757ad0 | 762 | arc-*-elf*) fmt=elf bfd_gas=yes ;; |
4181c985 KR |
763 | # end-sanitize-arc |
764 | ||
7be9a312 | 765 | arm-*-riscix*) fmt=aout targ=arm-lit em=riscix ;; |
1cb0d00d KR |
766 | arm-*-aout) fmt=aout |
767 | case "$endian" in | |
768 | big) targ=arm-big ;; | |
769 | *) targ=arm-lit ;; | |
770 | esac | |
771 | ;; | |
8de16e56 | 772 | arm-*-coff) fmt=coff ;; |
e7757ad0 | 773 | arm-*-riscix*) fmt=aout ;; |
1cb0d00d | 774 | arm-*-pe) fmt=coff targ=armcoff em=pe ;; |
e7757ad0 | 775 | |
7be9a312 | 776 | # start-sanitize-d10v |
cbe7dccb | 777 | d10v-*-*) fmt=elf bfd_gas=yes ;; |
7be9a312 MH |
778 | # end-sanitize-d10v |
779 | ||
e7757ad0 KR |
780 | hppa-*-*elf*) fmt=elf em=hppa ;; |
781 | hppa-*-lites*) fmt=elf em=hppa ;; | |
782 | hppa-*-osf*) fmt=som em=hppa ;; | |
783 | hppa-*-hpux*) fmt=som em=hppa ;; | |
784 | hppa-*-bsd*) fmt=som em=hppa ;; | |
785 | hppa-*-hiux*) fmt=som em=hppa ;; | |
786 | ||
787 | h8300-*-coff) fmt=coff ;; | |
788 | ||
789 | i386-ibm-aix*) fmt=coff targ=i386coff | |
790 | em=i386aix ;; | |
791 | i386-*-bsd*) fmt=aout em=386bsd ;; | |
792 | i386-*-netbsd0.8) fmt=aout em=386bsd ;; | |
793 | i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; | |
a1c7c0f3 | 794 | i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;; |
e7757ad0 KR |
795 | i386-*-linux*coff*) fmt=coff em=linux |
796 | targ=i386coff ;; | |
797 | i386-*-linux*) fmt=elf em=linux ;; | |
798 | i386-*-lynxos*) fmt=coff targ=i386coff | |
799 | em=lynx ;; | |
2ae5f50b | 800 | i386-*-sysv4* | i386-*-solaris* | i386-*-elf | i386-*-freebsdelf*) |
e7757ad0 | 801 | fmt=elf ;; |
66b935da | 802 | i386-*-sco*elf*) fmt=elf targ=sco5 ;; |
e7757ad0 KR |
803 | i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*) |
804 | fmt=coff targ=i386coff ;; | |
805 | i386-*-vsta) fmt=aout ;; | |
806 | i386-*-go32) fmt=coff targ=i386coff ;; | |
7be9a312 | 807 | i386-*-rtems*) fmt=coff targ=i386coff ;; |
6c186c48 SC |
808 | i386-*-gnu*) fmt=elf ;; |
809 | i386-*-mach*) | |
e7757ad0 KR |
810 | fmt=aout em=mach bfd_gas=yes ;; |
811 | i386-*-msdos*) fmt=aout ;; | |
6c186c48 | 812 | i386-*-moss*) fmt=elf ;; |
d0352cbb DE |
813 | i386-*-pe) fmt=coff targ=i386coff em=pe ;; |
814 | i386-*-cygwin32) fmt=coff targ=i386coff em=pe ;; | |
815 | i386-*-*nt) fmt=coff targ=i386coff em=pe ;; | |
e7757ad0 KR |
816 | i960-*-bout) fmt=bout ;; |
817 | i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;; | |
7be9a312 | 818 | i960-*-rtems*) fmt=coff em=ic960 targ=ic960coff ;; |
e7757ad0 KR |
819 | i960-*-nindy*) fmt=bout ;; |
820 | i960-*-vxworks4*) fmt=bout ;; | |
821 | i960-*-vxworks5.0) fmt=bout ;; | |
822 | i960-*-vxworks5.*) fmt=coff em=ic960 targ=ic960coff ;; | |
823 | i960-*-vxworks*) fmt=bout ;; | |
824 | ||
825 | m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*) | |
826 | fmt=aout em=sun3 ;; | |
880b7429 | 827 | m68k-motorola-sysv*) fmt=coff targ=m68kcoff em=delta ;; |
e7757ad0 KR |
828 | m68k-bull-sysv3*) fmt=coff targ=m68kcoff em=dpx2 ;; |
829 | m68k-apollo-*) fmt=coff targ=apollo em=apollo ;; | |
9d5aef80 KR |
830 | m68k-*-sysv4 | m68k-*-elf) # must be before -sysv* |
831 | fmt=elf ;; | |
7be9a312 | 832 | m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*) |
e7757ad0 | 833 | fmt=coff targ=m68kcoff ;; |
e7757ad0 | 834 | m68k-*-hpux*) fmt=hp300 em=hp300 ;; |
535cfd0f ILT |
835 | m68k-*-linux*aout*) fmt=aout em=linux ;; |
836 | m68k-*-linux*) fmt=elf em=linux ;; | |
e7757ad0 KR |
837 | m68k-*-lynxos*) fmt=coff targ=m68kcoff |
838 | em=lynx ;; | |
839 | m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; | |
2b37714a ILT |
840 | m68k-apple-aux*) fmt=coff targ=m68kcoff em=aux ;; |
841 | m68k-*-psos*) fmt=elf em=psos;; | |
e7757ad0 | 842 | |
880b7429 | 843 | m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;; |
e7757ad0 KR |
844 | m88k-*-coff*) fmt=coff targ=m88kcoff ;; |
845 | ||
846 | # don't change em like *-*-bsd does | |
4cbbec31 | 847 | mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;; |
e7757ad0 KR |
848 | mips-dec-bsd*) fmt=aout targ=mips-lit ;; |
849 | mips-sony-bsd*) fmt=ecoff targ=mips-big ;; | |
850 | mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; | |
70f4dbce | 851 | mips-*-ultrix*) fmt=ecoff targ=mips-lit endian=little ;; |
7be9a312 | 852 | mips-*-osf*) fmt=ecoff targ=mips-lit endian=little ;; |
e7757ad0 KR |
853 | mips-*-ecoff*) fmt=ecoff |
854 | case "$endian" in | |
855 | big) targ=mips-big ;; | |
856 | *) targ=mips-lit ;; | |
857 | esac | |
858 | ;; | |
859 | mips-*-ecoff*) fmt=ecoff targ=mips-big ;; | |
860 | mips-*-gnu*) fmt=aout | |
861 | case "$endian" in | |
862 | big) targ=mips-big ;; | |
863 | *) targ=mips-lit ;; | |
864 | esac | |
865 | ;; | |
cbe7dccb | 866 | mips-*-irix6*) fmt=elf targ=mips-big ;; |
e7757ad0 KR |
867 | mips-*-irix5*) fmt=elf targ=mips-big ;; |
868 | mips-*-irix*) fmt=ecoff targ=mips-big ;; | |
869 | mips-*-riscos*) fmt=ecoff targ=mips-big ;; | |
870 | mips-*-sysv*) fmt=ecoff targ=mips-big ;; | |
871 | mips-*-elf*) fmt=elf | |
872 | case "$endian" in | |
873 | big) targ=mips-big ;; | |
874 | *) targ=mips-lit ;; | |
875 | esac | |
876 | ;; | |
0ff513d9 SC |
877 | ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*) |
878 | fmt=coff em=pe | |
85cc2190 KK |
879 | case "$endian" in |
880 | big) targ=ppc-big ;; | |
881 | *) targ=ppc-lit ;; | |
882 | esac | |
883 | ;; | |
e7757ad0 KR |
884 | ppc-*-aix*) fmt=coff ;; |
885 | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*) | |
886 | fmt=elf | |
887 | case "$endian" in | |
888 | big) targ=ppc-big ;; | |
889 | *) targ=ppc-lit ;; | |
890 | esac | |
891 | ;; | |
159e6ef8 MM |
892 | ppc-*-linux*) fmt=elf |
893 | case "$endian" in | |
894 | big) targ=ppc-big ;; | |
895 | *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;; | |
896 | esac | |
897 | ;; | |
898 | ppc-*-solaris*) fmt=elf | |
899 | case "$endian" in | |
900 | big) { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;; | |
901 | *) targ=ppc-sol ;; | |
902 | esac | |
903 | ;; | |
7be9a312 MH |
904 | ppc-*-rtems*) |
905 | fmt=elf | |
906 | case "$endian" in | |
907 | big) targ=ppc-big ;; | |
908 | *) targ=ppc-lit ;; | |
909 | esac | |
910 | ;; | |
880b7429 KR |
911 | ppc-*-macos* | ppc-*-mpw*) |
912 | fmt=coff em=macos ;; | |
e7757ad0 KR |
913 | ppc-*-netware*) fmt=elf em=ppcnw ;; |
914 | ||
915 | sh-*-coff) fmt=coff ;; | |
b11fb939 | 916 | |
5f757edc ILT |
917 | ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;; |
918 | ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; | |
e7757ad0 | 919 | |
7be9a312 | 920 | sparc-*-rtems*) fmt=aout ;; |
e7757ad0 | 921 | sparc-*-sunos4*) fmt=aout em=sun3 ;; |
df586de2 | 922 | sparc-*-aout | sparc*-*-vxworks*) |
e7757ad0 KR |
923 | fmt=aout ;; |
924 | sparc-*-coff) fmt=coff ;; | |
925 | sparc-*-lynxos*) fmt=coff em=lynx ;; | |
926 | sparc-fujitsu-none) fmt=aout ;; | |
0b27ea39 | 927 | sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*) |
e7757ad0 KR |
928 | fmt=elf ;; |
929 | sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; | |
930 | ||
931 | vax-*-bsd* | vax-*-ultrix*) | |
932 | fmt=aout ;; | |
933 | vax-*-vms) fmt=vms ;; | |
934 | ||
935 | z8k-*-coff | z8k-*-sim) | |
936 | fmt=coff ;; | |
937 | ||
938 | w65-*-*) fmt=coff ;; | |
939 | ||
940 | *-*-aout | *-*-scout) | |
941 | fmt=aout ;; | |
942 | *-*-nindy*) | |
943 | fmt=bout ;; | |
944 | *-*-bsd*) | |
945 | fmt=aout em=sun3 ;; | |
946 | *-*-generic) fmt=generic ;; | |
947 | *-*-xray | *-*-hms) fmt=coff ;; | |
948 | *-*-sim) fmt=coff ;; | |
949 | *-*-elf | *-*-sysv4* | *-*-solaris*) | |
6df07e7f | 950 | echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2 |
e7757ad0 KR |
951 | fmt=elf dev=yes ;; |
952 | *-*-vxworks) fmt=aout ;; | |
953 | *-*-netware) fmt=elf ;; | |
954 | esac | |
955 | ||
956 | case ${cpu_type}-${fmt} in | |
df586de2 | 957 | alpha-*) bfd_gas=yes ;; |
e7757ad0 KR |
958 | arm-*) bfd_gas=yes ;; |
959 | # not yet | |
960 | # i386-aout) bfd_gas=preferred ;; | |
961 | mips-*) bfd_gas=yes ;; | |
962 | ns32k-*) bfd_gas=yes ;; | |
963 | ppc-*) bfd_gas=yes ;; | |
964 | sparc-*) bfd_gas=yes ;; | |
965 | *-elf) bfd_gas=yes ;; | |
966 | *-ecoff) bfd_gas=yes ;; | |
967 | *-som) bfd_gas=yes ;; | |
968 | *) ;; | |
969 | esac | |
970 | ||
5f757edc ILT |
971 | # Other random stuff. |
972 | ||
ae09d880 ILT |
973 | # do we need the opcodes library? |
974 | case ${cpu_type} in | |
df586de2 | 975 | vax | i386) |
7c2fadd1 ILT |
976 | ;; |
977 | *) | |
978 | need_opcodes=yes | |
159e6ef8 | 979 | if test "${shared_opcodes}" = "true"; then |
7c2fadd1 ILT |
980 | # A shared libopcodes must be linked against libbfd. |
981 | need_bfd=yes | |
982 | fi | |
983 | ;; | |
ae09d880 ILT |
984 | esac |
985 | ||
6df07e7f DE |
986 | test -n "$want_sparc_v9" && cat >> confdefs.h <<\EOF |
987 | #define SPARC_V9 1 | |
5f757edc ILT |
988 | EOF |
989 | ||
990 | ||
6df07e7f DE |
991 | case ${cpu}-${vendor}-${os} in |
992 | sparc64-*-elf*) cat >> confdefs.h <<\EOF | |
993 | #define SPARC_ARCH64 1 | |
994 | EOF | |
995 | ;; | |
996 | esac | |
997 | ||
5f757edc | 998 | case ${cpu_type} in |
1c9dbb83 ILT |
999 | m68k) |
1000 | case ${extra_objects} in | |
1001 | *m68k-parse.o*) ;; | |
1002 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
1003 | esac | |
1004 | ;; | |
5f757edc ILT |
1005 | esac |
1006 | ||
e7757ad0 KR |
1007 | # See if we really can support this configuration with the emulation code. |
1008 | ||
1009 | if test $this_target = $target ; then | |
1010 | primary_bfd_gas=$bfd_gas | |
1011 | obj_format=$fmt | |
1012 | gas_target=$targ | |
1013 | te_file=$em | |
1014 | ||
1015 | if test $bfd_gas = no ; then | |
1016 | # Can't support other configurations this way. | |
1017 | break | |
1018 | fi | |
1019 | elif test $bfd_gas = no ; then | |
1020 | # Can't support this configuration. | |
1021 | break | |
1022 | fi | |
1023 | ||
1024 | # From target name and format, produce a list of supported emulations. | |
1025 | ||
1026 | case ${generic_target}-${fmt} in | |
1cb0d00d | 1027 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; |
e7757ad0 | 1028 | mips-*-*-ecoff) case "$endian" in |
1cb0d00d KR |
1029 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; |
1030 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
e7757ad0 KR |
1031 | esac ;; |
1032 | mips-*-*-elf) case "$endian" in | |
1cb0d00d KR |
1033 | big) emulation="mipsbelf mipslelf mipself" ;; |
1034 | *) emulation="mipslelf mipsbelf mipself" ;; | |
e7757ad0 KR |
1035 | esac ;; |
1036 | esac | |
1037 | ||
1038 | emulations="$emulations $emulation" | |
1039 | ||
e7757ad0 | 1040 | done |
b11fb939 KR |
1041 | |
1042 | # Assign floating point type. Most processors with FP support | |
1043 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
1044 | # is emulated. | |
1045 | case ${target_cpu} in | |
1046 | vax | tahoe ) atof=${target_cpu} ;; | |
e7757ad0 | 1047 | *) atof=ieee ;; |
b11fb939 KR |
1048 | esac |
1049 | ||
1050 | case "${obj_format}" in | |
ba49e48d | 1051 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;; |
b11fb939 KR |
1052 | esac |
1053 | ||
1054 | ||
bf4bd1fc ILT |
1055 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then |
1056 | { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; } | |
b11fb939 KR |
1057 | fi |
1058 | ||
fb589130 | 1059 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then |
ba49e48d | 1060 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } |
b11fb939 KR |
1061 | fi |
1062 | ||
b11fb939 KR |
1063 | # and target makefile frag |
1064 | ||
1065 | target_frag=${srcdir}/config/${gas_target}.mt | |
f2889110 KR |
1066 | if test ! -r ${target_frag}; then |
1067 | target_frag=/dev/null # ick! but subst_file can't be conditionalized | |
1068 | fi | |
b11fb939 | 1069 | |
4cbbec31 | 1070 | |
e7757ad0 | 1071 | case ${user_bfd_gas}-${primary_bfd_gas} in |
b11fb939 KR |
1072 | yes-yes | no-no) |
1073 | # We didn't override user's choice. | |
1074 | ;; | |
1075 | no-yes) | |
1076 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2 | |
1077 | ;; | |
1078 | no-preferred) | |
e7757ad0 | 1079 | primary_bfd_gas=no |
b11fb939 KR |
1080 | ;; |
1081 | *-preferred) | |
e7757ad0 | 1082 | primary_bfd_gas=yes |
b11fb939 | 1083 | ;; |
ba49e48d | 1084 | yes-*) |
e7757ad0 | 1085 | primary_bfd_gas=yes |
ba49e48d | 1086 | ;; |
b11fb939 KR |
1087 | -*) |
1088 | # User specified nothing. | |
1089 | ;; | |
1090 | esac | |
1091 | ||
e7757ad0 KR |
1092 | # Some COFF configurations want these random other flags set. |
1093 | case ${obj_format} in | |
1094 | coff) | |
1095 | case ${target_cpu_type} in | |
1096 | i386) cat >> confdefs.h <<\EOF | |
1097 | #define I386COFF 1 | |
1098 | EOF | |
1099 | ;; | |
1100 | m68k) cat >> confdefs.h <<\EOF | |
1101 | #define M68KCOFF 1 | |
1102 | EOF | |
1103 | ;; | |
1104 | m88k) cat >> confdefs.h <<\EOF | |
1105 | #define M88KCOFF 1 | |
1106 | EOF | |
1107 | ;; | |
1108 | esac | |
1109 | ;; | |
1110 | esac | |
1111 | ||
1112 | # Getting this done right is going to be a bitch. Each configuration specified | |
1113 | # with --enable-targets=... should be checked for environment, format, cpu, and | |
1114 | # bfd_gas setting. | |
1115 | # | |
1116 | # For each configuration, the necessary object file support code must be linked | |
1117 | # in. This might be only one, it might be up to four. The necessary emulation | |
1118 | # code needs to be provided, too. | |
1119 | # | |
1120 | # And then there's "--enable-targets=all".... | |
1121 | # | |
1122 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
1123 | ||
1124 | formats="${obj_format}" | |
1125 | emfiles="" | |
1126 | EMULATIONS="" | |
1127 | _gas_uniq_list="$emulations" | |
1128 | _gas_uniq_newlist="" | |
1129 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
1130 | case $_gas_uniq_i in | |
1131 | _gas_uniq_dummy) ;; | |
1132 | *) case " $_gas_uniq_newlist " in | |
1133 | *" $_gas_uniq_i "*) ;; | |
1134 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
1135 | esac ;; | |
1136 | esac | |
1137 | done | |
1138 | emulations=$_gas_uniq_newlist | |
1139 | ||
1140 | for em in . $emulations ; do | |
1141 | case $em in | |
1142 | .) continue ;; | |
1143 | mipsbelf | mipslelf) | |
1144 | fmt=elf file=mipself ;; | |
1145 | mipsbecoff | mipslecoff) | |
1146 | fmt=ecoff file=mipsecoff ;; | |
1147 | esac | |
1148 | formats="$formats $fmt" | |
1149 | emfiles="$emfiles e-$file.o" | |
1150 | EMULATIONS="$EMULATIONS &$em," | |
1151 | done | |
1152 | _gas_uniq_list="$formats" | |
1153 | _gas_uniq_newlist="" | |
1154 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
1155 | case $_gas_uniq_i in | |
1156 | _gas_uniq_dummy) ;; | |
1157 | *) case " $_gas_uniq_newlist " in | |
1158 | *" $_gas_uniq_i "*) ;; | |
1159 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
1160 | esac ;; | |
1161 | esac | |
1162 | done | |
1163 | formats=$_gas_uniq_newlist | |
1164 | ||
1165 | _gas_uniq_list="$emfiles" | |
1166 | _gas_uniq_newlist="" | |
1167 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
1168 | case $_gas_uniq_i in | |
1169 | _gas_uniq_dummy) ;; | |
1170 | *) case " $_gas_uniq_newlist " in | |
1171 | *" $_gas_uniq_i "*) ;; | |
1172 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
1173 | esac ;; | |
1174 | esac | |
1175 | done | |
1176 | emfiles=$_gas_uniq_newlist | |
1177 | ||
1178 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then | |
1179 | for fmt in $formats ; do | |
1180 | case $fmt in | |
1181 | aout) cat >> confdefs.h <<\EOF | |
1182 | #define OBJ_MAYBE_AOUT 1 | |
1183 | EOF | |
1184 | ;; | |
1185 | bout) cat >> confdefs.h <<\EOF | |
1186 | #define OBJ_MAYBE_BOUT 1 | |
1187 | EOF | |
1188 | ;; | |
1189 | coff) cat >> confdefs.h <<\EOF | |
1190 | #define OBJ_MAYBE_COFF 1 | |
1191 | EOF | |
1192 | ;; | |
1193 | ecoff) cat >> confdefs.h <<\EOF | |
1194 | #define OBJ_MAYBE_ECOFF 1 | |
1195 | EOF | |
1196 | ;; | |
1197 | elf) cat >> confdefs.h <<\EOF | |
1198 | #define OBJ_MAYBE_ELF 1 | |
1199 | EOF | |
1200 | ;; | |
1201 | generic) cat >> confdefs.h <<\EOF | |
1202 | #define OBJ_MAYBE_GENERIC 1 | |
1203 | EOF | |
1204 | ;; | |
1205 | hp300) cat >> confdefs.h <<\EOF | |
1206 | #define OBJ_MAYBE_HP300 1 | |
1207 | EOF | |
1208 | ;; | |
1209 | ieee) cat >> confdefs.h <<\EOF | |
1210 | #define OBJ_MAYBE_IEEE 1 | |
1211 | EOF | |
1212 | ;; | |
1213 | som) cat >> confdefs.h <<\EOF | |
1214 | #define OBJ_MAYBE_SOM 1 | |
1215 | EOF | |
1216 | ;; | |
1217 | vms) cat >> confdefs.h <<\EOF | |
1218 | #define OBJ_MAYBE_VMS 1 | |
1219 | EOF | |
1220 | ;; | |
1221 | esac | |
1222 | extra_objects="$extra_objects obj-$fmt.o" | |
1223 | done | |
1224 | obj_format=multi | |
1225 | fi | |
1226 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then | |
1227 | te_file=multi | |
1228 | extra_objects="$extra_objects $emfiles" | |
1229 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
1230 | cat >> confdefs.h <<\EOF | |
1231 | #define USE_EMULATIONS 1 | |
1232 | EOF | |
1233 | ||
1234 | fi | |
1235 | ||
1236 | cat >> confdefs.h <<EOF | |
1237 | #define EMULATIONS $EMULATIONS | |
1238 | EOF | |
1239 | ||
1240 | cat >> confdefs.h <<EOF | |
1241 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
1242 | EOF | |
1243 | ||
1244 | ||
bf4bd1fc | 1245 | files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \ |
e7757ad0 KR |
1246 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
1247 | config/te-${te_file}.h config/atof-${atof}.c \ | |
1248 | $extra_files" | |
1249 | links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \ | |
1250 | $extra_links" | |
1251 | ||
bf4bd1fc | 1252 | case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in |
318b02b6 KR |
1253 | yes-*-coff) need_bfd=yes ;; |
1254 | no-*-coff) need_bfd=yes | |
1255 | cat >> confdefs.h <<\EOF | |
1256 | #define MANY_SEGMENTS 1 | |
1257 | EOF | |
1258 | ;; | |
1259 | esac | |
1260 | ||
b11fb939 KR |
1261 | reject_dev_configs=yes |
1262 | ||
1263 | case ${reject_dev_configs}-${dev} in | |
1264 | yes-yes) # Oops. | |
ba49e48d | 1265 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; } |
b11fb939 KR |
1266 | ;; |
1267 | esac | |
1268 | ||
b11fb939 KR |
1269 | |
1270 | ||
833c46e1 KR |
1271 | |
1272 | ||
1273 | ||
1274 | ||
e7757ad0 | 1275 | case "${primary_bfd_gas}" in |
b11fb939 KR |
1276 | yes) cat >> confdefs.h <<\EOF |
1277 | #define BFD_ASSEMBLER 1 | |
1278 | EOF | |
1279 | ||
1280 | need_bfd=yes ;; | |
1281 | esac | |
1282 | ||
ae09d880 ILT |
1283 | # do we need the opcodes library? |
1284 | case "${need_opcodes}" in | |
7be9a312 MH |
1285 | yes) |
1286 | OPCODES_DEP=../opcodes/libopcodes.a | |
1287 | OPCODES_LIB='-L../opcodes -lopcodes' | |
ae09d880 | 1288 | |
7be9a312 MH |
1289 | # We need to handle some special cases for shared libraries. |
1290 | case "${host}" in | |
1291 | *-*-sunos*) | |
1292 | # On SunOS, we must link against the name we are going to install, | |
1293 | # not -lbfd, since SunOS does not support SONAME. | |
159e6ef8 | 1294 | if test "${shared_opcodes}" = "true"; then |
ae09d880 | 1295 | OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`' |
ae09d880 ILT |
1296 | fi |
1297 | ;; | |
7be9a312 MH |
1298 | alpha*-*-osf*) |
1299 | # On Alpha OSF/1, the native linker searches all the -L | |
1300 | # directories for any LIB.so files, and only then searches for any | |
1301 | # LIB.a files. That means that if there is an installed | |
1302 | # libbfd.so, but this build is not done with --enable-shared, the | |
1303 | # link will wind up being against the install libbfd.so rather | |
1304 | # than the newly built libbfd. To avoid this, we must explicitly | |
1305 | # link against libbfd.a when --enable-shared is not used. | |
1306 | if test "${shared_opcodes}" != "true"; then | |
1307 | OPCODES_LIB='../opcodes/libopcodes.a' | |
1308 | fi | |
1309 | ;; | |
1310 | esac | |
1311 | ;; | |
ae09d880 ILT |
1312 | esac |
1313 | ||
1314 | ||
1315 | ||
b11fb939 | 1316 | case "${need_bfd}" in |
7be9a312 MH |
1317 | yes) |
1318 | BFDDEP=../bfd/libbfd.a | |
1319 | BFDLIB='-L../bfd -lbfd' | |
1320 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" | |
ae09d880 | 1321 | |
7be9a312 MH |
1322 | # We need to handle some special cases for shared libraries |
1323 | case "${host}" in | |
1324 | *-*-sunos*) | |
1325 | # On SunOS, we must link against the name we are going to install, | |
1326 | # not -lbfd, since SunOS does not support SONAME. | |
159e6ef8 | 1327 | if test "${shared_bfd}" = "true"; then |
7be9a312 MH |
1328 | BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`' |
1329 | fi | |
1330 | ;; | |
1331 | alpha*-*-osf*) | |
1332 | # On Alpha OSF/1, the native linker searches all the -L | |
1333 | # directories for any LIB.so files, and only then searches for any | |
1334 | # LIB.a files. That means that if there is an installed | |
1335 | # libbfd.so, but this build is not done with --enable-shared, the | |
1336 | # link will wind up being against the install libbfd.so rather | |
1337 | # than the newly built libbfd. To avoid this, we must explicitly | |
1338 | # link against libbfd.a when --enable-shared is not used. | |
1339 | if test "${shared_bfd}" != "true"; then | |
1340 | BFDLIB='../bfd/libbfd.a' | |
ae09d880 ILT |
1341 | fi |
1342 | ;; | |
7be9a312 MH |
1343 | esac |
1344 | ;; | |
b11fb939 KR |
1345 | esac |
1346 | ||
1347 | ||
1348 | ||
1c9dbb83 | 1349 | |
b11fb939 KR |
1350 | cat >> confdefs.h <<EOF |
1351 | #define TARGET_ALIAS "${target_alias}" | |
1352 | EOF | |
1353 | ||
1354 | cat >> confdefs.h <<EOF | |
1355 | #define TARGET_CANONICAL "${target}" | |
1356 | EOF | |
1357 | ||
1358 | cat >> confdefs.h <<EOF | |
1359 | #define TARGET_CPU "${target_cpu}" | |
1360 | EOF | |
1361 | ||
1362 | cat >> confdefs.h <<EOF | |
1363 | #define TARGET_VENDOR "${target_vendor}" | |
1364 | EOF | |
1365 | ||
1366 | cat >> confdefs.h <<EOF | |
1367 | #define TARGET_OS "${target_os}" | |
1368 | EOF | |
1369 | ||
1370 | ||
330add8a ILT |
1371 | # Extract the first word of "gcc", so it can be a program name with args. |
1372 | set dummy gcc; ac_word=$2 | |
1373 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1374 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1376 | else | |
1377 | if test -n "$CC"; then | |
1378 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1379 | else | |
1380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1381 | for ac_dir in $PATH; do | |
1382 | test -z "$ac_dir" && ac_dir=. | |
1383 | if test -f $ac_dir/$ac_word; then | |
1384 | ac_cv_prog_CC="gcc" | |
1385 | break | |
1386 | fi | |
1387 | done | |
1388 | IFS="$ac_save_ifs" | |
330add8a ILT |
1389 | fi |
1390 | fi | |
1391 | CC="$ac_cv_prog_CC" | |
1392 | if test -n "$CC"; then | |
1393 | echo "$ac_t""$CC" 1>&6 | |
1394 | else | |
1395 | echo "$ac_t""no" 1>&6 | |
1396 | fi | |
1397 | ||
d0352cbb DE |
1398 | if test -z "$CC"; then |
1399 | # Extract the first word of "cc", so it can be a program name with args. | |
1400 | set dummy cc; ac_word=$2 | |
1401 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1402 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1404 | else | |
1405 | if test -n "$CC"; then | |
1406 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1407 | else | |
1408 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1409 | ac_prog_rejected=no | |
1410 | for ac_dir in $PATH; do | |
1411 | test -z "$ac_dir" && ac_dir=. | |
1412 | if test -f $ac_dir/$ac_word; then | |
1413 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1414 | ac_prog_rejected=yes | |
1415 | continue | |
1416 | fi | |
1417 | ac_cv_prog_CC="cc" | |
1418 | break | |
1419 | fi | |
1420 | done | |
1421 | IFS="$ac_save_ifs" | |
1422 | if test $ac_prog_rejected = yes; then | |
1423 | # We found a bogon in the path, so make sure we never use it. | |
1424 | set dummy $ac_cv_prog_CC | |
1425 | shift | |
1426 | if test $# -gt 0; then | |
1427 | # We chose a different compiler from the bogus one. | |
1428 | # However, it has the same basename, so the bogon will be chosen | |
1429 | # first if we set CC to just the basename; use the full file name. | |
1430 | shift | |
1431 | set dummy "$ac_dir/$ac_word" "$@" | |
1432 | shift | |
1433 | ac_cv_prog_CC="$@" | |
1434 | fi | |
1435 | fi | |
1436 | fi | |
1437 | fi | |
1438 | CC="$ac_cv_prog_CC" | |
1439 | if test -n "$CC"; then | |
1440 | echo "$ac_t""$CC" 1>&6 | |
1441 | else | |
1442 | echo "$ac_t""no" 1>&6 | |
1443 | fi | |
1444 | ||
1445 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1446 | fi | |
b11fb939 | 1447 | |
330add8a ILT |
1448 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1449 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
1450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1451 | else | |
1452 | cat > conftest.c <<EOF | |
b11fb939 | 1453 | #ifdef __GNUC__ |
330add8a | 1454 | yes; |
b11fb939 KR |
1455 | #endif |
1456 | EOF | |
cbe7dccb | 1457 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
330add8a ILT |
1458 | ac_cv_prog_gcc=yes |
1459 | else | |
1460 | ac_cv_prog_gcc=no | |
1461 | fi | |
1462 | fi | |
1c9dbb83 | 1463 | |
330add8a ILT |
1464 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1465 | if test $ac_cv_prog_gcc = yes; then | |
b11fb939 | 1466 | GCC=yes |
330add8a ILT |
1467 | if test "${CFLAGS+set}" != set; then |
1468 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1469 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then | |
1470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1471 | else |
330add8a ILT |
1472 | echo 'void f(){}' > conftest.c |
1473 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1474 | ac_cv_prog_gcc_g=yes | |
1475 | else | |
1476 | ac_cv_prog_gcc_g=no | |
b11fb939 KR |
1477 | fi |
1478 | rm -f conftest* | |
1479 | ||
330add8a | 1480 | fi |
1c9dbb83 ILT |
1481 | |
1482 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 | |
330add8a ILT |
1483 | if test $ac_cv_prog_gcc_g = yes; then |
1484 | CFLAGS="-g -O" | |
1485 | else | |
1486 | CFLAGS="-O" | |
1487 | fi | |
1488 | fi | |
1489 | else | |
1490 | GCC= | |
1491 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1492 | fi | |
1493 | ||
bf111c9f KR |
1494 | # Find a good install program. We prefer a C program (faster), |
1495 | # so one script is as good as another. But avoid the broken or | |
1496 | # incompatible versions: | |
b11fb939 KR |
1497 | # SysV /etc/install, /usr/sbin/install |
1498 | # SunOS /usr/etc/install | |
1499 | # IRIX /sbin/install | |
1500 | # AIX /bin/install | |
1501 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1502 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1503 | # ./install, which can be erroneously created by make from ./install.sh. | |
833c46e1 | 1504 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
28d3e4a3 | 1505 | if test -z "$INSTALL"; then |
833c46e1 KR |
1506 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
1507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1508 | else |
1509 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1510 | for ac_dir in $PATH; do | |
833c46e1 KR |
1511 | # Account for people who put trailing slashes in PATH elements. |
1512 | case "$ac_dir/" in | |
1513 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
b11fb939 KR |
1514 | *) |
1515 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1516 | for ac_prog in ginstall installbsd scoinst install; do | |
1517 | if test -f $ac_dir/$ac_prog; then | |
1518 | if test $ac_prog = install && | |
1519 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1520 | # AIX install. It has an incompatible calling convention. | |
1521 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1522 | : | |
1523 | else | |
1524 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1525 | break 2 | |
1526 | fi | |
1527 | fi | |
1528 | done | |
1529 | ;; | |
1530 | esac | |
1531 | done | |
1532 | IFS="$ac_save_ifs" | |
1c9dbb83 | 1533 | |
b11fb939 | 1534 | fi |
1c9dbb83 ILT |
1535 | if test "${ac_cv_path_install+set}" = set; then |
1536 | INSTALL="$ac_cv_path_install" | |
1537 | else | |
1538 | # As a last resort, use the slow shell script. We don't cache a | |
1539 | # path for INSTALL within a source directory, because that will | |
1540 | # break other packages using the cache if that directory is | |
1541 | # removed, or if the path is relative. | |
1542 | INSTALL="$ac_install_sh" | |
1543 | fi | |
b11fb939 | 1544 | fi |
833c46e1 | 1545 | echo "$ac_t""$INSTALL" 1>&6 |
b11fb939 KR |
1546 | |
1547 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1548 | # It thinks the first close brace ends the variable substitution. | |
1549 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1550 | ||
1551 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1552 | ||
1553 | ||
833c46e1 | 1554 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b11fb939 KR |
1555 | # On Suns, sometimes $CPP names a directory. |
1556 | if test -n "$CPP" && test -d "$CPP"; then | |
1557 | CPP= | |
1558 | fi | |
1559 | if test -z "$CPP"; then | |
833c46e1 KR |
1560 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1562 | else |
1563 | # This must be in double quotes, not single quotes, because CPP may get | |
1564 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1565 | CPP="${CC-cc} -E" | |
1566 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1567 | # not just through cpp. | |
28d3e4a3 | 1568 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1569 | #line 1570 "configure" |
b11fb939 | 1570 | #include "confdefs.h" |
f2889110 | 1571 | #include <assert.h> |
b11fb939 KR |
1572 | Syntax Error |
1573 | EOF | |
d0352cbb | 1574 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cbe7dccb | 1575 | { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
bf111c9f | 1576 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1577 | if test -z "$ac_err"; then |
1578 | : | |
1579 | else | |
fb589130 | 1580 | echo "$ac_err" >&5 |
b11fb939 KR |
1581 | rm -rf conftest* |
1582 | CPP="${CC-cc} -E -traditional-cpp" | |
28d3e4a3 | 1583 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1584 | #line 1585 "configure" |
b11fb939 | 1585 | #include "confdefs.h" |
f2889110 | 1586 | #include <assert.h> |
b11fb939 KR |
1587 | Syntax Error |
1588 | EOF | |
d0352cbb | 1589 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cbe7dccb | 1590 | { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
bf111c9f | 1591 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1592 | if test -z "$ac_err"; then |
1593 | : | |
1594 | else | |
fb589130 | 1595 | echo "$ac_err" >&5 |
b11fb939 KR |
1596 | rm -rf conftest* |
1597 | CPP=/lib/cpp | |
1598 | fi | |
1599 | rm -f conftest* | |
1600 | fi | |
1601 | rm -f conftest* | |
1602 | ac_cv_prog_CPP="$CPP" | |
1603 | fi | |
e63c594d FF |
1604 | CPP="$ac_cv_prog_CPP" |
1605 | else | |
1606 | ac_cv_prog_CPP="$CPP" | |
b11fb939 | 1607 | fi |
833c46e1 | 1608 | echo "$ac_t""$CPP" 1>&6 |
fb589130 KR |
1609 | |
1610 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h | |
1611 | do | |
f2889110 | 1612 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
833c46e1 KR |
1613 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1614 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1615 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1616 | else |
28d3e4a3 | 1617 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1618 | #line 1619 "configure" |
b11fb939 | 1619 | #include "confdefs.h" |
28d3e4a3 | 1620 | #include <$ac_hdr> |
b11fb939 | 1621 | EOF |
d0352cbb | 1622 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
cbe7dccb | 1623 | { (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
bf111c9f | 1624 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1625 | if test -z "$ac_err"; then |
1626 | rm -rf conftest* | |
fb589130 | 1627 | eval "ac_cv_header_$ac_safe=yes" |
b11fb939 | 1628 | else |
fb589130 | 1629 | echo "$ac_err" >&5 |
b11fb939 | 1630 | rm -rf conftest* |
fb589130 | 1631 | eval "ac_cv_header_$ac_safe=no" |
b11fb939 KR |
1632 | fi |
1633 | rm -f conftest* | |
b11fb939 | 1634 | fi |
fb589130 | 1635 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
833c46e1 | 1636 | echo "$ac_t""yes" 1>&6 |
1c9dbb83 | 1637 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` |
fb589130 | 1638 | cat >> confdefs.h <<EOF |
28d3e4a3 | 1639 | #define $ac_tr_hdr 1 |
b11fb939 | 1640 | EOF |
fb589130 | 1641 | |
b11fb939 | 1642 | else |
833c46e1 | 1643 | echo "$ac_t""no" 1>&6 |
b11fb939 | 1644 | fi |
fb589130 | 1645 | done |
b11fb939 | 1646 | |
b11fb939 | 1647 | |
bf111c9f KR |
1648 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
1649 | # people who are not cross-compiling but are compiling cross-assemblers. | |
833c46e1 | 1650 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6 |
bf111c9f | 1651 | if test "${host}" = "${target}"; then |
ba49e48d KR |
1652 | cross_gas=no |
1653 | else | |
bf111c9f KR |
1654 | cross_gas=yes |
1655 | cat >> confdefs.h <<\EOF | |
1656 | #define CROSS_COMPILE 1 | |
1657 | EOF | |
1658 | ||
bf111c9f | 1659 | fi |
833c46e1 | 1660 | echo "$ac_t""$cross_gas" 1>&6 |
bf111c9f | 1661 | |
b11fb939 | 1662 | # If we cannot run a trivial program, we must be cross compiling. |
833c46e1 KR |
1663 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
1664 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then | |
1665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1666 | else |
1667 | if test "$cross_compiling" = yes; then | |
833c46e1 | 1668 | ac_cv_c_cross=yes |
b11fb939 | 1669 | else |
28d3e4a3 | 1670 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1671 | #line 1672 "configure" |
b11fb939 | 1672 | #include "confdefs.h" |
bf111c9f | 1673 | main(){return(0);} |
b11fb939 | 1674 | EOF |
cbe7dccb | 1675 | { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
b11fb939 KR |
1676 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1677 | ac_cv_c_cross=no | |
1678 | else | |
1679 | ac_cv_c_cross=yes | |
1680 | fi | |
1681 | fi | |
1682 | rm -fr conftest* | |
1683 | fi | |
1c9dbb83 | 1684 | |
0ff513d9 | 1685 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
1c9dbb83 | 1686 | cross_compiling=$ac_cv_c_cross |
b11fb939 KR |
1687 | |
1688 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
1689 | # for constant arguments. Useless! | |
833c46e1 KR |
1690 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
1691 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | |
1692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1693 | else |
28d3e4a3 | 1694 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1695 | #line 1696 "configure" |
b11fb939 KR |
1696 | #include "confdefs.h" |
1697 | #include <alloca.h> | |
1698 | int main() { return 0; } | |
1699 | int t() { | |
1700 | char *p = alloca(2 * sizeof(int)); | |
1701 | ; return 0; } | |
1702 | EOF | |
cbe7dccb | 1703 | if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b11fb939 KR |
1704 | rm -rf conftest* |
1705 | ac_cv_header_alloca_h=yes | |
1706 | else | |
1707 | rm -rf conftest* | |
1708 | ac_cv_header_alloca_h=no | |
1709 | fi | |
1710 | rm -f conftest* | |
1711 | ||
1712 | fi | |
1c9dbb83 | 1713 | |
833c46e1 | 1714 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
b11fb939 KR |
1715 | if test $ac_cv_header_alloca_h = yes; then |
1716 | cat >> confdefs.h <<\EOF | |
1717 | #define HAVE_ALLOCA_H 1 | |
1718 | EOF | |
1719 | ||
1720 | fi | |
1721 | ||
833c46e1 KR |
1722 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
1723 | if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then | |
1724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1725 | else |
28d3e4a3 | 1726 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1727 | #line 1728 "configure" |
b11fb939 KR |
1728 | #include "confdefs.h" |
1729 | ||
1730 | #ifdef __GNUC__ | |
1731 | # define alloca __builtin_alloca | |
1732 | #else | |
1733 | # if HAVE_ALLOCA_H | |
1734 | # include <alloca.h> | |
1735 | # else | |
1736 | # ifdef _AIX | |
1737 | #pragma alloca | |
1738 | # else | |
1739 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1740 | char *alloca (); | |
1741 | # endif | |
1742 | # endif | |
1743 | # endif | |
1744 | #endif | |
1745 | ||
1746 | int main() { return 0; } | |
1747 | int t() { | |
1748 | char *p = (char *) alloca(1); | |
1749 | ; return 0; } | |
1750 | EOF | |
cbe7dccb | 1751 | if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b11fb939 KR |
1752 | rm -rf conftest* |
1753 | ac_cv_func_alloca=yes | |
1754 | else | |
1755 | rm -rf conftest* | |
1756 | ac_cv_func_alloca=no | |
1757 | fi | |
1758 | rm -f conftest* | |
1759 | ||
1760 | fi | |
1c9dbb83 | 1761 | |
833c46e1 | 1762 | echo "$ac_t""$ac_cv_func_alloca" 1>&6 |
b11fb939 KR |
1763 | if test $ac_cv_func_alloca = yes; then |
1764 | cat >> confdefs.h <<\EOF | |
1765 | #define HAVE_ALLOCA 1 | |
1766 | EOF | |
1767 | ||
1768 | fi | |
1769 | ||
1770 | if test $ac_cv_func_alloca = no; then | |
1771 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
1772 | # that cause trouble. Some versions do not even contain alloca or | |
1773 | # contain a buggy version. If you still want to use their alloca, | |
1774 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
1775 | ALLOCA=alloca.o | |
1776 | cat >> confdefs.h <<\EOF | |
1777 | #define C_ALLOCA 1 | |
1778 | EOF | |
1779 | ||
1780 | ||
833c46e1 KR |
1781 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
1782 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | |
1783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1784 | else |
28d3e4a3 | 1785 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1786 | #line 1787 "configure" |
b11fb939 KR |
1787 | #include "confdefs.h" |
1788 | #if defined(CRAY) && ! defined(CRAY2) | |
1789 | webecray | |
1790 | #else | |
1791 | wenotbecray | |
1792 | #endif | |
1793 | ||
1794 | EOF | |
28d3e4a3 | 1795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
fb589130 | 1796 | egrep "webecray" >/dev/null 2>&1; then |
b11fb939 KR |
1797 | rm -rf conftest* |
1798 | ac_cv_os_cray=yes | |
1799 | else | |
1800 | rm -rf conftest* | |
1801 | ac_cv_os_cray=no | |
1802 | fi | |
1803 | rm -f conftest* | |
1804 | ||
1805 | fi | |
1c9dbb83 | 1806 | |
833c46e1 | 1807 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
b11fb939 | 1808 | if test $ac_cv_os_cray = yes; then |
833c46e1 KR |
1809 | for ac_func in _getb67 GETB67 getb67; do |
1810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1813 | else |
28d3e4a3 | 1814 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1815 | #line 1816 "configure" |
b11fb939 | 1816 | #include "confdefs.h" |
833c46e1 KR |
1817 | /* System header to define __stub macros and hopefully few prototypes, |
1818 | which can conflict with char $ac_func(); below. */ | |
1819 | #include <assert.h> | |
f1698cb7 | 1820 | /* Override any gcc2 internal prototype to avoid an error. */ |
df586de2 ILT |
1821 | /* We use char because int might match the return type of a gcc2 |
1822 | builtin and then its argument prototype would still apply. */ | |
1c9dbb83 | 1823 | char $ac_func(); |
f1698cb7 | 1824 | |
b11fb939 KR |
1825 | int main() { return 0; } |
1826 | int t() { | |
1827 | ||
1828 | /* The GNU C library defines this for functions which it implements | |
1829 | to always fail with ENOSYS. Some functions are actually named | |
1830 | something starting with __ and the normal name is an alias. */ | |
833c46e1 | 1831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b11fb939 KR |
1832 | choke me |
1833 | #else | |
833c46e1 | 1834 | $ac_func(); |
b11fb939 KR |
1835 | #endif |
1836 | ||
1837 | ; return 0; } | |
1838 | EOF | |
cbe7dccb | 1839 | if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
b11fb939 | 1840 | rm -rf conftest* |
833c46e1 | 1841 | eval "ac_cv_func_$ac_func=yes" |
b11fb939 KR |
1842 | else |
1843 | rm -rf conftest* | |
833c46e1 | 1844 | eval "ac_cv_func_$ac_func=no" |
b11fb939 KR |
1845 | fi |
1846 | rm -f conftest* | |
1847 | ||
1848 | fi | |
833c46e1 KR |
1849 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
1850 | echo "$ac_t""yes" 1>&6 | |
1851 | cat >> confdefs.h <<EOF | |
1852 | #define CRAY_STACKSEG_END $ac_func | |
b11fb939 KR |
1853 | EOF |
1854 | ||
833c46e1 | 1855 | break |
b11fb939 | 1856 | else |
833c46e1 | 1857 | echo "$ac_t""no" 1>&6 |
b11fb939 KR |
1858 | fi |
1859 | ||
833c46e1 | 1860 | done |
b11fb939 KR |
1861 | fi |
1862 | ||
833c46e1 KR |
1863 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
1864 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | |
1865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1866 | else |
1867 | if test "$cross_compiling" = yes; then | |
bf111c9f | 1868 | ac_cv_c_stack_direction=0 |
b11fb939 | 1869 | else |
28d3e4a3 | 1870 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 1871 | #line 1872 "configure" |
b11fb939 KR |
1872 | #include "confdefs.h" |
1873 | find_stack_direction () | |
1874 | { | |
1875 | static char *addr = 0; | |
1876 | auto char dummy; | |
1877 | if (addr == 0) | |
1878 | { | |
1879 | addr = &dummy; | |
1880 | return find_stack_direction (); | |
1881 | } | |
1882 | else | |
1883 | return (&dummy > addr) ? 1 : -1; | |
1884 | } | |
1885 | main () | |
1886 | { | |
1887 | exit (find_stack_direction() < 0); | |
1888 | } | |
1889 | EOF | |
cbe7dccb | 1890 | { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } |
b11fb939 KR |
1891 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1892 | ac_cv_c_stack_direction=1 | |
1893 | else | |
1894 | ac_cv_c_stack_direction=-1 | |
1895 | fi | |
1896 | fi | |
1897 | rm -fr conftest* | |
1898 | fi | |
1c9dbb83 | 1899 | |
833c46e1 | 1900 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
b11fb939 KR |
1901 | cat >> confdefs.h <<EOF |
1902 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
1903 | EOF | |
1904 | ||
1905 | fi | |
1906 | ||
833c46e1 KR |
1907 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
1908 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
1909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1910 | else |
833c46e1 KR |
1911 | ac_cv_c_inline=no |
1912 | for ac_kw in inline __inline__ __inline; do | |
1913 | cat > conftest.$ac_ext <<EOF | |
cbe7dccb | 1914 | #line 1915 "configure" |
b11fb939 KR |
1915 | #include "confdefs.h" |
1916 | ||
1917 | int main() { return 0; } | |
1918 | int t() { | |
833c46e1 | 1919 | } $ac_kw foo() { |
b11fb939 KR |
1920 | ; return 0; } |
1921 | EOF | |
cbe7dccb | 1922 | if { (eval echo configure:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b11fb939 | 1923 | rm -rf conftest* |
833c46e1 | 1924 | ac_cv_c_inline=$ac_kw; break |
b11fb939 KR |
1925 | fi |
1926 | rm -f conftest* | |
1927 | ||
833c46e1 | 1928 | done |
b11fb939 KR |
1929 | |
1930 | fi | |
1c9dbb83 | 1931 | |
833c46e1 KR |
1932 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
1933 | case "$ac_cv_c_inline" in | |
1934 | inline | yes) ;; | |
1935 | no) cat >> confdefs.h <<\EOF | |
1936 | #define inline | |
1937 | EOF | |
1938 | ;; | |
1939 | *) cat >> confdefs.h <<EOF | |
1940 | #define inline $ac_cv_c_inline | |
1941 | EOF | |
1942 | ;; | |
1943 | esac | |
b11fb939 KR |
1944 | |
1945 | ||
ba49e48d KR |
1946 | # VMS doesn't have unlink. |
1947 | for ac_func in unlink remove | |
b9419dd2 | 1948 | do |
833c46e1 KR |
1949 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1950 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
28d3e4a3 KR |
1952 | else |
1953 | cat > conftest.$ac_ext <<EOF | |
cbe7dccb | 1954 | #line 1955 "configure" |
28d3e4a3 | 1955 | #include "confdefs.h" |
833c46e1 KR |
1956 | /* System header to define __stub macros and hopefully few prototypes, |
1957 | which can conflict with char $ac_func(); below. */ | |
1958 | #include <assert.h> | |
f1698cb7 | 1959 | /* Override any gcc2 internal prototype to avoid an error. */ |
df586de2 ILT |
1960 | /* We use char because int might match the return type of a gcc2 |
1961 | builtin and then its argument prototype would still apply. */ | |
1c9dbb83 | 1962 | char $ac_func(); |
f1698cb7 | 1963 | |
28d3e4a3 KR |
1964 | int main() { return 0; } |
1965 | int t() { | |
1966 | ||
1967 | /* The GNU C library defines this for functions which it implements | |
1968 | to always fail with ENOSYS. Some functions are actually named | |
1969 | something starting with __ and the normal name is an alias. */ | |
b9419dd2 | 1970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
28d3e4a3 KR |
1971 | choke me |
1972 | #else | |
f1698cb7 | 1973 | $ac_func(); |
28d3e4a3 KR |
1974 | #endif |
1975 | ||
1976 | ; return 0; } | |
1977 | EOF | |
cbe7dccb | 1978 | if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
28d3e4a3 | 1979 | rm -rf conftest* |
b9419dd2 | 1980 | eval "ac_cv_func_$ac_func=yes" |
28d3e4a3 KR |
1981 | else |
1982 | rm -rf conftest* | |
b9419dd2 | 1983 | eval "ac_cv_func_$ac_func=no" |
28d3e4a3 KR |
1984 | fi |
1985 | rm -f conftest* | |
1986 | ||
1987 | fi | |
b9419dd2 | 1988 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
833c46e1 | 1989 | echo "$ac_t""yes" 1>&6 |
1c9dbb83 | 1990 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
b9419dd2 KR |
1991 | cat >> confdefs.h <<EOF |
1992 | #define $ac_tr_func 1 | |
28d3e4a3 | 1993 | EOF |
b9419dd2 | 1994 | break |
28d3e4a3 | 1995 | else |
833c46e1 | 1996 | echo "$ac_t""no" 1>&6 |
28d3e4a3 | 1997 | fi |
b9419dd2 | 1998 | done |
28d3e4a3 KR |
1999 | |
2000 | ||
e63c594d FF |
2001 | # Some systems don't have sbrk(). |
2002 | for ac_func in sbrk | |
2003 | do | |
2004 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
2005 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
2006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2007 | else | |
2008 | cat > conftest.$ac_ext <<EOF | |
cbe7dccb | 2009 | #line 2010 "configure" |
e63c594d FF |
2010 | #include "confdefs.h" |
2011 | /* System header to define __stub macros and hopefully few prototypes, | |
2012 | which can conflict with char $ac_func(); below. */ | |
2013 | #include <assert.h> | |
2014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
df586de2 ILT |
2015 | /* We use char because int might match the return type of a gcc2 |
2016 | builtin and then its argument prototype would still apply. */ | |
1c9dbb83 | 2017 | char $ac_func(); |
e63c594d FF |
2018 | |
2019 | int main() { return 0; } | |
2020 | int t() { | |
2021 | ||
2022 | /* The GNU C library defines this for functions which it implements | |
2023 | to always fail with ENOSYS. Some functions are actually named | |
2024 | something starting with __ and the normal name is an alias. */ | |
2025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2026 | choke me | |
2027 | #else | |
2028 | $ac_func(); | |
2029 | #endif | |
2030 | ||
2031 | ; return 0; } | |
2032 | EOF | |
cbe7dccb | 2033 | if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
e63c594d FF |
2034 | rm -rf conftest* |
2035 | eval "ac_cv_func_$ac_func=yes" | |
2036 | else | |
2037 | rm -rf conftest* | |
2038 | eval "ac_cv_func_$ac_func=no" | |
2039 | fi | |
2040 | rm -f conftest* | |
2041 | ||
2042 | fi | |
2043 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2044 | echo "$ac_t""yes" 1>&6 | |
1c9dbb83 | 2045 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
e63c594d FF |
2046 | cat >> confdefs.h <<EOF |
2047 | #define $ac_tr_func 1 | |
2048 | EOF | |
2049 | ||
2050 | else | |
2051 | echo "$ac_t""no" 1>&6 | |
2052 | fi | |
2053 | done | |
2054 | ||
2055 | ||
b11fb939 KR |
2056 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
2057 | # enough, but on some of those systems, the assert macro relies on requoting | |
2058 | # working properly! | |
833c46e1 KR |
2059 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6 |
2060 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then | |
2061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 2062 | else |
28d3e4a3 | 2063 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 2064 | #line 2065 "configure" |
b11fb939 KR |
2065 | #include "confdefs.h" |
2066 | #include <assert.h> | |
2067 | #include <stdio.h> | |
2068 | int main() { return 0; } | |
2069 | int t() { | |
2070 | ||
2071 | /* check for requoting problems */ | |
2072 | static int a, b, c, d; | |
2073 | static char *s; | |
2074 | assert (!strcmp(s, "foo bar baz quux")); | |
2075 | /* check for newline handling */ | |
2076 | assert (a == b | |
2077 | || c == d); | |
2078 | ||
2079 | ; return 0; } | |
2080 | EOF | |
cbe7dccb | 2081 | if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
fb589130 KR |
2082 | rm -rf conftest* |
2083 | gas_cv_assert_ok=yes | |
b11fb939 KR |
2084 | else |
2085 | rm -rf conftest* | |
fb589130 | 2086 | gas_cv_assert_ok=no |
b11fb939 KR |
2087 | fi |
2088 | rm -f conftest* | |
2089 | ||
fb589130 | 2090 | fi |
833c46e1 | 2091 | echo "$ac_t""$gas_cv_assert_ok" 1>&6 |
fb589130 KR |
2092 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF |
2093 | #define BROKEN_ASSERT 1 | |
2094 | EOF | |
2095 | ||
b11fb939 | 2096 | |
bf111c9f | 2097 | |
b11fb939 KR |
2098 | # On some systems, the system header files may not declare malloc, realloc, |
2099 | # and free. There are places where gas needs these functions to have been | |
2100 | # declared -- such as when taking their addresses. | |
bf111c9f | 2101 | gas_test_headers=" |
b11fb939 KR |
2102 | #ifdef HAVE_MEMORY_H |
2103 | #include <memory.h> | |
2104 | #endif | |
2105 | #ifdef HAVE_STRING_H | |
2106 | #include <string.h> | |
2107 | #endif | |
2108 | #ifdef HAVE_STDLIB_H | |
2109 | #include <stdlib.h> | |
2110 | #endif | |
2111 | #ifdef HAVE_UNISTD_H | |
2112 | #include <unistd.h> | |
2113 | #endif | |
bf111c9f | 2114 | " |
b11fb939 | 2115 | |
833c46e1 KR |
2116 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6 |
2117 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then | |
2118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
bf111c9f | 2119 | else |
28d3e4a3 | 2120 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 2121 | #line 2122 "configure" |
bf111c9f KR |
2122 | #include "confdefs.h" |
2123 | $gas_test_headers | |
b11fb939 KR |
2124 | int main() { return 0; } |
2125 | int t() { | |
2126 | ||
bf111c9f KR |
2127 | typedef char *(*f)(); |
2128 | f x; | |
2129 | x = (f) malloc; | |
b11fb939 KR |
2130 | |
2131 | ; return 0; } | |
2132 | EOF | |
cbe7dccb | 2133 | if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
fb589130 | 2134 | rm -rf conftest* |
bf111c9f | 2135 | gas_cv_decl_needed_malloc=no |
b11fb939 KR |
2136 | else |
2137 | rm -rf conftest* | |
bf111c9f | 2138 | gas_cv_decl_needed_malloc=yes |
fb589130 KR |
2139 | fi |
2140 | rm -f conftest* | |
2141 | ||
2142 | fi | |
833c46e1 | 2143 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6 |
bf111c9f KR |
2144 | test $gas_cv_decl_needed_malloc = no || { |
2145 | cat >> confdefs.h <<\EOF | |
2146 | #define NEED_DECLARATION_MALLOC 1 | |
b11fb939 KR |
2147 | EOF |
2148 | ||
bf111c9f KR |
2149 | } |
2150 | ||
b11fb939 | 2151 | |
833c46e1 KR |
2152 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6 |
2153 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then | |
2154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 2155 | else |
28d3e4a3 | 2156 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 2157 | #line 2158 "configure" |
b11fb939 | 2158 | #include "confdefs.h" |
bf111c9f | 2159 | $gas_test_headers |
b11fb939 KR |
2160 | int main() { return 0; } |
2161 | int t() { | |
2162 | ||
5f757edc | 2163 | typedef void (*f)(); |
bf111c9f KR |
2164 | f x; |
2165 | x = (f) free; | |
b11fb939 KR |
2166 | |
2167 | ; return 0; } | |
2168 | EOF | |
cbe7dccb | 2169 | if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
fb589130 | 2170 | rm -rf conftest* |
bf111c9f | 2171 | gas_cv_decl_needed_free=no |
b11fb939 KR |
2172 | else |
2173 | rm -rf conftest* | |
bf111c9f | 2174 | gas_cv_decl_needed_free=yes |
b11fb939 KR |
2175 | fi |
2176 | rm -f conftest* | |
2177 | ||
fb589130 | 2178 | fi |
833c46e1 | 2179 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6 |
bf111c9f KR |
2180 | test $gas_cv_decl_needed_free = no || { |
2181 | cat >> confdefs.h <<\EOF | |
2182 | #define NEED_DECLARATION_FREE 1 | |
fb589130 KR |
2183 | EOF |
2184 | ||
bf111c9f KR |
2185 | } |
2186 | ||
b11fb939 KR |
2187 | |
2188 | # Does errno.h declare errno, or do we have to add a separate declaration | |
2189 | # for it? | |
bf111c9f | 2190 | |
833c46e1 KR |
2191 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6 |
2192 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then | |
2193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 2194 | else |
28d3e4a3 | 2195 | cat > conftest.$ac_ext <<EOF |
cbe7dccb | 2196 | #line 2197 "configure" |
b11fb939 KR |
2197 | #include "confdefs.h" |
2198 | ||
2199 | #ifdef HAVE_ERRNO_H | |
2200 | #include <errno.h> | |
2201 | #endif | |
2202 | ||
2203 | int main() { return 0; } | |
2204 | int t() { | |
2205 | ||
bf111c9f KR |
2206 | typedef int f; |
2207 | f x; | |
2208 | x = (f) errno; | |
b11fb939 KR |
2209 | |
2210 | ; return 0; } | |
2211 | EOF | |
cbe7dccb | 2212 | if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
fb589130 | 2213 | rm -rf conftest* |
bf111c9f | 2214 | gas_cv_decl_needed_errno=no |
b11fb939 KR |
2215 | else |
2216 | rm -rf conftest* | |
bf111c9f | 2217 | gas_cv_decl_needed_errno=yes |
b11fb939 KR |
2218 | fi |
2219 | rm -f conftest* | |
2220 | ||
fb589130 | 2221 | fi |
833c46e1 | 2222 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6 |
bf111c9f KR |
2223 | test $gas_cv_decl_needed_errno = no || { |
2224 | cat >> confdefs.h <<\EOF | |
2225 | #define NEED_DECLARATION_ERRNO 1 | |
fb589130 KR |
2226 | EOF |
2227 | ||
bf111c9f KR |
2228 | } |
2229 | ||
b11fb939 | 2230 | |
1c9dbb83 | 2231 | HLDFLAGS= |
1a2f3c3f | 2232 | RPATH_ENVVAR=LD_LIBRARY_PATH |
1c9dbb83 ILT |
2233 | # If we have shared libraries, try to set rpath reasonably. |
2234 | if test "${shared}" = "true"; then | |
2235 | case "${host}" in | |
56f9773f ILT |
2236 | *-*-hpux*) |
2237 | HLDFLAGS='-Wl,+s,+b,$(libdir)' | |
1a2f3c3f | 2238 | RPATH_ENVVAR=SHLIB_PATH |
56f9773f | 2239 | ;; |
cbe7dccb | 2240 | *-*-irix5* | *-*-irix6*) |
1c9dbb83 ILT |
2241 | HLDFLAGS='-Wl,-rpath,$(libdir)' |
2242 | ;; | |
2243 | *-*-linux*aout*) | |
2244 | ;; | |
2245 | *-*-linux*) | |
2246 | HLDFLAGS='-Wl,-rpath,$(libdir)' | |
2247 | ;; | |
2248 | *-*-sysv4* | *-*-solaris*) | |
2249 | HLDFLAGS='-R $(libdir)' | |
2250 | ;; | |
2251 | esac | |
2252 | fi | |
2253 | ||
2254 | # On SunOS, if the linker supports the -rpath option, use it to | |
2255 | # prevent ../bfd and ../opcodes from being included in the run time | |
2256 | # search path. | |
2257 | case "${host}" in | |
2258 | *-*-sunos*) | |
2259 | echo 'main () { }' > conftest.c | |
2260 | ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t | |
2261 | if grep 'unrecognized' conftest.t >/dev/null 2>&1; then | |
2262 | : | |
2263 | elif grep 'No such file' conftest.t >/dev/null 2>&1; then | |
2264 | : | |
7925f4d4 ILT |
2265 | elif grep 'do not mix' conftest.t >/dev/null 2>&1; then |
2266 | : | |
1c9dbb83 ILT |
2267 | elif test "${shared}" = "true"; then |
2268 | HLDFLAGS='-Wl,-rpath=$(libdir)' | |
2269 | else | |
2270 | HLDFLAGS='-Wl,-rpath=' | |
2271 | fi | |
2272 | rm -f conftest.t conftest.c conftest | |
2273 | ;; | |
2274 | esac | |
2275 | ||
2276 | ||
1a2f3c3f | 2277 | |
ba49e48d | 2278 | trap '' 1 2 15 |
833c46e1 | 2279 | cat > confcache <<\EOF |
b11fb939 KR |
2280 | # This file is a shell script that caches the results of configure |
2281 | # tests run on this system so they can be shared between configure | |
2282 | # scripts and configure runs. It is not useful on other systems. | |
bf111c9f | 2283 | # If it contains results you don't want to keep, you may remove or edit it. |
b11fb939 KR |
2284 | # |
2285 | # By default, configure uses ./config.cache as the cache file, | |
2286 | # creating it if it does not exist already. You can give configure | |
2287 | # the --cache-file=FILE option to use a different cache file; that is | |
2288 | # what configure does when it calls configure scripts in | |
2289 | # subdirectories, so they share the cache. | |
2290 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2291 | # config.status only pays attention to the cache file if you give it the | |
2292 | # --recheck option to rerun configure. | |
e23b25ec | 2293 | # |
b11fb939 | 2294 | EOF |
833c46e1 KR |
2295 | # Ultrix sh set writes to stderr and can't be redirected directly, |
2296 | # and sets the high bit in the cache file unless we assign to the vars. | |
e23b25ec | 2297 | (set) 2>&1 | |
833c46e1 KR |
2298 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
2299 | >> confcache | |
2300 | if cmp -s $cache_file confcache; then | |
2301 | : | |
b11fb939 | 2302 | else |
833c46e1 KR |
2303 | if test -w $cache_file; then |
2304 | echo "updating cache $cache_file" | |
2305 | cat confcache > $cache_file | |
2306 | else | |
2307 | echo "not updating unwritable cache $cache_file" | |
2308 | fi | |
b11fb939 | 2309 | fi |
833c46e1 | 2310 | rm -f confcache |
b11fb939 | 2311 | |
833c46e1 | 2312 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
b11fb939 | 2313 | |
f2889110 | 2314 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
b11fb939 KR |
2315 | # Let make expand exec_prefix. |
2316 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2317 | ||
2318 | # Any assignment to VPATH causes Sun make to only execute | |
2319 | # the first set of double-colon rules, so remove it if not needed. | |
2320 | # If there is a colon in the path, we need to keep it. | |
2321 | if test "x$srcdir" = x.; then | |
2322 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
2323 | fi | |
2324 | ||
2325 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
2326 | ||
2327 | DEFS=-DHAVE_CONFIG_H | |
2328 | ||
2329 | # Without the "./", some shells look in PATH for config.status. | |
2330 | : ${CONFIG_STATUS=./config.status} | |
2331 | ||
28d3e4a3 KR |
2332 | echo creating $CONFIG_STATUS |
2333 | rm -f $CONFIG_STATUS | |
2334 | cat > $CONFIG_STATUS <<EOF | |
833c46e1 | 2335 | #! /bin/sh |
b11fb939 KR |
2336 | # Generated automatically by configure. |
2337 | # Run this file to recreate the current configuration. | |
2338 | # This directory was configured as follows, | |
2339 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
2340 | # | |
e23b25ec | 2341 | # $0 $ac_configure_args |
b11fb939 KR |
2342 | # |
2343 | # Compiler output produced by configure, useful for debugging | |
2344 | # configure, is in ./config.log if it exists. | |
2345 | ||
28d3e4a3 | 2346 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
b11fb939 KR |
2347 | for ac_option |
2348 | do | |
2349 | case "\$ac_option" in | |
2350 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
e23b25ec KR |
2351 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
2352 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
b11fb939 | 2353 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
df586de2 | 2354 | echo "$CONFIG_STATUS generated by autoconf version 2.10" |
b11fb939 KR |
2355 | exit 0 ;; |
2356 | -help | --help | --hel | --he | --h) | |
2357 | echo "\$ac_cs_usage"; exit 0 ;; | |
2358 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
2359 | esac | |
2360 | done | |
2361 | ||
2362 | ac_given_srcdir=$srcdir | |
2363 | ac_given_INSTALL="$INSTALL" | |
2364 | ||
833c46e1 | 2365 | trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
1c9dbb83 ILT |
2366 | EOF |
2367 | cat >> $CONFIG_STATUS <<EOF | |
b11fb939 | 2368 | |
1c9dbb83 ILT |
2369 | # Protect against being on the right side of a sed subst in config.status. |
2370 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
2371 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
b11fb939 KR |
2372 | $ac_vpsub |
2373 | $extrasub | |
b11fb939 | 2374 | s%@CFLAGS@%$CFLAGS%g |
b11fb939 | 2375 | s%@CPPFLAGS@%$CPPFLAGS%g |
bf111c9f KR |
2376 | s%@CXXFLAGS@%$CXXFLAGS%g |
2377 | s%@DEFS@%$DEFS%g | |
b11fb939 | 2378 | s%@LDFLAGS@%$LDFLAGS%g |
bf111c9f KR |
2379 | s%@LIBS@%$LIBS%g |
2380 | s%@exec_prefix@%$exec_prefix%g | |
2381 | s%@prefix@%$prefix%g | |
ba49e48d | 2382 | s%@program_transform_name@%$program_transform_name%g |
1c9dbb83 ILT |
2383 | s%@bindir@%$bindir%g |
2384 | s%@sbindir@%$sbindir%g | |
2385 | s%@libexecdir@%$libexecdir%g | |
2386 | s%@datadir@%$datadir%g | |
2387 | s%@sysconfdir@%$sysconfdir%g | |
2388 | s%@sharedstatedir@%$sharedstatedir%g | |
2389 | s%@localstatedir@%$localstatedir%g | |
2390 | s%@libdir@%$libdir%g | |
2391 | s%@includedir@%$includedir%g | |
2392 | s%@oldincludedir@%$oldincludedir%g | |
2393 | s%@infodir@%$infodir%g | |
2394 | s%@mandir@%$mandir%g | |
b11fb939 KR |
2395 | s%@host@%$host%g |
2396 | s%@host_alias@%$host_alias%g | |
2397 | s%@host_cpu@%$host_cpu%g | |
2398 | s%@host_vendor@%$host_vendor%g | |
2399 | s%@host_os@%$host_os%g | |
2400 | s%@target@%$target%g | |
2401 | s%@target_alias@%$target_alias%g | |
2402 | s%@target_cpu@%$target_cpu%g | |
2403 | s%@target_vendor@%$target_vendor%g | |
2404 | s%@target_os@%$target_os%g | |
2405 | s%@build@%$build%g | |
2406 | s%@build_alias@%$build_alias%g | |
2407 | s%@build_cpu@%$build_cpu%g | |
2408 | s%@build_vendor@%$build_vendor%g | |
2409 | s%@build_os@%$build_os%g | |
b11fb939 KR |
2410 | /@target_frag@/r $target_frag |
2411 | s%@target_frag@%%g | |
e7757ad0 | 2412 | s%@extra_objects@%$extra_objects%g |
bf4bd1fc | 2413 | s%@target_cpu_type@%$target_cpu_type%g |
833c46e1 KR |
2414 | s%@obj_format@%$obj_format%g |
2415 | s%@atof@%$atof%g | |
ae09d880 ILT |
2416 | s%@OPCODES_DEP@%$OPCODES_DEP%g |
2417 | s%@OPCODES_LIB@%$OPCODES_LIB%g | |
1c9dbb83 | 2418 | s%@BFDDEP@%$BFDDEP%g |
b11fb939 KR |
2419 | s%@BFDLIB@%$BFDLIB%g |
2420 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g | |
2421 | s%@CC@%$CC%g | |
2422 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2423 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2424 | s%@CPP@%$CPP%g | |
2425 | s%@ALLOCA@%$ALLOCA%g | |
1c9dbb83 | 2426 | s%@HLDFLAGS@%$HLDFLAGS%g |
1a2f3c3f | 2427 | s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g |
b11fb939 KR |
2428 | |
2429 | CEOF | |
2430 | EOF | |
28d3e4a3 | 2431 | cat >> $CONFIG_STATUS <<EOF |
b11fb939 | 2432 | |
28d3e4a3 | 2433 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"} |
bf111c9f | 2434 | EOF |
28d3e4a3 KR |
2435 | cat >> $CONFIG_STATUS <<\EOF |
2436 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
b11fb939 KR |
2437 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
2438 | case "$ac_file" in | |
2439 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2440 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2441 | *) ac_file_in="${ac_file}.in" ;; | |
2442 | esac | |
2443 | ||
2444 | # Adjust relative srcdir, etc. for subdirectories. | |
2445 | ||
2446 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2447 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2448 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2449 | # The file is in a subdirectory. | |
2450 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
833c46e1 | 2451 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
b11fb939 KR |
2452 | # A "../" for each directory in $ac_dir_suffix. |
2453 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2454 | else | |
2455 | ac_dir_suffix= ac_dots= | |
2456 | fi | |
2457 | ||
2458 | case "$ac_given_srcdir" in | |
2459 | .) srcdir=. | |
2460 | if test -z "$ac_dots"; then top_srcdir=. | |
2461 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2462 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2463 | *) # Relative path. | |
2464 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2465 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2466 | esac | |
2467 | ||
2468 | case "$ac_given_INSTALL" in | |
2469 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
28d3e4a3 | 2470 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
b11fb939 KR |
2471 | esac |
2472 | echo creating "$ac_file" | |
2473 | rm -f "$ac_file" | |
28d3e4a3 | 2474 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
ba49e48d KR |
2475 | case "$ac_file" in |
2476 | *Makefile*) ac_comsub="1i\\ | |
2477 | # $configure_input" ;; | |
2478 | *) ac_comsub= ;; | |
2479 | esac | |
2480 | sed -e "$ac_comsub | |
28d3e4a3 | 2481 | s%@configure_input@%$configure_input%g |
b11fb939 KR |
2482 | s%@srcdir@%$srcdir%g |
2483 | s%@top_srcdir@%$top_srcdir%g | |
2484 | s%@INSTALL@%$INSTALL%g | |
2485 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
2486 | fi; done | |
2487 | rm -f conftest.subs | |
2488 | ||
2489 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2490 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2491 | # | |
2492 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2493 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2494 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2495 | ac_dC='\3' | |
2496 | ac_dD='%g' | |
2497 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2498 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2499 | ac_uB='\([ ]\)%\1#\2define\3' | |
2500 | ac_uC=' ' | |
2501 | ac_uD='\4%g' | |
2502 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2503 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2504 | ac_eB='$%\1#\2define\3' | |
2505 | ac_eC=' ' | |
2506 | ac_eD='%g' | |
2507 | ||
2508 | CONFIG_HEADERS=${CONFIG_HEADERS-"conf"} | |
28d3e4a3 | 2509 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
b11fb939 KR |
2510 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
2511 | case "$ac_file" in | |
2512 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2513 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2514 | *) ac_file_in="${ac_file}.in" ;; | |
2515 | esac | |
2516 | ||
2517 | echo creating $ac_file | |
2518 | ||
2519 | rm -f conftest.frag conftest.in conftest.out | |
2520 | cp $ac_given_srcdir/$ac_file_in conftest.in | |
2521 | ||
2522 | EOF | |
2523 | ||
2524 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
fb589130 | 2525 | # the proper values into config.h.in to produce config.h. And first: |
1c9dbb83 | 2526 | # Protect against being on the right side of a sed subst in config.status. |
fb589130 | 2527 | # Protect against being in an unquoted here document in config.status. |
b11fb939 KR |
2528 | rm -f conftest.vals |
2529 | cat > conftest.hdr <<\EOF | |
b11fb939 | 2530 | s/[\\&%]/\\&/g |
b11fb939 | 2531 | s%[\\$`]%\\&%g |
df586de2 | 2532 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
b11fb939 KR |
2533 | s%ac_d%ac_u%gp |
2534 | s%ac_u%ac_e%gp | |
2535 | EOF | |
2536 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2537 | rm -f conftest.hdr | |
2538 | ||
2539 | # This sed command replaces #undef with comments. This is necessary, for | |
2540 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2541 | # on some systems where configure will not decide to define it. | |
2542 | cat >> conftest.vals <<\EOF | |
2543 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2544 | EOF | |
2545 | ||
2546 | # Break up conftest.vals because some shells have a limit on | |
2547 | # the size of here documents, and old seds have small limits too. | |
2548 | # Maximum number of lines to put in a single here document. | |
2549 | ac_max_here_lines=12 | |
2550 | ||
2551 | rm -f conftest.tail | |
2552 | while : | |
2553 | do | |
2554 | ac_lines=`grep -c . conftest.vals` | |
2555 | # grep -c gives empty output for an empty file on some AIX systems. | |
2556 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2557 | # Write a limited-size here document to conftest.frag. | |
28d3e4a3 KR |
2558 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
2559 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
b11fb939 KR |
2560 | echo 'CEOF |
2561 | sed -f conftest.frag conftest.in > conftest.out | |
2562 | rm -f conftest.in | |
2563 | mv conftest.out conftest.in | |
28d3e4a3 | 2564 | ' >> $CONFIG_STATUS |
b11fb939 KR |
2565 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
2566 | rm -f conftest.vals | |
2567 | mv conftest.tail conftest.vals | |
2568 | done | |
2569 | rm -f conftest.vals | |
2570 | ||
28d3e4a3 | 2571 | cat >> $CONFIG_STATUS <<\EOF |
b11fb939 KR |
2572 | rm -f conftest.frag conftest.h |
2573 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2574 | cat conftest.in >> conftest.h | |
2575 | rm -f conftest.in | |
2576 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2577 | echo "$ac_file is unchanged" | |
2578 | rm -f conftest.h | |
2579 | else | |
df586de2 ILT |
2580 | # Remove last slash and all that follows it. Not all systems have dirname. |
2581 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2582 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2583 | # The file is in a subdirectory. | |
2584 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
2585 | fi | |
b11fb939 KR |
2586 | rm -f $ac_file |
2587 | mv conftest.h $ac_file | |
2588 | fi | |
2589 | fi; done | |
2590 | ||
2591 | EOF | |
2592 | ||
28d3e4a3 | 2593 | cat >> $CONFIG_STATUS <<EOF |
e7757ad0 KR |
2594 | ac_sources="$files" |
2595 | ac_dests="$links" | |
b11fb939 KR |
2596 | EOF |
2597 | ||
28d3e4a3 | 2598 | cat >> $CONFIG_STATUS <<\EOF |
bf111c9f | 2599 | srcdir=$ac_given_srcdir |
28d3e4a3 KR |
2600 | while test -n "$ac_sources"; do |
2601 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2602 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
b11fb939 | 2603 | |
28d3e4a3 KR |
2604 | echo "linking $srcdir/$ac_source to $ac_dest" |
2605 | ||
2606 | if test ! -r $srcdir/$ac_source; then | |
ba49e48d | 2607 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
28d3e4a3 KR |
2608 | fi |
2609 | rm -f $ac_dest | |
b11fb939 | 2610 | |
28d3e4a3 KR |
2611 | # Make relative symlinks. |
2612 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2613 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2614 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2615 | # The dest file is in a subdirectory. | |
2616 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
833c46e1 | 2617 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
28d3e4a3 KR |
2618 | # A "../" for each directory in $ac_dest_dir_suffix. |
2619 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2620 | else | |
2621 | ac_dest_dir_suffix= ac_dots= | |
b11fb939 | 2622 | fi |
28d3e4a3 KR |
2623 | |
2624 | case "$srcdir" in | |
2625 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2626 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2627 | esac | |
2628 | ||
b11fb939 | 2629 | # Make a symlink if possible; otherwise try a hard link. |
28d3e4a3 KR |
2630 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
2631 | ln $srcdir/$ac_source $ac_dest; then : | |
b11fb939 | 2632 | else |
ba49e48d | 2633 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
b11fb939 KR |
2634 | fi |
2635 | done | |
2636 | ||
bf111c9f | 2637 | |
36e889af | 2638 | exit 0 |
b11fb939 | 2639 | EOF |
28d3e4a3 | 2640 | chmod +x $CONFIG_STATUS |
bf111c9f | 2641 | rm -fr confdefs* $ac_clean_files |
833c46e1 | 2642 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
b11fb939 | 2643 |