]>
Commit | Line | Data |
---|---|---|
005537df | 1 | #! /bin/sh |
861bb6c1 JL |
2 | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
b27d2bd5 | 4 | # Generated automatically using autoconf version 2.13 |
861bb6c1 JL |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --with-gnu-ld arrange to work with GNU ld." | |
ab339d62 AO |
16 | ac_help="$ac_help |
17 | --with-ld arrange to use the specified ld (full pathname)." | |
861bb6c1 JL |
18 | ac_help="$ac_help |
19 | --with-gnu-as arrange to work with GNU as." | |
ab339d62 AO |
20 | ac_help="$ac_help |
21 | --with-as arrange to use the specified as (full pathname)." | |
861bb6c1 JL |
22 | ac_help="$ac_help |
23 | --with-stabs arrange to use stabs instead of host debug format." | |
24 | ac_help="$ac_help | |
25 | --with-elf arrange to use ELF instead of host debug format." | |
26 | ac_help="$ac_help | |
27 | --with-local-prefix=DIR specifies directory to put local include." | |
28 | ac_help="$ac_help | |
29 | --with-gxx-include-dir=DIR | |
30 | specifies directory to put g++ header files." | |
a494747c | 31 | ac_help="$ac_help |
f4524c9e ZW |
32 | --enable-checking[=LIST] |
33 | enable expensive run-time checks. With LIST, | |
34 | enable only specific categories of checks. | |
35 | Categories are: misc,tree,rtl,gc,gcac; default | |
36 | is misc,tree,rtl" | |
3ecc3258 ZW |
37 | ac_help="$ac_help |
38 | --disable-cpp don't provide a user-visible C preprocessor." | |
39 | ac_help="$ac_help | |
40 | --with-cpp-install-dir=DIR | |
41 | install the user visible C preprocessor in DIR | |
42 | (relative to PREFIX) as well as PREFIX/bin." | |
c5c76735 JL |
43 | ac_help="$ac_help |
44 | --enable-c-mbchar Enable multibyte characters for C and C++." | |
861bb6c1 JL |
45 | ac_help="$ac_help |
46 | --enable-threads enable thread usage for target GCC. | |
47 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
48 | ac_help="$ac_help |
49 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
50 | the GNU Objective-C runtime." | |
90e6a802 | 51 | ac_help="$ac_help |
756ee602 | 52 | --with-dwarf2 force the default debug format to be DWARF2." |
ab87f8c8 | 53 | ac_help="$ac_help |
dc6746e7 | 54 | --enable-nls use Native Language Support (default)" |
ab87f8c8 JL |
55 | ac_help="$ac_help |
56 | --disable-nls do not use Native Language Support" | |
57 | ac_help="$ac_help | |
58 | --with-included-gettext use the GNU gettext library included here" | |
59 | ac_help="$ac_help | |
60 | --with-catgets use catgets functions if available" | |
f4ab28e3 MK |
61 | ac_help="$ac_help |
62 | --disable-win32-registry | |
63 | Disable lookup of installation paths in the | |
64 | Registry on Windows hosts. | |
65 | --enable-win32-registry Enable registry lookup (default). | |
66 | --enable-win32-registry=KEY | |
67 | Use KEY instead of GCC version as the last portion | |
68 | of the registry key." | |
81bf3d9e RH |
69 | ac_help="$ac_help |
70 | --with-gc={simple,page} Choose the garbage collection mechanism to use | |
71 | with the compiler." | |
7441a352 NS |
72 | ac_help="$ac_help |
73 | --enable-new-gxx-abi | |
74 | select the new abi for g++. You must select an ABI | |
75 | at configuration time, so that the correct runtime | |
76 | support is built. You cannot mix ABIs." | |
7822500a BK |
77 | ac_help="$ac_help |
78 | --enable-libstdcxx-v3 | |
79 | enable libstdc++-v3 for building and installation" | |
dc6746e7 PT |
80 | ac_help="$ac_help |
81 | --enable-maintainer-mode enable make rules and dependencies not useful | |
82 | (and sometimes confusing) to the casual installer" | |
861bb6c1 JL |
83 | |
84 | # Initialize some variables set by options. | |
85 | # The variables have the same names as the options, with | |
86 | # dashes changed to underlines. | |
87 | build=NONE | |
88 | cache_file=./config.cache | |
89 | exec_prefix=NONE | |
90 | host=NONE | |
91 | no_create= | |
92 | nonopt=NONE | |
93 | no_recursion= | |
94 | prefix=NONE | |
95 | program_prefix=NONE | |
96 | program_suffix=NONE | |
97 | program_transform_name=s,x,x, | |
98 | silent= | |
99 | site= | |
100 | srcdir= | |
101 | target=NONE | |
102 | verbose= | |
103 | x_includes=NONE | |
104 | x_libraries=NONE | |
105 | bindir='${exec_prefix}/bin' | |
106 | sbindir='${exec_prefix}/sbin' | |
107 | libexecdir='${exec_prefix}/libexec' | |
108 | datadir='${prefix}/share' | |
109 | sysconfdir='${prefix}/etc' | |
110 | sharedstatedir='${prefix}/com' | |
111 | localstatedir='${prefix}/var' | |
112 | libdir='${exec_prefix}/lib' | |
113 | includedir='${prefix}/include' | |
114 | oldincludedir='/usr/include' | |
115 | infodir='${prefix}/info' | |
116 | mandir='${prefix}/man' | |
117 | ||
118 | # Initialize some other variables. | |
119 | subdirs= | |
120 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 121 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
122 | # Maximum number of lines to put in a shell here document. |
123 | ac_max_here_lines=12 | |
124 | ||
125 | ac_prev= | |
126 | for ac_option | |
127 | do | |
128 | ||
129 | # If the previous option needs an argument, assign it. | |
130 | if test -n "$ac_prev"; then | |
131 | eval "$ac_prev=\$ac_option" | |
132 | ac_prev= | |
133 | continue | |
134 | fi | |
135 | ||
136 | case "$ac_option" in | |
137 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
138 | *) ac_optarg= ;; | |
139 | esac | |
140 | ||
141 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
142 | ||
143 | case "$ac_option" in | |
144 | ||
145 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
146 | ac_prev=bindir ;; | |
147 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
148 | bindir="$ac_optarg" ;; | |
149 | ||
150 | -build | --build | --buil | --bui | --bu) | |
151 | ac_prev=build ;; | |
152 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
153 | build="$ac_optarg" ;; | |
154 | ||
155 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
156 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
157 | ac_prev=cache_file ;; | |
158 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
159 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
160 | cache_file="$ac_optarg" ;; | |
161 | ||
162 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
163 | ac_prev=datadir ;; | |
164 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
165 | | --da=*) | |
166 | datadir="$ac_optarg" ;; | |
167 | ||
168 | -disable-* | --disable-*) | |
169 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
170 | # Reject names that are not valid shell variable names. | |
171 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
172 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
173 | fi | |
174 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
175 | eval "enable_${ac_feature}=no" ;; | |
176 | ||
177 | -enable-* | --enable-*) | |
178 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
179 | # Reject names that are not valid shell variable names. | |
180 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
181 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
182 | fi | |
183 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
184 | case "$ac_option" in | |
185 | *=*) ;; | |
186 | *) ac_optarg=yes ;; | |
187 | esac | |
188 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
189 | ||
190 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
191 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
192 | | --exec | --exe | --ex) | |
193 | ac_prev=exec_prefix ;; | |
194 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
195 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
196 | | --exec=* | --exe=* | --ex=*) | |
197 | exec_prefix="$ac_optarg" ;; | |
198 | ||
199 | -gas | --gas | --ga | --g) | |
200 | # Obsolete; use --with-gas. | |
201 | with_gas=yes ;; | |
202 | ||
203 | -help | --help | --hel | --he) | |
204 | # Omit some internal or obsolete options to make the list less imposing. | |
205 | # This message is too long to be a string in the A/UX 3.1 sh. | |
206 | cat << EOF | |
207 | Usage: configure [options] [host] | |
208 | Options: [defaults in brackets after descriptions] | |
209 | Configuration: | |
210 | --cache-file=FILE cache test results in FILE | |
211 | --help print this message | |
212 | --no-create do not create output files | |
213 | --quiet, --silent do not print \`checking...' messages | |
214 | --version print the version of autoconf that created configure | |
215 | Directory and file names: | |
216 | --prefix=PREFIX install architecture-independent files in PREFIX | |
217 | [$ac_default_prefix] | |
218 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
219 | [same as prefix] | |
220 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
221 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
222 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
223 | --datadir=DIR read-only architecture-independent data in DIR | |
224 | [PREFIX/share] | |
225 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
226 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
227 | [PREFIX/com] | |
228 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
229 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
230 | --includedir=DIR C header files in DIR [PREFIX/include] | |
231 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
232 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
233 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
234 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
235 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
236 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
237 | --program-transform-name=PROGRAM | |
238 | run sed PROGRAM on installed program names | |
239 | EOF | |
240 | cat << EOF | |
241 | Host type: | |
242 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
243 | --host=HOST configure for HOST [guessed] | |
244 | --target=TARGET configure for TARGET [TARGET=HOST] | |
245 | Features and packages: | |
246 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
247 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
248 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
249 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
250 | --x-includes=DIR X include files are in DIR | |
251 | --x-libraries=DIR X library files are in DIR | |
252 | EOF | |
253 | if test -n "$ac_help"; then | |
254 | echo "--enable and --with options recognized:$ac_help" | |
255 | fi | |
256 | exit 0 ;; | |
257 | ||
258 | -host | --host | --hos | --ho) | |
259 | ac_prev=host ;; | |
260 | -host=* | --host=* | --hos=* | --ho=*) | |
261 | host="$ac_optarg" ;; | |
262 | ||
263 | -includedir | --includedir | --includedi | --included | --include \ | |
264 | | --includ | --inclu | --incl | --inc) | |
265 | ac_prev=includedir ;; | |
266 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
267 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
268 | includedir="$ac_optarg" ;; | |
269 | ||
270 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
271 | ac_prev=infodir ;; | |
272 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
273 | infodir="$ac_optarg" ;; | |
274 | ||
275 | -libdir | --libdir | --libdi | --libd) | |
276 | ac_prev=libdir ;; | |
277 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
278 | libdir="$ac_optarg" ;; | |
279 | ||
280 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
281 | | --libexe | --libex | --libe) | |
282 | ac_prev=libexecdir ;; | |
283 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
284 | | --libexe=* | --libex=* | --libe=*) | |
285 | libexecdir="$ac_optarg" ;; | |
286 | ||
287 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
288 | | --localstate | --localstat | --localsta | --localst \ | |
289 | | --locals | --local | --loca | --loc | --lo) | |
290 | ac_prev=localstatedir ;; | |
291 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
292 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
293 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
294 | localstatedir="$ac_optarg" ;; | |
295 | ||
296 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
297 | ac_prev=mandir ;; | |
298 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
299 | mandir="$ac_optarg" ;; | |
300 | ||
301 | -nfp | --nfp | --nf) | |
302 | # Obsolete; use --without-fp. | |
303 | with_fp=no ;; | |
304 | ||
305 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
306 | | --no-cr | --no-c) | |
307 | no_create=yes ;; | |
308 | ||
309 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
310 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
311 | no_recursion=yes ;; | |
312 | ||
313 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
314 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
315 | | --oldin | --oldi | --old | --ol | --o) | |
316 | ac_prev=oldincludedir ;; | |
317 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
318 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
319 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
320 | oldincludedir="$ac_optarg" ;; | |
321 | ||
322 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
323 | ac_prev=prefix ;; | |
324 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
325 | prefix="$ac_optarg" ;; | |
326 | ||
327 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
328 | | --program-pre | --program-pr | --program-p) | |
329 | ac_prev=program_prefix ;; | |
330 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
331 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
332 | program_prefix="$ac_optarg" ;; | |
333 | ||
334 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
335 | | --program-suf | --program-su | --program-s) | |
336 | ac_prev=program_suffix ;; | |
337 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
338 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
339 | program_suffix="$ac_optarg" ;; | |
340 | ||
341 | -program-transform-name | --program-transform-name \ | |
342 | | --program-transform-nam | --program-transform-na \ | |
343 | | --program-transform-n | --program-transform- \ | |
344 | | --program-transform | --program-transfor \ | |
345 | | --program-transfo | --program-transf \ | |
346 | | --program-trans | --program-tran \ | |
347 | | --progr-tra | --program-tr | --program-t) | |
348 | ac_prev=program_transform_name ;; | |
349 | -program-transform-name=* | --program-transform-name=* \ | |
350 | | --program-transform-nam=* | --program-transform-na=* \ | |
351 | | --program-transform-n=* | --program-transform-=* \ | |
352 | | --program-transform=* | --program-transfor=* \ | |
353 | | --program-transfo=* | --program-transf=* \ | |
354 | | --program-trans=* | --program-tran=* \ | |
355 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
356 | program_transform_name="$ac_optarg" ;; | |
357 | ||
358 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
359 | | -silent | --silent | --silen | --sile | --sil) | |
360 | silent=yes ;; | |
361 | ||
362 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
363 | ac_prev=sbindir ;; | |
364 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
365 | | --sbi=* | --sb=*) | |
366 | sbindir="$ac_optarg" ;; | |
367 | ||
368 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
369 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
370 | | --sharedst | --shareds | --shared | --share | --shar \ | |
371 | | --sha | --sh) | |
372 | ac_prev=sharedstatedir ;; | |
373 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
374 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
375 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
376 | | --sha=* | --sh=*) | |
377 | sharedstatedir="$ac_optarg" ;; | |
378 | ||
379 | -site | --site | --sit) | |
380 | ac_prev=site ;; | |
381 | -site=* | --site=* | --sit=*) | |
382 | site="$ac_optarg" ;; | |
383 | ||
384 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
385 | ac_prev=srcdir ;; | |
386 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
387 | srcdir="$ac_optarg" ;; | |
388 | ||
389 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
390 | | --syscon | --sysco | --sysc | --sys | --sy) | |
391 | ac_prev=sysconfdir ;; | |
392 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
393 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
394 | sysconfdir="$ac_optarg" ;; | |
395 | ||
396 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
397 | ac_prev=target ;; | |
398 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
399 | target="$ac_optarg" ;; | |
400 | ||
401 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
402 | verbose=yes ;; | |
403 | ||
404 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 405 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
406 | exit 0 ;; |
407 | ||
408 | -with-* | --with-*) | |
409 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
412 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
413 | fi | |
414 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
415 | case "$ac_option" in | |
416 | *=*) ;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "with_${ac_package}='$ac_optarg'" ;; | |
420 | ||
421 | -without-* | --without-*) | |
422 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
423 | # Reject names that are not valid shell variable names. | |
424 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
425 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
426 | fi | |
427 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
428 | eval "with_${ac_package}=no" ;; | |
429 | ||
430 | --x) | |
431 | # Obsolete; use --with-x. | |
432 | with_x=yes ;; | |
433 | ||
434 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
435 | | --x-incl | --x-inc | --x-in | --x-i) | |
436 | ac_prev=x_includes ;; | |
437 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
438 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
439 | x_includes="$ac_optarg" ;; | |
440 | ||
441 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
442 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
443 | ac_prev=x_libraries ;; | |
444 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
445 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
446 | x_libraries="$ac_optarg" ;; | |
447 | ||
448 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
449 | ;; | |
450 | ||
451 | *) | |
452 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
453 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
454 | fi | |
455 | if test "x$nonopt" != xNONE; then | |
456 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
457 | fi | |
458 | nonopt="$ac_option" | |
459 | ;; | |
460 | ||
461 | esac | |
462 | done | |
463 | ||
464 | if test -n "$ac_prev"; then | |
465 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
466 | fi | |
467 | ||
468 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
469 | ||
470 | # File descriptor usage: | |
471 | # 0 standard input | |
472 | # 1 file creation | |
473 | # 2 errors and warnings | |
474 | # 3 some systems may open it to /dev/tty | |
475 | # 4 used on the Kubota Titan | |
476 | # 6 checking for... messages and results | |
477 | # 5 compiler messages saved in config.log | |
478 | if test "$silent" = yes; then | |
479 | exec 6>/dev/null | |
480 | else | |
481 | exec 6>&1 | |
482 | fi | |
483 | exec 5>./config.log | |
484 | ||
485 | echo "\ | |
486 | This file contains any messages produced by compilers while | |
487 | running configure, to aid debugging if configure makes a mistake. | |
488 | " 1>&5 | |
489 | ||
490 | # Strip out --no-create and --no-recursion so they do not pile up. | |
491 | # Also quote any args containing shell metacharacters. | |
492 | ac_configure_args= | |
493 | for ac_arg | |
494 | do | |
495 | case "$ac_arg" in | |
496 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
497 | | --no-cr | --no-c) ;; | |
498 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
499 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
500 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
501 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
502 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
503 | esac | |
504 | done | |
505 | ||
506 | # NLS nuisances. | |
507 | # Only set these to C if already set. These must not be set unconditionally | |
508 | # because not all systems understand e.g. LANG=C (notably SCO). | |
509 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
510 | # Non-C LC_CTYPE values break the ctype check. | |
511 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
512 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
513 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
514 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
515 | ||
516 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
517 | rm -rf conftest* confdefs.h | |
518 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
519 | echo > confdefs.h | |
520 | ||
521 | # A filename unique to this package, relative to the directory that | |
522 | # configure is in, which we can look for to find out if srcdir is correct. | |
523 | ac_unique_file=tree.c | |
524 | ||
525 | # Find the source files, if location was not specified. | |
526 | if test -z "$srcdir"; then | |
527 | ac_srcdir_defaulted=yes | |
528 | # Try the directory containing this script, then its parent. | |
529 | ac_prog=$0 | |
530 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
531 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
532 | srcdir=$ac_confdir | |
533 | if test ! -r $srcdir/$ac_unique_file; then | |
534 | srcdir=.. | |
535 | fi | |
536 | else | |
537 | ac_srcdir_defaulted=no | |
538 | fi | |
539 | if test ! -r $srcdir/$ac_unique_file; then | |
540 | if test "$ac_srcdir_defaulted" = yes; then | |
541 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
542 | else | |
543 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
544 | fi | |
545 | fi | |
546 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
547 | ||
548 | # Prefer explicitly selected file to automatically selected ones. | |
24e971f6 JL |
549 | if test -z "$CONFIG_SITE"; then |
550 | if test "x$prefix" != xNONE; then | |
551 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
552 | else | |
553 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
554 | fi |
555 | fi | |
556 | for ac_site_file in $CONFIG_SITE; do | |
557 | if test -r "$ac_site_file"; then | |
558 | echo "loading site script $ac_site_file" | |
559 | . "$ac_site_file" | |
560 | fi | |
561 | done | |
562 | ||
563 | if test -r "$cache_file"; then | |
564 | echo "loading cache $cache_file" | |
565 | . $cache_file | |
566 | else | |
567 | echo "creating cache $cache_file" | |
568 | > $cache_file | |
569 | fi | |
570 | ||
571 | ac_ext=c | |
572 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
573 | ac_cpp='$CPP $CPPFLAGS' | |
574 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 575 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
576 | cross_compiling=$ac_cv_prog_cc_cross |
577 | ||
cd9e5e7c MK |
578 | ac_exeext= |
579 | ac_objext=o | |
861bb6c1 JL |
580 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
581 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
582 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
583 | ac_n= ac_c=' | |
584 | ' ac_t=' ' | |
585 | else | |
586 | ac_n=-n ac_c= ac_t= | |
587 | fi | |
588 | else | |
589 | ac_n= ac_c='\c' ac_t= | |
590 | fi | |
591 | ||
592 | ||
593 | ||
594 | ||
861bb6c1 JL |
595 | remove=rm |
596 | hard_link=ln | |
597 | symbolic_link='ln -s' | |
598 | copy=cp | |
599 | ||
75a39864 JL |
600 | # Check for bogus environment variables. |
601 | # Test if LIBRARY_PATH contains the notation for the current directory | |
602 | # since this would lead to problems installing/building glibc. | |
603 | # LIBRARY_PATH contains the current directory if one of the following | |
604 | # is true: | |
605 | # - one of the terminals (":" and ";") is the first or last sign | |
606 | # - two terminals occur directly after each other | |
607 | # - the path contains an element with a dot in it | |
608 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
dc6746e7 | 609 | echo "configure:610: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
610 | case ${LIBRARY_PATH} in |
611 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
612 | library_path_setting="contains current directory" | |
613 | ;; | |
614 | *) | |
615 | library_path_setting="ok" | |
616 | ;; | |
617 | esac | |
618 | echo "$ac_t""$library_path_setting" 1>&6 | |
619 | if test "$library_path_setting" != "ok"; then | |
620 | { echo "configure: error: | |
621 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 622 | *** building gcc. Please change the environment variable |
75a39864 JL |
623 | *** and run configure again." 1>&2; exit 1; } |
624 | fi | |
625 | ||
626 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
627 | # since this would lead to problems installing/building glibc. | |
628 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
629 | # is true: | |
630 | # - one of the terminals (":" and ";") is the first or last sign | |
631 | # - two terminals occur directly after each other | |
632 | # - the path contains an element with a dot in it | |
633 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
dc6746e7 | 634 | echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
635 | case ${GCC_EXEC_PREFIX} in |
636 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
637 | gcc_exec_prefix_setting="contains current directory" | |
638 | ;; | |
639 | *) | |
640 | gcc_exec_prefix_setting="ok" | |
641 | ;; | |
642 | esac | |
643 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
644 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
645 | { echo "configure: error: | |
646 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 647 | *** building gcc. Please change the environment variable |
75a39864 JL |
648 | *** and run configure again." 1>&2; exit 1; } |
649 | fi | |
650 | ||
861bb6c1 JL |
651 | # Check for additional parameters |
652 | ||
653 | # With GNU ld | |
654 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
655 | if test "${with_gnu_ld+set}" = set; then | |
656 | withval="$with_gnu_ld" | |
df6faf79 | 657 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 658 | else |
df6faf79 | 659 | gnu_ld_flag=no |
861bb6c1 JL |
660 | fi |
661 | ||
662 | ||
ab339d62 AO |
663 | # With pre-defined ld |
664 | # Check whether --with-ld or --without-ld was given. | |
665 | if test "${with_ld+set}" = set; then | |
666 | withval="$with_ld" | |
3ccc3a56 | 667 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
668 | fi |
669 | ||
3ccc3a56 AO |
670 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
671 | if test ! -x "$DEFAULT_LINKER"; then | |
672 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 673 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
674 | gnu_ld_flag=yes |
675 | fi | |
676 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 677 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
678 | EOF |
679 | ||
680 | fi | |
681 | ||
861bb6c1 JL |
682 | # With GNU as |
683 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
684 | if test "${with_gnu_as+set}" = set; then | |
685 | withval="$with_gnu_as" | |
df6faf79 | 686 | gas_flag="$with_gnu_as" |
861bb6c1 | 687 | else |
df6faf79 | 688 | gas_flag=no |
861bb6c1 JL |
689 | fi |
690 | ||
691 | ||
ab339d62 AO |
692 | # Check whether --with-as or --without-as was given. |
693 | if test "${with_as+set}" = set; then | |
694 | withval="$with_as" | |
3ccc3a56 | 695 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
696 | fi |
697 | ||
3ccc3a56 AO |
698 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
699 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
700 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 701 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
702 | gas_flag=yes |
703 | fi | |
704 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 705 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
706 | EOF |
707 | ||
3ccc3a56 | 708 | fi |
ab339d62 | 709 | |
861bb6c1 JL |
710 | # With stabs |
711 | # Check whether --with-stabs or --without-stabs was given. | |
712 | if test "${with_stabs+set}" = set; then | |
713 | withval="$with_stabs" | |
535b86ce | 714 | stabs="$with_stabs" |
861bb6c1 JL |
715 | else |
716 | stabs=no | |
717 | fi | |
718 | ||
719 | ||
720 | # With ELF | |
721 | # Check whether --with-elf or --without-elf was given. | |
722 | if test "${with_elf+set}" = set; then | |
723 | withval="$with_elf" | |
535b86ce | 724 | elf="$with_elf" |
861bb6c1 JL |
725 | else |
726 | elf=no | |
727 | fi | |
728 | ||
729 | ||
730 | # Specify the local prefix | |
4e88d51b | 731 | local_prefix= |
861bb6c1 JL |
732 | # Check whether --with-local-prefix or --without-local-prefix was given. |
733 | if test "${with_local_prefix+set}" = set; then | |
734 | withval="$with_local_prefix" | |
4e88d51b JM |
735 | case "${withval}" in |
736 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
737 | no) ;; | |
738 | *) local_prefix=$with_local_prefix ;; | |
739 | esac | |
861bb6c1 JL |
740 | fi |
741 | ||
742 | ||
743 | # Default local prefix if it is empty | |
75bffa71 | 744 | if test x$local_prefix = x; then |
861bb6c1 JL |
745 | local_prefix=/usr/local |
746 | fi | |
747 | ||
8f8d3278 NC |
748 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
749 | # passed in by the toplevel make and thus we'd get different behavior | |
750 | # depending on where we built the sources. | |
751 | gcc_gxx_include_dir= | |
861bb6c1 JL |
752 | # Specify the g++ header file directory |
753 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
754 | if test "${with_gxx_include_dir+set}" = set; then | |
755 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
756 | case "${withval}" in |
757 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
758 | no) ;; | |
8f8d3278 | 759 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 760 | esac |
861bb6c1 JL |
761 | fi |
762 | ||
763 | ||
8f8d3278 | 764 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 765 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 766 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 767 | else |
a270b446 | 768 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 769 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
770 | fi |
771 | fi | |
772 | ||
a494747c MM |
773 | # Enable expensive internal checks |
774 | # Check whether --enable-checking or --disable-checking was given. | |
775 | if test "${enable_checking+set}" = set; then | |
776 | enableval="$enable_checking" | |
119d24d1 KG |
777 | ac_checking= |
778 | ac_tree_checking= | |
779 | ac_rtl_checking= | |
780 | ac_gc_checking= | |
781 | ac_gc_always_collect= | |
782 | case "${enableval}" in | |
783 | yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;; | |
4e88d51b | 784 | no) ;; |
1c521d41 | 785 | *) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS," |
f4524c9e ZW |
786 | set fnord $enableval; shift |
787 | IFS="$ac_save_IFS" | |
c62e45ad KG |
788 | for check |
789 | do | |
f4524c9e | 790 | case $check in |
119d24d1 KG |
791 | misc) ac_checking=1 ;; |
792 | tree) ac_tree_checking=1 ;; | |
793 | rtl) ac_rtl_checking=1 ;; | |
794 | gc) ac_gc_checking=1 ;; | |
795 | gcac) ac_gc_always_collect=1 ;; | |
796 | *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; | |
797 | esac | |
798 | done | |
799 | ;; | |
800 | esac | |
801 | if test x$ac_checking != x ; then | |
802 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
803 | #define ENABLE_CHECKING 1 |
804 | EOF | |
119d24d1 KG |
805 | |
806 | fi | |
807 | if test x$ac_tree_checking != x ; then | |
808 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
809 | #define ENABLE_TREE_CHECKING 1 |
810 | EOF | |
119d24d1 KG |
811 | |
812 | fi | |
813 | if test x$ac_rtl_checking != x ; then | |
814 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
815 | #define ENABLE_RTL_CHECKING 1 |
816 | EOF | |
119d24d1 KG |
817 | |
818 | fi | |
819 | if test x$ac_gc_checking != x ; then | |
820 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
821 | #define ENABLE_GC_CHECKING 1 |
822 | EOF | |
119d24d1 KG |
823 | |
824 | fi | |
825 | if test x$ac_gc_always_collect != x ; then | |
826 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
827 | #define ENABLE_GC_ALWAYS_COLLECT 1 |
828 | EOF | |
119d24d1 KG |
829 | |
830 | fi | |
831 | ||
a494747c MM |
832 | fi |
833 | ||
834 | ||
3ecc3258 ZW |
835 | # Check whether --enable-cpp or --disable-cpp was given. |
836 | if test "${enable_cpp+set}" = set; then | |
837 | enableval="$enable_cpp" | |
838 | : | |
839 | else | |
840 | enable_cpp=yes | |
841 | fi | |
842 | ||
843 | ||
844 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
845 | if test "${with_cpp_install_dir+set}" = set; then | |
846 | withval="$with_cpp_install_dir" | |
847 | if test x$withval = xyes; then | |
848 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
849 | elif test x$withval != xno; then | |
850 | cpp_install_dir=$withval | |
851 | fi | |
852 | fi | |
853 | ||
854 | ||
f81a440f | 855 | |
c5c76735 JL |
856 | # Enable Multibyte Characters for C/C++ |
857 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
858 | if test "${enable_c_mbchar+set}" = set; then | |
859 | enableval="$enable_c_mbchar" | |
2618c083 | 860 | if test x$enable_c_mbchar != xno; then |
64fb023e | 861 | extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1" |
c5c76735 JL |
862 | fi |
863 | fi | |
864 | ||
865 | ||
861bb6c1 JL |
866 | # Enable threads |
867 | # Pass with no value to take the default | |
868 | # Pass with a value to specify a thread package | |
869 | # Check whether --enable-threads or --disable-threads was given. | |
870 | if test "${enable_threads+set}" = set; then | |
871 | enableval="$enable_threads" | |
75bffa71 | 872 | if test x$enable_threads = xno; then |
861bb6c1 JL |
873 | enable_threads='' |
874 | fi | |
875 | else | |
876 | enable_threads='' | |
877 | fi | |
878 | ||
879 | ||
e445171e | 880 | enable_threads_flag=$enable_threads |
861bb6c1 | 881 | # Check if a valid thread package |
e445171e | 882 | case x${enable_threads_flag} in |
861bb6c1 JL |
883 | x | xno) |
884 | # No threads | |
a851212a | 885 | target_thread_file='single' |
861bb6c1 JL |
886 | ;; |
887 | xyes) | |
888 | # default | |
a851212a | 889 | target_thread_file='' |
861bb6c1 JL |
890 | ;; |
891 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 892 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 893 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
894 | ;; |
895 | *) | |
896 | echo "$enable_threads is an unknown thread package" 1>&2 | |
897 | exit 1 | |
898 | ;; | |
899 | esac | |
900 | ||
d8bb17c8 OP |
901 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
902 | if test "${enable_objc_gc+set}" = set; then | |
903 | enableval="$enable_objc_gc" | |
2618c083 | 904 | if test x$enable_objc_gc = xno; then |
d8bb17c8 OP |
905 | objc_boehm_gc='' |
906 | else | |
907 | objc_boehm_gc=1 | |
908 | fi | |
909 | else | |
910 | objc_boehm_gc='' | |
911 | fi | |
912 | ||
913 | ||
90e6a802 RL |
914 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
915 | if test "${with_dwarf2+set}" = set; then | |
916 | withval="$with_dwarf2" | |
917 | dwarf2="$with_dwarf2" | |
918 | else | |
919 | dwarf2=no | |
920 | fi | |
921 | ||
922 | ||
861bb6c1 JL |
923 | # Determine the host, build, and target systems |
924 | ac_aux_dir= | |
925 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
926 | if test -f $ac_dir/install-sh; then | |
927 | ac_aux_dir=$ac_dir | |
928 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
929 | break | |
930 | elif test -f $ac_dir/install.sh; then | |
931 | ac_aux_dir=$ac_dir | |
932 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
933 | break | |
934 | fi | |
935 | done | |
936 | if test -z "$ac_aux_dir"; then | |
937 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
938 | fi | |
939 | ac_config_guess=$ac_aux_dir/config.guess | |
940 | ac_config_sub=$ac_aux_dir/config.sub | |
941 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
942 | ||
943 | ||
944 | # Do some error checking and defaulting for the host and target type. | |
945 | # The inputs are: | |
946 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
947 | # | |
948 | # The rules are: | |
949 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
950 | # same time. | |
951 | # 2. Host defaults to nonopt. | |
952 | # 3. If nonopt is not specified, then host defaults to the current host, | |
953 | # as determined by config.guess. | |
954 | # 4. Target and build default to nonopt. | |
955 | # 5. If nonopt is not specified, then target and build default to host. | |
956 | ||
957 | # The aliases save the names the user supplied, while $host etc. | |
958 | # will get canonicalized. | |
959 | case $host---$target---$nonopt in | |
960 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
961 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
962 | esac | |
963 | ||
964 | ||
965 | # Make sure we can run config.sub. | |
6f144c9c | 966 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
967 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
968 | fi | |
969 | ||
970 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
dc6746e7 | 971 | echo "configure:972: checking host system type" >&5 |
861bb6c1 JL |
972 | |
973 | host_alias=$host | |
974 | case "$host_alias" in | |
975 | NONE) | |
976 | case $nonopt in | |
977 | NONE) | |
6f144c9c | 978 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
979 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
980 | fi ;; | |
981 | *) host_alias=$nonopt ;; | |
982 | esac ;; | |
983 | esac | |
984 | ||
6f144c9c | 985 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
986 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
987 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
988 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
989 | echo "$ac_t""$host" 1>&6 | |
990 | ||
991 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
dc6746e7 | 992 | echo "configure:993: checking target system type" >&5 |
861bb6c1 JL |
993 | |
994 | target_alias=$target | |
995 | case "$target_alias" in | |
996 | NONE) | |
997 | case $nonopt in | |
998 | NONE) target_alias=$host_alias ;; | |
999 | *) target_alias=$nonopt ;; | |
1000 | esac ;; | |
1001 | esac | |
1002 | ||
6f144c9c | 1003 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
1004 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1005 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1006 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1007 | echo "$ac_t""$target" 1>&6 | |
1008 | ||
1009 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
dc6746e7 | 1010 | echo "configure:1011: checking build system type" >&5 |
861bb6c1 JL |
1011 | |
1012 | build_alias=$build | |
1013 | case "$build_alias" in | |
1014 | NONE) | |
1015 | case $nonopt in | |
1016 | NONE) build_alias=$host_alias ;; | |
1017 | *) build_alias=$nonopt ;; | |
1018 | esac ;; | |
1019 | esac | |
1020 | ||
6f144c9c | 1021 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1022 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1023 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1024 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1025 | echo "$ac_t""$build" 1>&6 | |
1026 | ||
1027 | test "$host_alias" != "$target_alias" && | |
1028 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1029 | NONENONEs,x,x, && | |
1030 | program_prefix=${target_alias}- | |
1031 | ||
1032 | ||
e9a25f70 JL |
1033 | # Find the native compiler |
1034 | # Extract the first word of "gcc", so it can be a program name with args. | |
1035 | set dummy gcc; ac_word=$2 | |
1036 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1037 | echo "configure:1038: checking for $ac_word" >&5 |
e9a25f70 JL |
1038 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1040 | else | |
1041 | if test -n "$CC"; then | |
1042 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1043 | else | |
cd9e5e7c | 1044 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1045 | ac_dummy="$PATH" |
1046 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1047 | test -z "$ac_dir" && ac_dir=. |
1048 | if test -f $ac_dir/$ac_word; then | |
1049 | ac_cv_prog_CC="gcc" | |
1050 | break | |
1051 | fi | |
1052 | done | |
1053 | IFS="$ac_save_ifs" | |
1054 | fi | |
1055 | fi | |
1056 | CC="$ac_cv_prog_CC" | |
1057 | if test -n "$CC"; then | |
1058 | echo "$ac_t""$CC" 1>&6 | |
1059 | else | |
1060 | echo "$ac_t""no" 1>&6 | |
1061 | fi | |
1062 | ||
1063 | if test -z "$CC"; then | |
1064 | # Extract the first word of "cc", so it can be a program name with args. | |
1065 | set dummy cc; ac_word=$2 | |
1066 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1067 | echo "configure:1068: checking for $ac_word" >&5 |
e9a25f70 JL |
1068 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1070 | else | |
1071 | if test -n "$CC"; then | |
1072 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1073 | else | |
cd9e5e7c | 1074 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1075 | ac_prog_rejected=no |
b27d2bd5 MK |
1076 | ac_dummy="$PATH" |
1077 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1078 | test -z "$ac_dir" && ac_dir=. |
1079 | if test -f $ac_dir/$ac_word; then | |
1080 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1081 | ac_prog_rejected=yes | |
1082 | continue | |
1083 | fi | |
1084 | ac_cv_prog_CC="cc" | |
1085 | break | |
1086 | fi | |
1087 | done | |
1088 | IFS="$ac_save_ifs" | |
1089 | if test $ac_prog_rejected = yes; then | |
1090 | # We found a bogon in the path, so make sure we never use it. | |
1091 | set dummy $ac_cv_prog_CC | |
1092 | shift | |
1093 | if test $# -gt 0; then | |
1094 | # We chose a different compiler from the bogus one. | |
1095 | # However, it has the same basename, so the bogon will be chosen | |
1096 | # first if we set CC to just the basename; use the full file name. | |
1097 | shift | |
1098 | set dummy "$ac_dir/$ac_word" "$@" | |
1099 | shift | |
1100 | ac_cv_prog_CC="$@" | |
1101 | fi | |
1102 | fi | |
1103 | fi | |
1104 | fi | |
1105 | CC="$ac_cv_prog_CC" | |
1106 | if test -n "$CC"; then | |
1107 | echo "$ac_t""$CC" 1>&6 | |
1108 | else | |
1109 | echo "$ac_t""no" 1>&6 | |
1110 | fi | |
1111 | ||
cd9e5e7c MK |
1112 | if test -z "$CC"; then |
1113 | case "`uname -s`" in | |
1114 | *win32* | *WIN32*) | |
1115 | # Extract the first word of "cl", so it can be a program name with args. | |
1116 | set dummy cl; ac_word=$2 | |
1117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1118 | echo "configure:1119: checking for $ac_word" >&5 |
cd9e5e7c MK |
1119 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1121 | else | |
1122 | if test -n "$CC"; then | |
1123 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1124 | else | |
1125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1126 | ac_dummy="$PATH" |
1127 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1128 | test -z "$ac_dir" && ac_dir=. |
1129 | if test -f $ac_dir/$ac_word; then | |
1130 | ac_cv_prog_CC="cl" | |
1131 | break | |
1132 | fi | |
1133 | done | |
1134 | IFS="$ac_save_ifs" | |
1135 | fi | |
1136 | fi | |
1137 | CC="$ac_cv_prog_CC" | |
1138 | if test -n "$CC"; then | |
1139 | echo "$ac_t""$CC" 1>&6 | |
1140 | else | |
1141 | echo "$ac_t""no" 1>&6 | |
1142 | fi | |
1143 | ;; | |
1144 | esac | |
1145 | fi | |
e9a25f70 JL |
1146 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1147 | fi | |
1148 | ||
1149 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
dc6746e7 | 1150 | echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1151 | |
1152 | ac_ext=c | |
1153 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1154 | ac_cpp='$CPP $CPPFLAGS' | |
1155 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1156 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1157 | cross_compiling=$ac_cv_prog_cc_cross |
1158 | ||
b27d2bd5 MK |
1159 | cat > conftest.$ac_ext << EOF |
1160 | ||
dc6746e7 | 1161 | #line 1162 "configure" |
e9a25f70 | 1162 | #include "confdefs.h" |
b27d2bd5 | 1163 | |
e9a25f70 JL |
1164 | main(){return(0);} |
1165 | EOF | |
dc6746e7 | 1166 | if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1167 | ac_cv_prog_cc_works=yes |
1168 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1169 | if (./conftest; exit) 2>/dev/null; then | |
1170 | ac_cv_prog_cc_cross=no | |
1171 | else | |
1172 | ac_cv_prog_cc_cross=yes | |
1173 | fi | |
1174 | else | |
1175 | echo "configure: failed program was:" >&5 | |
1176 | cat conftest.$ac_ext >&5 | |
1177 | ac_cv_prog_cc_works=no | |
1178 | fi | |
1179 | rm -fr conftest* | |
b27d2bd5 MK |
1180 | ac_ext=c |
1181 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1182 | ac_cpp='$CPP $CPPFLAGS' | |
1183 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1184 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1185 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1186 | |
1187 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1188 | if test $ac_cv_prog_cc_works = no; then | |
1189 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1190 | fi | |
1191 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
dc6746e7 | 1192 | echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1193 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1194 | cross_compiling=$ac_cv_prog_cc_cross | |
1195 | ||
1196 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
dc6746e7 | 1197 | echo "configure:1198: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1198 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1200 | else | |
1201 | cat > conftest.c <<EOF | |
1202 | #ifdef __GNUC__ | |
1203 | yes; | |
1204 | #endif | |
1205 | EOF | |
dc6746e7 | 1206 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1207 | ac_cv_prog_gcc=yes |
1208 | else | |
1209 | ac_cv_prog_gcc=no | |
1210 | fi | |
1211 | fi | |
1212 | ||
1213 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1214 | ||
1215 | if test $ac_cv_prog_gcc = yes; then | |
1216 | GCC=yes | |
cd9e5e7c MK |
1217 | else |
1218 | GCC= | |
1219 | fi | |
1220 | ||
1221 | ac_test_CFLAGS="${CFLAGS+set}" | |
1222 | ac_save_CFLAGS="$CFLAGS" | |
1223 | CFLAGS= | |
1224 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
dc6746e7 | 1225 | echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1226 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1228 | else | |
1229 | echo 'void f(){}' > conftest.c | |
1230 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1231 | ac_cv_prog_cc_g=yes | |
1232 | else | |
1233 | ac_cv_prog_cc_g=no | |
1234 | fi | |
1235 | rm -f conftest* | |
1236 | ||
1237 | fi | |
1238 | ||
1239 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1240 | if test "$ac_test_CFLAGS" = set; then |
1241 | CFLAGS="$ac_save_CFLAGS" | |
1242 | elif test $ac_cv_prog_cc_g = yes; then | |
1243 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1244 | CFLAGS="-g -O2" |
1245 | else | |
cd9e5e7c | 1246 | CFLAGS="-g" |
81814e35 | 1247 | fi |
3723cad9 | 1248 | else |
cd9e5e7c MK |
1249 | if test "$GCC" = yes; then |
1250 | CFLAGS="-O2" | |
1251 | else | |
1252 | CFLAGS= | |
1253 | fi | |
e9a25f70 JL |
1254 | fi |
1255 | ||
3ec83fc2 RH |
1256 | if test "x$CC" != xcc; then |
1257 | echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 | |
dc6746e7 | 1258 | echo "configure:1259: checking whether $CC and cc understand -c and -o together" >&5 |
3ec83fc2 RH |
1259 | else |
1260 | echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 | |
dc6746e7 | 1261 | echo "configure:1262: checking whether cc understands -c and -o together" >&5 |
3ec83fc2 RH |
1262 | fi |
1263 | set dummy $CC; ac_cc="`echo $2 | | |
1264 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" | |
1265 | if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then | |
1266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1267 | else | |
1268 | echo 'foo(){}' > conftest.c | |
1269 | # Make sure it works both with $CC and with simple cc. | |
1270 | # We do the test twice because some compilers refuse to overwrite an | |
1271 | # existing .o file with -o, though they will create one. | |
1272 | ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' | |
dc6746e7 PT |
1273 | if { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
1274 | test -f conftest.o && { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
3ec83fc2 RH |
1275 | then |
1276 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
1277 | if test "x$CC" != xcc; then | |
1278 | # Test first that cc exists at all. | |
dc6746e7 | 1279 | if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
3ec83fc2 | 1280 | ac_try='cc -c conftest.c -o conftest.o 1>&5' |
dc6746e7 PT |
1281 | if { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
1282 | test -f conftest.o && { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; | |
3ec83fc2 RH |
1283 | then |
1284 | # cc works too. | |
1285 | : | |
1286 | else | |
1287 | # cc exists but doesn't like -o. | |
1288 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
1289 | fi | |
1290 | fi | |
1291 | fi | |
1292 | else | |
1293 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
1294 | fi | |
1295 | rm -f conftest* | |
1296 | ||
1297 | fi | |
1298 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
1299 | echo "$ac_t""yes" 1>&6 | |
1300 | else | |
1301 | echo "$ac_t""no" 1>&6 | |
1302 | cat >> confdefs.h <<\EOF | |
1303 | #define NO_MINUS_C_MINUS_O 1 | |
1304 | EOF | |
1305 | ||
1306 | fi | |
1307 | ||
e38df833 | 1308 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then |
b4c7e567 PDM |
1309 | NO_MINUS_C_MINUS_O=yes |
1310 | fi | |
3ec83fc2 RH |
1311 | |
1312 | ||
04cabffc | 1313 | echo $ac_n "checking for long double""... $ac_c" 1>&6 |
dc6746e7 | 1314 | echo "configure:1315: checking for long double" >&5 |
04cabffc KG |
1315 | if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then |
1316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1317 | else | |
1318 | if test "$GCC" = yes; then | |
1319 | gcc_cv_c_long_double=yes | |
1320 | else | |
1321 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1322 | #line 1323 "configure" |
04cabffc KG |
1323 | #include "confdefs.h" |
1324 | ||
1325 | int main() { | |
1326 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
1327 | long double foo = 0.0; | |
1328 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
1329 | switch (0) case 0: case (sizeof(long double) >= sizeof(double)):; | |
1330 | ; return 0; } | |
1331 | EOF | |
dc6746e7 | 1332 | if { (eval echo configure:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
04cabffc KG |
1333 | rm -rf conftest* |
1334 | gcc_cv_c_long_double=yes | |
1335 | else | |
1336 | echo "configure: failed program was:" >&5 | |
1337 | cat conftest.$ac_ext >&5 | |
1338 | rm -rf conftest* | |
1339 | gcc_cv_c_long_double=no | |
1340 | fi | |
1341 | rm -f conftest* | |
1342 | fi | |
1343 | fi | |
1344 | ||
1345 | echo "$ac_t""$gcc_cv_c_long_double" 1>&6 | |
1346 | if test $gcc_cv_c_long_double = yes; then | |
1347 | cat >> confdefs.h <<\EOF | |
1348 | #define HAVE_LONG_DOUBLE 1 | |
1349 | EOF | |
1350 | ||
1351 | fi | |
1352 | ||
61842080 | 1353 | |
ff5def20 | 1354 | echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6 |
dc6746e7 | 1355 | echo "configure:1356: checking whether ${CC-cc} accepts -Wno-long-long" >&5 |
ff5def20 DA |
1356 | echo 'void f(){}' > conftest.c |
1357 | if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then | |
1358 | ac_cv_prog_cc_no_long_long=yes | |
1359 | else | |
1360 | ac_cv_prog_cc_no_long_long=no | |
1361 | fi | |
1362 | rm -f conftest* | |
1363 | echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6 | |
1364 | ||
61842080 MM |
1365 | # If the native compiler is GCC, we can enable warnings even in stage1. |
1366 | # That's useful for people building cross-compilers, or just running a | |
1367 | # quick `make'. | |
f45c9d95 | 1368 | stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes" |
ff5def20 | 1369 | stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long" |
61842080 | 1370 | if test "x$GCC" = "xyes"; then |
ff5def20 DA |
1371 | if test $ac_cv_prog_cc_no_long_long = yes; then |
1372 | stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long" | |
1373 | fi | |
61842080 MM |
1374 | else |
1375 | stage1_warn_cflags="" | |
1376 | fi | |
1377 | ||
1378 | ||
ff5def20 | 1379 | |
e9a25f70 | 1380 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
dc6746e7 | 1381 | echo "configure:1382: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1382 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1383 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1385 | else | |
1386 | cat > conftestmake <<\EOF | |
1387 | all: | |
1388 | @echo 'ac_maketemp="${MAKE}"' | |
1389 | EOF | |
1390 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1391 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1392 | if test -n "$ac_maketemp"; then | |
1393 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1394 | else | |
1395 | eval ac_cv_prog_make_${ac_make}_set=no | |
1396 | fi | |
1397 | rm -f conftestmake | |
1398 | fi | |
1399 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1400 | echo "$ac_t""yes" 1>&6 | |
1401 | SET_MAKE= | |
1402 | else | |
1403 | echo "$ac_t""no" 1>&6 | |
1404 | SET_MAKE="MAKE=${MAKE-make}" | |
1405 | fi | |
1406 | ||
1407 | ||
ab339d62 | 1408 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
dc6746e7 | 1409 | echo "configure:1410: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1410 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1411 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1412 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1413 | else |
3ccc3a56 | 1414 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1415 | fi |
1416 | else | |
1417 | echo "$ac_t""no" 1>&6 | |
1418 | fi | |
1419 | ||
1420 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
dc6746e7 | 1421 | echo "configure:1422: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1422 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1423 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1424 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1425 | else |
3ccc3a56 | 1426 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1427 | fi |
1428 | else | |
1429 | echo "$ac_t""no" 1>&6 | |
1430 | fi | |
1431 | ||
861bb6c1 | 1432 | # Find some useful tools |
d8e7c884 | 1433 | for ac_prog in mawk gawk nawk awk |
861bb6c1 JL |
1434 | do |
1435 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1436 | set dummy $ac_prog; ac_word=$2 | |
1437 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1438 | echo "configure:1439: checking for $ac_word" >&5 |
861bb6c1 JL |
1439 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1441 | else | |
1442 | if test -n "$AWK"; then | |
1443 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1444 | else | |
cd9e5e7c | 1445 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1446 | ac_dummy="$PATH" |
1447 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1448 | test -z "$ac_dir" && ac_dir=. |
1449 | if test -f $ac_dir/$ac_word; then | |
1450 | ac_cv_prog_AWK="$ac_prog" | |
1451 | break | |
1452 | fi | |
1453 | done | |
1454 | IFS="$ac_save_ifs" | |
1455 | fi | |
1456 | fi | |
1457 | AWK="$ac_cv_prog_AWK" | |
1458 | if test -n "$AWK"; then | |
1459 | echo "$ac_t""$AWK" 1>&6 | |
1460 | else | |
1461 | echo "$ac_t""no" 1>&6 | |
1462 | fi | |
1463 | ||
1464 | test -n "$AWK" && break | |
1465 | done | |
1466 | ||
1467 | # Extract the first word of "flex", so it can be a program name with args. | |
1468 | set dummy flex; ac_word=$2 | |
1469 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1470 | echo "configure:1471: checking for $ac_word" >&5 |
861bb6c1 JL |
1471 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1473 | else | |
1474 | if test -n "$LEX"; then | |
1475 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1476 | else | |
cd9e5e7c | 1477 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1478 | ac_dummy="$PATH" |
1479 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1480 | test -z "$ac_dir" && ac_dir=. |
1481 | if test -f $ac_dir/$ac_word; then | |
1482 | ac_cv_prog_LEX="flex" | |
1483 | break | |
1484 | fi | |
1485 | done | |
1486 | IFS="$ac_save_ifs" | |
1487 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1488 | fi | |
1489 | fi | |
1490 | LEX="$ac_cv_prog_LEX" | |
1491 | if test -n "$LEX"; then | |
1492 | echo "$ac_t""$LEX" 1>&6 | |
1493 | else | |
1494 | echo "$ac_t""no" 1>&6 | |
1495 | fi | |
1496 | ||
1497 | if test -z "$LEXLIB" | |
1498 | then | |
1499 | case "$LEX" in | |
1500 | flex*) ac_lib=fl ;; | |
1501 | *) ac_lib=l ;; | |
1502 | esac | |
1503 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
dc6746e7 | 1504 | echo "configure:1505: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1505 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1506 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1508 | else | |
1509 | ac_save_LIBS="$LIBS" | |
1510 | LIBS="-l$ac_lib $LIBS" | |
1511 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1512 | #line 1513 "configure" |
861bb6c1 JL |
1513 | #include "confdefs.h" |
1514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1515 | /* We use char because int might match the return type of a gcc2 | |
1516 | builtin and then its argument prototype would still apply. */ | |
1517 | char yywrap(); | |
1518 | ||
1519 | int main() { | |
1520 | yywrap() | |
1521 | ; return 0; } | |
1522 | EOF | |
dc6746e7 | 1523 | if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1524 | rm -rf conftest* |
1525 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1526 | else | |
1527 | echo "configure: failed program was:" >&5 | |
1528 | cat conftest.$ac_ext >&5 | |
1529 | rm -rf conftest* | |
1530 | eval "ac_cv_lib_$ac_lib_var=no" | |
1531 | fi | |
1532 | rm -f conftest* | |
1533 | LIBS="$ac_save_LIBS" | |
1534 | ||
1535 | fi | |
1536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1537 | echo "$ac_t""yes" 1>&6 | |
1538 | LEXLIB="-l$ac_lib" | |
1539 | else | |
1540 | echo "$ac_t""no" 1>&6 | |
1541 | fi | |
1542 | ||
1543 | fi | |
1544 | ||
0a4b6309 | 1545 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
dc6746e7 | 1546 | echo "configure:1547: checking whether ln works" >&5 |
0a4b6309 RL |
1547 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1549 | else | |
1550 | rm -f conftestdata_t | |
1551 | echo >conftestdata_f | |
1552 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1553 | then | |
1554 | gcc_cv_prog_LN="ln" | |
1555 | else | |
1556 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1557 | then | |
1558 | gcc_cv_prog_LN="ln -s" | |
1559 | else | |
1560 | gcc_cv_prog_LN=cp | |
1561 | fi | |
1562 | fi | |
1563 | rm -f conftestdata_f conftestdata_t | |
1564 | ||
1565 | fi | |
1566 | LN="$gcc_cv_prog_LN" | |
1567 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1568 | echo "$ac_t""yes" 1>&6 | |
1569 | else | |
1570 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1571 | echo "$ac_t""no, using ln -s" 1>&6 | |
1572 | else | |
1573 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1574 | fi | |
1575 | fi | |
1576 | ||
1577 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
dc6746e7 | 1578 | echo "configure:1579: checking whether ln -s works" >&5 |
0a4b6309 RL |
1579 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1581 | else | |
1582 | rm -f conftestdata_t | |
1583 | echo >conftestdata_f | |
1584 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1585 | then | |
1586 | gcc_cv_prog_LN_S="ln -s" | |
1587 | else | |
1588 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1589 | then | |
1590 | gcc_cv_prog_LN_S=ln | |
1591 | else | |
1592 | gcc_cv_prog_LN_S=cp | |
1593 | fi | |
1594 | fi | |
1595 | rm -f conftestdata_f conftestdata_t | |
1596 | ||
1597 | fi | |
1598 | LN_S="$gcc_cv_prog_LN_S" | |
1599 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1600 | echo "$ac_t""yes" 1>&6 | |
1601 | else | |
1602 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1603 | echo "$ac_t""no, using ln" 1>&6 | |
1604 | else | |
1605 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1606 | fi | |
1607 | fi | |
1608 | ||
1609 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
dc6746e7 | 1610 | echo "configure:1611: checking for volatile" >&5 |
0a4b6309 RL |
1611 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1613 | else | |
1614 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1615 | #line 1616 "configure" |
0a4b6309 RL |
1616 | #include "confdefs.h" |
1617 | ||
1618 | int main() { | |
1619 | volatile int foo; | |
1620 | ; return 0; } | |
1621 | EOF | |
dc6746e7 | 1622 | if { (eval echo configure:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1623 | rm -rf conftest* |
1624 | gcc_cv_c_volatile=yes | |
1625 | else | |
1626 | echo "configure: failed program was:" >&5 | |
1627 | cat conftest.$ac_ext >&5 | |
1628 | rm -rf conftest* | |
1629 | gcc_cv_c_volatile=no | |
1630 | fi | |
1631 | rm -f conftest* | |
1632 | fi | |
1633 | ||
1634 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1635 | if test $gcc_cv_c_volatile = yes ; then | |
1636 | cat >> confdefs.h <<\EOF | |
1637 | #define HAVE_VOLATILE 1 | |
1638 | EOF | |
1639 | ||
1640 | fi | |
1641 | ||
861bb6c1 JL |
1642 | # Extract the first word of "ranlib", so it can be a program name with args. |
1643 | set dummy ranlib; ac_word=$2 | |
1644 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1645 | echo "configure:1646: checking for $ac_word" >&5 |
861bb6c1 JL |
1646 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1648 | else | |
1649 | if test -n "$RANLIB"; then | |
1650 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1651 | else | |
cd9e5e7c | 1652 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1653 | ac_dummy="$PATH" |
1654 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1655 | test -z "$ac_dir" && ac_dir=. |
1656 | if test -f $ac_dir/$ac_word; then | |
1657 | ac_cv_prog_RANLIB="ranlib" | |
1658 | break | |
1659 | fi | |
1660 | done | |
1661 | IFS="$ac_save_ifs" | |
1662 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1663 | fi | |
1664 | fi | |
1665 | RANLIB="$ac_cv_prog_RANLIB" | |
1666 | if test -n "$RANLIB"; then | |
1667 | echo "$ac_t""$RANLIB" 1>&6 | |
1668 | else | |
1669 | echo "$ac_t""no" 1>&6 | |
1670 | fi | |
1671 | ||
1672 | for ac_prog in 'bison -y' byacc | |
1673 | do | |
1674 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1675 | set dummy $ac_prog; ac_word=$2 | |
1676 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 1677 | echo "configure:1678: checking for $ac_word" >&5 |
861bb6c1 JL |
1678 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1680 | else | |
1681 | if test -n "$YACC"; then | |
1682 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1683 | else | |
cd9e5e7c | 1684 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1685 | ac_dummy="$PATH" |
1686 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1687 | test -z "$ac_dir" && ac_dir=. |
1688 | if test -f $ac_dir/$ac_word; then | |
1689 | ac_cv_prog_YACC="$ac_prog" | |
1690 | break | |
1691 | fi | |
1692 | done | |
1693 | IFS="$ac_save_ifs" | |
1694 | fi | |
1695 | fi | |
1696 | YACC="$ac_cv_prog_YACC" | |
1697 | if test -n "$YACC"; then | |
1698 | echo "$ac_t""$YACC" 1>&6 | |
1699 | else | |
1700 | echo "$ac_t""no" 1>&6 | |
1701 | fi | |
1702 | ||
1703 | test -n "$YACC" && break | |
1704 | done | |
1705 | test -n "$YACC" || YACC="yacc" | |
1706 | ||
0a4b6309 RL |
1707 | # Find a good install program. We prefer a C program (faster), |
1708 | # so one script is as good as another. But avoid the broken or | |
1709 | # incompatible versions: | |
1710 | # SysV /etc/install, /usr/sbin/install | |
1711 | # SunOS /usr/etc/install | |
1712 | # IRIX /sbin/install | |
1713 | # AIX /bin/install | |
1714 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1715 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1716 | # ./install, which can be erroneously created by make from ./install.sh. | |
1717 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
dc6746e7 | 1718 | echo "configure:1719: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1719 | if test -z "$INSTALL"; then |
1720 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1722 | else | |
1723 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1724 | for ac_dir in $PATH; do | |
1725 | # Account for people who put trailing slashes in PATH elements. | |
1726 | case "$ac_dir/" in | |
1727 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1728 | *) | |
1729 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1730 | for ac_prog in ginstall scoinst install; do | |
1731 | if test -f $ac_dir/$ac_prog; then | |
1732 | if test $ac_prog = install && | |
1733 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1734 | # AIX install. It has an incompatible calling convention. | |
1735 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1736 | : | |
1737 | else | |
1738 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1739 | break 2 | |
1740 | fi | |
1741 | fi | |
1742 | done | |
1743 | ;; | |
1744 | esac | |
1745 | done | |
1746 | IFS="$ac_save_IFS" | |
1747 | ||
1748 | fi | |
1749 | if test "${ac_cv_path_install+set}" = set; then | |
1750 | INSTALL="$ac_cv_path_install" | |
1751 | else | |
1752 | # As a last resort, use the slow shell script. We don't cache a | |
1753 | # path for INSTALL within a source directory, because that will | |
1754 | # break other packages using the cache if that directory is | |
1755 | # removed, or if the path is relative. | |
1756 | INSTALL="$ac_install_sh" | |
1757 | fi | |
1758 | fi | |
1759 | echo "$ac_t""$INSTALL" 1>&6 | |
1760 | ||
1761 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1762 | # It thinks the first close brace ends the variable substitution. | |
1763 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1764 | ||
1765 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1766 | ||
861bb6c1 | 1767 | |
861bb6c1 | 1768 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
dc6746e7 | 1769 | echo "configure:1770: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1770 | # On Suns, sometimes $CPP names a directory. |
1771 | if test -n "$CPP" && test -d "$CPP"; then | |
1772 | CPP= | |
1773 | fi | |
1774 | if test -z "$CPP"; then | |
1775 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1777 | else | |
1778 | # This must be in double quotes, not single quotes, because CPP may get | |
1779 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1780 | CPP="${CC-cc} -E" | |
1781 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1782 | # not just through cpp. | |
1783 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1784 | #line 1785 "configure" |
861bb6c1 JL |
1785 | #include "confdefs.h" |
1786 | #include <assert.h> | |
1787 | Syntax Error | |
1788 | EOF | |
1789 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 1790 | { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1791 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1792 | if test -z "$ac_err"; then |
1793 | : | |
1794 | else | |
1795 | echo "$ac_err" >&5 | |
1796 | echo "configure: failed program was:" >&5 | |
1797 | cat conftest.$ac_ext >&5 | |
1798 | rm -rf conftest* | |
1799 | CPP="${CC-cc} -E -traditional-cpp" | |
1800 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1801 | #line 1802 "configure" |
cd9e5e7c MK |
1802 | #include "confdefs.h" |
1803 | #include <assert.h> | |
1804 | Syntax Error | |
1805 | EOF | |
1806 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 1807 | { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1808 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1809 | if test -z "$ac_err"; then | |
1810 | : | |
1811 | else | |
1812 | echo "$ac_err" >&5 | |
1813 | echo "configure: failed program was:" >&5 | |
1814 | cat conftest.$ac_ext >&5 | |
1815 | rm -rf conftest* | |
1816 | CPP="${CC-cc} -nologo -E" | |
1817 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1818 | #line 1819 "configure" |
20fced2c MM |
1819 | #include "confdefs.h" |
1820 | #include <assert.h> | |
1821 | Syntax Error | |
1822 | EOF | |
1823 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 1824 | { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1825 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1826 | if test -z "$ac_err"; then |
1827 | : | |
1828 | else | |
1829 | echo "$ac_err" >&5 | |
1830 | echo "configure: failed program was:" >&5 | |
1831 | cat conftest.$ac_ext >&5 | |
1832 | rm -rf conftest* | |
1833 | CPP=/lib/cpp | |
1834 | fi | |
1835 | rm -f conftest* | |
1836 | fi | |
cd9e5e7c MK |
1837 | rm -f conftest* |
1838 | fi | |
861bb6c1 JL |
1839 | rm -f conftest* |
1840 | ac_cv_prog_CPP="$CPP" | |
1841 | fi | |
1842 | CPP="$ac_cv_prog_CPP" | |
1843 | else | |
1844 | ac_cv_prog_CPP="$CPP" | |
1845 | fi | |
1846 | echo "$ac_t""$CPP" 1>&6 | |
1847 | ||
956d6950 | 1848 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
dc6746e7 | 1849 | echo "configure:1850: checking for ANSI C header files" >&5 |
956d6950 JL |
1850 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1852 | else | |
1853 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1854 | #line 1855 "configure" |
956d6950 JL |
1855 | #include "confdefs.h" |
1856 | #include <stdlib.h> | |
1857 | #include <stdarg.h> | |
1858 | #include <string.h> | |
1859 | #include <float.h> | |
1860 | EOF | |
1861 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 1862 | { (eval echo configure:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1863 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1864 | if test -z "$ac_err"; then |
1865 | rm -rf conftest* | |
1866 | ac_cv_header_stdc=yes | |
1867 | else | |
1868 | echo "$ac_err" >&5 | |
1869 | echo "configure: failed program was:" >&5 | |
1870 | cat conftest.$ac_ext >&5 | |
1871 | rm -rf conftest* | |
1872 | ac_cv_header_stdc=no | |
1873 | fi | |
1874 | rm -f conftest* | |
1875 | ||
1876 | if test $ac_cv_header_stdc = yes; then | |
1877 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1878 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1879 | #line 1880 "configure" |
956d6950 JL |
1880 | #include "confdefs.h" |
1881 | #include <string.h> | |
1882 | EOF | |
1883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1884 | egrep "memchr" >/dev/null 2>&1; then | |
1885 | : | |
1886 | else | |
1887 | rm -rf conftest* | |
1888 | ac_cv_header_stdc=no | |
1889 | fi | |
1890 | rm -f conftest* | |
1891 | ||
1892 | fi | |
1893 | ||
1894 | if test $ac_cv_header_stdc = yes; then | |
1895 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1896 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1897 | #line 1898 "configure" |
956d6950 JL |
1898 | #include "confdefs.h" |
1899 | #include <stdlib.h> | |
1900 | EOF | |
1901 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1902 | egrep "free" >/dev/null 2>&1; then | |
1903 | : | |
1904 | else | |
1905 | rm -rf conftest* | |
1906 | ac_cv_header_stdc=no | |
1907 | fi | |
1908 | rm -f conftest* | |
1909 | ||
1910 | fi | |
1911 | ||
1912 | if test $ac_cv_header_stdc = yes; then | |
1913 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1914 | if test "$cross_compiling" = yes; then | |
1915 | : | |
1916 | else | |
1917 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1918 | #line 1919 "configure" |
956d6950 JL |
1919 | #include "confdefs.h" |
1920 | #include <ctype.h> | |
1921 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1922 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1923 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1924 | int main () { int i; for (i = 0; i < 256; i++) | |
1925 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1926 | exit (0); } | |
1927 | ||
1928 | EOF | |
dc6746e7 | 1929 | if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1930 | then |
1931 | : | |
1932 | else | |
1933 | echo "configure: failed program was:" >&5 | |
1934 | cat conftest.$ac_ext >&5 | |
1935 | rm -fr conftest* | |
1936 | ac_cv_header_stdc=no | |
1937 | fi | |
1938 | rm -fr conftest* | |
1939 | fi | |
1940 | ||
1941 | fi | |
1942 | fi | |
1943 | ||
1944 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1945 | if test $ac_cv_header_stdc = yes; then | |
1946 | cat >> confdefs.h <<\EOF | |
1947 | #define STDC_HEADERS 1 | |
1948 | EOF | |
1949 | ||
1950 | fi | |
1951 | ||
1952 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
dc6746e7 | 1953 | echo "configure:1954: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1954 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1956 | else | |
1957 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1958 | #line 1959 "configure" |
956d6950 JL |
1959 | #include "confdefs.h" |
1960 | #include <sys/types.h> | |
1961 | #include <sys/time.h> | |
1962 | #include <time.h> | |
1963 | int main() { | |
1964 | struct tm *tp; | |
1965 | ; return 0; } | |
1966 | EOF | |
dc6746e7 | 1967 | if { (eval echo configure:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1968 | rm -rf conftest* |
1969 | ac_cv_header_time=yes | |
1970 | else | |
1971 | echo "configure: failed program was:" >&5 | |
1972 | cat conftest.$ac_ext >&5 | |
1973 | rm -rf conftest* | |
1974 | ac_cv_header_time=no | |
1975 | fi | |
1976 | rm -f conftest* | |
1977 | fi | |
1978 | ||
1979 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1980 | if test $ac_cv_header_time = yes; then | |
1981 | cat >> confdefs.h <<\EOF | |
1982 | #define TIME_WITH_SYS_TIME 1 | |
1983 | EOF | |
1984 | ||
1985 | fi | |
1986 | ||
0a4b6309 | 1987 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
dc6746e7 | 1988 | echo "configure:1989: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1989 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1991 | else | |
1992 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 1993 | #line 1994 "configure" |
0a4b6309 RL |
1994 | #include "confdefs.h" |
1995 | #include <string.h> | |
1996 | #include <strings.h> | |
1997 | int main() { | |
1998 | ||
1999 | ; return 0; } | |
2000 | EOF | |
dc6746e7 | 2001 | if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2002 | rm -rf conftest* |
2003 | gcc_cv_header_string=yes | |
2004 | else | |
2005 | echo "configure: failed program was:" >&5 | |
2006 | cat conftest.$ac_ext >&5 | |
2007 | rm -rf conftest* | |
2008 | gcc_cv_header_string=no | |
2009 | fi | |
2010 | rm -f conftest* | |
2011 | fi | |
2012 | ||
2013 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
2014 | if test $gcc_cv_header_string = yes; then | |
2015 | cat >> confdefs.h <<\EOF | |
2016 | #define STRING_WITH_STRINGS 1 | |
2017 | EOF | |
2018 | ||
2019 | fi | |
2020 | ||
e9831ca0 | 2021 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
dc6746e7 | 2022 | echo "configure:2023: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
2023 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2025 | else | |
2026 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2027 | #line 2028 "configure" |
e9831ca0 KG |
2028 | #include "confdefs.h" |
2029 | #include <sys/types.h> | |
2030 | #include <sys/wait.h> | |
2031 | #ifndef WEXITSTATUS | |
2032 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
2033 | #endif | |
2034 | #ifndef WIFEXITED | |
2035 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
2036 | #endif | |
2037 | int main() { | |
2038 | int s; | |
2039 | wait (&s); | |
2040 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
2041 | ; return 0; } | |
2042 | EOF | |
dc6746e7 | 2043 | if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
2044 | rm -rf conftest* |
2045 | ac_cv_header_sys_wait_h=yes | |
2046 | else | |
2047 | echo "configure: failed program was:" >&5 | |
2048 | cat conftest.$ac_ext >&5 | |
2049 | rm -rf conftest* | |
2050 | ac_cv_header_sys_wait_h=no | |
2051 | fi | |
2052 | rm -f conftest* | |
2053 | fi | |
2054 | ||
2055 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
2056 | if test $ac_cv_header_sys_wait_h = yes; then | |
2057 | cat >> confdefs.h <<\EOF | |
2058 | #define HAVE_SYS_WAIT_H 1 | |
2059 | EOF | |
2060 | ||
2061 | fi | |
2062 | ||
03c41c05 ZW |
2063 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ |
2064 | fcntl.h unistd.h stab.h sys/file.h sys/time.h \ | |
2065 | sys/resource.h sys/param.h sys/times.h sys/stat.h \ | |
2066 | direct.h malloc.h | |
861bb6c1 JL |
2067 | do |
2068 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2069 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dc6746e7 | 2070 | echo "configure:2071: checking for $ac_hdr" >&5 |
861bb6c1 JL |
2071 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2073 | else | |
2074 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2075 | #line 2076 "configure" |
861bb6c1 JL |
2076 | #include "confdefs.h" |
2077 | #include <$ac_hdr> | |
2078 | EOF | |
956d6950 | 2079 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dc6746e7 | 2080 | { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2081 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
2082 | if test -z "$ac_err"; then |
2083 | rm -rf conftest* | |
2084 | eval "ac_cv_header_$ac_safe=yes" | |
2085 | else | |
2086 | echo "$ac_err" >&5 | |
2087 | echo "configure: failed program was:" >&5 | |
2088 | cat conftest.$ac_ext >&5 | |
2089 | rm -rf conftest* | |
2090 | eval "ac_cv_header_$ac_safe=no" | |
2091 | fi | |
2092 | rm -f conftest* | |
2093 | fi | |
2094 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2095 | echo "$ac_t""yes" 1>&6 | |
2096 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2097 | cat >> confdefs.h <<EOF | |
2098 | #define $ac_tr_hdr 1 | |
2099 | EOF | |
2100 | ||
2101 | else | |
2102 | echo "$ac_t""no" 1>&6 | |
2103 | fi | |
2104 | done | |
2105 | ||
2106 | ||
f24af81b TT |
2107 | # Check for thread headers. |
2108 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
2109 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
dc6746e7 | 2110 | echo "configure:2111: checking for thread.h" >&5 |
f24af81b TT |
2111 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2113 | else | |
2114 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2115 | #line 2116 "configure" |
f24af81b TT |
2116 | #include "confdefs.h" |
2117 | #include <thread.h> | |
2118 | EOF | |
2119 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 2120 | { (eval echo configure:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2121 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2122 | if test -z "$ac_err"; then |
2123 | rm -rf conftest* | |
2124 | eval "ac_cv_header_$ac_safe=yes" | |
2125 | else | |
2126 | echo "$ac_err" >&5 | |
2127 | echo "configure: failed program was:" >&5 | |
2128 | cat conftest.$ac_ext >&5 | |
2129 | rm -rf conftest* | |
2130 | eval "ac_cv_header_$ac_safe=no" | |
2131 | fi | |
2132 | rm -f conftest* | |
2133 | fi | |
2134 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2135 | echo "$ac_t""yes" 1>&6 | |
2136 | have_thread_h=yes | |
2137 | else | |
2138 | echo "$ac_t""no" 1>&6 | |
2139 | have_thread_h= | |
2140 | fi | |
2141 | ||
2142 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2143 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
dc6746e7 | 2144 | echo "configure:2145: checking for pthread.h" >&5 |
f24af81b TT |
2145 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2147 | else | |
2148 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2149 | #line 2150 "configure" |
f24af81b TT |
2150 | #include "confdefs.h" |
2151 | #include <pthread.h> | |
2152 | EOF | |
2153 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 2154 | { (eval echo configure:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2155 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2156 | if test -z "$ac_err"; then |
2157 | rm -rf conftest* | |
2158 | eval "ac_cv_header_$ac_safe=yes" | |
2159 | else | |
2160 | echo "$ac_err" >&5 | |
2161 | echo "configure: failed program was:" >&5 | |
2162 | cat conftest.$ac_ext >&5 | |
2163 | rm -rf conftest* | |
2164 | eval "ac_cv_header_$ac_safe=no" | |
2165 | fi | |
2166 | rm -f conftest* | |
2167 | fi | |
2168 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2169 | echo "$ac_t""yes" 1>&6 | |
2170 | have_pthread_h=yes | |
2171 | else | |
2172 | echo "$ac_t""no" 1>&6 | |
2173 | have_pthread_h= | |
2174 | fi | |
2175 | ||
2176 | ||
bcf12124 JL |
2177 | # See if GNAT has been installed |
2178 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2179 | set dummy gnatbind; ac_word=$2 | |
2180 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 2181 | echo "configure:2182: checking for $ac_word" >&5 |
bcf12124 JL |
2182 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2184 | else | |
2185 | if test -n "$gnat"; then | |
2186 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2187 | else | |
cd9e5e7c | 2188 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2189 | ac_dummy="$PATH" |
2190 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2191 | test -z "$ac_dir" && ac_dir=. |
2192 | if test -f $ac_dir/$ac_word; then | |
2193 | ac_cv_prog_gnat="yes" | |
2194 | break | |
2195 | fi | |
2196 | done | |
2197 | IFS="$ac_save_ifs" | |
2198 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2199 | fi | |
2200 | fi | |
2201 | gnat="$ac_cv_prog_gnat" | |
2202 | if test -n "$gnat"; then | |
2203 | echo "$ac_t""$gnat" 1>&6 | |
2204 | else | |
2205 | echo "$ac_t""no" 1>&6 | |
2206 | fi | |
2207 | ||
2208 | ||
09fa0705 ZW |
2209 | # Do we have a single-tree copy of texinfo? |
2210 | if test -f $srcdir/../texinfo/Makefile.in; then | |
2211 | MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo' | |
2212 | gcc_cv_prog_makeinfo_modern=yes | |
2213 | echo "$ac_t""Using makeinfo from the unified source tree." 1>&6 | |
2214 | else | |
2215 | # See if makeinfo has been installed and is modern enough | |
2216 | # that we can use it. | |
2217 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
2218 | set dummy makeinfo; ac_word=$2 | |
2219 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 2220 | echo "configure:2221: checking for $ac_word" >&5 |
09fa0705 ZW |
2221 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
2222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2223 | else | |
2224 | if test -n "$MAKEINFO"; then | |
2225 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
2226 | else | |
2227 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2228 | ac_dummy="$PATH" | |
2229 | for ac_dir in $ac_dummy; do | |
2230 | test -z "$ac_dir" && ac_dir=. | |
2231 | if test -f $ac_dir/$ac_word; then | |
2232 | ac_cv_prog_MAKEINFO="makeinfo" | |
2233 | break | |
2234 | fi | |
2235 | done | |
2236 | IFS="$ac_save_ifs" | |
2237 | fi | |
2238 | fi | |
2239 | MAKEINFO="$ac_cv_prog_MAKEINFO" | |
2240 | if test -n "$MAKEINFO"; then | |
2241 | echo "$ac_t""$MAKEINFO" 1>&6 | |
2242 | else | |
2243 | echo "$ac_t""no" 1>&6 | |
2244 | fi | |
2245 | ||
2246 | if test -n "$MAKEINFO"; then | |
2247 | # Found it, now check the version. | |
2248 | echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6 | |
dc6746e7 | 2249 | echo "configure:2250: checking for modern makeinfo" >&5 |
09fa0705 ZW |
2250 | if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then |
2251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2252 | else | |
2253 | ac_prog_version=`$MAKEINFO --version 2>&1 | | |
2254 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
dc6746e7 | 2255 | echo "configure:2256: version of makeinfo is $ac_prog_version" >&5 |
09fa0705 ZW |
2256 | case $ac_prog_version in |
2257 | '') gcc_cv_prog_makeinfo_modern=no;; | |
2258 | 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]) | |
2259 | gcc_cv_prog_makeinfo_modern=yes;; | |
2260 | *) gcc_cv_prog_makeinfo_modern=no;; | |
2261 | esac | |
2262 | ||
2263 | fi | |
2264 | ||
2265 | echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6 | |
2266 | else | |
2267 | gcc_cv_prog_makeinfo_modern=no | |
2268 | fi | |
2269 | ||
2270 | fi | |
2271 | ||
2272 | if test $gcc_cv_prog_makeinfo_modern = no; then | |
2273 | echo "configure: warning: | |
2274 | *** Makeinfo is missing or too old. | |
2275 | *** Info documentation will not be built or installed." 1>&2 | |
2276 | BUILD_INFO= | |
2277 | INSTALL_INFO= | |
2278 | else | |
2279 | BUILD_INFO=info | |
2280 | INSTALL_INFO=install-info | |
2281 | fi | |
2282 | ||
890ad3ea KG |
2283 | # See if the stage1 system preprocessor understands the ANSI C |
2284 | # preprocessor stringification operator. | |
2285 | ||
2286 | ||
2287 | echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 | |
dc6746e7 | 2288 | echo "configure:2289: checking for preprocessor stringizing operator" >&5 |
890ad3ea | 2289 | if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then |
76844337 RH |
2290 | echo $ac_n "(cached) $ac_c" 1>&6 |
2291 | else | |
2292 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2293 | #line 2294 "configure" |
76844337 RH |
2294 | #include "confdefs.h" |
2295 | ||
890ad3ea KG |
2296 | #define x(y) #y |
2297 | ||
2298 | char *s = x(teststring); | |
2299 | ||
76844337 | 2300 | EOF |
890ad3ea KG |
2301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2302 | egrep "#teststring" >/dev/null 2>&1; then | |
76844337 | 2303 | rm -rf conftest* |
890ad3ea | 2304 | ac_cv_c_stringize=no |
76844337 | 2305 | else |
76844337 | 2306 | rm -rf conftest* |
890ad3ea | 2307 | ac_cv_c_stringize=yes |
76844337 RH |
2308 | fi |
2309 | rm -f conftest* | |
890ad3ea | 2310 | |
76844337 RH |
2311 | fi |
2312 | ||
890ad3ea KG |
2313 | if test "${ac_cv_c_stringize}" = yes |
2314 | then | |
2315 | cat >> confdefs.h <<\EOF | |
2316 | #define HAVE_STRINGIZE 1 | |
76844337 RH |
2317 | EOF |
2318 | ||
2319 | fi | |
890ad3ea KG |
2320 | echo "$ac_t""${ac_cv_c_stringize}" 1>&6 |
2321 | ||
76844337 | 2322 | |
956d6950 JL |
2323 | # Use <inttypes.h> only if it exists, |
2324 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2325 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
dc6746e7 | 2326 | echo "configure:2327: checking for inttypes.h" >&5 |
956d6950 JL |
2327 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2329 | else | |
2330 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2331 | #line 2332 "configure" |
956d6950 JL |
2332 | #include "confdefs.h" |
2333 | #include <sys/types.h> | |
2334 | #include <inttypes.h> | |
2335 | int main() { | |
2336 | intmax_t i = -1; | |
2337 | ; return 0; } | |
2338 | EOF | |
dc6746e7 | 2339 | if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2340 | rm -rf conftest* |
0056a9b5 | 2341 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2342 | else |
2343 | echo "configure: failed program was:" >&5 | |
2344 | cat conftest.$ac_ext >&5 | |
2345 | rm -rf conftest* | |
2346 | gcc_cv_header_inttypes_h=no | |
2347 | fi | |
2348 | rm -f conftest* | |
2349 | fi | |
2350 | ||
2351 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2352 | if test $gcc_cv_header_inttypes_h = yes; then |
2353 | cat >> confdefs.h <<\EOF | |
2354 | #define HAVE_INTTYPES_H 1 | |
2355 | EOF | |
2356 | ||
2357 | fi | |
956d6950 | 2358 | |
c149cc37 RL |
2359 | # |
2360 | # Determine if enumerated bitfields are unsigned. ISO C says they can | |
2361 | # be either signed or unsigned. | |
2362 | # | |
2363 | echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6 | |
dc6746e7 | 2364 | echo "configure:2365: checking for unsigned enumerated bitfields" >&5 |
c149cc37 RL |
2365 | if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then |
2366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2367 | else | |
2368 | if test "$cross_compiling" = yes; then | |
2369 | gcc_cv_enum_bf_unsigned=yes | |
2370 | else | |
2371 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2372 | #line 2373 "configure" |
c149cc37 RL |
2373 | #include "confdefs.h" |
2374 | #include <stdlib.h> | |
2375 | enum t { BLAH = 128 } ; | |
2376 | struct s_t { enum t member : 8; } s ; | |
2377 | int main(void) | |
2378 | { | |
2379 | s.member = BLAH; | |
2380 | if (s.member < 0) exit(1); | |
2381 | exit(0); | |
2382 | ||
2383 | } | |
2384 | EOF | |
dc6746e7 | 2385 | if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c149cc37 RL |
2386 | then |
2387 | gcc_cv_enum_bf_unsigned=yes | |
2388 | else | |
2389 | echo "configure: failed program was:" >&5 | |
2390 | cat conftest.$ac_ext >&5 | |
2391 | rm -fr conftest* | |
2392 | gcc_cv_enum_bf_unsigned=no | |
2393 | fi | |
2394 | rm -fr conftest* | |
2395 | fi | |
2396 | ||
2397 | fi | |
2398 | ||
c149cc37 RL |
2399 | echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6 |
2400 | if test $gcc_cv_enum_bf_unsigned = yes; then | |
2401 | cat >> confdefs.h <<\EOF | |
2402 | #define ENUM_BITFIELDS_ARE_UNSIGNED 1 | |
2403 | EOF | |
2404 | ||
2405 | fi | |
2406 | ||
f95e46b9 | 2407 | for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \ |
8f81384f | 2408 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 | 2409 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
005537df | 2410 | fputs_unlocked getrusage valloc |
956d6950 JL |
2411 | do |
2412 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dc6746e7 | 2413 | echo "configure:2414: checking for $ac_func" >&5 |
956d6950 JL |
2414 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2416 | else | |
2417 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2418 | #line 2419 "configure" |
956d6950 JL |
2419 | #include "confdefs.h" |
2420 | /* System header to define __stub macros and hopefully few prototypes, | |
2421 | which can conflict with char $ac_func(); below. */ | |
2422 | #include <assert.h> | |
2423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2424 | /* We use char because int might match the return type of a gcc2 | |
2425 | builtin and then its argument prototype would still apply. */ | |
2426 | char $ac_func(); | |
2427 | ||
2428 | int main() { | |
2429 | ||
2430 | /* The GNU C library defines this for functions which it implements | |
2431 | to always fail with ENOSYS. Some functions are actually named | |
2432 | something starting with __ and the normal name is an alias. */ | |
2433 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2434 | choke me | |
2435 | #else | |
99b09ff3 | 2436 | $ac_func(); |
956d6950 JL |
2437 | #endif |
2438 | ||
2439 | ; return 0; } | |
2440 | EOF | |
dc6746e7 | 2441 | if { (eval echo configure:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2442 | rm -rf conftest* |
2443 | eval "ac_cv_func_$ac_func=yes" | |
2444 | else | |
2445 | echo "configure: failed program was:" >&5 | |
2446 | cat conftest.$ac_ext >&5 | |
2447 | rm -rf conftest* | |
2448 | eval "ac_cv_func_$ac_func=no" | |
2449 | fi | |
2450 | rm -f conftest* | |
2451 | fi | |
2452 | ||
2453 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2454 | echo "$ac_t""yes" 1>&6 | |
2455 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2456 | cat >> confdefs.h <<EOF | |
2457 | #define $ac_tr_func 1 | |
2458 | EOF | |
2459 | ||
2460 | else | |
2461 | echo "$ac_t""no" 1>&6 | |
2462 | fi | |
2463 | done | |
2464 | ||
6885fc87 | 2465 | |
f12bc141 | 2466 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 |
dc6746e7 | 2467 | echo "configure:2468: checking for ssize_t" >&5 |
f12bc141 ZW |
2468 | if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then |
2469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2470 | else | |
2471 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2472 | #line 2473 "configure" |
f12bc141 ZW |
2473 | #include "confdefs.h" |
2474 | #include <sys/types.h> | |
2475 | #if STDC_HEADERS | |
2476 | #include <stdlib.h> | |
2477 | #include <stddef.h> | |
2478 | #endif | |
2479 | EOF | |
2480 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2481 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2482 | rm -rf conftest* | |
2483 | ac_cv_type_ssize_t=yes | |
2484 | else | |
2485 | rm -rf conftest* | |
2486 | ac_cv_type_ssize_t=no | |
2487 | fi | |
2488 | rm -f conftest* | |
2489 | ||
2490 | fi | |
2491 | echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 | |
2492 | if test $ac_cv_type_ssize_t = no; then | |
2493 | cat >> confdefs.h <<\EOF | |
2494 | #define ssize_t int | |
2495 | EOF | |
2496 | ||
2497 | fi | |
2498 | ||
0b9d02c6 | 2499 | |
0a4b6309 | 2500 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
dc6746e7 | 2501 | echo "configure:2502: checking for vprintf" >&5 |
0a4b6309 RL |
2502 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2504 | else | |
2505 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2506 | #line 2507 "configure" |
0a4b6309 RL |
2507 | #include "confdefs.h" |
2508 | /* System header to define __stub macros and hopefully few prototypes, | |
2509 | which can conflict with char vprintf(); below. */ | |
2510 | #include <assert.h> | |
2511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2512 | /* We use char because int might match the return type of a gcc2 | |
2513 | builtin and then its argument prototype would still apply. */ | |
2514 | char vprintf(); | |
2515 | ||
2516 | int main() { | |
2517 | ||
2518 | /* The GNU C library defines this for functions which it implements | |
2519 | to always fail with ENOSYS. Some functions are actually named | |
2520 | something starting with __ and the normal name is an alias. */ | |
2521 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2522 | choke me | |
2523 | #else | |
99b09ff3 | 2524 | vprintf(); |
0a4b6309 RL |
2525 | #endif |
2526 | ||
2527 | ; return 0; } | |
2528 | EOF | |
dc6746e7 | 2529 | if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2530 | rm -rf conftest* |
2531 | eval "ac_cv_func_vprintf=yes" | |
2532 | else | |
2533 | echo "configure: failed program was:" >&5 | |
2534 | cat conftest.$ac_ext >&5 | |
2535 | rm -rf conftest* | |
2536 | eval "ac_cv_func_vprintf=no" | |
2537 | fi | |
2538 | rm -f conftest* | |
2539 | fi | |
2540 | ||
2541 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2542 | echo "$ac_t""yes" 1>&6 | |
2543 | cat >> confdefs.h <<\EOF | |
2544 | #define HAVE_VPRINTF 1 | |
2545 | EOF | |
2546 | ||
2547 | else | |
2548 | echo "$ac_t""no" 1>&6 | |
2549 | fi | |
8fa1f09f | 2550 | |
0a4b6309 RL |
2551 | if test "$ac_cv_func_vprintf" != yes; then |
2552 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
dc6746e7 | 2553 | echo "configure:2554: checking for _doprnt" >&5 |
0a4b6309 RL |
2554 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2556 | else | |
2557 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2558 | #line 2559 "configure" |
0a4b6309 RL |
2559 | #include "confdefs.h" |
2560 | /* System header to define __stub macros and hopefully few prototypes, | |
2561 | which can conflict with char _doprnt(); below. */ | |
2562 | #include <assert.h> | |
2563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2564 | /* We use char because int might match the return type of a gcc2 | |
2565 | builtin and then its argument prototype would still apply. */ | |
2566 | char _doprnt(); | |
2567 | ||
2568 | int main() { | |
2569 | ||
2570 | /* The GNU C library defines this for functions which it implements | |
2571 | to always fail with ENOSYS. Some functions are actually named | |
2572 | something starting with __ and the normal name is an alias. */ | |
2573 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2574 | choke me | |
2575 | #else | |
99b09ff3 | 2576 | _doprnt(); |
0a4b6309 RL |
2577 | #endif |
2578 | ||
2579 | ; return 0; } | |
2580 | EOF | |
dc6746e7 | 2581 | if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2582 | rm -rf conftest* |
2583 | eval "ac_cv_func__doprnt=yes" | |
2584 | else | |
2585 | echo "configure: failed program was:" >&5 | |
2586 | cat conftest.$ac_ext >&5 | |
2587 | rm -rf conftest* | |
2588 | eval "ac_cv_func__doprnt=no" | |
2589 | fi | |
2590 | rm -f conftest* | |
2591 | fi | |
2592 | ||
2593 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2594 | echo "$ac_t""yes" 1>&6 | |
2595 | cat >> confdefs.h <<\EOF | |
2596 | #define HAVE_DOPRNT 1 | |
2597 | EOF | |
2598 | ||
2599 | else | |
2600 | echo "$ac_t""no" 1>&6 | |
2601 | fi | |
2602 | ||
2603 | fi | |
2604 | ||
2605 | vfprintf= | |
2606 | doprint= | |
2607 | if test $ac_cv_func_vprintf != yes ; then | |
2608 | vfprintf=vfprintf.o | |
2609 | if test $ac_cv_func__doprnt != yes ; then | |
2610 | doprint=doprint.o | |
2611 | fi | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | ||
2616 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
dc6746e7 | 2617 | echo "configure:2618: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2618 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2620 | else | |
2621 | if test "$cross_compiling" = yes; then | |
2622 | gcc_cv_func_printf_ptr=no | |
2623 | else | |
2624 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2625 | #line 2626 "configure" |
0a4b6309 RL |
2626 | #include "confdefs.h" |
2627 | #include <stdio.h> | |
2628 | ||
86cf1cbd | 2629 | int main() |
0a4b6309 RL |
2630 | { |
2631 | char buf[64]; | |
2632 | char *p = buf, *q = NULL; | |
2633 | sprintf(buf, "%p", p); | |
2634 | sscanf(buf, "%p", &q); | |
86cf1cbd | 2635 | return (p != q); |
0a4b6309 RL |
2636 | } |
2637 | EOF | |
dc6746e7 | 2638 | if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2639 | then |
2640 | gcc_cv_func_printf_ptr=yes | |
2641 | else | |
2642 | echo "configure: failed program was:" >&5 | |
2643 | cat conftest.$ac_ext >&5 | |
2644 | rm -fr conftest* | |
2645 | gcc_cv_func_printf_ptr=no | |
2646 | fi | |
2647 | rm -fr conftest* | |
2648 | fi | |
2649 | ||
2650 | rm -f core core.* *.core | |
2651 | fi | |
2652 | ||
2653 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2654 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2655 | cat >> confdefs.h <<\EOF | |
2656 | #define HAVE_PRINTF_PTR 1 | |
2657 | EOF | |
2658 | ||
2659 | fi | |
2660 | ||
b27d2bd5 MK |
2661 | |
2662 | case "${host}" in | |
2663 | *-*-uwin*) | |
2664 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2665 | # can hang configure; on other versions, vfork exists just as a stub. | |
2666 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2667 | ac_cv_func_vfork_works=no | |
2668 | ;; | |
2669 | esac | |
c375c43b | 2670 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
dc6746e7 | 2671 | echo "configure:2672: checking for pid_t" >&5 |
c375c43b KG |
2672 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2674 | else | |
2675 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2676 | #line 2677 "configure" |
c375c43b KG |
2677 | #include "confdefs.h" |
2678 | #include <sys/types.h> | |
2679 | #if STDC_HEADERS | |
2680 | #include <stdlib.h> | |
2681 | #include <stddef.h> | |
2682 | #endif | |
2683 | EOF | |
2684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2685 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2686 | rm -rf conftest* |
2687 | ac_cv_type_pid_t=yes | |
2688 | else | |
2689 | rm -rf conftest* | |
2690 | ac_cv_type_pid_t=no | |
2691 | fi | |
2692 | rm -f conftest* | |
2693 | ||
2694 | fi | |
2695 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2696 | if test $ac_cv_type_pid_t = no; then | |
2697 | cat >> confdefs.h <<\EOF | |
2698 | #define pid_t int | |
2699 | EOF | |
2700 | ||
2701 | fi | |
2702 | ||
2703 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2704 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
dc6746e7 | 2705 | echo "configure:2706: checking for vfork.h" >&5 |
c375c43b KG |
2706 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2708 | else | |
2709 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2710 | #line 2711 "configure" |
c375c43b KG |
2711 | #include "confdefs.h" |
2712 | #include <vfork.h> | |
2713 | EOF | |
2714 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 2715 | { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2716 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2717 | if test -z "$ac_err"; then |
2718 | rm -rf conftest* | |
2719 | eval "ac_cv_header_$ac_safe=yes" | |
2720 | else | |
2721 | echo "$ac_err" >&5 | |
2722 | echo "configure: failed program was:" >&5 | |
2723 | cat conftest.$ac_ext >&5 | |
2724 | rm -rf conftest* | |
2725 | eval "ac_cv_header_$ac_safe=no" | |
2726 | fi | |
2727 | rm -f conftest* | |
2728 | fi | |
2729 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2730 | echo "$ac_t""yes" 1>&6 | |
2731 | cat >> confdefs.h <<\EOF | |
2732 | #define HAVE_VFORK_H 1 | |
2733 | EOF | |
2734 | ||
2735 | else | |
2736 | echo "$ac_t""no" 1>&6 | |
2737 | fi | |
2738 | ||
2739 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
dc6746e7 | 2740 | echo "configure:2741: checking for working vfork" >&5 |
c375c43b KG |
2741 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2743 | else | |
2744 | if test "$cross_compiling" = yes; then | |
2745 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
dc6746e7 | 2746 | echo "configure:2747: checking for vfork" >&5 |
c375c43b KG |
2747 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2749 | else | |
2750 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2751 | #line 2752 "configure" |
c375c43b KG |
2752 | #include "confdefs.h" |
2753 | /* System header to define __stub macros and hopefully few prototypes, | |
2754 | which can conflict with char vfork(); below. */ | |
2755 | #include <assert.h> | |
2756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2757 | /* We use char because int might match the return type of a gcc2 | |
2758 | builtin and then its argument prototype would still apply. */ | |
2759 | char vfork(); | |
2760 | ||
2761 | int main() { | |
2762 | ||
2763 | /* The GNU C library defines this for functions which it implements | |
2764 | to always fail with ENOSYS. Some functions are actually named | |
2765 | something starting with __ and the normal name is an alias. */ | |
2766 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2767 | choke me | |
2768 | #else | |
99b09ff3 | 2769 | vfork(); |
c375c43b KG |
2770 | #endif |
2771 | ||
2772 | ; return 0; } | |
2773 | EOF | |
dc6746e7 | 2774 | if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2775 | rm -rf conftest* |
2776 | eval "ac_cv_func_vfork=yes" | |
2777 | else | |
2778 | echo "configure: failed program was:" >&5 | |
2779 | cat conftest.$ac_ext >&5 | |
2780 | rm -rf conftest* | |
2781 | eval "ac_cv_func_vfork=no" | |
2782 | fi | |
2783 | rm -f conftest* | |
2784 | fi | |
2785 | ||
2786 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2787 | echo "$ac_t""yes" 1>&6 | |
2788 | : | |
2789 | else | |
2790 | echo "$ac_t""no" 1>&6 | |
2791 | fi | |
2792 | ||
2793 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2794 | else | |
2795 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2796 | #line 2797 "configure" |
c375c43b KG |
2797 | #include "confdefs.h" |
2798 | /* Thanks to Paul Eggert for this test. */ | |
2799 | #include <stdio.h> | |
2800 | #include <sys/types.h> | |
2801 | #include <sys/stat.h> | |
2802 | #ifdef HAVE_UNISTD_H | |
2803 | #include <unistd.h> | |
2804 | #endif | |
2805 | #ifdef HAVE_VFORK_H | |
2806 | #include <vfork.h> | |
2807 | #endif | |
2808 | /* On some sparc systems, changes by the child to local and incoming | |
2809 | argument registers are propagated back to the parent. | |
2810 | The compiler is told about this with #include <vfork.h>, | |
2811 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2812 | Test for this by using a static variable whose address | |
2813 | is put into a register that is clobbered by the vfork. */ | |
2814 | static | |
2815 | #ifdef __cplusplus | |
2816 | sparc_address_test (int arg) | |
2817 | #else | |
2818 | sparc_address_test (arg) int arg; | |
2819 | #endif | |
2820 | { | |
2821 | static pid_t child; | |
2822 | if (!child) { | |
2823 | child = vfork (); | |
2824 | if (child < 0) { | |
2825 | perror ("vfork"); | |
2826 | _exit(2); | |
2827 | } | |
2828 | if (!child) { | |
2829 | arg = getpid(); | |
2830 | write(-1, "", 0); | |
2831 | _exit (arg); | |
2832 | } | |
2833 | } | |
2834 | } | |
2835 | main() { | |
2836 | pid_t parent = getpid (); | |
2837 | pid_t child; | |
2838 | ||
2839 | sparc_address_test (); | |
2840 | ||
2841 | child = vfork (); | |
2842 | ||
2843 | if (child == 0) { | |
2844 | /* Here is another test for sparc vfork register problems. | |
2845 | This test uses lots of local variables, at least | |
2846 | as many local variables as main has allocated so far | |
2847 | including compiler temporaries. 4 locals are enough for | |
2848 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2849 | A buggy compiler should reuse the register of parent | |
2850 | for one of the local variables, since it will think that | |
2851 | parent can't possibly be used any more in this routine. | |
2852 | Assigning to the local variable will thus munge parent | |
2853 | in the parent process. */ | |
2854 | pid_t | |
2855 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2856 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2857 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2858 | use the same hardware register for all 8 local variables. */ | |
2859 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2860 | || p != p5 || p != p6 || p != p7) | |
2861 | _exit(1); | |
2862 | ||
2863 | /* On some systems (e.g. IRIX 3.3), | |
2864 | vfork doesn't separate parent from child file descriptors. | |
2865 | If the child closes a descriptor before it execs or exits, | |
2866 | this munges the parent's descriptor as well. | |
2867 | Test for this by closing stdout in the child. */ | |
2868 | _exit(close(fileno(stdout)) != 0); | |
2869 | } else { | |
2870 | int status; | |
2871 | struct stat st; | |
2872 | ||
2873 | while (wait(&status) != child) | |
2874 | ; | |
2875 | exit( | |
2876 | /* Was there some problem with vforking? */ | |
2877 | child < 0 | |
2878 | ||
2879 | /* Did the child fail? (This shouldn't happen.) */ | |
2880 | || status | |
2881 | ||
2882 | /* Did the vfork/compiler bug occur? */ | |
2883 | || parent != getpid() | |
2884 | ||
2885 | /* Did the file descriptor bug occur? */ | |
2886 | || fstat(fileno(stdout), &st) != 0 | |
2887 | ); | |
2888 | } | |
2889 | } | |
2890 | EOF | |
dc6746e7 | 2891 | if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2892 | then |
2893 | ac_cv_func_vfork_works=yes | |
2894 | else | |
2895 | echo "configure: failed program was:" >&5 | |
2896 | cat conftest.$ac_ext >&5 | |
2897 | rm -fr conftest* | |
2898 | ac_cv_func_vfork_works=no | |
2899 | fi | |
2900 | rm -fr conftest* | |
2901 | fi | |
2902 | ||
2903 | fi | |
2904 | ||
2905 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2906 | if test $ac_cv_func_vfork_works = no; then | |
2907 | cat >> confdefs.h <<\EOF | |
2908 | #define vfork fork | |
2909 | EOF | |
2910 | ||
2911 | fi | |
2912 | ||
81bf3d9e | 2913 | for ac_hdr in unistd.h |
0a4b6309 | 2914 | do |
81bf3d9e RH |
2915 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2916 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dc6746e7 | 2917 | echo "configure:2918: checking for $ac_hdr" >&5 |
81bf3d9e | 2918 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
0a4b6309 RL |
2919 | echo $ac_n "(cached) $ac_c" 1>&6 |
2920 | else | |
2921 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2922 | #line 2923 "configure" |
0a4b6309 | 2923 | #include "confdefs.h" |
81bf3d9e | 2924 | #include <$ac_hdr> |
0a4b6309 | 2925 | EOF |
81bf3d9e | 2926 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
dc6746e7 | 2927 | { (eval echo configure:2928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
81bf3d9e RH |
2928 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2929 | if test -z "$ac_err"; then | |
0a4b6309 | 2930 | rm -rf conftest* |
81bf3d9e | 2931 | eval "ac_cv_header_$ac_safe=yes" |
0a4b6309 | 2932 | else |
81bf3d9e | 2933 | echo "$ac_err" >&5 |
0a4b6309 RL |
2934 | echo "configure: failed program was:" >&5 |
2935 | cat conftest.$ac_ext >&5 | |
2936 | rm -rf conftest* | |
81bf3d9e | 2937 | eval "ac_cv_header_$ac_safe=no" |
0a4b6309 RL |
2938 | fi |
2939 | rm -f conftest* | |
2940 | fi | |
81bf3d9e | 2941 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
0a4b6309 | 2942 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2943 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0a4b6309 | 2944 | cat >> confdefs.h <<EOF |
81bf3d9e | 2945 | #define $ac_tr_hdr 1 |
0a4b6309 | 2946 | EOF |
81bf3d9e | 2947 | |
0a4b6309 RL |
2948 | else |
2949 | echo "$ac_t""no" 1>&6 | |
2950 | fi | |
0a4b6309 RL |
2951 | done |
2952 | ||
81bf3d9e | 2953 | for ac_func in getpagesize |
0a4b6309 | 2954 | do |
81bf3d9e | 2955 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
dc6746e7 | 2956 | echo "configure:2957: checking for $ac_func" >&5 |
81bf3d9e | 2957 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
0a4b6309 RL |
2958 | echo $ac_n "(cached) $ac_c" 1>&6 |
2959 | else | |
2960 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 2961 | #line 2962 "configure" |
0a4b6309 | 2962 | #include "confdefs.h" |
81bf3d9e RH |
2963 | /* System header to define __stub macros and hopefully few prototypes, |
2964 | which can conflict with char $ac_func(); below. */ | |
2965 | #include <assert.h> | |
2966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2967 | /* We use char because int might match the return type of a gcc2 | |
2968 | builtin and then its argument prototype would still apply. */ | |
2969 | char $ac_func(); | |
8fa1f09f | 2970 | |
81bf3d9e RH |
2971 | int main() { |
2972 | ||
2973 | /* The GNU C library defines this for functions which it implements | |
2974 | to always fail with ENOSYS. Some functions are actually named | |
2975 | something starting with __ and the normal name is an alias. */ | |
2976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2977 | choke me | |
c5c76735 | 2978 | #else |
99b09ff3 | 2979 | $ac_func(); |
c5c76735 JL |
2980 | #endif |
2981 | ||
c5c76735 JL |
2982 | ; return 0; } |
2983 | EOF | |
dc6746e7 | 2984 | if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c5c76735 | 2985 | rm -rf conftest* |
81bf3d9e | 2986 | eval "ac_cv_func_$ac_func=yes" |
c5c76735 JL |
2987 | else |
2988 | echo "configure: failed program was:" >&5 | |
2989 | cat conftest.$ac_ext >&5 | |
2990 | rm -rf conftest* | |
81bf3d9e | 2991 | eval "ac_cv_func_$ac_func=no" |
c5c76735 JL |
2992 | fi |
2993 | rm -f conftest* | |
2994 | fi | |
2995 | ||
81bf3d9e | 2996 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
c5c76735 | 2997 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2998 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
c5c76735 | 2999 | cat >> confdefs.h <<EOF |
81bf3d9e | 3000 | #define $ac_tr_func 1 |
c5c76735 | 3001 | EOF |
81bf3d9e | 3002 | |
c5c76735 JL |
3003 | else |
3004 | echo "$ac_t""no" 1>&6 | |
3005 | fi | |
c5c76735 JL |
3006 | done |
3007 | ||
4acab94b | 3008 | echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6 |
dc6746e7 | 3009 | echo "configure:3010: checking for working mmap from /dev/zero" >&5 |
a0f20853 | 3010 | if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then |
c5c76735 | 3011 | echo $ac_n "(cached) $ac_c" 1>&6 |
81bf3d9e RH |
3012 | else |
3013 | if test "$cross_compiling" = yes; then | |
4acab94b | 3014 | ac_cv_func_mmap_anywhere=no |
c5c76735 JL |
3015 | else |
3016 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 3017 | #line 3018 "configure" |
c5c76735 JL |
3018 | #include "confdefs.h" |
3019 | ||
4acab94b AO |
3020 | /* Test by Richard Henderson and Alexandre Oliva. |
3021 | Check whether mmap from /dev/zero works. */ | |
d2cabf16 | 3022 | #include <sys/types.h> |
81bf3d9e RH |
3023 | #include <fcntl.h> |
3024 | #include <sys/mman.h> | |
0a4b6309 | 3025 | |
81bf3d9e RH |
3026 | /* This mess was copied from the GNU getpagesize.h. */ |
3027 | #ifndef HAVE_GETPAGESIZE | |
3028 | # ifdef HAVE_UNISTD_H | |
3029 | # include <unistd.h> | |
3030 | # endif | |
0a4b6309 | 3031 | |
81bf3d9e RH |
3032 | /* Assume that all systems that can run configure have sys/param.h. */ |
3033 | # ifndef HAVE_SYS_PARAM_H | |
3034 | # define HAVE_SYS_PARAM_H 1 | |
3035 | # endif | |
0a4b6309 | 3036 | |
81bf3d9e RH |
3037 | # ifdef _SC_PAGESIZE |
3038 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3039 | # else /* no _SC_PAGESIZE */ | |
3040 | # ifdef HAVE_SYS_PARAM_H | |
3041 | # include <sys/param.h> | |
3042 | # ifdef EXEC_PAGESIZE | |
3043 | # define getpagesize() EXEC_PAGESIZE | |
3044 | # else /* no EXEC_PAGESIZE */ | |
3045 | # ifdef NBPG | |
3046 | # define getpagesize() NBPG * CLSIZE | |
3047 | # ifndef CLSIZE | |
3048 | # define CLSIZE 1 | |
3049 | # endif /* no CLSIZE */ | |
3050 | # else /* no NBPG */ | |
3051 | # ifdef NBPC | |
3052 | # define getpagesize() NBPC | |
3053 | # else /* no NBPC */ | |
3054 | # ifdef PAGESIZE | |
3055 | # define getpagesize() PAGESIZE | |
3056 | # endif /* PAGESIZE */ | |
3057 | # endif /* no NBPC */ | |
3058 | # endif /* no NBPG */ | |
3059 | # endif /* no EXEC_PAGESIZE */ | |
3060 | # else /* no HAVE_SYS_PARAM_H */ | |
3061 | # define getpagesize() 8192 /* punt totally */ | |
3062 | # endif /* no HAVE_SYS_PARAM_H */ | |
3063 | # endif /* no _SC_PAGESIZE */ | |
0a4b6309 | 3064 | |
81bf3d9e | 3065 | #endif /* no HAVE_GETPAGESIZE */ |
0a4b6309 | 3066 | |
4acab94b | 3067 | int main() |
81bf3d9e | 3068 | { |
4acab94b AO |
3069 | char *x; |
3070 | int fd, pg; | |
81bf3d9e | 3071 | |
4acab94b AO |
3072 | fd = open("/dev/zero", O_RDWR); |
3073 | if (fd < 0) | |
3074 | exit(1); | |
81bf3d9e | 3075 | |
4acab94b AO |
3076 | pg = getpagesize(); |
3077 | x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); | |
3078 | if (x == (char *) -1) | |
3079 | exit(2); | |
81bf3d9e | 3080 | |
4acab94b | 3081 | *(int *)x += 1; |
81bf3d9e | 3082 | |
4acab94b AO |
3083 | if (munmap(x, pg) < 0) |
3084 | exit(3); | |
81bf3d9e | 3085 | |
4acab94b AO |
3086 | exit(0); |
3087 | } | |
81bf3d9e | 3088 | EOF |
dc6746e7 | 3089 | if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
81bf3d9e | 3090 | then |
4acab94b | 3091 | ac_cv_func_mmap_anywhere=yes |
81bf3d9e RH |
3092 | else |
3093 | echo "configure: failed program was:" >&5 | |
3094 | cat conftest.$ac_ext >&5 | |
3095 | rm -fr conftest* | |
4acab94b | 3096 | ac_cv_func_mmap_anywhere=no |
81bf3d9e RH |
3097 | fi |
3098 | rm -fr conftest* | |
3099 | fi | |
3100 | ||
3101 | fi | |
3102 | ||
a0f20853 | 3103 | echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6 |
4acab94b | 3104 | if test $ac_cv_func_mmap_anywhere = yes; then |
81bf3d9e | 3105 | cat >> confdefs.h <<\EOF |
4acab94b | 3106 | #define HAVE_MMAP_ANYWHERE 1 |
81bf3d9e RH |
3107 | EOF |
3108 | ||
3109 | fi | |
3110 | ||
56f02b88 | 3111 | echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6 |
dc6746e7 | 3112 | echo "configure:3113: checking for working mmap of a file" >&5 |
56f02b88 ZW |
3113 | if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then |
3114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3115 | else | |
3116 | # Create a file one thousand bytes long. | |
3117 | for i in 1 2 3 4 5 6 7 8 9 0 | |
3118 | do for j in 1 2 3 4 5 6 7 8 9 0 | |
3119 | do echo $i $j xxxxx | |
3120 | done | |
3121 | done > conftestdata$$ | |
3122 | ||
3123 | if test "$cross_compiling" = yes; then | |
3124 | ac_cv_func_mmap_file=no | |
3125 | else | |
3126 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 3127 | #line 3128 "configure" |
56f02b88 ZW |
3128 | #include "confdefs.h" |
3129 | ||
3130 | /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by | |
3131 | Richard Henderson and Alexandre Oliva. | |
3132 | Check whether read-only mmap of a plain file works. */ | |
3133 | #include <sys/types.h> | |
3134 | #include <sys/stat.h> | |
3135 | #include <fcntl.h> | |
3136 | #include <sys/mman.h> | |
3137 | ||
3138 | int main() | |
3139 | { | |
3140 | char *x; | |
3141 | int fd; | |
3142 | struct stat st; | |
3143 | ||
3144 | fd = open("conftestdata$$", O_RDONLY); | |
3145 | if (fd < 0) | |
3146 | exit(1); | |
3147 | ||
3148 | if (fstat (fd, &st)) | |
3149 | exit(2); | |
3150 | ||
3151 | x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); | |
3152 | if (x == (char *) -1) | |
3153 | exit(3); | |
3154 | ||
3155 | if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ') | |
3156 | exit(4); | |
3157 | ||
3158 | if (munmap(x, st.st_size) < 0) | |
3159 | exit(5); | |
3160 | ||
3161 | exit(0); | |
3162 | } | |
3163 | EOF | |
dc6746e7 | 3164 | if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
56f02b88 ZW |
3165 | then |
3166 | ac_cv_func_mmap_file=yes | |
3167 | else | |
3168 | echo "configure: failed program was:" >&5 | |
3169 | cat conftest.$ac_ext >&5 | |
3170 | rm -fr conftest* | |
3171 | ac_cv_func_mmap_file=no | |
3172 | fi | |
3173 | rm -fr conftest* | |
3174 | fi | |
3175 | ||
3176 | fi | |
3177 | ||
3178 | echo "$ac_t""$ac_cv_func_mmap_file" 1>&6 | |
3179 | if test $ac_cv_func_mmap_file = yes; then | |
3180 | cat >> confdefs.h <<\EOF | |
3181 | #define HAVE_MMAP_FILE 1 | |
3182 | EOF | |
3183 | ||
3184 | fi | |
3185 | ||
81bf3d9e | 3186 | |
86cf1cbd KG |
3187 | # We will need to find libiberty.h and ansidecl.h |
3188 | saved_CFLAGS="$CFLAGS" | |
3189 | CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" | |
81bf3d9e | 3190 | for ac_func in bcopy bzero bcmp \ |
f95e46b9 | 3191 | index rindex getenv atol sbrk abort atof getcwd getwd \ |
86cf1cbd | 3192 | strsignal putc_unlocked fputs_unlocked strstr environ \ |
f31e826b | 3193 | malloc realloc calloc free basename getopt |
81bf3d9e | 3194 | do |
f31e826b KG |
3195 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3196 | echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6 | |
dc6746e7 | 3197 | echo "configure:3198: checking whether $ac_func is declared" >&5 |
f31e826b | 3198 | if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then |
81bf3d9e RH |
3199 | echo $ac_n "(cached) $ac_c" 1>&6 |
3200 | else | |
3201 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 3202 | #line 3203 "configure" |
81bf3d9e | 3203 | #include "confdefs.h" |
86cf1cbd KG |
3204 | #include "gansidecl.h" |
3205 | #include "system.h" | |
f31e826b | 3206 | |
81bf3d9e | 3207 | int main() { |
86cf1cbd KG |
3208 | #ifndef $ac_func |
3209 | char *(*pfn) = (char *(*)) $ac_func ; | |
3210 | #endif | |
81bf3d9e RH |
3211 | ; return 0; } |
3212 | EOF | |
dc6746e7 | 3213 | if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e | 3214 | rm -rf conftest* |
f31e826b | 3215 | eval "gcc_cv_have_decl_$ac_func=yes" |
81bf3d9e RH |
3216 | else |
3217 | echo "configure: failed program was:" >&5 | |
3218 | cat conftest.$ac_ext >&5 | |
3219 | rm -rf conftest* | |
f31e826b | 3220 | eval "gcc_cv_have_decl_$ac_func=no" |
81bf3d9e RH |
3221 | fi |
3222 | rm -f conftest* | |
3223 | fi | |
3224 | ||
f31e826b KG |
3225 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then |
3226 | echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF | |
86cf1cbd | 3227 | #define $ac_tr_decl 1 |
81bf3d9e | 3228 | EOF |
86cf1cbd | 3229 | |
81bf3d9e | 3230 | else |
f31e826b KG |
3231 | echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF |
3232 | #define $ac_tr_decl 0 | |
3233 | EOF | |
3234 | ||
81bf3d9e RH |
3235 | fi |
3236 | ||
3237 | done | |
86cf1cbd | 3238 | if test x = y ; then |
81bf3d9e | 3239 | cat >> confdefs.h <<EOF |
f31e826b | 3240 | #define HAVE_DECL_BCOPY 1 |
86cf1cbd KG |
3241 | EOF |
3242 | cat >> confdefs.h <<EOF | |
f31e826b | 3243 | #define HAVE_DECL_BZERO 1 |
86cf1cbd KG |
3244 | EOF |
3245 | cat >> confdefs.h <<EOF | |
f31e826b | 3246 | #define HAVE_DECL_BCMP 1 |
86cf1cbd KG |
3247 | EOF |
3248 | \ | |
3249 | cat >> confdefs.h <<EOF | |
f31e826b | 3250 | #define HAVE_DECL_INDEX 1 |
86cf1cbd KG |
3251 | EOF |
3252 | cat >> confdefs.h <<EOF | |
f31e826b | 3253 | #define HAVE_DECL_RINDEX 1 |
86cf1cbd KG |
3254 | EOF |
3255 | cat >> confdefs.h <<EOF | |
f31e826b | 3256 | #define HAVE_DECL_GETENV 1 |
86cf1cbd KG |
3257 | EOF |
3258 | cat >> confdefs.h <<EOF | |
f31e826b | 3259 | #define HAVE_DECL_ATOL 1 |
86cf1cbd KG |
3260 | EOF |
3261 | cat >> confdefs.h <<EOF | |
f31e826b | 3262 | #define HAVE_DECL_SBRK 1 |
86cf1cbd KG |
3263 | EOF |
3264 | cat >> confdefs.h <<EOF | |
f31e826b | 3265 | #define HAVE_DECL_ABORT 1 |
86cf1cbd KG |
3266 | EOF |
3267 | cat >> confdefs.h <<EOF | |
f31e826b | 3268 | #define HAVE_DECL_ATOF 1 |
86cf1cbd KG |
3269 | EOF |
3270 | cat >> confdefs.h <<EOF | |
f31e826b | 3271 | #define HAVE_DECL_GETCWD 1 |
86cf1cbd KG |
3272 | EOF |
3273 | cat >> confdefs.h <<EOF | |
f31e826b | 3274 | #define HAVE_DECL_GETWD 1 |
86cf1cbd KG |
3275 | EOF |
3276 | \ | |
3277 | cat >> confdefs.h <<EOF | |
f31e826b | 3278 | #define HAVE_DECL_STRSIGNAL 1 |
86cf1cbd KG |
3279 | EOF |
3280 | cat >> confdefs.h <<EOF | |
f31e826b | 3281 | #define HAVE_DECL_PUTC_UNLOCKED 1 |
86cf1cbd KG |
3282 | EOF |
3283 | cat >> confdefs.h <<EOF | |
f31e826b | 3284 | #define HAVE_DECL_FPUTS_UNLOCKED 1 |
86cf1cbd KG |
3285 | EOF |
3286 | cat >> confdefs.h <<EOF | |
f31e826b | 3287 | #define HAVE_DECL_STRSTR 1 |
86cf1cbd KG |
3288 | EOF |
3289 | cat >> confdefs.h <<EOF | |
f31e826b | 3290 | #define HAVE_DECL_ENVIRON 1 |
86cf1cbd KG |
3291 | EOF |
3292 | \ | |
3293 | cat >> confdefs.h <<EOF | |
f31e826b KG |
3294 | #define HAVE_DECL_MALLOC 1 |
3295 | EOF | |
3296 | cat >> confdefs.h <<EOF | |
3297 | #define HAVE_DECL_REALLOC 1 | |
86cf1cbd KG |
3298 | EOF |
3299 | cat >> confdefs.h <<EOF | |
f31e826b | 3300 | #define HAVE_DECL_CALLOC 1 |
86cf1cbd KG |
3301 | EOF |
3302 | cat >> confdefs.h <<EOF | |
f31e826b | 3303 | #define HAVE_DECL_FREE 1 |
86cf1cbd KG |
3304 | EOF |
3305 | cat >> confdefs.h <<EOF | |
f31e826b KG |
3306 | #define HAVE_DECL_BASENAME 1 |
3307 | EOF | |
3308 | cat >> confdefs.h <<EOF | |
3309 | #define HAVE_DECL_GETOPT 1 | |
81bf3d9e | 3310 | EOF |
81bf3d9e RH |
3311 | fi |
3312 | ||
81bf3d9e RH |
3313 | |
3314 | for ac_func in getrlimit setrlimit getrusage | |
3315 | do | |
f31e826b KG |
3316 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
3317 | echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6 | |
dc6746e7 | 3318 | echo "configure:3319: checking whether $ac_func is declared" >&5 |
f31e826b | 3319 | if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then |
81bf3d9e RH |
3320 | echo $ac_n "(cached) $ac_c" 1>&6 |
3321 | else | |
3322 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 3323 | #line 3324 "configure" |
81bf3d9e | 3324 | #include "confdefs.h" |
86cf1cbd KG |
3325 | #include "gansidecl.h" |
3326 | #include "system.h" | |
81bf3d9e RH |
3327 | #ifdef HAVE_SYS_RESOURCE_H |
3328 | #include <sys/resource.h> | |
3329 | #endif | |
3330 | ||
f31e826b | 3331 | |
81bf3d9e | 3332 | int main() { |
86cf1cbd KG |
3333 | #ifndef $ac_func |
3334 | char *(*pfn) = (char *(*)) $ac_func ; | |
3335 | #endif | |
81bf3d9e RH |
3336 | ; return 0; } |
3337 | EOF | |
dc6746e7 | 3338 | if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e | 3339 | rm -rf conftest* |
f31e826b | 3340 | eval "gcc_cv_have_decl_$ac_func=yes" |
81bf3d9e RH |
3341 | else |
3342 | echo "configure: failed program was:" >&5 | |
3343 | cat conftest.$ac_ext >&5 | |
3344 | rm -rf conftest* | |
f31e826b | 3345 | eval "gcc_cv_have_decl_$ac_func=no" |
81bf3d9e RH |
3346 | fi |
3347 | rm -f conftest* | |
3348 | fi | |
3349 | ||
f31e826b KG |
3350 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then |
3351 | echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF | |
86cf1cbd | 3352 | #define $ac_tr_decl 1 |
81bf3d9e | 3353 | EOF |
86cf1cbd | 3354 | |
81bf3d9e | 3355 | else |
f31e826b KG |
3356 | echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF |
3357 | #define $ac_tr_decl 0 | |
3358 | EOF | |
3359 | ||
81bf3d9e RH |
3360 | fi |
3361 | ||
3362 | done | |
86cf1cbd KG |
3363 | if test x = y ; then |
3364 | cat >> confdefs.h <<EOF | |
f31e826b | 3365 | #define HAVE_DECL_GETRLIMIT 1 |
86cf1cbd KG |
3366 | EOF |
3367 | cat >> confdefs.h <<EOF | |
f31e826b | 3368 | #define HAVE_DECL_SETRLIMIT 1 |
86cf1cbd KG |
3369 | EOF |
3370 | cat >> confdefs.h <<EOF | |
f31e826b | 3371 | #define HAVE_DECL_GETRUSAGE 1 |
86cf1cbd KG |
3372 | EOF |
3373 | fi | |
3374 | ||
81bf3d9e | 3375 | |
86cf1cbd KG |
3376 | # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. |
3377 | CFLAGS="$saved_CFLAGS" | |
81bf3d9e | 3378 | |
75923b2f MK |
3379 | # mkdir takes a single argument on some systems. |
3380 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
dc6746e7 | 3381 | echo "configure:3382: checking if mkdir takes one argument" >&5 |
75923b2f MK |
3382 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
3383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3384 | else | |
3385 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 3386 | #line 3387 "configure" |
75923b2f MK |
3387 | #include "confdefs.h" |
3388 | ||
3389 | #include <sys/types.h> | |
3390 | #ifdef HAVE_SYS_STAT_H | |
3391 | # include <sys/stat.h> | |
3392 | #endif | |
3393 | #ifdef HAVE_UNISTD_H | |
3394 | # include <unistd.h> | |
3395 | #endif | |
3396 | #ifdef HAVE_DIRECT_H | |
3397 | # include <direct.h> | |
3398 | #endif | |
3399 | int main() { | |
3400 | mkdir ("foo", 0); | |
3401 | ; return 0; } | |
3402 | EOF | |
dc6746e7 | 3403 | if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
3404 | rm -rf conftest* |
3405 | gcc_cv_mkdir_takes_one_arg=no | |
3406 | else | |
3407 | echo "configure: failed program was:" >&5 | |
3408 | cat conftest.$ac_ext >&5 | |
3409 | rm -rf conftest* | |
3410 | gcc_cv_mkdir_takes_one_arg=yes | |
3411 | fi | |
3412 | rm -f conftest* | |
3413 | fi | |
3414 | ||
3415 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
3416 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
3417 | cat >> confdefs.h <<\EOF | |
3418 | #define MKDIR_TAKES_ONE_ARG 1 | |
3419 | EOF | |
3420 | ||
3421 | fi | |
3422 | ||
3423 | ||
861bb6c1 JL |
3424 | # File extensions |
3425 | manext='.1' | |
3426 | objext='.o' | |
3427 | ||
3428 | ||
3429 | ||
3430 | build_xm_file= | |
f6cb0e63 | 3431 | build_xm_defines= |
861bb6c1 JL |
3432 | build_install_headers_dir=install-headers-tar |
3433 | build_exeext= | |
3434 | host_xm_file= | |
f6cb0e63 | 3435 | host_xm_defines= |
861bb6c1 JL |
3436 | host_xmake_file= |
3437 | host_truncate_target= | |
6e26218f | 3438 | host_exeext= |
861bb6c1 JL |
3439 | |
3440 | # Decode the host machine, then the target machine. | |
3441 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3442 | # then we decode the target machine and forget everything else | |
3443 | # that came from the host machine. | |
3444 | for machine in $build $host $target; do | |
3445 | ||
3446 | out_file= | |
3447 | xmake_file= | |
3448 | tmake_file= | |
3449 | extra_headers= | |
3450 | extra_passes= | |
3451 | extra_parts= | |
3452 | extra_programs= | |
3453 | extra_objs= | |
3454 | extra_host_objs= | |
3455 | extra_gcc_objs= | |
f6cb0e63 | 3456 | xm_defines= |
861bb6c1 JL |
3457 | float_format= |
3458 | # Set this to force installation and use of collect2. | |
3459 | use_collect2= | |
3460 | # Set this to override the default target model. | |
3461 | target_cpu_default= | |
861bb6c1 JL |
3462 | # Set this to control how the header file directory is installed. |
3463 | install_headers_dir=install-headers-tar | |
3464 | # Set this to a non-empty list of args to pass to cpp if the target | |
3465 | # wants its .md file passed through cpp. | |
3466 | md_cppflags= | |
3467 | # Set this if directory names should be truncated to 14 characters. | |
3468 | truncate_target= | |
3469 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3470 | gdb_needs_out_file_path= | |
3471 | # Set this if the build machine requires executables to have a | |
3472 | # file name suffix. | |
3473 | exeext= | |
a851212a JW |
3474 | # Set this to control which thread package will be used. |
3475 | thread_file= | |
df6faf79 JW |
3476 | # Reinitialize these from the flag values every loop pass, since some |
3477 | # configure entries modify them. | |
3478 | gas="$gas_flag" | |
3479 | gnu_ld="$gnu_ld_flag" | |
e445171e | 3480 | enable_threads=$enable_threads_flag |
861bb6c1 | 3481 | |
6baf1cc8 BS |
3482 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
3483 | # updated in each machine entry. | |
3484 | tm_p_file= | |
861bb6c1 JL |
3485 | cpu_type=`echo $machine | sed 's/-.*$//'` |
3486 | case $machine in | |
3487 | alpha*-*-*) | |
3488 | cpu_type=alpha | |
3489 | ;; | |
cd2b33d0 NC |
3490 | strongarm*-*-*) |
3491 | cpu_type=arm | |
3492 | ;; | |
861bb6c1 JL |
3493 | arm*-*-*) |
3494 | cpu_type=arm | |
3495 | ;; | |
3496 | c*-convex-*) | |
3497 | cpu_type=convex | |
3498 | ;; | |
f6cb0e63 | 3499 | i[34567]86-*-*) |
861bb6c1 JL |
3500 | cpu_type=i386 |
3501 | ;; | |
3502 | hppa*-*-*) | |
3503 | cpu_type=pa | |
3504 | ;; | |
3505 | m68000-*-*) | |
3506 | cpu_type=m68k | |
3507 | ;; | |
3508 | mips*-*-*) | |
3509 | cpu_type=mips | |
3510 | ;; | |
1b992148 SC |
3511 | pj*-*-*) |
3512 | cpu_type=pj | |
3513 | ;; | |
861bb6c1 JL |
3514 | powerpc*-*-*) |
3515 | cpu_type=rs6000 | |
3516 | ;; | |
3517 | pyramid-*-*) | |
3518 | cpu_type=pyr | |
3519 | ;; | |
3520 | sparc*-*-*) | |
3521 | cpu_type=sparc | |
3522 | ;; | |
3523 | esac | |
3524 | ||
3525 | tm_file=${cpu_type}/${cpu_type}.h | |
3526 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
6baf1cc8 BS |
3527 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h; |
3528 | then | |
3529 | tm_p_file=${cpu_type}/${cpu_type}-protos.h; | |
3530 | fi | |
7aae67a2 JM |
3531 | # On a.out targets, we need to use collect2. |
3532 | case $machine in | |
3533 | *-*-*aout*) | |
3534 | use_collect2=yes | |
3535 | ;; | |
3536 | esac | |
3537 | ||
1b4a979b | 3538 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
3539 | case $machine in |
3540 | *-*-linux-gnu*) | |
c7391272 | 3541 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 3542 | ;; |
1b4a979b ME |
3543 | *-*-openbsd*) |
3544 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
3545 | tmake_file="t-libc-ok t-openbsd" |
3546 | # avoid surprises, always provide an xm-openbsd file | |
3547 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
3548 | # don't depend on processor x-fragments as well |
3549 | xmake_file=none | |
1b4a979b ME |
3550 | if test x$enable_threads = xyes; then |
3551 | thread_file='posix' | |
3552 | tmake_file="${tmake_file} t-openbsd-thread" | |
3553 | fi | |
3554 | ;; | |
f6cb0e63 JL |
3555 | esac |
3556 | ||
861bb6c1 JL |
3557 | case $machine in |
3558 | # Support site-specific machine types. | |
3559 | *local*) | |
3560 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3561 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3562 | xm_file=${cpu_type}/xm-$rest.h | |
3563 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 3564 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
3565 | then xmake_file=${cpu_type}/x-$rest; \ |
3566 | else true; \ | |
3567 | fi | |
75bffa71 | 3568 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
3569 | then tmake_file=${cpu_type}/t-$rest; \ |
3570 | else true; \ | |
3571 | fi | |
3572 | ;; | |
3573 | 1750a-*-*) | |
3574 | ;; | |
3575 | a29k-*-bsd* | a29k-*-sym1*) | |
3576 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3577 | xm_defines=USG |
861bb6c1 JL |
3578 | xmake_file=a29k/x-unix |
3579 | use_collect2=yes | |
3580 | ;; | |
3581 | a29k-*-udi | a29k-*-coff) | |
3582 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3583 | tmake_file=a29k/t-a29kbare | |
3584 | ;; | |
7cc34889 | 3585 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3586 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3587 | tmake_file=a29k/t-vx29k | |
3588 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3589 | thread_file='vxworks' |
861bb6c1 JL |
3590 | ;; |
3591 | a29k-*-*) # Default a29k environment. | |
3592 | use_collect2=yes | |
3593 | ;; | |
615c8231 DT |
3594 | alpha-*-interix) |
3595 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3596 | ||
3597 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3598 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3599 | |
8354da48 JL |
3600 | # GAS + IEEE_CONFORMANT |
3601 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3602 | |
3603 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3604 | xmake_file="x-interix alpha/t-pe" | |
6da9c622 | 3605 | tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3606 | if test x$enable_threads = xyes ; then |
3607 | thread_file='posix' | |
3608 | fi | |
3609 | if test x$stabs = xyes ; then | |
3610 | tm_file="${tm_file} dbxcoff.h" | |
3611 | fi | |
3612 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3613 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3614 | ;; | |
861bb6c1 | 3615 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3616 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3617 | target_cpu_default="MASK_GAS" |
6da9c622 | 3618 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3619 | gas=no |
3620 | xmake_file=none | |
861bb6c1 JL |
3621 | gas=yes gnu_ld=yes |
3622 | ;; | |
2601ebca | 3623 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3624 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3625 | target_cpu_default="MASK_GAS" |
cf889600 | 3626 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3627 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2601ebca | 3628 | xmake_file=none |
2601ebca | 3629 | gas=yes gnu_ld=yes |
75bffa71 | 3630 | if test x$enable_threads = xyes; then |
2601ebca JL |
3631 | thread_file='posix' |
3632 | fi | |
3633 | ;; | |
861bb6c1 | 3634 | alpha*-*-linux-gnu*) |
9d654bba | 3635 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3636 | target_cpu_default="MASK_GAS" |
cf889600 | 3637 | tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3638 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3639 | xmake_file=none |
861bb6c1 | 3640 | gas=yes gnu_ld=yes |
75bffa71 | 3641 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3642 | thread_file='posix' |
3643 | fi | |
3644 | ;; | |
9d654bba | 3645 | alpha*-*-netbsd*) |
66953094 | 3646 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3647 | target_cpu_default="MASK_GAS" |
6da9c622 | 3648 | tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3649 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
9d654bba | 3650 | xmake_file=none |
9d654bba RH |
3651 | gas=yes gnu_ld=yes |
3652 | ;; | |
1b4a979b ME |
3653 | |
3654 | alpha*-*-openbsd*) | |
3655 | # default x-alpha is only appropriate for dec-osf. | |
3656 | target_cpu_default="MASK_GAS" | |
6da9c622 | 3657 | tmake_file="alpha/t-alpha alpha/t-ieee" |
1b4a979b | 3658 | ;; |
9d654bba | 3659 | |
e9a25f70 | 3660 | alpha*-dec-osf*) |
75bffa71 | 3661 | if test x$stabs = xyes |
861bb6c1 JL |
3662 | then |
3663 | tm_file="${tm_file} dbx.h" | |
3664 | fi | |
75bffa71 | 3665 | if test x$gas != xyes |
861bb6c1 JL |
3666 | then |
3667 | extra_passes="mips-tfile mips-tdump" | |
3668 | fi | |
861bb6c1 | 3669 | use_collect2=yes |
6da9c622 | 3670 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 | 3671 | case $machine in |
6ecd4e53 | 3672 | *-*-osf1*) |
b0435cf4 | 3673 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3674 | ;; |
3675 | *-*-osf[23]*) | |
b0435cf4 | 3676 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3677 | ;; |
3678 | *-*-osf4*) | |
b0435cf4 | 3679 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3680 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3681 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3682 | install_headers_dir=install-headers-cpio |
3683 | ;; | |
7bc69973 | 3684 | *-*-osf5*) |
5495cc55 | 3685 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" |
7bc69973 | 3686 | ;; |
861bb6c1 | 3687 | esac |
e9a25f70 | 3688 | case $machine in |
cd038ac2 | 3689 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) |
e9a25f70 JL |
3690 | target_cpu_default=MASK_SUPPORT_ARCH |
3691 | ;; | |
3692 | esac | |
861bb6c1 | 3693 | ;; |
9ec36da5 JL |
3694 | alpha*-*-vxworks*) |
3695 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
6da9c622 | 3696 | tmake_file="alpha/t-alpha alpha/t-ieee" |
9ec36da5 JL |
3697 | if x$gas != xyes |
3698 | then | |
3699 | extra_passes="mips-tfile mips-tdump" | |
3700 | fi | |
3701 | use_collect2=yes | |
28897609 | 3702 | thread_file='vxworks' |
9ec36da5 | 3703 | ;; |
b0435cf4 | 3704 | alpha*-*-winnt*) |
615c8231 | 3705 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3706 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
6da9c622 | 3707 | tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3708 | xmake_file=winnt/x-winnt |
3709 | extra_host_objs=oldnames.o | |
3710 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3711 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3712 | then |
3713 | extra_programs=ld.exe | |
3714 | fi | |
75bffa71 | 3715 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3716 | thread_file='win32' |
3717 | fi | |
3718 | ;; | |
3719 | alpha*-dec-vms*) | |
3720 | tm_file=alpha/vms.h | |
3721 | xm_file="${xm_file} alpha/xm-vms.h" | |
6da9c622 | 3722 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3723 | ;; |
66ed0683 JL |
3724 | arc-*-elf*) |
3725 | extra_parts="crtinit.o crtfini.o" | |
3726 | ;; | |
861bb6c1 JL |
3727 | arm-*-coff* | armel-*-coff*) |
3728 | tm_file=arm/coff.h | |
d5b7b3ae | 3729 | tmake_file=arm/t-arm-coff |
861bb6c1 | 3730 | ;; |
2aa0c933 | 3731 | arm-*-vxworks*) |
e14db015 | 3732 | tm_file=arm/vxarm.h |
d5b7b3ae | 3733 | tmake_file=arm/t-arm-coff |
28897609 | 3734 | thread_file='vxworks' |
2aa0c933 | 3735 | ;; |
861bb6c1 JL |
3736 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3737 | tm_file=arm/riscix1-1.h | |
3738 | use_collect2=yes | |
3739 | ;; | |
3740 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3741 | if test x$gas = xyes |
861bb6c1 JL |
3742 | then |
3743 | tm_file=arm/rix-gas.h | |
3744 | else | |
3745 | tm_file=arm/riscix.h | |
3746 | fi | |
3747 | xmake_file=arm/x-riscix | |
3748 | tmake_file=arm/t-riscix | |
3749 | use_collect2=yes | |
3750 | ;; | |
3751 | arm-semi-aout | armel-semi-aout) | |
3752 | tm_file=arm/semi.h | |
3753 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3754 | ;; |
3755 | arm-semi-aof | armel-semi-aof) | |
3756 | tm_file=arm/semiaof.h | |
3757 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3758 | ;; |
58600d24 | 3759 | arm*-*-netbsd*) |
861bb6c1 | 3760 | tm_file=arm/netbsd.h |
e9a25f70 | 3761 | tmake_file="t-netbsd arm/t-netbsd" |
ed4acb3b | 3762 | use_collect2=yes |
861bb6c1 | 3763 | ;; |
b355a481 | 3764 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3765 | cpu_type=arm |
861bb6c1 | 3766 | xmake_file=x-linux |
b355a481 | 3767 | tm_file=arm/linux-aout.h |
861bb6c1 | 3768 | tmake_file=arm/t-linux |
861bb6c1 JL |
3769 | gnu_ld=yes |
3770 | ;; | |
078e19a4 | 3771 | arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker |
b355a481 NC |
3772 | xm_file=arm/xm-linux.h |
3773 | xmake_file=x-linux | |
078e19a4 | 3774 | tm_file="arm/linux-oldld.h arm/linux-elf.h" |
b355a481 NC |
3775 | case $machine in |
3776 | armv2*-*-*) | |
078e19a4 | 3777 | tm_file="arm/linux-elf26.h $tm_file" |
b355a481 | 3778 | ;; |
078e19a4 PB |
3779 | esac |
3780 | tmake_file="t-linux arm/t-linux" | |
3781 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3782 | gnu_ld=yes | |
3783 | case x${enable_threads} in | |
3784 | x | xyes | xpthreads | xposix) | |
3785 | thread_file='posix' | |
3786 | ;; | |
3787 | esac | |
3788 | ;; | |
3789 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF | |
3790 | xm_file=arm/xm-linux.h | |
3791 | xmake_file=x-linux | |
3792 | tm_file="arm/linux-elf.h" | |
3793 | case $machine in | |
3794 | armv2*-*-*) | |
3795 | tm_file="arm/linux-elf26.h $tm_file" | |
b355a481 NC |
3796 | ;; |
3797 | esac | |
3798 | tmake_file="t-linux arm/t-linux" | |
3799 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3800 | gnu_ld=yes |
65120c40 SB |
3801 | case x${enable_threads} in |
3802 | x | xyes | xpthreads | xposix) | |
3803 | thread_file='posix' | |
3804 | ;; | |
3805 | esac | |
b355a481 | 3806 | ;; |
483f6332 PB |
3807 | arm*-*-uclinux*) # ARM ucLinux |
3808 | tm_file=arm/uclinux-elf.h | |
3809 | tmake_file=arm/t-arm-elf | |
3810 | ;; | |
b355a481 | 3811 | arm*-*-aout) |
861bb6c1 | 3812 | tm_file=arm/aout.h |
d5b7b3ae | 3813 | tmake_file=arm/t-arm-aout |
861bb6c1 | 3814 | ;; |
e6592fff | 3815 | arm*-*-ecos-elf) |
54953b66 | 3816 | tm_file=arm/ecos-elf.h |
d5b7b3ae | 3817 | tmake_file=arm/t-arm-elf |
54953b66 | 3818 | ;; |
b355a481 NC |
3819 | arm*-*-elf) |
3820 | tm_file=arm/unknown-elf.h | |
3821 | tmake_file=arm/t-arm-elf | |
47163378 PB |
3822 | ;; |
3823 | arm*-*-conix*) | |
3824 | tm_file=arm/conix-elf.h | |
3825 | tmake_file=arm/t-arm-elf | |
b355a481 | 3826 | ;; |
cbca921c CM |
3827 | arm*-*-oabi) |
3828 | tm_file=arm/unknown-elf-oabi.h | |
3829 | tmake_file=arm/t-arm-elf | |
3830 | ;; | |
cb805c2d NC |
3831 | arm-*-pe*) |
3832 | tm_file=arm/pe.h | |
3833 | tmake_file=arm/t-pe | |
6da9c622 | 3834 | extra_objs="pe.o" |
cb805c2d | 3835 | ;; |
ed4acb3b DC |
3836 | avr-*-*) |
3837 | ;; | |
861bb6c1 JL |
3838 | c1-convex-*) # Convex C1 |
3839 | target_cpu_default=1 | |
3840 | use_collect2=yes | |
861bb6c1 JL |
3841 | ;; |
3842 | c2-convex-*) # Convex C2 | |
3843 | target_cpu_default=2 | |
3844 | use_collect2=yes | |
861bb6c1 JL |
3845 | ;; |
3846 | c32-convex-*) | |
3847 | target_cpu_default=4 | |
3848 | use_collect2=yes | |
861bb6c1 JL |
3849 | ;; |
3850 | c34-convex-*) | |
3851 | target_cpu_default=8 | |
3852 | use_collect2=yes | |
861bb6c1 JL |
3853 | ;; |
3854 | c38-convex-*) | |
3855 | target_cpu_default=16 | |
3856 | use_collect2=yes | |
861bb6c1 | 3857 | ;; |
62616695 MH |
3858 | c4x-*) |
3859 | cpu_type=c4x | |
3860 | tmake_file=c4x/t-c4x | |
3861 | ;; | |
861bb6c1 JL |
3862 | clipper-intergraph-clix*) |
3863 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3864 | xm_file=clipper/xm-clix.h | |
3865 | xmake_file=clipper/x-clix | |
3866 | extra_headers=va-clipper.h | |
3867 | extra_parts="crtbegin.o crtend.o" | |
3868 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3869 | ;; |
a5c874cb RH |
3870 | d30v-*) |
3871 | float_format=i64 | |
3872 | ;; | |
861bb6c1 JL |
3873 | dsp16xx-*) |
3874 | ;; | |
3875 | elxsi-elxsi-*) | |
3876 | use_collect2=yes | |
3877 | ;; | |
309dd885 NC |
3878 | fr30-*-elf) |
3879 | tm_file="fr30/fr30.h" | |
3880 | tmake_file=fr30/t-fr30 | |
3881 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3882 | ;; | |
861bb6c1 JL |
3883 | # This hasn't been upgraded to GCC 2. |
3884 | # fx80-alliant-*) # Alliant FX/80 | |
3885 | # ;; | |
3886 | h8300-*-*) | |
3887 | float_format=i32 | |
3888 | ;; | |
30f08b39 JL |
3889 | hppa*-*-linux*) |
3890 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3891 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3892 | tmake_file="t-linux pa/t-linux" | |
3893 | extra_parts="crtbegin.o crtend.o" | |
3894 | xmake_file=none | |
3895 | gas=yes gnu_ld=yes | |
3896 | if test x$enable_threads = xyes; then | |
3897 | thread_file='posix' | |
3898 | fi | |
3899 | ;; | |
1b4a979b | 3900 | hppa*-*-openbsd*) |
13ee407e | 3901 | target_cpu_default="MASK_PA_11" |
4525d757 | 3902 | tmake_file=pa/t-openbsd |
1b4a979b | 3903 | ;; |
861bb6c1 | 3904 | hppa1.1-*-pro*) |
0d381b47 | 3905 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3906 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
861bb6c1 JL |
3907 | xm_file=pa/xm-papro.h |
3908 | tmake_file=pa/t-pro | |
3909 | ;; | |
3910 | hppa1.1-*-osf*) | |
13ee407e | 3911 | target_cpu_default="MASK_PA_11" |
88624c0e | 3912 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3913 | use_collect2=yes |
861bb6c1 JL |
3914 | ;; |
3915 | hppa1.1-*-rtems*) | |
0d381b47 | 3916 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3917 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" |
861bb6c1 JL |
3918 | xm_file=pa/xm-papro.h |
3919 | tmake_file=pa/t-pro | |
3920 | ;; | |
3921 | hppa1.0-*-osf*) | |
88624c0e | 3922 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3923 | use_collect2=yes |
861bb6c1 JL |
3924 | ;; |
3925 | hppa1.1-*-bsd*) | |
88624c0e | 3926 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
13ee407e | 3927 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3928 | use_collect2=yes |
861bb6c1 JL |
3929 | ;; |
3930 | hppa1.0-*-bsd*) | |
88624c0e | 3931 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
861bb6c1 | 3932 | use_collect2=yes |
861bb6c1 JL |
3933 | ;; |
3934 | hppa1.0-*-hpux7*) | |
88624c0e | 3935 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3936 | xm_file=pa/xm-pahpux.h |
3937 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3938 | if test x$gas = xyes |
861bb6c1 JL |
3939 | then |
3940 | tm_file="${tm_file} pa/gas.h" | |
3941 | fi | |
861bb6c1 JL |
3942 | install_headers_dir=install-headers-cpio |
3943 | use_collect2=yes | |
3944 | ;; | |
3945 | hppa1.0-*-hpux8.0[0-2]*) | |
88624c0e | 3946 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3947 | xm_file=pa/xm-pahpux.h |
3948 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3949 | if test x$gas = xyes |
861bb6c1 JL |
3950 | then |
3951 | tm_file="${tm_file} pa/pa-gas.h" | |
3952 | else | |
3953 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3954 | fi | |
861bb6c1 JL |
3955 | install_headers_dir=install-headers-cpio |
3956 | use_collect2=yes | |
3957 | ;; | |
3958 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3959 | target_cpu_default="MASK_PA_11" |
88624c0e | 3960 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3961 | xm_file=pa/xm-pahpux.h |
3962 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3963 | if test x$gas = xyes |
861bb6c1 JL |
3964 | then |
3965 | tm_file="${tm_file} pa/pa-gas.h" | |
3966 | else | |
3967 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3968 | fi | |
861bb6c1 JL |
3969 | install_headers_dir=install-headers-cpio |
3970 | use_collect2=yes | |
3971 | ;; | |
3972 | hppa1.1-*-hpux8*) | |
13ee407e | 3973 | target_cpu_default="MASK_PA_11" |
88624c0e | 3974 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3975 | xm_file=pa/xm-pahpux.h |
3976 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3977 | if test x$gas = xyes |
861bb6c1 JL |
3978 | then |
3979 | tm_file="${tm_file} pa/pa-gas.h" | |
3980 | fi | |
861bb6c1 JL |
3981 | install_headers_dir=install-headers-cpio |
3982 | use_collect2=yes | |
3983 | ;; | |
3984 | hppa1.0-*-hpux8*) | |
88624c0e | 3985 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3986 | xm_file=pa/xm-pahpux.h |
3987 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3988 | if test x$gas = xyes |
861bb6c1 JL |
3989 | then |
3990 | tm_file="${tm_file} pa/pa-gas.h" | |
3991 | fi | |
861bb6c1 JL |
3992 | install_headers_dir=install-headers-cpio |
3993 | use_collect2=yes | |
3994 | ;; | |
18cae839 | 3995 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3996 | target_cpu_default="MASK_PA_11" |
88624c0e | 3997 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3998 | float_format=i128 |
861bb6c1 JL |
3999 | xm_file=pa/xm-pahpux.h |
4000 | xmake_file=pa/x-pa-hpux | |
f24af81b | 4001 | tmake_file=pa/t-pa |
75bffa71 | 4002 | if test x$gas = xyes |
861bb6c1 JL |
4003 | then |
4004 | tm_file="${tm_file} pa/pa-gas.h" | |
4005 | fi | |
75bffa71 | 4006 | if test x$enable_threads = x; then |
f24af81b TT |
4007 | enable_threads=$have_pthread_h |
4008 | fi | |
75bffa71 | 4009 | if test x$enable_threads = xyes; then |
f24af81b TT |
4010 | thread_file='dce' |
4011 | tmake_file="${tmake_file} pa/t-dce-thr" | |
4012 | fi | |
861bb6c1 JL |
4013 | install_headers_dir=install-headers-cpio |
4014 | use_collect2=yes | |
4015 | ;; | |
4016 | hppa1.0-*-hpux10*) | |
88624c0e | 4017 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 4018 | float_format=i128 |
861bb6c1 JL |
4019 | xm_file=pa/xm-pahpux.h |
4020 | xmake_file=pa/x-pa-hpux | |
661c7909 | 4021 | tmake_file=pa/t-pa |
75bffa71 | 4022 | if test x$gas = xyes |
861bb6c1 JL |
4023 | then |
4024 | tm_file="${tm_file} pa/pa-gas.h" | |
4025 | fi | |
75bffa71 | 4026 | if test x$enable_threads = x; then |
d005a5a4 JL |
4027 | enable_threads=$have_pthread_h |
4028 | fi | |
75bffa71 | 4029 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
4030 | thread_file='dce' |
4031 | tmake_file="${tmake_file} pa/t-dce-thr" | |
4032 | fi | |
861bb6c1 JL |
4033 | install_headers_dir=install-headers-cpio |
4034 | use_collect2=yes | |
4035 | ;; | |
99b09ff3 JL |
4036 | hppa*64*-*-hpux11*) |
4037 | target_cpu_default="MASK_PA_11" | |
4038 | xm_file=pa/xm-pa64hpux.h | |
4039 | xmake_file=pa/x-pa-hpux | |
4040 | tmake_file=pa/t-pa | |
4041 | tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h" | |
4042 | float_format=i128 | |
4043 | tmake_file=pa/t-pa64 | |
4044 | target_cpu_default="(MASK_PA_11|MASK_PA_20)" | |
4045 | ||
4046 | if [ x$gas = xyes ] | |
4047 | then | |
4048 | tm_file="${tm_file} pa/pa-gas.h" | |
4049 | fi | |
4050 | # if [[ x$enable_threads = x ]]; then | |
4051 | # enable_threads=$have_pthread_h | |
4052 | # fi | |
4053 | # if [[ x$enable_threads = xyes ]]; then | |
4054 | # thread_file='dce' | |
4055 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
4056 | # fi | |
4057 | install_headers_dir=install-headers-cpio | |
4058 | use_collect2=yes | |
4059 | ;; | |
fab7be4f | 4060 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 4061 | target_cpu_default="MASK_PA_11" |
88624c0e | 4062 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 4063 | float_format=i128 |
fab7be4f JL |
4064 | xm_file=pa/xm-pahpux.h |
4065 | xmake_file=pa/x-pa-hpux | |
4066 | tmake_file=pa/t-pa | |
2618c083 | 4067 | if test x$gas = xyes |
fab7be4f JL |
4068 | then |
4069 | tm_file="${tm_file} pa/pa-gas.h" | |
4070 | fi | |
2618c083 | 4071 | # if test x$enable_threads = x; then |
fab7be4f JL |
4072 | # enable_threads=$have_pthread_h |
4073 | # fi | |
2618c083 | 4074 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
4075 | # thread_file='dce' |
4076 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
4077 | # fi | |
4078 | install_headers_dir=install-headers-cpio | |
4079 | use_collect2=yes | |
4080 | ;; | |
4081 | hppa1.0-*-hpux11*) | |
88624c0e | 4082 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 4083 | float_format=i128 |
fab7be4f JL |
4084 | xm_file=pa/xm-pahpux.h |
4085 | xmake_file=pa/x-pa-hpux | |
2618c083 | 4086 | if test x$gas = xyes |
fab7be4f JL |
4087 | then |
4088 | tm_file="${tm_file} pa/pa-gas.h" | |
4089 | fi | |
2618c083 | 4090 | # if test x$enable_threads = x; then |
fab7be4f JL |
4091 | # enable_threads=$have_pthread_h |
4092 | # fi | |
2618c083 | 4093 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
4094 | # thread_file='dce' |
4095 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
4096 | # fi | |
4097 | install_headers_dir=install-headers-cpio | |
4098 | use_collect2=yes | |
4099 | ;; | |
18cae839 | 4100 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 4101 | target_cpu_default="MASK_PA_11" |
88624c0e | 4102 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
4103 | xm_file=pa/xm-pahpux.h |
4104 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 4105 | if test x$gas = xyes |
861bb6c1 JL |
4106 | then |
4107 | tm_file="${tm_file} pa/pa-gas.h" | |
4108 | fi | |
861bb6c1 JL |
4109 | install_headers_dir=install-headers-cpio |
4110 | use_collect2=yes | |
4111 | ;; | |
4112 | hppa1.0-*-hpux*) | |
88624c0e | 4113 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
4114 | xm_file=pa/xm-pahpux.h |
4115 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 4116 | if test x$gas = xyes |
861bb6c1 JL |
4117 | then |
4118 | tm_file="${tm_file} pa/pa-gas.h" | |
4119 | fi | |
861bb6c1 JL |
4120 | install_headers_dir=install-headers-cpio |
4121 | use_collect2=yes | |
4122 | ;; | |
18cae839 | 4123 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 4124 | target_cpu_default="MASK_PA_11" |
88624c0e | 4125 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
4126 | xm_file=pa/xm-pahpux.h |
4127 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 4128 | if test x$gas = xyes |
861bb6c1 JL |
4129 | then |
4130 | tm_file="${tm_file} pa/pa-gas.h" | |
4131 | fi | |
861bb6c1 JL |
4132 | install_headers_dir=install-headers-cpio |
4133 | use_collect2=yes | |
4134 | ;; | |
4135 | hppa1.0-*-hiux*) | |
88624c0e | 4136 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
4137 | xm_file=pa/xm-pahpux.h |
4138 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 4139 | if test x$gas = xyes |
861bb6c1 JL |
4140 | then |
4141 | tm_file="${tm_file} pa/pa-gas.h" | |
4142 | fi | |
861bb6c1 JL |
4143 | install_headers_dir=install-headers-cpio |
4144 | use_collect2=yes | |
4145 | ;; | |
4146 | hppa*-*-lites*) | |
88624c0e | 4147 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" |
13ee407e | 4148 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 4149 | use_collect2=yes |
861bb6c1 | 4150 | ;; |
6bc2c8c8 MK |
4151 | hppa*-*-mpeix*) |
4152 | tm_file="${tm_file} pa/pa-mpeix.h" | |
4153 | xm_file=pa/xm-pampeix.h | |
4154 | xmake_file=pa/x-pa-mpeix | |
4155 | echo "You must use gas. Assuming it is already installed." | |
4156 | install_headers_dir=install-headers-tar | |
6bc2c8c8 MK |
4157 | use_collect2=yes |
4158 | ;; | |
a2b368b6 LV |
4159 | i370-*-opened*) # IBM 360/370/390 Architecture |
4160 | xm_file=i370/xm-oe.h | |
4161 | tm_file=i370/oe.h | |
4162 | xmake_file=i370/x-oe | |
4163 | tmake_file=i370/t-oe | |
a2b368b6 | 4164 | ;; |
861bb6c1 | 4165 | i370-*-mvs*) |
a2b368b6 LV |
4166 | xm_file=i370/xm-mvs.h |
4167 | tm_file=i370/mvs.h | |
4168 | tmake_file=i370/t-mvs | |
a2b368b6 LV |
4169 | ;; |
4170 | i370-*-linux*) | |
4171 | xm_file="xm-linux.h i370/xm-linux.h" | |
4172 | xmake_file=x-linux | |
4173 | tm_file="i370/linux.h ${tm_file}" | |
4174 | tmake_file="t-linux i370/t-linux" | |
a2b368b6 LV |
4175 | # broken_install=yes |
4176 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
4177 | # extra_parts="crtbegin.o crtend.o" | |
4178 | gnu_ld=yes | |
4179 | gas=yes | |
4180 | elf=yes | |
2618c083 | 4181 | if test x$enable_threads = xyes; then |
a2b368b6 LV |
4182 | thread_file='posix' |
4183 | fi | |
861bb6c1 | 4184 | ;; |
9b5c756a JL |
4185 | i[34567]86-*-elf*) |
4186 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
4187 | tm_file=i386/i386elf.h | |
4188 | tmake_file=i386/t-i386elf | |
4189 | xmake_file=x-svr4 | |
4190 | ;; | |
f6cb0e63 | 4191 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 4192 | if test x$gas = xyes |
861bb6c1 JL |
4193 | then |
4194 | tm_file=i386/aix386.h | |
4195 | extra_parts="crtbegin.o crtend.o" | |
4196 | tmake_file=i386/t-crtstuff | |
4197 | else | |
4198 | tm_file=i386/aix386ng.h | |
4199 | use_collect2=yes | |
4200 | fi | |
f6cb0e63 JL |
4201 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
4202 | xm_defines=USG | |
861bb6c1 | 4203 | xmake_file=i386/x-aix |
861bb6c1 | 4204 | ;; |
75bffa71 | 4205 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2d092ffa | 4206 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4207 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4208 | xmake_file=i386/x-ncr3000 |
75bffa71 | 4209 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
4210 | then |
4211 | tm_file=i386/sysv4gdb.h | |
4212 | else | |
4213 | tm_file=i386/sysv4.h | |
4214 | fi | |
4215 | extra_parts="crtbegin.o crtend.o" | |
4216 | tmake_file=i386/t-crtpic | |
4217 | ;; | |
f6cb0e63 | 4218 | i[34567]86-next-*) |
861bb6c1 JL |
4219 | tm_file=i386/next.h |
4220 | xm_file=i386/xm-next.h | |
4221 | tmake_file=i386/t-next | |
4222 | xmake_file=i386/x-next | |
4223 | extra_objs=nextstep.o | |
750930c1 | 4224 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 4225 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4226 | thread_file='mach' |
4227 | fi | |
4228 | ;; | |
f6cb0e63 | 4229 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 4230 | use_collect2=yes |
75bffa71 | 4231 | if test x$gas = xyes |
861bb6c1 JL |
4232 | then |
4233 | tm_file=i386/seq-gas.h | |
4234 | else | |
4235 | tm_file=i386/sequent.h | |
4236 | fi | |
4237 | ;; | |
f6cb0e63 JL |
4238 | i[34567]86-sequent-ptx1*) |
4239 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4240 | xmake_file=i386/x-sysv3 |
4241 | tm_file=i386/seq-sysv3.h | |
4242 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
4243 | extra_parts="crtbegin.o crtend.o" |
4244 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4245 | ;; |
f6cb0e63 JL |
4246 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
4247 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4248 | xmake_file=i386/x-sysv3 |
4249 | tm_file=i386/seq2-sysv3.h | |
4250 | tmake_file=i386/t-crtstuff | |
4251 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4252 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4253 | ;; |
f6cb0e63 | 4254 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2d092ffa | 4255 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4256 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 JL |
4257 | xmake_file=x-svr4 |
4258 | tm_file=i386/ptx4-i.h | |
4259 | tmake_file=t-svr4 | |
4260 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4261 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
4262 | ;; |
4263 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 4264 | xm_defines=USG |
861bb6c1 JL |
4265 | tm_file=i386/sun.h |
4266 | use_collect2=yes | |
4267 | ;; | |
62db76ee | 4268 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
4269 | tm_file=i386/vxi386.h |
4270 | tmake_file=i386/t-i386bare | |
28897609 | 4271 | thread_file='vxworks' |
9e89df50 | 4272 | ;; |
f6cb0e63 | 4273 | i[34567]86-*-aout*) |
861bb6c1 JL |
4274 | tm_file=i386/i386-aout.h |
4275 | tmake_file=i386/t-i386bare | |
4276 | ;; | |
11950183 JM |
4277 | i[34567]86-*-beospe*) |
4278 | xm_file=i386/xm-beos.h | |
4279 | xm_defines="USE_C_ALLOCA" | |
4280 | tmake_file=i386/t-beos | |
4281 | tm_file=i386/beos-pe.h | |
4282 | xmake_file=i386/x-beos | |
4283 | extra_objs=winnt.o | |
4284 | ;; | |
4285 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
4286 | xm_file=i386/xm-beos.h | |
4287 | tmake_file='i386/t-beos i386/t-crtpic' | |
4288 | tm_file=i386/beos-elf.h | |
4289 | xmake_file=i386/x-beos | |
4290 | extra_objs=winnt.o | |
4291 | extra_parts='crtbegin.o crtend.o' | |
11950183 | 4292 | ;; |
f6cb0e63 | 4293 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 4294 | tm_file=i386/bsd386.h |
861bb6c1 JL |
4295 | # tmake_file=t-libc-ok |
4296 | ;; | |
f6cb0e63 | 4297 | i[34567]86-*-bsd*) |
861bb6c1 | 4298 | tm_file=i386/386bsd.h |
861bb6c1 JL |
4299 | # tmake_file=t-libc-ok |
4300 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
4301 | # use_collect2=yes | |
4302 | ;; | |
f6cb0e63 | 4303 | i[34567]86-*-freebsdelf*) |
4e32293c | 4304 | tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 4305 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 4306 | tmake_file=t-freebsd |
861bb6c1 JL |
4307 | gas=yes |
4308 | gnu_ld=yes | |
4309 | stabs=yes | |
46346e0e LR |
4310 | case x${enable_threads} in |
4311 | xyes | xpthreads | xposix) | |
4312 | thread_file='posix' | |
e1459ff8 | 4313 | tmake_file="${tmake_file} t-freebsd-thread" |
46346e0e LR |
4314 | ;; |
4315 | esac | |
861bb6c1 | 4316 | ;; |
f6cb0e63 | 4317 | i[34567]86-*-freebsd*) |
4e32293c | 4318 | tm_file="i386/freebsd.h i386/perform.h" |
d0550c9b | 4319 | tmake_file=t-freebsd |
861bb6c1 | 4320 | ;; |
1b4a979b | 4321 | i[34567]86-*-netbsd*) |
861bb6c1 | 4322 | tm_file=i386/netbsd.h |
861bb6c1 | 4323 | tmake_file=t-netbsd |
ed4acb3b | 4324 | use_collect2=yes |
861bb6c1 | 4325 | ;; |
1b4a979b | 4326 | i[34567]86-*-openbsd*) |
1b4a979b ME |
4327 | # we need collect2 until our bug is fixed... |
4328 | use_collect2=yes | |
4329 | ;; | |
f6cb0e63 | 4330 | i[34567]86-*-coff*) |
861bb6c1 JL |
4331 | tm_file=i386/i386-coff.h |
4332 | tmake_file=i386/t-i386bare | |
4333 | ;; | |
f6cb0e63 JL |
4334 | i[34567]86-*-isc*) # 80386 running ISC system |
4335 | xm_file="${xm_file} i386/xm-isc.h" | |
4336 | xm_defines="USG SVR3" | |
861bb6c1 | 4337 | case $machine in |
f6cb0e63 | 4338 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
4339 | xmake_file=i386/x-isc3 |
4340 | ;; | |
4341 | *) | |
4342 | xmake_file=i386/x-isc | |
4343 | ;; | |
4344 | esac | |
75bffa71 | 4345 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
4346 | then |
4347 | tm_file=i386/iscdbx.h | |
4348 | tmake_file=i386/t-svr3dbx | |
4349 | extra_parts="svr3.ifile svr3z.ifile" | |
4350 | else | |
4351 | tm_file=i386/isccoff.h | |
4352 | tmake_file=i386/t-crtstuff | |
4353 | extra_parts="crtbegin.o crtend.o" | |
4354 | fi | |
d8e7c884 | 4355 | tmake_file="$tmake_file i386/t-i386bare" |
861bb6c1 | 4356 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4357 | ;; |
f6cb0e63 | 4358 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 4359 | # pre BFD linkers |
861bb6c1 JL |
4360 | xmake_file=x-linux-aout |
4361 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4362 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 4363 | gnu_ld=yes |
af39d8f5 | 4364 | float_format=i386 |
861bb6c1 | 4365 | ;; |
f6cb0e63 | 4366 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
4367 | xmake_file=x-linux-aout |
4368 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4369 | tm_file=i386/linux-aout.h | |
861bb6c1 | 4370 | gnu_ld=yes |
af39d8f5 | 4371 | float_format=i386 |
861bb6c1 | 4372 | ;; |
f6cb0e63 | 4373 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4374 | # GNU/Linux C library 5 |
4375 | xmake_file=x-linux | |
4376 | tm_file=i386/linux.h | |
861bb6c1 JL |
4377 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
4378 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4379 | gnu_ld=yes |
af39d8f5 | 4380 | float_format=i386 |
75bffa71 | 4381 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4382 | thread_file='single' |
4383 | fi | |
4384 | ;; | |
f6cb0e63 | 4385 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4386 | # aka GNU/Linux C library 6 |
4387 | xmake_file=x-linux | |
861bb6c1 JL |
4388 | tm_file=i386/linux.h |
4389 | tmake_file="t-linux i386/t-crtstuff" | |
4390 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4391 | gnu_ld=yes |
af39d8f5 | 4392 | float_format=i386 |
75bffa71 | 4393 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4394 | thread_file='posix' |
4395 | fi | |
4396 | ;; | |
f6cb0e63 | 4397 | i[34567]86-*-gnu*) |
cd9e5e7c | 4398 | float_format=i386 |
f6cb0e63 JL |
4399 | ;; |
4400 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 4401 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 4402 | exit 1 |
861bb6c1 | 4403 | ;; |
f6cb0e63 | 4404 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
4405 | xm_file=i386/xm-djgpp.h |
4406 | tm_file=i386/djgpp.h | |
4407 | tmake_file=i386/t-djgpp | |
4408 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
4409 | gnu_ld=yes |
4410 | gas=yes | |
dedcc399 | 4411 | exeext=.exe |
2838397c | 4412 | float_format=none |
77d787fa | 4413 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
4414 | target_alias=djgpp |
4415 | ;; | |
4416 | esac | |
861bb6c1 | 4417 | ;; |
f6cb0e63 | 4418 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
4419 | tm_file=i386/moss.h |
4420 | tmake_file=t-libc-ok | |
861bb6c1 JL |
4421 | gnu_ld=yes |
4422 | gas=yes | |
4423 | ;; | |
f6cb0e63 | 4424 | i[34567]86-*-lynxos*) |
75bffa71 | 4425 | if test x$gas = xyes |
861bb6c1 JL |
4426 | then |
4427 | tm_file=i386/lynx.h | |
4428 | else | |
4429 | tm_file=i386/lynx-ng.h | |
4430 | fi | |
4431 | xm_file=i386/xm-lynx.h | |
4432 | tmake_file=i386/t-i386bare | |
4433 | xmake_file=x-lynx | |
4434 | ;; | |
f6cb0e63 | 4435 | i[34567]86-*-mach*) |
861bb6c1 JL |
4436 | tm_file=i386/mach.h |
4437 | # tmake_file=t-libc-ok | |
4438 | use_collect2=yes | |
4439 | ;; | |
f6cb0e63 | 4440 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 4441 | if test x$elf = xyes |
861bb6c1 JL |
4442 | then |
4443 | tm_file=i386/osfelf.h | |
4444 | use_collect2= | |
4445 | else | |
4446 | tm_file=i386/osfrose.h | |
4447 | use_collect2=yes | |
4448 | fi | |
f6cb0e63 | 4449 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
4450 | xmake_file=i386/x-osfrose |
4451 | tmake_file=i386/t-osf | |
4452 | extra_objs=halfpic.o | |
4453 | ;; | |
f6cb0e63 | 4454 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
4455 | cpu_type=i386 |
4456 | xm_file=i386/xm-go32.h | |
4457 | tm_file=i386/go32-rtems.h | |
4458 | tmake_file="i386/t-go32 t-rtems" | |
4459 | ;; | |
0d4ef09c JS |
4460 | i[34567]86-*-rtemscoff*) |
4461 | cpu_type=i386 | |
4462 | tm_file=i386/rtems.h | |
4463 | tmake_file="i386/t-i386bare t-rtems" | |
4464 | ;; | |
d1476635 | 4465 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) |
f5963e61 JL |
4466 | cpu_type=i386 |
4467 | tm_file=i386/rtemself.h | |
d1476635 JS |
4468 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4469 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
f5963e61 | 4470 | ;; |
f6cb0e63 | 4471 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2d092ffa | 4472 | xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h" |
f6cb0e63 | 4473 | xm_defines="USG SVR3" |
861bb6c1 | 4474 | xmake_file=i386/x-sco5 |
f6857708 | 4475 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4476 | tm_file=i386/sco5.h |
75bffa71 | 4477 | if test x$gas = xyes |
44bb0e93 RL |
4478 | then |
4479 | tm_file="i386/sco5gas.h ${tm_file}" | |
4480 | tmake_file=i386/t-sco5gas | |
4481 | else | |
4482 | tmake_file=i386/t-sco5 | |
4483 | fi | |
d8e7c884 | 4484 | tmake_file="$tmake_file i386/t-i386bare" |
42902a72 | 4485 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 4486 | ;; |
f6cb0e63 JL |
4487 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
4488 | xm_file="${xm_file} i386/xm-sco.h" | |
2d092ffa | 4489 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX" |
861bb6c1 | 4490 | xmake_file=i386/x-sco4 |
861bb6c1 | 4491 | install_headers_dir=install-headers-cpio |
75bffa71 | 4492 | if test x$stabs = xyes |
861bb6c1 JL |
4493 | then |
4494 | tm_file=i386/sco4dbx.h | |
4495 | tmake_file=i386/t-svr3dbx | |
4496 | extra_parts="svr3.ifile svr3z.rfile" | |
4497 | else | |
4498 | tm_file=i386/sco4.h | |
4499 | tmake_file=i386/t-crtstuff | |
4500 | extra_parts="crtbegin.o crtend.o" | |
4501 | fi | |
d8e7c884 | 4502 | tmake_file="$tmake_file i386/t-i386bare" |
090164c0 WB |
4503 | # The default EAFS filesystem supports long file names. |
4504 | # Truncating the target makes $host != $target which | |
4505 | # makes gcc think it is doing a cross-compile. | |
4506 | # truncate_target=yes | |
861bb6c1 | 4507 | ;; |
f6cb0e63 | 4508 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
4509 | xm_file=i386/xm-sco.h |
4510 | xmake_file=i386/x-sco | |
861bb6c1 | 4511 | install_headers_dir=install-headers-cpio |
75bffa71 | 4512 | if test x$stabs = xyes |
861bb6c1 JL |
4513 | then |
4514 | tm_file=i386/scodbx.h | |
4515 | tmake_file=i386/t-svr3dbx | |
4516 | extra_parts="svr3.ifile svr3z.rfile" | |
4517 | else | |
4518 | tm_file=i386/sco.h | |
4519 | extra_parts="crtbegin.o crtend.o" | |
4520 | tmake_file=i386/t-crtstuff | |
4521 | fi | |
d8e7c884 | 4522 | tmake_file="$tmake_file i386/t-i386bare" |
861bb6c1 JL |
4523 | truncate_target=yes |
4524 | ;; | |
f6cb0e63 | 4525 | i[34567]86-*-solaris2*) |
2d092ffa | 4526 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4527 | xm_defines="USG POSIX SMALL_ARG_MAX" |
0c723ada AO |
4528 | tm_file=i386/sol2.h |
4529 | if test x$gas = xyes; then | |
4530 | # Only needed if gas does not support -s | |
4531 | tm_file="i386/sol2gas.h ${tm_file}" | |
861bb6c1 | 4532 | fi |
d8e7c884 | 4533 | tmake_file="i386/t-i386bare i386/t-sol2" |
f6cb0e63 | 4534 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 4535 | xmake_file=x-svr4 |
4a8021dc AO |
4536 | if test x${enable_threads} = x; then |
4537 | enable_threads=$have_pthread_h | |
4538 | if test x${enable_threads} = x; then | |
4539 | enable_threads=$have_thread_h | |
4540 | fi | |
4541 | fi | |
4542 | if test x${enable_threads} = xyes; then | |
4543 | if test x${have_pthread_h} = xyes; then | |
4544 | thread_file='posix' | |
4545 | else | |
861bb6c1 | 4546 | thread_file='solaris' |
4a8021dc | 4547 | fi |
861bb6c1 JL |
4548 | fi |
4549 | ;; | |
f6cb0e63 | 4550 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
2d092ffa | 4551 | xm_file="xm-alloca.h ${xm_file}" |
48a51bf4 | 4552 | xm_defines="USG POSIX" |
87e11b70 | 4553 | tm_file=i386/sysv5.h |
75bffa71 | 4554 | if test x$stabs = xyes |
fe07d4c1 RL |
4555 | then |
4556 | tm_file="${tm_file} dbx.h" | |
4557 | fi | |
d8e7c884 | 4558 | tmake_file="i386/t-i386bare i386/t-crtpic" |
fe07d4c1 RL |
4559 | xmake_file=x-svr4 |
4560 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
4561 | if test x$enable_threads = xyes; then |
4562 | thread_file='posix' | |
4563 | fi | |
fe07d4c1 | 4564 | ;; |
f6cb0e63 | 4565 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
2d092ffa | 4566 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4567 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4568 | tm_file=i386/sysv4.h |
75bffa71 | 4569 | if test x$stabs = xyes |
861bb6c1 JL |
4570 | then |
4571 | tm_file="${tm_file} dbx.h" | |
4572 | fi | |
d8e7c884 | 4573 | tmake_file="i386/t-i386bare i386/t-crtpic" |
861bb6c1 JL |
4574 | xmake_file=x-svr4 |
4575 | extra_parts="crtbegin.o crtend.o" | |
4576 | ;; | |
112674fa | 4577 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
2d092ffa | 4578 | xm_file="xm-alloca.h ${xm_file}" |
112674fa RL |
4579 | xm_defines="USG POSIX" |
4580 | tm_file=i386/udk.h | |
d8e7c884 | 4581 | tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk" |
112674fa RL |
4582 | xmake_file=x-svr4 |
4583 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 4584 | install_headers_dir=install-headers-cpio |
112674fa | 4585 | ;; |
f5963e61 JL |
4586 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
4587 | cpu_type=i386 | |
4588 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
4589 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 4590 | if test x$stabs = xyes |
f5963e61 JL |
4591 | then |
4592 | tm_file=i386/osf1elfgdb.h | |
4593 | else | |
4594 | tm_file=i386/osf1elf.h | |
4595 | fi | |
4596 | tmake_file=i386/t-osf1elf | |
4597 | xmake_file=i386/x-osf1elf | |
4598 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4599 | ;; | |
f6cb0e63 JL |
4600 | i[34567]86-*-sysv*) # Intel 80386's running system V |
4601 | xm_defines="USG SVR3" | |
861bb6c1 | 4602 | xmake_file=i386/x-sysv3 |
75bffa71 | 4603 | if test x$gas = xyes |
861bb6c1 | 4604 | then |
75bffa71 | 4605 | if test x$stabs = xyes |
861bb6c1 JL |
4606 | then |
4607 | tm_file=i386/svr3dbx.h | |
4608 | tmake_file=i386/t-svr3dbx | |
4609 | extra_parts="svr3.ifile svr3z.rfile" | |
4610 | else | |
4611 | tm_file=i386/svr3gas.h | |
4612 | extra_parts="crtbegin.o crtend.o" | |
4613 | tmake_file=i386/t-crtstuff | |
4614 | fi | |
4615 | else | |
4616 | tm_file=i386/sysv3.h | |
4617 | extra_parts="crtbegin.o crtend.o" | |
4618 | tmake_file=i386/t-crtstuff | |
4619 | fi | |
d8e7c884 | 4620 | tmake_file="$tmake_file i386/t-crtpic" |
861bb6c1 JL |
4621 | ;; |
4622 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 4623 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
4624 | tm_file=i386/vsta.h |
4625 | tmake_file=i386/t-vsta | |
4626 | xmake_file=i386/x-vsta | |
4627 | ;; | |
84530511 | 4628 | i[34567]86-*-win32) |
cae21ae8 GN |
4629 | xm_file="${xm_file} i386/xm-cygwin.h" |
4630 | tmake_file=i386/t-cygwin | |
84530511 | 4631 | tm_file=i386/win32.h |
cae21ae8 | 4632 | xmake_file=i386/x-cygwin |
84530511 | 4633 | extra_objs=winnt.o |
75bffa71 | 4634 | if test x$enable_threads = xyes; then |
84530511 SC |
4635 | thread_file='win32' |
4636 | fi | |
4637 | exeext=.exe | |
4638 | ;; | |
cae21ae8 GN |
4639 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
4640 | xm_file="${xm_file} i386/xm-cygwin.h" | |
4641 | tmake_file=i386/t-cygwin | |
4642 | tm_file=i386/cygwin.h | |
4643 | xmake_file=i386/x-cygwin | |
861bb6c1 | 4644 | extra_objs=winnt.o |
75bffa71 | 4645 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4646 | thread_file='win32' |
4647 | fi | |
4648 | exeext=.exe | |
4649 | ;; | |
f6cb0e63 | 4650 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
4651 | tm_file=i386/mingw32.h |
4652 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 4653 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 4654 | extra_objs=winnt.o |
cae21ae8 | 4655 | xmake_file=i386/x-cygwin |
75bffa71 | 4656 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4657 | thread_file='win32' |
4658 | fi | |
4659 | exeext=.exe | |
f6cb0e63 JL |
4660 | case $machine in |
4661 | *mingw32msv*) | |
4662 | ;; | |
4663 | *minwg32crt* | *mingw32*) | |
4664 | tm_file="${tm_file} i386/crtdll.h" | |
4665 | ;; | |
4666 | esac | |
861bb6c1 | 4667 | ;; |
b27d2bd5 MK |
4668 | i[34567]86-*-uwin*) |
4669 | tm_file=i386/uwin.h | |
4670 | xm_file="${xm_file} i386/xm-uwin.h" | |
2d092ffa | 4671 | xm_defines="USG NO_STAB_H" |
b27d2bd5 MK |
4672 | tmake_file="i386/t-cygwin i386/t-uwin" |
4673 | extra_objs=winnt.o | |
4674 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
4675 | if test x$enable_threads = xyes; then |
4676 | thread_file='win32' | |
4677 | fi | |
4678 | exeext=.exe | |
4679 | ;; | |
052dbd9e | 4680 | i[34567]86-*-interix*) |
615c8231 | 4681 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 4682 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
2d092ffa | 4683 | xm_defines="USG" |
052dbd9e MK |
4684 | tmake_file="i386/t-interix" |
4685 | extra_objs=interix.o | |
4686 | xmake_file=x-interix | |
615c8231 | 4687 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
4688 | thread_file='posix' |
4689 | fi | |
615c8231 | 4690 | if test x$stabs = xyes ; then |
052dbd9e MK |
4691 | tm_file="${tm_file} dbxcoff.h" |
4692 | fi | |
4693 | ;; | |
f6cb0e63 | 4694 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
4695 | tm_file=i386/win-nt.h |
4696 | out_file=i386/i386.c | |
f6cb0e63 | 4697 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
4698 | xmake_file=winnt/x-winnt |
4699 | tmake_file=i386/t-winnt | |
4700 | extra_host_objs="winnt.o oldnames.o" | |
4701 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 4702 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4703 | then |
4704 | extra_programs=ld.exe | |
4705 | fi | |
75bffa71 | 4706 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4707 | thread_file='win32' |
4708 | fi | |
4709 | ;; | |
f6cb0e63 | 4710 | i[34567]86-dg-dgux*) |
2d092ffa | 4711 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4712 | xm_defines="USG POSIX" |
861bb6c1 JL |
4713 | out_file=i386/dgux.c |
4714 | tm_file=i386/dgux.h | |
4715 | tmake_file=i386/t-dgux | |
4716 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4717 | install_headers_dir=install-headers-cpio |
4718 | ;; | |
4719 | i860-alliant-*) # Alliant FX/2800 | |
4720 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4721 | xm_file="${xm_file}" |
861bb6c1 JL |
4722 | xmake_file=i860/x-fx2800 |
4723 | tmake_file=i860/t-fx2800 | |
4724 | extra_parts="crtbegin.o crtend.o" | |
4725 | ;; | |
4726 | i860-*-bsd*) | |
4727 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4728 | if test x$gas = xyes |
861bb6c1 JL |
4729 | then |
4730 | tm_file="${tm_file} i860/bsd-gas.h" | |
4731 | fi | |
4732 | use_collect2=yes | |
4733 | ;; | |
4734 | i860-*-mach*) | |
4735 | tm_file="${tm_file} i860/mach.h" | |
4736 | tmake_file=t-libc-ok | |
4737 | ;; | |
4738 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4739 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4740 | xm_defines="USG SVR3" |
861bb6c1 | 4741 | tmake_file=t-osf |
861bb6c1 JL |
4742 | ;; |
4743 | i860-*-sysv3*) | |
4744 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4745 | xm_defines="USG SVR3" |
861bb6c1 JL |
4746 | xmake_file=i860/x-sysv3 |
4747 | extra_parts="crtbegin.o crtend.o" | |
4748 | ;; | |
4749 | i860-*-sysv4*) | |
4750 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4751 | xm_defines="USG SVR3" |
861bb6c1 JL |
4752 | xmake_file=i860/x-sysv4 |
4753 | tmake_file=t-svr4 | |
4754 | extra_parts="crtbegin.o crtend.o" | |
4755 | ;; | |
4756 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4757 | tm_file="${tm_file} i960/vx960.h" | |
4758 | tmake_file=i960/t-vxworks960 | |
4759 | use_collect2=yes | |
7cc34889 | 4760 | thread_file='vxworks' |
861bb6c1 | 4761 | ;; |
a0372c94 | 4762 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4763 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4764 | tmake_file=i960/t-vxworks960 | |
4765 | use_collect2=yes | |
7cc34889 | 4766 | thread_file='vxworks' |
861bb6c1 JL |
4767 | ;; |
4768 | i960-wrs-vxworks*) | |
4769 | tm_file="${tm_file} i960/vx960.h" | |
4770 | tmake_file=i960/t-vxworks960 | |
4771 | use_collect2=yes | |
7cc34889 | 4772 | thread_file='vxworks' |
861bb6c1 JL |
4773 | ;; |
4774 | i960-*-coff*) | |
4775 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4776 | tmake_file=i960/t-960bare | |
4777 | use_collect2=yes | |
4778 | ;; | |
4779 | i960-*-rtems) | |
4780 | tmake_file="i960/t-960bare t-rtems" | |
4781 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4782 | use_collect2=yes | |
4783 | ;; | |
4784 | i960-*-*) # Default i960 environment. | |
4785 | use_collect2=yes | |
4786 | ;; | |
c65ebc55 JW |
4787 | ia64*-*-elf*) |
4788 | tm_file=ia64/elf.h | |
4789 | tmake_file="ia64/t-ia64" | |
4790 | target_cpu_default="0" | |
4791 | if test x$gas = xyes | |
4792 | then | |
4793 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
4794 | fi | |
4795 | if test x$gnu_ld = xyes | |
4796 | then | |
4797 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
4798 | fi | |
4799 | ;; | |
4800 | ia64*-*-linux*) | |
4801 | tm_file=ia64/linux.h | |
4802 | tmake_file="t-linux ia64/t-ia64" | |
4803 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
4804 | if test x$enable_threads = xyes; then | |
4805 | thread_file='posix' | |
4806 | fi | |
4807 | ;; | |
861bb6c1 JL |
4808 | m32r-*-elf*) |
4809 | extra_parts="crtinit.o crtfini.o" | |
4810 | ;; | |
4811 | m68000-convergent-sysv*) | |
4812 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4813 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4814 | xm_defines=USG | |
861bb6c1 JL |
4815 | use_collect2=yes |
4816 | extra_headers=math-68881.h | |
4817 | ;; | |
4818 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4819 | tm_file=m68k/hp2bsd.h | |
4820 | xmake_file=m68k/x-hp2bsd | |
4821 | use_collect2=yes | |
4822 | extra_headers=math-68881.h | |
4823 | ;; | |
4824 | m68000-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4825 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4826 | xm_defines="USG" |
75bffa71 | 4827 | if test x$gas = xyes |
861bb6c1 JL |
4828 | then |
4829 | xmake_file=m68k/x-hp320g | |
4830 | tm_file=m68k/hp310g.h | |
4831 | else | |
4832 | xmake_file=m68k/x-hp320 | |
4833 | tm_file=m68k/hp310.h | |
4834 | fi | |
861bb6c1 JL |
4835 | install_headers_dir=install-headers-cpio |
4836 | use_collect2=yes | |
4837 | extra_headers=math-68881.h | |
4838 | ;; | |
4839 | m68000-sun-sunos3*) | |
4840 | tm_file=m68k/sun2.h | |
4841 | use_collect2=yes | |
4842 | extra_headers=math-68881.h | |
4843 | ;; | |
4844 | m68000-sun-sunos4*) | |
4845 | tm_file=m68k/sun2o4.h | |
4846 | use_collect2=yes | |
4847 | extra_headers=math-68881.h | |
4848 | ;; | |
4849 | m68000-att-sysv*) | |
f6cb0e63 JL |
4850 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4851 | xm_defines=USG | |
75bffa71 | 4852 | if test x$gas = xyes |
861bb6c1 JL |
4853 | then |
4854 | tm_file=m68k/3b1g.h | |
4855 | else | |
4856 | tm_file=m68k/3b1.h | |
4857 | fi | |
4858 | use_collect2=yes | |
4859 | extra_headers=math-68881.h | |
4860 | ;; | |
4861 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4862 | xm_defines="USG AUX" |
861bb6c1 | 4863 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4864 | install_headers_dir=install-headers-cpio |
4865 | extra_headers=math-68881.h | |
4866 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4867 | tm_file= | |
75bffa71 | 4868 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4869 | then |
4870 | tm_file="${tm_file} m68k/auxgld.h" | |
4871 | else | |
4872 | tm_file="${tm_file} m68k/auxld.h" | |
4873 | fi | |
75bffa71 | 4874 | if test "$gas" = yes |
861bb6c1 JL |
4875 | then |
4876 | tm_file="${tm_file} m68k/auxgas.h" | |
4877 | else | |
4878 | tm_file="${tm_file} m68k/auxas.h" | |
4879 | fi | |
4880 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4881 | float_format=m68k |
861bb6c1 JL |
4882 | ;; |
4883 | m68k-apollo-*) | |
4884 | tm_file=m68k/apollo68.h | |
4885 | xmake_file=m68k/x-apollo68 | |
4886 | use_collect2=yes | |
4887 | extra_headers=math-68881.h | |
0a95276e | 4888 | float_format=m68k |
861bb6c1 JL |
4889 | ;; |
4890 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4891 | if test x$gas = xyes |
861bb6c1 JL |
4892 | then |
4893 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4894 | xm_defines=USG |
861bb6c1 JL |
4895 | else |
4896 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4897 | exit 1 | |
4898 | fi | |
4899 | extra_headers=math-68881.h | |
4900 | ;; | |
4901 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4902 | if test x$gas = xyes |
861bb6c1 | 4903 | then |
75bffa71 | 4904 | if test x$stabs = xyes |
861bb6c1 JL |
4905 | then |
4906 | tm_file=m68k/dpx2cdbx.h | |
4907 | else | |
4908 | tm_file=m68k/dpx2g.h | |
4909 | fi | |
4910 | else | |
4911 | tm_file=m68k/dpx2.h | |
4912 | fi | |
f6cb0e63 JL |
4913 | xm_file="xm-alloca.h ${xm_file}" |
4914 | xm_defines=USG | |
861bb6c1 JL |
4915 | xmake_file=m68k/x-dpx2 |
4916 | use_collect2=yes | |
4917 | extra_headers=math-68881.h | |
4918 | ;; | |
4919 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4920 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4921 | xm_file="xm-alloca.h ${xm_file}" |
4922 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4923 | tmake_file=t-svr4 |
4924 | extra_parts="crtbegin.o crtend.o" | |
4925 | extra_headers=math-68881.h | |
0a95276e | 4926 | float_format=m68k |
861bb6c1 JL |
4927 | ;; |
4928 | m68k-motorola-sysv*) | |
4929 | tm_file=m68k/mot3300.h | |
f6cb0e63 | 4930 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
75bffa71 | 4931 | if test x$gas = xyes |
861bb6c1 JL |
4932 | then |
4933 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4934 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4935 | then |
4936 | tmake_file=m68k/t-mot3300-gald | |
4937 | else | |
4938 | tmake_file=m68k/t-mot3300-gas | |
4939 | use_collect2=yes | |
4940 | fi | |
4941 | else | |
4942 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4943 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4944 | then |
4945 | tmake_file=m68k/t-mot3300-gld | |
4946 | else | |
4947 | tmake_file=m68k/t-mot3300 | |
4948 | use_collect2=yes | |
4949 | fi | |
4950 | fi | |
4951 | gdb_needs_out_file_path=yes | |
4952 | extra_parts="crt0.o mcrt0.o" | |
4953 | extra_headers=math-68881.h | |
0a95276e | 4954 | float_format=m68k |
861bb6c1 JL |
4955 | ;; |
4956 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4957 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4958 | xm_defines="USG SVR3" |
861bb6c1 JL |
4959 | xmake_file=m68k/x-tower |
4960 | extra_parts="crtbegin.o crtend.o" | |
4961 | extra_headers=math-68881.h | |
4962 | ;; | |
4963 | m68k-plexus-sysv*) | |
4964 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4965 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4966 | xm_defines=USG | |
861bb6c1 JL |
4967 | use_collect2=yes |
4968 | extra_headers=math-68881.h | |
4969 | ;; | |
4970 | m68k-tti-*) | |
4971 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4972 | xm_file="xm-alloca.h ${xm_file}" |
4973 | xm_defines=USG | |
861bb6c1 JL |
4974 | extra_headers=math-68881.h |
4975 | ;; | |
4976 | m68k-crds-unos*) | |
f6cb0e63 JL |
4977 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4978 | xm_defines="USG unos" | |
861bb6c1 JL |
4979 | xmake_file=m68k/x-crds |
4980 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4981 | use_collect2=yes |
4982 | extra_headers=math-68881.h | |
4983 | ;; | |
4984 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4985 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4986 | xm_file="xm-alloca.h ${xm_file}" |
4987 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4988 | xmake_file=m68k/x-amix |
4989 | tmake_file=t-svr4 | |
4990 | extra_parts="crtbegin.o crtend.o" | |
4991 | extra_headers=math-68881.h | |
0a95276e | 4992 | float_format=m68k |
861bb6c1 JL |
4993 | ;; |
4994 | m68k-ccur-rtu) | |
4995 | tm_file=m68k/ccur-GAS.h | |
4996 | xmake_file=m68k/x-ccur | |
4997 | extra_headers=math-68881.h | |
4998 | use_collect2=yes | |
0a95276e | 4999 | float_format=m68k |
861bb6c1 JL |
5000 | ;; |
5001 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
5002 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 5003 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
5004 | use_collect2=yes |
5005 | extra_headers=math-68881.h | |
0a95276e | 5006 | float_format=m68k |
861bb6c1 JL |
5007 | ;; |
5008 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
5009 | tm_file=m68k/hp3bsd.h | |
5010 | use_collect2=yes | |
5011 | extra_headers=math-68881.h | |
0a95276e | 5012 | float_format=m68k |
861bb6c1 JL |
5013 | ;; |
5014 | m68k-isi-bsd*) | |
75bffa71 | 5015 | if test x$with_fp = xno |
861bb6c1 JL |
5016 | then |
5017 | tm_file=m68k/isi-nfp.h | |
5018 | else | |
5019 | tm_file=m68k/isi.h | |
0a95276e | 5020 | float_format=m68k |
861bb6c1 JL |
5021 | fi |
5022 | use_collect2=yes | |
5023 | extra_headers=math-68881.h | |
5024 | ;; | |
5025 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1a87de8d | 5026 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 5027 | xm_defines="USG" |
75bffa71 | 5028 | if test x$gas = xyes |
861bb6c1 JL |
5029 | then |
5030 | xmake_file=m68k/x-hp320g | |
5031 | tm_file=m68k/hp320g.h | |
5032 | else | |
5033 | xmake_file=m68k/x-hp320 | |
5034 | tm_file=m68k/hpux7.h | |
5035 | fi | |
861bb6c1 JL |
5036 | install_headers_dir=install-headers-cpio |
5037 | use_collect2=yes | |
5038 | extra_headers=math-68881.h | |
0a95276e | 5039 | float_format=m68k |
861bb6c1 JL |
5040 | ;; |
5041 | m68k-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 5042 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 5043 | xm_defines="USG" |
75bffa71 | 5044 | if test x$gas = xyes |
861bb6c1 JL |
5045 | then |
5046 | xmake_file=m68k/x-hp320g | |
5047 | tm_file=m68k/hp320g.h | |
5048 | else | |
5049 | xmake_file=m68k/x-hp320 | |
5050 | tm_file=m68k/hp320.h | |
5051 | fi | |
861bb6c1 JL |
5052 | install_headers_dir=install-headers-cpio |
5053 | use_collect2=yes | |
5054 | extra_headers=math-68881.h | |
0a95276e | 5055 | float_format=m68k |
861bb6c1 JL |
5056 | ;; |
5057 | m68k-sun-mach*) | |
5058 | tm_file=m68k/sun3mach.h | |
5059 | use_collect2=yes | |
5060 | extra_headers=math-68881.h | |
0a95276e | 5061 | float_format=m68k |
861bb6c1 JL |
5062 | ;; |
5063 | m68k-sony-newsos3*) | |
75bffa71 | 5064 | if test x$gas = xyes |
861bb6c1 JL |
5065 | then |
5066 | tm_file=m68k/news3gas.h | |
5067 | else | |
5068 | tm_file=m68k/news3.h | |
5069 | fi | |
5070 | use_collect2=yes | |
5071 | extra_headers=math-68881.h | |
0a95276e | 5072 | float_format=m68k |
861bb6c1 JL |
5073 | ;; |
5074 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 5075 | if test x$gas = xyes |
861bb6c1 JL |
5076 | then |
5077 | tm_file=m68k/newsgas.h | |
5078 | else | |
5079 | tm_file=m68k/news.h | |
5080 | fi | |
5081 | use_collect2=yes | |
5082 | extra_headers=math-68881.h | |
0a95276e | 5083 | float_format=m68k |
861bb6c1 JL |
5084 | ;; |
5085 | m68k-next-nextstep2*) | |
5086 | tm_file=m68k/next21.h | |
f6cb0e63 | 5087 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
5088 | tmake_file=m68k/t-next |
5089 | xmake_file=m68k/x-next | |
5090 | extra_objs=nextstep.o | |
5091 | extra_headers=math-68881.h | |
5092 | use_collect2=yes | |
0a95276e | 5093 | float_format=m68k |
861bb6c1 | 5094 | ;; |
016cebc3 | 5095 | m68k-next-nextstep[34]*) |
861bb6c1 | 5096 | tm_file=m68k/next.h |
f6cb0e63 | 5097 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
5098 | tmake_file=m68k/t-next |
5099 | xmake_file=m68k/x-next | |
5100 | extra_objs=nextstep.o | |
750930c1 | 5101 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 5102 | extra_headers=math-68881.h |
0a95276e | 5103 | float_format=m68k |
75bffa71 | 5104 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5105 | thread_file='mach' |
5106 | fi | |
5107 | ;; | |
5108 | m68k-sun-sunos3*) | |
75bffa71 | 5109 | if test x$with_fp = xno |
861bb6c1 JL |
5110 | then |
5111 | tm_file=m68k/sun3n3.h | |
5112 | else | |
5113 | tm_file=m68k/sun3o3.h | |
0a95276e | 5114 | float_format=m68k |
861bb6c1 JL |
5115 | fi |
5116 | use_collect2=yes | |
5117 | extra_headers=math-68881.h | |
5118 | ;; | |
5119 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 5120 | if test x$with_fp = xno |
861bb6c1 JL |
5121 | then |
5122 | tm_file=m68k/sun3n.h | |
5123 | else | |
5124 | tm_file=m68k/sun3.h | |
0a95276e | 5125 | float_format=m68k |
861bb6c1 | 5126 | fi |
861bb6c1 JL |
5127 | use_collect2=yes |
5128 | extra_headers=math-68881.h | |
5129 | ;; | |
5130 | m68k-wrs-vxworks*) | |
5131 | tm_file=m68k/vxm68k.h | |
5132 | tmake_file=m68k/t-vxworks68 | |
5133 | extra_headers=math-68881.h | |
7cc34889 | 5134 | thread_file='vxworks' |
0a95276e | 5135 | float_format=m68k |
861bb6c1 JL |
5136 | ;; |
5137 | m68k-*-aout*) | |
5138 | tmake_file=m68k/t-m68kbare | |
5139 | tm_file="m68k/m68k-aout.h libgloss.h" | |
5140 | extra_headers=math-68881.h | |
0a95276e | 5141 | float_format=m68k |
861bb6c1 JL |
5142 | ;; |
5143 | m68k-*-coff*) | |
5144 | tmake_file=m68k/t-m68kbare | |
5145 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
5146 | extra_headers=math-68881.h | |
0a95276e | 5147 | float_format=m68k |
861bb6c1 | 5148 | ;; |
d1be3be3 | 5149 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 5150 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
5151 | xm_file=m68k/xm-m68kv.h |
5152 | tmake_file=m68k/t-m68kelf | |
5153 | header_files=math-68881.h | |
5154 | ;; | |
861bb6c1 | 5155 | m68k-*-lynxos*) |
75bffa71 | 5156 | if test x$gas = xyes |
861bb6c1 JL |
5157 | then |
5158 | tm_file=m68k/lynx.h | |
5159 | else | |
5160 | tm_file=m68k/lynx-ng.h | |
5161 | fi | |
5162 | xm_file=m68k/xm-lynx.h | |
5163 | xmake_file=x-lynx | |
5164 | tmake_file=m68k/t-lynx | |
5165 | extra_headers=math-68881.h | |
0a95276e | 5166 | float_format=m68k |
861bb6c1 | 5167 | ;; |
58600d24 | 5168 | m68k*-*-netbsd*) |
861bb6c1 | 5169 | tm_file=m68k/netbsd.h |
861bb6c1 | 5170 | tmake_file=t-netbsd |
0a95276e | 5171 | float_format=m68k |
ed4acb3b | 5172 | use_collect2=yes |
861bb6c1 | 5173 | ;; |
1b4a979b ME |
5174 | m68k*-*-openbsd*) |
5175 | float_format=m68k | |
5176 | # we need collect2 until our bug is fixed... | |
5177 | use_collect2=yes | |
5178 | ;; | |
861bb6c1 | 5179 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
5180 | xm_file="xm-alloca.h ${xm_file}" |
5181 | xm_defines=USG | |
861bb6c1 JL |
5182 | xmake_file=m68k/x-m68kv |
5183 | extra_parts="crtbegin.o crtend.o" | |
5184 | extra_headers=math-68881.h | |
0a95276e | 5185 | float_format=m68k |
861bb6c1 JL |
5186 | ;; |
5187 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
5188 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
5189 | xm_file="xm-alloca.h ${xm_file}" |
5190 | xm_defines=USG | |
861bb6c1 JL |
5191 | tmake_file=t-svr4 |
5192 | extra_parts="crtbegin.o crtend.o" | |
5193 | extra_headers=math-68881.h | |
0a95276e | 5194 | float_format=m68k |
861bb6c1 | 5195 | ;; |
956d6950 | 5196 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 5197 | # with a.out format |
861bb6c1 JL |
5198 | xmake_file=x-linux |
5199 | tm_file=m68k/linux-aout.h | |
5200 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 5201 | extra_headers=math-68881.h |
0a95276e | 5202 | float_format=m68k |
861bb6c1 JL |
5203 | gnu_ld=yes |
5204 | ;; | |
956d6950 | 5205 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
5206 | # with ELF format using the |
5207 | # GNU/Linux C library 5 | |
5208 | xmake_file=x-linux | |
861bb6c1 JL |
5209 | tm_file=m68k/linux.h |
5210 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
5211 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 5212 | extra_headers=math-68881.h |
0a95276e | 5213 | float_format=m68k |
861bb6c1 JL |
5214 | gnu_ld=yes |
5215 | ;; | |
956d6950 | 5216 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
5217 | # with ELF format using glibc 2 |
5218 | # aka the GNU/Linux C library 6. | |
5219 | xmake_file=x-linux | |
861bb6c1 JL |
5220 | tm_file=m68k/linux.h |
5221 | tmake_file="t-linux m68k/t-linux" | |
5222 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 5223 | extra_headers=math-68881.h |
0a95276e | 5224 | float_format=m68k |
861bb6c1 | 5225 | gnu_ld=yes |
75bffa71 | 5226 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5227 | thread_file='posix' |
5228 | fi | |
5229 | ;; | |
5230 | m68k-*-psos*) | |
5231 | tmake_file=m68k/t-m68kbare | |
5232 | tm_file=m68k/m68k-psos.h | |
5233 | extra_headers=math-68881.h | |
0a95276e | 5234 | float_format=m68k |
861bb6c1 | 5235 | ;; |
6e5138f0 | 5236 | m68k-*-rtemscoff*) |
861bb6c1 JL |
5237 | tmake_file="m68k/t-m68kbare t-rtems" |
5238 | tm_file=m68k/rtems.h | |
5239 | extra_headers=math-68881.h | |
0a95276e | 5240 | float_format=m68k |
861bb6c1 | 5241 | ;; |
6e5138f0 | 5242 | m68k-*-rtemself*|m68k-*-rtems*) |
d1476635 JS |
5243 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
5244 | tm_file=m68k/rtemself.h | |
5245 | extra_headers=math-68881.h | |
5246 | float_format=m68k | |
5247 | ;; | |
861bb6c1 JL |
5248 | m88k-dg-dgux*) |
5249 | case $machine in | |
5250 | m88k-dg-dguxbcs*) | |
5251 | tm_file=m88k/dguxbcs.h | |
5252 | tmake_file=m88k/t-dguxbcs | |
5253 | ;; | |
5254 | *) | |
5255 | tm_file=m88k/dgux.h | |
5256 | tmake_file=m88k/t-dgux | |
5257 | ;; | |
5258 | esac | |
5259 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 5260 | xmake_file=m88k/x-dgux |
75bffa71 | 5261 | if test x$gas = xyes |
861bb6c1 JL |
5262 | then |
5263 | tmake_file=m88k/t-dgux-gas | |
5264 | fi | |
861bb6c1 JL |
5265 | ;; |
5266 | m88k-dolphin-sysv3*) | |
5267 | tm_file=m88k/dolph.h | |
5268 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5269 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5270 | xmake_file=m88k/x-dolph |
75bffa71 | 5271 | if test x$gas = xyes |
861bb6c1 JL |
5272 | then |
5273 | tmake_file=m88k/t-m88k-gas | |
5274 | fi | |
5275 | ;; | |
5276 | m88k-tektronix-sysv3) | |
5277 | tm_file=m88k/tekXD88.h | |
5278 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5279 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5280 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 5281 | if test x$gas = xyes |
861bb6c1 JL |
5282 | then |
5283 | tmake_file=m88k/t-m88k-gas | |
5284 | fi | |
5285 | ;; | |
5286 | m88k-*-aout*) | |
5287 | tm_file=m88k/m88k-aout.h | |
5288 | ;; | |
5289 | m88k-*-coff*) | |
5290 | tm_file=m88k/m88k-coff.h | |
5291 | tmake_file=m88k/t-bug | |
5292 | ;; | |
5293 | m88k-*-luna*) | |
5294 | tm_file=m88k/luna.h | |
5295 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 5296 | if test x$gas = xyes |
861bb6c1 JL |
5297 | then |
5298 | tmake_file=m88k/t-luna-gas | |
5299 | else | |
5300 | tmake_file=m88k/t-luna | |
5301 | fi | |
5302 | ;; | |
1b4a979b ME |
5303 | m88k-*-openbsd*) |
5304 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
5305 | ;; | |
861bb6c1 JL |
5306 | m88k-*-sysv3*) |
5307 | tm_file=m88k/sysv3.h | |
5308 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5309 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5310 | xmake_file=m88k/x-sysv3 |
75bffa71 | 5311 | if test x$gas = xyes |
861bb6c1 JL |
5312 | then |
5313 | tmake_file=m88k/t-m88k-gas | |
5314 | fi | |
5315 | ;; | |
5316 | m88k-*-sysv4*) | |
5317 | tm_file=m88k/sysv4.h | |
5318 | extra_parts="crtbegin.o crtend.o" | |
5319 | xmake_file=m88k/x-sysv4 | |
5320 | tmake_file=m88k/t-sysv4 | |
5321 | ;; | |
789a3090 NC |
5322 | mcore-*-elf) |
5323 | tm_file=mcore/mcore-elf.h | |
5324 | tmake_file=mcore/t-mcore | |
5325 | ;; | |
5326 | mcore-*-pe*) | |
5327 | tm_file=mcore/mcore-pe.h | |
5328 | tmake_file=mcore/t-mcore-pe | |
5329 | ;; | |
861bb6c1 | 5330 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 |
9b5c756a JL |
5331 | if test "x$gnu_ld" = xyes |
5332 | then | |
5333 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
5334 | else |
5335 | tm_file=mips/iris6.h | |
9b5c756a | 5336 | fi |
30f08b39 | 5337 | tmake_file=mips/t-iris6 |
861bb6c1 | 5338 | xm_file=mips/xm-iris6.h |
861bb6c1 | 5339 | xmake_file=mips/x-iris6 |
04069e5c | 5340 | # if test x$enable_threads = xyes; then |
6e148807 | 5341 | # thread_file='irix' |
04069e5c | 5342 | # fi |
861bb6c1 | 5343 | ;; |
98bd9f0f | 5344 | mips-wrs-vxworks) |
7aae67a2 | 5345 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
5346 | tmake_file=mips/t-ecoff |
5347 | gas=yes | |
5348 | gnu_ld=yes | |
5349 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 5350 | thread_file='vxworks' |
98bd9f0f | 5351 | ;; |
861bb6c1 | 5352 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 5353 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
5354 | xm_defines=USG |
5355 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5356 | xmake_file=mips/x-iris |
5357 | tmake_file=mips/t-cross64 | |
5358 | # See comment in mips/iris[56].h files. | |
5359 | use_collect2=yes | |
04069e5c | 5360 | # if test x$enable_threads = xyes; then |
6e148807 | 5361 | # thread_file='irix' |
04069e5c | 5362 | # fi |
861bb6c1 JL |
5363 | ;; |
5364 | mips-sni-sysv4) | |
75bffa71 | 5365 | if test x$gas = xyes |
861bb6c1 | 5366 | then |
75bffa71 | 5367 | if test x$stabs = xyes |
861bb6c1 JL |
5368 | then |
5369 | tm_file=mips/iris5gdb.h | |
5370 | else | |
f6cb0e63 | 5371 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
5372 | fi |
5373 | else | |
5374 | tm_file=mips/sni-svr4.h | |
5375 | fi | |
f6cb0e63 | 5376 | xm_defines=USG |
861bb6c1 JL |
5377 | xmake_file=mips/x-sni-svr4 |
5378 | tmake_file=mips/t-mips-gas | |
75bffa71 | 5379 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5380 | then |
5381 | use_collect2=yes | |
5382 | fi | |
861bb6c1 JL |
5383 | ;; |
5384 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 5385 | if test x$gas = xyes |
861bb6c1 | 5386 | then |
f6cb0e63 | 5387 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 5388 | if test x$stabs = xyes |
861bb6c1 JL |
5389 | then |
5390 | tm_file="${tm_file} dbx.h" | |
5391 | fi | |
5392 | else | |
5393 | tm_file=mips/iris5.h | |
5394 | fi | |
74c55ab0 JW |
5395 | xm_defines=USG |
5396 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5397 | xmake_file=mips/x-iris |
5398 | # mips-tfile doesn't work yet | |
5399 | tmake_file=mips/t-mips-gas | |
5400 | # See comment in mips/iris5.h file. | |
5401 | use_collect2=yes | |
04069e5c | 5402 | # if test x$enable_threads = xyes; then |
6e148807 | 5403 | # thread_file='irix' |
04069e5c | 5404 | # fi |
861bb6c1 JL |
5405 | ;; |
5406 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 5407 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5408 | if test x$stabs = xyes; then |
861bb6c1 JL |
5409 | tm_file="${tm_file} dbx.h" |
5410 | fi | |
f6cb0e63 | 5411 | xm_defines=USG |
861bb6c1 | 5412 | xmake_file=mips/x-iris |
75bffa71 | 5413 | if test x$gas = xyes |
861bb6c1 JL |
5414 | then |
5415 | tmake_file=mips/t-mips-gas | |
5416 | else | |
5417 | extra_passes="mips-tfile mips-tdump" | |
5418 | fi | |
75bffa71 | 5419 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5420 | then |
5421 | use_collect2=yes | |
5422 | fi | |
04069e5c | 5423 | # if test x$enable_threads = xyes; then |
6e148807 | 5424 | # thread_file='irix' |
04069e5c | 5425 | # fi |
861bb6c1 JL |
5426 | ;; |
5427 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 5428 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5429 | if test x$stabs = xyes; then |
861bb6c1 JL |
5430 | tm_file="${tm_file} dbx.h" |
5431 | fi | |
f6cb0e63 | 5432 | xm_defines=USG |
861bb6c1 | 5433 | xmake_file=mips/x-iris |
75bffa71 | 5434 | if test x$gas = xyes |
861bb6c1 JL |
5435 | then |
5436 | tmake_file=mips/t-mips-gas | |
5437 | else | |
5438 | extra_passes="mips-tfile mips-tdump" | |
5439 | fi | |
75bffa71 | 5440 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5441 | then |
5442 | use_collect2=yes | |
5443 | fi | |
04069e5c | 5444 | # if test x$enable_threads = xyes; then |
6e148807 | 5445 | # thread_file='irix' |
04069e5c | 5446 | # fi |
861bb6c1 JL |
5447 | ;; |
5448 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 5449 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 5450 | if test x$stabs = xyes; then |
861bb6c1 JL |
5451 | tm_file="${tm_file} dbx.h" |
5452 | fi | |
f6cb0e63 | 5453 | xm_defines=USG |
861bb6c1 | 5454 | xmake_file=mips/x-iris3 |
75bffa71 | 5455 | if test x$gas = xyes |
861bb6c1 JL |
5456 | then |
5457 | tmake_file=mips/t-mips-gas | |
5458 | else | |
5459 | extra_passes="mips-tfile mips-tdump" | |
5460 | fi | |
75bffa71 | 5461 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5462 | then |
5463 | use_collect2=yes | |
5464 | fi | |
5465 | ;; | |
5466 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 5467 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
5468 | xmake_file=mips/x-osfrose |
5469 | tmake_file=mips/t-osfrose | |
5470 | extra_objs=halfpic.o | |
5471 | use_collect2=yes | |
5472 | ;; | |
5473 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
5474 | tm_file=mips/dec-osf1.h | |
75bffa71 | 5475 | if test x$stabs = xyes; then |
861bb6c1 JL |
5476 | tm_file="${tm_file} dbx.h" |
5477 | fi | |
5478 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 5479 | if test x$gas = xyes |
861bb6c1 JL |
5480 | then |
5481 | tmake_file=mips/t-mips-gas | |
5482 | else | |
5483 | tmake_file=mips/t-ultrix | |
5484 | extra_passes="mips-tfile mips-tdump" | |
5485 | fi | |
75bffa71 | 5486 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5487 | then |
5488 | use_collect2=yes | |
5489 | fi | |
5490 | ;; | |
5491 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
5492 | tm_file=mips/dec-bsd.h | |
75bffa71 | 5493 | if test x$gas = xyes |
861bb6c1 JL |
5494 | then |
5495 | tmake_file=mips/t-mips-gas | |
5496 | else | |
5497 | tmake_file=mips/t-ultrix | |
5498 | extra_passes="mips-tfile mips-tdump" | |
5499 | fi | |
75bffa71 | 5500 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5501 | then |
5502 | use_collect2=yes | |
5503 | fi | |
5504 | ;; | |
58600d24 | 5505 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 5506 | tm_file=mips/netbsd.h |
be1ed94f | 5507 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5508 | tmake_file=t-netbsd |
861bb6c1 | 5509 | ;; |
54953b66 | 5510 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 | 5511 | xmake_file=x-linux |
54953b66 UD |
5512 | case $machine in |
5513 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
5514 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
5515 | esac | |
e86e6730 | 5516 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
18cae839 RL |
5517 | gnu_ld=yes |
5518 | gas=yes | |
e86e6730 AJ |
5519 | if test x$enable_threads = xyes; then |
5520 | thread_file='posix' | |
5521 | fi | |
18cae839 | 5522 | ;; |
1b4a979b ME |
5523 | mips*el-*-openbsd*) # mips little endian |
5524 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1b4a979b ME |
5525 | ;; |
5526 | mips*-*-openbsd*) # mips big endian | |
5527 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
9e28024a | 5528 | tm_file="mips/openbsd-be.h ${tm_file}" |
1b4a979b | 5529 | ;; |
861bb6c1 | 5530 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 5531 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 5532 | if test x$stabs = xyes; then |
861bb6c1 JL |
5533 | tm_file="${tm_file} dbx.h" |
5534 | fi | |
75bffa71 | 5535 | if test x$gas = xyes |
861bb6c1 JL |
5536 | then |
5537 | tmake_file=mips/t-mips-gas | |
5538 | else | |
5539 | extra_passes="mips-tfile mips-tdump" | |
5540 | fi | |
75bffa71 | 5541 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5542 | then |
5543 | use_collect2=yes | |
5544 | fi | |
5545 | xmake_file=mips/x-sony | |
5546 | ;; | |
5547 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
5548 | # That is based on svr4. | |
5549 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 5550 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 5551 | if test x$stabs = xyes; then |
861bb6c1 JL |
5552 | tm_file="${tm_file} dbx.h" |
5553 | fi | |
f6cb0e63 | 5554 | xm_defines=USG |
75bffa71 | 5555 | if test x$gas = xyes |
861bb6c1 JL |
5556 | then |
5557 | tmake_file=mips/t-mips-gas | |
5558 | else | |
5559 | extra_passes="mips-tfile mips-tdump" | |
5560 | fi | |
75bffa71 | 5561 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5562 | then |
5563 | use_collect2=yes | |
5564 | fi | |
5565 | ;; | |
5566 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 5567 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 5568 | if test x$stabs = xyes; then |
861bb6c1 JL |
5569 | tm_file="${tm_file} dbx.h" |
5570 | fi | |
f6cb0e63 | 5571 | xm_defines=USG |
861bb6c1 | 5572 | xmake_file=mips/x-sysv |
75bffa71 | 5573 | if test x$gas = xyes |
861bb6c1 JL |
5574 | then |
5575 | tmake_file=mips/t-mips-gas | |
5576 | extra_parts="crtbegin.o crtend.o" | |
5577 | else | |
5578 | tmake_file=mips/t-mips | |
5579 | extra_passes="mips-tfile mips-tdump" | |
5580 | fi | |
75bffa71 | 5581 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5582 | then |
5583 | use_collect2=yes | |
5584 | fi | |
861bb6c1 JL |
5585 | ;; |
5586 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 5587 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 5588 | if test x$stabs = xyes; then |
861bb6c1 JL |
5589 | tm_file="${tm_file} dbx.h" |
5590 | fi | |
5591 | xmake_file=mips/x-ultrix | |
75bffa71 | 5592 | if test x$gas = xyes |
861bb6c1 JL |
5593 | then |
5594 | tmake_file=mips/t-mips-gas | |
5595 | else | |
5596 | tmake_file=mips/t-ultrix | |
5597 | extra_passes="mips-tfile mips-tdump" | |
5598 | fi | |
75bffa71 | 5599 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5600 | then |
5601 | use_collect2=yes | |
5602 | fi | |
5603 | ;; | |
5604 | mips-*-riscos[56789]bsd*) | |
5605 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 5606 | if test x$stabs = xyes; then |
861bb6c1 JL |
5607 | tm_file="${tm_file} dbx.h" |
5608 | fi | |
75bffa71 | 5609 | if test x$gas = xyes |
861bb6c1 JL |
5610 | then |
5611 | tmake_file=mips/t-bsd-gas | |
5612 | else | |
5613 | tmake_file=mips/t-bsd | |
5614 | extra_passes="mips-tfile mips-tdump" | |
5615 | fi | |
75bffa71 | 5616 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5617 | then |
5618 | use_collect2=yes | |
5619 | fi | |
861bb6c1 JL |
5620 | ;; |
5621 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 5622 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 5623 | if test x$stabs = xyes; then |
861bb6c1 JL |
5624 | tm_file="${tm_file} dbx.h" |
5625 | fi | |
75bffa71 | 5626 | if test x$gas = xyes |
861bb6c1 JL |
5627 | then |
5628 | tmake_file=mips/t-bsd-gas | |
5629 | else | |
5630 | tmake_file=mips/t-bsd | |
5631 | extra_passes="mips-tfile mips-tdump" | |
5632 | fi | |
75bffa71 | 5633 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5634 | then |
5635 | use_collect2=yes | |
5636 | fi | |
861bb6c1 JL |
5637 | ;; |
5638 | mips-*-riscos[56789]sysv4*) | |
5639 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 5640 | if test x$stabs = xyes; then |
861bb6c1 JL |
5641 | tm_file="${tm_file} dbx.h" |
5642 | fi | |
861bb6c1 | 5643 | xmake_file=mips/x-sysv |
75bffa71 | 5644 | if test x$gas = xyes |
861bb6c1 JL |
5645 | then |
5646 | tmake_file=mips/t-svr4-gas | |
5647 | else | |
5648 | tmake_file=mips/t-svr4 | |
5649 | extra_passes="mips-tfile mips-tdump" | |
5650 | fi | |
75bffa71 | 5651 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5652 | then |
5653 | use_collect2=yes | |
5654 | fi | |
861bb6c1 JL |
5655 | ;; |
5656 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 5657 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 5658 | if test x$stabs = xyes; then |
861bb6c1 JL |
5659 | tm_file="${tm_file} dbx.h" |
5660 | fi | |
f6cb0e63 | 5661 | xm_defines=USG |
861bb6c1 | 5662 | xmake_file=mips/x-sysv |
75bffa71 | 5663 | if test x$gas = xyes |
861bb6c1 JL |
5664 | then |
5665 | tmake_file=mips/t-svr4-gas | |
5666 | else | |
5667 | tmake_file=mips/t-svr4 | |
5668 | extra_passes="mips-tfile mips-tdump" | |
5669 | fi | |
75bffa71 | 5670 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5671 | then |
5672 | use_collect2=yes | |
5673 | fi | |
861bb6c1 JL |
5674 | ;; |
5675 | mips-*-riscos[56789]sysv*) | |
5676 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 5677 | if test x$stabs = xyes; then |
861bb6c1 JL |
5678 | tm_file="${tm_file} dbx.h" |
5679 | fi | |
f6cb0e63 | 5680 | xm_defines=USG |
861bb6c1 | 5681 | xmake_file=mips/x-sysv |
75bffa71 | 5682 | if test x$gas = xyes |
861bb6c1 JL |
5683 | then |
5684 | tmake_file=mips/t-svr3-gas | |
5685 | else | |
5686 | tmake_file=mips/t-svr3 | |
5687 | extra_passes="mips-tfile mips-tdump" | |
5688 | fi | |
75bffa71 | 5689 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5690 | then |
5691 | use_collect2=yes | |
5692 | fi | |
861bb6c1 JL |
5693 | ;; |
5694 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 5695 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 5696 | if test x$stabs = xyes; then |
861bb6c1 JL |
5697 | tm_file="${tm_file} dbx.h" |
5698 | fi | |
f6cb0e63 | 5699 | xm_defines=USG |
861bb6c1 | 5700 | xmake_file=mips/x-sysv |
75bffa71 | 5701 | if test x$gas = xyes |
861bb6c1 JL |
5702 | then |
5703 | tmake_file=mips/t-svr3-gas | |
5704 | else | |
5705 | tmake_file=mips/t-svr3 | |
5706 | extra_passes="mips-tfile mips-tdump" | |
5707 | fi | |
75bffa71 | 5708 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5709 | then |
5710 | use_collect2=yes | |
5711 | fi | |
861bb6c1 JL |
5712 | ;; |
5713 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
5714 | tm_file=mips/mips-5.h | |
75bffa71 | 5715 | if test x$stabs = xyes; then |
861bb6c1 JL |
5716 | tm_file="${tm_file} dbx.h" |
5717 | fi | |
75bffa71 | 5718 | if test x$gas = xyes |
861bb6c1 JL |
5719 | then |
5720 | tmake_file=mips/t-mips-gas | |
5721 | else | |
5722 | extra_passes="mips-tfile mips-tdump" | |
5723 | fi | |
75bffa71 | 5724 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5725 | then |
5726 | use_collect2=yes | |
5727 | fi | |
861bb6c1 JL |
5728 | ;; |
5729 | mips-*-gnu*) | |
5730 | ;; | |
5731 | mipsel-*-ecoff*) | |
5732 | tm_file=mips/ecoffl.h | |
75bffa71 | 5733 | if test x$stabs = xyes; then |
861bb6c1 JL |
5734 | tm_file="${tm_file} dbx.h" |
5735 | fi | |
5736 | tmake_file=mips/t-ecoff | |
5737 | ;; | |
5738 | mips-*-ecoff*) | |
1be12a4a | 5739 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5740 | if test x$stabs = xyes; then |
861bb6c1 JL |
5741 | tm_file="${tm_file} dbx.h" |
5742 | fi | |
5743 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5744 | ;; |
5745 | mipsel-*-elf*) | |
7aae67a2 | 5746 | tm_file="mips/elfl.h" |
d8265d29 | 5747 | tmake_file=mips/t-elf |
861bb6c1 JL |
5748 | ;; |
5749 | mips-*-elf*) | |
d8265d29 CM |
5750 | tm_file="mips/elf.h" |
5751 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5752 | ;; |
5753 | mips64el-*-elf*) | |
d8265d29 CM |
5754 | tm_file="mips/elfl64.h" |
5755 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5756 | ;; |
5757 | mips64orionel-*-elf*) | |
7aae67a2 | 5758 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5759 | tmake_file=mips/t-elf |
861bb6c1 JL |
5760 | ;; |
5761 | mips64-*-elf*) | |
d8265d29 CM |
5762 | tm_file="mips/elf64.h" |
5763 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5764 | ;; |
5765 | mips64orion-*-elf*) | |
7aae67a2 | 5766 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5767 | tmake_file=mips/t-elf |
861bb6c1 JL |
5768 | ;; |
5769 | mips64orion-*-rtems*) | |
6e9856ba | 5770 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
d1476635 | 5771 | tmake_file="mips/t-elf t-rtems" |
861bb6c1 | 5772 | ;; |
e9a25f70 | 5773 | mipstx39el-*-elf*) |
d8265d29 | 5774 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5775 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5776 | ;; |
5777 | mipstx39-*-elf*) | |
d8265d29 | 5778 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5779 | tmake_file=mips/t-r3900 |
e9a25f70 | 5780 | ;; |
861bb6c1 | 5781 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5782 | if test x$stabs = xyes; then |
861bb6c1 JL |
5783 | tm_file="${tm_file} dbx.h" |
5784 | fi | |
75bffa71 | 5785 | if test x$gas = xyes |
861bb6c1 JL |
5786 | then |
5787 | tmake_file=mips/t-mips-gas | |
5788 | else | |
5789 | extra_passes="mips-tfile mips-tdump" | |
5790 | fi | |
75bffa71 | 5791 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5792 | then |
5793 | use_collect2=yes | |
5794 | fi | |
5795 | ;; | |
5796 | mn10200-*-*) | |
5e3c02a8 | 5797 | float_format=i32 |
861bb6c1 JL |
5798 | cpu_type=mn10200 |
5799 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5800 | if test x$stabs = xyes |
861bb6c1 JL |
5801 | then |
5802 | tm_file="${tm_file} dbx.h" | |
5803 | fi | |
5804 | use_collect2=no | |
5805 | ;; | |
5806 | mn10300-*-*) | |
5807 | cpu_type=mn10300 | |
5808 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5809 | if test x$stabs = xyes |
861bb6c1 JL |
5810 | then |
5811 | tm_file="${tm_file} dbx.h" | |
5812 | fi | |
5813 | use_collect2=no | |
5814 | ;; | |
5815 | ns32k-encore-bsd*) | |
5816 | tm_file=ns32k/encore.h | |
5817 | use_collect2=yes | |
5818 | ;; | |
5819 | ns32k-sequent-bsd*) | |
5820 | tm_file=ns32k/sequent.h | |
5821 | use_collect2=yes | |
5822 | ;; | |
5823 | ns32k-tek6100-bsd*) | |
5824 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5825 | use_collect2=yes |
5826 | ;; | |
5827 | ns32k-tek6200-bsd*) | |
5828 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5829 | use_collect2=yes |
5830 | ;; | |
5831 | # This has not been updated to GCC 2. | |
5832 | # ns32k-ns-genix*) | |
f6cb0e63 | 5833 | # xm_defines=USG |
861bb6c1 JL |
5834 | # xmake_file=ns32k/x-genix |
5835 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5836 | # use_collect2=yes |
5837 | # ;; | |
5838 | ns32k-merlin-*) | |
5839 | tm_file=ns32k/merlin.h | |
5840 | use_collect2=yes | |
5841 | ;; | |
5842 | ns32k-pc532-mach*) | |
5843 | tm_file=ns32k/pc532-mach.h | |
5844 | use_collect2=yes | |
5845 | ;; | |
5846 | ns32k-pc532-minix*) | |
5847 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5848 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5849 | xm_defines=USG | |
861bb6c1 JL |
5850 | use_collect2=yes |
5851 | ;; | |
58600d24 | 5852 | ns32k-*-netbsd*) |
861bb6c1 | 5853 | tm_file=ns32k/netbsd.h |
641d4216 | 5854 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5855 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5856 | tmake_file=t-netbsd |
ed4acb3b | 5857 | use_collect2=yes |
861bb6c1 JL |
5858 | ;; |
5859 | pdp11-*-bsd) | |
5860 | tm_file="${tm_file} pdp11/2bsd.h" | |
5861 | ;; | |
5862 | pdp11-*-*) | |
5863 | ;; | |
d48120fe DC |
5864 | avr-*-*) |
5865 | ;; | |
1b4a979b ME |
5866 | ns32k-*-openbsd*) |
5867 | # Nothing special | |
5868 | ;; | |
7a3842b3 RH |
5869 | # This has not been updated to GCC 2. |
5870 | # pyramid-*-*) | |
5871 | # cpu_type=pyr | |
5872 | # xmake_file=pyr/x-pyr | |
5873 | # use_collect2=yes | |
5874 | # ;; | |
1b992148 SC |
5875 | |
5876 | pj*-linux*) | |
5877 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
5878 | ;; | |
5879 | pj-*) | |
5880 | ;; | |
5881 | pjl-*) | |
5882 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
5883 | ;; | |
5884 | ||
861bb6c1 JL |
5885 | romp-*-aos*) |
5886 | use_collect2=yes | |
5887 | ;; | |
5888 | romp-*-mach*) | |
5889 | xmake_file=romp/x-mach | |
5890 | use_collect2=yes | |
5891 | ;; | |
1b4a979b ME |
5892 | romp-*-openbsd*) |
5893 | # Nothing special | |
5894 | ;; | |
5895 | powerpc-*-openbsd*) | |
5896 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5897 | ;; |
c55dcc7d FF |
5898 | powerpc-*-beos*) |
5899 | cpu_type=rs6000 | |
5900 | tm_file=rs6000/beos.h | |
5901 | xm_file=rs6000/xm-beos.h | |
5902 | tmake_file=rs6000/t-beos | |
5903 | xmake_file=rs6000/x-beos | |
5904 | ;; | |
b26e3a82 | 5905 | powerpc-*-sysv*) |
861bb6c1 | 5906 | tm_file=rs6000/sysv4.h |
2d092ffa | 5907 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5908 | xm_defines="USG POSIX" |
861bb6c1 | 5909 | extra_headers=ppc-asm.h |
b26e3a82 | 5910 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5911 | xmake_file=rs6000/x-sysv4 |
5912 | ;; | |
5913 | powerpc-*-eabiaix*) | |
b26e3a82 | 5914 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
861bb6c1 | 5915 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5916 | extra_headers=ppc-asm.h |
5917 | ;; | |
5918 | powerpc-*-eabisim*) | |
b26e3a82 GK |
5919 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
5920 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5921 | extra_headers=ppc-asm.h | |
5922 | ;; | |
5923 | powerpc-*-elf*) | |
5924 | tm_file="rs6000/sysv4.h" | |
861bb6c1 | 5925 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5926 | extra_headers=ppc-asm.h |
5927 | ;; | |
5928 | powerpc-*-eabi*) | |
b26e3a82 GK |
5929 | tm_file="rs6000/sysv4.h rs6000/eabi.h" |
5930 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5931 | extra_headers=ppc-asm.h |
5932 | ;; | |
5933 | powerpc-*-rtems*) | |
b26e3a82 GK |
5934 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h" |
5935 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
861bb6c1 JL |
5936 | extra_headers=ppc-asm.h |
5937 | ;; | |
ce514f57 | 5938 | powerpc-*-linux-gnulibc1) |
b26e3a82 | 5939 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
ce514f57 FS |
5940 | xm_file=rs6000/xm-sysv4.h |
5941 | out_file=rs6000/rs6000.c | |
b26e3a82 | 5942 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" |
ce514f57 | 5943 | xmake_file=x-linux |
ce514f57 | 5944 | extra_headers=ppc-asm.h |
75bffa71 | 5945 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5946 | thread_file='posix' |
5947 | fi | |
5948 | ;; | |
861bb6c1 | 5949 | powerpc-*-linux-gnu*) |
b26e3a82 | 5950 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
2d092ffa | 5951 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5952 | xm_defines="USG ${xm_defines}" |
861bb6c1 | 5953 | out_file=rs6000/rs6000.c |
b26e3a82 | 5954 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
861bb6c1 | 5955 | xmake_file=x-linux |
861bb6c1 | 5956 | extra_headers=ppc-asm.h |
75bffa71 | 5957 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5958 | thread_file='posix' |
5959 | fi | |
5960 | ;; | |
7cc34889 | 5961 | powerpc-wrs-vxworks*) |
861bb6c1 | 5962 | cpu_type=rs6000 |
2d092ffa | 5963 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5964 | xm_defines="USG POSIX" |
b26e3a82 | 5965 | tm_file="rs6000/sysv4.h rs6000/vxppc.h" |
861bb6c1 JL |
5966 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5967 | extra_headers=ppc-asm.h | |
7cc34889 | 5968 | thread_file='vxworks' |
861bb6c1 | 5969 | ;; |
9ebbca7d GK |
5970 | powerpcle-wrs-vxworks*) |
5971 | cpu_type=rs6000 | |
5972 | xm_file="rs6000/xm-sysv4.h" | |
5973 | xm_defines="USG POSIX" | |
b26e3a82 | 5974 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
9ebbca7d GK |
5975 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5976 | extra_headers=ppc-asm.h | |
5977 | thread_file='vxworks' | |
5978 | ;; | |
b26e3a82 GK |
5979 | powerpcle-*-sysv*) |
5980 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
2d092ffa | 5981 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5982 | xm_defines="USG POSIX" |
b26e3a82 | 5983 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5984 | xmake_file=rs6000/x-sysv4 |
5985 | extra_headers=ppc-asm.h | |
5986 | ;; | |
b26e3a82 GK |
5987 | powerpcle-*-elf*) |
5988 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
5989 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5990 | extra_headers=ppc-asm.h | |
5991 | ;; | |
861bb6c1 | 5992 | powerpcle-*-eabisim*) |
b26e3a82 | 5993 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
861bb6c1 | 5994 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5995 | extra_headers=ppc-asm.h |
5996 | ;; | |
5997 | powerpcle-*-eabi*) | |
b26e3a82 GK |
5998 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
5999 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
6000 | extra_headers=ppc-asm.h |
6001 | ;; | |
861bb6c1 | 6002 | powerpcle-*-solaris2*) |
b26e3a82 | 6003 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h" |
2d092ffa | 6004 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 6005 | xm_defines="USG POSIX" |
b26e3a82 | 6006 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 | 6007 | xmake_file=rs6000/x-sysv4 |
861bb6c1 JL |
6008 | extra_headers=ppc-asm.h |
6009 | ;; | |
6010 | rs6000-ibm-aix3.[01]*) | |
6011 | tm_file=rs6000/aix31.h | |
6012 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 6013 | float_format=none |
861bb6c1 JL |
6014 | use_collect2=yes |
6015 | ;; | |
6016 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
6017 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 6018 | if test x$host != x$target |
861bb6c1 JL |
6019 | then |
6020 | tmake_file=rs6000/t-xnewas | |
6021 | else | |
6022 | tmake_file=rs6000/t-newas | |
6023 | fi | |
45e24d08 | 6024 | float_format=none |
861bb6c1 JL |
6025 | use_collect2=yes |
6026 | ;; | |
05cea40f | 6027 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 6028 | tm_file=rs6000/aix41.h |
75bffa71 | 6029 | if test x$host != x$target |
861bb6c1 JL |
6030 | then |
6031 | tmake_file=rs6000/t-xnewas | |
6da9c622 RK |
6032 | else |
6033 | tmake_file=rs6000/t-newas | |
6034 | fi | |
6035 | if test "$gnu_ld" = yes | |
6036 | then | |
6037 | xmake_file=rs6000/x-aix41-gld | |
861bb6c1 | 6038 | else |
e680248e | 6039 | tmake_file="rs6000/t-newas rs6000/t-aix41" |
861bb6c1 | 6040 | fi |
9ebbca7d | 6041 | xmake_file=rs6000/x-aix41 |
45e24d08 | 6042 | float_format=none |
0a95276e JL |
6043 | use_collect2=yes |
6044 | ;; | |
7747ddb3 | 6045 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 6046 | tm_file=rs6000/aix43.h |
9ebbca7d GK |
6047 | tmake_file=rs6000/t-aix43 |
6048 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 6049 | float_format=none |
0a95276e JL |
6050 | use_collect2=yes |
6051 | ;; | |
6052 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
6053 | tm_file=rs6000/aix43.h | |
9ebbca7d GK |
6054 | tmake_file=rs6000/t-aix43 |
6055 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 6056 | float_format=none |
861bb6c1 JL |
6057 | use_collect2=yes |
6058 | ;; | |
6059 | rs6000-ibm-aix*) | |
45e24d08 | 6060 | float_format=none |
861bb6c1 JL |
6061 | use_collect2=yes |
6062 | ;; | |
6063 | rs6000-bull-bosx) | |
45e24d08 | 6064 | float_format=none |
861bb6c1 JL |
6065 | use_collect2=yes |
6066 | ;; | |
6067 | rs6000-*-mach*) | |
6068 | tm_file=rs6000/mach.h | |
f6cb0e63 | 6069 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
6070 | xmake_file=rs6000/x-mach |
6071 | use_collect2=yes | |
6072 | ;; | |
6073 | rs6000-*-lynxos*) | |
6074 | tm_file=rs6000/lynx.h | |
6075 | xm_file=rs6000/xm-lynx.h | |
6076 | tmake_file=rs6000/t-rs6000 | |
6077 | xmake_file=rs6000/x-lynx | |
6078 | use_collect2=yes | |
6079 | ;; | |
6080 | sh-*-elf*) | |
6081 | tm_file=sh/elf.h | |
6082 | float_format=sh | |
6083 | ;; | |
b098f56d JS |
6084 | sh-*-rtemself*) |
6085 | tmake_file="sh/t-sh t-rtems" | |
6086 | tm_file=sh/rtemself.h | |
6087 | float_format=sh | |
6088 | ;; | |
5d84b57e JS |
6089 | sh-*-rtems*) |
6090 | tmake_file="sh/t-sh t-rtems" | |
6091 | tm_file=sh/rtems.h | |
6092 | float_format=sh | |
6093 | ;; | |
861bb6c1 JL |
6094 | sh-*-*) |
6095 | float_format=sh | |
6096 | ;; | |
6097 | sparc-tti-*) | |
6098 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
6099 | xm_file="xm-alloca.h ${xm_file}" |
6100 | xm_defines=USG | |
861bb6c1 JL |
6101 | ;; |
6102 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
6103 | tm_file=sparc/vxsparc.h | |
6104 | tmake_file=sparc/t-vxsparc | |
6105 | use_collect2=yes | |
7cc34889 | 6106 | thread_file='vxworks' |
861bb6c1 JL |
6107 | ;; |
6108 | sparc-*-aout*) | |
6109 | tmake_file=sparc/t-sparcbare | |
6110 | tm_file="sparc/aout.h libgloss.h" | |
6111 | ;; | |
6112 | sparc-*-netbsd*) | |
6113 | tm_file=sparc/netbsd.h | |
861bb6c1 | 6114 | tmake_file=t-netbsd |
ed4acb3b | 6115 | use_collect2=yes |
861bb6c1 | 6116 | ;; |
1b4a979b ME |
6117 | sparc-*-openbsd*) |
6118 | # we need collect2 until our bug is fixed... | |
6119 | use_collect2=yes | |
6120 | ;; | |
861bb6c1 JL |
6121 | sparc-*-bsd*) |
6122 | tm_file=sparc/bsd.h | |
6123 | ;; | |
ac52b80b DE |
6124 | sparc-*-elf*) |
6125 | tm_file=sparc/elf.h | |
6126 | tmake_file=sparc/t-elf | |
6127 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
6128 | #float_format=i128 | |
6129 | float_format=i64 | |
6130 | ;; | |
956d6950 | 6131 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 6132 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
6133 | tm_file=sparc/linux-aout.h |
6134 | xmake_file=x-linux | |
861bb6c1 JL |
6135 | gnu_ld=yes |
6136 | ;; | |
956d6950 | 6137 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 6138 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 6139 | xmake_file=x-linux |
861bb6c1 | 6140 | tm_file=sparc/linux.h |
3e88bbdb | 6141 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 6142 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 6143 | gnu_ld=yes |
39c440fc | 6144 | float_format=sparc |
861bb6c1 | 6145 | ;; |
956d6950 | 6146 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 6147 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 6148 | xmake_file=x-linux |
861bb6c1 | 6149 | tm_file=sparc/linux.h |
3e88bbdb | 6150 | tmake_file="t-linux" |
861bb6c1 | 6151 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 6152 | gnu_ld=yes |
75bffa71 | 6153 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
6154 | thread_file='posix' |
6155 | fi | |
39c440fc | 6156 | float_format=sparc |
861bb6c1 JL |
6157 | ;; |
6158 | sparc-*-lynxos*) | |
75bffa71 | 6159 | if test x$gas = xyes |
861bb6c1 JL |
6160 | then |
6161 | tm_file=sparc/lynx.h | |
6162 | else | |
6163 | tm_file=sparc/lynx-ng.h | |
6164 | fi | |
6165 | xm_file=sparc/xm-lynx.h | |
6166 | tmake_file=sparc/t-sunos41 | |
6167 | xmake_file=x-lynx | |
6168 | ;; | |
6e5138f0 JS |
6169 | sparc-*-rtemsaout*) |
6170 | tmake_file="sparc/t-sparcbare t-rtems" | |
6171 | tm_file=sparc/rtems.h | |
dae3a2d3 | 6172 | ;; |
d1476635 JS |
6173 | sparc-*-rtems*|sparc-*-rtemself*) |
6174 | tm_file="sparc/rtemself.h" | |
6175 | tmake_file="sparc/t-elf t-rtems" | |
6176 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
6177 | #float_format=i128 | |
6178 | float_format=i64 | |
6179 | ;; | |
d559a4db | 6180 | sparcv9-*-solaris2*) |
3b1c302f AO |
6181 | if test x$gnu_ld = xyes |
6182 | then | |
6183 | tm_file=sparc/sol2-64.h | |
6184 | else | |
6185 | tm_file=sparc/sol2-sld-64.h | |
6186 | fi | |
d559a4db DM |
6187 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" |
6188 | xm_defines="USG POSIX" | |
345a6161 | 6189 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
6190 | xmake_file=sparc/x-sysv4 |
6191 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 6192 | float_format=none |
d7496fbb | 6193 | if test x${enable_threads} = x ; then |
d559a4db | 6194 | enable_threads=$have_pthread_h |
d7496fbb | 6195 | if test x${enable_threads} = x ; then |
d559a4db DM |
6196 | enable_threads=$have_thread_h |
6197 | fi | |
6198 | fi | |
d7496fbb DM |
6199 | if test x${enable_threads} = xyes ; then |
6200 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
6201 | thread_file='posix' |
6202 | else | |
6203 | thread_file='solaris' | |
6204 | fi | |
6205 | fi | |
6206 | ;; | |
ab87f8c8 | 6207 | sparc-hal-solaris2*) |
2d092ffa | 6208 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
a5037588 | 6209 | xm_defines="USG POSIX" |
ab87f8c8 JL |
6210 | tm_file="sparc/sol2.h sparc/hal.h" |
6211 | tmake_file="sparc/t-halos sparc/t-sol2" | |
6212 | xmake_file=sparc/x-sysv4 | |
6213 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
a5037588 | 6214 | case $machine in |
e7651ec5 | 6215 | *-*-solaris2.[0-4]) |
a5037588 CL |
6216 | float_format=i128 |
6217 | ;; | |
6218 | *) | |
6219 | float_format=none | |
6220 | ;; | |
6221 | esac | |
6222 | thread_file='solaris' | |
ab87f8c8 | 6223 | ;; |
861bb6c1 | 6224 | sparc-*-solaris2*) |
75bffa71 | 6225 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
6226 | then |
6227 | tm_file=sparc/sol2.h | |
6228 | else | |
6229 | tm_file=sparc/sol2-sld.h | |
6230 | fi | |
2d092ffa | 6231 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
0b3d64d2 | 6232 | xm_defines="USG POSIX" |
861bb6c1 JL |
6233 | tmake_file=sparc/t-sol2 |
6234 | xmake_file=sparc/x-sysv4 | |
6235 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 | 6236 | case $machine in |
5b68c389 | 6237 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; |
a242e6f5 | 6238 | *-*-solaris2*) |
3b1c302f AO |
6239 | if test x$gnu_ld = xyes |
6240 | then | |
6241 | tm_file=sparc/sol2-64.h | |
6242 | else | |
6243 | tm_file=sparc/sol2-sld-64.h | |
6244 | fi | |
a242e6f5 RO |
6245 | tmake_file="$tmake_file sparc/t-sol2-64" |
6246 | ;; | |
6247 | esac | |
6248 | case $machine in | |
f6cb0e63 | 6249 | *-*-solaris2.[0-4]) |
027ea2a7 JW |
6250 | float_format=i128 |
6251 | ;; | |
f6cb0e63 | 6252 | *) |
027ea2a7 JW |
6253 | float_format=none |
6254 | ;; | |
f6cb0e63 | 6255 | esac |
75bffa71 | 6256 | if test x${enable_threads} = x; then |
f24af81b | 6257 | enable_threads=$have_pthread_h |
75bffa71 | 6258 | if test x${enable_threads} = x; then |
f24af81b TT |
6259 | enable_threads=$have_thread_h |
6260 | fi | |
6261 | fi | |
75bffa71 ILT |
6262 | if test x${enable_threads} = xyes; then |
6263 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
6264 | thread_file='posix' |
6265 | else | |
861bb6c1 | 6266 | thread_file='solaris' |
f24af81b | 6267 | fi |
861bb6c1 JL |
6268 | fi |
6269 | ;; | |
6270 | sparc-*-sunos4.0*) | |
6271 | tm_file=sparc/sunos4.h | |
6272 | tmake_file=sparc/t-sunos40 | |
6273 | use_collect2=yes | |
6274 | ;; | |
6275 | sparc-*-sunos4*) | |
6276 | tm_file=sparc/sunos4.h | |
6277 | tmake_file=sparc/t-sunos41 | |
6278 | use_collect2=yes | |
75bffa71 | 6279 | if test x$gas = xyes; then |
ca55abae JM |
6280 | tm_file="${tm_file} sparc/sun4gas.h" |
6281 | fi | |
861bb6c1 JL |
6282 | ;; |
6283 | sparc-*-sunos3*) | |
6284 | tm_file=sparc/sun4o3.h | |
6285 | use_collect2=yes | |
6286 | ;; | |
6287 | sparc-*-sysv4*) | |
6288 | tm_file=sparc/sysv4.h | |
2d092ffa | 6289 | xm_file="sparc/xm-sysv4.h" |
f6cb0e63 | 6290 | xm_defines="USG POSIX" |
861bb6c1 JL |
6291 | tmake_file=t-svr4 |
6292 | xmake_file=sparc/x-sysv4 | |
6293 | extra_parts="crtbegin.o crtend.o" | |
6294 | ;; | |
6295 | sparc-*-vxsim*) | |
2d092ffa | 6296 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
f5963e61 | 6297 | xm_defines="USG POSIX" |
861bb6c1 JL |
6298 | tm_file=sparc/vxsim.h |
6299 | tmake_file=sparc/t-vxsparc | |
6300 | xmake_file=sparc/x-sysv4 | |
6301 | ;; | |
6302 | sparclet-*-aout*) | |
6303 | tm_file="sparc/splet.h libgloss.h" | |
6304 | tmake_file=sparc/t-splet | |
6305 | ;; | |
6306 | sparclite-*-coff*) | |
6307 | tm_file="sparc/litecoff.h libgloss.h" | |
6308 | tmake_file=sparc/t-sparclite | |
6309 | ;; | |
6310 | sparclite-*-aout*) | |
6311 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
6312 | tmake_file=sparc/t-sparclite | |
6313 | ;; | |
28df4168 | 6314 | sparclite-*-elf*) |
6eccdc81 | 6315 | tm_file="sparc/liteelf.h" |
28df4168 JL |
6316 | tmake_file=sparc/t-sparclite |
6317 | extra_parts="crtbegin.o crtend.o" | |
6318 | ;; | |
6319 | sparc86x-*-aout*) | |
6320 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
6321 | tmake_file=sparc/t-sp86x | |
6322 | ;; | |
6323 | sparc86x-*-elf*) | |
6eccdc81 | 6324 | tm_file="sparc/sp86x-elf.h" |
28df4168 JL |
6325 | tmake_file=sparc/t-sp86x |
6326 | extra_parts="crtbegin.o crtend.o" | |
6327 | ;; | |
861bb6c1 JL |
6328 | sparc64-*-aout*) |
6329 | tmake_file=sparc/t-sp64 | |
6330 | tm_file=sparc/sp64-aout.h | |
6331 | ;; | |
6332 | sparc64-*-elf*) | |
6333 | tmake_file=sparc/t-sp64 | |
6334 | tm_file=sparc/sp64-elf.h | |
6335 | extra_parts="crtbegin.o crtend.o" | |
6336 | ;; | |
956d6950 | 6337 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 6338 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
6339 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
6340 | tm_file=sparc/linux64.h | |
6341 | xmake_file=x-linux | |
345a6161 | 6342 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 6343 | gnu_ld=yes |
9ce13279 JJ |
6344 | if test x$enable_threads = xyes; then |
6345 | thread_file='posix' | |
6346 | fi | |
39c440fc | 6347 | float_format=sparc |
26b551af | 6348 | ;; |
861bb6c1 JL |
6349 | # This hasn't been upgraded to GCC 2. |
6350 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
6351 | # tm_file=tahoe/harris.h | |
6352 | # ;; | |
6353 | # tahoe-*-bsd*) # tahoe running BSD | |
6354 | # ;; | |
6da9c622 | 6355 | |
d5b7b3ae RE |
6356 | thumb*-*-*) |
6357 | { echo "configure: error: | |
6358 | *** The Thumb targets have been depreciated. The equivalent | |
6359 | *** ARM based toolchain can now generated Thumb instructions | |
6360 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } | |
cb805c2d | 6361 | ;; |
861bb6c1 JL |
6362 | # This hasn't been upgraded to GCC 2. |
6363 | # tron-*-*) | |
6364 | # cpu_type=gmicro | |
6365 | # use_collect2=yes | |
6366 | # ;; | |
966f8bfd JS |
6367 | v850-*-rtems*) |
6368 | cpu_type=v850 | |
6369 | tm_file="v850/rtems.h" | |
6370 | xm_file="v850/xm-v850.h" | |
6371 | tmake_file="v850/t-v850 t-rtems" | |
6372 | if test x$stabs = xyes | |
6373 | then | |
6374 | tm_file="${tm_file} dbx.h" | |
6375 | fi | |
6376 | use_collect2=no | |
6377 | ;; | |
f84271d9 | 6378 | v850-*-*) |
7a846a6c | 6379 | target_cpu_default="TARGET_CPU_generic" |
f84271d9 JL |
6380 | cpu_type=v850 |
6381 | tm_file="v850/v850.h" | |
6382 | xm_file="v850/xm-v850.h" | |
62db76ee | 6383 | tmake_file=v850/t-v850 |
75bffa71 | 6384 | if test x$stabs = xyes |
f84271d9 JL |
6385 | then |
6386 | tm_file="${tm_file} dbx.h" | |
6387 | fi | |
6388 | use_collect2=no | |
6389 | ;; | |
861bb6c1 JL |
6390 | vax-*-bsd*) # vaxen running BSD |
6391 | use_collect2=yes | |
6392 | float_format=vax | |
6393 | ;; | |
6394 | vax-*-sysv*) # vaxen running system V | |
6395 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 6396 | xm_defines=USG |
861bb6c1 JL |
6397 | float_format=vax |
6398 | ;; | |
6399 | vax-*-netbsd*) | |
6400 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
6401 | tmake_file=t-netbsd |
6402 | float_format=vax | |
ed4acb3b | 6403 | use_collect2=yes |
861bb6c1 | 6404 | ;; |
1b4a979b | 6405 | vax-*-openbsd*) |
766518a0 | 6406 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 6407 | ;; |
861bb6c1 JL |
6408 | vax-*-ultrix*) # vaxen running ultrix |
6409 | tm_file="${tm_file} vax/ultrix.h" | |
6410 | use_collect2=yes | |
6411 | float_format=vax | |
6412 | ;; | |
6413 | vax-*-vms*) # vaxen running VMS | |
6414 | xm_file=vax/xm-vms.h | |
6415 | tm_file=vax/vms.h | |
6416 | float_format=vax | |
6417 | ;; | |
6418 | vax-*-*) # vax default entry | |
6419 | float_format=vax | |
6420 | ;; | |
6421 | we32k-att-sysv*) | |
6422 | xm_file="${xm_file} xm-svr3" | |
6423 | use_collect2=yes | |
6424 | ;; | |
6425 | *) | |
6426 | echo "Configuration $machine not supported" 1>&2 | |
6427 | exit 1 | |
6428 | ;; | |
6429 | esac | |
6430 | ||
6431 | case $machine in | |
6432 | *-*-linux-gnu*) | |
f6cb0e63 | 6433 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
6434 | *-*-gnu*) |
6435 | # On the GNU system, the setup is just about the same on | |
6436 | # each different CPU. The specific machines that GNU | |
6437 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 6438 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
6439 | tm_file=${cpu_type}/gnu.h |
6440 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
6441 | # GNU always uses ELF. | |
6442 | elf=yes | |
6443 | # GNU tools are the only tools. | |
6444 | gnu_ld=yes | |
6445 | gas=yes | |
861bb6c1 JL |
6446 | xmake_file=x-linux # These details are the same as Linux. |
6447 | tmake_file=t-gnu # These are not. | |
6448 | ;; | |
6449 | *-*-sysv4*) | |
861bb6c1 | 6450 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
6451 | install_headers_dir=install-headers-cpio |
6452 | ;; | |
6453 | *-*-sysv*) | |
861bb6c1 JL |
6454 | install_headers_dir=install-headers-cpio |
6455 | ;; | |
6456 | esac | |
6457 | ||
f6cb0e63 | 6458 | # Distinguish i[34567]86 |
861bb6c1 JL |
6459 | # Also, do not run mips-tfile on MIPS if using gas. |
6460 | # Process --with-cpu= for PowerPC/rs6000 | |
6461 | target_cpu_default2= | |
6462 | case $machine in | |
6463 | i486-*-*) | |
6464 | target_cpu_default2=1 | |
6465 | ;; | |
6466 | i586-*-*) | |
83f4345f PT |
6467 | case $target_alias in |
6468 | k6-*) | |
6469 | target_cpu_default2=4 | |
6470 | ;; | |
6471 | *) | |
6472 | target_cpu_default2=2 | |
6473 | ;; | |
6474 | esac | |
861bb6c1 | 6475 | ;; |
f6cb0e63 | 6476 | i686-*-* | i786-*-*) |
861bb6c1 JL |
6477 | target_cpu_default2=3 |
6478 | ;; | |
6479 | alpha*-*-*) | |
6480 | case $machine in | |
2618c083 | 6481 | alphaev6[78]*) |
d8ee3e20 RH |
6482 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" |
6483 | ;; | |
e9a25f70 | 6484 | alphaev6*) |
de4abb91 | 6485 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
6486 | ;; |
6487 | alphapca56*) | |
fbb5ed67 | 6488 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 6489 | ;; |
861bb6c1 | 6490 | alphaev56*) |
e9a25f70 | 6491 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
6492 | ;; |
6493 | alphaev5*) | |
6494 | target_cpu_default2="MASK_CPU_EV5" | |
6495 | ;; | |
6496 | esac | |
6497 | ||
75bffa71 | 6498 | if test x$gas = xyes |
861bb6c1 | 6499 | then |
75bffa71 | 6500 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
6501 | then |
6502 | target_cpu_default2="MASK_GAS" | |
6503 | else | |
6504 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
6505 | fi | |
6506 | fi | |
6507 | ;; | |
956d6950 JL |
6508 | arm*-*-*) |
6509 | case "x$with_cpu" in | |
6510 | x) | |
6511 | # The most generic | |
6512 | target_cpu_default2="TARGET_CPU_generic" | |
6513 | ;; | |
6514 | ||
6515 | # Distinguish cores, and major variants | |
6516 | # arm7m doesn't exist, but D & I don't affect code | |
005537df | 6517 | xarm[23678] | xarm250 | xarm[67][01]0 \ |
956d6950 JL |
6518 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ |
6519 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 6520 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
6521 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6522 | ;; | |
6523 | ||
6524 | xyes | xno) | |
6525 | echo "--with-cpu must be passed a value" 1>&2 | |
6526 | exit 1 | |
6527 | ;; | |
6528 | ||
6529 | *) | |
75bffa71 | 6530 | if test x$pass2done = xyes |
956d6950 JL |
6531 | then |
6532 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6533 | exit 1 | |
6534 | fi | |
6535 | ;; | |
6536 | esac | |
6537 | ;; | |
6538 | ||
861bb6c1 | 6539 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 6540 | if test x$gas = xyes |
861bb6c1 | 6541 | then |
75bffa71 | 6542 | if test x$gnu_ld = xyes |
861bb6c1 | 6543 | then |
e7651ec5 | 6544 | target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR" |
861bb6c1 | 6545 | else |
e7651ec5 | 6546 | target_cpu_default2="MASK_GAS" |
861bb6c1 JL |
6547 | fi |
6548 | fi | |
6549 | ;; | |
6550 | mips*-*-*) | |
75bffa71 | 6551 | if test x$gas = xyes |
861bb6c1 | 6552 | then |
e7651ec5 | 6553 | target_cpu_default2="MASK_GAS" |
861bb6c1 JL |
6554 | fi |
6555 | ;; | |
6556 | powerpc*-*-* | rs6000-*-*) | |
6557 | case "x$with_cpu" in | |
6558 | x) | |
6559 | ;; | |
6560 | ||
6561 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
6562 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
6563 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 6564 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 6565 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 6566 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
6567 | ;; |
6568 | ||
6569 | xyes | xno) | |
6570 | echo "--with-cpu must be passed a value" 1>&2 | |
6571 | exit 1 | |
6572 | ;; | |
6573 | ||
6574 | *) | |
75bffa71 | 6575 | if test x$pass2done = xyes |
956d6950 JL |
6576 | then |
6577 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6578 | exit 1 | |
6579 | fi | |
861bb6c1 JL |
6580 | ;; |
6581 | esac | |
6582 | ;; | |
6583 | sparc*-*-*) | |
6584 | case ".$with_cpu" in | |
6585 | .) | |
6586 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
6587 | ;; | |
8947065c | 6588 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
6589 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6590 | ;; | |
6591 | *) | |
75bffa71 | 6592 | if test x$pass2done = xyes |
956d6950 JL |
6593 | then |
6594 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6595 | exit 1 | |
6596 | fi | |
861bb6c1 JL |
6597 | ;; |
6598 | esac | |
6599 | ;; | |
6600 | esac | |
6601 | ||
75bffa71 | 6602 | if test "$target_cpu_default2" != "" |
861bb6c1 | 6603 | then |
75bffa71 | 6604 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
6605 | then |
6606 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
6607 | else | |
6608 | target_cpu_default=$target_cpu_default2 | |
6609 | fi | |
6610 | fi | |
6611 | ||
6612 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
6613 | # Actually, there is now; GNU ld doesn't handle the EH info or |
6614 | # collecting for shared libraries. | |
ca8c3b37 JM |
6615 | #case x$gnu_ld in |
6616 | #xyes) | |
6617 | # use_collect2= | |
6618 | # ;; | |
6619 | #esac | |
861bb6c1 JL |
6620 | |
6621 | # Save data on machine being used to compile GCC in build_xm_file. | |
6622 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 6623 | if test x$pass1done = x |
861bb6c1 | 6624 | then |
75bffa71 | 6625 | if test x"$xm_file" = x |
861bb6c1 JL |
6626 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
6627 | else build_xm_file=$xm_file | |
6628 | fi | |
f6cb0e63 | 6629 | build_xm_defines=$xm_defines |
861bb6c1 JL |
6630 | build_install_headers_dir=$install_headers_dir |
6631 | build_exeext=$exeext | |
6632 | pass1done=yes | |
6633 | else | |
75bffa71 | 6634 | if test x$pass2done = x |
861bb6c1 | 6635 | then |
75bffa71 | 6636 | if test x"$xm_file" = x |
861bb6c1 JL |
6637 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
6638 | else host_xm_file=$xm_file | |
6639 | fi | |
f6cb0e63 | 6640 | host_xm_defines=$xm_defines |
75bffa71 | 6641 | if test x"$xmake_file" = x |
861bb6c1 JL |
6642 | then xmake_file=$cpu_type/x-$cpu_type |
6643 | fi | |
6644 | host_xmake_file="$xmake_file" | |
6645 | host_truncate_target=$truncate_target | |
6646 | host_extra_gcc_objs=$extra_gcc_objs | |
6647 | host_extra_objs=$extra_host_objs | |
6e26218f | 6648 | host_exeext=$exeext |
861bb6c1 JL |
6649 | pass2done=yes |
6650 | fi | |
6651 | fi | |
6652 | done | |
6653 | ||
6654 | extra_objs="${host_extra_objs} ${extra_objs}" | |
6655 | ||
6656 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 6657 | if test x"$tm_file" = x |
861bb6c1 JL |
6658 | then tm_file=$cpu_type/$cpu_type.h; fi |
6659 | ||
75bffa71 | 6660 | if test x$extra_headers = x |
861bb6c1 JL |
6661 | then extra_headers=; fi |
6662 | ||
75bffa71 | 6663 | if test x"$xm_file" = x |
861bb6c1 JL |
6664 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
6665 | ||
75bffa71 | 6666 | if test x$md_file = x |
e98e406f | 6667 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 6668 | |
75bffa71 | 6669 | if test x$out_file = x |
861bb6c1 JL |
6670 | then out_file=$cpu_type/$cpu_type.c; fi |
6671 | ||
75bffa71 | 6672 | if test x"$tmake_file" = x |
861bb6c1 JL |
6673 | then tmake_file=$cpu_type/t-$cpu_type |
6674 | fi | |
6675 | ||
90e6a802 | 6676 | if test x"$dwarf2" = xyes |
756ee602 | 6677 | then tm_file="$tm_file tm-dwarf2.h" |
90e6a802 RL |
6678 | fi |
6679 | ||
75bffa71 | 6680 | if test x$float_format = x |
861bb6c1 JL |
6681 | then float_format=i64 |
6682 | fi | |
6683 | ||
027ea2a7 JW |
6684 | if test $float_format = none |
6685 | then float_h_file=Makefile.in | |
6686 | else float_h_file=float-$float_format.h | |
6687 | fi | |
6688 | ||
9fc9b82a | 6689 | # Handle cpp installation. |
3ecc3258 | 6690 | if test x$enable_cpp != xno |
9fc9b82a L |
6691 | then |
6692 | tmake_file="$tmake_file t-install-cpp" | |
6693 | fi | |
6694 | ||
861bb6c1 JL |
6695 | # Say what files are being used for the output code and MD file. |
6696 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
6697 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
6698 | ||
6699 | count=a | |
6700 | for f in $tm_file; do | |
6701 | count=${count}x | |
6702 | done | |
75bffa71 | 6703 | if test $count = ax; then |
861bb6c1 JL |
6704 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
6705 | else | |
6706 | echo "Using the following target machine macro files:" | |
6707 | for f in $tm_file; do | |
6708 | echo " $srcdir/config/$f" | |
6709 | done | |
6710 | fi | |
6711 | ||
6712 | count=a | |
6713 | for f in $host_xm_file; do | |
6714 | count=${count}x | |
6715 | done | |
75bffa71 | 6716 | if test $count = ax; then |
861bb6c1 JL |
6717 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
6718 | else | |
6719 | echo "Using the following host machine macro files:" | |
6720 | for f in $host_xm_file; do | |
6721 | echo " $srcdir/config/$f" | |
6722 | done | |
6723 | fi | |
6724 | ||
75bffa71 | 6725 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6726 | count=a |
6727 | for f in $build_xm_file; do | |
6728 | count=${count}x | |
6729 | done | |
75bffa71 | 6730 | if test $count = ax; then |
861bb6c1 JL |
6731 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6732 | else | |
6733 | echo "Using the following build machine macro files:" | |
6734 | for f in $build_xm_file; do | |
6735 | echo " $srcdir/config/$f" | |
6736 | done | |
6737 | fi | |
6738 | fi | |
6739 | ||
75bffa71 ILT |
6740 | if test x$thread_file = x; then |
6741 | if test x$target_thread_file != x; then | |
a851212a JW |
6742 | thread_file=$target_thread_file |
6743 | else | |
6744 | thread_file='single' | |
6745 | fi | |
861bb6c1 JL |
6746 | fi |
6747 | ||
6748 | # Set up the header files. | |
6749 | # $links is the list of header files to create. | |
6750 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6751 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6752 | # the first file included by config.h. |
f6cb0e63 | 6753 | null_defines= |
64ccbc99 | 6754 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6755 | |
b7cb92ad | 6756 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6757 | # as well. If host!=build, we are in error and need to do more |
6758 | # work to find out the build config parameters. | |
75bffa71 | 6759 | if test x$host = x$build |
db81d74a | 6760 | then |
64ccbc99 | 6761 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6762 | else |
6763 | # We create a subdir, then run autoconf in the subdir. | |
6764 | # To prevent recursion we set host and build for the new | |
6765 | # invocation of configure to the build for this invocation | |
6766 | # of configure. | |
6767 | tempdir=build.$$ | |
6768 | rm -rf $tempdir | |
6769 | mkdir $tempdir | |
6770 | cd $tempdir | |
6771 | case ${srcdir} in | |
6772 | /*) realsrcdir=${srcdir};; | |
6773 | *) realsrcdir=../${srcdir};; | |
6774 | esac | |
fe81dd69 | 6775 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6776 | --target=$target --host=$build --build=$build |
6777 | ||
6778 | # We just finished tests for the build machine, so rename | |
6779 | # the file auto-build.h in the gcc directory. | |
6780 | mv auto-host.h ../auto-build.h | |
6781 | cd .. | |
6782 | rm -rf $tempdir | |
64ccbc99 | 6783 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6784 | fi |
6785 | ||
0056a9b5 KG |
6786 | xm_file="gansidecl.h ${xm_file}" |
6787 | tm_file="gansidecl.h ${tm_file}" | |
6788 | ||
6baf1cc8 BS |
6789 | vars="host_xm_file tm_file tm_p_file xm_file build_xm_file" |
6790 | links="config.h tm.h tm_p.h tconfig.h hconfig.h" | |
6791 | defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines" | |
861bb6c1 JL |
6792 | |
6793 | rm -f config.bak | |
75bffa71 | 6794 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6795 | |
6796 | # Make the links. | |
75bffa71 | 6797 | while test -n "$vars" |
861bb6c1 | 6798 | do |
861bb6c1 JL |
6799 | set $vars; var=$1; shift; vars=$* |
6800 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6801 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6802 | |
6803 | rm -f $link | |
6baf1cc8 BS |
6804 | # Make sure the file is created, even if it is empty. |
6805 | echo >$link | |
861bb6c1 JL |
6806 | |
6807 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6808 | # This substitutes for lots of *.h files. | |
75bffa71 | 6809 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6810 | then |
8fbf199e | 6811 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6812 | fi |
6813 | ||
6814 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6815 | case $file in |
6816 | auto-config.h) | |
6817 | ;; | |
6818 | *) | |
6819 | echo '#ifdef IN_GCC' >>$link | |
6820 | ;; | |
6821 | esac | |
861bb6c1 | 6822 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6823 | case $file in |
6824 | auto-config.h) | |
6825 | ;; | |
6826 | *) | |
6827 | echo '#endif' >>$link | |
6828 | ;; | |
6829 | esac | |
861bb6c1 | 6830 | done |
f6cb0e63 JL |
6831 | |
6832 | for def in `eval echo '$'$define`; do | |
6833 | echo "#ifndef $def" >>$link | |
6834 | echo "#define $def" >>$link | |
6835 | echo "#endif" >>$link | |
6836 | done | |
861bb6c1 JL |
6837 | done |
6838 | ||
6839 | # Truncate the target if necessary | |
75bffa71 | 6840 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6841 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6842 | fi | |
6843 | ||
f1943b77 | 6844 | # Get the version trigger filename from the toplevel |
75bffa71 | 6845 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6846 | gcc_version_trigger=$with_gcc_version_trigger |
6847 | else | |
6848 | gcc_version_trigger=${srcdir}/version.c | |
6849 | fi | |
4746ee26 | 6850 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` |
861bb6c1 | 6851 | |
ab87f8c8 JL |
6852 | # Internationalization |
6853 | PACKAGE=gcc | |
6854 | VERSION="$gcc_version" | |
6855 | cat >> confdefs.h <<EOF | |
6856 | #define PACKAGE "$PACKAGE" | |
6857 | EOF | |
861bb6c1 | 6858 | |
ab87f8c8 JL |
6859 | cat >> confdefs.h <<EOF |
6860 | #define VERSION "$VERSION" | |
6861 | EOF | |
861bb6c1 | 6862 | |
861bb6c1 | 6863 | |
ab87f8c8 JL |
6864 | |
6865 | ||
6866 | ALL_LINGUAS="en_UK" | |
6867 | ||
dc6746e7 | 6868 | # Enable NLS support by default |
ab87f8c8 JL |
6869 | # Check whether --enable-nls or --disable-nls was given. |
6870 | if test "${enable_nls+set}" = set; then | |
6871 | enableval="$enable_nls" | |
6872 | : | |
861bb6c1 | 6873 | else |
dc6746e7 | 6874 | enable_nls=yes |
861bb6c1 | 6875 | fi |
861bb6c1 | 6876 | |
861bb6c1 | 6877 | |
dc6746e7 PT |
6878 | # if cross compiling, disable NLS support. |
6879 | # It's not worth the trouble, at least for now. | |
6880 | ||
6881 | if test "${build}" != "${host}" && test "x$enable_nls" == "xyes" then | |
6882 | echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2 | |
6883 | enable_nls=no | |
6884 | fi | |
6885 | ||
861bb6c1 | 6886 | |
ab87f8c8 | 6887 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
dc6746e7 | 6888 | echo "configure:6889: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6889 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6892 | else | |
6893 | ac_save_LIBS="$LIBS" | |
6894 | LIBS="-lcposix $LIBS" | |
6895 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 6896 | #line 6897 "configure" |
ab87f8c8 JL |
6897 | #include "confdefs.h" |
6898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6899 | /* We use char because int might match the return type of a gcc2 | |
6900 | builtin and then its argument prototype would still apply. */ | |
6901 | char strerror(); | |
861bb6c1 | 6902 | |
ab87f8c8 JL |
6903 | int main() { |
6904 | strerror() | |
6905 | ; return 0; } | |
6906 | EOF | |
dc6746e7 | 6907 | if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6908 | rm -rf conftest* |
6909 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6910 | else | |
6911 | echo "configure: failed program was:" >&5 | |
6912 | cat conftest.$ac_ext >&5 | |
6913 | rm -rf conftest* | |
6914 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6915 | fi |
ab87f8c8 JL |
6916 | rm -f conftest* |
6917 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6918 | |
861bb6c1 | 6919 | fi |
ab87f8c8 JL |
6920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6921 | echo "$ac_t""yes" 1>&6 | |
6922 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6923 | else |
ab87f8c8 | 6924 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6925 | fi |
6926 | ||
ab87f8c8 | 6927 | |
2ce3c6c6 | 6928 | |
ab87f8c8 | 6929 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
dc6746e7 | 6930 | echo "configure:6931: checking for working const" >&5 |
ab87f8c8 JL |
6931 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6933 | else |
ab87f8c8 | 6934 | cat > conftest.$ac_ext <<EOF |
dc6746e7 | 6935 | #line 6936 "configure" |
ab87f8c8 | 6936 | #include "confdefs.h" |
861bb6c1 | 6937 | |
ab87f8c8 JL |
6938 | int main() { |
6939 | ||
6940 | /* Ultrix mips cc rejects this. */ | |
dc6746e7 | 6941 | typedef int charset[2]; const charset x; |
ab87f8c8 JL |
6942 | /* SunOS 4.1.1 cc rejects this. */ |
6943 | char const *const *ccp; | |
6944 | char **p; | |
6945 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6946 | struct point {int x, y;}; | |
6947 | static struct point const zero = {0,0}; | |
6948 | /* AIX XL C 1.02.0.0 rejects this. | |
6949 | It does not let you subtract one const X* pointer from another in an arm | |
6950 | of an if-expression whose if-part is not a constant expression */ | |
6951 | const char *g = "string"; | |
6952 | ccp = &g + (g ? g-g : 0); | |
6953 | /* HPUX 7.0 cc rejects these. */ | |
6954 | ++ccp; | |
6955 | p = (char**) ccp; | |
6956 | ccp = (char const *const *) p; | |
6957 | { /* SCO 3.2v4 cc rejects this. */ | |
6958 | char *t; | |
6959 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6960 | ||
6961 | *t++ = 0; | |
6962 | } | |
6963 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6964 | int x[] = {25, 17}; | |
6965 | const int *foo = &x[0]; | |
6966 | ++foo; | |
6967 | } | |
6968 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6969 | typedef const int *iptr; | |
6970 | iptr p = 0; | |
6971 | ++p; | |
6972 | } | |
6973 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6974 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6975 | struct s { int j; const int *ap[3]; }; | |
6976 | struct s *b; b->j = 5; | |
6977 | } | |
6978 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6979 | const int foo = 10; | |
6980 | } | |
6981 | ||
6982 | ; return 0; } | |
6983 | EOF | |
dc6746e7 | 6984 | if { (eval echo configure:6985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6985 | rm -rf conftest* |
6986 | ac_cv_c_const=yes | |
861bb6c1 | 6987 | else |
ab87f8c8 JL |
6988 | echo "configure: failed program was:" >&5 |
6989 | cat conftest.$ac_ext >&5 | |
6990 | rm -rf conftest* | |
6991 | ac_cv_c_const=no | |
6992 | fi | |
6993 | rm -f conftest* | |
861bb6c1 JL |
6994 | fi |
6995 | ||
ab87f8c8 JL |
6996 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6997 | if test $ac_cv_c_const = no; then | |
6998 | cat >> confdefs.h <<\EOF | |
6999 | #define const | |
7000 | EOF | |
7001 | ||
861bb6c1 JL |
7002 | fi |
7003 | ||
ab87f8c8 | 7004 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
dc6746e7 | 7005 | echo "configure:7006: checking for inline" >&5 |
ab87f8c8 JL |
7006 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
7007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7008 | else | |
7009 | ac_cv_c_inline=no | |
7010 | for ac_kw in inline __inline__ __inline; do | |
7011 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7012 | #line 7013 "configure" |
ab87f8c8 JL |
7013 | #include "confdefs.h" |
7014 | ||
7015 | int main() { | |
dc6746e7 | 7016 | } $ac_kw foo() { |
ab87f8c8 JL |
7017 | ; return 0; } |
7018 | EOF | |
dc6746e7 | 7019 | if { (eval echo configure:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
7020 | rm -rf conftest* |
7021 | ac_cv_c_inline=$ac_kw; break | |
7022 | else | |
7023 | echo "configure: failed program was:" >&5 | |
7024 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 7025 | fi |
ab87f8c8 JL |
7026 | rm -f conftest* |
7027 | done | |
4b95eb49 | 7028 | |
992d1248 | 7029 | fi |
861bb6c1 | 7030 | |
ab87f8c8 JL |
7031 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
7032 | case "$ac_cv_c_inline" in | |
7033 | inline | yes) ;; | |
7034 | no) cat >> confdefs.h <<\EOF | |
7035 | #define inline | |
00ccc16d | 7036 | EOF |
ab87f8c8 JL |
7037 | ;; |
7038 | *) cat >> confdefs.h <<EOF | |
7039 | #define inline $ac_cv_c_inline | |
7040 | EOF | |
7041 | ;; | |
7042 | esac | |
7043 | ||
7044 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
dc6746e7 | 7045 | echo "configure:7046: checking for off_t" >&5 |
ab87f8c8 JL |
7046 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
7047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7048 | else | |
7049 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7050 | #line 7051 "configure" |
ab87f8c8 JL |
7051 | #include "confdefs.h" |
7052 | #include <sys/types.h> | |
7053 | #if STDC_HEADERS | |
7054 | #include <stdlib.h> | |
7055 | #include <stddef.h> | |
7056 | #endif | |
7057 | EOF | |
7058 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 7059 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
7060 | rm -rf conftest* |
7061 | ac_cv_type_off_t=yes | |
7062 | else | |
7063 | rm -rf conftest* | |
7064 | ac_cv_type_off_t=no | |
7065 | fi | |
7066 | rm -f conftest* | |
7067 | ||
7068 | fi | |
7069 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
7070 | if test $ac_cv_type_off_t = no; then | |
7071 | cat >> confdefs.h <<\EOF | |
7072 | #define off_t long | |
7073 | EOF | |
7074 | ||
7075 | fi | |
7076 | ||
7077 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
dc6746e7 | 7078 | echo "configure:7079: checking for size_t" >&5 |
ab87f8c8 JL |
7079 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
7080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7081 | else | |
7082 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7083 | #line 7084 "configure" |
ab87f8c8 JL |
7084 | #include "confdefs.h" |
7085 | #include <sys/types.h> | |
7086 | #if STDC_HEADERS | |
7087 | #include <stdlib.h> | |
7088 | #include <stddef.h> | |
7089 | #endif | |
7090 | EOF | |
7091 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 7092 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
7093 | rm -rf conftest* |
7094 | ac_cv_type_size_t=yes | |
7095 | else | |
7096 | rm -rf conftest* | |
7097 | ac_cv_type_size_t=no | |
7098 | fi | |
7099 | rm -f conftest* | |
7100 | ||
7101 | fi | |
7102 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
7103 | if test $ac_cv_type_size_t = no; then | |
7104 | cat >> confdefs.h <<\EOF | |
7105 | #define size_t unsigned | |
7106 | EOF | |
7107 | ||
7108 | fi | |
7109 | ||
7110 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7111 | # for constant arguments. Useless! | |
7112 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
dc6746e7 | 7113 | echo "configure:7114: checking for working alloca.h" >&5 |
ab87f8c8 JL |
7114 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
7115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7116 | else | |
7117 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7118 | #line 7119 "configure" |
ab87f8c8 JL |
7119 | #include "confdefs.h" |
7120 | #include <alloca.h> | |
7121 | int main() { | |
dc6746e7 | 7122 | char *p = alloca(2 * sizeof(int)); |
ab87f8c8 JL |
7123 | ; return 0; } |
7124 | EOF | |
dc6746e7 | 7125 | if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7126 | rm -rf conftest* |
7127 | ac_cv_header_alloca_h=yes | |
7128 | else | |
7129 | echo "configure: failed program was:" >&5 | |
7130 | cat conftest.$ac_ext >&5 | |
7131 | rm -rf conftest* | |
7132 | ac_cv_header_alloca_h=no | |
7133 | fi | |
7134 | rm -f conftest* | |
7135 | fi | |
7136 | ||
7137 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
7138 | if test $ac_cv_header_alloca_h = yes; then | |
7139 | cat >> confdefs.h <<\EOF | |
7140 | #define HAVE_ALLOCA_H 1 | |
7141 | EOF | |
7142 | ||
7143 | fi | |
7144 | ||
7145 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
dc6746e7 | 7146 | echo "configure:7147: checking for alloca" >&5 |
ab87f8c8 JL |
7147 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
7148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7149 | else | |
7150 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7151 | #line 7152 "configure" |
ab87f8c8 JL |
7152 | #include "confdefs.h" |
7153 | ||
7154 | #ifdef __GNUC__ | |
7155 | # define alloca __builtin_alloca | |
7156 | #else | |
cd9e5e7c MK |
7157 | # ifdef _MSC_VER |
7158 | # include <malloc.h> | |
7159 | # define alloca _alloca | |
ab87f8c8 | 7160 | # else |
cd9e5e7c MK |
7161 | # if HAVE_ALLOCA_H |
7162 | # include <alloca.h> | |
3723cad9 | 7163 | # else |
cd9e5e7c MK |
7164 | # ifdef _AIX |
7165 | #pragma alloca | |
7166 | # else | |
7167 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 7168 | char *alloca (); |
cd9e5e7c | 7169 | # endif |
ab87f8c8 JL |
7170 | # endif |
7171 | # endif | |
7172 | # endif | |
7173 | #endif | |
7174 | ||
7175 | int main() { | |
7176 | char *p = (char *) alloca(1); | |
7177 | ; return 0; } | |
7178 | EOF | |
dc6746e7 | 7179 | if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
81bf3d9e RH |
7180 | rm -rf conftest* |
7181 | ac_cv_func_alloca_works=yes | |
ab87f8c8 JL |
7182 | else |
7183 | echo "configure: failed program was:" >&5 | |
7184 | cat conftest.$ac_ext >&5 | |
81bf3d9e RH |
7185 | rm -rf conftest* |
7186 | ac_cv_func_alloca_works=no | |
ab87f8c8 | 7187 | fi |
81bf3d9e | 7188 | rm -f conftest* |
ab87f8c8 JL |
7189 | fi |
7190 | ||
81bf3d9e RH |
7191 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
7192 | if test $ac_cv_func_alloca_works = yes; then | |
7193 | cat >> confdefs.h <<\EOF | |
7194 | #define HAVE_ALLOCA 1 | |
7195 | EOF | |
7196 | ||
ab87f8c8 JL |
7197 | fi |
7198 | ||
81bf3d9e RH |
7199 | if test $ac_cv_func_alloca_works = no; then |
7200 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7201 | # that cause trouble. Some versions do not even contain alloca or | |
7202 | # contain a buggy version. If you still want to use their alloca, | |
7203 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7204 | ALLOCA=alloca.${ac_objext} | |
7205 | cat >> confdefs.h <<\EOF | |
7206 | #define C_ALLOCA 1 | |
ab87f8c8 JL |
7207 | EOF |
7208 | ||
ab87f8c8 | 7209 | |
81bf3d9e | 7210 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
dc6746e7 | 7211 | echo "configure:7212: checking whether alloca needs Cray hooks" >&5 |
81bf3d9e | 7212 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
ab87f8c8 JL |
7213 | echo $ac_n "(cached) $ac_c" 1>&6 |
7214 | else | |
7215 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7216 | #line 7217 "configure" |
ab87f8c8 | 7217 | #include "confdefs.h" |
81bf3d9e RH |
7218 | #if defined(CRAY) && ! defined(CRAY2) |
7219 | webecray | |
7220 | #else | |
7221 | wenotbecray | |
7222 | #endif | |
7223 | ||
ab87f8c8 | 7224 | EOF |
81bf3d9e RH |
7225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7226 | egrep "webecray" >/dev/null 2>&1; then | |
ab87f8c8 | 7227 | rm -rf conftest* |
81bf3d9e | 7228 | ac_cv_os_cray=yes |
ab87f8c8 | 7229 | else |
ab87f8c8 | 7230 | rm -rf conftest* |
81bf3d9e | 7231 | ac_cv_os_cray=no |
ab87f8c8 JL |
7232 | fi |
7233 | rm -f conftest* | |
81bf3d9e | 7234 | |
ab87f8c8 | 7235 | fi |
ab87f8c8 | 7236 | |
81bf3d9e RH |
7237 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
7238 | if test $ac_cv_os_cray = yes; then | |
7239 | for ac_func in _getb67 GETB67 getb67; do | |
7240 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dc6746e7 | 7241 | echo "configure:7242: checking for $ac_func" >&5 |
ab87f8c8 JL |
7242 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7244 | else | |
7245 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7246 | #line 7247 "configure" |
ab87f8c8 JL |
7247 | #include "confdefs.h" |
7248 | /* System header to define __stub macros and hopefully few prototypes, | |
7249 | which can conflict with char $ac_func(); below. */ | |
7250 | #include <assert.h> | |
7251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7252 | /* We use char because int might match the return type of a gcc2 | |
7253 | builtin and then its argument prototype would still apply. */ | |
7254 | char $ac_func(); | |
7255 | ||
7256 | int main() { | |
7257 | ||
7258 | /* The GNU C library defines this for functions which it implements | |
7259 | to always fail with ENOSYS. Some functions are actually named | |
7260 | something starting with __ and the normal name is an alias. */ | |
7261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7262 | choke me | |
7263 | #else | |
99b09ff3 | 7264 | $ac_func(); |
ab87f8c8 JL |
7265 | #endif |
7266 | ||
7267 | ; return 0; } | |
7268 | EOF | |
dc6746e7 | 7269 | if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7270 | rm -rf conftest* |
7271 | eval "ac_cv_func_$ac_func=yes" | |
7272 | else | |
7273 | echo "configure: failed program was:" >&5 | |
7274 | cat conftest.$ac_ext >&5 | |
7275 | rm -rf conftest* | |
7276 | eval "ac_cv_func_$ac_func=no" | |
7277 | fi | |
7278 | rm -f conftest* | |
7279 | fi | |
7280 | ||
7281 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7282 | echo "$ac_t""yes" 1>&6 | |
ab87f8c8 | 7283 | cat >> confdefs.h <<EOF |
81bf3d9e | 7284 | #define CRAY_STACKSEG_END $ac_func |
ab87f8c8 | 7285 | EOF |
81bf3d9e RH |
7286 | |
7287 | break | |
ab87f8c8 JL |
7288 | else |
7289 | echo "$ac_t""no" 1>&6 | |
7290 | fi | |
81bf3d9e | 7291 | |
ab87f8c8 | 7292 | done |
81bf3d9e | 7293 | fi |
ab87f8c8 | 7294 | |
81bf3d9e | 7295 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
dc6746e7 | 7296 | echo "configure:7297: checking stack direction for C alloca" >&5 |
81bf3d9e | 7297 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
ab87f8c8 JL |
7298 | echo $ac_n "(cached) $ac_c" 1>&6 |
7299 | else | |
7300 | if test "$cross_compiling" = yes; then | |
81bf3d9e | 7301 | ac_cv_c_stack_direction=0 |
ab87f8c8 JL |
7302 | else |
7303 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7304 | #line 7305 "configure" |
ab87f8c8 | 7305 | #include "confdefs.h" |
81bf3d9e | 7306 | find_stack_direction () |
ab87f8c8 | 7307 | { |
81bf3d9e RH |
7308 | static char *addr = 0; |
7309 | auto char dummy; | |
7310 | if (addr == 0) | |
7311 | { | |
7312 | addr = &dummy; | |
7313 | return find_stack_direction (); | |
7314 | } | |
7315 | else | |
7316 | return (&dummy > addr) ? 1 : -1; | |
7317 | } | |
7318 | main () | |
7319 | { | |
7320 | exit (find_stack_direction() < 0); | |
ab87f8c8 | 7321 | } |
ab87f8c8 | 7322 | EOF |
dc6746e7 | 7323 | if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 | 7324 | then |
81bf3d9e | 7325 | ac_cv_c_stack_direction=1 |
ab87f8c8 JL |
7326 | else |
7327 | echo "configure: failed program was:" >&5 | |
7328 | cat conftest.$ac_ext >&5 | |
7329 | rm -fr conftest* | |
81bf3d9e | 7330 | ac_cv_c_stack_direction=-1 |
ab87f8c8 JL |
7331 | fi |
7332 | rm -fr conftest* | |
7333 | fi | |
7334 | ||
7335 | fi | |
7336 | ||
81bf3d9e RH |
7337 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
7338 | cat >> confdefs.h <<EOF | |
7339 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
ab87f8c8 JL |
7340 | EOF |
7341 | ||
4acab94b AO |
7342 | fi |
7343 | ||
56f02b88 | 7344 | |
ab87f8c8 JL |
7345 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
7346 | unistd.h sys/param.h | |
7347 | do | |
7348 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7349 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
dc6746e7 | 7350 | echo "configure:7351: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
7351 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7353 | else | |
7354 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7355 | #line 7356 "configure" |
ab87f8c8 JL |
7356 | #include "confdefs.h" |
7357 | #include <$ac_hdr> | |
7358 | EOF | |
7359 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 7360 | { (eval echo configure:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7361 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7362 | if test -z "$ac_err"; then |
7363 | rm -rf conftest* | |
7364 | eval "ac_cv_header_$ac_safe=yes" | |
7365 | else | |
7366 | echo "$ac_err" >&5 | |
7367 | echo "configure: failed program was:" >&5 | |
7368 | cat conftest.$ac_ext >&5 | |
7369 | rm -rf conftest* | |
7370 | eval "ac_cv_header_$ac_safe=no" | |
7371 | fi | |
7372 | rm -f conftest* | |
7373 | fi | |
7374 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7375 | echo "$ac_t""yes" 1>&6 | |
7376 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7377 | cat >> confdefs.h <<EOF | |
7378 | #define $ac_tr_hdr 1 | |
7379 | EOF | |
7380 | ||
7381 | else | |
7382 | echo "$ac_t""no" 1>&6 | |
7383 | fi | |
7384 | done | |
7385 | ||
7386 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
7387 | strdup __argz_count __argz_stringify __argz_next | |
7388 | do | |
7389 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dc6746e7 | 7390 | echo "configure:7391: checking for $ac_func" >&5 |
ab87f8c8 JL |
7391 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7392 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7393 | else | |
7394 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7395 | #line 7396 "configure" |
ab87f8c8 JL |
7396 | #include "confdefs.h" |
7397 | /* System header to define __stub macros and hopefully few prototypes, | |
7398 | which can conflict with char $ac_func(); below. */ | |
7399 | #include <assert.h> | |
7400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7401 | /* We use char because int might match the return type of a gcc2 | |
7402 | builtin and then its argument prototype would still apply. */ | |
7403 | char $ac_func(); | |
7404 | ||
7405 | int main() { | |
7406 | ||
7407 | /* The GNU C library defines this for functions which it implements | |
7408 | to always fail with ENOSYS. Some functions are actually named | |
7409 | something starting with __ and the normal name is an alias. */ | |
7410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7411 | choke me | |
7412 | #else | |
99b09ff3 | 7413 | $ac_func(); |
ab87f8c8 JL |
7414 | #endif |
7415 | ||
7416 | ; return 0; } | |
7417 | EOF | |
dc6746e7 | 7418 | if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7419 | rm -rf conftest* |
7420 | eval "ac_cv_func_$ac_func=yes" | |
7421 | else | |
7422 | echo "configure: failed program was:" >&5 | |
7423 | cat conftest.$ac_ext >&5 | |
7424 | rm -rf conftest* | |
7425 | eval "ac_cv_func_$ac_func=no" | |
7426 | fi | |
7427 | rm -f conftest* | |
7428 | fi | |
7429 | ||
7430 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7431 | echo "$ac_t""yes" 1>&6 | |
7432 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7433 | cat >> confdefs.h <<EOF | |
7434 | #define $ac_tr_func 1 | |
7435 | EOF | |
7436 | ||
7437 | else | |
7438 | echo "$ac_t""no" 1>&6 | |
7439 | fi | |
7440 | done | |
7441 | ||
7442 | ||
7443 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
7444 | for ac_func in stpcpy | |
7445 | do | |
7446 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dc6746e7 | 7447 | echo "configure:7448: checking for $ac_func" >&5 |
ab87f8c8 JL |
7448 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7450 | else | |
7451 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7452 | #line 7453 "configure" |
ab87f8c8 JL |
7453 | #include "confdefs.h" |
7454 | /* System header to define __stub macros and hopefully few prototypes, | |
7455 | which can conflict with char $ac_func(); below. */ | |
7456 | #include <assert.h> | |
7457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7458 | /* We use char because int might match the return type of a gcc2 | |
7459 | builtin and then its argument prototype would still apply. */ | |
7460 | char $ac_func(); | |
7461 | ||
7462 | int main() { | |
7463 | ||
7464 | /* The GNU C library defines this for functions which it implements | |
7465 | to always fail with ENOSYS. Some functions are actually named | |
7466 | something starting with __ and the normal name is an alias. */ | |
7467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7468 | choke me | |
7469 | #else | |
99b09ff3 | 7470 | $ac_func(); |
ab87f8c8 JL |
7471 | #endif |
7472 | ||
7473 | ; return 0; } | |
7474 | EOF | |
dc6746e7 | 7475 | if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7476 | rm -rf conftest* |
7477 | eval "ac_cv_func_$ac_func=yes" | |
7478 | else | |
7479 | echo "configure: failed program was:" >&5 | |
7480 | cat conftest.$ac_ext >&5 | |
7481 | rm -rf conftest* | |
7482 | eval "ac_cv_func_$ac_func=no" | |
7483 | fi | |
7484 | rm -f conftest* | |
7485 | fi | |
7486 | ||
7487 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7488 | echo "$ac_t""yes" 1>&6 | |
7489 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7490 | cat >> confdefs.h <<EOF | |
7491 | #define $ac_tr_func 1 | |
7492 | EOF | |
7493 | ||
7494 | else | |
7495 | echo "$ac_t""no" 1>&6 | |
7496 | fi | |
7497 | done | |
7498 | ||
7499 | fi | |
7500 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7501 | cat >> confdefs.h <<\EOF | |
7502 | #define HAVE_STPCPY 1 | |
7503 | EOF | |
7504 | ||
7505 | fi | |
7506 | ||
7507 | if test $ac_cv_header_locale_h = yes; then | |
7508 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
dc6746e7 | 7509 | echo "configure:7510: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7510 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7512 | else | |
7513 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7514 | #line 7515 "configure" |
ab87f8c8 JL |
7515 | #include "confdefs.h" |
7516 | #include <locale.h> | |
7517 | int main() { | |
7518 | return LC_MESSAGES | |
7519 | ; return 0; } | |
7520 | EOF | |
dc6746e7 | 7521 | if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7522 | rm -rf conftest* |
7523 | am_cv_val_LC_MESSAGES=yes | |
7524 | else | |
7525 | echo "configure: failed program was:" >&5 | |
7526 | cat conftest.$ac_ext >&5 | |
7527 | rm -rf conftest* | |
7528 | am_cv_val_LC_MESSAGES=no | |
7529 | fi | |
7530 | rm -f conftest* | |
7531 | fi | |
7532 | ||
7533 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7534 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7535 | cat >> confdefs.h <<\EOF | |
7536 | #define HAVE_LC_MESSAGES 1 | |
7537 | EOF | |
7538 | ||
7539 | fi | |
7540 | fi | |
7541 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
dc6746e7 | 7542 | echo "configure:7543: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7543 | # Check whether --enable-nls or --disable-nls was given. |
7544 | if test "${enable_nls+set}" = set; then | |
7545 | enableval="$enable_nls" | |
7546 | USE_NLS=$enableval | |
7547 | else | |
7548 | USE_NLS=yes | |
7549 | fi | |
7550 | ||
7551 | echo "$ac_t""$USE_NLS" 1>&6 | |
7552 | ||
7553 | ||
7554 | USE_INCLUDED_LIBINTL=no | |
7555 | ||
7556 | if test "$USE_NLS" = "yes"; then | |
7557 | cat >> confdefs.h <<\EOF | |
7558 | #define ENABLE_NLS 1 | |
7559 | EOF | |
7560 | ||
7561 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
dc6746e7 | 7562 | echo "configure:7563: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7563 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7564 | if test "${with_included_gettext+set}" = set; then | |
7565 | withval="$with_included_gettext" | |
7566 | nls_cv_force_use_gnu_gettext=$withval | |
7567 | else | |
7568 | nls_cv_force_use_gnu_gettext=no | |
7569 | fi | |
7570 | ||
7571 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7572 | ||
7573 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7574 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7575 | nls_cv_header_intl= | |
7576 | nls_cv_header_libgt= | |
7577 | CATOBJEXT=NONE | |
7578 | ||
7579 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7580 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
dc6746e7 | 7581 | echo "configure:7582: checking for libintl.h" >&5 |
ab87f8c8 JL |
7582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7584 | else | |
7585 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7586 | #line 7587 "configure" |
ab87f8c8 JL |
7587 | #include "confdefs.h" |
7588 | #include <libintl.h> | |
7589 | EOF | |
7590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 7591 | { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7593 | if test -z "$ac_err"; then |
7594 | rm -rf conftest* | |
7595 | eval "ac_cv_header_$ac_safe=yes" | |
7596 | else | |
7597 | echo "$ac_err" >&5 | |
7598 | echo "configure: failed program was:" >&5 | |
7599 | cat conftest.$ac_ext >&5 | |
7600 | rm -rf conftest* | |
7601 | eval "ac_cv_header_$ac_safe=no" | |
7602 | fi | |
7603 | rm -f conftest* | |
7604 | fi | |
7605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7606 | echo "$ac_t""yes" 1>&6 | |
7607 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
dc6746e7 | 7608 | echo "configure:7609: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7609 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7611 | else | |
7612 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7613 | #line 7614 "configure" |
ab87f8c8 JL |
7614 | #include "confdefs.h" |
7615 | #include <libintl.h> | |
7616 | int main() { | |
7617 | return (int) gettext ("") | |
7618 | ; return 0; } | |
7619 | EOF | |
dc6746e7 | 7620 | if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7621 | rm -rf conftest* |
7622 | gt_cv_func_gettext_libc=yes | |
7623 | else | |
7624 | echo "configure: failed program was:" >&5 | |
7625 | cat conftest.$ac_ext >&5 | |
7626 | rm -rf conftest* | |
7627 | gt_cv_func_gettext_libc=no | |
7628 | fi | |
7629 | rm -f conftest* | |
7630 | fi | |
7631 | ||
7632 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7633 | ||
7634 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7635 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
dc6746e7 | 7636 | echo "configure:7637: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7637 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7640 | else | |
7641 | ac_save_LIBS="$LIBS" | |
7642 | LIBS="-lintl $LIBS" | |
7643 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7644 | #line 7645 "configure" |
ab87f8c8 JL |
7645 | #include "confdefs.h" |
7646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7647 | /* We use char because int might match the return type of a gcc2 | |
7648 | builtin and then its argument prototype would still apply. */ | |
7649 | char bindtextdomain(); | |
7650 | ||
7651 | int main() { | |
7652 | bindtextdomain() | |
7653 | ; return 0; } | |
7654 | EOF | |
dc6746e7 | 7655 | if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7656 | rm -rf conftest* |
7657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7658 | else | |
7659 | echo "configure: failed program was:" >&5 | |
7660 | cat conftest.$ac_ext >&5 | |
7661 | rm -rf conftest* | |
7662 | eval "ac_cv_lib_$ac_lib_var=no" | |
7663 | fi | |
7664 | rm -f conftest* | |
7665 | LIBS="$ac_save_LIBS" | |
7666 | ||
7667 | fi | |
7668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7669 | echo "$ac_t""yes" 1>&6 | |
7670 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
dc6746e7 | 7671 | echo "configure:7672: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7672 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7674 | else | |
7675 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
dc6746e7 | 7676 | echo "configure:7677: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7677 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7680 | else | |
7681 | ac_save_LIBS="$LIBS" | |
7682 | LIBS="-lintl $LIBS" | |
7683 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7684 | #line 7685 "configure" |
ab87f8c8 JL |
7685 | #include "confdefs.h" |
7686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7687 | /* We use char because int might match the return type of a gcc2 | |
7688 | builtin and then its argument prototype would still apply. */ | |
7689 | char gettext(); | |
7690 | ||
7691 | int main() { | |
7692 | gettext() | |
7693 | ; return 0; } | |
7694 | EOF | |
dc6746e7 | 7695 | if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7696 | rm -rf conftest* |
7697 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7698 | else | |
7699 | echo "configure: failed program was:" >&5 | |
7700 | cat conftest.$ac_ext >&5 | |
7701 | rm -rf conftest* | |
7702 | eval "ac_cv_lib_$ac_lib_var=no" | |
7703 | fi | |
7704 | rm -f conftest* | |
7705 | LIBS="$ac_save_LIBS" | |
7706 | ||
7707 | fi | |
7708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7709 | echo "$ac_t""yes" 1>&6 | |
7710 | gt_cv_func_gettext_libintl=yes | |
7711 | else | |
7712 | echo "$ac_t""no" 1>&6 | |
7713 | gt_cv_func_gettext_libintl=no | |
7714 | fi | |
7715 | ||
7716 | fi | |
7717 | ||
7718 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7719 | else | |
7720 | echo "$ac_t""no" 1>&6 | |
7721 | fi | |
7722 | ||
7723 | fi | |
7724 | ||
7725 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7726 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7727 | cat >> confdefs.h <<\EOF | |
7728 | #define HAVE_GETTEXT 1 | |
7729 | EOF | |
7730 | ||
7731 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7732 | set dummy msgfmt; ac_word=$2 | |
7733 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 7734 | echo "configure:7735: checking for $ac_word" >&5 |
ab87f8c8 JL |
7735 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7737 | else | |
7738 | case "$MSGFMT" in | |
7739 | /*) | |
7740 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7741 | ;; | |
7742 | *) | |
7743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7744 | for ac_dir in $PATH; do | |
7745 | test -z "$ac_dir" && ac_dir=. | |
7746 | if test -f $ac_dir/$ac_word; then | |
7747 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7748 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7749 | break | |
7750 | fi | |
7751 | fi | |
7752 | done | |
7753 | IFS="$ac_save_ifs" | |
7754 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7755 | ;; | |
7756 | esac | |
7757 | fi | |
7758 | MSGFMT="$ac_cv_path_MSGFMT" | |
7759 | if test -n "$MSGFMT"; then | |
7760 | echo "$ac_t""$MSGFMT" 1>&6 | |
7761 | else | |
7762 | echo "$ac_t""no" 1>&6 | |
7763 | fi | |
7764 | if test "$MSGFMT" != "no"; then | |
7765 | for ac_func in dcgettext | |
7766 | do | |
7767 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
dc6746e7 | 7768 | echo "configure:7769: checking for $ac_func" >&5 |
ab87f8c8 JL |
7769 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7771 | else | |
7772 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7773 | #line 7774 "configure" |
ab87f8c8 JL |
7774 | #include "confdefs.h" |
7775 | /* System header to define __stub macros and hopefully few prototypes, | |
7776 | which can conflict with char $ac_func(); below. */ | |
7777 | #include <assert.h> | |
7778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7779 | /* We use char because int might match the return type of a gcc2 | |
7780 | builtin and then its argument prototype would still apply. */ | |
7781 | char $ac_func(); | |
7782 | ||
7783 | int main() { | |
7784 | ||
7785 | /* The GNU C library defines this for functions which it implements | |
7786 | to always fail with ENOSYS. Some functions are actually named | |
7787 | something starting with __ and the normal name is an alias. */ | |
7788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7789 | choke me | |
7790 | #else | |
99b09ff3 | 7791 | $ac_func(); |
ab87f8c8 JL |
7792 | #endif |
7793 | ||
7794 | ; return 0; } | |
7795 | EOF | |
dc6746e7 | 7796 | if { (eval echo configure:7797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7797 | rm -rf conftest* |
7798 | eval "ac_cv_func_$ac_func=yes" | |
7799 | else | |
7800 | echo "configure: failed program was:" >&5 | |
7801 | cat conftest.$ac_ext >&5 | |
7802 | rm -rf conftest* | |
7803 | eval "ac_cv_func_$ac_func=no" | |
7804 | fi | |
7805 | rm -f conftest* | |
7806 | fi | |
7807 | ||
7808 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7809 | echo "$ac_t""yes" 1>&6 | |
7810 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7811 | cat >> confdefs.h <<EOF | |
7812 | #define $ac_tr_func 1 | |
7813 | EOF | |
7814 | ||
7815 | else | |
7816 | echo "$ac_t""no" 1>&6 | |
7817 | fi | |
7818 | done | |
7819 | ||
7820 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7821 | set dummy gmsgfmt; ac_word=$2 | |
7822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 7823 | echo "configure:7824: checking for $ac_word" >&5 |
ab87f8c8 JL |
7824 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7826 | else | |
7827 | case "$GMSGFMT" in | |
7828 | /*) | |
7829 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7830 | ;; | |
7831 | ?:/*) | |
7832 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7833 | ;; | |
7834 | *) | |
cd9e5e7c | 7835 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7836 | ac_dummy="$PATH" |
7837 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7838 | test -z "$ac_dir" && ac_dir=. |
7839 | if test -f $ac_dir/$ac_word; then | |
7840 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7841 | break | |
7842 | fi | |
7843 | done | |
7844 | IFS="$ac_save_ifs" | |
7845 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7846 | ;; | |
7847 | esac | |
7848 | fi | |
7849 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7850 | if test -n "$GMSGFMT"; then | |
7851 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7852 | else | |
7853 | echo "$ac_t""no" 1>&6 | |
7854 | fi | |
7855 | ||
7856 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7857 | set dummy xgettext; ac_word=$2 | |
7858 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 7859 | echo "configure:7860: checking for $ac_word" >&5 |
ab87f8c8 JL |
7860 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7862 | else | |
7863 | case "$XGETTEXT" in | |
7864 | /*) | |
7865 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7866 | ;; | |
7867 | *) | |
7868 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7869 | for ac_dir in $PATH; do | |
7870 | test -z "$ac_dir" && ac_dir=. | |
7871 | if test -f $ac_dir/$ac_word; then | |
7872 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7873 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7874 | break | |
7875 | fi | |
7876 | fi | |
7877 | done | |
7878 | IFS="$ac_save_ifs" | |
7879 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7880 | ;; | |
7881 | esac | |
7882 | fi | |
7883 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7884 | if test -n "$XGETTEXT"; then | |
7885 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7886 | else | |
7887 | echo "$ac_t""no" 1>&6 | |
7888 | fi | |
7889 | ||
7890 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7891 | #line 7892 "configure" |
ab87f8c8 JL |
7892 | #include "confdefs.h" |
7893 | ||
7894 | int main() { | |
7895 | extern int _nl_msg_cat_cntr; | |
7896 | return _nl_msg_cat_cntr | |
7897 | ; return 0; } | |
7898 | EOF | |
dc6746e7 | 7899 | if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7900 | rm -rf conftest* |
7901 | CATOBJEXT=.gmo | |
7902 | DATADIRNAME=share | |
7903 | else | |
7904 | echo "configure: failed program was:" >&5 | |
7905 | cat conftest.$ac_ext >&5 | |
7906 | rm -rf conftest* | |
7907 | CATOBJEXT=.mo | |
7908 | DATADIRNAME=lib | |
7909 | fi | |
7910 | rm -f conftest* | |
7911 | INSTOBJEXT=.mo | |
7912 | fi | |
7913 | fi | |
7914 | ||
7915 | else | |
7916 | echo "$ac_t""no" 1>&6 | |
7917 | fi | |
7918 | ||
7919 | ||
7920 | if test "$CATOBJEXT" = "NONE"; then | |
7921 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
dc6746e7 | 7922 | echo "configure:7923: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7923 | # Check whether --with-catgets or --without-catgets was given. |
7924 | if test "${with_catgets+set}" = set; then | |
7925 | withval="$with_catgets" | |
7926 | nls_cv_use_catgets=$withval | |
7927 | else | |
7928 | nls_cv_use_catgets=no | |
7929 | fi | |
7930 | ||
7931 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7932 | ||
7933 | if test "$nls_cv_use_catgets" = "yes"; then | |
7934 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
dc6746e7 | 7935 | echo "configure:7936: checking for main in -li" >&5 |
ab87f8c8 JL |
7936 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7937 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7939 | else | |
7940 | ac_save_LIBS="$LIBS" | |
7941 | LIBS="-li $LIBS" | |
7942 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7943 | #line 7944 "configure" |
ab87f8c8 JL |
7944 | #include "confdefs.h" |
7945 | ||
7946 | int main() { | |
7947 | main() | |
7948 | ; return 0; } | |
7949 | EOF | |
dc6746e7 | 7950 | if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7951 | rm -rf conftest* |
7952 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7953 | else | |
7954 | echo "configure: failed program was:" >&5 | |
7955 | cat conftest.$ac_ext >&5 | |
7956 | rm -rf conftest* | |
7957 | eval "ac_cv_lib_$ac_lib_var=no" | |
7958 | fi | |
7959 | rm -f conftest* | |
7960 | LIBS="$ac_save_LIBS" | |
7961 | ||
7962 | fi | |
7963 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7964 | echo "$ac_t""yes" 1>&6 | |
7965 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7966 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7967 | cat >> confdefs.h <<EOF | |
7968 | #define $ac_tr_lib 1 | |
7969 | EOF | |
7970 | ||
7971 | LIBS="-li $LIBS" | |
7972 | ||
7973 | else | |
7974 | echo "$ac_t""no" 1>&6 | |
7975 | fi | |
7976 | ||
7977 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
dc6746e7 | 7978 | echo "configure:7979: checking for catgets" >&5 |
ab87f8c8 JL |
7979 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7981 | else | |
7982 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 7983 | #line 7984 "configure" |
ab87f8c8 JL |
7984 | #include "confdefs.h" |
7985 | /* System header to define __stub macros and hopefully few prototypes, | |
7986 | which can conflict with char catgets(); below. */ | |
7987 | #include <assert.h> | |
7988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7989 | /* We use char because int might match the return type of a gcc2 | |
7990 | builtin and then its argument prototype would still apply. */ | |
7991 | char catgets(); | |
7992 | ||
7993 | int main() { | |
7994 | ||
7995 | /* The GNU C library defines this for functions which it implements | |
7996 | to always fail with ENOSYS. Some functions are actually named | |
7997 | something starting with __ and the normal name is an alias. */ | |
7998 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7999 | choke me | |
8000 | #else | |
99b09ff3 | 8001 | catgets(); |
ab87f8c8 JL |
8002 | #endif |
8003 | ||
8004 | ; return 0; } | |
8005 | EOF | |
dc6746e7 | 8006 | if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
8007 | rm -rf conftest* |
8008 | eval "ac_cv_func_catgets=yes" | |
8009 | else | |
8010 | echo "configure: failed program was:" >&5 | |
8011 | cat conftest.$ac_ext >&5 | |
8012 | rm -rf conftest* | |
8013 | eval "ac_cv_func_catgets=no" | |
8014 | fi | |
8015 | rm -f conftest* | |
8016 | fi | |
8017 | ||
8018 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
8019 | echo "$ac_t""yes" 1>&6 | |
8020 | cat >> confdefs.h <<\EOF | |
8021 | #define HAVE_CATGETS 1 | |
8022 | EOF | |
8023 | ||
8024 | INTLOBJS="\$(CATOBJS)" | |
8025 | # Extract the first word of "gencat", so it can be a program name with args. | |
8026 | set dummy gencat; ac_word=$2 | |
8027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8028 | echo "configure:8029: checking for $ac_word" >&5 |
ab87f8c8 JL |
8029 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
8030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8031 | else | |
8032 | case "$GENCAT" in | |
8033 | /*) | |
8034 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
8035 | ;; | |
8036 | ?:/*) | |
8037 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
8038 | ;; | |
8039 | *) | |
cd9e5e7c | 8040 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8041 | ac_dummy="$PATH" |
8042 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8043 | test -z "$ac_dir" && ac_dir=. |
8044 | if test -f $ac_dir/$ac_word; then | |
8045 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
8046 | break | |
8047 | fi | |
8048 | done | |
8049 | IFS="$ac_save_ifs" | |
8050 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
8051 | ;; | |
8052 | esac | |
8053 | fi | |
8054 | GENCAT="$ac_cv_path_GENCAT" | |
8055 | if test -n "$GENCAT"; then | |
8056 | echo "$ac_t""$GENCAT" 1>&6 | |
8057 | else | |
8058 | echo "$ac_t""no" 1>&6 | |
8059 | fi | |
8060 | if test "$GENCAT" != "no"; then | |
8061 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8062 | set dummy gmsgfmt; ac_word=$2 | |
8063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8064 | echo "configure:8065: checking for $ac_word" >&5 |
ab87f8c8 JL |
8065 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8067 | else | |
8068 | case "$GMSGFMT" in | |
8069 | /*) | |
8070 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8071 | ;; | |
8072 | ?:/*) | |
8073 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8074 | ;; | |
8075 | *) | |
cd9e5e7c | 8076 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8077 | ac_dummy="$PATH" |
8078 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8079 | test -z "$ac_dir" && ac_dir=. |
8080 | if test -f $ac_dir/$ac_word; then | |
8081 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8082 | break | |
8083 | fi | |
8084 | done | |
8085 | IFS="$ac_save_ifs" | |
8086 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
8087 | ;; | |
8088 | esac | |
8089 | fi | |
8090 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8091 | if test -n "$GMSGFMT"; then | |
8092 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8093 | else | |
8094 | echo "$ac_t""no" 1>&6 | |
8095 | fi | |
8096 | ||
8097 | if test "$GMSGFMT" = "no"; then | |
8098 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8099 | set dummy msgfmt; ac_word=$2 | |
8100 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8101 | echo "configure:8102: checking for $ac_word" >&5 |
ab87f8c8 JL |
8102 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8103 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8104 | else | |
8105 | case "$GMSGFMT" in | |
8106 | /*) | |
8107 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8108 | ;; | |
8109 | *) | |
8110 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8111 | for ac_dir in $PATH; do | |
8112 | test -z "$ac_dir" && ac_dir=. | |
8113 | if test -f $ac_dir/$ac_word; then | |
8114 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8115 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8116 | break | |
8117 | fi | |
8118 | fi | |
8119 | done | |
8120 | IFS="$ac_save_ifs" | |
8121 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
8122 | ;; | |
8123 | esac | |
8124 | fi | |
8125 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8126 | if test -n "$GMSGFMT"; then | |
8127 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8128 | else | |
8129 | echo "$ac_t""no" 1>&6 | |
8130 | fi | |
8131 | ||
8132 | fi | |
8133 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8134 | set dummy xgettext; ac_word=$2 | |
8135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8136 | echo "configure:8137: checking for $ac_word" >&5 |
ab87f8c8 JL |
8137 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8138 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8139 | else | |
8140 | case "$XGETTEXT" in | |
8141 | /*) | |
8142 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8143 | ;; | |
8144 | *) | |
8145 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8146 | for ac_dir in $PATH; do | |
8147 | test -z "$ac_dir" && ac_dir=. | |
8148 | if test -f $ac_dir/$ac_word; then | |
8149 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8150 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8151 | break | |
8152 | fi | |
8153 | fi | |
8154 | done | |
8155 | IFS="$ac_save_ifs" | |
8156 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8157 | ;; | |
8158 | esac | |
8159 | fi | |
8160 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8161 | if test -n "$XGETTEXT"; then | |
8162 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8163 | else | |
8164 | echo "$ac_t""no" 1>&6 | |
8165 | fi | |
8166 | ||
8167 | USE_INCLUDED_LIBINTL=yes | |
8168 | CATOBJEXT=.cat | |
8169 | INSTOBJEXT=.cat | |
8170 | DATADIRNAME=lib | |
8171 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8172 | INTLLIBS=$INTLDEPS | |
8173 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8174 | nls_cv_header_intl=intl/libintl.h | |
8175 | nls_cv_header_libgt=intl/libgettext.h | |
8176 | fi | |
8177 | else | |
8178 | echo "$ac_t""no" 1>&6 | |
8179 | fi | |
8180 | ||
8181 | fi | |
8182 | fi | |
8183 | ||
8184 | if test "$CATOBJEXT" = "NONE"; then | |
8185 | nls_cv_use_gnu_gettext=yes | |
8186 | fi | |
8187 | fi | |
8188 | ||
8189 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8190 | INTLOBJS="\$(GETTOBJS)" | |
8191 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
8192 | set dummy msgfmt; ac_word=$2 | |
8193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8194 | echo "configure:8195: checking for $ac_word" >&5 |
ab87f8c8 JL |
8195 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
8196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8197 | else | |
8198 | case "$MSGFMT" in | |
8199 | /*) | |
8200 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8201 | ;; | |
8202 | *) | |
8203 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8204 | for ac_dir in $PATH; do | |
8205 | test -z "$ac_dir" && ac_dir=. | |
8206 | if test -f $ac_dir/$ac_word; then | |
8207 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8208 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
8209 | break | |
8210 | fi | |
8211 | fi | |
8212 | done | |
8213 | IFS="$ac_save_ifs" | |
8214 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
8215 | ;; | |
8216 | esac | |
8217 | fi | |
8218 | MSGFMT="$ac_cv_path_MSGFMT" | |
8219 | if test -n "$MSGFMT"; then | |
8220 | echo "$ac_t""$MSGFMT" 1>&6 | |
8221 | else | |
8222 | echo "$ac_t""no" 1>&6 | |
8223 | fi | |
8224 | ||
8225 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8226 | set dummy gmsgfmt; ac_word=$2 | |
8227 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8228 | echo "configure:8229: checking for $ac_word" >&5 |
ab87f8c8 JL |
8229 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8231 | else | |
8232 | case "$GMSGFMT" in | |
8233 | /*) | |
8234 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8235 | ;; | |
8236 | ?:/*) | |
8237 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8238 | ;; | |
8239 | *) | |
cd9e5e7c | 8240 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8241 | ac_dummy="$PATH" |
8242 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8243 | test -z "$ac_dir" && ac_dir=. |
8244 | if test -f $ac_dir/$ac_word; then | |
8245 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8246 | break | |
8247 | fi | |
8248 | done | |
8249 | IFS="$ac_save_ifs" | |
8250 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
8251 | ;; | |
8252 | esac | |
8253 | fi | |
8254 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8255 | if test -n "$GMSGFMT"; then | |
8256 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8257 | else | |
8258 | echo "$ac_t""no" 1>&6 | |
8259 | fi | |
8260 | ||
8261 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8262 | set dummy xgettext; ac_word=$2 | |
8263 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
dc6746e7 | 8264 | echo "configure:8265: checking for $ac_word" >&5 |
ab87f8c8 JL |
8265 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8267 | else | |
8268 | case "$XGETTEXT" in | |
8269 | /*) | |
8270 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8271 | ;; | |
8272 | *) | |
8273 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8274 | for ac_dir in $PATH; do | |
8275 | test -z "$ac_dir" && ac_dir=. | |
8276 | if test -f $ac_dir/$ac_word; then | |
8277 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8278 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8279 | break | |
8280 | fi | |
8281 | fi | |
8282 | done | |
8283 | IFS="$ac_save_ifs" | |
8284 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8285 | ;; | |
8286 | esac | |
8287 | fi | |
8288 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8289 | if test -n "$XGETTEXT"; then | |
8290 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8291 | else | |
8292 | echo "$ac_t""no" 1>&6 | |
8293 | fi | |
8294 | ||
8295 | ||
8296 | USE_INCLUDED_LIBINTL=yes | |
8297 | CATOBJEXT=.gmo | |
8298 | INSTOBJEXT=.mo | |
8299 | DATADIRNAME=share | |
8300 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8301 | INTLLIBS=$INTLDEPS | |
8302 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8303 | nls_cv_header_intl=intl/libintl.h | |
8304 | nls_cv_header_libgt=intl/libgettext.h | |
8305 | fi | |
8306 | ||
8307 | if test "$XGETTEXT" != ":"; then | |
8308 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8309 | : ; | |
8310 | else | |
8311 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
8312 | XGETTEXT=":" | |
8313 | fi | |
8314 | fi | |
8315 | ||
8316 | # We need to process the po/ directory. | |
8317 | POSUB=po | |
8318 | else | |
8319 | DATADIRNAME=share | |
8320 | nls_cv_header_intl=intl/libintl.h | |
8321 | nls_cv_header_libgt=intl/libgettext.h | |
8322 | fi | |
8323 | ||
8324 | ||
8325 | ||
8326 | ||
8327 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8328 | # because some of the sources are only built for this goal. | |
8329 | if test "$PACKAGE" = gettext; then | |
8330 | USE_NLS=yes | |
8331 | USE_INCLUDED_LIBINTL=yes | |
8332 | fi | |
8333 | ||
8334 | for lang in $ALL_LINGUAS; do | |
8335 | GMOFILES="$GMOFILES $lang.gmo" | |
8336 | POFILES="$POFILES $lang.po" | |
8337 | done | |
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | if test "x$CATOBJEXT" != "x"; then | |
8353 | if test "x$ALL_LINGUAS" = "x"; then | |
8354 | LINGUAS= | |
8355 | else | |
8356 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
dc6746e7 | 8357 | echo "configure:8358: checking for catalogs to be installed" >&5 |
ab87f8c8 | 8358 | NEW_LINGUAS= |
dc6746e7 PT |
8359 | for lang in $ALL_LINGUAS; do |
8360 | case " $LINGUAS " in | |
8361 | *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
ab87f8c8 JL |
8362 | esac |
8363 | done | |
8364 | LINGUAS=$NEW_LINGUAS | |
8365 | echo "$ac_t""$LINGUAS" 1>&6 | |
8366 | fi | |
8367 | ||
8368 | if test -n "$LINGUAS"; then | |
8369 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8370 | fi | |
8371 | fi | |
8372 | ||
8373 | if test $ac_cv_header_locale_h = yes; then | |
8374 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8375 | else | |
8376 | INCLUDE_LOCALE_H="\ | |
8377 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8378 | fi | |
8379 | ||
8380 | ||
8381 | test -d intl || mkdir intl | |
8382 | if test "$CATOBJEXT" = ".cat"; then | |
8383 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
8384 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
dc6746e7 | 8385 | echo "configure:8386: checking for linux/version.h" >&5 |
ab87f8c8 JL |
8386 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8388 | else | |
8389 | cat > conftest.$ac_ext <<EOF | |
dc6746e7 | 8390 | #line 8391 "configure" |
ab87f8c8 JL |
8391 | #include "confdefs.h" |
8392 | #include <linux/version.h> | |
8393 | EOF | |
8394 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
dc6746e7 | 8395 | { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 8396 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
8397 | if test -z "$ac_err"; then |
8398 | rm -rf conftest* | |
8399 | eval "ac_cv_header_$ac_safe=yes" | |
8400 | else | |
8401 | echo "$ac_err" >&5 | |
8402 | echo "configure: failed program was:" >&5 | |
8403 | cat conftest.$ac_ext >&5 | |
8404 | rm -rf conftest* | |
8405 | eval "ac_cv_header_$ac_safe=no" | |
8406 | fi | |
8407 | rm -f conftest* | |
8408 | fi | |
8409 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8410 | echo "$ac_t""yes" 1>&6 | |
8411 | msgformat=linux | |
8412 | else | |
8413 | echo "$ac_t""no" 1>&6 | |
8414 | msgformat=xopen | |
8415 | fi | |
8416 | ||
8417 | ||
8418 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
8419 | fi | |
8420 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8421 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
8422 | ||
8423 | if test "$PACKAGE" = "gettext"; then | |
8424 | GT_NO="#NO#" | |
8425 | GT_YES= | |
8426 | else | |
8427 | GT_NO= | |
8428 | GT_YES="#YES#" | |
8429 | fi | |
8430 | ||
8431 | ||
8432 | ||
8433 | MKINSTALLDIRS= | |
8434 | if test -n "$ac_aux_dir"; then | |
8435 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
8436 | fi | |
8437 | if test -z "$MKINSTALLDIRS"; then | |
8438 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8439 | fi | |
8440 | ||
8441 | ||
8442 | l= | |
8443 | ||
8444 | ||
8445 | test -d po || mkdir po | |
8446 | if test "x$srcdir" != "x."; then | |
8447 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8448 | posrcprefix="$srcdir/" | |
8449 | else | |
8450 | posrcprefix="../$srcdir/" | |
8451 | fi | |
8452 | else | |
8453 | posrcprefix="../" | |
8454 | fi | |
8455 | rm -f po/POTFILES | |
8456 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8457 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8458 | ||
8459 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
8460 | ||
f4ab28e3 MK |
8461 | # Windows32 Registry support for specifying GCC installation paths. |
8462 | # Check whether --enable-win32-registry or --disable-win32-registry was given. | |
8463 | if test "${enable_win32_registry+set}" = set; then | |
8464 | enableval="$enable_win32_registry" | |
8465 | : | |
8466 | fi | |
8467 | ||
8468 | ||
8469 | echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 | |
dc6746e7 | 8470 | echo "configure:8471: checking whether windows registry support is requested" >&5 |
f4ab28e3 MK |
8471 | if test x$enable_win32_registry != xno; then |
8472 | cat >> confdefs.h <<\EOF | |
8473 | #define ENABLE_WIN32_REGISTRY 1 | |
8474 | EOF | |
8475 | ||
8476 | echo "$ac_t""yes" 1>&6 | |
8477 | else | |
8478 | echo "$ac_t""no" 1>&6 | |
8479 | fi | |
8480 | ||
8481 | # Check if user specified a different registry key. | |
8482 | case x${enable_win32_registry} in | |
8483 | x | xyes) | |
8484 | # default. | |
8485 | gcc_cv_win32_registry_key="$VERSION" | |
8486 | ;; | |
8487 | xno) | |
8488 | # no registry lookup. | |
8489 | gcc_cv_win32_registry_key='' | |
8490 | ;; | |
8491 | *) | |
8492 | # user-specified key. | |
8493 | gcc_cv_win32_registry_key="$enable_win32_registry" | |
8494 | ;; | |
8495 | esac | |
8496 | ||
8497 | if test x$enable_win32_registry != xno; then | |
8498 | echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 | |
dc6746e7 | 8499 | echo "configure:8500: checking registry key on windows hosts" >&5 |
f4ab28e3 MK |
8500 | cat >> confdefs.h <<EOF |
8501 | #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" | |
8502 | EOF | |
8503 | ||
8504 | echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6 | |
8505 | fi | |
8506 | ||
ab87f8c8 JL |
8507 | # Get an absolute path to the GCC top-level source directory |
8508 | holddir=`pwd` | |
8509 | cd $srcdir | |
8510 | topdir=`pwd` | |
8511 | cd $holddir | |
8512 | ||
8513 | # Conditionalize the makefile for this host machine. | |
8514 | # Make-host contains the concatenation of all host makefile fragments | |
8515 | # [there can be more than one]. This file is built by configure.frag. | |
8516 | host_overrides=Make-host | |
8517 | dep_host_xmake_file= | |
8518 | for f in .. ${host_xmake_file} | |
8519 | do | |
8520 | if test -f ${srcdir}/config/$f | |
8521 | then | |
8522 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8523 | fi | |
8524 | done | |
8525 | ||
8526 | # Conditionalize the makefile for this target machine. | |
8527 | # Make-target contains the concatenation of all host makefile fragments | |
8528 | # [there can be more than one]. This file is built by configure.frag. | |
8529 | target_overrides=Make-target | |
8530 | dep_tmake_file= | |
8531 | for f in .. ${tmake_file} | |
8532 | do | |
8533 | if test -f ${srcdir}/config/$f | |
8534 | then | |
8535 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8536 | fi | |
8537 | done | |
8538 | ||
8539 | # If the host doesn't support symlinks, modify CC in | |
8540 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8541 | # Otherwise, we can use "CC=$(CC)". | |
8542 | rm -f symtest.tem | |
8543 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8544 | then | |
8545 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8546 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8547 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8548 | else | |
8549 | rm -f symtest.tem | |
8550 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8551 | then | |
8552 | symbolic_link="cp -p" | |
8553 | else | |
8554 | symbolic_link="cp" | |
8555 | fi | |
8556 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8557 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8558 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8559 | fi | |
8560 | rm -f symtest.tem | |
8561 | ||
8562 | out_object_file=`basename $out_file .c`.o | |
8563 | ||
8564 | tm_file_list= | |
8565 | for f in $tm_file; do | |
64ccbc99 KG |
8566 | case $f in |
8567 | gansidecl.h ) | |
8568 | tm_file_list="${tm_file_list} $f" ;; | |
8569 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8570 | esac | |
ab87f8c8 JL |
8571 | done |
8572 | ||
8573 | host_xm_file_list= | |
8574 | for f in $host_xm_file; do | |
64ccbc99 KG |
8575 | case $f in |
8576 | auto-host.h | gansidecl.h | hwint.h ) | |
8577 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8578 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8579 | esac | |
ab87f8c8 JL |
8580 | done |
8581 | ||
8582 | build_xm_file_list= | |
8583 | for f in $build_xm_file; do | |
64ccbc99 KG |
8584 | case $f in |
8585 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8586 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8587 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8588 | esac | |
ab87f8c8 JL |
8589 | done |
8590 | ||
8591 | # Define macro CROSS_COMPILE in compilation | |
8592 | # if this is a cross-compiler. | |
8593 | # Also use all.cross instead of all.internal | |
8594 | # and add cross-make to Makefile. | |
8595 | cross_overrides="/dev/null" | |
8596 | if test x$host != x$target | |
8597 | then | |
8598 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8599 | cross_overrides="${topdir}/cross-make" | |
8600 | fi | |
8601 | ||
b39d221a EC |
8602 | # If this is a cross-compiler that does not |
8603 | # have its own set of headers then define | |
8604 | # inhibit_libc | |
8605 | ||
8606 | # If this is using newlib, then define inhibit_libc in | |
8607 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8608 | # libgcc.a, but that's OK because newlib should have its own version of | |
8609 | # assert.h. | |
8610 | inhibit_libc= | |
8611 | if test x$host != x$target && test x$with_headers = x; then | |
8612 | inhibit_libc=-Dinhibit_libc | |
8613 | else | |
8614 | if test x$with_newlib = xyes; then | |
8615 | inhibit_libc=-Dinhibit_libc | |
8616 | fi | |
8617 | fi | |
8618 | ||
8619 | ||
ab87f8c8 JL |
8620 | # When building gcc with a cross-compiler, we need to fix a few things. |
8621 | # This must come after cross-make as we want all.build to override | |
8622 | # all.cross. | |
8623 | build_overrides="/dev/null" | |
8624 | if test x$build != x$host | |
8625 | then | |
8626 | build_overrides="${topdir}/build-make" | |
8627 | fi | |
8628 | ||
8629 | # Expand extra_headers to include complete path. | |
8630 | # This substitutes for lots of t-* files. | |
8631 | extra_headers_list= | |
8632 | if test "x$extra_headers" = x | |
8633 | then true | |
8634 | else | |
8635 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8636 | for file in $extra_headers; | |
8637 | do | |
8638 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8639 | done | |
8640 | fi | |
8641 | ||
8642 | if test x$use_collect2 = xno; then | |
8643 | use_collect2= | |
8644 | fi | |
8645 | ||
8646 | # Add a definition of USE_COLLECT2 if system wants one. | |
8647 | # Also tell toplev.c what to do. | |
8648 | # This substitutes for lots of t-* files. | |
8649 | if test x$use_collect2 = x | |
8650 | then | |
8651 | will_use_collect2= | |
8652 | maybe_use_collect2= | |
8653 | else | |
8654 | will_use_collect2="collect2" | |
8655 | maybe_use_collect2="-DUSE_COLLECT2" | |
8656 | fi | |
8657 | ||
8658 | # NEED TO CONVERT | |
8659 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8660 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8661 | # for line oriented comments, so we must always use a GNU cpp. If | |
8662 | # building gcc with a cross compiler, use the cross compiler just | |
8663 | # built. Otherwise, we can use the cpp just built. | |
8664 | md_file_sub= | |
8665 | if test "x$md_cppflags" = x | |
8666 | then | |
8667 | md_file_sub=$srcdir/config/$md_file | |
8668 | else | |
8669 | md_file=md | |
8670 | fi | |
8671 | ||
8672 | # If we have gas in the build tree, make a link to it. | |
8673 | if test -f ../gas/Makefile; then | |
8674 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8675 | fi | |
8676 | ||
8677 | # If we have nm in the build tree, make a link to it. | |
8678 | if test -f ../binutils/Makefile; then | |
8679 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8680 | fi | |
8681 | ||
8682 | # If we have ld in the build tree, make a link to it. | |
8683 | if test -f ../ld/Makefile; then | |
8684 | # if test x$use_collect2 = x; then | |
8685 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8686 | # else | |
8687 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8688 | # fi | |
8689 | fi | |
8690 | ||
8691 | # Figure out what assembler alignment features are present. | |
8692 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
dc6746e7 | 8693 | echo "configure:8694: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8694 | gcc_cv_as= |
8695 | gcc_cv_as_alignment_features= | |
8696 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8697 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8698 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8699 | elif test -x "$AS"; then | |
8700 | gcc_cv_as="$AS" | |
8701 | elif test -x as$host_exeext; then | |
8702 | # Build using assembler in the current directory. | |
8703 | gcc_cv_as=./as$host_exeext | |
8704 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8705 | # Single tree build which includes gas. | |
8706 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8707 | do | |
8708 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8709 | if test x$gcc_cv_gas_version != x; then | |
8710 | break | |
8711 | fi | |
8712 | done | |
8713 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8714 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8715 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8716 | # Gas version 2.6 and later support for .balign and .p2align. | |
8717 | # bytes to skip when using .p2align. | |
8718 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then | |
8719 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8720 | cat >> confdefs.h <<\EOF | |
8721 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8722 | EOF | |
8723 | ||
8724 | fi | |
8725 | # Gas version 2.8 and later support specifying the maximum | |
8726 | # bytes to skip when using .p2align. | |
8727 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then | |
8728 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8729 | cat >> confdefs.h <<\EOF | |
8730 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8731 | EOF |
8732 | ||
0b9d02c6 | 8733 | fi |
9e423e6d | 8734 | fi |
75bffa71 | 8735 | elif test x$host = x$target; then |
9e423e6d | 8736 | # Native build. |
779243f7 JL |
8737 | # Search the same directories that the installed compiler will |
8738 | # search. Else we may find the wrong assembler and lose. If we | |
8739 | # do not find a suitable assembler binary, then try the user's | |
8740 | # path. | |
8741 | # | |
8742 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8743 | # user's path. Unfortunately, there is no good way to get at the | |
8744 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8745 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8746 | # to be fixed as part of the make/configure rewrite too. | |
8747 | ||
8748 | if test "x$exec_prefix" = xNONE; then | |
8749 | if test "x$prefix" = xNONE; then | |
8750 | test_prefix=/usr/local | |
8751 | else | |
8752 | test_prefix=$prefix | |
8753 | fi | |
8754 | else | |
8755 | test_prefix=$exec_prefix | |
8756 | fi | |
8757 | ||
8758 | # If the loop below does not find an assembler, then use whatever | |
8759 | # one we can find in the users's path. | |
8760 | # user's path. | |
8761 | as=as$host_exeext | |
8762 | ||
8763 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8764 | $test_prefix/lib/gcc-lib/$target \ | |
8765 | /usr/lib/gcc/$target/$gcc_version \ | |
8766 | /usr/lib/gcc/$target \ | |
8767 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8768 | $test_prefix/$target/bin \ | |
8769 | /usr/libexec \ | |
8770 | /usr/ccs/gcc \ | |
8771 | /usr/ccs/bin \ | |
8772 | /udk/usr/ccs/bin \ | |
8773 | /bsd43/usr/lib/cmplrs/cc \ | |
8774 | /usr/cross64/usr/bin \ | |
8775 | /usr/lib/cmplrs/cc \ | |
8776 | /sysv/usr/lib/cmplrs/cc \ | |
8777 | /svr4/usr/lib/cmplrs/cc \ | |
8778 | /usr/bin" | |
8779 | ||
8780 | for dir in $test_dirs; do | |
8781 | if test -f $dir/as$host_exeext; then | |
8782 | gcc_cv_as=$dir/as$host_exeext | |
8783 | break; | |
8784 | fi | |
8785 | done | |
9e423e6d | 8786 | fi |
75bffa71 | 8787 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8788 | # Check if we have .balign and .p2align |
8789 | echo ".balign 4" > conftest.s | |
8790 | echo ".p2align 2" >> conftest.s | |
8791 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8792 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8793 | cat >> confdefs.h <<\EOF | |
8794 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8795 | EOF | |
8796 | ||
8797 | fi | |
8798 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8799 | # Check if specifying the maximum bytes to skip when |
8800 | # using .p2align is supported. | |
8801 | echo ".p2align 4,,7" > conftest.s | |
8802 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8803 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8804 | cat >> confdefs.h <<\EOF | |
8805 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8806 | EOF | |
8807 | ||
8808 | fi | |
8809 | rm -f conftest.s conftest.o | |
8810 | fi | |
8811 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8812 | ||
d1accaa3 | 8813 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
dc6746e7 | 8814 | echo "configure:8815: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8815 | gcc_cv_as_subsections= |
8816 | if test x$gcc_cv_as != x; then | |
8817 | # Check if we have .subsection | |
8818 | echo ".subsection 1" > conftest.s | |
8819 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8820 | gcc_cv_as_subsections=".subsection" | |
8821 | if test -x nm$host_exeext; then | |
8822 | gcc_cv_nm=./nm$host_exeext | |
8823 | elif test x$host = x$target; then | |
8824 | # Native build. | |
8825 | gcc_cv_nm=nm$host_exeext | |
8826 | fi | |
8827 | if test x$gcc_cv_nm != x; then | |
8828 | cat > conftest.s <<EOF | |
8829 | conftest_label1: .word 0 | |
8830 | .subsection -1 | |
8831 | conftest_label2: .word 0 | |
8832 | .previous | |
8833 | EOF | |
8834 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8835 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8836 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8837 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8838 | : | |
8839 | else | |
d1accaa3 JJ |
8840 | gcc_cv_as_subsections="working .subsection -1" |
8841 | cat >> confdefs.h <<\EOF | |
8842 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8843 | EOF | |
8844 | ||
8845 | fi | |
8846 | fi | |
8847 | fi | |
8848 | fi | |
8849 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8850 | fi | |
8851 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8852 | ||
12822146 | 8853 | echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 |
dc6746e7 | 8854 | echo "configure:8855: checking assembler weak support" >&5 |
12822146 JL |
8855 | gcc_cv_as_weak= |
8856 | if test x$gcc_cv_as != x; then | |
8857 | # Check if we have .weak | |
8858 | echo " .weak foobar" > conftest.s | |
8859 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8860 | cat >> confdefs.h <<\EOF | |
8861 | #define HAVE_GAS_WEAK 1 | |
8862 | EOF | |
8863 | ||
8864 | gcc_cv_as_weak="yes" | |
8865 | fi | |
8866 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8867 | fi | |
8868 | echo "$ac_t""$gcc_cv_as_weak" 1>&6 | |
8869 | ||
6a9c5260 | 8870 | echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6 |
dc6746e7 | 8871 | echo "configure:8872: checking assembler hidden support" >&5 |
6a9c5260 UD |
8872 | gcc_cv_as_hidden= |
8873 | if test x$gcc_cv_as != x; then | |
8874 | # Check if we have .hidden | |
8875 | echo " .hidden foobar" > conftest.s | |
8876 | echo "foobar:" >> conftest.s | |
8877 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8878 | cat >> confdefs.h <<\EOF | |
8879 | #define HAVE_GAS_HIDDEN 1 | |
8880 | EOF | |
8881 | ||
8882 | gcc_cv_as_hidden="yes" | |
8883 | fi | |
8884 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8885 | fi | |
8886 | echo "$ac_t""$gcc_cv_as_hidden" 1>&6 | |
8887 | ||
1cb36a98 RH |
8888 | case "$target" in |
8889 | sparc*-*-*) | |
8890 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
dc6746e7 | 8891 | echo "configure:8892: checking assembler .register pseudo-op support" >&5 |
5b68c389 AO |
8892 | if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then |
8893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8894 | else | |
8895 | ||
8896 | gcc_cv_as_register_pseudo_op=unknown | |
8897 | if test x$gcc_cv_as != x; then | |
8898 | # Check if we have .register | |
8899 | echo ".register %g2, #scratch" > conftest.s | |
8900 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
1cb36a98 | 8901 | gcc_cv_as_register_pseudo_op=yes |
5b68c389 AO |
8902 | else |
8903 | gcc_cv_as_register_pseudo_op=no | |
8904 | fi | |
8905 | rm -f conftest.s conftest.o | |
8906 | fi | |
8907 | ||
8908 | fi | |
8909 | ||
8910 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8911 | if test "x$gcc_cv_as_register_pseudo_op" = xyes; then | |
8912 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8913 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 |
8914 | EOF | |
8915 | ||
1cb36a98 | 8916 | fi |
1cb36a98 | 8917 | |
5b68c389 AO |
8918 | case "$tm_file" in |
8919 | *64*) | |
8920 | echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6 | |
dc6746e7 | 8921 | echo "configure:8922: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 |
5b68c389 AO |
8922 | if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then |
8923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8924 | else | |
8925 | ||
8926 | if test -n "$gcc_cv_as"; then | |
8927 | echo ".xword foo" > conftest.s | |
8928 | gcc_cv_as_flags64=no | |
8a90b95d | 8929 | for flag in "-xarch=v9" "-64 -Av9"; do |
5b68c389 AO |
8930 | if $gcc_cv_as $flag -o conftest.o conftest.s \ |
8931 | > /dev/null 2>&1; then | |
8932 | gcc_cv_as_flags64=$flag | |
8933 | break | |
8934 | fi | |
8935 | done | |
8936 | rm -f conftest.s conftest.o | |
8937 | else | |
8938 | if test "$gas" = yes; then | |
8939 | gcc_cv_as_flags64="-64 -Av9" | |
8940 | else | |
8941 | gcc_cv_as_flags64="-xarch=v9" | |
8942 | fi | |
1cb36a98 | 8943 | fi |
5b68c389 AO |
8944 | |
8945 | fi | |
8946 | ||
8947 | echo "$ac_t""$gcc_cv_as_flags64" 1>&6 | |
8948 | if test "x$gcc_cv_as_flags64" = xno; then | |
8949 | ||
8950 | tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8951 | dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8952 | ||
8953 | else | |
8954 | cat >> confdefs.h <<EOF | |
8955 | #define AS_SPARC64_FLAG "$gcc_cv_as_flags64" | |
8956 | EOF | |
8957 | ||
1cb36a98 | 8958 | fi |
5b68c389 AO |
8959 | ;; |
8960 | *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no} | |
8961 | ;; | |
8962 | esac | |
8963 | ||
8964 | if test "x$gcc_cv_as_flags64" != xno; then | |
8965 | echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 | |
dc6746e7 | 8966 | echo "configure:8967: checking for assembler offsetable %lo() support" >&5 |
5b68c389 AO |
8967 | if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then |
8968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8969 | else | |
8970 | ||
8971 | gcc_cv_as_offsetable_lo10=unknown | |
8972 | if test "x$gcc_cv_as" != x; then | |
8973 | # Check if assembler has offsetable %lo() | |
8974 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8975 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8976 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \ | |
8977 | > /dev/null 2>&1 && | |
8978 | $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \ | |
8979 | > /dev/null 2>&1; then | |
8980 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8981 | gcc_cv_as_offsetable_lo10=no | |
8982 | else | |
8983 | gcc_cv_as_offsetable_lo10=yes | |
8984 | fi | |
8985 | else | |
8986 | gcc_cv_as_offsetable_lo10=no | |
8987 | fi | |
8988 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8989 | fi | |
8990 | ||
8991 | fi | |
8992 | ||
8993 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8994 | if test "x$gcc_cv_as_offsetable_lo10" = xyes; then | |
8995 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8996 | #define HAVE_AS_OFFSETABLE_LO10 1 |
8997 | EOF | |
8998 | ||
1cb36a98 | 8999 | fi |
1cb36a98 | 9000 | fi |
1cb36a98 RH |
9001 | ;; |
9002 | ||
9003 | i[34567]86-*-*) | |
9004 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
dc6746e7 | 9005 | echo "configure:9006: checking assembler instructions" >&5 |
1cb36a98 RH |
9006 | gcc_cv_as_instructions= |
9007 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
9008 | set "filds fists" "filds mem; fists mem" |
9009 | while test $# -gt 0 | |
9010 | do | |
9011 | echo "$2" > conftest.s | |
9012 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
9013 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
9014 | cat >> confdefs.h <<EOF | |
9015 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
9016 | EOF | |
9017 | ||
9018 | fi | |
9019 | shift 2 | |
9020 | done | |
9021 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
9022 | fi |
9023 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
9024 | ;; | |
9025 | esac | |
53b5ce19 | 9026 | |
861bb6c1 | 9027 | # Figure out what language subdirectories are present. |
71205e0b MH |
9028 | # Look if the user specified --enable-languages="..."; if not, use |
9029 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
9030 | # go away some day. | |
9031 | if test x"${enable_languages+set}" != xset; then | |
9032 | if test x"${LANGUAGES+set}" = xset; then | |
9033 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
9034 | else | |
9035 | enable_languages=all | |
9036 | fi | |
d6c6b553 PE |
9037 | else |
9038 | if test x"${enable_languages}" = x; then | |
9039 | { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; } | |
9040 | fi | |
71205e0b | 9041 | fi |
861bb6c1 JL |
9042 | subdirs= |
9043 | for lang in ${srcdir}/*/config-lang.in .. | |
9044 | do | |
9045 | case $lang in | |
9046 | ..) ;; | |
9047 | # The odd quoting in the next line works around | |
9048 | # an apparent bug in bash 1.12 on linux. | |
9049 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
9050 | *) |
9051 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
9052 | if test "x$lang_alias" = x | |
9053 | then | |
9054 | echo "$lang doesn't set \$language." 1>&2 | |
9055 | exit 1 | |
9056 | fi | |
9057 | if test x"${enable_languages}" = xall; then | |
9058 | add_this_lang=yes | |
9059 | else | |
9060 | case "${enable_languages}" in | |
9061 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
9062 | add_this_lang=yes | |
9063 | ;; | |
9064 | * ) | |
9065 | add_this_lang=no | |
9066 | ;; | |
9067 | esac | |
9068 | fi | |
9069 | if test x"${add_this_lang}" = xyes; then | |
9070 | case $lang in | |
9071 | ${srcdir}/ada/config-lang.in) | |
9072 | if test x$gnat = xyes ; then | |
9073 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
9074 | fi | |
9075 | ;; | |
9076 | *) | |
9077 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
9078 | ;; | |
9079 | esac | |
9080 | fi | |
9081 | ;; | |
861bb6c1 JL |
9082 | esac |
9083 | done | |
9084 | ||
f24af81b TT |
9085 | # Make gthr-default.h if we have a thread file. |
9086 | gthread_flags= | |
75bffa71 | 9087 | if test $thread_file != single; then |
f24af81b | 9088 | rm -f gthr-default.h |
db0d1ed9 | 9089 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
9090 | gthread_flags=-DHAVE_GTHR_DEFAULT |
9091 | fi | |
9092 | ||
9093 | ||
81bf3d9e RH |
9094 | # Find out what GC implementation we want, or may, use. |
9095 | # Check whether --with-gc or --without-gc was given. | |
9096 | if test "${with_gc+set}" = set; then | |
9097 | withval="$with_gc" | |
9098 | case "$withval" in | |
9099 | simple | page) | |
9100 | GGC=ggc-$withval | |
9101 | ;; | |
9102 | *) | |
9103 | { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; } | |
9104 | ;; | |
9105 | esac | |
9106 | else | |
4acab94b AO |
9107 | if test $ac_cv_func_mmap_anywhere = yes \ |
9108 | || test $ac_cv_func_valloc = yes; then | |
005537df | 9109 | GGC=ggc-page |
81bf3d9e RH |
9110 | else |
9111 | GGC=ggc-simple | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | ||
9116 | echo "Using $GGC for garbage collection." | |
9117 | ||
7441a352 NS |
9118 | # Build a new-abi (c++) system |
9119 | # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given. | |
9120 | if test "${enable_new_gxx_abi+set}" = set; then | |
9121 | enableval="$enable_new_gxx_abi" | |
9122 | cat >> confdefs.h <<\EOF | |
9123 | #define ENABLE_NEW_GXX_ABI 1 | |
9124 | EOF | |
9125 | ||
9126 | GXX_ABI_FLAG='-fnew-abi' | |
9127 | echo "Building a new-abi g++ compiler." | |
9128 | ||
9129 | fi | |
9130 | ||
9131 | ||
9132 | ||
7822500a BK |
9133 | # Build a new-libstdc++ system (ie libstdc++-v3) |
9134 | echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6 | |
dc6746e7 | 9135 | echo "configure:9136: checking for libstdc++ to install" >&5 |
7822500a BK |
9136 | # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given. |
9137 | if test "${enable_libstdcxx_v3+set}" = set; then | |
9138 | enableval="$enable_libstdcxx_v3" | |
9139 | enable_libstdcxx_v3=yes | |
9140 | else | |
9141 | enable_libstdcxx_v3=no | |
9142 | fi | |
9143 | ||
9144 | ||
9145 | if test x$enable_libstdcxx_v3 = xyes; then | |
9146 | echo "$ac_t""v3" 1>&6 | |
119d24d1 | 9147 | ac_esn=1 |
7822500a BK |
9148 | else |
9149 | echo "$ac_t""v2" 1>&6 | |
119d24d1 | 9150 | ac_esn=0 |
7822500a | 9151 | fi |
119d24d1 KG |
9152 | cat >> confdefs.h <<EOF |
9153 | #define ENABLE_STD_NAMESPACE $ac_esn | |
9154 | EOF | |
7822500a BK |
9155 | |
9156 | ||
dc6746e7 PT |
9157 | |
9158 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
9159 | echo "configure:9160: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
9160 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
9161 | if test "${enable_maintainer_mode+set}" = set; then | |
9162 | enableval="$enable_maintainer_mode" | |
9163 | maintainer_mode=$enableval | |
9164 | else | |
9165 | maintainer_mode=no | |
9166 | fi | |
9167 | ||
9168 | ||
9169 | echo "$ac_t""$maintainer_mode" 1>&6 | |
9170 | ||
9171 | if test "$maintainer_mode" = "yes"; then | |
9172 | MAINT='' | |
9173 | else | |
9174 | MAINT='#' | |
9175 | fi | |
9176 | ||
861bb6c1 JL |
9177 | # Make empty files to contain the specs and options for each language. |
9178 | # Then add #include lines to for a compiler that has specs and/or options. | |
9179 | ||
9180 | lang_specs_files= | |
9181 | lang_options_files= | |
3103b7db ML |
9182 | lang_tree_files= |
9183 | rm -f specs.h options.h gencheck.h | |
9184 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
9185 | for subdir in . $subdirs |
9186 | do | |
75bffa71 | 9187 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
9188 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
9189 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
9190 | fi | |
75bffa71 | 9191 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
9192 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
9193 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
9194 | fi | |
3103b7db ML |
9195 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
9196 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
9197 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
9198 | fi | |
861bb6c1 JL |
9199 | done |
9200 | ||
9201 | # These (without "all_") are set in each config-lang.in. | |
9202 | # `language' must be a single word so is spelled singularly. | |
9203 | all_languages= | |
9204 | all_boot_languages= | |
9205 | all_compilers= | |
9206 | all_stagestuff= | |
9207 | all_diff_excludes= | |
3ec83fc2 | 9208 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc' |
861bb6c1 JL |
9209 | # List of language makefile fragments. |
9210 | all_lang_makefiles= | |
9211 | all_headers= | |
9212 | all_lib2funcs= | |
9213 | ||
9214 | # Add the language fragments. | |
9215 | # Languages are added via two mechanisms. Some information must be | |
9216 | # recorded in makefile variables, these are defined in config-lang.in. | |
9217 | # We accumulate them and plug them into the main Makefile. | |
9218 | # The other mechanism is a set of hooks for each of the main targets | |
9219 | # like `clean', `install', etc. | |
9220 | ||
9221 | language_fragments="Make-lang" | |
9222 | language_hooks="Make-hooks" | |
9223 | oldstyle_subdirs= | |
9224 | ||
9225 | for s in .. $subdirs | |
9226 | do | |
75bffa71 | 9227 | if test $s != ".." |
861bb6c1 JL |
9228 | then |
9229 | language= | |
9230 | boot_language= | |
9231 | compilers= | |
9232 | stagestuff= | |
9233 | diff_excludes= | |
9234 | headers= | |
9235 | outputs= | |
9236 | lib2funcs= | |
9237 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 9238 | if test "x$language" = x |
861bb6c1 JL |
9239 | then |
9240 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
9241 | exit 1 | |
9242 | fi | |
9243 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
9244 | all_languages="$all_languages $language" | |
75bffa71 | 9245 | if test "x$boot_language" = xyes |
861bb6c1 JL |
9246 | then |
9247 | all_boot_languages="$all_boot_languages $language" | |
9248 | fi | |
9249 | all_compilers="$all_compilers $compilers" | |
9250 | all_stagestuff="$all_stagestuff $stagestuff" | |
9251 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
9252 | all_headers="$all_headers $headers" | |
9253 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 9254 | if test x$outputs = x |
861bb6c1 JL |
9255 | then |
9256 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
9257 | fi | |
9258 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
9259 | fi | |
9260 | done | |
9261 | ||
9262 | # Since we can't use `::' targets, we link each language in | |
9263 | # with a set of hooks, reached indirectly via lang.${target}. | |
9264 | ||
9265 | rm -f Make-hooks | |
9266 | touch Make-hooks | |
9267 | target_list="all.build all.cross start.encap rest.encap \ | |
9268 | info dvi \ | |
9269 | install-normal install-common install-info install-man \ | |
9270 | uninstall distdir \ | |
9271 | mostlyclean clean distclean extraclean maintainer-clean \ | |
9272 | stage1 stage2 stage3 stage4" | |
9273 | for t in $target_list | |
9274 | do | |
9275 | x= | |
ab87f8c8 | 9276 | for lang in .. $all_languages |
861bb6c1 | 9277 | do |
ab87f8c8 JL |
9278 | if test $lang != ".."; then |
9279 | x="$x $lang.$t" | |
861bb6c1 JL |
9280 | fi |
9281 | done | |
9282 | echo "lang.$t: $x" >> Make-hooks | |
9283 | done | |
9284 | ||
9285 | # If we're not building in srcdir, create .gdbinit. | |
9286 | ||
75bffa71 | 9287 | if test ! -f Makefile.in; then |
861bb6c1 JL |
9288 | echo "dir ." > .gdbinit |
9289 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 9290 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
9291 | then |
9292 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
9293 | fi | |
75bffa71 | 9294 | if test "x$subdirs" != x; then |
861bb6c1 JL |
9295 | for s in $subdirs |
9296 | do | |
9297 | echo "dir ${srcdir}/$s" >> .gdbinit | |
9298 | done | |
9299 | fi | |
9300 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
9301 | fi | |
9302 | ||
88111b26 JL |
9303 | # Define variables host_canonical and build_canonical |
9304 | # because some Cygnus local changes in the Makefile depend on them. | |
9305 | build_canonical=${build} | |
9306 | host_canonical=${host} | |
9307 | target_subdir= | |
75bffa71 | 9308 | if test "${host}" != "${target}" ; then |
88111b26 JL |
9309 | target_subdir=${target}/ |
9310 | fi | |
9311 | ||
9312 | ||
9313 | ||
9314 | ||
8f8d3278 NC |
9315 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
9316 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
9317 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
9318 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
9319 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
9320 | # make and thus we'd get different behavior depending on where we built the | |
9321 | # sources. | |
5949a9fc | 9322 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
9323 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
9324 | else | |
8f8d3278 NC |
9325 | # An explanation of the sed strings: |
9326 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
9327 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
9328 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
9329 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
9330 | # | |
9331 | # (*) Note this pattern overwrites the first character of the string | |
9332 | # with a forward slash if one is not already present. This is not a | |
9333 | # problem because the exact names of the sub-directories concerned is | |
9334 | # unimportant, just the number of them matters. | |
9335 | # | |
9336 | # The practical upshot of these patterns is like this: | |
9337 | # | |
9338 | # prefix exec_prefix result | |
9339 | # ------ ----------- ------ | |
9340 | # /foo /foo/bar ../ | |
9341 | # /foo/ /foo/bar ../ | |
9342 | # /foo /foo/bar/ ../ | |
9343 | # /foo/ /foo/bar/ ../ | |
9344 | # /foo /foo/bar/ugg ../../ | |
9345 | # | |
4c112cda NC |
9346 | dollar='$$' |
9347 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
9348 | fi |
9349 | ||
9350 | ||
2ce3c6c6 | 9351 | |
7e717196 JL |
9352 | # Nothing to do for FLOAT_H, float_format already handled. |
9353 | objdir=`pwd` | |
9354 | ||
9355 | ||
861bb6c1 JL |
9356 | # Process the language and host/target makefile fragments. |
9357 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
9358 | ||
9359 | # Substitute configuration variables | |
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9b16d2c4 | 9406 | |
e9a25f70 | 9407 | |
6e26218f | 9408 | |
c8724862 | 9409 | |
e061d1ce | 9410 | |
f1943b77 | 9411 | |
0b9d02c6 | 9412 | |
3103b7db | 9413 | |
d8bb17c8 | 9414 | |
9fc9b82a | 9415 | |
861bb6c1 JL |
9416 | |
9417 | ||
9418 | # Echo that links are built | |
75bffa71 | 9419 | if test x$host = x$target |
861bb6c1 JL |
9420 | then |
9421 | str1="native " | |
9422 | else | |
9423 | str1="cross-" | |
9424 | str2=" from $host" | |
9425 | fi | |
9426 | ||
75bffa71 | 9427 | if test x$host != x$build |
861bb6c1 JL |
9428 | then |
9429 | str3=" on a $build system" | |
9430 | fi | |
9431 | ||
75bffa71 | 9432 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9433 | then |
9434 | str4= | |
9435 | fi | |
9436 | ||
9437 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
9438 | ||
75bffa71 | 9439 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9440 | then |
9441 | echo " ${str2}${str3}." 1>&2 | |
9442 | fi | |
9443 | ||
f6cb0e63 | 9444 | # Truncate the target if necessary |
75bffa71 | 9445 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
9446 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
9447 | fi | |
9448 | ||
861bb6c1 JL |
9449 | # Configure the subdirectories |
9450 | # AC_CONFIG_SUBDIRS($subdirs) | |
9451 | ||
9452 | # Create the Makefile | |
9453 | # and configure language subdirectories | |
9454 | trap '' 1 2 15 | |
9455 | cat > confcache <<\EOF | |
9456 | # This file is a shell script that caches the results of configure | |
9457 | # tests run on this system so they can be shared between configure | |
9458 | # scripts and configure runs. It is not useful on other systems. | |
9459 | # If it contains results you don't want to keep, you may remove or edit it. | |
9460 | # | |
9461 | # By default, configure uses ./config.cache as the cache file, | |
9462 | # creating it if it does not exist already. You can give configure | |
9463 | # the --cache-file=FILE option to use a different cache file; that is | |
9464 | # what configure does when it calls configure scripts in | |
9465 | # subdirectories, so they share the cache. | |
9466 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9467 | # config.status only pays attention to the cache file if you give it the | |
9468 | # --recheck option to rerun configure. | |
9469 | # | |
9470 | EOF | |
9471 | # The following way of writing the cache mishandles newlines in values, | |
9472 | # but we know of no workaround that is simple, portable, and efficient. | |
9473 | # So, don't put newlines in cache variables' values. | |
9474 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9475 | # and sets the high bit in the cache file unless we assign to the vars. | |
9476 | (set) 2>&1 | | |
b27d2bd5 | 9477 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
9478 | *ac_space=\ *) |
9479 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9480 | # turns \\\\ into \\, and sed turns \\ into \). | |
9481 | sed -n \ | |
9482 | -e "s/'/'\\\\''/g" \ | |
9483 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9484 | ;; | |
9485 | *) | |
9486 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9487 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9488 | ;; | |
9489 | esac >> confcache | |
9490 | if cmp -s $cache_file confcache; then | |
9491 | : | |
9492 | else | |
9493 | if test -w $cache_file; then | |
9494 | echo "updating cache $cache_file" | |
9495 | cat confcache > $cache_file | |
9496 | else | |
9497 | echo "not updating unwritable cache $cache_file" | |
9498 | fi | |
9499 | fi | |
9500 | rm -f confcache | |
9501 | ||
9502 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9503 | ||
9504 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9505 | # Let make expand exec_prefix. | |
9506 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9507 | ||
9508 | # Any assignment to VPATH causes Sun make to only execute | |
9509 | # the first set of double-colon rules, so remove it if not needed. | |
9510 | # If there is a colon in the path, we need to keep it. | |
9511 | if test "x$srcdir" = x.; then | |
9512 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
9513 | fi | |
9514 | ||
9515 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
9516 | ||
9517 | DEFS=-DHAVE_CONFIG_H | |
9518 | ||
9519 | # Without the "./", some shells look in PATH for config.status. | |
9520 | : ${CONFIG_STATUS=./config.status} | |
9521 | ||
9522 | echo creating $CONFIG_STATUS | |
9523 | rm -f $CONFIG_STATUS | |
9524 | cat > $CONFIG_STATUS <<EOF | |
9525 | #! /bin/sh | |
9526 | # Generated automatically by configure. | |
9527 | # Run this file to recreate the current configuration. | |
9528 | # This directory was configured as follows, | |
9529 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9530 | # | |
9531 | # $0 $ac_configure_args | |
9532 | # | |
9533 | # Compiler output produced by configure, useful for debugging | |
9534 | # configure, is in ./config.log if it exists. | |
9535 | ||
9536 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
9537 | for ac_option | |
9538 | do | |
9539 | case "\$ac_option" in | |
9540 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9541 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
9542 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
9543 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 9544 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
9545 | exit 0 ;; |
9546 | -help | --help | --hel | --he | --h) | |
9547 | echo "\$ac_cs_usage"; exit 0 ;; | |
9548 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
9549 | esac | |
9550 | done | |
9551 | ||
9552 | ac_given_srcdir=$srcdir | |
861bb6c1 | 9553 | |
b7cb92ad | 9554 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
9555 | EOF |
9556 | cat >> $CONFIG_STATUS <<EOF | |
9557 | ||
9558 | # Protect against being on the right side of a sed subst in config.status. | |
9559 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
9560 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
9561 | $ac_vpsub | |
9562 | $extrasub | |
6f144c9c | 9563 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
9564 | s%@CFLAGS@%$CFLAGS%g |
9565 | s%@CPPFLAGS@%$CPPFLAGS%g | |
9566 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 9567 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
9568 | s%@DEFS@%$DEFS%g |
9569 | s%@LDFLAGS@%$LDFLAGS%g | |
9570 | s%@LIBS@%$LIBS%g | |
9571 | s%@exec_prefix@%$exec_prefix%g | |
9572 | s%@prefix@%$prefix%g | |
9573 | s%@program_transform_name@%$program_transform_name%g | |
9574 | s%@bindir@%$bindir%g | |
9575 | s%@sbindir@%$sbindir%g | |
9576 | s%@libexecdir@%$libexecdir%g | |
9577 | s%@datadir@%$datadir%g | |
9578 | s%@sysconfdir@%$sysconfdir%g | |
9579 | s%@sharedstatedir@%$sharedstatedir%g | |
9580 | s%@localstatedir@%$localstatedir%g | |
9581 | s%@libdir@%$libdir%g | |
9582 | s%@includedir@%$includedir%g | |
9583 | s%@oldincludedir@%$oldincludedir%g | |
9584 | s%@infodir@%$infodir%g | |
9585 | s%@mandir@%$mandir%g | |
9586 | s%@host@%$host%g | |
9587 | s%@host_alias@%$host_alias%g | |
9588 | s%@host_cpu@%$host_cpu%g | |
9589 | s%@host_vendor@%$host_vendor%g | |
9590 | s%@host_os@%$host_os%g | |
9591 | s%@target@%$target%g | |
9592 | s%@target_alias@%$target_alias%g | |
9593 | s%@target_cpu@%$target_cpu%g | |
9594 | s%@target_vendor@%$target_vendor%g | |
9595 | s%@target_os@%$target_os%g | |
9596 | s%@build@%$build%g | |
9597 | s%@build_alias@%$build_alias%g | |
9598 | s%@build_cpu@%$build_cpu%g | |
9599 | s%@build_vendor@%$build_vendor%g | |
9600 | s%@build_os@%$build_os%g | |
e9a25f70 | 9601 | s%@CC@%$CC%g |
3ec83fc2 | 9602 | s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g |
61842080 | 9603 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
ff5def20 | 9604 | s%@stage2_warn_cflags@%$stage2_warn_cflags%g |
e9a25f70 | 9605 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
9606 | s%@AWK@%$AWK%g |
9607 | s%@LEX@%$LEX%g | |
9608 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
9609 | s%@LN@%$LN%g |
9610 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
9611 | s%@RANLIB@%$RANLIB%g |
9612 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
9613 | s%@INSTALL@%$INSTALL%g |
9614 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9615 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 9616 | s%@CPP@%$CPP%g |
bcf12124 | 9617 | s%@gnat@%$gnat%g |
09fa0705 ZW |
9618 | s%@MAKEINFO@%$MAKEINFO%g |
9619 | s%@BUILD_INFO@%$BUILD_INFO%g | |
9620 | s%@INSTALL_INFO@%$INSTALL_INFO%g | |
0a4b6309 RL |
9621 | s%@vfprintf@%$vfprintf%g |
9622 | s%@doprint@%$doprint%g | |
861bb6c1 | 9623 | s%@manext@%$manext%g |
992d1248 | 9624 | s%@objext@%$objext%g |
ab87f8c8 JL |
9625 | s%@PACKAGE@%$PACKAGE%g |
9626 | s%@VERSION@%$VERSION%g | |
9627 | s%@ALLOCA@%$ALLOCA%g | |
9628 | s%@USE_NLS@%$USE_NLS%g | |
9629 | s%@MSGFMT@%$MSGFMT%g | |
9630 | s%@GMSGFMT@%$GMSGFMT%g | |
9631 | s%@XGETTEXT@%$XGETTEXT%g | |
9632 | s%@GENCAT@%$GENCAT%g | |
9633 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
9634 | s%@CATALOGS@%$CATALOGS%g | |
9635 | s%@CATOBJEXT@%$CATOBJEXT%g | |
9636 | s%@DATADIRNAME@%$DATADIRNAME%g | |
9637 | s%@GMOFILES@%$GMOFILES%g | |
9638 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
9639 | s%@INTLDEPS@%$INTLDEPS%g | |
9640 | s%@INTLLIBS@%$INTLLIBS%g | |
9641 | s%@INTLOBJS@%$INTLOBJS%g | |
9642 | s%@POFILES@%$POFILES%g | |
9643 | s%@POSUB@%$POSUB%g | |
9644 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
9645 | s%@GT_NO@%$GT_NO%g | |
9646 | s%@GT_YES@%$GT_YES%g | |
9647 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
9648 | s%@l@%$l%g | |
b39d221a | 9649 | s%@inhibit_libc@%$inhibit_libc%g |
f24af81b | 9650 | s%@gthread_flags@%$gthread_flags%g |
81bf3d9e | 9651 | s%@GGC@%$GGC%g |
7441a352 | 9652 | s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g |
dc6746e7 | 9653 | s%@MAINT@%$MAINT%g |
88111b26 JL |
9654 | s%@build_canonical@%$build_canonical%g |
9655 | s%@host_canonical@%$host_canonical%g | |
9656 | s%@target_subdir@%$target_subdir%g | |
d062c304 | 9657 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 9658 | s%@dollar@%$dollar%g |
7e717196 | 9659 | s%@objdir@%$objdir%g |
861bb6c1 | 9660 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
9661 | s%@all_boot_languages@%$all_boot_languages%g |
9662 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 9663 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 9664 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
9665 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
9666 | s%@all_languages@%$all_languages%g | |
9667 | s%@all_lib2funcs@%$all_lib2funcs%g | |
9668 | s%@all_stagestuff@%$all_stagestuff%g | |
9669 | s%@build_exeext@%$build_exeext%g | |
9670 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
9671 | s%@build_xm_file_list@%$build_xm_file_list%g | |
9672 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 9673 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 9674 | s%@cpp_install_dir@%$cpp_install_dir%g |
4f3ae93c BK |
9675 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
9676 | s%@dep_tmake_file@%$dep_tmake_file%g | |
9677 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 9678 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 9679 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
9680 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
9681 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 9682 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
9683 | s%@extra_parts@%$extra_parts%g |
9684 | s%@extra_passes@%$extra_passes%g | |
9685 | s%@extra_programs@%$extra_programs%g | |
4f3ae93c BK |
9686 | s%@float_h_file@%$float_h_file%g |
9687 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9688 | s%@gcc_version@%$gcc_version%g | |
9689 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9690 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9691 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9692 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c | 9693 | s%@install@%$install%g |
861bb6c1 | 9694 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9695 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9696 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9697 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9698 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9699 | s%@md_file@%$md_file%g |
9700 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9701 | s%@out_file@%$out_file%g | |
9702 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9703 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9704 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9705 | s%@thread_file@%$thread_file%g |
9706 | s%@tm_file_list@%$tm_file_list%g | |
9707 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9708 | /@target_overrides@/r $target_overrides |
9709 | s%@target_overrides@%%g | |
9710 | /@host_overrides@/r $host_overrides | |
9711 | s%@host_overrides@%%g | |
9712 | s%@cross_defines@%$cross_defines%g | |
9713 | /@cross_overrides@/r $cross_overrides | |
9714 | s%@cross_overrides@%%g | |
9715 | /@build_overrides@/r $build_overrides | |
9716 | s%@build_overrides@%%g | |
9717 | /@language_fragments@/r $language_fragments | |
9718 | s%@language_fragments@%%g | |
9719 | /@language_hooks@/r $language_hooks | |
9720 | s%@language_hooks@%%g | |
9721 | ||
9722 | CEOF | |
9723 | EOF | |
9724 | ||
9725 | cat >> $CONFIG_STATUS <<\EOF | |
9726 | ||
9727 | # Split the substitutions into bite-sized pieces for seds with | |
9728 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9729 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9730 | ac_file=1 # Number of current file. | |
9731 | ac_beg=1 # First line for current file. | |
9732 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9733 | ac_more_lines=: | |
9734 | ac_sed_cmds="" | |
9735 | while $ac_more_lines; do | |
9736 | if test $ac_beg -gt 1; then | |
9737 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9738 | else | |
9739 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9740 | fi | |
9741 | if test ! -s conftest.s$ac_file; then | |
9742 | ac_more_lines=false | |
9743 | rm -f conftest.s$ac_file | |
9744 | else | |
9745 | if test -z "$ac_sed_cmds"; then | |
9746 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9747 | else | |
9748 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9749 | fi | |
9750 | ac_file=`expr $ac_file + 1` | |
9751 | ac_beg=$ac_end | |
9752 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9753 | fi | |
9754 | done | |
9755 | if test -z "$ac_sed_cmds"; then | |
9756 | ac_sed_cmds=cat | |
9757 | fi | |
9758 | EOF | |
9759 | ||
9760 | cat >> $CONFIG_STATUS <<EOF | |
9761 | ||
9762 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9763 | EOF | |
9764 | cat >> $CONFIG_STATUS <<\EOF | |
9765 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9766 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9767 | case "$ac_file" in | |
9768 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9769 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9770 | *) ac_file_in="${ac_file}.in" ;; | |
9771 | esac | |
9772 | ||
9773 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9774 | ||
9775 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9776 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9777 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9778 | # The file is in a subdirectory. | |
9779 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9780 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9781 | # A "../" for each directory in $ac_dir_suffix. | |
9782 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9783 | else | |
9784 | ac_dir_suffix= ac_dots= | |
9785 | fi | |
9786 | ||
9787 | case "$ac_given_srcdir" in | |
9788 | .) srcdir=. | |
9789 | if test -z "$ac_dots"; then top_srcdir=. | |
9790 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9791 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9792 | *) # Relative path. | |
9793 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9794 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9795 | esac | |
9796 | ||
861bb6c1 JL |
9797 | |
9798 | echo creating "$ac_file" | |
9799 | rm -f "$ac_file" | |
9800 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9801 | case "$ac_file" in | |
9802 | *Makefile*) ac_comsub="1i\\ | |
9803 | # $configure_input" ;; | |
9804 | *) ac_comsub= ;; | |
9805 | esac | |
9806 | ||
9807 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9808 | sed -e "$ac_comsub | |
9809 | s%@configure_input@%$configure_input%g | |
9810 | s%@srcdir@%$srcdir%g | |
9811 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9812 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9813 | fi; done | |
9814 | rm -f conftest.s* | |
9815 | ||
9816 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9817 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9818 | # | |
9819 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9820 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9821 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9822 | ac_dC='\3' | |
9823 | ac_dD='%g' | |
9824 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9825 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9826 | ac_uB='\([ ]\)%\1#\2define\3' | |
9827 | ac_uC=' ' | |
9828 | ac_uD='\4%g' | |
9829 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9830 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9831 | ac_eB='$%\1#\2define\3' | |
9832 | ac_eC=' ' | |
9833 | ac_eD='%g' | |
9834 | ||
9835 | if test "${CONFIG_HEADERS+set}" != set; then | |
9836 | EOF | |
9837 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9838 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9839 | EOF |
9840 | cat >> $CONFIG_STATUS <<\EOF | |
9841 | fi | |
9842 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9843 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9844 | case "$ac_file" in | |
9845 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9846 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9847 | *) ac_file_in="${ac_file}.in" ;; | |
9848 | esac | |
9849 | ||
9850 | echo creating $ac_file | |
9851 | ||
9852 | rm -f conftest.frag conftest.in conftest.out | |
9853 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9854 | cat $ac_file_inputs > conftest.in | |
9855 | ||
9856 | EOF | |
9857 | ||
9858 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9859 | # the proper values into config.h.in to produce config.h. And first: | |
9860 | # Protect against being on the right side of a sed subst in config.status. | |
9861 | # Protect against being in an unquoted here document in config.status. | |
9862 | rm -f conftest.vals | |
9863 | cat > conftest.hdr <<\EOF | |
9864 | s/[\\&%]/\\&/g | |
9865 | s%[\\$`]%\\&%g | |
9866 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9867 | s%ac_d%ac_u%gp | |
9868 | s%ac_u%ac_e%gp | |
9869 | EOF | |
9870 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9871 | rm -f conftest.hdr | |
9872 | ||
9873 | # This sed command replaces #undef with comments. This is necessary, for | |
9874 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9875 | # on some systems where configure will not decide to define it. | |
9876 | cat >> conftest.vals <<\EOF | |
9877 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9878 | EOF | |
9879 | ||
9880 | # Break up conftest.vals because some shells have a limit on | |
9881 | # the size of here documents, and old seds have small limits too. | |
9882 | ||
9883 | rm -f conftest.tail | |
9884 | while : | |
9885 | do | |
9886 | ac_lines=`grep -c . conftest.vals` | |
9887 | # grep -c gives empty output for an empty file on some AIX systems. | |
9888 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9889 | # Write a limited-size here document to conftest.frag. | |
9890 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9891 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9892 | echo 'CEOF | |
9893 | sed -f conftest.frag conftest.in > conftest.out | |
9894 | rm -f conftest.in | |
9895 | mv conftest.out conftest.in | |
9896 | ' >> $CONFIG_STATUS | |
9897 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9898 | rm -f conftest.vals | |
9899 | mv conftest.tail conftest.vals | |
9900 | done | |
9901 | rm -f conftest.vals | |
9902 | ||
9903 | cat >> $CONFIG_STATUS <<\EOF | |
9904 | rm -f conftest.frag conftest.h | |
9905 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9906 | cat conftest.in >> conftest.h | |
9907 | rm -f conftest.in | |
9908 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9909 | echo "$ac_file is unchanged" | |
9910 | rm -f conftest.h | |
9911 | else | |
9912 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9913 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9914 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9915 | # The file is in a subdirectory. | |
9916 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9917 | fi | |
9918 | rm -f $ac_file | |
9919 | mv conftest.h $ac_file | |
9920 | fi | |
9921 | fi; done | |
9922 | ||
ab87f8c8 JL |
9923 | EOF |
9924 | ||
9925 | cat >> $CONFIG_STATUS <<EOF | |
9926 | ac_sources="$nls_cv_header_libgt" | |
9927 | ac_dests="$nls_cv_header_intl" | |
9928 | EOF | |
9929 | ||
9930 | cat >> $CONFIG_STATUS <<\EOF | |
9931 | srcdir=$ac_given_srcdir | |
9932 | while test -n "$ac_sources"; do | |
9933 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9934 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9935 | ||
9936 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9937 | ||
9938 | if test ! -r $srcdir/$ac_source; then | |
9939 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9940 | fi | |
9941 | rm -f $ac_dest | |
9942 | ||
9943 | # Make relative symlinks. | |
9944 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9945 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9946 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9947 | # The dest file is in a subdirectory. | |
9948 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9949 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9950 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9951 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9952 | else | |
9953 | ac_dest_dir_suffix= ac_dots= | |
9954 | fi | |
9955 | ||
9956 | case "$srcdir" in | |
9957 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9958 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9959 | esac | |
9960 | ||
9961 | # Make a symlink if possible; otherwise try a hard link. | |
9962 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9963 | ln $srcdir/$ac_source $ac_dest; then : | |
9964 | else | |
9965 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9966 | fi | |
9967 | done | |
861bb6c1 JL |
9968 | EOF |
9969 | cat >> $CONFIG_STATUS <<EOF | |
9970 | ||
ab87f8c8 | 9971 | |
861bb6c1 JL |
9972 | host='${host}' |
9973 | build='${build}' | |
9974 | target='${target}' | |
9975 | target_alias='${target_alias}' | |
9976 | srcdir='${srcdir}' | |
9977 | subdirs='${subdirs}' | |
9978 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9979 | symbolic_link='${symbolic_link}' | |
9980 | program_transform_set='${program_transform_set}' | |
9981 | program_transform_name='${program_transform_name}' | |
9982 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9983 | host_xmake_file='${host_xmake_file}' | |
9984 | dep_tmake_file='${dep_tmake_file}' | |
9985 | tmake_file='${tmake_file}' | |
9986 | thread_file='${thread_file}' | |
f1943b77 MH |
9987 | gcc_version='${gcc_version}' |
9988 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9989 | local_prefix='${local_prefix}' |
9990 | build_install_headers_dir='${build_install_headers_dir}' | |
9991 | build_exeext='${build_exeext}' | |
6e26218f | 9992 | host_exeext='${host_exeext}' |
7ed46111 | 9993 | out_file='${out_file}' |
861bb6c1 JL |
9994 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9995 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9996 | target_list='${target_list}' |
9997 | target_overrides='${target_overrides}' | |
9998 | host_overrides='${host_overrides}' | |
9999 | cross_defines='${cross_defines}' | |
10000 | cross_overrides='${cross_overrides}' | |
10001 | build_overrides='${build_overrides}' | |
9fc9b82a | 10002 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
10003 | |
10004 | EOF | |
10005 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
10006 | case "$CONFIG_FILES" in *po/Makefile.in*) |
10007 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
10008 | esac | |
861bb6c1 JL |
10009 | |
10010 | . $srcdir/configure.lang | |
10011 | case x$CONFIG_HEADERS in | |
b7cb92ad | 10012 | xauto-host.h:config.in) |
861bb6c1 JL |
10013 | echo > cstamp-h ;; |
10014 | esac | |
93cf819d BK |
10015 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
10016 | # bootstrapping and the installation procedure can still use | |
10017 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
10018 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
10019 | # This is virtually a duplicate of what happens in configure.lang; we do | |
10020 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 10021 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 10022 | for d in .. ${subdirs} ; do |
75bffa71 | 10023 | if test $d != ..; then |
4e8a434e BK |
10024 | STARTDIR=`pwd` |
10025 | cd $d | |
10026 | for t in stage1 stage2 stage3 stage4 include | |
10027 | do | |
10028 | rm -f $t | |
10029 | $symbolic_link ../$t $t 2>/dev/null | |
10030 | done | |
10031 | cd $STARTDIR | |
93cf819d BK |
10032 | fi |
10033 | done | |
10034 | else true ; fi | |
ab87f8c8 JL |
10035 | # Avoid having to add intl to our include paths. |
10036 | if test -f intl/libintl.h; then | |
10037 | echo creating libintl.h | |
10038 | echo '#include "intl/libintl.h"' >libintl.h | |
10039 | fi | |
861bb6c1 JL |
10040 | |
10041 | exit 0 | |
10042 | EOF | |
10043 | chmod +x $CONFIG_STATUS | |
10044 | rm -fr confdefs* $ac_clean_files | |
10045 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10046 |