]>
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 JL |
53 | ac_help="$ac_help |
54 | --enable-nls use Native Language Support (disabled by default)" | |
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" | |
861bb6c1 JL |
80 | |
81 | # Initialize some variables set by options. | |
82 | # The variables have the same names as the options, with | |
83 | # dashes changed to underlines. | |
84 | build=NONE | |
85 | cache_file=./config.cache | |
86 | exec_prefix=NONE | |
87 | host=NONE | |
88 | no_create= | |
89 | nonopt=NONE | |
90 | no_recursion= | |
91 | prefix=NONE | |
92 | program_prefix=NONE | |
93 | program_suffix=NONE | |
94 | program_transform_name=s,x,x, | |
95 | silent= | |
96 | site= | |
97 | srcdir= | |
98 | target=NONE | |
99 | verbose= | |
100 | x_includes=NONE | |
101 | x_libraries=NONE | |
102 | bindir='${exec_prefix}/bin' | |
103 | sbindir='${exec_prefix}/sbin' | |
104 | libexecdir='${exec_prefix}/libexec' | |
105 | datadir='${prefix}/share' | |
106 | sysconfdir='${prefix}/etc' | |
107 | sharedstatedir='${prefix}/com' | |
108 | localstatedir='${prefix}/var' | |
109 | libdir='${exec_prefix}/lib' | |
110 | includedir='${prefix}/include' | |
111 | oldincludedir='/usr/include' | |
112 | infodir='${prefix}/info' | |
113 | mandir='${prefix}/man' | |
114 | ||
115 | # Initialize some other variables. | |
116 | subdirs= | |
117 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 118 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
119 | # Maximum number of lines to put in a shell here document. |
120 | ac_max_here_lines=12 | |
121 | ||
122 | ac_prev= | |
123 | for ac_option | |
124 | do | |
125 | ||
126 | # If the previous option needs an argument, assign it. | |
127 | if test -n "$ac_prev"; then | |
128 | eval "$ac_prev=\$ac_option" | |
129 | ac_prev= | |
130 | continue | |
131 | fi | |
132 | ||
133 | case "$ac_option" in | |
134 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
135 | *) ac_optarg= ;; | |
136 | esac | |
137 | ||
138 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
139 | ||
140 | case "$ac_option" in | |
141 | ||
142 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
143 | ac_prev=bindir ;; | |
144 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
145 | bindir="$ac_optarg" ;; | |
146 | ||
147 | -build | --build | --buil | --bui | --bu) | |
148 | ac_prev=build ;; | |
149 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
150 | build="$ac_optarg" ;; | |
151 | ||
152 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
153 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
154 | ac_prev=cache_file ;; | |
155 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
156 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
157 | cache_file="$ac_optarg" ;; | |
158 | ||
159 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
160 | ac_prev=datadir ;; | |
161 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
162 | | --da=*) | |
163 | datadir="$ac_optarg" ;; | |
164 | ||
165 | -disable-* | --disable-*) | |
166 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
167 | # Reject names that are not valid shell variable names. | |
168 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
169 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
170 | fi | |
171 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
172 | eval "enable_${ac_feature}=no" ;; | |
173 | ||
174 | -enable-* | --enable-*) | |
175 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
176 | # Reject names that are not valid shell variable names. | |
177 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
178 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
179 | fi | |
180 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
181 | case "$ac_option" in | |
182 | *=*) ;; | |
183 | *) ac_optarg=yes ;; | |
184 | esac | |
185 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
186 | ||
187 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
188 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
189 | | --exec | --exe | --ex) | |
190 | ac_prev=exec_prefix ;; | |
191 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
192 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
193 | | --exec=* | --exe=* | --ex=*) | |
194 | exec_prefix="$ac_optarg" ;; | |
195 | ||
196 | -gas | --gas | --ga | --g) | |
197 | # Obsolete; use --with-gas. | |
198 | with_gas=yes ;; | |
199 | ||
200 | -help | --help | --hel | --he) | |
201 | # Omit some internal or obsolete options to make the list less imposing. | |
202 | # This message is too long to be a string in the A/UX 3.1 sh. | |
203 | cat << EOF | |
204 | Usage: configure [options] [host] | |
205 | Options: [defaults in brackets after descriptions] | |
206 | Configuration: | |
207 | --cache-file=FILE cache test results in FILE | |
208 | --help print this message | |
209 | --no-create do not create output files | |
210 | --quiet, --silent do not print \`checking...' messages | |
211 | --version print the version of autoconf that created configure | |
212 | Directory and file names: | |
213 | --prefix=PREFIX install architecture-independent files in PREFIX | |
214 | [$ac_default_prefix] | |
215 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
216 | [same as prefix] | |
217 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
218 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
219 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
220 | --datadir=DIR read-only architecture-independent data in DIR | |
221 | [PREFIX/share] | |
222 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
223 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
224 | [PREFIX/com] | |
225 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
226 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
227 | --includedir=DIR C header files in DIR [PREFIX/include] | |
228 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
229 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
230 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
231 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
232 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
233 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
234 | --program-transform-name=PROGRAM | |
235 | run sed PROGRAM on installed program names | |
236 | EOF | |
237 | cat << EOF | |
238 | Host type: | |
239 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
240 | --host=HOST configure for HOST [guessed] | |
241 | --target=TARGET configure for TARGET [TARGET=HOST] | |
242 | Features and packages: | |
243 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
244 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
245 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
246 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
247 | --x-includes=DIR X include files are in DIR | |
248 | --x-libraries=DIR X library files are in DIR | |
249 | EOF | |
250 | if test -n "$ac_help"; then | |
251 | echo "--enable and --with options recognized:$ac_help" | |
252 | fi | |
253 | exit 0 ;; | |
254 | ||
255 | -host | --host | --hos | --ho) | |
256 | ac_prev=host ;; | |
257 | -host=* | --host=* | --hos=* | --ho=*) | |
258 | host="$ac_optarg" ;; | |
259 | ||
260 | -includedir | --includedir | --includedi | --included | --include \ | |
261 | | --includ | --inclu | --incl | --inc) | |
262 | ac_prev=includedir ;; | |
263 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
264 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
265 | includedir="$ac_optarg" ;; | |
266 | ||
267 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
268 | ac_prev=infodir ;; | |
269 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
270 | infodir="$ac_optarg" ;; | |
271 | ||
272 | -libdir | --libdir | --libdi | --libd) | |
273 | ac_prev=libdir ;; | |
274 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
275 | libdir="$ac_optarg" ;; | |
276 | ||
277 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
278 | | --libexe | --libex | --libe) | |
279 | ac_prev=libexecdir ;; | |
280 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
281 | | --libexe=* | --libex=* | --libe=*) | |
282 | libexecdir="$ac_optarg" ;; | |
283 | ||
284 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
285 | | --localstate | --localstat | --localsta | --localst \ | |
286 | | --locals | --local | --loca | --loc | --lo) | |
287 | ac_prev=localstatedir ;; | |
288 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
289 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
290 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
291 | localstatedir="$ac_optarg" ;; | |
292 | ||
293 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
294 | ac_prev=mandir ;; | |
295 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
296 | mandir="$ac_optarg" ;; | |
297 | ||
298 | -nfp | --nfp | --nf) | |
299 | # Obsolete; use --without-fp. | |
300 | with_fp=no ;; | |
301 | ||
302 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
303 | | --no-cr | --no-c) | |
304 | no_create=yes ;; | |
305 | ||
306 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
307 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
308 | no_recursion=yes ;; | |
309 | ||
310 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
311 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
312 | | --oldin | --oldi | --old | --ol | --o) | |
313 | ac_prev=oldincludedir ;; | |
314 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
315 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
316 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
317 | oldincludedir="$ac_optarg" ;; | |
318 | ||
319 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
320 | ac_prev=prefix ;; | |
321 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
322 | prefix="$ac_optarg" ;; | |
323 | ||
324 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
325 | | --program-pre | --program-pr | --program-p) | |
326 | ac_prev=program_prefix ;; | |
327 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
328 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
329 | program_prefix="$ac_optarg" ;; | |
330 | ||
331 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
332 | | --program-suf | --program-su | --program-s) | |
333 | ac_prev=program_suffix ;; | |
334 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
335 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
336 | program_suffix="$ac_optarg" ;; | |
337 | ||
338 | -program-transform-name | --program-transform-name \ | |
339 | | --program-transform-nam | --program-transform-na \ | |
340 | | --program-transform-n | --program-transform- \ | |
341 | | --program-transform | --program-transfor \ | |
342 | | --program-transfo | --program-transf \ | |
343 | | --program-trans | --program-tran \ | |
344 | | --progr-tra | --program-tr | --program-t) | |
345 | ac_prev=program_transform_name ;; | |
346 | -program-transform-name=* | --program-transform-name=* \ | |
347 | | --program-transform-nam=* | --program-transform-na=* \ | |
348 | | --program-transform-n=* | --program-transform-=* \ | |
349 | | --program-transform=* | --program-transfor=* \ | |
350 | | --program-transfo=* | --program-transf=* \ | |
351 | | --program-trans=* | --program-tran=* \ | |
352 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
353 | program_transform_name="$ac_optarg" ;; | |
354 | ||
355 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
356 | | -silent | --silent | --silen | --sile | --sil) | |
357 | silent=yes ;; | |
358 | ||
359 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
360 | ac_prev=sbindir ;; | |
361 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
362 | | --sbi=* | --sb=*) | |
363 | sbindir="$ac_optarg" ;; | |
364 | ||
365 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
366 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
367 | | --sharedst | --shareds | --shared | --share | --shar \ | |
368 | | --sha | --sh) | |
369 | ac_prev=sharedstatedir ;; | |
370 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
371 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
372 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
373 | | --sha=* | --sh=*) | |
374 | sharedstatedir="$ac_optarg" ;; | |
375 | ||
376 | -site | --site | --sit) | |
377 | ac_prev=site ;; | |
378 | -site=* | --site=* | --sit=*) | |
379 | site="$ac_optarg" ;; | |
380 | ||
381 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
382 | ac_prev=srcdir ;; | |
383 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
384 | srcdir="$ac_optarg" ;; | |
385 | ||
386 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
387 | | --syscon | --sysco | --sysc | --sys | --sy) | |
388 | ac_prev=sysconfdir ;; | |
389 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
390 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
391 | sysconfdir="$ac_optarg" ;; | |
392 | ||
393 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
394 | ac_prev=target ;; | |
395 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
396 | target="$ac_optarg" ;; | |
397 | ||
398 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
399 | verbose=yes ;; | |
400 | ||
401 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 402 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
403 | exit 0 ;; |
404 | ||
405 | -with-* | --with-*) | |
406 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
407 | # Reject names that are not valid shell variable names. | |
408 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
409 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
410 | fi | |
411 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
412 | case "$ac_option" in | |
413 | *=*) ;; | |
414 | *) ac_optarg=yes ;; | |
415 | esac | |
416 | eval "with_${ac_package}='$ac_optarg'" ;; | |
417 | ||
418 | -without-* | --without-*) | |
419 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
420 | # Reject names that are not valid shell variable names. | |
421 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
422 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
423 | fi | |
424 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
425 | eval "with_${ac_package}=no" ;; | |
426 | ||
427 | --x) | |
428 | # Obsolete; use --with-x. | |
429 | with_x=yes ;; | |
430 | ||
431 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
432 | | --x-incl | --x-inc | --x-in | --x-i) | |
433 | ac_prev=x_includes ;; | |
434 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
435 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
436 | x_includes="$ac_optarg" ;; | |
437 | ||
438 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
439 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
440 | ac_prev=x_libraries ;; | |
441 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
442 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
443 | x_libraries="$ac_optarg" ;; | |
444 | ||
445 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
446 | ;; | |
447 | ||
448 | *) | |
449 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
450 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
451 | fi | |
452 | if test "x$nonopt" != xNONE; then | |
453 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
454 | fi | |
455 | nonopt="$ac_option" | |
456 | ;; | |
457 | ||
458 | esac | |
459 | done | |
460 | ||
461 | if test -n "$ac_prev"; then | |
462 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
463 | fi | |
464 | ||
465 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
466 | ||
467 | # File descriptor usage: | |
468 | # 0 standard input | |
469 | # 1 file creation | |
470 | # 2 errors and warnings | |
471 | # 3 some systems may open it to /dev/tty | |
472 | # 4 used on the Kubota Titan | |
473 | # 6 checking for... messages and results | |
474 | # 5 compiler messages saved in config.log | |
475 | if test "$silent" = yes; then | |
476 | exec 6>/dev/null | |
477 | else | |
478 | exec 6>&1 | |
479 | fi | |
480 | exec 5>./config.log | |
481 | ||
482 | echo "\ | |
483 | This file contains any messages produced by compilers while | |
484 | running configure, to aid debugging if configure makes a mistake. | |
485 | " 1>&5 | |
486 | ||
487 | # Strip out --no-create and --no-recursion so they do not pile up. | |
488 | # Also quote any args containing shell metacharacters. | |
489 | ac_configure_args= | |
490 | for ac_arg | |
491 | do | |
492 | case "$ac_arg" in | |
493 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
494 | | --no-cr | --no-c) ;; | |
495 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
496 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
497 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
498 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
499 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
500 | esac | |
501 | done | |
502 | ||
503 | # NLS nuisances. | |
504 | # Only set these to C if already set. These must not be set unconditionally | |
505 | # because not all systems understand e.g. LANG=C (notably SCO). | |
506 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
507 | # Non-C LC_CTYPE values break the ctype check. | |
508 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
509 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
510 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
511 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
512 | ||
513 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
514 | rm -rf conftest* confdefs.h | |
515 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
516 | echo > confdefs.h | |
517 | ||
518 | # A filename unique to this package, relative to the directory that | |
519 | # configure is in, which we can look for to find out if srcdir is correct. | |
520 | ac_unique_file=tree.c | |
521 | ||
522 | # Find the source files, if location was not specified. | |
523 | if test -z "$srcdir"; then | |
524 | ac_srcdir_defaulted=yes | |
525 | # Try the directory containing this script, then its parent. | |
526 | ac_prog=$0 | |
527 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
528 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
529 | srcdir=$ac_confdir | |
530 | if test ! -r $srcdir/$ac_unique_file; then | |
531 | srcdir=.. | |
532 | fi | |
533 | else | |
534 | ac_srcdir_defaulted=no | |
535 | fi | |
536 | if test ! -r $srcdir/$ac_unique_file; then | |
537 | if test "$ac_srcdir_defaulted" = yes; then | |
538 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
539 | else | |
540 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
541 | fi | |
542 | fi | |
543 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
544 | ||
545 | # Prefer explicitly selected file to automatically selected ones. | |
24e971f6 JL |
546 | if test -z "$CONFIG_SITE"; then |
547 | if test "x$prefix" != xNONE; then | |
548 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
549 | else | |
550 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
551 | fi |
552 | fi | |
553 | for ac_site_file in $CONFIG_SITE; do | |
554 | if test -r "$ac_site_file"; then | |
555 | echo "loading site script $ac_site_file" | |
556 | . "$ac_site_file" | |
557 | fi | |
558 | done | |
559 | ||
560 | if test -r "$cache_file"; then | |
561 | echo "loading cache $cache_file" | |
562 | . $cache_file | |
563 | else | |
564 | echo "creating cache $cache_file" | |
565 | > $cache_file | |
566 | fi | |
567 | ||
568 | ac_ext=c | |
569 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
570 | ac_cpp='$CPP $CPPFLAGS' | |
571 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 572 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
573 | cross_compiling=$ac_cv_prog_cc_cross |
574 | ||
cd9e5e7c MK |
575 | ac_exeext= |
576 | ac_objext=o | |
861bb6c1 JL |
577 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
578 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
579 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
580 | ac_n= ac_c=' | |
581 | ' ac_t=' ' | |
582 | else | |
583 | ac_n=-n ac_c= ac_t= | |
584 | fi | |
585 | else | |
586 | ac_n= ac_c='\c' ac_t= | |
587 | fi | |
588 | ||
589 | ||
590 | ||
591 | ||
861bb6c1 JL |
592 | remove=rm |
593 | hard_link=ln | |
594 | symbolic_link='ln -s' | |
595 | copy=cp | |
596 | ||
75a39864 JL |
597 | # Check for bogus environment variables. |
598 | # Test if LIBRARY_PATH contains the notation for the current directory | |
599 | # since this would lead to problems installing/building glibc. | |
600 | # LIBRARY_PATH contains the current directory if one of the following | |
601 | # is true: | |
602 | # - one of the terminals (":" and ";") is the first or last sign | |
603 | # - two terminals occur directly after each other | |
604 | # - the path contains an element with a dot in it | |
605 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
86702e31 | 606 | echo "configure:607: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
607 | case ${LIBRARY_PATH} in |
608 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
609 | library_path_setting="contains current directory" | |
610 | ;; | |
611 | *) | |
612 | library_path_setting="ok" | |
613 | ;; | |
614 | esac | |
615 | echo "$ac_t""$library_path_setting" 1>&6 | |
616 | if test "$library_path_setting" != "ok"; then | |
617 | { echo "configure: error: | |
618 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 619 | *** building gcc. Please change the environment variable |
75a39864 JL |
620 | *** and run configure again." 1>&2; exit 1; } |
621 | fi | |
622 | ||
623 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
624 | # since this would lead to problems installing/building glibc. | |
625 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
626 | # is true: | |
627 | # - one of the terminals (":" and ";") is the first or last sign | |
628 | # - two terminals occur directly after each other | |
629 | # - the path contains an element with a dot in it | |
630 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
86702e31 | 631 | echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
632 | case ${GCC_EXEC_PREFIX} in |
633 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
634 | gcc_exec_prefix_setting="contains current directory" | |
635 | ;; | |
636 | *) | |
637 | gcc_exec_prefix_setting="ok" | |
638 | ;; | |
639 | esac | |
640 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
641 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
642 | { echo "configure: error: | |
643 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 644 | *** building gcc. Please change the environment variable |
75a39864 JL |
645 | *** and run configure again." 1>&2; exit 1; } |
646 | fi | |
647 | ||
861bb6c1 JL |
648 | # Check for additional parameters |
649 | ||
650 | # With GNU ld | |
651 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
652 | if test "${with_gnu_ld+set}" = set; then | |
653 | withval="$with_gnu_ld" | |
df6faf79 | 654 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 655 | else |
df6faf79 | 656 | gnu_ld_flag=no |
861bb6c1 JL |
657 | fi |
658 | ||
659 | ||
ab339d62 AO |
660 | # With pre-defined ld |
661 | # Check whether --with-ld or --without-ld was given. | |
662 | if test "${with_ld+set}" = set; then | |
663 | withval="$with_ld" | |
3ccc3a56 | 664 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
665 | fi |
666 | ||
3ccc3a56 AO |
667 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
668 | if test ! -x "$DEFAULT_LINKER"; then | |
669 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 670 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
671 | gnu_ld_flag=yes |
672 | fi | |
673 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 674 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
675 | EOF |
676 | ||
677 | fi | |
678 | ||
861bb6c1 JL |
679 | # With GNU as |
680 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
681 | if test "${with_gnu_as+set}" = set; then | |
682 | withval="$with_gnu_as" | |
df6faf79 | 683 | gas_flag="$with_gnu_as" |
861bb6c1 | 684 | else |
df6faf79 | 685 | gas_flag=no |
861bb6c1 JL |
686 | fi |
687 | ||
688 | ||
ab339d62 AO |
689 | # Check whether --with-as or --without-as was given. |
690 | if test "${with_as+set}" = set; then | |
691 | withval="$with_as" | |
3ccc3a56 | 692 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
693 | fi |
694 | ||
3ccc3a56 AO |
695 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
696 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
697 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 698 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
699 | gas_flag=yes |
700 | fi | |
701 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 702 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
703 | EOF |
704 | ||
3ccc3a56 | 705 | fi |
ab339d62 | 706 | |
861bb6c1 JL |
707 | # With stabs |
708 | # Check whether --with-stabs or --without-stabs was given. | |
709 | if test "${with_stabs+set}" = set; then | |
710 | withval="$with_stabs" | |
535b86ce | 711 | stabs="$with_stabs" |
861bb6c1 JL |
712 | else |
713 | stabs=no | |
714 | fi | |
715 | ||
716 | ||
717 | # With ELF | |
718 | # Check whether --with-elf or --without-elf was given. | |
719 | if test "${with_elf+set}" = set; then | |
720 | withval="$with_elf" | |
535b86ce | 721 | elf="$with_elf" |
861bb6c1 JL |
722 | else |
723 | elf=no | |
724 | fi | |
725 | ||
726 | ||
727 | # Specify the local prefix | |
4e88d51b | 728 | local_prefix= |
861bb6c1 JL |
729 | # Check whether --with-local-prefix or --without-local-prefix was given. |
730 | if test "${with_local_prefix+set}" = set; then | |
731 | withval="$with_local_prefix" | |
4e88d51b JM |
732 | case "${withval}" in |
733 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
734 | no) ;; | |
735 | *) local_prefix=$with_local_prefix ;; | |
736 | esac | |
861bb6c1 JL |
737 | fi |
738 | ||
739 | ||
740 | # Default local prefix if it is empty | |
75bffa71 | 741 | if test x$local_prefix = x; then |
861bb6c1 JL |
742 | local_prefix=/usr/local |
743 | fi | |
744 | ||
8f8d3278 NC |
745 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
746 | # passed in by the toplevel make and thus we'd get different behavior | |
747 | # depending on where we built the sources. | |
748 | gcc_gxx_include_dir= | |
861bb6c1 JL |
749 | # Specify the g++ header file directory |
750 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
751 | if test "${with_gxx_include_dir+set}" = set; then | |
752 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
753 | case "${withval}" in |
754 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
755 | no) ;; | |
8f8d3278 | 756 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 757 | esac |
861bb6c1 JL |
758 | fi |
759 | ||
760 | ||
8f8d3278 | 761 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 762 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 763 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 764 | else |
a270b446 | 765 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 766 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
767 | fi |
768 | fi | |
769 | ||
a494747c MM |
770 | # Enable expensive internal checks |
771 | # Check whether --enable-checking or --disable-checking was given. | |
772 | if test "${enable_checking+set}" = set; then | |
773 | enableval="$enable_checking" | |
119d24d1 KG |
774 | ac_checking= |
775 | ac_tree_checking= | |
776 | ac_rtl_checking= | |
777 | ac_gc_checking= | |
778 | ac_gc_always_collect= | |
779 | case "${enableval}" in | |
780 | yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;; | |
4e88d51b | 781 | no) ;; |
1c521d41 | 782 | *) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS," |
f4524c9e ZW |
783 | set fnord $enableval; shift |
784 | IFS="$ac_save_IFS" | |
c62e45ad KG |
785 | for check |
786 | do | |
f4524c9e | 787 | case $check in |
119d24d1 KG |
788 | misc) ac_checking=1 ;; |
789 | tree) ac_tree_checking=1 ;; | |
790 | rtl) ac_rtl_checking=1 ;; | |
791 | gc) ac_gc_checking=1 ;; | |
792 | gcac) ac_gc_always_collect=1 ;; | |
793 | *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; | |
794 | esac | |
795 | done | |
796 | ;; | |
797 | esac | |
798 | if test x$ac_checking != x ; then | |
799 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
800 | #define ENABLE_CHECKING 1 |
801 | EOF | |
119d24d1 KG |
802 | |
803 | fi | |
804 | if test x$ac_tree_checking != x ; then | |
805 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
806 | #define ENABLE_TREE_CHECKING 1 |
807 | EOF | |
119d24d1 KG |
808 | |
809 | fi | |
810 | if test x$ac_rtl_checking != x ; then | |
811 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
812 | #define ENABLE_RTL_CHECKING 1 |
813 | EOF | |
119d24d1 KG |
814 | |
815 | fi | |
816 | if test x$ac_gc_checking != x ; then | |
817 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
818 | #define ENABLE_GC_CHECKING 1 |
819 | EOF | |
119d24d1 KG |
820 | |
821 | fi | |
822 | if test x$ac_gc_always_collect != x ; then | |
823 | cat >> confdefs.h <<\EOF | |
f4524c9e ZW |
824 | #define ENABLE_GC_ALWAYS_COLLECT 1 |
825 | EOF | |
119d24d1 KG |
826 | |
827 | fi | |
828 | ||
a494747c MM |
829 | fi |
830 | ||
831 | ||
3ecc3258 ZW |
832 | # Check whether --enable-cpp or --disable-cpp was given. |
833 | if test "${enable_cpp+set}" = set; then | |
834 | enableval="$enable_cpp" | |
835 | : | |
836 | else | |
837 | enable_cpp=yes | |
838 | fi | |
839 | ||
840 | ||
841 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
842 | if test "${with_cpp_install_dir+set}" = set; then | |
843 | withval="$with_cpp_install_dir" | |
844 | if test x$withval = xyes; then | |
845 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
846 | elif test x$withval != xno; then | |
847 | cpp_install_dir=$withval | |
848 | fi | |
849 | fi | |
850 | ||
851 | ||
f81a440f | 852 | |
c5c76735 JL |
853 | # Enable Multibyte Characters for C/C++ |
854 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
855 | if test "${enable_c_mbchar+set}" = set; then | |
856 | enableval="$enable_c_mbchar" | |
2618c083 | 857 | if test x$enable_c_mbchar != xno; then |
64fb023e | 858 | extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1" |
c5c76735 JL |
859 | fi |
860 | fi | |
861 | ||
862 | ||
861bb6c1 JL |
863 | # Enable threads |
864 | # Pass with no value to take the default | |
865 | # Pass with a value to specify a thread package | |
866 | # Check whether --enable-threads or --disable-threads was given. | |
867 | if test "${enable_threads+set}" = set; then | |
868 | enableval="$enable_threads" | |
75bffa71 | 869 | if test x$enable_threads = xno; then |
861bb6c1 JL |
870 | enable_threads='' |
871 | fi | |
872 | else | |
873 | enable_threads='' | |
874 | fi | |
875 | ||
876 | ||
e445171e | 877 | enable_threads_flag=$enable_threads |
861bb6c1 | 878 | # Check if a valid thread package |
e445171e | 879 | case x${enable_threads_flag} in |
861bb6c1 JL |
880 | x | xno) |
881 | # No threads | |
a851212a | 882 | target_thread_file='single' |
861bb6c1 JL |
883 | ;; |
884 | xyes) | |
885 | # default | |
a851212a | 886 | target_thread_file='' |
861bb6c1 JL |
887 | ;; |
888 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 889 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 890 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
891 | ;; |
892 | *) | |
893 | echo "$enable_threads is an unknown thread package" 1>&2 | |
894 | exit 1 | |
895 | ;; | |
896 | esac | |
897 | ||
d8bb17c8 OP |
898 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
899 | if test "${enable_objc_gc+set}" = set; then | |
900 | enableval="$enable_objc_gc" | |
2618c083 | 901 | if test x$enable_objc_gc = xno; then |
d8bb17c8 OP |
902 | objc_boehm_gc='' |
903 | else | |
904 | objc_boehm_gc=1 | |
905 | fi | |
906 | else | |
907 | objc_boehm_gc='' | |
908 | fi | |
909 | ||
910 | ||
90e6a802 RL |
911 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
912 | if test "${with_dwarf2+set}" = set; then | |
913 | withval="$with_dwarf2" | |
914 | dwarf2="$with_dwarf2" | |
915 | else | |
916 | dwarf2=no | |
917 | fi | |
918 | ||
919 | ||
861bb6c1 JL |
920 | # Determine the host, build, and target systems |
921 | ac_aux_dir= | |
922 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
923 | if test -f $ac_dir/install-sh; then | |
924 | ac_aux_dir=$ac_dir | |
925 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
926 | break | |
927 | elif test -f $ac_dir/install.sh; then | |
928 | ac_aux_dir=$ac_dir | |
929 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
930 | break | |
931 | fi | |
932 | done | |
933 | if test -z "$ac_aux_dir"; then | |
934 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
935 | fi | |
936 | ac_config_guess=$ac_aux_dir/config.guess | |
937 | ac_config_sub=$ac_aux_dir/config.sub | |
938 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
939 | ||
940 | ||
941 | # Do some error checking and defaulting for the host and target type. | |
942 | # The inputs are: | |
943 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
944 | # | |
945 | # The rules are: | |
946 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
947 | # same time. | |
948 | # 2. Host defaults to nonopt. | |
949 | # 3. If nonopt is not specified, then host defaults to the current host, | |
950 | # as determined by config.guess. | |
951 | # 4. Target and build default to nonopt. | |
952 | # 5. If nonopt is not specified, then target and build default to host. | |
953 | ||
954 | # The aliases save the names the user supplied, while $host etc. | |
955 | # will get canonicalized. | |
956 | case $host---$target---$nonopt in | |
957 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
958 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
959 | esac | |
960 | ||
961 | ||
962 | # Make sure we can run config.sub. | |
6f144c9c | 963 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
964 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
965 | fi | |
966 | ||
967 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
119d24d1 | 968 | echo "configure:969: checking host system type" >&5 |
861bb6c1 JL |
969 | |
970 | host_alias=$host | |
971 | case "$host_alias" in | |
972 | NONE) | |
973 | case $nonopt in | |
974 | NONE) | |
6f144c9c | 975 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
976 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
977 | fi ;; | |
978 | *) host_alias=$nonopt ;; | |
979 | esac ;; | |
980 | esac | |
981 | ||
6f144c9c | 982 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
983 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
984 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
985 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
986 | echo "$ac_t""$host" 1>&6 | |
987 | ||
988 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
119d24d1 | 989 | echo "configure:990: checking target system type" >&5 |
861bb6c1 JL |
990 | |
991 | target_alias=$target | |
992 | case "$target_alias" in | |
993 | NONE) | |
994 | case $nonopt in | |
995 | NONE) target_alias=$host_alias ;; | |
996 | *) target_alias=$nonopt ;; | |
997 | esac ;; | |
998 | esac | |
999 | ||
6f144c9c | 1000 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
1001 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1002 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1003 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1004 | echo "$ac_t""$target" 1>&6 | |
1005 | ||
1006 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
119d24d1 | 1007 | echo "configure:1008: checking build system type" >&5 |
861bb6c1 JL |
1008 | |
1009 | build_alias=$build | |
1010 | case "$build_alias" in | |
1011 | NONE) | |
1012 | case $nonopt in | |
1013 | NONE) build_alias=$host_alias ;; | |
1014 | *) build_alias=$nonopt ;; | |
1015 | esac ;; | |
1016 | esac | |
1017 | ||
6f144c9c | 1018 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1019 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1020 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1021 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1022 | echo "$ac_t""$build" 1>&6 | |
1023 | ||
1024 | test "$host_alias" != "$target_alias" && | |
1025 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1026 | NONENONEs,x,x, && | |
1027 | program_prefix=${target_alias}- | |
1028 | ||
1029 | ||
e9a25f70 JL |
1030 | # Find the native compiler |
1031 | # Extract the first word of "gcc", so it can be a program name with args. | |
1032 | set dummy gcc; ac_word=$2 | |
1033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1034 | echo "configure:1035: checking for $ac_word" >&5 |
e9a25f70 JL |
1035 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1037 | else | |
1038 | if test -n "$CC"; then | |
1039 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1040 | else | |
cd9e5e7c | 1041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1042 | ac_dummy="$PATH" |
1043 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1044 | test -z "$ac_dir" && ac_dir=. |
1045 | if test -f $ac_dir/$ac_word; then | |
1046 | ac_cv_prog_CC="gcc" | |
1047 | break | |
1048 | fi | |
1049 | done | |
1050 | IFS="$ac_save_ifs" | |
1051 | fi | |
1052 | fi | |
1053 | CC="$ac_cv_prog_CC" | |
1054 | if test -n "$CC"; then | |
1055 | echo "$ac_t""$CC" 1>&6 | |
1056 | else | |
1057 | echo "$ac_t""no" 1>&6 | |
1058 | fi | |
1059 | ||
1060 | if test -z "$CC"; then | |
1061 | # Extract the first word of "cc", so it can be a program name with args. | |
1062 | set dummy cc; ac_word=$2 | |
1063 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1064 | echo "configure:1065: checking for $ac_word" >&5 |
e9a25f70 JL |
1065 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1067 | else | |
1068 | if test -n "$CC"; then | |
1069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1070 | else | |
cd9e5e7c | 1071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1072 | ac_prog_rejected=no |
b27d2bd5 MK |
1073 | ac_dummy="$PATH" |
1074 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1075 | test -z "$ac_dir" && ac_dir=. |
1076 | if test -f $ac_dir/$ac_word; then | |
1077 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1078 | ac_prog_rejected=yes | |
1079 | continue | |
1080 | fi | |
1081 | ac_cv_prog_CC="cc" | |
1082 | break | |
1083 | fi | |
1084 | done | |
1085 | IFS="$ac_save_ifs" | |
1086 | if test $ac_prog_rejected = yes; then | |
1087 | # We found a bogon in the path, so make sure we never use it. | |
1088 | set dummy $ac_cv_prog_CC | |
1089 | shift | |
1090 | if test $# -gt 0; then | |
1091 | # We chose a different compiler from the bogus one. | |
1092 | # However, it has the same basename, so the bogon will be chosen | |
1093 | # first if we set CC to just the basename; use the full file name. | |
1094 | shift | |
1095 | set dummy "$ac_dir/$ac_word" "$@" | |
1096 | shift | |
1097 | ac_cv_prog_CC="$@" | |
1098 | fi | |
1099 | fi | |
1100 | fi | |
1101 | fi | |
1102 | CC="$ac_cv_prog_CC" | |
1103 | if test -n "$CC"; then | |
1104 | echo "$ac_t""$CC" 1>&6 | |
1105 | else | |
1106 | echo "$ac_t""no" 1>&6 | |
1107 | fi | |
1108 | ||
cd9e5e7c MK |
1109 | if test -z "$CC"; then |
1110 | case "`uname -s`" in | |
1111 | *win32* | *WIN32*) | |
1112 | # Extract the first word of "cl", so it can be a program name with args. | |
1113 | set dummy cl; ac_word=$2 | |
1114 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1115 | echo "configure:1116: checking for $ac_word" >&5 |
cd9e5e7c MK |
1116 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1118 | else | |
1119 | if test -n "$CC"; then | |
1120 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1121 | else | |
1122 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1123 | ac_dummy="$PATH" |
1124 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1125 | test -z "$ac_dir" && ac_dir=. |
1126 | if test -f $ac_dir/$ac_word; then | |
1127 | ac_cv_prog_CC="cl" | |
1128 | break | |
1129 | fi | |
1130 | done | |
1131 | IFS="$ac_save_ifs" | |
1132 | fi | |
1133 | fi | |
1134 | CC="$ac_cv_prog_CC" | |
1135 | if test -n "$CC"; then | |
1136 | echo "$ac_t""$CC" 1>&6 | |
1137 | else | |
1138 | echo "$ac_t""no" 1>&6 | |
1139 | fi | |
1140 | ;; | |
1141 | esac | |
1142 | fi | |
e9a25f70 JL |
1143 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1144 | fi | |
1145 | ||
1146 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
119d24d1 | 1147 | echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1148 | |
1149 | ac_ext=c | |
1150 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1151 | ac_cpp='$CPP $CPPFLAGS' | |
1152 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1153 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1154 | cross_compiling=$ac_cv_prog_cc_cross |
1155 | ||
b27d2bd5 MK |
1156 | cat > conftest.$ac_ext << EOF |
1157 | ||
119d24d1 | 1158 | #line 1159 "configure" |
e9a25f70 | 1159 | #include "confdefs.h" |
b27d2bd5 | 1160 | |
e9a25f70 JL |
1161 | main(){return(0);} |
1162 | EOF | |
119d24d1 | 1163 | if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1164 | ac_cv_prog_cc_works=yes |
1165 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1166 | if (./conftest; exit) 2>/dev/null; then | |
1167 | ac_cv_prog_cc_cross=no | |
1168 | else | |
1169 | ac_cv_prog_cc_cross=yes | |
1170 | fi | |
1171 | else | |
1172 | echo "configure: failed program was:" >&5 | |
1173 | cat conftest.$ac_ext >&5 | |
1174 | ac_cv_prog_cc_works=no | |
1175 | fi | |
1176 | rm -fr conftest* | |
b27d2bd5 MK |
1177 | ac_ext=c |
1178 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1179 | ac_cpp='$CPP $CPPFLAGS' | |
1180 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1181 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1182 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1183 | |
1184 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1185 | if test $ac_cv_prog_cc_works = no; then | |
1186 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1187 | fi | |
1188 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
119d24d1 | 1189 | echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1190 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1191 | cross_compiling=$ac_cv_prog_cc_cross | |
1192 | ||
1193 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
119d24d1 | 1194 | echo "configure:1195: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1195 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1197 | else | |
1198 | cat > conftest.c <<EOF | |
1199 | #ifdef __GNUC__ | |
1200 | yes; | |
1201 | #endif | |
1202 | EOF | |
119d24d1 | 1203 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1204 | ac_cv_prog_gcc=yes |
1205 | else | |
1206 | ac_cv_prog_gcc=no | |
1207 | fi | |
1208 | fi | |
1209 | ||
1210 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1211 | ||
1212 | if test $ac_cv_prog_gcc = yes; then | |
1213 | GCC=yes | |
cd9e5e7c MK |
1214 | else |
1215 | GCC= | |
1216 | fi | |
1217 | ||
1218 | ac_test_CFLAGS="${CFLAGS+set}" | |
1219 | ac_save_CFLAGS="$CFLAGS" | |
1220 | CFLAGS= | |
1221 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
119d24d1 | 1222 | echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1223 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1225 | else | |
1226 | echo 'void f(){}' > conftest.c | |
1227 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1228 | ac_cv_prog_cc_g=yes | |
1229 | else | |
1230 | ac_cv_prog_cc_g=no | |
1231 | fi | |
1232 | rm -f conftest* | |
1233 | ||
1234 | fi | |
1235 | ||
1236 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1237 | if test "$ac_test_CFLAGS" = set; then |
1238 | CFLAGS="$ac_save_CFLAGS" | |
1239 | elif test $ac_cv_prog_cc_g = yes; then | |
1240 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1241 | CFLAGS="-g -O2" |
1242 | else | |
cd9e5e7c | 1243 | CFLAGS="-g" |
81814e35 | 1244 | fi |
3723cad9 | 1245 | else |
cd9e5e7c MK |
1246 | if test "$GCC" = yes; then |
1247 | CFLAGS="-O2" | |
1248 | else | |
1249 | CFLAGS= | |
1250 | fi | |
e9a25f70 JL |
1251 | fi |
1252 | ||
04cabffc | 1253 | echo $ac_n "checking for long double""... $ac_c" 1>&6 |
119d24d1 | 1254 | echo "configure:1255: checking for long double" >&5 |
04cabffc KG |
1255 | if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1257 | else | |
1258 | if test "$GCC" = yes; then | |
1259 | gcc_cv_c_long_double=yes | |
1260 | else | |
1261 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1262 | #line 1263 "configure" |
04cabffc KG |
1263 | #include "confdefs.h" |
1264 | ||
1265 | int main() { | |
1266 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ | |
1267 | long double foo = 0.0; | |
1268 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ | |
1269 | switch (0) case 0: case (sizeof(long double) >= sizeof(double)):; | |
1270 | ; return 0; } | |
1271 | EOF | |
119d24d1 | 1272 | if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
04cabffc KG |
1273 | rm -rf conftest* |
1274 | gcc_cv_c_long_double=yes | |
1275 | else | |
1276 | echo "configure: failed program was:" >&5 | |
1277 | cat conftest.$ac_ext >&5 | |
1278 | rm -rf conftest* | |
1279 | gcc_cv_c_long_double=no | |
1280 | fi | |
1281 | rm -f conftest* | |
1282 | fi | |
1283 | fi | |
1284 | ||
1285 | echo "$ac_t""$gcc_cv_c_long_double" 1>&6 | |
1286 | if test $gcc_cv_c_long_double = yes; then | |
1287 | cat >> confdefs.h <<\EOF | |
1288 | #define HAVE_LONG_DOUBLE 1 | |
1289 | EOF | |
1290 | ||
1291 | fi | |
1292 | ||
61842080 MM |
1293 | |
1294 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1295 | # That's useful for people building cross-compilers, or just running a | |
1296 | # quick `make'. | |
1297 | if test "x$GCC" = "xyes"; then | |
1298 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1299 | else | |
1300 | stage1_warn_cflags="" | |
1301 | fi | |
1302 | ||
1303 | ||
e9a25f70 | 1304 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
119d24d1 | 1305 | echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1306 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1307 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1309 | else | |
1310 | cat > conftestmake <<\EOF | |
1311 | all: | |
1312 | @echo 'ac_maketemp="${MAKE}"' | |
1313 | EOF | |
1314 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1315 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1316 | if test -n "$ac_maketemp"; then | |
1317 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1318 | else | |
1319 | eval ac_cv_prog_make_${ac_make}_set=no | |
1320 | fi | |
1321 | rm -f conftestmake | |
1322 | fi | |
1323 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1324 | echo "$ac_t""yes" 1>&6 | |
1325 | SET_MAKE= | |
1326 | else | |
1327 | echo "$ac_t""no" 1>&6 | |
1328 | SET_MAKE="MAKE=${MAKE-make}" | |
1329 | fi | |
1330 | ||
1331 | ||
ab339d62 | 1332 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
119d24d1 | 1333 | echo "configure:1334: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1334 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1335 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1336 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1337 | else |
3ccc3a56 | 1338 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1339 | fi |
1340 | else | |
1341 | echo "$ac_t""no" 1>&6 | |
1342 | fi | |
1343 | ||
1344 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
119d24d1 | 1345 | echo "configure:1346: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1346 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1347 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1348 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1349 | else |
3ccc3a56 | 1350 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1351 | fi |
1352 | else | |
1353 | echo "$ac_t""no" 1>&6 | |
1354 | fi | |
1355 | ||
861bb6c1 | 1356 | # Find some useful tools |
56f02b88 | 1357 | for ac_prog in mawk gawk nawk awk |
861bb6c1 JL |
1358 | do |
1359 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1360 | set dummy $ac_prog; ac_word=$2 | |
1361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1362 | echo "configure:1363: checking for $ac_word" >&5 |
861bb6c1 JL |
1363 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1365 | else | |
1366 | if test -n "$AWK"; then | |
1367 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1368 | else | |
cd9e5e7c | 1369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1370 | ac_dummy="$PATH" |
1371 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1372 | test -z "$ac_dir" && ac_dir=. |
1373 | if test -f $ac_dir/$ac_word; then | |
1374 | ac_cv_prog_AWK="$ac_prog" | |
1375 | break | |
1376 | fi | |
1377 | done | |
1378 | IFS="$ac_save_ifs" | |
1379 | fi | |
1380 | fi | |
1381 | AWK="$ac_cv_prog_AWK" | |
1382 | if test -n "$AWK"; then | |
1383 | echo "$ac_t""$AWK" 1>&6 | |
1384 | else | |
1385 | echo "$ac_t""no" 1>&6 | |
1386 | fi | |
1387 | ||
1388 | test -n "$AWK" && break | |
1389 | done | |
1390 | ||
1391 | # Extract the first word of "flex", so it can be a program name with args. | |
1392 | set dummy flex; ac_word=$2 | |
1393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1394 | echo "configure:1395: checking for $ac_word" >&5 |
861bb6c1 JL |
1395 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1397 | else | |
1398 | if test -n "$LEX"; then | |
1399 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1400 | else | |
cd9e5e7c | 1401 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1402 | ac_dummy="$PATH" |
1403 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1404 | test -z "$ac_dir" && ac_dir=. |
1405 | if test -f $ac_dir/$ac_word; then | |
1406 | ac_cv_prog_LEX="flex" | |
1407 | break | |
1408 | fi | |
1409 | done | |
1410 | IFS="$ac_save_ifs" | |
1411 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1412 | fi | |
1413 | fi | |
1414 | LEX="$ac_cv_prog_LEX" | |
1415 | if test -n "$LEX"; then | |
1416 | echo "$ac_t""$LEX" 1>&6 | |
1417 | else | |
1418 | echo "$ac_t""no" 1>&6 | |
1419 | fi | |
1420 | ||
1421 | if test -z "$LEXLIB" | |
1422 | then | |
1423 | case "$LEX" in | |
1424 | flex*) ac_lib=fl ;; | |
1425 | *) ac_lib=l ;; | |
1426 | esac | |
1427 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
119d24d1 | 1428 | echo "configure:1429: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1429 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1432 | else | |
1433 | ac_save_LIBS="$LIBS" | |
1434 | LIBS="-l$ac_lib $LIBS" | |
1435 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1436 | #line 1437 "configure" |
861bb6c1 JL |
1437 | #include "confdefs.h" |
1438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1439 | /* We use char because int might match the return type of a gcc2 | |
1440 | builtin and then its argument prototype would still apply. */ | |
1441 | char yywrap(); | |
1442 | ||
1443 | int main() { | |
1444 | yywrap() | |
1445 | ; return 0; } | |
1446 | EOF | |
119d24d1 | 1447 | if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1448 | rm -rf conftest* |
1449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1450 | else | |
1451 | echo "configure: failed program was:" >&5 | |
1452 | cat conftest.$ac_ext >&5 | |
1453 | rm -rf conftest* | |
1454 | eval "ac_cv_lib_$ac_lib_var=no" | |
1455 | fi | |
1456 | rm -f conftest* | |
1457 | LIBS="$ac_save_LIBS" | |
1458 | ||
1459 | fi | |
1460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1461 | echo "$ac_t""yes" 1>&6 | |
1462 | LEXLIB="-l$ac_lib" | |
1463 | else | |
1464 | echo "$ac_t""no" 1>&6 | |
1465 | fi | |
1466 | ||
1467 | fi | |
1468 | ||
0a4b6309 | 1469 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
119d24d1 | 1470 | echo "configure:1471: checking whether ln works" >&5 |
0a4b6309 RL |
1471 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1473 | else | |
1474 | rm -f conftestdata_t | |
1475 | echo >conftestdata_f | |
1476 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1477 | then | |
1478 | gcc_cv_prog_LN="ln" | |
1479 | else | |
1480 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1481 | then | |
1482 | gcc_cv_prog_LN="ln -s" | |
1483 | else | |
1484 | gcc_cv_prog_LN=cp | |
1485 | fi | |
1486 | fi | |
1487 | rm -f conftestdata_f conftestdata_t | |
1488 | ||
1489 | fi | |
1490 | LN="$gcc_cv_prog_LN" | |
1491 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1492 | echo "$ac_t""yes" 1>&6 | |
1493 | else | |
1494 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1495 | echo "$ac_t""no, using ln -s" 1>&6 | |
1496 | else | |
1497 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1498 | fi | |
1499 | fi | |
1500 | ||
1501 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
119d24d1 | 1502 | echo "configure:1503: checking whether ln -s works" >&5 |
0a4b6309 RL |
1503 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1505 | else | |
1506 | rm -f conftestdata_t | |
1507 | echo >conftestdata_f | |
1508 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1509 | then | |
1510 | gcc_cv_prog_LN_S="ln -s" | |
1511 | else | |
1512 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1513 | then | |
1514 | gcc_cv_prog_LN_S=ln | |
1515 | else | |
1516 | gcc_cv_prog_LN_S=cp | |
1517 | fi | |
1518 | fi | |
1519 | rm -f conftestdata_f conftestdata_t | |
1520 | ||
1521 | fi | |
1522 | LN_S="$gcc_cv_prog_LN_S" | |
1523 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1524 | echo "$ac_t""yes" 1>&6 | |
1525 | else | |
1526 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1527 | echo "$ac_t""no, using ln" 1>&6 | |
1528 | else | |
1529 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1530 | fi | |
1531 | fi | |
1532 | ||
1533 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
119d24d1 | 1534 | echo "configure:1535: checking for volatile" >&5 |
0a4b6309 RL |
1535 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1537 | else | |
1538 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1539 | #line 1540 "configure" |
0a4b6309 RL |
1540 | #include "confdefs.h" |
1541 | ||
1542 | int main() { | |
1543 | volatile int foo; | |
1544 | ; return 0; } | |
1545 | EOF | |
119d24d1 | 1546 | if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1547 | rm -rf conftest* |
1548 | gcc_cv_c_volatile=yes | |
1549 | else | |
1550 | echo "configure: failed program was:" >&5 | |
1551 | cat conftest.$ac_ext >&5 | |
1552 | rm -rf conftest* | |
1553 | gcc_cv_c_volatile=no | |
1554 | fi | |
1555 | rm -f conftest* | |
1556 | fi | |
1557 | ||
1558 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1559 | if test $gcc_cv_c_volatile = yes ; then | |
1560 | cat >> confdefs.h <<\EOF | |
1561 | #define HAVE_VOLATILE 1 | |
1562 | EOF | |
1563 | ||
1564 | fi | |
1565 | ||
861bb6c1 JL |
1566 | # Extract the first word of "ranlib", so it can be a program name with args. |
1567 | set dummy ranlib; ac_word=$2 | |
1568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1569 | echo "configure:1570: checking for $ac_word" >&5 |
861bb6c1 JL |
1570 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1572 | else | |
1573 | if test -n "$RANLIB"; then | |
1574 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1575 | else | |
cd9e5e7c | 1576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1577 | ac_dummy="$PATH" |
1578 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1579 | test -z "$ac_dir" && ac_dir=. |
1580 | if test -f $ac_dir/$ac_word; then | |
1581 | ac_cv_prog_RANLIB="ranlib" | |
1582 | break | |
1583 | fi | |
1584 | done | |
1585 | IFS="$ac_save_ifs" | |
1586 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1587 | fi | |
1588 | fi | |
1589 | RANLIB="$ac_cv_prog_RANLIB" | |
1590 | if test -n "$RANLIB"; then | |
1591 | echo "$ac_t""$RANLIB" 1>&6 | |
1592 | else | |
1593 | echo "$ac_t""no" 1>&6 | |
1594 | fi | |
1595 | ||
1596 | for ac_prog in 'bison -y' byacc | |
1597 | do | |
1598 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1599 | set dummy $ac_prog; ac_word=$2 | |
1600 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 1601 | echo "configure:1602: checking for $ac_word" >&5 |
861bb6c1 JL |
1602 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1604 | else | |
1605 | if test -n "$YACC"; then | |
1606 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1607 | else | |
cd9e5e7c | 1608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1609 | ac_dummy="$PATH" |
1610 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1611 | test -z "$ac_dir" && ac_dir=. |
1612 | if test -f $ac_dir/$ac_word; then | |
1613 | ac_cv_prog_YACC="$ac_prog" | |
1614 | break | |
1615 | fi | |
1616 | done | |
1617 | IFS="$ac_save_ifs" | |
1618 | fi | |
1619 | fi | |
1620 | YACC="$ac_cv_prog_YACC" | |
1621 | if test -n "$YACC"; then | |
1622 | echo "$ac_t""$YACC" 1>&6 | |
1623 | else | |
1624 | echo "$ac_t""no" 1>&6 | |
1625 | fi | |
1626 | ||
1627 | test -n "$YACC" && break | |
1628 | done | |
1629 | test -n "$YACC" || YACC="yacc" | |
1630 | ||
0a4b6309 RL |
1631 | # Find a good install program. We prefer a C program (faster), |
1632 | # so one script is as good as another. But avoid the broken or | |
1633 | # incompatible versions: | |
1634 | # SysV /etc/install, /usr/sbin/install | |
1635 | # SunOS /usr/etc/install | |
1636 | # IRIX /sbin/install | |
1637 | # AIX /bin/install | |
1638 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1639 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1640 | # ./install, which can be erroneously created by make from ./install.sh. | |
1641 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
119d24d1 | 1642 | echo "configure:1643: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1643 | if test -z "$INSTALL"; then |
1644 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1646 | else | |
1647 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1648 | for ac_dir in $PATH; do | |
1649 | # Account for people who put trailing slashes in PATH elements. | |
1650 | case "$ac_dir/" in | |
1651 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1652 | *) | |
1653 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1654 | for ac_prog in ginstall scoinst install; do | |
1655 | if test -f $ac_dir/$ac_prog; then | |
1656 | if test $ac_prog = install && | |
1657 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1658 | # AIX install. It has an incompatible calling convention. | |
1659 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1660 | : | |
1661 | else | |
1662 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1663 | break 2 | |
1664 | fi | |
1665 | fi | |
1666 | done | |
1667 | ;; | |
1668 | esac | |
1669 | done | |
1670 | IFS="$ac_save_IFS" | |
1671 | ||
1672 | fi | |
1673 | if test "${ac_cv_path_install+set}" = set; then | |
1674 | INSTALL="$ac_cv_path_install" | |
1675 | else | |
1676 | # As a last resort, use the slow shell script. We don't cache a | |
1677 | # path for INSTALL within a source directory, because that will | |
1678 | # break other packages using the cache if that directory is | |
1679 | # removed, or if the path is relative. | |
1680 | INSTALL="$ac_install_sh" | |
1681 | fi | |
1682 | fi | |
1683 | echo "$ac_t""$INSTALL" 1>&6 | |
1684 | ||
1685 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1686 | # It thinks the first close brace ends the variable substitution. | |
1687 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1688 | ||
1689 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1690 | ||
861bb6c1 | 1691 | |
861bb6c1 | 1692 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
119d24d1 | 1693 | echo "configure:1694: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1694 | # On Suns, sometimes $CPP names a directory. |
1695 | if test -n "$CPP" && test -d "$CPP"; then | |
1696 | CPP= | |
1697 | fi | |
1698 | if test -z "$CPP"; then | |
1699 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1701 | else | |
1702 | # This must be in double quotes, not single quotes, because CPP may get | |
1703 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1704 | CPP="${CC-cc} -E" | |
1705 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1706 | # not just through cpp. | |
1707 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1708 | #line 1709 "configure" |
861bb6c1 JL |
1709 | #include "confdefs.h" |
1710 | #include <assert.h> | |
1711 | Syntax Error | |
1712 | EOF | |
1713 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1714 | { (eval echo configure:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1715 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1716 | if test -z "$ac_err"; then |
1717 | : | |
1718 | else | |
1719 | echo "$ac_err" >&5 | |
1720 | echo "configure: failed program was:" >&5 | |
1721 | cat conftest.$ac_ext >&5 | |
1722 | rm -rf conftest* | |
1723 | CPP="${CC-cc} -E -traditional-cpp" | |
1724 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1725 | #line 1726 "configure" |
cd9e5e7c MK |
1726 | #include "confdefs.h" |
1727 | #include <assert.h> | |
1728 | Syntax Error | |
1729 | EOF | |
1730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1731 | { (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1733 | if test -z "$ac_err"; then | |
1734 | : | |
1735 | else | |
1736 | echo "$ac_err" >&5 | |
1737 | echo "configure: failed program was:" >&5 | |
1738 | cat conftest.$ac_ext >&5 | |
1739 | rm -rf conftest* | |
1740 | CPP="${CC-cc} -nologo -E" | |
1741 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1742 | #line 1743 "configure" |
20fced2c MM |
1743 | #include "confdefs.h" |
1744 | #include <assert.h> | |
1745 | Syntax Error | |
1746 | EOF | |
1747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1748 | { (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1749 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1750 | if test -z "$ac_err"; then |
1751 | : | |
1752 | else | |
1753 | echo "$ac_err" >&5 | |
1754 | echo "configure: failed program was:" >&5 | |
1755 | cat conftest.$ac_ext >&5 | |
1756 | rm -rf conftest* | |
1757 | CPP=/lib/cpp | |
1758 | fi | |
1759 | rm -f conftest* | |
1760 | fi | |
cd9e5e7c MK |
1761 | rm -f conftest* |
1762 | fi | |
861bb6c1 JL |
1763 | rm -f conftest* |
1764 | ac_cv_prog_CPP="$CPP" | |
1765 | fi | |
1766 | CPP="$ac_cv_prog_CPP" | |
1767 | else | |
1768 | ac_cv_prog_CPP="$CPP" | |
1769 | fi | |
1770 | echo "$ac_t""$CPP" 1>&6 | |
1771 | ||
956d6950 | 1772 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
119d24d1 | 1773 | echo "configure:1774: checking for ANSI C header files" >&5 |
956d6950 JL |
1774 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1776 | else | |
1777 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1778 | #line 1779 "configure" |
956d6950 JL |
1779 | #include "confdefs.h" |
1780 | #include <stdlib.h> | |
1781 | #include <stdarg.h> | |
1782 | #include <string.h> | |
1783 | #include <float.h> | |
1784 | EOF | |
1785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 1786 | { (eval echo configure:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1787 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1788 | if test -z "$ac_err"; then |
1789 | rm -rf conftest* | |
1790 | ac_cv_header_stdc=yes | |
1791 | else | |
1792 | echo "$ac_err" >&5 | |
1793 | echo "configure: failed program was:" >&5 | |
1794 | cat conftest.$ac_ext >&5 | |
1795 | rm -rf conftest* | |
1796 | ac_cv_header_stdc=no | |
1797 | fi | |
1798 | rm -f conftest* | |
1799 | ||
1800 | if test $ac_cv_header_stdc = yes; then | |
1801 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1802 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1803 | #line 1804 "configure" |
956d6950 JL |
1804 | #include "confdefs.h" |
1805 | #include <string.h> | |
1806 | EOF | |
1807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1808 | egrep "memchr" >/dev/null 2>&1; then | |
1809 | : | |
1810 | else | |
1811 | rm -rf conftest* | |
1812 | ac_cv_header_stdc=no | |
1813 | fi | |
1814 | rm -f conftest* | |
1815 | ||
1816 | fi | |
1817 | ||
1818 | if test $ac_cv_header_stdc = yes; then | |
1819 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1820 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1821 | #line 1822 "configure" |
956d6950 JL |
1822 | #include "confdefs.h" |
1823 | #include <stdlib.h> | |
1824 | EOF | |
1825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1826 | egrep "free" >/dev/null 2>&1; then | |
1827 | : | |
1828 | else | |
1829 | rm -rf conftest* | |
1830 | ac_cv_header_stdc=no | |
1831 | fi | |
1832 | rm -f conftest* | |
1833 | ||
1834 | fi | |
1835 | ||
1836 | if test $ac_cv_header_stdc = yes; then | |
1837 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1838 | if test "$cross_compiling" = yes; then | |
1839 | : | |
1840 | else | |
1841 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1842 | #line 1843 "configure" |
956d6950 JL |
1843 | #include "confdefs.h" |
1844 | #include <ctype.h> | |
1845 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1846 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1847 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1848 | int main () { int i; for (i = 0; i < 256; i++) | |
1849 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1850 | exit (0); } | |
1851 | ||
1852 | EOF | |
119d24d1 | 1853 | if { (eval echo configure:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1854 | then |
1855 | : | |
1856 | else | |
1857 | echo "configure: failed program was:" >&5 | |
1858 | cat conftest.$ac_ext >&5 | |
1859 | rm -fr conftest* | |
1860 | ac_cv_header_stdc=no | |
1861 | fi | |
1862 | rm -fr conftest* | |
1863 | fi | |
1864 | ||
1865 | fi | |
1866 | fi | |
1867 | ||
1868 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1869 | if test $ac_cv_header_stdc = yes; then | |
1870 | cat >> confdefs.h <<\EOF | |
1871 | #define STDC_HEADERS 1 | |
1872 | EOF | |
1873 | ||
1874 | fi | |
1875 | ||
1876 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
119d24d1 | 1877 | echo "configure:1878: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1878 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1880 | else | |
1881 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1882 | #line 1883 "configure" |
956d6950 JL |
1883 | #include "confdefs.h" |
1884 | #include <sys/types.h> | |
1885 | #include <sys/time.h> | |
1886 | #include <time.h> | |
1887 | int main() { | |
1888 | struct tm *tp; | |
1889 | ; return 0; } | |
1890 | EOF | |
119d24d1 | 1891 | if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1892 | rm -rf conftest* |
1893 | ac_cv_header_time=yes | |
1894 | else | |
1895 | echo "configure: failed program was:" >&5 | |
1896 | cat conftest.$ac_ext >&5 | |
1897 | rm -rf conftest* | |
1898 | ac_cv_header_time=no | |
1899 | fi | |
1900 | rm -f conftest* | |
1901 | fi | |
1902 | ||
1903 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1904 | if test $ac_cv_header_time = yes; then | |
1905 | cat >> confdefs.h <<\EOF | |
1906 | #define TIME_WITH_SYS_TIME 1 | |
1907 | EOF | |
1908 | ||
1909 | fi | |
1910 | ||
0a4b6309 | 1911 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
119d24d1 | 1912 | echo "configure:1913: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1913 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1915 | else | |
1916 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1917 | #line 1918 "configure" |
0a4b6309 RL |
1918 | #include "confdefs.h" |
1919 | #include <string.h> | |
1920 | #include <strings.h> | |
1921 | int main() { | |
1922 | ||
1923 | ; return 0; } | |
1924 | EOF | |
119d24d1 | 1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1926 | rm -rf conftest* |
1927 | gcc_cv_header_string=yes | |
1928 | else | |
1929 | echo "configure: failed program was:" >&5 | |
1930 | cat conftest.$ac_ext >&5 | |
1931 | rm -rf conftest* | |
1932 | gcc_cv_header_string=no | |
1933 | fi | |
1934 | rm -f conftest* | |
1935 | fi | |
1936 | ||
1937 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1938 | if test $gcc_cv_header_string = yes; then | |
1939 | cat >> confdefs.h <<\EOF | |
1940 | #define STRING_WITH_STRINGS 1 | |
1941 | EOF | |
1942 | ||
1943 | fi | |
1944 | ||
e9831ca0 | 1945 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
119d24d1 | 1946 | echo "configure:1947: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1947 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1949 | else | |
1950 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1951 | #line 1952 "configure" |
e9831ca0 KG |
1952 | #include "confdefs.h" |
1953 | #include <sys/types.h> | |
1954 | #include <sys/wait.h> | |
1955 | #ifndef WEXITSTATUS | |
1956 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1957 | #endif | |
1958 | #ifndef WIFEXITED | |
1959 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1960 | #endif | |
1961 | int main() { | |
1962 | int s; | |
1963 | wait (&s); | |
1964 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1965 | ; return 0; } | |
1966 | EOF | |
119d24d1 | 1967 | if { (eval echo configure:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1968 | rm -rf conftest* |
1969 | ac_cv_header_sys_wait_h=yes | |
1970 | else | |
1971 | echo "configure: failed program was:" >&5 | |
1972 | cat conftest.$ac_ext >&5 | |
1973 | rm -rf conftest* | |
1974 | ac_cv_header_sys_wait_h=no | |
1975 | fi | |
1976 | rm -f conftest* | |
1977 | fi | |
1978 | ||
1979 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1980 | if test $ac_cv_header_sys_wait_h = yes; then | |
1981 | cat >> confdefs.h <<\EOF | |
1982 | #define HAVE_SYS_WAIT_H 1 | |
1983 | EOF | |
1984 | ||
1985 | fi | |
1986 | ||
03c41c05 ZW |
1987 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ |
1988 | fcntl.h unistd.h stab.h sys/file.h sys/time.h \ | |
1989 | sys/resource.h sys/param.h sys/times.h sys/stat.h \ | |
1990 | direct.h malloc.h | |
861bb6c1 JL |
1991 | do |
1992 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1993 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
119d24d1 | 1994 | echo "configure:1995: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1995 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 | else | |
1998 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 1999 | #line 2000 "configure" |
861bb6c1 JL |
2000 | #include "confdefs.h" |
2001 | #include <$ac_hdr> | |
2002 | EOF | |
956d6950 | 2003 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
119d24d1 | 2004 | { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2005 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
2006 | if test -z "$ac_err"; then |
2007 | rm -rf conftest* | |
2008 | eval "ac_cv_header_$ac_safe=yes" | |
2009 | else | |
2010 | echo "$ac_err" >&5 | |
2011 | echo "configure: failed program was:" >&5 | |
2012 | cat conftest.$ac_ext >&5 | |
2013 | rm -rf conftest* | |
2014 | eval "ac_cv_header_$ac_safe=no" | |
2015 | fi | |
2016 | rm -f conftest* | |
2017 | fi | |
2018 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2019 | echo "$ac_t""yes" 1>&6 | |
2020 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2021 | cat >> confdefs.h <<EOF | |
2022 | #define $ac_tr_hdr 1 | |
2023 | EOF | |
2024 | ||
2025 | else | |
2026 | echo "$ac_t""no" 1>&6 | |
2027 | fi | |
2028 | done | |
2029 | ||
2030 | ||
f24af81b TT |
2031 | # Check for thread headers. |
2032 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
2033 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
119d24d1 | 2034 | echo "configure:2035: checking for thread.h" >&5 |
f24af81b TT |
2035 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2037 | else | |
2038 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2039 | #line 2040 "configure" |
f24af81b TT |
2040 | #include "confdefs.h" |
2041 | #include <thread.h> | |
2042 | EOF | |
2043 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2044 | { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2045 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2046 | if test -z "$ac_err"; then |
2047 | rm -rf conftest* | |
2048 | eval "ac_cv_header_$ac_safe=yes" | |
2049 | else | |
2050 | echo "$ac_err" >&5 | |
2051 | echo "configure: failed program was:" >&5 | |
2052 | cat conftest.$ac_ext >&5 | |
2053 | rm -rf conftest* | |
2054 | eval "ac_cv_header_$ac_safe=no" | |
2055 | fi | |
2056 | rm -f conftest* | |
2057 | fi | |
2058 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2059 | echo "$ac_t""yes" 1>&6 | |
2060 | have_thread_h=yes | |
2061 | else | |
2062 | echo "$ac_t""no" 1>&6 | |
2063 | have_thread_h= | |
2064 | fi | |
2065 | ||
2066 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2067 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
119d24d1 | 2068 | echo "configure:2069: checking for pthread.h" >&5 |
f24af81b TT |
2069 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2071 | else | |
2072 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2073 | #line 2074 "configure" |
f24af81b TT |
2074 | #include "confdefs.h" |
2075 | #include <pthread.h> | |
2076 | EOF | |
2077 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2078 | { (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2079 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2080 | if test -z "$ac_err"; then |
2081 | rm -rf conftest* | |
2082 | eval "ac_cv_header_$ac_safe=yes" | |
2083 | else | |
2084 | echo "$ac_err" >&5 | |
2085 | echo "configure: failed program was:" >&5 | |
2086 | cat conftest.$ac_ext >&5 | |
2087 | rm -rf conftest* | |
2088 | eval "ac_cv_header_$ac_safe=no" | |
2089 | fi | |
2090 | rm -f conftest* | |
2091 | fi | |
2092 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2093 | echo "$ac_t""yes" 1>&6 | |
2094 | have_pthread_h=yes | |
2095 | else | |
2096 | echo "$ac_t""no" 1>&6 | |
2097 | have_pthread_h= | |
2098 | fi | |
2099 | ||
2100 | ||
bcf12124 JL |
2101 | # See if GNAT has been installed |
2102 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2103 | set dummy gnatbind; ac_word=$2 | |
2104 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 2105 | echo "configure:2106: checking for $ac_word" >&5 |
bcf12124 JL |
2106 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2108 | else | |
2109 | if test -n "$gnat"; then | |
2110 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2111 | else | |
cd9e5e7c | 2112 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2113 | ac_dummy="$PATH" |
2114 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2115 | test -z "$ac_dir" && ac_dir=. |
2116 | if test -f $ac_dir/$ac_word; then | |
2117 | ac_cv_prog_gnat="yes" | |
2118 | break | |
2119 | fi | |
2120 | done | |
2121 | IFS="$ac_save_ifs" | |
2122 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2123 | fi | |
2124 | fi | |
2125 | gnat="$ac_cv_prog_gnat" | |
2126 | if test -n "$gnat"; then | |
2127 | echo "$ac_t""$gnat" 1>&6 | |
2128 | else | |
2129 | echo "$ac_t""no" 1>&6 | |
2130 | fi | |
2131 | ||
2132 | ||
890ad3ea KG |
2133 | # See if the stage1 system preprocessor understands the ANSI C |
2134 | # preprocessor stringification operator. | |
2135 | ||
2136 | ||
2137 | echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 | |
119d24d1 | 2138 | echo "configure:2139: checking for preprocessor stringizing operator" >&5 |
890ad3ea | 2139 | if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then |
76844337 RH |
2140 | echo $ac_n "(cached) $ac_c" 1>&6 |
2141 | else | |
2142 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2143 | #line 2144 "configure" |
76844337 RH |
2144 | #include "confdefs.h" |
2145 | ||
890ad3ea KG |
2146 | #define x(y) #y |
2147 | ||
2148 | char *s = x(teststring); | |
2149 | ||
76844337 | 2150 | EOF |
890ad3ea KG |
2151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2152 | egrep "#teststring" >/dev/null 2>&1; then | |
76844337 | 2153 | rm -rf conftest* |
890ad3ea | 2154 | ac_cv_c_stringize=no |
76844337 | 2155 | else |
76844337 | 2156 | rm -rf conftest* |
890ad3ea | 2157 | ac_cv_c_stringize=yes |
76844337 RH |
2158 | fi |
2159 | rm -f conftest* | |
890ad3ea | 2160 | |
76844337 RH |
2161 | fi |
2162 | ||
890ad3ea KG |
2163 | if test "${ac_cv_c_stringize}" = yes |
2164 | then | |
2165 | cat >> confdefs.h <<\EOF | |
2166 | #define HAVE_STRINGIZE 1 | |
76844337 RH |
2167 | EOF |
2168 | ||
2169 | fi | |
890ad3ea KG |
2170 | echo "$ac_t""${ac_cv_c_stringize}" 1>&6 |
2171 | ||
76844337 | 2172 | |
956d6950 JL |
2173 | # Use <inttypes.h> only if it exists, |
2174 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2175 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
119d24d1 | 2176 | echo "configure:2177: checking for inttypes.h" >&5 |
956d6950 JL |
2177 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2179 | else | |
2180 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2181 | #line 2182 "configure" |
956d6950 JL |
2182 | #include "confdefs.h" |
2183 | #include <sys/types.h> | |
2184 | #include <inttypes.h> | |
2185 | int main() { | |
2186 | intmax_t i = -1; | |
2187 | ; return 0; } | |
2188 | EOF | |
119d24d1 | 2189 | if { (eval echo configure:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2190 | rm -rf conftest* |
0056a9b5 | 2191 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2192 | else |
2193 | echo "configure: failed program was:" >&5 | |
2194 | cat conftest.$ac_ext >&5 | |
2195 | rm -rf conftest* | |
2196 | gcc_cv_header_inttypes_h=no | |
2197 | fi | |
2198 | rm -f conftest* | |
2199 | fi | |
2200 | ||
2201 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2202 | if test $gcc_cv_header_inttypes_h = yes; then |
2203 | cat >> confdefs.h <<\EOF | |
2204 | #define HAVE_INTTYPES_H 1 | |
2205 | EOF | |
2206 | ||
2207 | fi | |
956d6950 | 2208 | |
c149cc37 RL |
2209 | # |
2210 | # Determine if enumerated bitfields are unsigned. ISO C says they can | |
2211 | # be either signed or unsigned. | |
2212 | # | |
2213 | echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6 | |
119d24d1 | 2214 | echo "configure:2215: checking for unsigned enumerated bitfields" >&5 |
c149cc37 RL |
2215 | if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then |
2216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2217 | else | |
2218 | if test "$cross_compiling" = yes; then | |
2219 | gcc_cv_enum_bf_unsigned=yes | |
2220 | else | |
2221 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2222 | #line 2223 "configure" |
c149cc37 RL |
2223 | #include "confdefs.h" |
2224 | #include <stdlib.h> | |
2225 | enum t { BLAH = 128 } ; | |
2226 | struct s_t { enum t member : 8; } s ; | |
2227 | int main(void) | |
2228 | { | |
2229 | s.member = BLAH; | |
2230 | if (s.member < 0) exit(1); | |
2231 | exit(0); | |
2232 | ||
2233 | } | |
2234 | EOF | |
119d24d1 | 2235 | if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c149cc37 RL |
2236 | then |
2237 | gcc_cv_enum_bf_unsigned=yes | |
2238 | else | |
2239 | echo "configure: failed program was:" >&5 | |
2240 | cat conftest.$ac_ext >&5 | |
2241 | rm -fr conftest* | |
2242 | gcc_cv_enum_bf_unsigned=no | |
2243 | fi | |
2244 | rm -fr conftest* | |
2245 | fi | |
2246 | ||
2247 | fi | |
2248 | ||
c149cc37 RL |
2249 | echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6 |
2250 | if test $gcc_cv_enum_bf_unsigned = yes; then | |
2251 | cat >> confdefs.h <<\EOF | |
2252 | #define ENUM_BITFIELDS_ARE_UNSIGNED 1 | |
2253 | EOF | |
2254 | ||
2255 | fi | |
2256 | ||
f95e46b9 | 2257 | for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \ |
8f81384f | 2258 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 | 2259 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
005537df | 2260 | fputs_unlocked getrusage valloc |
956d6950 JL |
2261 | do |
2262 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 2263 | echo "configure:2264: checking for $ac_func" >&5 |
956d6950 JL |
2264 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2266 | else | |
2267 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2268 | #line 2269 "configure" |
956d6950 JL |
2269 | #include "confdefs.h" |
2270 | /* System header to define __stub macros and hopefully few prototypes, | |
2271 | which can conflict with char $ac_func(); below. */ | |
2272 | #include <assert.h> | |
2273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2274 | /* We use char because int might match the return type of a gcc2 | |
2275 | builtin and then its argument prototype would still apply. */ | |
2276 | char $ac_func(); | |
2277 | ||
2278 | int main() { | |
2279 | ||
2280 | /* The GNU C library defines this for functions which it implements | |
2281 | to always fail with ENOSYS. Some functions are actually named | |
2282 | something starting with __ and the normal name is an alias. */ | |
2283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2284 | choke me | |
2285 | #else | |
86702e31 | 2286 | $ac_func(); |
956d6950 JL |
2287 | #endif |
2288 | ||
2289 | ; return 0; } | |
2290 | EOF | |
119d24d1 | 2291 | if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2292 | rm -rf conftest* |
2293 | eval "ac_cv_func_$ac_func=yes" | |
2294 | else | |
2295 | echo "configure: failed program was:" >&5 | |
2296 | cat conftest.$ac_ext >&5 | |
2297 | rm -rf conftest* | |
2298 | eval "ac_cv_func_$ac_func=no" | |
2299 | fi | |
2300 | rm -f conftest* | |
2301 | fi | |
2302 | ||
2303 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2304 | echo "$ac_t""yes" 1>&6 | |
2305 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2306 | cat >> confdefs.h <<EOF | |
2307 | #define $ac_tr_func 1 | |
2308 | EOF | |
2309 | ||
2310 | else | |
2311 | echo "$ac_t""no" 1>&6 | |
2312 | fi | |
2313 | done | |
2314 | ||
6885fc87 | 2315 | |
0b9d02c6 JL |
2316 | # Make sure wchar_t is available |
2317 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2318 | ||
0a4b6309 | 2319 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
119d24d1 | 2320 | echo "configure:2321: checking for vprintf" >&5 |
0a4b6309 RL |
2321 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2323 | else | |
2324 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2325 | #line 2326 "configure" |
0a4b6309 RL |
2326 | #include "confdefs.h" |
2327 | /* System header to define __stub macros and hopefully few prototypes, | |
2328 | which can conflict with char vprintf(); below. */ | |
2329 | #include <assert.h> | |
2330 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2331 | /* We use char because int might match the return type of a gcc2 | |
2332 | builtin and then its argument prototype would still apply. */ | |
2333 | char vprintf(); | |
2334 | ||
2335 | int main() { | |
2336 | ||
2337 | /* The GNU C library defines this for functions which it implements | |
2338 | to always fail with ENOSYS. Some functions are actually named | |
2339 | something starting with __ and the normal name is an alias. */ | |
2340 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2341 | choke me | |
2342 | #else | |
86702e31 | 2343 | vprintf(); |
0a4b6309 RL |
2344 | #endif |
2345 | ||
2346 | ; return 0; } | |
2347 | EOF | |
119d24d1 | 2348 | if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2349 | rm -rf conftest* |
2350 | eval "ac_cv_func_vprintf=yes" | |
2351 | else | |
2352 | echo "configure: failed program was:" >&5 | |
2353 | cat conftest.$ac_ext >&5 | |
2354 | rm -rf conftest* | |
2355 | eval "ac_cv_func_vprintf=no" | |
2356 | fi | |
2357 | rm -f conftest* | |
2358 | fi | |
2359 | ||
2360 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2361 | echo "$ac_t""yes" 1>&6 | |
2362 | cat >> confdefs.h <<\EOF | |
2363 | #define HAVE_VPRINTF 1 | |
2364 | EOF | |
2365 | ||
2366 | else | |
2367 | echo "$ac_t""no" 1>&6 | |
2368 | fi | |
8fa1f09f | 2369 | |
0a4b6309 RL |
2370 | if test "$ac_cv_func_vprintf" != yes; then |
2371 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
119d24d1 | 2372 | echo "configure:2373: checking for _doprnt" >&5 |
0a4b6309 RL |
2373 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2375 | else | |
2376 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2377 | #line 2378 "configure" |
0a4b6309 RL |
2378 | #include "confdefs.h" |
2379 | /* System header to define __stub macros and hopefully few prototypes, | |
2380 | which can conflict with char _doprnt(); below. */ | |
2381 | #include <assert.h> | |
2382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2383 | /* We use char because int might match the return type of a gcc2 | |
2384 | builtin and then its argument prototype would still apply. */ | |
2385 | char _doprnt(); | |
2386 | ||
2387 | int main() { | |
2388 | ||
2389 | /* The GNU C library defines this for functions which it implements | |
2390 | to always fail with ENOSYS. Some functions are actually named | |
2391 | something starting with __ and the normal name is an alias. */ | |
2392 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2393 | choke me | |
2394 | #else | |
86702e31 | 2395 | _doprnt(); |
0a4b6309 RL |
2396 | #endif |
2397 | ||
2398 | ; return 0; } | |
2399 | EOF | |
119d24d1 | 2400 | if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2401 | rm -rf conftest* |
2402 | eval "ac_cv_func__doprnt=yes" | |
2403 | else | |
2404 | echo "configure: failed program was:" >&5 | |
2405 | cat conftest.$ac_ext >&5 | |
2406 | rm -rf conftest* | |
2407 | eval "ac_cv_func__doprnt=no" | |
2408 | fi | |
2409 | rm -f conftest* | |
2410 | fi | |
2411 | ||
2412 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2413 | echo "$ac_t""yes" 1>&6 | |
2414 | cat >> confdefs.h <<\EOF | |
2415 | #define HAVE_DOPRNT 1 | |
2416 | EOF | |
2417 | ||
2418 | else | |
2419 | echo "$ac_t""no" 1>&6 | |
2420 | fi | |
2421 | ||
2422 | fi | |
2423 | ||
2424 | vfprintf= | |
2425 | doprint= | |
2426 | if test $ac_cv_func_vprintf != yes ; then | |
2427 | vfprintf=vfprintf.o | |
2428 | if test $ac_cv_func__doprnt != yes ; then | |
2429 | doprint=doprint.o | |
2430 | fi | |
2431 | fi | |
2432 | ||
2433 | ||
2434 | ||
2435 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
119d24d1 | 2436 | echo "configure:2437: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2437 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2439 | else | |
2440 | if test "$cross_compiling" = yes; then | |
2441 | gcc_cv_func_printf_ptr=no | |
2442 | else | |
2443 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2444 | #line 2445 "configure" |
0a4b6309 RL |
2445 | #include "confdefs.h" |
2446 | #include <stdio.h> | |
2447 | ||
2448 | main() | |
2449 | { | |
2450 | char buf[64]; | |
2451 | char *p = buf, *q = NULL; | |
2452 | sprintf(buf, "%p", p); | |
2453 | sscanf(buf, "%p", &q); | |
2454 | exit (p != q); | |
2455 | } | |
2456 | EOF | |
119d24d1 | 2457 | if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2458 | then |
2459 | gcc_cv_func_printf_ptr=yes | |
2460 | else | |
2461 | echo "configure: failed program was:" >&5 | |
2462 | cat conftest.$ac_ext >&5 | |
2463 | rm -fr conftest* | |
2464 | gcc_cv_func_printf_ptr=no | |
2465 | fi | |
2466 | rm -fr conftest* | |
2467 | fi | |
2468 | ||
2469 | rm -f core core.* *.core | |
2470 | fi | |
2471 | ||
2472 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2473 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2474 | cat >> confdefs.h <<\EOF | |
2475 | #define HAVE_PRINTF_PTR 1 | |
2476 | EOF | |
2477 | ||
2478 | fi | |
2479 | ||
b27d2bd5 MK |
2480 | |
2481 | case "${host}" in | |
2482 | *-*-uwin*) | |
2483 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2484 | # can hang configure; on other versions, vfork exists just as a stub. | |
2485 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2486 | ac_cv_func_vfork_works=no | |
2487 | ;; | |
2488 | esac | |
c375c43b | 2489 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
119d24d1 | 2490 | echo "configure:2491: checking for pid_t" >&5 |
c375c43b KG |
2491 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2493 | else | |
2494 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2495 | #line 2496 "configure" |
c375c43b KG |
2496 | #include "confdefs.h" |
2497 | #include <sys/types.h> | |
2498 | #if STDC_HEADERS | |
2499 | #include <stdlib.h> | |
2500 | #include <stddef.h> | |
2501 | #endif | |
2502 | EOF | |
2503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2504 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2505 | rm -rf conftest* |
2506 | ac_cv_type_pid_t=yes | |
2507 | else | |
2508 | rm -rf conftest* | |
2509 | ac_cv_type_pid_t=no | |
2510 | fi | |
2511 | rm -f conftest* | |
2512 | ||
2513 | fi | |
2514 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2515 | if test $ac_cv_type_pid_t = no; then | |
2516 | cat >> confdefs.h <<\EOF | |
2517 | #define pid_t int | |
2518 | EOF | |
2519 | ||
2520 | fi | |
2521 | ||
2522 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2523 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
119d24d1 | 2524 | echo "configure:2525: checking for vfork.h" >&5 |
c375c43b KG |
2525 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2527 | else | |
2528 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2529 | #line 2530 "configure" |
c375c43b KG |
2530 | #include "confdefs.h" |
2531 | #include <vfork.h> | |
2532 | EOF | |
2533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 2534 | { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2536 | if test -z "$ac_err"; then |
2537 | rm -rf conftest* | |
2538 | eval "ac_cv_header_$ac_safe=yes" | |
2539 | else | |
2540 | echo "$ac_err" >&5 | |
2541 | echo "configure: failed program was:" >&5 | |
2542 | cat conftest.$ac_ext >&5 | |
2543 | rm -rf conftest* | |
2544 | eval "ac_cv_header_$ac_safe=no" | |
2545 | fi | |
2546 | rm -f conftest* | |
2547 | fi | |
2548 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2549 | echo "$ac_t""yes" 1>&6 | |
2550 | cat >> confdefs.h <<\EOF | |
2551 | #define HAVE_VFORK_H 1 | |
2552 | EOF | |
2553 | ||
2554 | else | |
2555 | echo "$ac_t""no" 1>&6 | |
2556 | fi | |
2557 | ||
2558 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
119d24d1 | 2559 | echo "configure:2560: checking for working vfork" >&5 |
c375c43b KG |
2560 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2562 | else | |
2563 | if test "$cross_compiling" = yes; then | |
2564 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
119d24d1 | 2565 | echo "configure:2566: checking for vfork" >&5 |
c375c43b KG |
2566 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2568 | else | |
2569 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2570 | #line 2571 "configure" |
c375c43b KG |
2571 | #include "confdefs.h" |
2572 | /* System header to define __stub macros and hopefully few prototypes, | |
2573 | which can conflict with char vfork(); below. */ | |
2574 | #include <assert.h> | |
2575 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2576 | /* We use char because int might match the return type of a gcc2 | |
2577 | builtin and then its argument prototype would still apply. */ | |
2578 | char vfork(); | |
2579 | ||
2580 | int main() { | |
2581 | ||
2582 | /* The GNU C library defines this for functions which it implements | |
2583 | to always fail with ENOSYS. Some functions are actually named | |
2584 | something starting with __ and the normal name is an alias. */ | |
2585 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2586 | choke me | |
2587 | #else | |
86702e31 | 2588 | vfork(); |
c375c43b KG |
2589 | #endif |
2590 | ||
2591 | ; return 0; } | |
2592 | EOF | |
119d24d1 | 2593 | if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2594 | rm -rf conftest* |
2595 | eval "ac_cv_func_vfork=yes" | |
2596 | else | |
2597 | echo "configure: failed program was:" >&5 | |
2598 | cat conftest.$ac_ext >&5 | |
2599 | rm -rf conftest* | |
2600 | eval "ac_cv_func_vfork=no" | |
2601 | fi | |
2602 | rm -f conftest* | |
2603 | fi | |
2604 | ||
2605 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2606 | echo "$ac_t""yes" 1>&6 | |
2607 | : | |
2608 | else | |
2609 | echo "$ac_t""no" 1>&6 | |
2610 | fi | |
2611 | ||
2612 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2613 | else | |
2614 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2615 | #line 2616 "configure" |
c375c43b KG |
2616 | #include "confdefs.h" |
2617 | /* Thanks to Paul Eggert for this test. */ | |
2618 | #include <stdio.h> | |
2619 | #include <sys/types.h> | |
2620 | #include <sys/stat.h> | |
2621 | #ifdef HAVE_UNISTD_H | |
2622 | #include <unistd.h> | |
2623 | #endif | |
2624 | #ifdef HAVE_VFORK_H | |
2625 | #include <vfork.h> | |
2626 | #endif | |
2627 | /* On some sparc systems, changes by the child to local and incoming | |
2628 | argument registers are propagated back to the parent. | |
2629 | The compiler is told about this with #include <vfork.h>, | |
2630 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2631 | Test for this by using a static variable whose address | |
2632 | is put into a register that is clobbered by the vfork. */ | |
2633 | static | |
2634 | #ifdef __cplusplus | |
2635 | sparc_address_test (int arg) | |
2636 | #else | |
2637 | sparc_address_test (arg) int arg; | |
2638 | #endif | |
2639 | { | |
2640 | static pid_t child; | |
2641 | if (!child) { | |
2642 | child = vfork (); | |
2643 | if (child < 0) { | |
2644 | perror ("vfork"); | |
2645 | _exit(2); | |
2646 | } | |
2647 | if (!child) { | |
2648 | arg = getpid(); | |
2649 | write(-1, "", 0); | |
2650 | _exit (arg); | |
2651 | } | |
2652 | } | |
2653 | } | |
2654 | main() { | |
2655 | pid_t parent = getpid (); | |
2656 | pid_t child; | |
2657 | ||
2658 | sparc_address_test (); | |
2659 | ||
2660 | child = vfork (); | |
2661 | ||
2662 | if (child == 0) { | |
2663 | /* Here is another test for sparc vfork register problems. | |
2664 | This test uses lots of local variables, at least | |
2665 | as many local variables as main has allocated so far | |
2666 | including compiler temporaries. 4 locals are enough for | |
2667 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2668 | A buggy compiler should reuse the register of parent | |
2669 | for one of the local variables, since it will think that | |
2670 | parent can't possibly be used any more in this routine. | |
2671 | Assigning to the local variable will thus munge parent | |
2672 | in the parent process. */ | |
2673 | pid_t | |
2674 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2675 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2676 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2677 | use the same hardware register for all 8 local variables. */ | |
2678 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2679 | || p != p5 || p != p6 || p != p7) | |
2680 | _exit(1); | |
2681 | ||
2682 | /* On some systems (e.g. IRIX 3.3), | |
2683 | vfork doesn't separate parent from child file descriptors. | |
2684 | If the child closes a descriptor before it execs or exits, | |
2685 | this munges the parent's descriptor as well. | |
2686 | Test for this by closing stdout in the child. */ | |
2687 | _exit(close(fileno(stdout)) != 0); | |
2688 | } else { | |
2689 | int status; | |
2690 | struct stat st; | |
2691 | ||
2692 | while (wait(&status) != child) | |
2693 | ; | |
2694 | exit( | |
2695 | /* Was there some problem with vforking? */ | |
2696 | child < 0 | |
2697 | ||
2698 | /* Did the child fail? (This shouldn't happen.) */ | |
2699 | || status | |
2700 | ||
2701 | /* Did the vfork/compiler bug occur? */ | |
2702 | || parent != getpid() | |
2703 | ||
2704 | /* Did the file descriptor bug occur? */ | |
2705 | || fstat(fileno(stdout), &st) != 0 | |
2706 | ); | |
2707 | } | |
2708 | } | |
2709 | EOF | |
119d24d1 | 2710 | if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2711 | then |
2712 | ac_cv_func_vfork_works=yes | |
2713 | else | |
2714 | echo "configure: failed program was:" >&5 | |
2715 | cat conftest.$ac_ext >&5 | |
2716 | rm -fr conftest* | |
2717 | ac_cv_func_vfork_works=no | |
2718 | fi | |
2719 | rm -fr conftest* | |
2720 | fi | |
2721 | ||
2722 | fi | |
2723 | ||
2724 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2725 | if test $ac_cv_func_vfork_works = no; then | |
2726 | cat >> confdefs.h <<\EOF | |
2727 | #define vfork fork | |
2728 | EOF | |
2729 | ||
2730 | fi | |
2731 | ||
81bf3d9e | 2732 | for ac_hdr in unistd.h |
0a4b6309 | 2733 | do |
81bf3d9e RH |
2734 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2735 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
119d24d1 | 2736 | echo "configure:2737: checking for $ac_hdr" >&5 |
81bf3d9e | 2737 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
0a4b6309 RL |
2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
2739 | else | |
2740 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2741 | #line 2742 "configure" |
0a4b6309 | 2742 | #include "confdefs.h" |
81bf3d9e | 2743 | #include <$ac_hdr> |
0a4b6309 | 2744 | EOF |
81bf3d9e | 2745 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
119d24d1 | 2746 | { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
81bf3d9e RH |
2747 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2748 | if test -z "$ac_err"; then | |
0a4b6309 | 2749 | rm -rf conftest* |
81bf3d9e | 2750 | eval "ac_cv_header_$ac_safe=yes" |
0a4b6309 | 2751 | else |
81bf3d9e | 2752 | echo "$ac_err" >&5 |
0a4b6309 RL |
2753 | echo "configure: failed program was:" >&5 |
2754 | cat conftest.$ac_ext >&5 | |
2755 | rm -rf conftest* | |
81bf3d9e | 2756 | eval "ac_cv_header_$ac_safe=no" |
0a4b6309 RL |
2757 | fi |
2758 | rm -f conftest* | |
2759 | fi | |
81bf3d9e | 2760 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
0a4b6309 | 2761 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2762 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
0a4b6309 | 2763 | cat >> confdefs.h <<EOF |
81bf3d9e | 2764 | #define $ac_tr_hdr 1 |
0a4b6309 | 2765 | EOF |
81bf3d9e | 2766 | |
0a4b6309 RL |
2767 | else |
2768 | echo "$ac_t""no" 1>&6 | |
2769 | fi | |
0a4b6309 RL |
2770 | done |
2771 | ||
81bf3d9e | 2772 | for ac_func in getpagesize |
0a4b6309 | 2773 | do |
81bf3d9e | 2774 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
119d24d1 | 2775 | echo "configure:2776: checking for $ac_func" >&5 |
81bf3d9e | 2776 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
0a4b6309 RL |
2777 | echo $ac_n "(cached) $ac_c" 1>&6 |
2778 | else | |
2779 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2780 | #line 2781 "configure" |
0a4b6309 | 2781 | #include "confdefs.h" |
81bf3d9e RH |
2782 | /* System header to define __stub macros and hopefully few prototypes, |
2783 | which can conflict with char $ac_func(); below. */ | |
2784 | #include <assert.h> | |
2785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2786 | /* We use char because int might match the return type of a gcc2 | |
2787 | builtin and then its argument prototype would still apply. */ | |
2788 | char $ac_func(); | |
8fa1f09f | 2789 | |
81bf3d9e RH |
2790 | int main() { |
2791 | ||
2792 | /* The GNU C library defines this for functions which it implements | |
2793 | to always fail with ENOSYS. Some functions are actually named | |
2794 | something starting with __ and the normal name is an alias. */ | |
2795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2796 | choke me | |
c5c76735 | 2797 | #else |
86702e31 | 2798 | $ac_func(); |
c5c76735 JL |
2799 | #endif |
2800 | ||
c5c76735 JL |
2801 | ; return 0; } |
2802 | EOF | |
119d24d1 | 2803 | if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c5c76735 | 2804 | rm -rf conftest* |
81bf3d9e | 2805 | eval "ac_cv_func_$ac_func=yes" |
c5c76735 JL |
2806 | else |
2807 | echo "configure: failed program was:" >&5 | |
2808 | cat conftest.$ac_ext >&5 | |
2809 | rm -rf conftest* | |
81bf3d9e | 2810 | eval "ac_cv_func_$ac_func=no" |
c5c76735 JL |
2811 | fi |
2812 | rm -f conftest* | |
2813 | fi | |
2814 | ||
81bf3d9e | 2815 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
c5c76735 | 2816 | echo "$ac_t""yes" 1>&6 |
81bf3d9e | 2817 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
c5c76735 | 2818 | cat >> confdefs.h <<EOF |
81bf3d9e | 2819 | #define $ac_tr_func 1 |
c5c76735 | 2820 | EOF |
81bf3d9e | 2821 | |
c5c76735 JL |
2822 | else |
2823 | echo "$ac_t""no" 1>&6 | |
2824 | fi | |
c5c76735 JL |
2825 | done |
2826 | ||
4acab94b | 2827 | echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6 |
119d24d1 | 2828 | echo "configure:2829: checking for working mmap from /dev/zero" >&5 |
a0f20853 | 2829 | if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then |
c5c76735 | 2830 | echo $ac_n "(cached) $ac_c" 1>&6 |
81bf3d9e RH |
2831 | else |
2832 | if test "$cross_compiling" = yes; then | |
4acab94b | 2833 | ac_cv_func_mmap_anywhere=no |
c5c76735 JL |
2834 | else |
2835 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2836 | #line 2837 "configure" |
c5c76735 JL |
2837 | #include "confdefs.h" |
2838 | ||
4acab94b AO |
2839 | /* Test by Richard Henderson and Alexandre Oliva. |
2840 | Check whether mmap from /dev/zero works. */ | |
d2cabf16 | 2841 | #include <sys/types.h> |
81bf3d9e RH |
2842 | #include <fcntl.h> |
2843 | #include <sys/mman.h> | |
0a4b6309 | 2844 | |
81bf3d9e RH |
2845 | /* This mess was copied from the GNU getpagesize.h. */ |
2846 | #ifndef HAVE_GETPAGESIZE | |
2847 | # ifdef HAVE_UNISTD_H | |
2848 | # include <unistd.h> | |
2849 | # endif | |
0a4b6309 | 2850 | |
81bf3d9e RH |
2851 | /* Assume that all systems that can run configure have sys/param.h. */ |
2852 | # ifndef HAVE_SYS_PARAM_H | |
2853 | # define HAVE_SYS_PARAM_H 1 | |
2854 | # endif | |
0a4b6309 | 2855 | |
81bf3d9e RH |
2856 | # ifdef _SC_PAGESIZE |
2857 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2858 | # else /* no _SC_PAGESIZE */ | |
2859 | # ifdef HAVE_SYS_PARAM_H | |
2860 | # include <sys/param.h> | |
2861 | # ifdef EXEC_PAGESIZE | |
2862 | # define getpagesize() EXEC_PAGESIZE | |
2863 | # else /* no EXEC_PAGESIZE */ | |
2864 | # ifdef NBPG | |
2865 | # define getpagesize() NBPG * CLSIZE | |
2866 | # ifndef CLSIZE | |
2867 | # define CLSIZE 1 | |
2868 | # endif /* no CLSIZE */ | |
2869 | # else /* no NBPG */ | |
2870 | # ifdef NBPC | |
2871 | # define getpagesize() NBPC | |
2872 | # else /* no NBPC */ | |
2873 | # ifdef PAGESIZE | |
2874 | # define getpagesize() PAGESIZE | |
2875 | # endif /* PAGESIZE */ | |
2876 | # endif /* no NBPC */ | |
2877 | # endif /* no NBPG */ | |
2878 | # endif /* no EXEC_PAGESIZE */ | |
2879 | # else /* no HAVE_SYS_PARAM_H */ | |
2880 | # define getpagesize() 8192 /* punt totally */ | |
2881 | # endif /* no HAVE_SYS_PARAM_H */ | |
2882 | # endif /* no _SC_PAGESIZE */ | |
0a4b6309 | 2883 | |
81bf3d9e | 2884 | #endif /* no HAVE_GETPAGESIZE */ |
0a4b6309 | 2885 | |
4acab94b | 2886 | int main() |
81bf3d9e | 2887 | { |
4acab94b AO |
2888 | char *x; |
2889 | int fd, pg; | |
81bf3d9e | 2890 | |
4acab94b AO |
2891 | fd = open("/dev/zero", O_RDWR); |
2892 | if (fd < 0) | |
2893 | exit(1); | |
81bf3d9e | 2894 | |
4acab94b AO |
2895 | pg = getpagesize(); |
2896 | x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); | |
2897 | if (x == (char *) -1) | |
2898 | exit(2); | |
81bf3d9e | 2899 | |
4acab94b | 2900 | *(int *)x += 1; |
81bf3d9e | 2901 | |
4acab94b AO |
2902 | if (munmap(x, pg) < 0) |
2903 | exit(3); | |
81bf3d9e | 2904 | |
4acab94b AO |
2905 | exit(0); |
2906 | } | |
81bf3d9e | 2907 | EOF |
119d24d1 | 2908 | if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
81bf3d9e | 2909 | then |
4acab94b | 2910 | ac_cv_func_mmap_anywhere=yes |
81bf3d9e RH |
2911 | else |
2912 | echo "configure: failed program was:" >&5 | |
2913 | cat conftest.$ac_ext >&5 | |
2914 | rm -fr conftest* | |
4acab94b | 2915 | ac_cv_func_mmap_anywhere=no |
81bf3d9e RH |
2916 | fi |
2917 | rm -fr conftest* | |
2918 | fi | |
2919 | ||
2920 | fi | |
2921 | ||
a0f20853 | 2922 | echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6 |
4acab94b | 2923 | if test $ac_cv_func_mmap_anywhere = yes; then |
81bf3d9e | 2924 | cat >> confdefs.h <<\EOF |
4acab94b | 2925 | #define HAVE_MMAP_ANYWHERE 1 |
81bf3d9e RH |
2926 | EOF |
2927 | ||
2928 | fi | |
2929 | ||
56f02b88 | 2930 | echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6 |
119d24d1 | 2931 | echo "configure:2932: checking for working mmap of a file" >&5 |
56f02b88 ZW |
2932 | if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then |
2933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2934 | else | |
2935 | # Create a file one thousand bytes long. | |
2936 | for i in 1 2 3 4 5 6 7 8 9 0 | |
2937 | do for j in 1 2 3 4 5 6 7 8 9 0 | |
2938 | do echo $i $j xxxxx | |
2939 | done | |
2940 | done > conftestdata$$ | |
2941 | ||
2942 | if test "$cross_compiling" = yes; then | |
2943 | ac_cv_func_mmap_file=no | |
2944 | else | |
2945 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 2946 | #line 2947 "configure" |
56f02b88 ZW |
2947 | #include "confdefs.h" |
2948 | ||
2949 | /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by | |
2950 | Richard Henderson and Alexandre Oliva. | |
2951 | Check whether read-only mmap of a plain file works. */ | |
2952 | #include <sys/types.h> | |
2953 | #include <sys/stat.h> | |
2954 | #include <fcntl.h> | |
2955 | #include <sys/mman.h> | |
2956 | ||
2957 | int main() | |
2958 | { | |
2959 | char *x; | |
2960 | int fd; | |
2961 | struct stat st; | |
2962 | ||
2963 | fd = open("conftestdata$$", O_RDONLY); | |
2964 | if (fd < 0) | |
2965 | exit(1); | |
2966 | ||
2967 | if (fstat (fd, &st)) | |
2968 | exit(2); | |
2969 | ||
2970 | x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); | |
2971 | if (x == (char *) -1) | |
2972 | exit(3); | |
2973 | ||
2974 | if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ') | |
2975 | exit(4); | |
2976 | ||
2977 | if (munmap(x, st.st_size) < 0) | |
2978 | exit(5); | |
2979 | ||
2980 | exit(0); | |
2981 | } | |
2982 | EOF | |
119d24d1 | 2983 | if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
56f02b88 ZW |
2984 | then |
2985 | ac_cv_func_mmap_file=yes | |
2986 | else | |
2987 | echo "configure: failed program was:" >&5 | |
2988 | cat conftest.$ac_ext >&5 | |
2989 | rm -fr conftest* | |
2990 | ac_cv_func_mmap_file=no | |
2991 | fi | |
2992 | rm -fr conftest* | |
2993 | fi | |
2994 | ||
2995 | fi | |
2996 | ||
2997 | echo "$ac_t""$ac_cv_func_mmap_file" 1>&6 | |
2998 | if test $ac_cv_func_mmap_file = yes; then | |
2999 | cat >> confdefs.h <<\EOF | |
3000 | #define HAVE_MMAP_FILE 1 | |
3001 | EOF | |
3002 | ||
3003 | fi | |
3004 | ||
81bf3d9e RH |
3005 | |
3006 | for ac_func in bcopy bzero bcmp \ | |
f95e46b9 | 3007 | index rindex getenv atol sbrk abort atof getcwd getwd \ |
11950183 | 3008 | strsignal putc_unlocked fputs_unlocked strstr environ |
81bf3d9e RH |
3009 | do |
3010 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
119d24d1 | 3011 | echo "configure:3012: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3012 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3014 | else | |
3015 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 3016 | #line 3017 "configure" |
81bf3d9e RH |
3017 | #include "confdefs.h" |
3018 | ||
3019 | #include <stdio.h> | |
3020 | #ifdef STRING_WITH_STRINGS | |
3021 | # include <string.h> | |
3022 | # include <strings.h> | |
3023 | #else | |
3024 | # ifdef HAVE_STRING_H | |
3025 | # include <string.h> | |
3026 | # else | |
3027 | # ifdef HAVE_STRINGS_H | |
3028 | # include <strings.h> | |
3029 | # endif | |
3030 | # endif | |
3031 | #endif | |
3032 | #ifdef HAVE_STDLIB_H | |
3033 | #include <stdlib.h> | |
3034 | #endif | |
3035 | #ifdef HAVE_UNISTD_H | |
3036 | #include <unistd.h> | |
3037 | #endif | |
3038 | #ifndef HAVE_RINDEX | |
11950183 | 3039 | #ifndef rindex |
81bf3d9e RH |
3040 | #define rindex strrchr |
3041 | #endif | |
11950183 | 3042 | #endif |
81bf3d9e | 3043 | #ifndef HAVE_INDEX |
11950183 | 3044 | #ifndef index |
81bf3d9e RH |
3045 | #define index strchr |
3046 | #endif | |
11950183 | 3047 | #endif |
81bf3d9e RH |
3048 | |
3049 | int main() { | |
3050 | char *(*pfn) = (char *(*)) $ac_func | |
3051 | ; return 0; } | |
3052 | EOF | |
119d24d1 | 3053 | if { (eval echo configure:3054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3054 | rm -rf conftest* |
3055 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3056 | else | |
3057 | echo "configure: failed program was:" >&5 | |
3058 | cat conftest.$ac_ext >&5 | |
3059 | rm -rf conftest* | |
3060 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3061 | fi | |
3062 | rm -f conftest* | |
3063 | fi | |
3064 | ||
3065 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3066 | echo "$ac_t""yes" 1>&6 | |
3067 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3068 | cat >> confdefs.h <<EOF | |
3069 | #define $gcc_tr_decl 1 | |
3070 | EOF | |
3071 | ||
3072 | else | |
3073 | echo "$ac_t""no" 1>&6 | |
3074 | fi | |
3075 | ||
3076 | done | |
3077 | ||
3078 | ||
3079 | for ac_func in malloc realloc calloc free | |
3080 | do | |
3081 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
119d24d1 | 3082 | echo "configure:3083: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3083 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3085 | else | |
3086 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 3087 | #line 3088 "configure" |
81bf3d9e RH |
3088 | #include "confdefs.h" |
3089 | ||
3090 | #include <stdio.h> | |
3091 | #ifdef STRING_WITH_STRINGS | |
3092 | # include <string.h> | |
3093 | # include <strings.h> | |
3094 | #else | |
3095 | # ifdef HAVE_STRING_H | |
3096 | # include <string.h> | |
3097 | # else | |
3098 | # ifdef HAVE_STRINGS_H | |
3099 | # include <strings.h> | |
3100 | # endif | |
3101 | # endif | |
3102 | #endif | |
3103 | #ifdef HAVE_STDLIB_H | |
3104 | #include <stdlib.h> | |
3105 | #endif | |
3106 | #ifdef HAVE_UNISTD_H | |
3107 | #include <unistd.h> | |
3108 | #endif | |
3109 | #ifndef HAVE_RINDEX | |
11950183 | 3110 | #ifndef rindex |
81bf3d9e RH |
3111 | #define rindex strrchr |
3112 | #endif | |
11950183 | 3113 | #endif |
81bf3d9e | 3114 | #ifndef HAVE_INDEX |
11950183 | 3115 | #ifndef index |
81bf3d9e RH |
3116 | #define index strchr |
3117 | #endif | |
11950183 | 3118 | #endif |
81bf3d9e RH |
3119 | #ifdef HAVE_MALLOC_H |
3120 | #include <malloc.h> | |
3121 | #endif | |
3122 | ||
3123 | int main() { | |
3124 | char *(*pfn) = (char *(*)) $ac_func | |
3125 | ; return 0; } | |
3126 | EOF | |
119d24d1 | 3127 | if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3128 | rm -rf conftest* |
3129 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3130 | else | |
3131 | echo "configure: failed program was:" >&5 | |
3132 | cat conftest.$ac_ext >&5 | |
3133 | rm -rf conftest* | |
3134 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3135 | fi | |
3136 | rm -f conftest* | |
3137 | fi | |
3138 | ||
3139 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3140 | echo "$ac_t""yes" 1>&6 | |
3141 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3142 | cat >> confdefs.h <<EOF | |
3143 | #define $gcc_tr_decl 1 | |
3144 | EOF | |
3145 | ||
3146 | else | |
3147 | echo "$ac_t""no" 1>&6 | |
3148 | fi | |
3149 | ||
3150 | done | |
3151 | ||
3152 | ||
3153 | for ac_func in getrlimit setrlimit getrusage | |
3154 | do | |
3155 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
119d24d1 | 3156 | echo "configure:3157: checking whether $ac_func must be declared" >&5 |
81bf3d9e RH |
3157 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
3158 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3159 | else | |
3160 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 3161 | #line 3162 "configure" |
81bf3d9e RH |
3162 | #include "confdefs.h" |
3163 | ||
3164 | #include <stdio.h> | |
3165 | #ifdef STRING_WITH_STRINGS | |
3166 | # include <string.h> | |
3167 | # include <strings.h> | |
3168 | #else | |
3169 | # ifdef HAVE_STRING_H | |
3170 | # include <string.h> | |
3171 | # else | |
3172 | # ifdef HAVE_STRINGS_H | |
3173 | # include <strings.h> | |
3174 | # endif | |
3175 | # endif | |
3176 | #endif | |
3177 | #ifdef HAVE_STDLIB_H | |
3178 | #include <stdlib.h> | |
3179 | #endif | |
3180 | #ifdef HAVE_UNISTD_H | |
3181 | #include <unistd.h> | |
3182 | #endif | |
3183 | #ifndef HAVE_RINDEX | |
11950183 | 3184 | #ifndef rindex |
81bf3d9e RH |
3185 | #define rindex strrchr |
3186 | #endif | |
11950183 | 3187 | #endif |
81bf3d9e | 3188 | #ifndef HAVE_INDEX |
11950183 | 3189 | #ifndef index |
81bf3d9e RH |
3190 | #define index strchr |
3191 | #endif | |
11950183 | 3192 | #endif |
81bf3d9e RH |
3193 | #include <sys/types.h> |
3194 | #ifdef HAVE_SYS_RESOURCE_H | |
3195 | #include <sys/resource.h> | |
3196 | #endif | |
3197 | ||
3198 | int main() { | |
3199 | char *(*pfn) = (char *(*)) $ac_func | |
3200 | ; return 0; } | |
3201 | EOF | |
119d24d1 | 3202 | if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
81bf3d9e RH |
3203 | rm -rf conftest* |
3204 | eval "gcc_cv_decl_needed_$ac_func=no" | |
3205 | else | |
3206 | echo "configure: failed program was:" >&5 | |
3207 | cat conftest.$ac_ext >&5 | |
3208 | rm -rf conftest* | |
3209 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
3210 | fi | |
3211 | rm -f conftest* | |
3212 | fi | |
3213 | ||
3214 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
3215 | echo "$ac_t""yes" 1>&6 | |
3216 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3217 | cat >> confdefs.h <<EOF | |
3218 | #define $gcc_tr_decl 1 | |
3219 | EOF | |
3220 | ||
3221 | else | |
3222 | echo "$ac_t""no" 1>&6 | |
3223 | fi | |
3224 | ||
3225 | done | |
3226 | ||
3227 | ||
75923b2f MK |
3228 | # mkdir takes a single argument on some systems. |
3229 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
119d24d1 | 3230 | echo "configure:3231: checking if mkdir takes one argument" >&5 |
75923b2f MK |
3231 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
3232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3233 | else | |
3234 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 3235 | #line 3236 "configure" |
75923b2f MK |
3236 | #include "confdefs.h" |
3237 | ||
3238 | #include <sys/types.h> | |
3239 | #ifdef HAVE_SYS_STAT_H | |
3240 | # include <sys/stat.h> | |
3241 | #endif | |
3242 | #ifdef HAVE_UNISTD_H | |
3243 | # include <unistd.h> | |
3244 | #endif | |
3245 | #ifdef HAVE_DIRECT_H | |
3246 | # include <direct.h> | |
3247 | #endif | |
3248 | int main() { | |
3249 | mkdir ("foo", 0); | |
3250 | ; return 0; } | |
3251 | EOF | |
119d24d1 | 3252 | if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
3253 | rm -rf conftest* |
3254 | gcc_cv_mkdir_takes_one_arg=no | |
3255 | else | |
3256 | echo "configure: failed program was:" >&5 | |
3257 | cat conftest.$ac_ext >&5 | |
3258 | rm -rf conftest* | |
3259 | gcc_cv_mkdir_takes_one_arg=yes | |
3260 | fi | |
3261 | rm -f conftest* | |
3262 | fi | |
3263 | ||
3264 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
3265 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
3266 | cat >> confdefs.h <<\EOF | |
3267 | #define MKDIR_TAKES_ONE_ARG 1 | |
3268 | EOF | |
3269 | ||
3270 | fi | |
3271 | ||
3272 | ||
861bb6c1 JL |
3273 | # File extensions |
3274 | manext='.1' | |
3275 | objext='.o' | |
3276 | ||
3277 | ||
3278 | ||
3279 | build_xm_file= | |
f6cb0e63 | 3280 | build_xm_defines= |
861bb6c1 JL |
3281 | build_install_headers_dir=install-headers-tar |
3282 | build_exeext= | |
3283 | host_xm_file= | |
f6cb0e63 | 3284 | host_xm_defines= |
861bb6c1 JL |
3285 | host_xmake_file= |
3286 | host_truncate_target= | |
6e26218f | 3287 | host_exeext= |
861bb6c1 JL |
3288 | |
3289 | # Decode the host machine, then the target machine. | |
3290 | # For the host machine, we save the xm_file variable as host_xm_file; | |
3291 | # then we decode the target machine and forget everything else | |
3292 | # that came from the host machine. | |
3293 | for machine in $build $host $target; do | |
3294 | ||
3295 | out_file= | |
3296 | xmake_file= | |
3297 | tmake_file= | |
3298 | extra_headers= | |
3299 | extra_passes= | |
3300 | extra_parts= | |
3301 | extra_programs= | |
3302 | extra_objs= | |
3303 | extra_host_objs= | |
3304 | extra_gcc_objs= | |
f6cb0e63 | 3305 | xm_defines= |
861bb6c1 JL |
3306 | float_format= |
3307 | # Set this to force installation and use of collect2. | |
3308 | use_collect2= | |
3309 | # Set this to override the default target model. | |
3310 | target_cpu_default= | |
861bb6c1 JL |
3311 | # Set this to control how the header file directory is installed. |
3312 | install_headers_dir=install-headers-tar | |
3313 | # Set this to a non-empty list of args to pass to cpp if the target | |
3314 | # wants its .md file passed through cpp. | |
3315 | md_cppflags= | |
3316 | # Set this if directory names should be truncated to 14 characters. | |
3317 | truncate_target= | |
3318 | # Set this if gdb needs a dir command with `dirname $out_file` | |
3319 | gdb_needs_out_file_path= | |
3320 | # Set this if the build machine requires executables to have a | |
3321 | # file name suffix. | |
3322 | exeext= | |
a851212a JW |
3323 | # Set this to control which thread package will be used. |
3324 | thread_file= | |
df6faf79 JW |
3325 | # Reinitialize these from the flag values every loop pass, since some |
3326 | # configure entries modify them. | |
3327 | gas="$gas_flag" | |
3328 | gnu_ld="$gnu_ld_flag" | |
e445171e | 3329 | enable_threads=$enable_threads_flag |
861bb6c1 | 3330 | |
6baf1cc8 BS |
3331 | # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be |
3332 | # updated in each machine entry. | |
3333 | tm_p_file= | |
861bb6c1 JL |
3334 | cpu_type=`echo $machine | sed 's/-.*$//'` |
3335 | case $machine in | |
3336 | alpha*-*-*) | |
3337 | cpu_type=alpha | |
3338 | ;; | |
3339 | arm*-*-*) | |
3340 | cpu_type=arm | |
3341 | ;; | |
3342 | c*-convex-*) | |
3343 | cpu_type=convex | |
3344 | ;; | |
f6cb0e63 | 3345 | i[34567]86-*-*) |
861bb6c1 JL |
3346 | cpu_type=i386 |
3347 | ;; | |
3348 | hppa*-*-*) | |
3349 | cpu_type=pa | |
3350 | ;; | |
3351 | m68000-*-*) | |
3352 | cpu_type=m68k | |
3353 | ;; | |
3354 | mips*-*-*) | |
3355 | cpu_type=mips | |
3356 | ;; | |
1b992148 SC |
3357 | pj*-*-*) |
3358 | cpu_type=pj | |
3359 | ;; | |
861bb6c1 JL |
3360 | powerpc*-*-*) |
3361 | cpu_type=rs6000 | |
3362 | ;; | |
3363 | pyramid-*-*) | |
3364 | cpu_type=pyr | |
3365 | ;; | |
3366 | sparc*-*-*) | |
3367 | cpu_type=sparc | |
3368 | ;; | |
3369 | esac | |
3370 | ||
3371 | tm_file=${cpu_type}/${cpu_type}.h | |
3372 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
6baf1cc8 BS |
3373 | if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h; |
3374 | then | |
3375 | tm_p_file=${cpu_type}/${cpu_type}-protos.h; | |
3376 | fi | |
7aae67a2 JM |
3377 | # On a.out targets, we need to use collect2. |
3378 | case $machine in | |
3379 | *-*-*aout*) | |
3380 | use_collect2=yes | |
3381 | ;; | |
3382 | esac | |
3383 | ||
1b4a979b | 3384 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
3385 | case $machine in |
3386 | *-*-linux-gnu*) | |
c7391272 | 3387 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 3388 | ;; |
1b4a979b ME |
3389 | *-*-openbsd*) |
3390 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
3391 | tmake_file="t-libc-ok t-openbsd" |
3392 | # avoid surprises, always provide an xm-openbsd file | |
3393 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
3394 | # don't depend on processor x-fragments as well |
3395 | xmake_file=none | |
1b4a979b ME |
3396 | if test x$enable_threads = xyes; then |
3397 | thread_file='posix' | |
3398 | tmake_file="${tmake_file} t-openbsd-thread" | |
3399 | fi | |
3400 | ;; | |
f6cb0e63 JL |
3401 | esac |
3402 | ||
861bb6c1 JL |
3403 | case $machine in |
3404 | # Support site-specific machine types. | |
3405 | *local*) | |
3406 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
3407 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
3408 | xm_file=${cpu_type}/xm-$rest.h | |
3409 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 3410 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
3411 | then xmake_file=${cpu_type}/x-$rest; \ |
3412 | else true; \ | |
3413 | fi | |
75bffa71 | 3414 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
3415 | then tmake_file=${cpu_type}/t-$rest; \ |
3416 | else true; \ | |
3417 | fi | |
3418 | ;; | |
3419 | 1750a-*-*) | |
3420 | ;; | |
3421 | a29k-*-bsd* | a29k-*-sym1*) | |
3422 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3423 | xm_defines=USG |
861bb6c1 JL |
3424 | xmake_file=a29k/x-unix |
3425 | use_collect2=yes | |
3426 | ;; | |
3427 | a29k-*-udi | a29k-*-coff) | |
3428 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3429 | tmake_file=a29k/t-a29kbare | |
3430 | ;; | |
7cc34889 | 3431 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3432 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3433 | tmake_file=a29k/t-vx29k | |
3434 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3435 | thread_file='vxworks' |
861bb6c1 JL |
3436 | ;; |
3437 | a29k-*-*) # Default a29k environment. | |
3438 | use_collect2=yes | |
3439 | ;; | |
615c8231 DT |
3440 | alpha-*-interix) |
3441 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3442 | ||
3443 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3444 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3445 | |
8354da48 JL |
3446 | # GAS + IEEE_CONFORMANT |
3447 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3448 | |
3449 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3450 | xmake_file="x-interix alpha/t-pe" | |
6da9c622 | 3451 | tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3452 | if test x$enable_threads = xyes ; then |
3453 | thread_file='posix' | |
3454 | fi | |
3455 | if test x$stabs = xyes ; then | |
3456 | tm_file="${tm_file} dbxcoff.h" | |
3457 | fi | |
3458 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3459 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3460 | ;; | |
861bb6c1 | 3461 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3462 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3463 | target_cpu_default="MASK_GAS" |
6da9c622 | 3464 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3465 | gas=no |
3466 | xmake_file=none | |
861bb6c1 JL |
3467 | gas=yes gnu_ld=yes |
3468 | ;; | |
2601ebca | 3469 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3470 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3471 | target_cpu_default="MASK_GAS" |
6da9c622 | 3472 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
ee8d66f7 | 3473 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
2601ebca | 3474 | xmake_file=none |
2601ebca | 3475 | gas=yes gnu_ld=yes |
75bffa71 | 3476 | if test x$enable_threads = xyes; then |
2601ebca JL |
3477 | thread_file='posix' |
3478 | fi | |
3479 | ;; | |
861bb6c1 | 3480 | alpha*-*-linux-gnu*) |
9d654bba | 3481 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3482 | target_cpu_default="MASK_GAS" |
6da9c622 | 3483 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3484 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3485 | xmake_file=none |
861bb6c1 | 3486 | gas=yes gnu_ld=yes |
75bffa71 | 3487 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3488 | thread_file='posix' |
3489 | fi | |
3490 | ;; | |
9d654bba | 3491 | alpha*-*-netbsd*) |
66953094 | 3492 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3493 | target_cpu_default="MASK_GAS" |
6da9c622 | 3494 | tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee" |
ee8d66f7 | 3495 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
9d654bba | 3496 | xmake_file=none |
9d654bba RH |
3497 | gas=yes gnu_ld=yes |
3498 | ;; | |
1b4a979b ME |
3499 | |
3500 | alpha*-*-openbsd*) | |
3501 | # default x-alpha is only appropriate for dec-osf. | |
3502 | target_cpu_default="MASK_GAS" | |
6da9c622 | 3503 | tmake_file="alpha/t-alpha alpha/t-ieee" |
1b4a979b | 3504 | ;; |
9d654bba | 3505 | |
e9a25f70 | 3506 | alpha*-dec-osf*) |
75bffa71 | 3507 | if test x$stabs = xyes |
861bb6c1 JL |
3508 | then |
3509 | tm_file="${tm_file} dbx.h" | |
3510 | fi | |
75bffa71 | 3511 | if test x$gas != xyes |
861bb6c1 JL |
3512 | then |
3513 | extra_passes="mips-tfile mips-tdump" | |
3514 | fi | |
861bb6c1 | 3515 | use_collect2=yes |
6da9c622 | 3516 | tmake_file="alpha/t-alpha alpha/t-ieee" |
861bb6c1 | 3517 | case $machine in |
6ecd4e53 | 3518 | *-*-osf1*) |
b0435cf4 | 3519 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3520 | ;; |
3521 | *-*-osf[23]*) | |
b0435cf4 | 3522 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3523 | ;; |
3524 | *-*-osf4*) | |
b0435cf4 | 3525 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3526 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3527 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3528 | install_headers_dir=install-headers-cpio |
3529 | ;; | |
7bc69973 | 3530 | *-*-osf5*) |
5495cc55 | 3531 | tm_file="${tm_file} alpha/osf.h alpha/osf5.h" |
7bc69973 | 3532 | ;; |
861bb6c1 | 3533 | esac |
e9a25f70 | 3534 | case $machine in |
cd038ac2 | 3535 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*) |
e9a25f70 JL |
3536 | target_cpu_default=MASK_SUPPORT_ARCH |
3537 | ;; | |
3538 | esac | |
861bb6c1 | 3539 | ;; |
9ec36da5 JL |
3540 | alpha*-*-vxworks*) |
3541 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
6da9c622 | 3542 | tmake_file="alpha/t-alpha alpha/t-ieee" |
9ec36da5 JL |
3543 | if x$gas != xyes |
3544 | then | |
3545 | extra_passes="mips-tfile mips-tdump" | |
3546 | fi | |
3547 | use_collect2=yes | |
28897609 | 3548 | thread_file='vxworks' |
9ec36da5 | 3549 | ;; |
b0435cf4 | 3550 | alpha*-*-winnt*) |
615c8231 | 3551 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3552 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
6da9c622 | 3553 | tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee" |
861bb6c1 JL |
3554 | xmake_file=winnt/x-winnt |
3555 | extra_host_objs=oldnames.o | |
3556 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3557 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3558 | then |
3559 | extra_programs=ld.exe | |
3560 | fi | |
75bffa71 | 3561 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3562 | thread_file='win32' |
3563 | fi | |
3564 | ;; | |
3565 | alpha*-dec-vms*) | |
3566 | tm_file=alpha/vms.h | |
3567 | xm_file="${xm_file} alpha/xm-vms.h" | |
6da9c622 | 3568 | tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3569 | ;; |
66ed0683 JL |
3570 | arc-*-elf*) |
3571 | extra_parts="crtinit.o crtfini.o" | |
3572 | ;; | |
861bb6c1 JL |
3573 | arm-*-coff* | armel-*-coff*) |
3574 | tm_file=arm/coff.h | |
d5b7b3ae | 3575 | tmake_file=arm/t-arm-coff |
861bb6c1 | 3576 | ;; |
2aa0c933 | 3577 | arm-*-vxworks*) |
e14db015 | 3578 | tm_file=arm/vxarm.h |
d5b7b3ae | 3579 | tmake_file=arm/t-arm-coff |
28897609 | 3580 | thread_file='vxworks' |
2aa0c933 | 3581 | ;; |
861bb6c1 JL |
3582 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3583 | tm_file=arm/riscix1-1.h | |
3584 | use_collect2=yes | |
3585 | ;; | |
3586 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3587 | if test x$gas = xyes |
861bb6c1 JL |
3588 | then |
3589 | tm_file=arm/rix-gas.h | |
3590 | else | |
3591 | tm_file=arm/riscix.h | |
3592 | fi | |
3593 | xmake_file=arm/x-riscix | |
3594 | tmake_file=arm/t-riscix | |
3595 | use_collect2=yes | |
3596 | ;; | |
3597 | arm-semi-aout | armel-semi-aout) | |
3598 | tm_file=arm/semi.h | |
3599 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3600 | ;; |
3601 | arm-semi-aof | armel-semi-aof) | |
3602 | tm_file=arm/semiaof.h | |
3603 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3604 | ;; |
58600d24 | 3605 | arm*-*-netbsd*) |
861bb6c1 | 3606 | tm_file=arm/netbsd.h |
e9a25f70 | 3607 | tmake_file="t-netbsd arm/t-netbsd" |
ed4acb3b | 3608 | use_collect2=yes |
861bb6c1 | 3609 | ;; |
b355a481 | 3610 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3611 | cpu_type=arm |
861bb6c1 | 3612 | xmake_file=x-linux |
b355a481 | 3613 | tm_file=arm/linux-aout.h |
861bb6c1 | 3614 | tmake_file=arm/t-linux |
861bb6c1 JL |
3615 | gnu_ld=yes |
3616 | ;; | |
078e19a4 | 3617 | arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker |
b355a481 NC |
3618 | xm_file=arm/xm-linux.h |
3619 | xmake_file=x-linux | |
078e19a4 | 3620 | tm_file="arm/linux-oldld.h arm/linux-elf.h" |
b355a481 NC |
3621 | case $machine in |
3622 | armv2*-*-*) | |
078e19a4 | 3623 | tm_file="arm/linux-elf26.h $tm_file" |
b355a481 | 3624 | ;; |
078e19a4 PB |
3625 | esac |
3626 | tmake_file="t-linux arm/t-linux" | |
3627 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3628 | gnu_ld=yes | |
3629 | case x${enable_threads} in | |
3630 | x | xyes | xpthreads | xposix) | |
3631 | thread_file='posix' | |
3632 | ;; | |
3633 | esac | |
3634 | ;; | |
3635 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF | |
3636 | xm_file=arm/xm-linux.h | |
3637 | xmake_file=x-linux | |
3638 | tm_file="arm/linux-elf.h" | |
3639 | case $machine in | |
3640 | armv2*-*-*) | |
3641 | tm_file="arm/linux-elf26.h $tm_file" | |
b355a481 NC |
3642 | ;; |
3643 | esac | |
3644 | tmake_file="t-linux arm/t-linux" | |
3645 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3646 | gnu_ld=yes |
65120c40 SB |
3647 | case x${enable_threads} in |
3648 | x | xyes | xpthreads | xposix) | |
3649 | thread_file='posix' | |
3650 | ;; | |
3651 | esac | |
b355a481 | 3652 | ;; |
483f6332 PB |
3653 | arm*-*-uclinux*) # ARM ucLinux |
3654 | tm_file=arm/uclinux-elf.h | |
3655 | tmake_file=arm/t-arm-elf | |
3656 | ;; | |
b355a481 | 3657 | arm*-*-aout) |
861bb6c1 | 3658 | tm_file=arm/aout.h |
d5b7b3ae | 3659 | tmake_file=arm/t-arm-aout |
861bb6c1 | 3660 | ;; |
e6592fff | 3661 | arm*-*-ecos-elf) |
54953b66 | 3662 | tm_file=arm/ecos-elf.h |
d5b7b3ae | 3663 | tmake_file=arm/t-arm-elf |
54953b66 | 3664 | ;; |
b355a481 NC |
3665 | arm*-*-elf) |
3666 | tm_file=arm/unknown-elf.h | |
3667 | tmake_file=arm/t-arm-elf | |
47163378 PB |
3668 | ;; |
3669 | arm*-*-conix*) | |
3670 | tm_file=arm/conix-elf.h | |
3671 | tmake_file=arm/t-arm-elf | |
b355a481 | 3672 | ;; |
cbca921c CM |
3673 | arm*-*-oabi) |
3674 | tm_file=arm/unknown-elf-oabi.h | |
3675 | tmake_file=arm/t-arm-elf | |
3676 | ;; | |
cb805c2d NC |
3677 | arm-*-pe*) |
3678 | tm_file=arm/pe.h | |
3679 | tmake_file=arm/t-pe | |
6da9c622 | 3680 | extra_objs="pe.o" |
cb805c2d | 3681 | ;; |
ed4acb3b DC |
3682 | avr-*-*) |
3683 | ;; | |
861bb6c1 JL |
3684 | c1-convex-*) # Convex C1 |
3685 | target_cpu_default=1 | |
3686 | use_collect2=yes | |
861bb6c1 JL |
3687 | ;; |
3688 | c2-convex-*) # Convex C2 | |
3689 | target_cpu_default=2 | |
3690 | use_collect2=yes | |
861bb6c1 JL |
3691 | ;; |
3692 | c32-convex-*) | |
3693 | target_cpu_default=4 | |
3694 | use_collect2=yes | |
861bb6c1 JL |
3695 | ;; |
3696 | c34-convex-*) | |
3697 | target_cpu_default=8 | |
3698 | use_collect2=yes | |
861bb6c1 JL |
3699 | ;; |
3700 | c38-convex-*) | |
3701 | target_cpu_default=16 | |
3702 | use_collect2=yes | |
861bb6c1 | 3703 | ;; |
62616695 MH |
3704 | c4x-*) |
3705 | cpu_type=c4x | |
3706 | tmake_file=c4x/t-c4x | |
3707 | ;; | |
861bb6c1 JL |
3708 | clipper-intergraph-clix*) |
3709 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3710 | xm_file=clipper/xm-clix.h | |
3711 | xmake_file=clipper/x-clix | |
3712 | extra_headers=va-clipper.h | |
3713 | extra_parts="crtbegin.o crtend.o" | |
3714 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3715 | ;; |
3716 | dsp16xx-*) | |
3717 | ;; | |
3718 | elxsi-elxsi-*) | |
3719 | use_collect2=yes | |
3720 | ;; | |
309dd885 NC |
3721 | fr30-*-elf) |
3722 | tm_file="fr30/fr30.h" | |
3723 | tmake_file=fr30/t-fr30 | |
3724 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3725 | ;; | |
861bb6c1 JL |
3726 | # This hasn't been upgraded to GCC 2. |
3727 | # fx80-alliant-*) # Alliant FX/80 | |
3728 | # ;; | |
3729 | h8300-*-*) | |
3730 | float_format=i32 | |
3731 | ;; | |
30f08b39 JL |
3732 | hppa*-*-linux*) |
3733 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3734 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3735 | tmake_file="t-linux pa/t-linux" | |
3736 | extra_parts="crtbegin.o crtend.o" | |
3737 | xmake_file=none | |
3738 | gas=yes gnu_ld=yes | |
3739 | if test x$enable_threads = xyes; then | |
3740 | thread_file='posix' | |
3741 | fi | |
3742 | ;; | |
1b4a979b | 3743 | hppa*-*-openbsd*) |
13ee407e | 3744 | target_cpu_default="MASK_PA_11" |
4525d757 | 3745 | tmake_file=pa/t-openbsd |
1b4a979b | 3746 | ;; |
861bb6c1 | 3747 | hppa1.1-*-pro*) |
0d381b47 | 3748 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3749 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" |
861bb6c1 JL |
3750 | xm_file=pa/xm-papro.h |
3751 | tmake_file=pa/t-pro | |
3752 | ;; | |
3753 | hppa1.1-*-osf*) | |
13ee407e | 3754 | target_cpu_default="MASK_PA_11" |
88624c0e | 3755 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3756 | use_collect2=yes |
861bb6c1 JL |
3757 | ;; |
3758 | hppa1.1-*-rtems*) | |
0d381b47 | 3759 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
88624c0e | 3760 | 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 |
3761 | xm_file=pa/xm-papro.h |
3762 | tmake_file=pa/t-pro | |
3763 | ;; | |
3764 | hppa1.0-*-osf*) | |
88624c0e | 3765 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" |
861bb6c1 | 3766 | use_collect2=yes |
861bb6c1 JL |
3767 | ;; |
3768 | hppa1.1-*-bsd*) | |
88624c0e | 3769 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
13ee407e | 3770 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3771 | use_collect2=yes |
861bb6c1 JL |
3772 | ;; |
3773 | hppa1.0-*-bsd*) | |
88624c0e | 3774 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h" |
861bb6c1 | 3775 | use_collect2=yes |
861bb6c1 JL |
3776 | ;; |
3777 | hppa1.0-*-hpux7*) | |
88624c0e | 3778 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3779 | xm_file=pa/xm-pahpux.h |
3780 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3781 | if test x$gas = xyes |
861bb6c1 JL |
3782 | then |
3783 | tm_file="${tm_file} pa/gas.h" | |
3784 | fi | |
861bb6c1 JL |
3785 | install_headers_dir=install-headers-cpio |
3786 | use_collect2=yes | |
3787 | ;; | |
3788 | hppa1.0-*-hpux8.0[0-2]*) | |
88624c0e | 3789 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3790 | xm_file=pa/xm-pahpux.h |
3791 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3792 | if test x$gas = xyes |
861bb6c1 JL |
3793 | then |
3794 | tm_file="${tm_file} pa/pa-gas.h" | |
3795 | else | |
3796 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3797 | fi | |
861bb6c1 JL |
3798 | install_headers_dir=install-headers-cpio |
3799 | use_collect2=yes | |
3800 | ;; | |
3801 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3802 | target_cpu_default="MASK_PA_11" |
88624c0e | 3803 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3804 | xm_file=pa/xm-pahpux.h |
3805 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3806 | if test x$gas = xyes |
861bb6c1 JL |
3807 | then |
3808 | tm_file="${tm_file} pa/pa-gas.h" | |
3809 | else | |
3810 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3811 | fi | |
861bb6c1 JL |
3812 | install_headers_dir=install-headers-cpio |
3813 | use_collect2=yes | |
3814 | ;; | |
3815 | hppa1.1-*-hpux8*) | |
13ee407e | 3816 | target_cpu_default="MASK_PA_11" |
88624c0e | 3817 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3818 | xm_file=pa/xm-pahpux.h |
3819 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3820 | if test x$gas = xyes |
861bb6c1 JL |
3821 | then |
3822 | tm_file="${tm_file} pa/pa-gas.h" | |
3823 | fi | |
861bb6c1 JL |
3824 | install_headers_dir=install-headers-cpio |
3825 | use_collect2=yes | |
3826 | ;; | |
3827 | hppa1.0-*-hpux8*) | |
88624c0e | 3828 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3829 | xm_file=pa/xm-pahpux.h |
3830 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3831 | if test x$gas = xyes |
861bb6c1 JL |
3832 | then |
3833 | tm_file="${tm_file} pa/pa-gas.h" | |
3834 | fi | |
861bb6c1 JL |
3835 | install_headers_dir=install-headers-cpio |
3836 | use_collect2=yes | |
3837 | ;; | |
18cae839 | 3838 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3839 | target_cpu_default="MASK_PA_11" |
88624c0e | 3840 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3841 | float_format=i128 |
861bb6c1 JL |
3842 | xm_file=pa/xm-pahpux.h |
3843 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3844 | tmake_file=pa/t-pa |
75bffa71 | 3845 | if test x$gas = xyes |
861bb6c1 JL |
3846 | then |
3847 | tm_file="${tm_file} pa/pa-gas.h" | |
3848 | fi | |
75bffa71 | 3849 | if test x$enable_threads = x; then |
f24af81b TT |
3850 | enable_threads=$have_pthread_h |
3851 | fi | |
75bffa71 | 3852 | if test x$enable_threads = xyes; then |
f24af81b TT |
3853 | thread_file='dce' |
3854 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3855 | fi | |
861bb6c1 JL |
3856 | install_headers_dir=install-headers-cpio |
3857 | use_collect2=yes | |
3858 | ;; | |
3859 | hppa1.0-*-hpux10*) | |
88624c0e | 3860 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
f701f77c | 3861 | float_format=i128 |
861bb6c1 JL |
3862 | xm_file=pa/xm-pahpux.h |
3863 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3864 | tmake_file=pa/t-pa |
75bffa71 | 3865 | if test x$gas = xyes |
861bb6c1 JL |
3866 | then |
3867 | tm_file="${tm_file} pa/pa-gas.h" | |
3868 | fi | |
75bffa71 | 3869 | if test x$enable_threads = x; then |
d005a5a4 JL |
3870 | enable_threads=$have_pthread_h |
3871 | fi | |
75bffa71 | 3872 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3873 | thread_file='dce' |
3874 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3875 | fi | |
861bb6c1 JL |
3876 | install_headers_dir=install-headers-cpio |
3877 | use_collect2=yes | |
3878 | ;; | |
fab7be4f | 3879 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 3880 | target_cpu_default="MASK_PA_11" |
88624c0e | 3881 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3882 | float_format=i128 |
fab7be4f JL |
3883 | xm_file=pa/xm-pahpux.h |
3884 | xmake_file=pa/x-pa-hpux | |
3885 | tmake_file=pa/t-pa | |
2618c083 | 3886 | if test x$gas = xyes |
fab7be4f JL |
3887 | then |
3888 | tm_file="${tm_file} pa/pa-gas.h" | |
3889 | fi | |
2618c083 | 3890 | # if test x$enable_threads = x; then |
fab7be4f JL |
3891 | # enable_threads=$have_pthread_h |
3892 | # fi | |
2618c083 | 3893 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3894 | # thread_file='dce' |
3895 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3896 | # fi | |
3897 | install_headers_dir=install-headers-cpio | |
3898 | use_collect2=yes | |
3899 | ;; | |
3900 | hppa1.0-*-hpux11*) | |
88624c0e | 3901 | tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
f701f77c | 3902 | float_format=i128 |
fab7be4f JL |
3903 | xm_file=pa/xm-pahpux.h |
3904 | xmake_file=pa/x-pa-hpux | |
2618c083 | 3905 | if test x$gas = xyes |
fab7be4f JL |
3906 | then |
3907 | tm_file="${tm_file} pa/pa-gas.h" | |
3908 | fi | |
2618c083 | 3909 | # if test x$enable_threads = x; then |
fab7be4f JL |
3910 | # enable_threads=$have_pthread_h |
3911 | # fi | |
2618c083 | 3912 | # if test x$enable_threads = xyes; then |
fab7be4f JL |
3913 | # thread_file='dce' |
3914 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3915 | # fi | |
3916 | install_headers_dir=install-headers-cpio | |
3917 | use_collect2=yes | |
3918 | ;; | |
18cae839 | 3919 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3920 | target_cpu_default="MASK_PA_11" |
88624c0e | 3921 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3922 | xm_file=pa/xm-pahpux.h |
3923 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3924 | if test x$gas = xyes |
861bb6c1 JL |
3925 | then |
3926 | tm_file="${tm_file} pa/pa-gas.h" | |
3927 | fi | |
861bb6c1 JL |
3928 | install_headers_dir=install-headers-cpio |
3929 | use_collect2=yes | |
3930 | ;; | |
3931 | hppa1.0-*-hpux*) | |
88624c0e | 3932 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3933 | xm_file=pa/xm-pahpux.h |
3934 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3935 | if test x$gas = xyes |
861bb6c1 JL |
3936 | then |
3937 | tm_file="${tm_file} pa/pa-gas.h" | |
3938 | fi | |
861bb6c1 JL |
3939 | install_headers_dir=install-headers-cpio |
3940 | use_collect2=yes | |
3941 | ;; | |
18cae839 | 3942 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3943 | target_cpu_default="MASK_PA_11" |
88624c0e | 3944 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3945 | xm_file=pa/xm-pahpux.h |
3946 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3947 | if test x$gas = xyes |
861bb6c1 JL |
3948 | then |
3949 | tm_file="${tm_file} pa/pa-gas.h" | |
3950 | fi | |
861bb6c1 JL |
3951 | install_headers_dir=install-headers-cpio |
3952 | use_collect2=yes | |
3953 | ;; | |
3954 | hppa1.0-*-hiux*) | |
88624c0e | 3955 | tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3956 | xm_file=pa/xm-pahpux.h |
3957 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3958 | if test x$gas = xyes |
861bb6c1 JL |
3959 | then |
3960 | tm_file="${tm_file} pa/pa-gas.h" | |
3961 | fi | |
861bb6c1 JL |
3962 | install_headers_dir=install-headers-cpio |
3963 | use_collect2=yes | |
3964 | ;; | |
3965 | hppa*-*-lites*) | |
88624c0e | 3966 | tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h" |
13ee407e | 3967 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3968 | use_collect2=yes |
861bb6c1 | 3969 | ;; |
6bc2c8c8 MK |
3970 | hppa*-*-mpeix*) |
3971 | tm_file="${tm_file} pa/pa-mpeix.h" | |
3972 | xm_file=pa/xm-pampeix.h | |
3973 | xmake_file=pa/x-pa-mpeix | |
3974 | echo "You must use gas. Assuming it is already installed." | |
3975 | install_headers_dir=install-headers-tar | |
6bc2c8c8 MK |
3976 | use_collect2=yes |
3977 | ;; | |
a2b368b6 LV |
3978 | i370-*-opened*) # IBM 360/370/390 Architecture |
3979 | xm_file=i370/xm-oe.h | |
3980 | tm_file=i370/oe.h | |
3981 | xmake_file=i370/x-oe | |
3982 | tmake_file=i370/t-oe | |
a2b368b6 | 3983 | ;; |
861bb6c1 | 3984 | i370-*-mvs*) |
a2b368b6 LV |
3985 | xm_file=i370/xm-mvs.h |
3986 | tm_file=i370/mvs.h | |
3987 | tmake_file=i370/t-mvs | |
a2b368b6 LV |
3988 | ;; |
3989 | i370-*-linux*) | |
3990 | xm_file="xm-linux.h i370/xm-linux.h" | |
3991 | xmake_file=x-linux | |
3992 | tm_file="i370/linux.h ${tm_file}" | |
3993 | tmake_file="t-linux i370/t-linux" | |
a2b368b6 LV |
3994 | # broken_install=yes |
3995 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3996 | # extra_parts="crtbegin.o crtend.o" | |
3997 | gnu_ld=yes | |
3998 | gas=yes | |
3999 | elf=yes | |
2618c083 | 4000 | if test x$enable_threads = xyes; then |
a2b368b6 LV |
4001 | thread_file='posix' |
4002 | fi | |
861bb6c1 | 4003 | ;; |
9b5c756a JL |
4004 | i[34567]86-*-elf*) |
4005 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
4006 | tm_file=i386/i386elf.h | |
4007 | tmake_file=i386/t-i386elf | |
4008 | xmake_file=x-svr4 | |
4009 | ;; | |
f6cb0e63 | 4010 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 4011 | if test x$gas = xyes |
861bb6c1 JL |
4012 | then |
4013 | tm_file=i386/aix386.h | |
4014 | extra_parts="crtbegin.o crtend.o" | |
4015 | tmake_file=i386/t-crtstuff | |
4016 | else | |
4017 | tm_file=i386/aix386ng.h | |
4018 | use_collect2=yes | |
4019 | fi | |
f6cb0e63 JL |
4020 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
4021 | xm_defines=USG | |
861bb6c1 | 4022 | xmake_file=i386/x-aix |
861bb6c1 | 4023 | ;; |
75bffa71 | 4024 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
2d092ffa | 4025 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4026 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4027 | xmake_file=i386/x-ncr3000 |
75bffa71 | 4028 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
4029 | then |
4030 | tm_file=i386/sysv4gdb.h | |
4031 | else | |
4032 | tm_file=i386/sysv4.h | |
4033 | fi | |
4034 | extra_parts="crtbegin.o crtend.o" | |
4035 | tmake_file=i386/t-crtpic | |
4036 | ;; | |
f6cb0e63 | 4037 | i[34567]86-next-*) |
861bb6c1 JL |
4038 | tm_file=i386/next.h |
4039 | xm_file=i386/xm-next.h | |
4040 | tmake_file=i386/t-next | |
4041 | xmake_file=i386/x-next | |
4042 | extra_objs=nextstep.o | |
750930c1 | 4043 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 4044 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4045 | thread_file='mach' |
4046 | fi | |
4047 | ;; | |
f6cb0e63 | 4048 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 4049 | use_collect2=yes |
75bffa71 | 4050 | if test x$gas = xyes |
861bb6c1 JL |
4051 | then |
4052 | tm_file=i386/seq-gas.h | |
4053 | else | |
4054 | tm_file=i386/sequent.h | |
4055 | fi | |
4056 | ;; | |
f6cb0e63 JL |
4057 | i[34567]86-sequent-ptx1*) |
4058 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4059 | xmake_file=i386/x-sysv3 |
4060 | tm_file=i386/seq-sysv3.h | |
4061 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
4062 | extra_parts="crtbegin.o crtend.o" |
4063 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4064 | ;; |
f6cb0e63 JL |
4065 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
4066 | xm_defines="USG SVR3" | |
861bb6c1 JL |
4067 | xmake_file=i386/x-sysv3 |
4068 | tm_file=i386/seq2-sysv3.h | |
4069 | tmake_file=i386/t-crtstuff | |
4070 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4071 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4072 | ;; |
f6cb0e63 | 4073 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
2d092ffa | 4074 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4075 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 JL |
4076 | xmake_file=x-svr4 |
4077 | tm_file=i386/ptx4-i.h | |
4078 | tmake_file=t-svr4 | |
4079 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 4080 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
4081 | ;; |
4082 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 4083 | xm_defines=USG |
861bb6c1 JL |
4084 | tm_file=i386/sun.h |
4085 | use_collect2=yes | |
4086 | ;; | |
62db76ee | 4087 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
4088 | tm_file=i386/vxi386.h |
4089 | tmake_file=i386/t-i386bare | |
28897609 | 4090 | thread_file='vxworks' |
9e89df50 | 4091 | ;; |
f6cb0e63 | 4092 | i[34567]86-*-aout*) |
861bb6c1 JL |
4093 | tm_file=i386/i386-aout.h |
4094 | tmake_file=i386/t-i386bare | |
4095 | ;; | |
11950183 JM |
4096 | i[34567]86-*-beospe*) |
4097 | xm_file=i386/xm-beos.h | |
4098 | xm_defines="USE_C_ALLOCA" | |
4099 | tmake_file=i386/t-beos | |
4100 | tm_file=i386/beos-pe.h | |
4101 | xmake_file=i386/x-beos | |
4102 | extra_objs=winnt.o | |
4103 | ;; | |
4104 | i[34567]86-*-beoself* | i[34567]86-*-beos*) | |
4105 | xm_file=i386/xm-beos.h | |
4106 | tmake_file='i386/t-beos i386/t-crtpic' | |
4107 | tm_file=i386/beos-elf.h | |
4108 | xmake_file=i386/x-beos | |
4109 | extra_objs=winnt.o | |
4110 | extra_parts='crtbegin.o crtend.o' | |
11950183 | 4111 | ;; |
f6cb0e63 | 4112 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 4113 | tm_file=i386/bsd386.h |
861bb6c1 JL |
4114 | # tmake_file=t-libc-ok |
4115 | ;; | |
f6cb0e63 | 4116 | i[34567]86-*-bsd*) |
861bb6c1 | 4117 | tm_file=i386/386bsd.h |
861bb6c1 JL |
4118 | # tmake_file=t-libc-ok |
4119 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
4120 | # use_collect2=yes | |
4121 | ;; | |
f6cb0e63 | 4122 | i[34567]86-*-freebsdelf*) |
4e32293c | 4123 | tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 4124 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 4125 | tmake_file=t-freebsd |
861bb6c1 JL |
4126 | gas=yes |
4127 | gnu_ld=yes | |
4128 | stabs=yes | |
46346e0e LR |
4129 | case x${enable_threads} in |
4130 | xyes | xpthreads | xposix) | |
4131 | thread_file='posix' | |
e1459ff8 | 4132 | tmake_file="${tmake_file} t-freebsd-thread" |
46346e0e LR |
4133 | ;; |
4134 | esac | |
861bb6c1 | 4135 | ;; |
f6cb0e63 | 4136 | i[34567]86-*-freebsd*) |
4e32293c | 4137 | tm_file="i386/freebsd.h i386/perform.h" |
d0550c9b | 4138 | tmake_file=t-freebsd |
861bb6c1 | 4139 | ;; |
1b4a979b | 4140 | i[34567]86-*-netbsd*) |
861bb6c1 | 4141 | tm_file=i386/netbsd.h |
861bb6c1 | 4142 | tmake_file=t-netbsd |
ed4acb3b | 4143 | use_collect2=yes |
861bb6c1 | 4144 | ;; |
1b4a979b | 4145 | i[34567]86-*-openbsd*) |
1b4a979b ME |
4146 | # we need collect2 until our bug is fixed... |
4147 | use_collect2=yes | |
4148 | ;; | |
f6cb0e63 | 4149 | i[34567]86-*-coff*) |
861bb6c1 JL |
4150 | tm_file=i386/i386-coff.h |
4151 | tmake_file=i386/t-i386bare | |
4152 | ;; | |
f6cb0e63 JL |
4153 | i[34567]86-*-isc*) # 80386 running ISC system |
4154 | xm_file="${xm_file} i386/xm-isc.h" | |
4155 | xm_defines="USG SVR3" | |
861bb6c1 | 4156 | case $machine in |
f6cb0e63 | 4157 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
4158 | xmake_file=i386/x-isc3 |
4159 | ;; | |
4160 | *) | |
4161 | xmake_file=i386/x-isc | |
4162 | ;; | |
4163 | esac | |
75bffa71 | 4164 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
4165 | then |
4166 | tm_file=i386/iscdbx.h | |
4167 | tmake_file=i386/t-svr3dbx | |
4168 | extra_parts="svr3.ifile svr3z.ifile" | |
4169 | else | |
4170 | tm_file=i386/isccoff.h | |
4171 | tmake_file=i386/t-crtstuff | |
4172 | extra_parts="crtbegin.o crtend.o" | |
4173 | fi | |
4174 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 4175 | ;; |
f6cb0e63 | 4176 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 4177 | # pre BFD linkers |
861bb6c1 JL |
4178 | xmake_file=x-linux-aout |
4179 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4180 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 4181 | gnu_ld=yes |
af39d8f5 | 4182 | float_format=i386 |
861bb6c1 | 4183 | ;; |
f6cb0e63 | 4184 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
4185 | xmake_file=x-linux-aout |
4186 | tmake_file="t-linux-aout i386/t-crtstuff" | |
4187 | tm_file=i386/linux-aout.h | |
861bb6c1 | 4188 | gnu_ld=yes |
af39d8f5 | 4189 | float_format=i386 |
861bb6c1 | 4190 | ;; |
f6cb0e63 | 4191 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4192 | # GNU/Linux C library 5 |
4193 | xmake_file=x-linux | |
4194 | tm_file=i386/linux.h | |
861bb6c1 JL |
4195 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
4196 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4197 | gnu_ld=yes |
af39d8f5 | 4198 | float_format=i386 |
75bffa71 | 4199 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4200 | thread_file='single' |
4201 | fi | |
4202 | ;; | |
f6cb0e63 | 4203 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
4204 | # aka GNU/Linux C library 6 |
4205 | xmake_file=x-linux | |
861bb6c1 JL |
4206 | tm_file=i386/linux.h |
4207 | tmake_file="t-linux i386/t-crtstuff" | |
4208 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4209 | gnu_ld=yes |
af39d8f5 | 4210 | float_format=i386 |
75bffa71 | 4211 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4212 | thread_file='posix' |
4213 | fi | |
4214 | ;; | |
f6cb0e63 | 4215 | i[34567]86-*-gnu*) |
cd9e5e7c | 4216 | float_format=i386 |
f6cb0e63 JL |
4217 | ;; |
4218 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 4219 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 4220 | exit 1 |
861bb6c1 | 4221 | ;; |
f6cb0e63 | 4222 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
4223 | xm_file=i386/xm-djgpp.h |
4224 | tm_file=i386/djgpp.h | |
4225 | tmake_file=i386/t-djgpp | |
4226 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
4227 | gnu_ld=yes |
4228 | gas=yes | |
dedcc399 | 4229 | exeext=.exe |
77d787fa | 4230 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
4231 | target_alias=djgpp |
4232 | ;; | |
4233 | esac | |
861bb6c1 | 4234 | ;; |
f6cb0e63 | 4235 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
4236 | tm_file=i386/moss.h |
4237 | tmake_file=t-libc-ok | |
861bb6c1 JL |
4238 | gnu_ld=yes |
4239 | gas=yes | |
4240 | ;; | |
f6cb0e63 | 4241 | i[34567]86-*-lynxos*) |
75bffa71 | 4242 | if test x$gas = xyes |
861bb6c1 JL |
4243 | then |
4244 | tm_file=i386/lynx.h | |
4245 | else | |
4246 | tm_file=i386/lynx-ng.h | |
4247 | fi | |
4248 | xm_file=i386/xm-lynx.h | |
4249 | tmake_file=i386/t-i386bare | |
4250 | xmake_file=x-lynx | |
4251 | ;; | |
f6cb0e63 | 4252 | i[34567]86-*-mach*) |
861bb6c1 JL |
4253 | tm_file=i386/mach.h |
4254 | # tmake_file=t-libc-ok | |
4255 | use_collect2=yes | |
4256 | ;; | |
f6cb0e63 | 4257 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 4258 | if test x$elf = xyes |
861bb6c1 JL |
4259 | then |
4260 | tm_file=i386/osfelf.h | |
4261 | use_collect2= | |
4262 | else | |
4263 | tm_file=i386/osfrose.h | |
4264 | use_collect2=yes | |
4265 | fi | |
f6cb0e63 | 4266 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
4267 | xmake_file=i386/x-osfrose |
4268 | tmake_file=i386/t-osf | |
4269 | extra_objs=halfpic.o | |
4270 | ;; | |
f6cb0e63 | 4271 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
4272 | cpu_type=i386 |
4273 | xm_file=i386/xm-go32.h | |
4274 | tm_file=i386/go32-rtems.h | |
4275 | tmake_file="i386/t-go32 t-rtems" | |
4276 | ;; | |
0d4ef09c JS |
4277 | i[34567]86-*-rtemscoff*) |
4278 | cpu_type=i386 | |
4279 | tm_file=i386/rtems.h | |
4280 | tmake_file="i386/t-i386bare t-rtems" | |
4281 | ;; | |
d1476635 | 4282 | i[34567]86-*-rtems*|i[34567]86-*-rtemself*) |
f5963e61 JL |
4283 | cpu_type=i386 |
4284 | tm_file=i386/rtemself.h | |
d1476635 JS |
4285 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
4286 | tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" | |
f5963e61 | 4287 | ;; |
f6cb0e63 | 4288 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
2d092ffa | 4289 | xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h" |
f6cb0e63 | 4290 | xm_defines="USG SVR3" |
861bb6c1 | 4291 | xmake_file=i386/x-sco5 |
f6857708 | 4292 | install_headers_dir=install-headers-cpio |
861bb6c1 | 4293 | tm_file=i386/sco5.h |
75bffa71 | 4294 | if test x$gas = xyes |
44bb0e93 RL |
4295 | then |
4296 | tm_file="i386/sco5gas.h ${tm_file}" | |
4297 | tmake_file=i386/t-sco5gas | |
4298 | else | |
4299 | tmake_file=i386/t-sco5 | |
4300 | fi | |
42902a72 | 4301 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 4302 | ;; |
f6cb0e63 JL |
4303 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
4304 | xm_file="${xm_file} i386/xm-sco.h" | |
2d092ffa | 4305 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX" |
861bb6c1 | 4306 | xmake_file=i386/x-sco4 |
861bb6c1 | 4307 | install_headers_dir=install-headers-cpio |
75bffa71 | 4308 | if test x$stabs = xyes |
861bb6c1 JL |
4309 | then |
4310 | tm_file=i386/sco4dbx.h | |
4311 | tmake_file=i386/t-svr3dbx | |
4312 | extra_parts="svr3.ifile svr3z.rfile" | |
4313 | else | |
4314 | tm_file=i386/sco4.h | |
4315 | tmake_file=i386/t-crtstuff | |
4316 | extra_parts="crtbegin.o crtend.o" | |
4317 | fi | |
090164c0 WB |
4318 | # The default EAFS filesystem supports long file names. |
4319 | # Truncating the target makes $host != $target which | |
4320 | # makes gcc think it is doing a cross-compile. | |
4321 | # truncate_target=yes | |
861bb6c1 | 4322 | ;; |
f6cb0e63 | 4323 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
4324 | xm_file=i386/xm-sco.h |
4325 | xmake_file=i386/x-sco | |
861bb6c1 | 4326 | install_headers_dir=install-headers-cpio |
75bffa71 | 4327 | if test x$stabs = xyes |
861bb6c1 JL |
4328 | then |
4329 | tm_file=i386/scodbx.h | |
4330 | tmake_file=i386/t-svr3dbx | |
4331 | extra_parts="svr3.ifile svr3z.rfile" | |
4332 | else | |
4333 | tm_file=i386/sco.h | |
4334 | extra_parts="crtbegin.o crtend.o" | |
4335 | tmake_file=i386/t-crtstuff | |
4336 | fi | |
4337 | truncate_target=yes | |
4338 | ;; | |
f6cb0e63 | 4339 | i[34567]86-*-solaris2*) |
2d092ffa | 4340 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4341 | xm_defines="USG POSIX SMALL_ARG_MAX" |
0c723ada AO |
4342 | tm_file=i386/sol2.h |
4343 | if test x$gas = xyes; then | |
4344 | # Only needed if gas does not support -s | |
4345 | tm_file="i386/sol2gas.h ${tm_file}" | |
861bb6c1 JL |
4346 | fi |
4347 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 4348 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 4349 | xmake_file=x-svr4 |
4a8021dc AO |
4350 | if test x${enable_threads} = x; then |
4351 | enable_threads=$have_pthread_h | |
4352 | if test x${enable_threads} = x; then | |
4353 | enable_threads=$have_thread_h | |
4354 | fi | |
4355 | fi | |
4356 | if test x${enable_threads} = xyes; then | |
4357 | if test x${have_pthread_h} = xyes; then | |
4358 | thread_file='posix' | |
4359 | else | |
861bb6c1 | 4360 | thread_file='solaris' |
4a8021dc | 4361 | fi |
861bb6c1 JL |
4362 | fi |
4363 | ;; | |
f6cb0e63 | 4364 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
2d092ffa | 4365 | xm_file="xm-alloca.h ${xm_file}" |
48a51bf4 | 4366 | xm_defines="USG POSIX" |
87e11b70 | 4367 | tm_file=i386/sysv5.h |
75bffa71 | 4368 | if test x$stabs = xyes |
fe07d4c1 RL |
4369 | then |
4370 | tm_file="${tm_file} dbx.h" | |
4371 | fi | |
4372 | tmake_file=i386/t-crtpic | |
4373 | xmake_file=x-svr4 | |
4374 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
4375 | if test x$enable_threads = xyes; then |
4376 | thread_file='posix' | |
4377 | fi | |
fe07d4c1 | 4378 | ;; |
f6cb0e63 | 4379 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
2d092ffa | 4380 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4381 | xm_defines="USG POSIX SMALL_ARG_MAX" |
861bb6c1 | 4382 | tm_file=i386/sysv4.h |
75bffa71 | 4383 | if test x$stabs = xyes |
861bb6c1 JL |
4384 | then |
4385 | tm_file="${tm_file} dbx.h" | |
4386 | fi | |
4387 | tmake_file=i386/t-crtpic | |
4388 | xmake_file=x-svr4 | |
4389 | extra_parts="crtbegin.o crtend.o" | |
4390 | ;; | |
112674fa | 4391 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
2d092ffa | 4392 | xm_file="xm-alloca.h ${xm_file}" |
112674fa RL |
4393 | xm_defines="USG POSIX" |
4394 | tm_file=i386/udk.h | |
4395 | tmake_file="i386/t-crtpic i386/t-udk" | |
4396 | xmake_file=x-svr4 | |
4397 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 4398 | install_headers_dir=install-headers-cpio |
112674fa | 4399 | ;; |
f5963e61 JL |
4400 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
4401 | cpu_type=i386 | |
4402 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
4403 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 4404 | if test x$stabs = xyes |
f5963e61 JL |
4405 | then |
4406 | tm_file=i386/osf1elfgdb.h | |
4407 | else | |
4408 | tm_file=i386/osf1elf.h | |
4409 | fi | |
4410 | tmake_file=i386/t-osf1elf | |
4411 | xmake_file=i386/x-osf1elf | |
4412 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
4413 | ;; | |
f6cb0e63 JL |
4414 | i[34567]86-*-sysv*) # Intel 80386's running system V |
4415 | xm_defines="USG SVR3" | |
861bb6c1 | 4416 | xmake_file=i386/x-sysv3 |
75bffa71 | 4417 | if test x$gas = xyes |
861bb6c1 | 4418 | then |
75bffa71 | 4419 | if test x$stabs = xyes |
861bb6c1 JL |
4420 | then |
4421 | tm_file=i386/svr3dbx.h | |
4422 | tmake_file=i386/t-svr3dbx | |
4423 | extra_parts="svr3.ifile svr3z.rfile" | |
4424 | else | |
4425 | tm_file=i386/svr3gas.h | |
4426 | extra_parts="crtbegin.o crtend.o" | |
4427 | tmake_file=i386/t-crtstuff | |
4428 | fi | |
4429 | else | |
4430 | tm_file=i386/sysv3.h | |
4431 | extra_parts="crtbegin.o crtend.o" | |
4432 | tmake_file=i386/t-crtstuff | |
4433 | fi | |
4434 | ;; | |
4435 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 4436 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
4437 | tm_file=i386/vsta.h |
4438 | tmake_file=i386/t-vsta | |
4439 | xmake_file=i386/x-vsta | |
4440 | ;; | |
84530511 | 4441 | i[34567]86-*-win32) |
cae21ae8 GN |
4442 | xm_file="${xm_file} i386/xm-cygwin.h" |
4443 | tmake_file=i386/t-cygwin | |
84530511 | 4444 | tm_file=i386/win32.h |
cae21ae8 | 4445 | xmake_file=i386/x-cygwin |
84530511 | 4446 | extra_objs=winnt.o |
75bffa71 | 4447 | if test x$enable_threads = xyes; then |
84530511 SC |
4448 | thread_file='win32' |
4449 | fi | |
4450 | exeext=.exe | |
4451 | ;; | |
cae21ae8 GN |
4452 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
4453 | xm_file="${xm_file} i386/xm-cygwin.h" | |
4454 | tmake_file=i386/t-cygwin | |
4455 | tm_file=i386/cygwin.h | |
4456 | xmake_file=i386/x-cygwin | |
861bb6c1 | 4457 | extra_objs=winnt.o |
75bffa71 | 4458 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4459 | thread_file='win32' |
4460 | fi | |
4461 | exeext=.exe | |
4462 | ;; | |
f6cb0e63 | 4463 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
4464 | tm_file=i386/mingw32.h |
4465 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 4466 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 4467 | extra_objs=winnt.o |
cae21ae8 | 4468 | xmake_file=i386/x-cygwin |
75bffa71 | 4469 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4470 | thread_file='win32' |
4471 | fi | |
4472 | exeext=.exe | |
f6cb0e63 JL |
4473 | case $machine in |
4474 | *mingw32msv*) | |
4475 | ;; | |
4476 | *minwg32crt* | *mingw32*) | |
4477 | tm_file="${tm_file} i386/crtdll.h" | |
4478 | ;; | |
4479 | esac | |
861bb6c1 | 4480 | ;; |
b27d2bd5 MK |
4481 | i[34567]86-*-uwin*) |
4482 | tm_file=i386/uwin.h | |
4483 | xm_file="${xm_file} i386/xm-uwin.h" | |
2d092ffa | 4484 | xm_defines="USG NO_STAB_H" |
b27d2bd5 MK |
4485 | tmake_file="i386/t-cygwin i386/t-uwin" |
4486 | extra_objs=winnt.o | |
4487 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
4488 | if test x$enable_threads = xyes; then |
4489 | thread_file='win32' | |
4490 | fi | |
4491 | exeext=.exe | |
4492 | ;; | |
052dbd9e | 4493 | i[34567]86-*-interix*) |
615c8231 | 4494 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 4495 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
2d092ffa | 4496 | xm_defines="USG" |
052dbd9e MK |
4497 | tmake_file="i386/t-interix" |
4498 | extra_objs=interix.o | |
4499 | xmake_file=x-interix | |
615c8231 | 4500 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
4501 | thread_file='posix' |
4502 | fi | |
615c8231 | 4503 | if test x$stabs = xyes ; then |
052dbd9e MK |
4504 | tm_file="${tm_file} dbxcoff.h" |
4505 | fi | |
4506 | ;; | |
f6cb0e63 | 4507 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
4508 | tm_file=i386/win-nt.h |
4509 | out_file=i386/i386.c | |
f6cb0e63 | 4510 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
4511 | xmake_file=winnt/x-winnt |
4512 | tmake_file=i386/t-winnt | |
4513 | extra_host_objs="winnt.o oldnames.o" | |
4514 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 4515 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4516 | then |
4517 | extra_programs=ld.exe | |
4518 | fi | |
75bffa71 | 4519 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4520 | thread_file='win32' |
4521 | fi | |
4522 | ;; | |
f6cb0e63 | 4523 | i[34567]86-dg-dgux*) |
2d092ffa | 4524 | xm_file="xm-alloca.h ${xm_file}" |
f6cb0e63 | 4525 | xm_defines="USG POSIX" |
861bb6c1 JL |
4526 | out_file=i386/dgux.c |
4527 | tm_file=i386/dgux.h | |
4528 | tmake_file=i386/t-dgux | |
4529 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4530 | install_headers_dir=install-headers-cpio |
4531 | ;; | |
4532 | i860-alliant-*) # Alliant FX/2800 | |
4533 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4534 | xm_file="${xm_file}" |
861bb6c1 JL |
4535 | xmake_file=i860/x-fx2800 |
4536 | tmake_file=i860/t-fx2800 | |
4537 | extra_parts="crtbegin.o crtend.o" | |
4538 | ;; | |
4539 | i860-*-bsd*) | |
4540 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4541 | if test x$gas = xyes |
861bb6c1 JL |
4542 | then |
4543 | tm_file="${tm_file} i860/bsd-gas.h" | |
4544 | fi | |
4545 | use_collect2=yes | |
4546 | ;; | |
4547 | i860-*-mach*) | |
4548 | tm_file="${tm_file} i860/mach.h" | |
4549 | tmake_file=t-libc-ok | |
4550 | ;; | |
4551 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4552 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4553 | xm_defines="USG SVR3" |
861bb6c1 | 4554 | tmake_file=t-osf |
861bb6c1 JL |
4555 | ;; |
4556 | i860-*-sysv3*) | |
4557 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4558 | xm_defines="USG SVR3" |
861bb6c1 JL |
4559 | xmake_file=i860/x-sysv3 |
4560 | extra_parts="crtbegin.o crtend.o" | |
4561 | ;; | |
4562 | i860-*-sysv4*) | |
4563 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4564 | xm_defines="USG SVR3" |
861bb6c1 JL |
4565 | xmake_file=i860/x-sysv4 |
4566 | tmake_file=t-svr4 | |
4567 | extra_parts="crtbegin.o crtend.o" | |
4568 | ;; | |
4569 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4570 | tm_file="${tm_file} i960/vx960.h" | |
4571 | tmake_file=i960/t-vxworks960 | |
4572 | use_collect2=yes | |
7cc34889 | 4573 | thread_file='vxworks' |
861bb6c1 | 4574 | ;; |
a0372c94 | 4575 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4576 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4577 | tmake_file=i960/t-vxworks960 | |
4578 | use_collect2=yes | |
7cc34889 | 4579 | thread_file='vxworks' |
861bb6c1 JL |
4580 | ;; |
4581 | i960-wrs-vxworks*) | |
4582 | tm_file="${tm_file} i960/vx960.h" | |
4583 | tmake_file=i960/t-vxworks960 | |
4584 | use_collect2=yes | |
7cc34889 | 4585 | thread_file='vxworks' |
861bb6c1 JL |
4586 | ;; |
4587 | i960-*-coff*) | |
4588 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4589 | tmake_file=i960/t-960bare | |
4590 | use_collect2=yes | |
4591 | ;; | |
4592 | i960-*-rtems) | |
4593 | tmake_file="i960/t-960bare t-rtems" | |
4594 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4595 | use_collect2=yes | |
4596 | ;; | |
4597 | i960-*-*) # Default i960 environment. | |
4598 | use_collect2=yes | |
4599 | ;; | |
c65ebc55 JW |
4600 | ia64*-*-elf*) |
4601 | tm_file=ia64/elf.h | |
4602 | tmake_file="ia64/t-ia64" | |
4603 | target_cpu_default="0" | |
4604 | if test x$gas = xyes | |
4605 | then | |
4606 | target_cpu_default="${target_cpu_default}|MASK_GNU_AS" | |
4607 | fi | |
4608 | if test x$gnu_ld = xyes | |
4609 | then | |
4610 | target_cpu_default="${target_cpu_default}|MASK_GNU_LD" | |
4611 | fi | |
4612 | ;; | |
4613 | ia64*-*-linux*) | |
4614 | tm_file=ia64/linux.h | |
4615 | tmake_file="t-linux ia64/t-ia64" | |
4616 | target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" | |
4617 | if test x$enable_threads = xyes; then | |
4618 | thread_file='posix' | |
4619 | fi | |
4620 | ;; | |
861bb6c1 JL |
4621 | m32r-*-elf*) |
4622 | extra_parts="crtinit.o crtfini.o" | |
4623 | ;; | |
4624 | m68000-convergent-sysv*) | |
4625 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4626 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4627 | xm_defines=USG | |
861bb6c1 JL |
4628 | use_collect2=yes |
4629 | extra_headers=math-68881.h | |
4630 | ;; | |
4631 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4632 | tm_file=m68k/hp2bsd.h | |
4633 | xmake_file=m68k/x-hp2bsd | |
4634 | use_collect2=yes | |
4635 | extra_headers=math-68881.h | |
4636 | ;; | |
4637 | m68000-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4638 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4639 | xm_defines="USG" |
75bffa71 | 4640 | if test x$gas = xyes |
861bb6c1 JL |
4641 | then |
4642 | xmake_file=m68k/x-hp320g | |
4643 | tm_file=m68k/hp310g.h | |
4644 | else | |
4645 | xmake_file=m68k/x-hp320 | |
4646 | tm_file=m68k/hp310.h | |
4647 | fi | |
861bb6c1 JL |
4648 | install_headers_dir=install-headers-cpio |
4649 | use_collect2=yes | |
4650 | extra_headers=math-68881.h | |
4651 | ;; | |
4652 | m68000-sun-sunos3*) | |
4653 | tm_file=m68k/sun2.h | |
4654 | use_collect2=yes | |
4655 | extra_headers=math-68881.h | |
4656 | ;; | |
4657 | m68000-sun-sunos4*) | |
4658 | tm_file=m68k/sun2o4.h | |
4659 | use_collect2=yes | |
4660 | extra_headers=math-68881.h | |
4661 | ;; | |
4662 | m68000-att-sysv*) | |
f6cb0e63 JL |
4663 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4664 | xm_defines=USG | |
75bffa71 | 4665 | if test x$gas = xyes |
861bb6c1 JL |
4666 | then |
4667 | tm_file=m68k/3b1g.h | |
4668 | else | |
4669 | tm_file=m68k/3b1.h | |
4670 | fi | |
4671 | use_collect2=yes | |
4672 | extra_headers=math-68881.h | |
4673 | ;; | |
4674 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4675 | xm_defines="USG AUX" |
861bb6c1 | 4676 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4677 | install_headers_dir=install-headers-cpio |
4678 | extra_headers=math-68881.h | |
4679 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4680 | tm_file= | |
75bffa71 | 4681 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4682 | then |
4683 | tm_file="${tm_file} m68k/auxgld.h" | |
4684 | else | |
4685 | tm_file="${tm_file} m68k/auxld.h" | |
4686 | fi | |
75bffa71 | 4687 | if test "$gas" = yes |
861bb6c1 JL |
4688 | then |
4689 | tm_file="${tm_file} m68k/auxgas.h" | |
4690 | else | |
4691 | tm_file="${tm_file} m68k/auxas.h" | |
4692 | fi | |
4693 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4694 | float_format=m68k |
861bb6c1 JL |
4695 | ;; |
4696 | m68k-apollo-*) | |
4697 | tm_file=m68k/apollo68.h | |
4698 | xmake_file=m68k/x-apollo68 | |
4699 | use_collect2=yes | |
4700 | extra_headers=math-68881.h | |
0a95276e | 4701 | float_format=m68k |
861bb6c1 JL |
4702 | ;; |
4703 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4704 | if test x$gas = xyes |
861bb6c1 JL |
4705 | then |
4706 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4707 | xm_defines=USG |
861bb6c1 JL |
4708 | else |
4709 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4710 | exit 1 | |
4711 | fi | |
4712 | extra_headers=math-68881.h | |
4713 | ;; | |
4714 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4715 | if test x$gas = xyes |
861bb6c1 | 4716 | then |
75bffa71 | 4717 | if test x$stabs = xyes |
861bb6c1 JL |
4718 | then |
4719 | tm_file=m68k/dpx2cdbx.h | |
4720 | else | |
4721 | tm_file=m68k/dpx2g.h | |
4722 | fi | |
4723 | else | |
4724 | tm_file=m68k/dpx2.h | |
4725 | fi | |
f6cb0e63 JL |
4726 | xm_file="xm-alloca.h ${xm_file}" |
4727 | xm_defines=USG | |
861bb6c1 JL |
4728 | xmake_file=m68k/x-dpx2 |
4729 | use_collect2=yes | |
4730 | extra_headers=math-68881.h | |
4731 | ;; | |
4732 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4733 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4734 | xm_file="xm-alloca.h ${xm_file}" |
4735 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4736 | tmake_file=t-svr4 |
4737 | extra_parts="crtbegin.o crtend.o" | |
4738 | extra_headers=math-68881.h | |
0a95276e | 4739 | float_format=m68k |
861bb6c1 JL |
4740 | ;; |
4741 | m68k-motorola-sysv*) | |
4742 | tm_file=m68k/mot3300.h | |
f6cb0e63 | 4743 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
75bffa71 | 4744 | if test x$gas = xyes |
861bb6c1 JL |
4745 | then |
4746 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4747 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4748 | then |
4749 | tmake_file=m68k/t-mot3300-gald | |
4750 | else | |
4751 | tmake_file=m68k/t-mot3300-gas | |
4752 | use_collect2=yes | |
4753 | fi | |
4754 | else | |
4755 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4756 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4757 | then |
4758 | tmake_file=m68k/t-mot3300-gld | |
4759 | else | |
4760 | tmake_file=m68k/t-mot3300 | |
4761 | use_collect2=yes | |
4762 | fi | |
4763 | fi | |
4764 | gdb_needs_out_file_path=yes | |
4765 | extra_parts="crt0.o mcrt0.o" | |
4766 | extra_headers=math-68881.h | |
0a95276e | 4767 | float_format=m68k |
861bb6c1 JL |
4768 | ;; |
4769 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4770 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4771 | xm_defines="USG SVR3" |
861bb6c1 JL |
4772 | xmake_file=m68k/x-tower |
4773 | extra_parts="crtbegin.o crtend.o" | |
4774 | extra_headers=math-68881.h | |
4775 | ;; | |
4776 | m68k-plexus-sysv*) | |
4777 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4778 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4779 | xm_defines=USG | |
861bb6c1 JL |
4780 | use_collect2=yes |
4781 | extra_headers=math-68881.h | |
4782 | ;; | |
4783 | m68k-tti-*) | |
4784 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4785 | xm_file="xm-alloca.h ${xm_file}" |
4786 | xm_defines=USG | |
861bb6c1 JL |
4787 | extra_headers=math-68881.h |
4788 | ;; | |
4789 | m68k-crds-unos*) | |
f6cb0e63 JL |
4790 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4791 | xm_defines="USG unos" | |
861bb6c1 JL |
4792 | xmake_file=m68k/x-crds |
4793 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4794 | use_collect2=yes |
4795 | extra_headers=math-68881.h | |
4796 | ;; | |
4797 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4798 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4799 | xm_file="xm-alloca.h ${xm_file}" |
4800 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4801 | xmake_file=m68k/x-amix |
4802 | tmake_file=t-svr4 | |
4803 | extra_parts="crtbegin.o crtend.o" | |
4804 | extra_headers=math-68881.h | |
0a95276e | 4805 | float_format=m68k |
861bb6c1 JL |
4806 | ;; |
4807 | m68k-ccur-rtu) | |
4808 | tm_file=m68k/ccur-GAS.h | |
4809 | xmake_file=m68k/x-ccur | |
4810 | extra_headers=math-68881.h | |
4811 | use_collect2=yes | |
0a95276e | 4812 | float_format=m68k |
861bb6c1 JL |
4813 | ;; |
4814 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4815 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4816 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4817 | use_collect2=yes |
4818 | extra_headers=math-68881.h | |
0a95276e | 4819 | float_format=m68k |
861bb6c1 JL |
4820 | ;; |
4821 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4822 | tm_file=m68k/hp3bsd.h | |
4823 | use_collect2=yes | |
4824 | extra_headers=math-68881.h | |
0a95276e | 4825 | float_format=m68k |
861bb6c1 JL |
4826 | ;; |
4827 | m68k-isi-bsd*) | |
75bffa71 | 4828 | if test x$with_fp = xno |
861bb6c1 JL |
4829 | then |
4830 | tm_file=m68k/isi-nfp.h | |
4831 | else | |
4832 | tm_file=m68k/isi.h | |
0a95276e | 4833 | float_format=m68k |
861bb6c1 JL |
4834 | fi |
4835 | use_collect2=yes | |
4836 | extra_headers=math-68881.h | |
4837 | ;; | |
4838 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1a87de8d | 4839 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4840 | xm_defines="USG" |
75bffa71 | 4841 | if test x$gas = xyes |
861bb6c1 JL |
4842 | then |
4843 | xmake_file=m68k/x-hp320g | |
4844 | tm_file=m68k/hp320g.h | |
4845 | else | |
4846 | xmake_file=m68k/x-hp320 | |
4847 | tm_file=m68k/hpux7.h | |
4848 | fi | |
861bb6c1 JL |
4849 | install_headers_dir=install-headers-cpio |
4850 | use_collect2=yes | |
4851 | extra_headers=math-68881.h | |
0a95276e | 4852 | float_format=m68k |
861bb6c1 JL |
4853 | ;; |
4854 | m68k-hp-hpux*) # HP 9000 series 300 | |
1a87de8d | 4855 | xm_file="xm-alloca.h ${xm_file}" |
2d092ffa | 4856 | xm_defines="USG" |
75bffa71 | 4857 | if test x$gas = xyes |
861bb6c1 JL |
4858 | then |
4859 | xmake_file=m68k/x-hp320g | |
4860 | tm_file=m68k/hp320g.h | |
4861 | else | |
4862 | xmake_file=m68k/x-hp320 | |
4863 | tm_file=m68k/hp320.h | |
4864 | fi | |
861bb6c1 JL |
4865 | install_headers_dir=install-headers-cpio |
4866 | use_collect2=yes | |
4867 | extra_headers=math-68881.h | |
0a95276e | 4868 | float_format=m68k |
861bb6c1 JL |
4869 | ;; |
4870 | m68k-sun-mach*) | |
4871 | tm_file=m68k/sun3mach.h | |
4872 | use_collect2=yes | |
4873 | extra_headers=math-68881.h | |
0a95276e | 4874 | float_format=m68k |
861bb6c1 JL |
4875 | ;; |
4876 | m68k-sony-newsos3*) | |
75bffa71 | 4877 | if test x$gas = xyes |
861bb6c1 JL |
4878 | then |
4879 | tm_file=m68k/news3gas.h | |
4880 | else | |
4881 | tm_file=m68k/news3.h | |
4882 | fi | |
4883 | use_collect2=yes | |
4884 | extra_headers=math-68881.h | |
0a95276e | 4885 | float_format=m68k |
861bb6c1 JL |
4886 | ;; |
4887 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4888 | if test x$gas = xyes |
861bb6c1 JL |
4889 | then |
4890 | tm_file=m68k/newsgas.h | |
4891 | else | |
4892 | tm_file=m68k/news.h | |
4893 | fi | |
4894 | use_collect2=yes | |
4895 | extra_headers=math-68881.h | |
0a95276e | 4896 | float_format=m68k |
861bb6c1 JL |
4897 | ;; |
4898 | m68k-next-nextstep2*) | |
4899 | tm_file=m68k/next21.h | |
f6cb0e63 | 4900 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4901 | tmake_file=m68k/t-next |
4902 | xmake_file=m68k/x-next | |
4903 | extra_objs=nextstep.o | |
4904 | extra_headers=math-68881.h | |
4905 | use_collect2=yes | |
0a95276e | 4906 | float_format=m68k |
861bb6c1 | 4907 | ;; |
016cebc3 | 4908 | m68k-next-nextstep[34]*) |
861bb6c1 | 4909 | tm_file=m68k/next.h |
f6cb0e63 | 4910 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4911 | tmake_file=m68k/t-next |
4912 | xmake_file=m68k/x-next | |
4913 | extra_objs=nextstep.o | |
750930c1 | 4914 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4915 | extra_headers=math-68881.h |
0a95276e | 4916 | float_format=m68k |
75bffa71 | 4917 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4918 | thread_file='mach' |
4919 | fi | |
4920 | ;; | |
4921 | m68k-sun-sunos3*) | |
75bffa71 | 4922 | if test x$with_fp = xno |
861bb6c1 JL |
4923 | then |
4924 | tm_file=m68k/sun3n3.h | |
4925 | else | |
4926 | tm_file=m68k/sun3o3.h | |
0a95276e | 4927 | float_format=m68k |
861bb6c1 JL |
4928 | fi |
4929 | use_collect2=yes | |
4930 | extra_headers=math-68881.h | |
4931 | ;; | |
4932 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4933 | if test x$with_fp = xno |
861bb6c1 JL |
4934 | then |
4935 | tm_file=m68k/sun3n.h | |
4936 | else | |
4937 | tm_file=m68k/sun3.h | |
0a95276e | 4938 | float_format=m68k |
861bb6c1 | 4939 | fi |
861bb6c1 JL |
4940 | use_collect2=yes |
4941 | extra_headers=math-68881.h | |
4942 | ;; | |
4943 | m68k-wrs-vxworks*) | |
4944 | tm_file=m68k/vxm68k.h | |
4945 | tmake_file=m68k/t-vxworks68 | |
4946 | extra_headers=math-68881.h | |
7cc34889 | 4947 | thread_file='vxworks' |
0a95276e | 4948 | float_format=m68k |
861bb6c1 JL |
4949 | ;; |
4950 | m68k-*-aout*) | |
4951 | tmake_file=m68k/t-m68kbare | |
4952 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4953 | extra_headers=math-68881.h | |
0a95276e | 4954 | float_format=m68k |
861bb6c1 JL |
4955 | ;; |
4956 | m68k-*-coff*) | |
4957 | tmake_file=m68k/t-m68kbare | |
4958 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4959 | extra_headers=math-68881.h | |
0a95276e | 4960 | float_format=m68k |
861bb6c1 | 4961 | ;; |
d1be3be3 | 4962 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 4963 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
4964 | xm_file=m68k/xm-m68kv.h |
4965 | tmake_file=m68k/t-m68kelf | |
4966 | header_files=math-68881.h | |
4967 | ;; | |
861bb6c1 | 4968 | m68k-*-lynxos*) |
75bffa71 | 4969 | if test x$gas = xyes |
861bb6c1 JL |
4970 | then |
4971 | tm_file=m68k/lynx.h | |
4972 | else | |
4973 | tm_file=m68k/lynx-ng.h | |
4974 | fi | |
4975 | xm_file=m68k/xm-lynx.h | |
4976 | xmake_file=x-lynx | |
4977 | tmake_file=m68k/t-lynx | |
4978 | extra_headers=math-68881.h | |
0a95276e | 4979 | float_format=m68k |
861bb6c1 | 4980 | ;; |
58600d24 | 4981 | m68k*-*-netbsd*) |
861bb6c1 | 4982 | tm_file=m68k/netbsd.h |
861bb6c1 | 4983 | tmake_file=t-netbsd |
0a95276e | 4984 | float_format=m68k |
ed4acb3b | 4985 | use_collect2=yes |
861bb6c1 | 4986 | ;; |
1b4a979b ME |
4987 | m68k*-*-openbsd*) |
4988 | float_format=m68k | |
4989 | # we need collect2 until our bug is fixed... | |
4990 | use_collect2=yes | |
4991 | ;; | |
861bb6c1 | 4992 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4993 | xm_file="xm-alloca.h ${xm_file}" |
4994 | xm_defines=USG | |
861bb6c1 JL |
4995 | xmake_file=m68k/x-m68kv |
4996 | extra_parts="crtbegin.o crtend.o" | |
4997 | extra_headers=math-68881.h | |
0a95276e | 4998 | float_format=m68k |
861bb6c1 JL |
4999 | ;; |
5000 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
5001 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
5002 | xm_file="xm-alloca.h ${xm_file}" |
5003 | xm_defines=USG | |
861bb6c1 JL |
5004 | tmake_file=t-svr4 |
5005 | extra_parts="crtbegin.o crtend.o" | |
5006 | extra_headers=math-68881.h | |
0a95276e | 5007 | float_format=m68k |
861bb6c1 | 5008 | ;; |
956d6950 | 5009 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 5010 | # with a.out format |
861bb6c1 JL |
5011 | xmake_file=x-linux |
5012 | tm_file=m68k/linux-aout.h | |
5013 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 5014 | extra_headers=math-68881.h |
0a95276e | 5015 | float_format=m68k |
861bb6c1 JL |
5016 | gnu_ld=yes |
5017 | ;; | |
956d6950 | 5018 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
5019 | # with ELF format using the |
5020 | # GNU/Linux C library 5 | |
5021 | xmake_file=x-linux | |
861bb6c1 JL |
5022 | tm_file=m68k/linux.h |
5023 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
5024 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 5025 | extra_headers=math-68881.h |
0a95276e | 5026 | float_format=m68k |
861bb6c1 JL |
5027 | gnu_ld=yes |
5028 | ;; | |
956d6950 | 5029 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
5030 | # with ELF format using glibc 2 |
5031 | # aka the GNU/Linux C library 6. | |
5032 | xmake_file=x-linux | |
861bb6c1 JL |
5033 | tm_file=m68k/linux.h |
5034 | tmake_file="t-linux m68k/t-linux" | |
5035 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 5036 | extra_headers=math-68881.h |
0a95276e | 5037 | float_format=m68k |
861bb6c1 | 5038 | gnu_ld=yes |
75bffa71 | 5039 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5040 | thread_file='posix' |
5041 | fi | |
5042 | ;; | |
5043 | m68k-*-psos*) | |
5044 | tmake_file=m68k/t-m68kbare | |
5045 | tm_file=m68k/m68k-psos.h | |
5046 | extra_headers=math-68881.h | |
0a95276e | 5047 | float_format=m68k |
861bb6c1 | 5048 | ;; |
6e5138f0 | 5049 | m68k-*-rtemscoff*) |
861bb6c1 JL |
5050 | tmake_file="m68k/t-m68kbare t-rtems" |
5051 | tm_file=m68k/rtems.h | |
5052 | extra_headers=math-68881.h | |
0a95276e | 5053 | float_format=m68k |
861bb6c1 | 5054 | ;; |
6e5138f0 | 5055 | m68k-*-rtemself*|m68k-*-rtems*) |
d1476635 JS |
5056 | tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" |
5057 | tm_file=m68k/rtemself.h | |
5058 | extra_headers=math-68881.h | |
5059 | float_format=m68k | |
5060 | ;; | |
861bb6c1 JL |
5061 | m88k-dg-dgux*) |
5062 | case $machine in | |
5063 | m88k-dg-dguxbcs*) | |
5064 | tm_file=m88k/dguxbcs.h | |
5065 | tmake_file=m88k/t-dguxbcs | |
5066 | ;; | |
5067 | *) | |
5068 | tm_file=m88k/dgux.h | |
5069 | tmake_file=m88k/t-dgux | |
5070 | ;; | |
5071 | esac | |
5072 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 5073 | xmake_file=m88k/x-dgux |
75bffa71 | 5074 | if test x$gas = xyes |
861bb6c1 JL |
5075 | then |
5076 | tmake_file=m88k/t-dgux-gas | |
5077 | fi | |
861bb6c1 JL |
5078 | ;; |
5079 | m88k-dolphin-sysv3*) | |
5080 | tm_file=m88k/dolph.h | |
5081 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5082 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5083 | xmake_file=m88k/x-dolph |
75bffa71 | 5084 | if test x$gas = xyes |
861bb6c1 JL |
5085 | then |
5086 | tmake_file=m88k/t-m88k-gas | |
5087 | fi | |
5088 | ;; | |
5089 | m88k-tektronix-sysv3) | |
5090 | tm_file=m88k/tekXD88.h | |
5091 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5092 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5093 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 5094 | if test x$gas = xyes |
861bb6c1 JL |
5095 | then |
5096 | tmake_file=m88k/t-m88k-gas | |
5097 | fi | |
5098 | ;; | |
5099 | m88k-*-aout*) | |
5100 | tm_file=m88k/m88k-aout.h | |
5101 | ;; | |
5102 | m88k-*-coff*) | |
5103 | tm_file=m88k/m88k-coff.h | |
5104 | tmake_file=m88k/t-bug | |
5105 | ;; | |
5106 | m88k-*-luna*) | |
5107 | tm_file=m88k/luna.h | |
5108 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 5109 | if test x$gas = xyes |
861bb6c1 JL |
5110 | then |
5111 | tmake_file=m88k/t-luna-gas | |
5112 | else | |
5113 | tmake_file=m88k/t-luna | |
5114 | fi | |
5115 | ;; | |
1b4a979b ME |
5116 | m88k-*-openbsd*) |
5117 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
5118 | ;; | |
861bb6c1 JL |
5119 | m88k-*-sysv3*) |
5120 | tm_file=m88k/sysv3.h | |
5121 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 5122 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 5123 | xmake_file=m88k/x-sysv3 |
75bffa71 | 5124 | if test x$gas = xyes |
861bb6c1 JL |
5125 | then |
5126 | tmake_file=m88k/t-m88k-gas | |
5127 | fi | |
5128 | ;; | |
5129 | m88k-*-sysv4*) | |
5130 | tm_file=m88k/sysv4.h | |
5131 | extra_parts="crtbegin.o crtend.o" | |
5132 | xmake_file=m88k/x-sysv4 | |
5133 | tmake_file=m88k/t-sysv4 | |
5134 | ;; | |
789a3090 NC |
5135 | mcore-*-elf) |
5136 | tm_file=mcore/mcore-elf.h | |
5137 | tmake_file=mcore/t-mcore | |
5138 | ;; | |
5139 | mcore-*-pe*) | |
5140 | tm_file=mcore/mcore-pe.h | |
5141 | tmake_file=mcore/t-mcore-pe | |
5142 | ;; | |
861bb6c1 | 5143 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 |
9b5c756a JL |
5144 | if test "x$gnu_ld" = xyes |
5145 | then | |
5146 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
5147 | else |
5148 | tm_file=mips/iris6.h | |
9b5c756a | 5149 | fi |
30f08b39 | 5150 | tmake_file=mips/t-iris6 |
861bb6c1 | 5151 | xm_file=mips/xm-iris6.h |
861bb6c1 | 5152 | xmake_file=mips/x-iris6 |
04069e5c | 5153 | # if test x$enable_threads = xyes; then |
6e148807 | 5154 | # thread_file='irix' |
04069e5c | 5155 | # fi |
861bb6c1 | 5156 | ;; |
98bd9f0f | 5157 | mips-wrs-vxworks) |
7aae67a2 | 5158 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
5159 | tmake_file=mips/t-ecoff |
5160 | gas=yes | |
5161 | gnu_ld=yes | |
5162 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 5163 | thread_file='vxworks' |
98bd9f0f | 5164 | ;; |
861bb6c1 | 5165 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 5166 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
5167 | xm_defines=USG |
5168 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5169 | xmake_file=mips/x-iris |
5170 | tmake_file=mips/t-cross64 | |
5171 | # See comment in mips/iris[56].h files. | |
5172 | use_collect2=yes | |
04069e5c | 5173 | # if test x$enable_threads = xyes; then |
6e148807 | 5174 | # thread_file='irix' |
04069e5c | 5175 | # fi |
861bb6c1 JL |
5176 | ;; |
5177 | mips-sni-sysv4) | |
75bffa71 | 5178 | if test x$gas = xyes |
861bb6c1 | 5179 | then |
75bffa71 | 5180 | if test x$stabs = xyes |
861bb6c1 JL |
5181 | then |
5182 | tm_file=mips/iris5gdb.h | |
5183 | else | |
f6cb0e63 | 5184 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
5185 | fi |
5186 | else | |
5187 | tm_file=mips/sni-svr4.h | |
5188 | fi | |
f6cb0e63 | 5189 | xm_defines=USG |
861bb6c1 JL |
5190 | xmake_file=mips/x-sni-svr4 |
5191 | tmake_file=mips/t-mips-gas | |
75bffa71 | 5192 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5193 | then |
5194 | use_collect2=yes | |
5195 | fi | |
861bb6c1 JL |
5196 | ;; |
5197 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 5198 | if test x$gas = xyes |
861bb6c1 | 5199 | then |
f6cb0e63 | 5200 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 5201 | if test x$stabs = xyes |
861bb6c1 JL |
5202 | then |
5203 | tm_file="${tm_file} dbx.h" | |
5204 | fi | |
5205 | else | |
5206 | tm_file=mips/iris5.h | |
5207 | fi | |
74c55ab0 JW |
5208 | xm_defines=USG |
5209 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
5210 | xmake_file=mips/x-iris |
5211 | # mips-tfile doesn't work yet | |
5212 | tmake_file=mips/t-mips-gas | |
5213 | # See comment in mips/iris5.h file. | |
5214 | use_collect2=yes | |
04069e5c | 5215 | # if test x$enable_threads = xyes; then |
6e148807 | 5216 | # thread_file='irix' |
04069e5c | 5217 | # fi |
861bb6c1 JL |
5218 | ;; |
5219 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 5220 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5221 | if test x$stabs = xyes; then |
861bb6c1 JL |
5222 | tm_file="${tm_file} dbx.h" |
5223 | fi | |
f6cb0e63 | 5224 | xm_defines=USG |
861bb6c1 | 5225 | xmake_file=mips/x-iris |
75bffa71 | 5226 | if test x$gas = xyes |
861bb6c1 JL |
5227 | then |
5228 | tmake_file=mips/t-mips-gas | |
5229 | else | |
5230 | extra_passes="mips-tfile mips-tdump" | |
5231 | fi | |
75bffa71 | 5232 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5233 | then |
5234 | use_collect2=yes | |
5235 | fi | |
04069e5c | 5236 | # if test x$enable_threads = xyes; then |
6e148807 | 5237 | # thread_file='irix' |
04069e5c | 5238 | # fi |
861bb6c1 JL |
5239 | ;; |
5240 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 5241 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 5242 | if test x$stabs = xyes; then |
861bb6c1 JL |
5243 | tm_file="${tm_file} dbx.h" |
5244 | fi | |
f6cb0e63 | 5245 | xm_defines=USG |
861bb6c1 | 5246 | xmake_file=mips/x-iris |
75bffa71 | 5247 | if test x$gas = xyes |
861bb6c1 JL |
5248 | then |
5249 | tmake_file=mips/t-mips-gas | |
5250 | else | |
5251 | extra_passes="mips-tfile mips-tdump" | |
5252 | fi | |
75bffa71 | 5253 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5254 | then |
5255 | use_collect2=yes | |
5256 | fi | |
04069e5c | 5257 | # if test x$enable_threads = xyes; then |
6e148807 | 5258 | # thread_file='irix' |
04069e5c | 5259 | # fi |
861bb6c1 JL |
5260 | ;; |
5261 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 5262 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 5263 | if test x$stabs = xyes; then |
861bb6c1 JL |
5264 | tm_file="${tm_file} dbx.h" |
5265 | fi | |
f6cb0e63 | 5266 | xm_defines=USG |
861bb6c1 | 5267 | xmake_file=mips/x-iris3 |
75bffa71 | 5268 | if test x$gas = xyes |
861bb6c1 JL |
5269 | then |
5270 | tmake_file=mips/t-mips-gas | |
5271 | else | |
5272 | extra_passes="mips-tfile mips-tdump" | |
5273 | fi | |
75bffa71 | 5274 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5275 | then |
5276 | use_collect2=yes | |
5277 | fi | |
5278 | ;; | |
5279 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 5280 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
5281 | xmake_file=mips/x-osfrose |
5282 | tmake_file=mips/t-osfrose | |
5283 | extra_objs=halfpic.o | |
5284 | use_collect2=yes | |
5285 | ;; | |
5286 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
5287 | tm_file=mips/dec-osf1.h | |
75bffa71 | 5288 | if test x$stabs = xyes; then |
861bb6c1 JL |
5289 | tm_file="${tm_file} dbx.h" |
5290 | fi | |
5291 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 5292 | if test x$gas = xyes |
861bb6c1 JL |
5293 | then |
5294 | tmake_file=mips/t-mips-gas | |
5295 | else | |
5296 | tmake_file=mips/t-ultrix | |
5297 | extra_passes="mips-tfile mips-tdump" | |
5298 | fi | |
75bffa71 | 5299 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5300 | then |
5301 | use_collect2=yes | |
5302 | fi | |
5303 | ;; | |
5304 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
5305 | tm_file=mips/dec-bsd.h | |
75bffa71 | 5306 | if test x$gas = xyes |
861bb6c1 JL |
5307 | then |
5308 | tmake_file=mips/t-mips-gas | |
5309 | else | |
5310 | tmake_file=mips/t-ultrix | |
5311 | extra_passes="mips-tfile mips-tdump" | |
5312 | fi | |
75bffa71 | 5313 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5314 | then |
5315 | use_collect2=yes | |
5316 | fi | |
5317 | ;; | |
58600d24 | 5318 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 5319 | tm_file=mips/netbsd.h |
be1ed94f | 5320 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5321 | tmake_file=t-netbsd |
861bb6c1 | 5322 | ;; |
54953b66 | 5323 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 | 5324 | xmake_file=x-linux |
54953b66 UD |
5325 | case $machine in |
5326 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
5327 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
5328 | esac | |
e86e6730 | 5329 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
18cae839 RL |
5330 | gnu_ld=yes |
5331 | gas=yes | |
e86e6730 AJ |
5332 | if test x$enable_threads = xyes; then |
5333 | thread_file='posix' | |
5334 | fi | |
18cae839 | 5335 | ;; |
1b4a979b ME |
5336 | mips*el-*-openbsd*) # mips little endian |
5337 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
1b4a979b ME |
5338 | ;; |
5339 | mips*-*-openbsd*) # mips big endian | |
5340 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
9e28024a | 5341 | tm_file="mips/openbsd-be.h ${tm_file}" |
1b4a979b | 5342 | ;; |
861bb6c1 | 5343 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 5344 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 5345 | if test x$stabs = xyes; then |
861bb6c1 JL |
5346 | tm_file="${tm_file} dbx.h" |
5347 | fi | |
75bffa71 | 5348 | if test x$gas = xyes |
861bb6c1 JL |
5349 | then |
5350 | tmake_file=mips/t-mips-gas | |
5351 | else | |
5352 | extra_passes="mips-tfile mips-tdump" | |
5353 | fi | |
75bffa71 | 5354 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5355 | then |
5356 | use_collect2=yes | |
5357 | fi | |
5358 | xmake_file=mips/x-sony | |
5359 | ;; | |
5360 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
5361 | # That is based on svr4. | |
5362 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 5363 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 5364 | if test x$stabs = xyes; then |
861bb6c1 JL |
5365 | tm_file="${tm_file} dbx.h" |
5366 | fi | |
f6cb0e63 | 5367 | xm_defines=USG |
75bffa71 | 5368 | if test x$gas = xyes |
861bb6c1 JL |
5369 | then |
5370 | tmake_file=mips/t-mips-gas | |
5371 | else | |
5372 | extra_passes="mips-tfile mips-tdump" | |
5373 | fi | |
75bffa71 | 5374 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5375 | then |
5376 | use_collect2=yes | |
5377 | fi | |
5378 | ;; | |
5379 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 5380 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 5381 | if test x$stabs = xyes; then |
861bb6c1 JL |
5382 | tm_file="${tm_file} dbx.h" |
5383 | fi | |
f6cb0e63 | 5384 | xm_defines=USG |
861bb6c1 | 5385 | xmake_file=mips/x-sysv |
75bffa71 | 5386 | if test x$gas = xyes |
861bb6c1 JL |
5387 | then |
5388 | tmake_file=mips/t-mips-gas | |
5389 | extra_parts="crtbegin.o crtend.o" | |
5390 | else | |
5391 | tmake_file=mips/t-mips | |
5392 | extra_passes="mips-tfile mips-tdump" | |
5393 | fi | |
75bffa71 | 5394 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5395 | then |
5396 | use_collect2=yes | |
5397 | fi | |
861bb6c1 JL |
5398 | ;; |
5399 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 5400 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 5401 | if test x$stabs = xyes; then |
861bb6c1 JL |
5402 | tm_file="${tm_file} dbx.h" |
5403 | fi | |
5404 | xmake_file=mips/x-ultrix | |
75bffa71 | 5405 | if test x$gas = xyes |
861bb6c1 JL |
5406 | then |
5407 | tmake_file=mips/t-mips-gas | |
5408 | else | |
5409 | tmake_file=mips/t-ultrix | |
5410 | extra_passes="mips-tfile mips-tdump" | |
5411 | fi | |
75bffa71 | 5412 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5413 | then |
5414 | use_collect2=yes | |
5415 | fi | |
5416 | ;; | |
5417 | mips-*-riscos[56789]bsd*) | |
5418 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 5419 | if test x$stabs = xyes; then |
861bb6c1 JL |
5420 | tm_file="${tm_file} dbx.h" |
5421 | fi | |
75bffa71 | 5422 | if test x$gas = xyes |
861bb6c1 JL |
5423 | then |
5424 | tmake_file=mips/t-bsd-gas | |
5425 | else | |
5426 | tmake_file=mips/t-bsd | |
5427 | extra_passes="mips-tfile mips-tdump" | |
5428 | fi | |
75bffa71 | 5429 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5430 | then |
5431 | use_collect2=yes | |
5432 | fi | |
861bb6c1 JL |
5433 | ;; |
5434 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 5435 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 5436 | if test x$stabs = xyes; then |
861bb6c1 JL |
5437 | tm_file="${tm_file} dbx.h" |
5438 | fi | |
75bffa71 | 5439 | if test x$gas = xyes |
861bb6c1 JL |
5440 | then |
5441 | tmake_file=mips/t-bsd-gas | |
5442 | else | |
5443 | tmake_file=mips/t-bsd | |
5444 | extra_passes="mips-tfile mips-tdump" | |
5445 | fi | |
75bffa71 | 5446 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5447 | then |
5448 | use_collect2=yes | |
5449 | fi | |
861bb6c1 JL |
5450 | ;; |
5451 | mips-*-riscos[56789]sysv4*) | |
5452 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 5453 | if test x$stabs = xyes; then |
861bb6c1 JL |
5454 | tm_file="${tm_file} dbx.h" |
5455 | fi | |
861bb6c1 | 5456 | xmake_file=mips/x-sysv |
75bffa71 | 5457 | if test x$gas = xyes |
861bb6c1 JL |
5458 | then |
5459 | tmake_file=mips/t-svr4-gas | |
5460 | else | |
5461 | tmake_file=mips/t-svr4 | |
5462 | extra_passes="mips-tfile mips-tdump" | |
5463 | fi | |
75bffa71 | 5464 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5465 | then |
5466 | use_collect2=yes | |
5467 | fi | |
861bb6c1 JL |
5468 | ;; |
5469 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 5470 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 5471 | if test x$stabs = xyes; then |
861bb6c1 JL |
5472 | tm_file="${tm_file} dbx.h" |
5473 | fi | |
f6cb0e63 | 5474 | xm_defines=USG |
861bb6c1 | 5475 | xmake_file=mips/x-sysv |
75bffa71 | 5476 | if test x$gas = xyes |
861bb6c1 JL |
5477 | then |
5478 | tmake_file=mips/t-svr4-gas | |
5479 | else | |
5480 | tmake_file=mips/t-svr4 | |
5481 | extra_passes="mips-tfile mips-tdump" | |
5482 | fi | |
75bffa71 | 5483 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5484 | then |
5485 | use_collect2=yes | |
5486 | fi | |
861bb6c1 JL |
5487 | ;; |
5488 | mips-*-riscos[56789]sysv*) | |
5489 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 5490 | if test x$stabs = xyes; then |
861bb6c1 JL |
5491 | tm_file="${tm_file} dbx.h" |
5492 | fi | |
f6cb0e63 | 5493 | xm_defines=USG |
861bb6c1 | 5494 | xmake_file=mips/x-sysv |
75bffa71 | 5495 | if test x$gas = xyes |
861bb6c1 JL |
5496 | then |
5497 | tmake_file=mips/t-svr3-gas | |
5498 | else | |
5499 | tmake_file=mips/t-svr3 | |
5500 | extra_passes="mips-tfile mips-tdump" | |
5501 | fi | |
75bffa71 | 5502 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5503 | then |
5504 | use_collect2=yes | |
5505 | fi | |
861bb6c1 JL |
5506 | ;; |
5507 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 5508 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 5509 | if test x$stabs = xyes; then |
861bb6c1 JL |
5510 | tm_file="${tm_file} dbx.h" |
5511 | fi | |
f6cb0e63 | 5512 | xm_defines=USG |
861bb6c1 | 5513 | xmake_file=mips/x-sysv |
75bffa71 | 5514 | if test x$gas = xyes |
861bb6c1 JL |
5515 | then |
5516 | tmake_file=mips/t-svr3-gas | |
5517 | else | |
5518 | tmake_file=mips/t-svr3 | |
5519 | extra_passes="mips-tfile mips-tdump" | |
5520 | fi | |
75bffa71 | 5521 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5522 | then |
5523 | use_collect2=yes | |
5524 | fi | |
861bb6c1 JL |
5525 | ;; |
5526 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
5527 | tm_file=mips/mips-5.h | |
75bffa71 | 5528 | if test x$stabs = xyes; then |
861bb6c1 JL |
5529 | tm_file="${tm_file} dbx.h" |
5530 | fi | |
75bffa71 | 5531 | if test x$gas = xyes |
861bb6c1 JL |
5532 | then |
5533 | tmake_file=mips/t-mips-gas | |
5534 | else | |
5535 | extra_passes="mips-tfile mips-tdump" | |
5536 | fi | |
75bffa71 | 5537 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5538 | then |
5539 | use_collect2=yes | |
5540 | fi | |
861bb6c1 JL |
5541 | ;; |
5542 | mips-*-gnu*) | |
5543 | ;; | |
5544 | mipsel-*-ecoff*) | |
5545 | tm_file=mips/ecoffl.h | |
75bffa71 | 5546 | if test x$stabs = xyes; then |
861bb6c1 JL |
5547 | tm_file="${tm_file} dbx.h" |
5548 | fi | |
5549 | tmake_file=mips/t-ecoff | |
5550 | ;; | |
5551 | mips-*-ecoff*) | |
1be12a4a | 5552 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5553 | if test x$stabs = xyes; then |
861bb6c1 JL |
5554 | tm_file="${tm_file} dbx.h" |
5555 | fi | |
5556 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5557 | ;; |
5558 | mipsel-*-elf*) | |
7aae67a2 | 5559 | tm_file="mips/elfl.h" |
d8265d29 | 5560 | tmake_file=mips/t-elf |
861bb6c1 JL |
5561 | ;; |
5562 | mips-*-elf*) | |
d8265d29 CM |
5563 | tm_file="mips/elf.h" |
5564 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5565 | ;; |
5566 | mips64el-*-elf*) | |
d8265d29 CM |
5567 | tm_file="mips/elfl64.h" |
5568 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5569 | ;; |
5570 | mips64orionel-*-elf*) | |
7aae67a2 | 5571 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5572 | tmake_file=mips/t-elf |
861bb6c1 JL |
5573 | ;; |
5574 | mips64-*-elf*) | |
d8265d29 CM |
5575 | tm_file="mips/elf64.h" |
5576 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5577 | ;; |
5578 | mips64orion-*-elf*) | |
7aae67a2 | 5579 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5580 | tmake_file=mips/t-elf |
861bb6c1 JL |
5581 | ;; |
5582 | mips64orion-*-rtems*) | |
6e9856ba | 5583 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
d1476635 | 5584 | tmake_file="mips/t-elf t-rtems" |
861bb6c1 | 5585 | ;; |
e9a25f70 | 5586 | mipstx39el-*-elf*) |
d8265d29 | 5587 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5588 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5589 | ;; |
5590 | mipstx39-*-elf*) | |
d8265d29 | 5591 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5592 | tmake_file=mips/t-r3900 |
e9a25f70 | 5593 | ;; |
861bb6c1 | 5594 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5595 | if test x$stabs = xyes; then |
861bb6c1 JL |
5596 | tm_file="${tm_file} dbx.h" |
5597 | fi | |
75bffa71 | 5598 | if test x$gas = xyes |
861bb6c1 JL |
5599 | then |
5600 | tmake_file=mips/t-mips-gas | |
5601 | else | |
5602 | extra_passes="mips-tfile mips-tdump" | |
5603 | fi | |
75bffa71 | 5604 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5605 | then |
5606 | use_collect2=yes | |
5607 | fi | |
5608 | ;; | |
5609 | mn10200-*-*) | |
5e3c02a8 | 5610 | float_format=i32 |
861bb6c1 JL |
5611 | cpu_type=mn10200 |
5612 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5613 | if test x$stabs = xyes |
861bb6c1 JL |
5614 | then |
5615 | tm_file="${tm_file} dbx.h" | |
5616 | fi | |
5617 | use_collect2=no | |
5618 | ;; | |
5619 | mn10300-*-*) | |
5620 | cpu_type=mn10300 | |
5621 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5622 | if test x$stabs = xyes |
861bb6c1 JL |
5623 | then |
5624 | tm_file="${tm_file} dbx.h" | |
5625 | fi | |
5626 | use_collect2=no | |
5627 | ;; | |
5628 | ns32k-encore-bsd*) | |
5629 | tm_file=ns32k/encore.h | |
5630 | use_collect2=yes | |
5631 | ;; | |
5632 | ns32k-sequent-bsd*) | |
5633 | tm_file=ns32k/sequent.h | |
5634 | use_collect2=yes | |
5635 | ;; | |
5636 | ns32k-tek6100-bsd*) | |
5637 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5638 | use_collect2=yes |
5639 | ;; | |
5640 | ns32k-tek6200-bsd*) | |
5641 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5642 | use_collect2=yes |
5643 | ;; | |
5644 | # This has not been updated to GCC 2. | |
5645 | # ns32k-ns-genix*) | |
f6cb0e63 | 5646 | # xm_defines=USG |
861bb6c1 JL |
5647 | # xmake_file=ns32k/x-genix |
5648 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5649 | # use_collect2=yes |
5650 | # ;; | |
5651 | ns32k-merlin-*) | |
5652 | tm_file=ns32k/merlin.h | |
5653 | use_collect2=yes | |
5654 | ;; | |
5655 | ns32k-pc532-mach*) | |
5656 | tm_file=ns32k/pc532-mach.h | |
5657 | use_collect2=yes | |
5658 | ;; | |
5659 | ns32k-pc532-minix*) | |
5660 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5661 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5662 | xm_defines=USG | |
861bb6c1 JL |
5663 | use_collect2=yes |
5664 | ;; | |
58600d24 | 5665 | ns32k-*-netbsd*) |
861bb6c1 | 5666 | tm_file=ns32k/netbsd.h |
641d4216 | 5667 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5668 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5669 | tmake_file=t-netbsd |
ed4acb3b | 5670 | use_collect2=yes |
861bb6c1 JL |
5671 | ;; |
5672 | pdp11-*-bsd) | |
5673 | tm_file="${tm_file} pdp11/2bsd.h" | |
5674 | ;; | |
5675 | pdp11-*-*) | |
5676 | ;; | |
d48120fe DC |
5677 | avr-*-*) |
5678 | ;; | |
1b4a979b ME |
5679 | ns32k-*-openbsd*) |
5680 | # Nothing special | |
5681 | ;; | |
7a3842b3 RH |
5682 | # This has not been updated to GCC 2. |
5683 | # pyramid-*-*) | |
5684 | # cpu_type=pyr | |
5685 | # xmake_file=pyr/x-pyr | |
5686 | # use_collect2=yes | |
5687 | # ;; | |
1b992148 SC |
5688 | |
5689 | pj*-linux*) | |
5690 | tm_file="svr4.h pj/linux.h ${tm_file}" | |
5691 | ;; | |
5692 | pj-*) | |
5693 | ;; | |
5694 | pjl-*) | |
5695 | tm_file="svr4.h pj/pjl.h ${tm_file}" | |
5696 | ;; | |
5697 | ||
861bb6c1 JL |
5698 | romp-*-aos*) |
5699 | use_collect2=yes | |
5700 | ;; | |
5701 | romp-*-mach*) | |
5702 | xmake_file=romp/x-mach | |
5703 | use_collect2=yes | |
5704 | ;; | |
1b4a979b ME |
5705 | romp-*-openbsd*) |
5706 | # Nothing special | |
5707 | ;; | |
5708 | powerpc-*-openbsd*) | |
5709 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5710 | ;; |
c55dcc7d FF |
5711 | powerpc-*-beos*) |
5712 | cpu_type=rs6000 | |
5713 | tm_file=rs6000/beos.h | |
5714 | xm_file=rs6000/xm-beos.h | |
5715 | tmake_file=rs6000/t-beos | |
5716 | xmake_file=rs6000/x-beos | |
5717 | ;; | |
b26e3a82 | 5718 | powerpc-*-sysv*) |
861bb6c1 | 5719 | tm_file=rs6000/sysv4.h |
2d092ffa | 5720 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5721 | xm_defines="USG POSIX" |
861bb6c1 | 5722 | extra_headers=ppc-asm.h |
b26e3a82 | 5723 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5724 | xmake_file=rs6000/x-sysv4 |
5725 | ;; | |
5726 | powerpc-*-eabiaix*) | |
b26e3a82 | 5727 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" |
861bb6c1 | 5728 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5729 | extra_headers=ppc-asm.h |
5730 | ;; | |
5731 | powerpc-*-eabisim*) | |
b26e3a82 GK |
5732 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" |
5733 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5734 | extra_headers=ppc-asm.h | |
5735 | ;; | |
5736 | powerpc-*-elf*) | |
5737 | tm_file="rs6000/sysv4.h" | |
861bb6c1 | 5738 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5739 | extra_headers=ppc-asm.h |
5740 | ;; | |
5741 | powerpc-*-eabi*) | |
b26e3a82 GK |
5742 | tm_file="rs6000/sysv4.h rs6000/eabi.h" |
5743 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5744 | extra_headers=ppc-asm.h |
5745 | ;; | |
5746 | powerpc-*-rtems*) | |
b26e3a82 GK |
5747 | tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h" |
5748 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
861bb6c1 JL |
5749 | extra_headers=ppc-asm.h |
5750 | ;; | |
ce514f57 | 5751 | powerpc-*-linux-gnulibc1) |
b26e3a82 | 5752 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
ce514f57 FS |
5753 | xm_file=rs6000/xm-sysv4.h |
5754 | out_file=rs6000/rs6000.c | |
b26e3a82 | 5755 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" |
ce514f57 | 5756 | xmake_file=x-linux |
ce514f57 | 5757 | extra_headers=ppc-asm.h |
75bffa71 | 5758 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5759 | thread_file='posix' |
5760 | fi | |
5761 | ;; | |
861bb6c1 | 5762 | powerpc-*-linux-gnu*) |
b26e3a82 | 5763 | tm_file="rs6000/sysv4.h rs6000/linux.h" |
2d092ffa | 5764 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5765 | xm_defines="USG ${xm_defines}" |
861bb6c1 | 5766 | out_file=rs6000/rs6000.c |
b26e3a82 | 5767 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
861bb6c1 | 5768 | xmake_file=x-linux |
861bb6c1 | 5769 | extra_headers=ppc-asm.h |
75bffa71 | 5770 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5771 | thread_file='posix' |
5772 | fi | |
5773 | ;; | |
7cc34889 | 5774 | powerpc-wrs-vxworks*) |
861bb6c1 | 5775 | cpu_type=rs6000 |
2d092ffa | 5776 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5777 | xm_defines="USG POSIX" |
b26e3a82 | 5778 | tm_file="rs6000/sysv4.h rs6000/vxppc.h" |
861bb6c1 JL |
5779 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5780 | extra_headers=ppc-asm.h | |
7cc34889 | 5781 | thread_file='vxworks' |
861bb6c1 | 5782 | ;; |
9ebbca7d GK |
5783 | powerpcle-wrs-vxworks*) |
5784 | cpu_type=rs6000 | |
5785 | xm_file="rs6000/xm-sysv4.h" | |
5786 | xm_defines="USG POSIX" | |
b26e3a82 | 5787 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h" |
9ebbca7d GK |
5788 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
5789 | extra_headers=ppc-asm.h | |
5790 | thread_file='vxworks' | |
5791 | ;; | |
b26e3a82 GK |
5792 | powerpcle-*-sysv*) |
5793 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
2d092ffa | 5794 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5795 | xm_defines="USG POSIX" |
b26e3a82 | 5796 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 JL |
5797 | xmake_file=rs6000/x-sysv4 |
5798 | extra_headers=ppc-asm.h | |
5799 | ;; | |
b26e3a82 GK |
5800 | powerpcle-*-elf*) |
5801 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h" | |
5802 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5803 | extra_headers=ppc-asm.h | |
5804 | ;; | |
861bb6c1 | 5805 | powerpcle-*-eabisim*) |
b26e3a82 | 5806 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" |
861bb6c1 | 5807 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" |
861bb6c1 JL |
5808 | extra_headers=ppc-asm.h |
5809 | ;; | |
5810 | powerpcle-*-eabi*) | |
b26e3a82 GK |
5811 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" |
5812 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5813 | extra_headers=ppc-asm.h |
5814 | ;; | |
861bb6c1 | 5815 | powerpcle-*-solaris2*) |
b26e3a82 | 5816 | tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h" |
2d092ffa | 5817 | xm_file="rs6000/xm-sysv4.h" |
f6cb0e63 | 5818 | xm_defines="USG POSIX" |
b26e3a82 | 5819 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" |
861bb6c1 | 5820 | xmake_file=rs6000/x-sysv4 |
861bb6c1 JL |
5821 | extra_headers=ppc-asm.h |
5822 | ;; | |
5823 | rs6000-ibm-aix3.[01]*) | |
5824 | tm_file=rs6000/aix31.h | |
5825 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5826 | float_format=none |
861bb6c1 JL |
5827 | use_collect2=yes |
5828 | ;; | |
5829 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5830 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5831 | if test x$host != x$target |
861bb6c1 JL |
5832 | then |
5833 | tmake_file=rs6000/t-xnewas | |
5834 | else | |
5835 | tmake_file=rs6000/t-newas | |
5836 | fi | |
45e24d08 | 5837 | float_format=none |
861bb6c1 JL |
5838 | use_collect2=yes |
5839 | ;; | |
05cea40f | 5840 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5841 | tm_file=rs6000/aix41.h |
75bffa71 | 5842 | if test x$host != x$target |
861bb6c1 JL |
5843 | then |
5844 | tmake_file=rs6000/t-xnewas | |
6da9c622 RK |
5845 | else |
5846 | tmake_file=rs6000/t-newas | |
5847 | fi | |
5848 | if test "$gnu_ld" = yes | |
5849 | then | |
5850 | xmake_file=rs6000/x-aix41-gld | |
861bb6c1 | 5851 | else |
e680248e | 5852 | tmake_file="rs6000/t-newas rs6000/t-aix41" |
861bb6c1 | 5853 | fi |
9ebbca7d | 5854 | xmake_file=rs6000/x-aix41 |
45e24d08 | 5855 | float_format=none |
0a95276e JL |
5856 | use_collect2=yes |
5857 | ;; | |
7747ddb3 | 5858 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5859 | tm_file=rs6000/aix43.h |
9ebbca7d GK |
5860 | tmake_file=rs6000/t-aix43 |
5861 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5862 | float_format=none |
0a95276e JL |
5863 | use_collect2=yes |
5864 | ;; | |
5865 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5866 | tm_file=rs6000/aix43.h | |
9ebbca7d GK |
5867 | tmake_file=rs6000/t-aix43 |
5868 | xmake_file=rs6000/x-aix41 | |
45e24d08 | 5869 | float_format=none |
861bb6c1 JL |
5870 | use_collect2=yes |
5871 | ;; | |
5872 | rs6000-ibm-aix*) | |
45e24d08 | 5873 | float_format=none |
861bb6c1 JL |
5874 | use_collect2=yes |
5875 | ;; | |
5876 | rs6000-bull-bosx) | |
45e24d08 | 5877 | float_format=none |
861bb6c1 JL |
5878 | use_collect2=yes |
5879 | ;; | |
5880 | rs6000-*-mach*) | |
5881 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5882 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5883 | xmake_file=rs6000/x-mach |
5884 | use_collect2=yes | |
5885 | ;; | |
5886 | rs6000-*-lynxos*) | |
5887 | tm_file=rs6000/lynx.h | |
5888 | xm_file=rs6000/xm-lynx.h | |
5889 | tmake_file=rs6000/t-rs6000 | |
5890 | xmake_file=rs6000/x-lynx | |
5891 | use_collect2=yes | |
5892 | ;; | |
5893 | sh-*-elf*) | |
5894 | tm_file=sh/elf.h | |
5895 | float_format=sh | |
5896 | ;; | |
b098f56d JS |
5897 | sh-*-rtemself*) |
5898 | tmake_file="sh/t-sh t-rtems" | |
5899 | tm_file=sh/rtemself.h | |
5900 | float_format=sh | |
5901 | ;; | |
5d84b57e JS |
5902 | sh-*-rtems*) |
5903 | tmake_file="sh/t-sh t-rtems" | |
5904 | tm_file=sh/rtems.h | |
5905 | float_format=sh | |
5906 | ;; | |
861bb6c1 JL |
5907 | sh-*-*) |
5908 | float_format=sh | |
5909 | ;; | |
5910 | sparc-tti-*) | |
5911 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5912 | xm_file="xm-alloca.h ${xm_file}" |
5913 | xm_defines=USG | |
861bb6c1 JL |
5914 | ;; |
5915 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5916 | tm_file=sparc/vxsparc.h | |
5917 | tmake_file=sparc/t-vxsparc | |
5918 | use_collect2=yes | |
7cc34889 | 5919 | thread_file='vxworks' |
861bb6c1 JL |
5920 | ;; |
5921 | sparc-*-aout*) | |
5922 | tmake_file=sparc/t-sparcbare | |
5923 | tm_file="sparc/aout.h libgloss.h" | |
5924 | ;; | |
5925 | sparc-*-netbsd*) | |
5926 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5927 | tmake_file=t-netbsd |
ed4acb3b | 5928 | use_collect2=yes |
861bb6c1 | 5929 | ;; |
1b4a979b ME |
5930 | sparc-*-openbsd*) |
5931 | # we need collect2 until our bug is fixed... | |
5932 | use_collect2=yes | |
5933 | ;; | |
861bb6c1 JL |
5934 | sparc-*-bsd*) |
5935 | tm_file=sparc/bsd.h | |
5936 | ;; | |
ac52b80b DE |
5937 | sparc-*-elf*) |
5938 | tm_file=sparc/elf.h | |
5939 | tmake_file=sparc/t-elf | |
5940 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5941 | #float_format=i128 | |
5942 | float_format=i64 | |
5943 | ;; | |
956d6950 | 5944 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5945 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5946 | tm_file=sparc/linux-aout.h |
5947 | xmake_file=x-linux | |
861bb6c1 JL |
5948 | gnu_ld=yes |
5949 | ;; | |
956d6950 | 5950 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5951 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5952 | xmake_file=x-linux |
861bb6c1 | 5953 | tm_file=sparc/linux.h |
3e88bbdb | 5954 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5955 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5956 | gnu_ld=yes |
39c440fc | 5957 | float_format=sparc |
861bb6c1 | 5958 | ;; |
956d6950 | 5959 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5960 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5961 | xmake_file=x-linux |
861bb6c1 | 5962 | tm_file=sparc/linux.h |
3e88bbdb | 5963 | tmake_file="t-linux" |
861bb6c1 | 5964 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5965 | gnu_ld=yes |
75bffa71 | 5966 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5967 | thread_file='posix' |
5968 | fi | |
39c440fc | 5969 | float_format=sparc |
861bb6c1 JL |
5970 | ;; |
5971 | sparc-*-lynxos*) | |
75bffa71 | 5972 | if test x$gas = xyes |
861bb6c1 JL |
5973 | then |
5974 | tm_file=sparc/lynx.h | |
5975 | else | |
5976 | tm_file=sparc/lynx-ng.h | |
5977 | fi | |
5978 | xm_file=sparc/xm-lynx.h | |
5979 | tmake_file=sparc/t-sunos41 | |
5980 | xmake_file=x-lynx | |
5981 | ;; | |
6e5138f0 JS |
5982 | sparc-*-rtemsaout*) |
5983 | tmake_file="sparc/t-sparcbare t-rtems" | |
5984 | tm_file=sparc/rtems.h | |
dae3a2d3 | 5985 | ;; |
d1476635 JS |
5986 | sparc-*-rtems*|sparc-*-rtemself*) |
5987 | tm_file="sparc/rtemself.h" | |
5988 | tmake_file="sparc/t-elf t-rtems" | |
5989 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5990 | #float_format=i128 | |
5991 | float_format=i64 | |
5992 | ;; | |
d559a4db | 5993 | sparcv9-*-solaris2*) |
3b1c302f AO |
5994 | if test x$gnu_ld = xyes |
5995 | then | |
5996 | tm_file=sparc/sol2-64.h | |
5997 | else | |
5998 | tm_file=sparc/sol2-sld-64.h | |
5999 | fi | |
d559a4db DM |
6000 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" |
6001 | xm_defines="USG POSIX" | |
345a6161 | 6002 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
6003 | xmake_file=sparc/x-sysv4 |
6004 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 6005 | float_format=none |
d7496fbb | 6006 | if test x${enable_threads} = x ; then |
d559a4db | 6007 | enable_threads=$have_pthread_h |
d7496fbb | 6008 | if test x${enable_threads} = x ; then |
d559a4db DM |
6009 | enable_threads=$have_thread_h |
6010 | fi | |
6011 | fi | |
d7496fbb DM |
6012 | if test x${enable_threads} = xyes ; then |
6013 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
6014 | thread_file='posix' |
6015 | else | |
6016 | thread_file='solaris' | |
6017 | fi | |
6018 | fi | |
6019 | ;; | |
ab87f8c8 | 6020 | sparc-hal-solaris2*) |
2d092ffa | 6021 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
a5037588 | 6022 | xm_defines="USG POSIX" |
ab87f8c8 JL |
6023 | tm_file="sparc/sol2.h sparc/hal.h" |
6024 | tmake_file="sparc/t-halos sparc/t-sol2" | |
6025 | xmake_file=sparc/x-sysv4 | |
6026 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
a5037588 | 6027 | case $machine in |
005537df | 6028 | *-*-solaris2.0-4) |
a5037588 CL |
6029 | float_format=i128 |
6030 | ;; | |
6031 | *) | |
6032 | float_format=none | |
6033 | ;; | |
6034 | esac | |
6035 | thread_file='solaris' | |
ab87f8c8 | 6036 | ;; |
861bb6c1 | 6037 | sparc-*-solaris2*) |
75bffa71 | 6038 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
6039 | then |
6040 | tm_file=sparc/sol2.h | |
6041 | else | |
6042 | tm_file=sparc/sol2-sld.h | |
6043 | fi | |
2d092ffa | 6044 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
0b3d64d2 | 6045 | xm_defines="USG POSIX" |
861bb6c1 JL |
6046 | tmake_file=sparc/t-sol2 |
6047 | xmake_file=sparc/x-sysv4 | |
6048 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 | 6049 | case $machine in |
5b68c389 | 6050 | *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; |
a242e6f5 | 6051 | *-*-solaris2*) |
3b1c302f AO |
6052 | if test x$gnu_ld = xyes |
6053 | then | |
6054 | tm_file=sparc/sol2-64.h | |
6055 | else | |
6056 | tm_file=sparc/sol2-sld-64.h | |
6057 | fi | |
a242e6f5 RO |
6058 | tmake_file="$tmake_file sparc/t-sol2-64" |
6059 | ;; | |
6060 | esac | |
6061 | case $machine in | |
f6cb0e63 | 6062 | *-*-solaris2.[0-4]) |
027ea2a7 JW |
6063 | float_format=i128 |
6064 | ;; | |
f6cb0e63 | 6065 | *) |
027ea2a7 JW |
6066 | float_format=none |
6067 | ;; | |
f6cb0e63 | 6068 | esac |
75bffa71 | 6069 | if test x${enable_threads} = x; then |
f24af81b | 6070 | enable_threads=$have_pthread_h |
75bffa71 | 6071 | if test x${enable_threads} = x; then |
f24af81b TT |
6072 | enable_threads=$have_thread_h |
6073 | fi | |
6074 | fi | |
75bffa71 ILT |
6075 | if test x${enable_threads} = xyes; then |
6076 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
6077 | thread_file='posix' |
6078 | else | |
861bb6c1 | 6079 | thread_file='solaris' |
f24af81b | 6080 | fi |
861bb6c1 JL |
6081 | fi |
6082 | ;; | |
6083 | sparc-*-sunos4.0*) | |
6084 | tm_file=sparc/sunos4.h | |
6085 | tmake_file=sparc/t-sunos40 | |
6086 | use_collect2=yes | |
6087 | ;; | |
6088 | sparc-*-sunos4*) | |
6089 | tm_file=sparc/sunos4.h | |
6090 | tmake_file=sparc/t-sunos41 | |
6091 | use_collect2=yes | |
75bffa71 | 6092 | if test x$gas = xyes; then |
ca55abae JM |
6093 | tm_file="${tm_file} sparc/sun4gas.h" |
6094 | fi | |
861bb6c1 JL |
6095 | ;; |
6096 | sparc-*-sunos3*) | |
6097 | tm_file=sparc/sun4o3.h | |
6098 | use_collect2=yes | |
6099 | ;; | |
6100 | sparc-*-sysv4*) | |
6101 | tm_file=sparc/sysv4.h | |
2d092ffa | 6102 | xm_file="sparc/xm-sysv4.h" |
f6cb0e63 | 6103 | xm_defines="USG POSIX" |
861bb6c1 JL |
6104 | tmake_file=t-svr4 |
6105 | xmake_file=sparc/x-sysv4 | |
6106 | extra_parts="crtbegin.o crtend.o" | |
6107 | ;; | |
6108 | sparc-*-vxsim*) | |
2d092ffa | 6109 | xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h" |
f5963e61 | 6110 | xm_defines="USG POSIX" |
861bb6c1 JL |
6111 | tm_file=sparc/vxsim.h |
6112 | tmake_file=sparc/t-vxsparc | |
6113 | xmake_file=sparc/x-sysv4 | |
6114 | ;; | |
6115 | sparclet-*-aout*) | |
6116 | tm_file="sparc/splet.h libgloss.h" | |
6117 | tmake_file=sparc/t-splet | |
6118 | ;; | |
6119 | sparclite-*-coff*) | |
6120 | tm_file="sparc/litecoff.h libgloss.h" | |
6121 | tmake_file=sparc/t-sparclite | |
6122 | ;; | |
6123 | sparclite-*-aout*) | |
6124 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
6125 | tmake_file=sparc/t-sparclite | |
6126 | ;; | |
28df4168 | 6127 | sparclite-*-elf*) |
6eccdc81 | 6128 | tm_file="sparc/liteelf.h" |
28df4168 JL |
6129 | tmake_file=sparc/t-sparclite |
6130 | extra_parts="crtbegin.o crtend.o" | |
6131 | ;; | |
6132 | sparc86x-*-aout*) | |
6133 | tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h" | |
6134 | tmake_file=sparc/t-sp86x | |
6135 | ;; | |
6136 | sparc86x-*-elf*) | |
6eccdc81 | 6137 | tm_file="sparc/sp86x-elf.h" |
28df4168 JL |
6138 | tmake_file=sparc/t-sp86x |
6139 | extra_parts="crtbegin.o crtend.o" | |
6140 | ;; | |
861bb6c1 JL |
6141 | sparc64-*-aout*) |
6142 | tmake_file=sparc/t-sp64 | |
6143 | tm_file=sparc/sp64-aout.h | |
6144 | ;; | |
6145 | sparc64-*-elf*) | |
6146 | tmake_file=sparc/t-sp64 | |
6147 | tm_file=sparc/sp64-elf.h | |
6148 | extra_parts="crtbegin.o crtend.o" | |
6149 | ;; | |
956d6950 | 6150 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 6151 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
6152 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
6153 | tm_file=sparc/linux64.h | |
6154 | xmake_file=x-linux | |
345a6161 | 6155 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 6156 | gnu_ld=yes |
9ce13279 JJ |
6157 | if test x$enable_threads = xyes; then |
6158 | thread_file='posix' | |
6159 | fi | |
39c440fc | 6160 | float_format=sparc |
26b551af | 6161 | ;; |
861bb6c1 JL |
6162 | # This hasn't been upgraded to GCC 2. |
6163 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
6164 | # tm_file=tahoe/harris.h | |
6165 | # ;; | |
6166 | # tahoe-*-bsd*) # tahoe running BSD | |
6167 | # ;; | |
6da9c622 | 6168 | |
d5b7b3ae RE |
6169 | thumb*-*-*) |
6170 | { echo "configure: error: | |
6171 | *** The Thumb targets have been depreciated. The equivalent | |
6172 | *** ARM based toolchain can now generated Thumb instructions | |
6173 | *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } | |
cb805c2d | 6174 | ;; |
861bb6c1 JL |
6175 | # This hasn't been upgraded to GCC 2. |
6176 | # tron-*-*) | |
6177 | # cpu_type=gmicro | |
6178 | # use_collect2=yes | |
6179 | # ;; | |
966f8bfd JS |
6180 | v850-*-rtems*) |
6181 | cpu_type=v850 | |
6182 | tm_file="v850/rtems.h" | |
6183 | xm_file="v850/xm-v850.h" | |
6184 | tmake_file="v850/t-v850 t-rtems" | |
6185 | if test x$stabs = xyes | |
6186 | then | |
6187 | tm_file="${tm_file} dbx.h" | |
6188 | fi | |
6189 | use_collect2=no | |
6190 | ;; | |
f84271d9 | 6191 | v850-*-*) |
7a846a6c | 6192 | target_cpu_default="TARGET_CPU_generic" |
f84271d9 JL |
6193 | cpu_type=v850 |
6194 | tm_file="v850/v850.h" | |
6195 | xm_file="v850/xm-v850.h" | |
62db76ee | 6196 | tmake_file=v850/t-v850 |
75bffa71 | 6197 | if test x$stabs = xyes |
f84271d9 JL |
6198 | then |
6199 | tm_file="${tm_file} dbx.h" | |
6200 | fi | |
6201 | use_collect2=no | |
6202 | ;; | |
861bb6c1 JL |
6203 | vax-*-bsd*) # vaxen running BSD |
6204 | use_collect2=yes | |
6205 | float_format=vax | |
6206 | ;; | |
6207 | vax-*-sysv*) # vaxen running system V | |
6208 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 6209 | xm_defines=USG |
861bb6c1 JL |
6210 | float_format=vax |
6211 | ;; | |
6212 | vax-*-netbsd*) | |
6213 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
6214 | tmake_file=t-netbsd |
6215 | float_format=vax | |
ed4acb3b | 6216 | use_collect2=yes |
861bb6c1 | 6217 | ;; |
1b4a979b | 6218 | vax-*-openbsd*) |
766518a0 | 6219 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 6220 | ;; |
861bb6c1 JL |
6221 | vax-*-ultrix*) # vaxen running ultrix |
6222 | tm_file="${tm_file} vax/ultrix.h" | |
6223 | use_collect2=yes | |
6224 | float_format=vax | |
6225 | ;; | |
6226 | vax-*-vms*) # vaxen running VMS | |
6227 | xm_file=vax/xm-vms.h | |
6228 | tm_file=vax/vms.h | |
6229 | float_format=vax | |
6230 | ;; | |
6231 | vax-*-*) # vax default entry | |
6232 | float_format=vax | |
6233 | ;; | |
6234 | we32k-att-sysv*) | |
6235 | xm_file="${xm_file} xm-svr3" | |
6236 | use_collect2=yes | |
6237 | ;; | |
6238 | *) | |
6239 | echo "Configuration $machine not supported" 1>&2 | |
6240 | exit 1 | |
6241 | ;; | |
6242 | esac | |
6243 | ||
6244 | case $machine in | |
6245 | *-*-linux-gnu*) | |
f6cb0e63 | 6246 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
6247 | *-*-gnu*) |
6248 | # On the GNU system, the setup is just about the same on | |
6249 | # each different CPU. The specific machines that GNU | |
6250 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 6251 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
6252 | tm_file=${cpu_type}/gnu.h |
6253 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
6254 | # GNU always uses ELF. | |
6255 | elf=yes | |
6256 | # GNU tools are the only tools. | |
6257 | gnu_ld=yes | |
6258 | gas=yes | |
861bb6c1 JL |
6259 | xmake_file=x-linux # These details are the same as Linux. |
6260 | tmake_file=t-gnu # These are not. | |
6261 | ;; | |
6262 | *-*-sysv4*) | |
861bb6c1 | 6263 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
6264 | install_headers_dir=install-headers-cpio |
6265 | ;; | |
6266 | *-*-sysv*) | |
861bb6c1 JL |
6267 | install_headers_dir=install-headers-cpio |
6268 | ;; | |
6269 | esac | |
6270 | ||
f6cb0e63 | 6271 | # Distinguish i[34567]86 |
861bb6c1 JL |
6272 | # Also, do not run mips-tfile on MIPS if using gas. |
6273 | # Process --with-cpu= for PowerPC/rs6000 | |
6274 | target_cpu_default2= | |
6275 | case $machine in | |
6276 | i486-*-*) | |
6277 | target_cpu_default2=1 | |
6278 | ;; | |
6279 | i586-*-*) | |
83f4345f PT |
6280 | case $target_alias in |
6281 | k6-*) | |
6282 | target_cpu_default2=4 | |
6283 | ;; | |
6284 | *) | |
6285 | target_cpu_default2=2 | |
6286 | ;; | |
6287 | esac | |
861bb6c1 | 6288 | ;; |
f6cb0e63 | 6289 | i686-*-* | i786-*-*) |
861bb6c1 JL |
6290 | target_cpu_default2=3 |
6291 | ;; | |
6292 | alpha*-*-*) | |
6293 | case $machine in | |
2618c083 | 6294 | alphaev6[78]*) |
d8ee3e20 RH |
6295 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX" |
6296 | ;; | |
e9a25f70 | 6297 | alphaev6*) |
de4abb91 | 6298 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
6299 | ;; |
6300 | alphapca56*) | |
fbb5ed67 | 6301 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 6302 | ;; |
861bb6c1 | 6303 | alphaev56*) |
e9a25f70 | 6304 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
6305 | ;; |
6306 | alphaev5*) | |
6307 | target_cpu_default2="MASK_CPU_EV5" | |
6308 | ;; | |
6309 | esac | |
6310 | ||
75bffa71 | 6311 | if test x$gas = xyes |
861bb6c1 | 6312 | then |
75bffa71 | 6313 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
6314 | then |
6315 | target_cpu_default2="MASK_GAS" | |
6316 | else | |
6317 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
6318 | fi | |
6319 | fi | |
6320 | ;; | |
956d6950 JL |
6321 | arm*-*-*) |
6322 | case "x$with_cpu" in | |
6323 | x) | |
6324 | # The most generic | |
6325 | target_cpu_default2="TARGET_CPU_generic" | |
6326 | ;; | |
6327 | ||
6328 | # Distinguish cores, and major variants | |
6329 | # arm7m doesn't exist, but D & I don't affect code | |
005537df | 6330 | xarm[23678] | xarm250 | xarm[67][01]0 \ |
956d6950 JL |
6331 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ |
6332 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 6333 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
6334 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6335 | ;; | |
6336 | ||
6337 | xyes | xno) | |
6338 | echo "--with-cpu must be passed a value" 1>&2 | |
6339 | exit 1 | |
6340 | ;; | |
6341 | ||
6342 | *) | |
75bffa71 | 6343 | if test x$pass2done = xyes |
956d6950 JL |
6344 | then |
6345 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6346 | exit 1 | |
6347 | fi | |
6348 | ;; | |
6349 | esac | |
6350 | ;; | |
6351 | ||
861bb6c1 | 6352 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 6353 | if test x$gas = xyes |
861bb6c1 | 6354 | then |
75bffa71 | 6355 | if test x$gnu_ld = xyes |
861bb6c1 JL |
6356 | then |
6357 | target_cpu_default2=20 | |
6358 | else | |
6359 | target_cpu_default2=16 | |
6360 | fi | |
6361 | fi | |
6362 | ;; | |
6363 | mips*-*-*) | |
75bffa71 | 6364 | if test x$gas = xyes |
861bb6c1 JL |
6365 | then |
6366 | target_cpu_default2=16 | |
6367 | fi | |
6368 | ;; | |
6369 | powerpc*-*-* | rs6000-*-*) | |
6370 | case "x$with_cpu" in | |
6371 | x) | |
6372 | ;; | |
6373 | ||
6374 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
6375 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
6376 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 6377 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 6378 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 6379 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
6380 | ;; |
6381 | ||
6382 | xyes | xno) | |
6383 | echo "--with-cpu must be passed a value" 1>&2 | |
6384 | exit 1 | |
6385 | ;; | |
6386 | ||
6387 | *) | |
75bffa71 | 6388 | if test x$pass2done = xyes |
956d6950 JL |
6389 | then |
6390 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6391 | exit 1 | |
6392 | fi | |
861bb6c1 JL |
6393 | ;; |
6394 | esac | |
6395 | ;; | |
6396 | sparc*-*-*) | |
6397 | case ".$with_cpu" in | |
6398 | .) | |
6399 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
6400 | ;; | |
8947065c | 6401 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
6402 | target_cpu_default2="TARGET_CPU_$with_cpu" |
6403 | ;; | |
6404 | *) | |
75bffa71 | 6405 | if test x$pass2done = xyes |
956d6950 JL |
6406 | then |
6407 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
6408 | exit 1 | |
6409 | fi | |
861bb6c1 JL |
6410 | ;; |
6411 | esac | |
6412 | ;; | |
6413 | esac | |
6414 | ||
75bffa71 | 6415 | if test "$target_cpu_default2" != "" |
861bb6c1 | 6416 | then |
75bffa71 | 6417 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
6418 | then |
6419 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
6420 | else | |
6421 | target_cpu_default=$target_cpu_default2 | |
6422 | fi | |
6423 | fi | |
6424 | ||
6425 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
6426 | # Actually, there is now; GNU ld doesn't handle the EH info or |
6427 | # collecting for shared libraries. | |
ca8c3b37 JM |
6428 | #case x$gnu_ld in |
6429 | #xyes) | |
6430 | # use_collect2= | |
6431 | # ;; | |
6432 | #esac | |
861bb6c1 JL |
6433 | |
6434 | # Save data on machine being used to compile GCC in build_xm_file. | |
6435 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 6436 | if test x$pass1done = x |
861bb6c1 | 6437 | then |
75bffa71 | 6438 | if test x"$xm_file" = x |
861bb6c1 JL |
6439 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
6440 | else build_xm_file=$xm_file | |
6441 | fi | |
f6cb0e63 | 6442 | build_xm_defines=$xm_defines |
861bb6c1 JL |
6443 | build_install_headers_dir=$install_headers_dir |
6444 | build_exeext=$exeext | |
6445 | pass1done=yes | |
6446 | else | |
75bffa71 | 6447 | if test x$pass2done = x |
861bb6c1 | 6448 | then |
75bffa71 | 6449 | if test x"$xm_file" = x |
861bb6c1 JL |
6450 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
6451 | else host_xm_file=$xm_file | |
6452 | fi | |
f6cb0e63 | 6453 | host_xm_defines=$xm_defines |
75bffa71 | 6454 | if test x"$xmake_file" = x |
861bb6c1 JL |
6455 | then xmake_file=$cpu_type/x-$cpu_type |
6456 | fi | |
6457 | host_xmake_file="$xmake_file" | |
6458 | host_truncate_target=$truncate_target | |
6459 | host_extra_gcc_objs=$extra_gcc_objs | |
6460 | host_extra_objs=$extra_host_objs | |
6e26218f | 6461 | host_exeext=$exeext |
861bb6c1 JL |
6462 | pass2done=yes |
6463 | fi | |
6464 | fi | |
6465 | done | |
6466 | ||
6467 | extra_objs="${host_extra_objs} ${extra_objs}" | |
6468 | ||
6469 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 6470 | if test x"$tm_file" = x |
861bb6c1 JL |
6471 | then tm_file=$cpu_type/$cpu_type.h; fi |
6472 | ||
75bffa71 | 6473 | if test x$extra_headers = x |
861bb6c1 JL |
6474 | then extra_headers=; fi |
6475 | ||
75bffa71 | 6476 | if test x"$xm_file" = x |
861bb6c1 JL |
6477 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
6478 | ||
75bffa71 | 6479 | if test x$md_file = x |
e98e406f | 6480 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 6481 | |
75bffa71 | 6482 | if test x$out_file = x |
861bb6c1 JL |
6483 | then out_file=$cpu_type/$cpu_type.c; fi |
6484 | ||
75bffa71 | 6485 | if test x"$tmake_file" = x |
861bb6c1 JL |
6486 | then tmake_file=$cpu_type/t-$cpu_type |
6487 | fi | |
6488 | ||
90e6a802 | 6489 | if test x"$dwarf2" = xyes |
756ee602 | 6490 | then tm_file="$tm_file tm-dwarf2.h" |
90e6a802 RL |
6491 | fi |
6492 | ||
75bffa71 | 6493 | if test x$float_format = x |
861bb6c1 JL |
6494 | then float_format=i64 |
6495 | fi | |
6496 | ||
027ea2a7 JW |
6497 | if test $float_format = none |
6498 | then float_h_file=Makefile.in | |
6499 | else float_h_file=float-$float_format.h | |
6500 | fi | |
6501 | ||
9fc9b82a | 6502 | # Handle cpp installation. |
3ecc3258 | 6503 | if test x$enable_cpp != xno |
9fc9b82a L |
6504 | then |
6505 | tmake_file="$tmake_file t-install-cpp" | |
6506 | fi | |
6507 | ||
861bb6c1 JL |
6508 | # Say what files are being used for the output code and MD file. |
6509 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
6510 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
6511 | ||
6512 | count=a | |
6513 | for f in $tm_file; do | |
6514 | count=${count}x | |
6515 | done | |
75bffa71 | 6516 | if test $count = ax; then |
861bb6c1 JL |
6517 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
6518 | else | |
6519 | echo "Using the following target machine macro files:" | |
6520 | for f in $tm_file; do | |
6521 | echo " $srcdir/config/$f" | |
6522 | done | |
6523 | fi | |
6524 | ||
6525 | count=a | |
6526 | for f in $host_xm_file; do | |
6527 | count=${count}x | |
6528 | done | |
75bffa71 | 6529 | if test $count = ax; then |
861bb6c1 JL |
6530 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
6531 | else | |
6532 | echo "Using the following host machine macro files:" | |
6533 | for f in $host_xm_file; do | |
6534 | echo " $srcdir/config/$f" | |
6535 | done | |
6536 | fi | |
6537 | ||
75bffa71 | 6538 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6539 | count=a |
6540 | for f in $build_xm_file; do | |
6541 | count=${count}x | |
6542 | done | |
75bffa71 | 6543 | if test $count = ax; then |
861bb6c1 JL |
6544 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6545 | else | |
6546 | echo "Using the following build machine macro files:" | |
6547 | for f in $build_xm_file; do | |
6548 | echo " $srcdir/config/$f" | |
6549 | done | |
6550 | fi | |
6551 | fi | |
6552 | ||
75bffa71 ILT |
6553 | if test x$thread_file = x; then |
6554 | if test x$target_thread_file != x; then | |
a851212a JW |
6555 | thread_file=$target_thread_file |
6556 | else | |
6557 | thread_file='single' | |
6558 | fi | |
861bb6c1 JL |
6559 | fi |
6560 | ||
6561 | # Set up the header files. | |
6562 | # $links is the list of header files to create. | |
6563 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6564 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6565 | # the first file included by config.h. |
f6cb0e63 | 6566 | null_defines= |
64ccbc99 | 6567 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6568 | |
b7cb92ad | 6569 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6570 | # as well. If host!=build, we are in error and need to do more |
6571 | # work to find out the build config parameters. | |
75bffa71 | 6572 | if test x$host = x$build |
db81d74a | 6573 | then |
64ccbc99 | 6574 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6575 | else |
6576 | # We create a subdir, then run autoconf in the subdir. | |
6577 | # To prevent recursion we set host and build for the new | |
6578 | # invocation of configure to the build for this invocation | |
6579 | # of configure. | |
6580 | tempdir=build.$$ | |
6581 | rm -rf $tempdir | |
6582 | mkdir $tempdir | |
6583 | cd $tempdir | |
6584 | case ${srcdir} in | |
6585 | /*) realsrcdir=${srcdir};; | |
6586 | *) realsrcdir=../${srcdir};; | |
6587 | esac | |
fe81dd69 | 6588 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6589 | --target=$target --host=$build --build=$build |
6590 | ||
6591 | # We just finished tests for the build machine, so rename | |
6592 | # the file auto-build.h in the gcc directory. | |
6593 | mv auto-host.h ../auto-build.h | |
6594 | cd .. | |
6595 | rm -rf $tempdir | |
64ccbc99 | 6596 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6597 | fi |
6598 | ||
0056a9b5 KG |
6599 | xm_file="gansidecl.h ${xm_file}" |
6600 | tm_file="gansidecl.h ${tm_file}" | |
6601 | ||
6baf1cc8 BS |
6602 | vars="host_xm_file tm_file tm_p_file xm_file build_xm_file" |
6603 | links="config.h tm.h tm_p.h tconfig.h hconfig.h" | |
6604 | defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines" | |
861bb6c1 JL |
6605 | |
6606 | rm -f config.bak | |
75bffa71 | 6607 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6608 | |
6609 | # Make the links. | |
75bffa71 | 6610 | while test -n "$vars" |
861bb6c1 | 6611 | do |
861bb6c1 JL |
6612 | set $vars; var=$1; shift; vars=$* |
6613 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6614 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6615 | |
6616 | rm -f $link | |
6baf1cc8 BS |
6617 | # Make sure the file is created, even if it is empty. |
6618 | echo >$link | |
861bb6c1 JL |
6619 | |
6620 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6621 | # This substitutes for lots of *.h files. | |
75bffa71 | 6622 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6623 | then |
8fbf199e | 6624 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6625 | fi |
6626 | ||
6627 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6628 | case $file in |
6629 | auto-config.h) | |
6630 | ;; | |
6631 | *) | |
6632 | echo '#ifdef IN_GCC' >>$link | |
6633 | ;; | |
6634 | esac | |
861bb6c1 | 6635 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6636 | case $file in |
6637 | auto-config.h) | |
6638 | ;; | |
6639 | *) | |
6640 | echo '#endif' >>$link | |
6641 | ;; | |
6642 | esac | |
861bb6c1 | 6643 | done |
f6cb0e63 JL |
6644 | |
6645 | for def in `eval echo '$'$define`; do | |
6646 | echo "#ifndef $def" >>$link | |
6647 | echo "#define $def" >>$link | |
6648 | echo "#endif" >>$link | |
6649 | done | |
861bb6c1 JL |
6650 | done |
6651 | ||
6652 | # Truncate the target if necessary | |
75bffa71 | 6653 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6654 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6655 | fi | |
6656 | ||
f1943b77 | 6657 | # Get the version trigger filename from the toplevel |
75bffa71 | 6658 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6659 | gcc_version_trigger=$with_gcc_version_trigger |
6660 | else | |
6661 | gcc_version_trigger=${srcdir}/version.c | |
6662 | fi | |
4746ee26 | 6663 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` |
861bb6c1 | 6664 | |
ab87f8c8 JL |
6665 | # Internationalization |
6666 | PACKAGE=gcc | |
6667 | VERSION="$gcc_version" | |
6668 | cat >> confdefs.h <<EOF | |
6669 | #define PACKAGE "$PACKAGE" | |
6670 | EOF | |
861bb6c1 | 6671 | |
ab87f8c8 JL |
6672 | cat >> confdefs.h <<EOF |
6673 | #define VERSION "$VERSION" | |
6674 | EOF | |
861bb6c1 | 6675 | |
861bb6c1 | 6676 | |
ab87f8c8 JL |
6677 | |
6678 | ||
6679 | ALL_LINGUAS="en_UK" | |
6680 | ||
6681 | # NLS support is still experimental, so disable it by default for now. | |
6682 | # Check whether --enable-nls or --disable-nls was given. | |
6683 | if test "${enable_nls+set}" = set; then | |
6684 | enableval="$enable_nls" | |
6685 | : | |
861bb6c1 | 6686 | else |
ab87f8c8 | 6687 | enable_nls=no |
861bb6c1 | 6688 | fi |
861bb6c1 | 6689 | |
861bb6c1 | 6690 | |
861bb6c1 | 6691 | |
ab87f8c8 | 6692 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
119d24d1 | 6693 | echo "configure:6694: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6694 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6695 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6697 | else | |
6698 | ac_save_LIBS="$LIBS" | |
6699 | LIBS="-lcposix $LIBS" | |
6700 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6701 | #line 6702 "configure" |
ab87f8c8 JL |
6702 | #include "confdefs.h" |
6703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6704 | /* We use char because int might match the return type of a gcc2 | |
6705 | builtin and then its argument prototype would still apply. */ | |
6706 | char strerror(); | |
861bb6c1 | 6707 | |
ab87f8c8 JL |
6708 | int main() { |
6709 | strerror() | |
6710 | ; return 0; } | |
6711 | EOF | |
119d24d1 | 6712 | if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6713 | rm -rf conftest* |
6714 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6715 | else | |
6716 | echo "configure: failed program was:" >&5 | |
6717 | cat conftest.$ac_ext >&5 | |
6718 | rm -rf conftest* | |
6719 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6720 | fi |
ab87f8c8 JL |
6721 | rm -f conftest* |
6722 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6723 | |
861bb6c1 | 6724 | fi |
ab87f8c8 JL |
6725 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6726 | echo "$ac_t""yes" 1>&6 | |
6727 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6728 | else |
ab87f8c8 | 6729 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6730 | fi |
6731 | ||
ab87f8c8 | 6732 | |
2ce3c6c6 | 6733 | |
ab87f8c8 | 6734 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
119d24d1 | 6735 | echo "configure:6736: checking for working const" >&5 |
ab87f8c8 JL |
6736 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6738 | else |
ab87f8c8 | 6739 | cat > conftest.$ac_ext <<EOF |
119d24d1 | 6740 | #line 6741 "configure" |
ab87f8c8 | 6741 | #include "confdefs.h" |
861bb6c1 | 6742 | |
ab87f8c8 JL |
6743 | int main() { |
6744 | ||
6745 | /* Ultrix mips cc rejects this. */ | |
99e757d5 | 6746 | typedef int charset[2]; const charset x; |
ab87f8c8 JL |
6747 | /* SunOS 4.1.1 cc rejects this. */ |
6748 | char const *const *ccp; | |
6749 | char **p; | |
6750 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6751 | struct point {int x, y;}; | |
6752 | static struct point const zero = {0,0}; | |
6753 | /* AIX XL C 1.02.0.0 rejects this. | |
6754 | It does not let you subtract one const X* pointer from another in an arm | |
6755 | of an if-expression whose if-part is not a constant expression */ | |
6756 | const char *g = "string"; | |
6757 | ccp = &g + (g ? g-g : 0); | |
6758 | /* HPUX 7.0 cc rejects these. */ | |
6759 | ++ccp; | |
6760 | p = (char**) ccp; | |
6761 | ccp = (char const *const *) p; | |
6762 | { /* SCO 3.2v4 cc rejects this. */ | |
6763 | char *t; | |
6764 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6765 | ||
6766 | *t++ = 0; | |
6767 | } | |
6768 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6769 | int x[] = {25, 17}; | |
6770 | const int *foo = &x[0]; | |
6771 | ++foo; | |
6772 | } | |
6773 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6774 | typedef const int *iptr; | |
6775 | iptr p = 0; | |
6776 | ++p; | |
6777 | } | |
6778 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6779 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6780 | struct s { int j; const int *ap[3]; }; | |
6781 | struct s *b; b->j = 5; | |
6782 | } | |
6783 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6784 | const int foo = 10; | |
6785 | } | |
6786 | ||
6787 | ; return 0; } | |
6788 | EOF | |
119d24d1 | 6789 | if { (eval echo configure:6790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6790 | rm -rf conftest* |
6791 | ac_cv_c_const=yes | |
861bb6c1 | 6792 | else |
ab87f8c8 JL |
6793 | echo "configure: failed program was:" >&5 |
6794 | cat conftest.$ac_ext >&5 | |
6795 | rm -rf conftest* | |
6796 | ac_cv_c_const=no | |
6797 | fi | |
6798 | rm -f conftest* | |
861bb6c1 JL |
6799 | fi |
6800 | ||
ab87f8c8 JL |
6801 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6802 | if test $ac_cv_c_const = no; then | |
6803 | cat >> confdefs.h <<\EOF | |
6804 | #define const | |
6805 | EOF | |
6806 | ||
861bb6c1 JL |
6807 | fi |
6808 | ||
ab87f8c8 | 6809 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
119d24d1 | 6810 | echo "configure:6811: checking for inline" >&5 |
ab87f8c8 JL |
6811 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6813 | else | |
6814 | ac_cv_c_inline=no | |
6815 | for ac_kw in inline __inline__ __inline; do | |
6816 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6817 | #line 6818 "configure" |
ab87f8c8 JL |
6818 | #include "confdefs.h" |
6819 | ||
6820 | int main() { | |
99e757d5 | 6821 | } $ac_kw foo() { |
ab87f8c8 JL |
6822 | ; return 0; } |
6823 | EOF | |
119d24d1 | 6824 | if { (eval echo configure:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6825 | rm -rf conftest* |
6826 | ac_cv_c_inline=$ac_kw; break | |
6827 | else | |
6828 | echo "configure: failed program was:" >&5 | |
6829 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6830 | fi |
ab87f8c8 JL |
6831 | rm -f conftest* |
6832 | done | |
4b95eb49 | 6833 | |
992d1248 | 6834 | fi |
861bb6c1 | 6835 | |
ab87f8c8 JL |
6836 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6837 | case "$ac_cv_c_inline" in | |
6838 | inline | yes) ;; | |
6839 | no) cat >> confdefs.h <<\EOF | |
6840 | #define inline | |
00ccc16d | 6841 | EOF |
ab87f8c8 JL |
6842 | ;; |
6843 | *) cat >> confdefs.h <<EOF | |
6844 | #define inline $ac_cv_c_inline | |
6845 | EOF | |
6846 | ;; | |
6847 | esac | |
6848 | ||
6849 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
119d24d1 | 6850 | echo "configure:6851: checking for off_t" >&5 |
ab87f8c8 JL |
6851 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6853 | else | |
6854 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6855 | #line 6856 "configure" |
ab87f8c8 JL |
6856 | #include "confdefs.h" |
6857 | #include <sys/types.h> | |
6858 | #if STDC_HEADERS | |
6859 | #include <stdlib.h> | |
6860 | #include <stddef.h> | |
6861 | #endif | |
6862 | EOF | |
6863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6864 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6865 | rm -rf conftest* |
6866 | ac_cv_type_off_t=yes | |
6867 | else | |
6868 | rm -rf conftest* | |
6869 | ac_cv_type_off_t=no | |
6870 | fi | |
6871 | rm -f conftest* | |
6872 | ||
6873 | fi | |
6874 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6875 | if test $ac_cv_type_off_t = no; then | |
6876 | cat >> confdefs.h <<\EOF | |
6877 | #define off_t long | |
6878 | EOF | |
6879 | ||
6880 | fi | |
6881 | ||
6882 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
119d24d1 | 6883 | echo "configure:6884: checking for size_t" >&5 |
ab87f8c8 JL |
6884 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6886 | else | |
6887 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6888 | #line 6889 "configure" |
ab87f8c8 JL |
6889 | #include "confdefs.h" |
6890 | #include <sys/types.h> | |
6891 | #if STDC_HEADERS | |
6892 | #include <stdlib.h> | |
6893 | #include <stddef.h> | |
6894 | #endif | |
6895 | EOF | |
6896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6897 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6898 | rm -rf conftest* |
6899 | ac_cv_type_size_t=yes | |
6900 | else | |
6901 | rm -rf conftest* | |
6902 | ac_cv_type_size_t=no | |
6903 | fi | |
6904 | rm -f conftest* | |
6905 | ||
6906 | fi | |
6907 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6908 | if test $ac_cv_type_size_t = no; then | |
6909 | cat >> confdefs.h <<\EOF | |
6910 | #define size_t unsigned | |
6911 | EOF | |
6912 | ||
6913 | fi | |
6914 | ||
6915 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6916 | # for constant arguments. Useless! | |
6917 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
119d24d1 | 6918 | echo "configure:6919: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6919 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6921 | else | |
6922 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6923 | #line 6924 "configure" |
ab87f8c8 JL |
6924 | #include "confdefs.h" |
6925 | #include <alloca.h> | |
6926 | int main() { | |
99e757d5 | 6927 | char *p = alloca(2 * sizeof(int)); |
ab87f8c8 JL |
6928 | ; return 0; } |
6929 | EOF | |
119d24d1 | 6930 | if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6931 | rm -rf conftest* |
6932 | ac_cv_header_alloca_h=yes | |
6933 | else | |
6934 | echo "configure: failed program was:" >&5 | |
6935 | cat conftest.$ac_ext >&5 | |
6936 | rm -rf conftest* | |
6937 | ac_cv_header_alloca_h=no | |
6938 | fi | |
6939 | rm -f conftest* | |
6940 | fi | |
6941 | ||
6942 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6943 | if test $ac_cv_header_alloca_h = yes; then | |
6944 | cat >> confdefs.h <<\EOF | |
6945 | #define HAVE_ALLOCA_H 1 | |
6946 | EOF | |
6947 | ||
6948 | fi | |
6949 | ||
6950 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
119d24d1 | 6951 | echo "configure:6952: checking for alloca" >&5 |
ab87f8c8 JL |
6952 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6954 | else | |
6955 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 6956 | #line 6957 "configure" |
ab87f8c8 JL |
6957 | #include "confdefs.h" |
6958 | ||
6959 | #ifdef __GNUC__ | |
6960 | # define alloca __builtin_alloca | |
6961 | #else | |
cd9e5e7c MK |
6962 | # ifdef _MSC_VER |
6963 | # include <malloc.h> | |
6964 | # define alloca _alloca | |
ab87f8c8 | 6965 | # else |
cd9e5e7c MK |
6966 | # if HAVE_ALLOCA_H |
6967 | # include <alloca.h> | |
3723cad9 | 6968 | # else |
cd9e5e7c MK |
6969 | # ifdef _AIX |
6970 | #pragma alloca | |
6971 | # else | |
6972 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6973 | char *alloca (); |
cd9e5e7c | 6974 | # endif |
ab87f8c8 JL |
6975 | # endif |
6976 | # endif | |
6977 | # endif | |
6978 | #endif | |
6979 | ||
6980 | int main() { | |
6981 | char *p = (char *) alloca(1); | |
6982 | ; return 0; } | |
6983 | EOF | |
119d24d1 | 6984 | if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
81bf3d9e RH |
6985 | rm -rf conftest* |
6986 | ac_cv_func_alloca_works=yes | |
ab87f8c8 JL |
6987 | else |
6988 | echo "configure: failed program was:" >&5 | |
6989 | cat conftest.$ac_ext >&5 | |
81bf3d9e RH |
6990 | rm -rf conftest* |
6991 | ac_cv_func_alloca_works=no | |
ab87f8c8 | 6992 | fi |
81bf3d9e | 6993 | rm -f conftest* |
ab87f8c8 JL |
6994 | fi |
6995 | ||
81bf3d9e RH |
6996 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
6997 | if test $ac_cv_func_alloca_works = yes; then | |
6998 | cat >> confdefs.h <<\EOF | |
6999 | #define HAVE_ALLOCA 1 | |
7000 | EOF | |
7001 | ||
ab87f8c8 JL |
7002 | fi |
7003 | ||
81bf3d9e RH |
7004 | if test $ac_cv_func_alloca_works = no; then |
7005 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7006 | # that cause trouble. Some versions do not even contain alloca or | |
7007 | # contain a buggy version. If you still want to use their alloca, | |
7008 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7009 | ALLOCA=alloca.${ac_objext} | |
7010 | cat >> confdefs.h <<\EOF | |
7011 | #define C_ALLOCA 1 | |
ab87f8c8 JL |
7012 | EOF |
7013 | ||
ab87f8c8 | 7014 | |
81bf3d9e | 7015 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
119d24d1 | 7016 | echo "configure:7017: checking whether alloca needs Cray hooks" >&5 |
81bf3d9e | 7017 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
ab87f8c8 JL |
7018 | echo $ac_n "(cached) $ac_c" 1>&6 |
7019 | else | |
7020 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7021 | #line 7022 "configure" |
ab87f8c8 | 7022 | #include "confdefs.h" |
81bf3d9e RH |
7023 | #if defined(CRAY) && ! defined(CRAY2) |
7024 | webecray | |
7025 | #else | |
7026 | wenotbecray | |
7027 | #endif | |
7028 | ||
ab87f8c8 | 7029 | EOF |
81bf3d9e RH |
7030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7031 | egrep "webecray" >/dev/null 2>&1; then | |
ab87f8c8 | 7032 | rm -rf conftest* |
81bf3d9e | 7033 | ac_cv_os_cray=yes |
ab87f8c8 | 7034 | else |
ab87f8c8 | 7035 | rm -rf conftest* |
81bf3d9e | 7036 | ac_cv_os_cray=no |
ab87f8c8 JL |
7037 | fi |
7038 | rm -f conftest* | |
81bf3d9e | 7039 | |
ab87f8c8 | 7040 | fi |
ab87f8c8 | 7041 | |
81bf3d9e RH |
7042 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
7043 | if test $ac_cv_os_cray = yes; then | |
7044 | for ac_func in _getb67 GETB67 getb67; do | |
7045 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 7046 | echo "configure:7047: checking for $ac_func" >&5 |
ab87f8c8 JL |
7047 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7049 | else | |
7050 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7051 | #line 7052 "configure" |
ab87f8c8 JL |
7052 | #include "confdefs.h" |
7053 | /* System header to define __stub macros and hopefully few prototypes, | |
7054 | which can conflict with char $ac_func(); below. */ | |
7055 | #include <assert.h> | |
7056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7057 | /* We use char because int might match the return type of a gcc2 | |
7058 | builtin and then its argument prototype would still apply. */ | |
7059 | char $ac_func(); | |
7060 | ||
7061 | int main() { | |
7062 | ||
7063 | /* The GNU C library defines this for functions which it implements | |
7064 | to always fail with ENOSYS. Some functions are actually named | |
7065 | something starting with __ and the normal name is an alias. */ | |
7066 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7067 | choke me | |
7068 | #else | |
86702e31 | 7069 | $ac_func(); |
ab87f8c8 JL |
7070 | #endif |
7071 | ||
7072 | ; return 0; } | |
7073 | EOF | |
119d24d1 | 7074 | if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7075 | rm -rf conftest* |
7076 | eval "ac_cv_func_$ac_func=yes" | |
7077 | else | |
7078 | echo "configure: failed program was:" >&5 | |
7079 | cat conftest.$ac_ext >&5 | |
7080 | rm -rf conftest* | |
7081 | eval "ac_cv_func_$ac_func=no" | |
7082 | fi | |
7083 | rm -f conftest* | |
7084 | fi | |
7085 | ||
7086 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7087 | echo "$ac_t""yes" 1>&6 | |
ab87f8c8 | 7088 | cat >> confdefs.h <<EOF |
81bf3d9e | 7089 | #define CRAY_STACKSEG_END $ac_func |
ab87f8c8 | 7090 | EOF |
81bf3d9e RH |
7091 | |
7092 | break | |
ab87f8c8 JL |
7093 | else |
7094 | echo "$ac_t""no" 1>&6 | |
7095 | fi | |
81bf3d9e | 7096 | |
ab87f8c8 | 7097 | done |
81bf3d9e | 7098 | fi |
ab87f8c8 | 7099 | |
81bf3d9e | 7100 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
119d24d1 | 7101 | echo "configure:7102: checking stack direction for C alloca" >&5 |
81bf3d9e | 7102 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
ab87f8c8 JL |
7103 | echo $ac_n "(cached) $ac_c" 1>&6 |
7104 | else | |
7105 | if test "$cross_compiling" = yes; then | |
81bf3d9e | 7106 | ac_cv_c_stack_direction=0 |
ab87f8c8 JL |
7107 | else |
7108 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7109 | #line 7110 "configure" |
ab87f8c8 | 7110 | #include "confdefs.h" |
81bf3d9e | 7111 | find_stack_direction () |
ab87f8c8 | 7112 | { |
81bf3d9e RH |
7113 | static char *addr = 0; |
7114 | auto char dummy; | |
7115 | if (addr == 0) | |
7116 | { | |
7117 | addr = &dummy; | |
7118 | return find_stack_direction (); | |
7119 | } | |
7120 | else | |
7121 | return (&dummy > addr) ? 1 : -1; | |
7122 | } | |
7123 | main () | |
7124 | { | |
7125 | exit (find_stack_direction() < 0); | |
ab87f8c8 | 7126 | } |
ab87f8c8 | 7127 | EOF |
119d24d1 | 7128 | if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 | 7129 | then |
81bf3d9e | 7130 | ac_cv_c_stack_direction=1 |
ab87f8c8 JL |
7131 | else |
7132 | echo "configure: failed program was:" >&5 | |
7133 | cat conftest.$ac_ext >&5 | |
7134 | rm -fr conftest* | |
81bf3d9e | 7135 | ac_cv_c_stack_direction=-1 |
ab87f8c8 JL |
7136 | fi |
7137 | rm -fr conftest* | |
7138 | fi | |
7139 | ||
7140 | fi | |
7141 | ||
81bf3d9e RH |
7142 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
7143 | cat >> confdefs.h <<EOF | |
7144 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
ab87f8c8 JL |
7145 | EOF |
7146 | ||
4acab94b AO |
7147 | fi |
7148 | ||
56f02b88 | 7149 | |
ab87f8c8 JL |
7150 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
7151 | unistd.h sys/param.h | |
7152 | do | |
7153 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7154 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
119d24d1 | 7155 | echo "configure:7156: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
7156 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7158 | else | |
7159 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7160 | #line 7161 "configure" |
ab87f8c8 JL |
7161 | #include "confdefs.h" |
7162 | #include <$ac_hdr> | |
7163 | EOF | |
7164 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 7165 | { (eval echo configure:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7166 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7167 | if test -z "$ac_err"; then |
7168 | rm -rf conftest* | |
7169 | eval "ac_cv_header_$ac_safe=yes" | |
7170 | else | |
7171 | echo "$ac_err" >&5 | |
7172 | echo "configure: failed program was:" >&5 | |
7173 | cat conftest.$ac_ext >&5 | |
7174 | rm -rf conftest* | |
7175 | eval "ac_cv_header_$ac_safe=no" | |
7176 | fi | |
7177 | rm -f conftest* | |
7178 | fi | |
7179 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7180 | echo "$ac_t""yes" 1>&6 | |
7181 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7182 | cat >> confdefs.h <<EOF | |
7183 | #define $ac_tr_hdr 1 | |
7184 | EOF | |
7185 | ||
7186 | else | |
7187 | echo "$ac_t""no" 1>&6 | |
7188 | fi | |
7189 | done | |
7190 | ||
7191 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
7192 | strdup __argz_count __argz_stringify __argz_next | |
7193 | do | |
7194 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 7195 | echo "configure:7196: checking for $ac_func" >&5 |
ab87f8c8 JL |
7196 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7198 | else | |
7199 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7200 | #line 7201 "configure" |
ab87f8c8 JL |
7201 | #include "confdefs.h" |
7202 | /* System header to define __stub macros and hopefully few prototypes, | |
7203 | which can conflict with char $ac_func(); below. */ | |
7204 | #include <assert.h> | |
7205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7206 | /* We use char because int might match the return type of a gcc2 | |
7207 | builtin and then its argument prototype would still apply. */ | |
7208 | char $ac_func(); | |
7209 | ||
7210 | int main() { | |
7211 | ||
7212 | /* The GNU C library defines this for functions which it implements | |
7213 | to always fail with ENOSYS. Some functions are actually named | |
7214 | something starting with __ and the normal name is an alias. */ | |
7215 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7216 | choke me | |
7217 | #else | |
86702e31 | 7218 | $ac_func(); |
ab87f8c8 JL |
7219 | #endif |
7220 | ||
7221 | ; return 0; } | |
7222 | EOF | |
119d24d1 | 7223 | if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7224 | rm -rf conftest* |
7225 | eval "ac_cv_func_$ac_func=yes" | |
7226 | else | |
7227 | echo "configure: failed program was:" >&5 | |
7228 | cat conftest.$ac_ext >&5 | |
7229 | rm -rf conftest* | |
7230 | eval "ac_cv_func_$ac_func=no" | |
7231 | fi | |
7232 | rm -f conftest* | |
7233 | fi | |
7234 | ||
7235 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7236 | echo "$ac_t""yes" 1>&6 | |
7237 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7238 | cat >> confdefs.h <<EOF | |
7239 | #define $ac_tr_func 1 | |
7240 | EOF | |
7241 | ||
7242 | else | |
7243 | echo "$ac_t""no" 1>&6 | |
7244 | fi | |
7245 | done | |
7246 | ||
7247 | ||
7248 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
7249 | for ac_func in stpcpy | |
7250 | do | |
7251 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 7252 | echo "configure:7253: checking for $ac_func" >&5 |
ab87f8c8 JL |
7253 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7255 | else | |
7256 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7257 | #line 7258 "configure" |
ab87f8c8 JL |
7258 | #include "confdefs.h" |
7259 | /* System header to define __stub macros and hopefully few prototypes, | |
7260 | which can conflict with char $ac_func(); below. */ | |
7261 | #include <assert.h> | |
7262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7263 | /* We use char because int might match the return type of a gcc2 | |
7264 | builtin and then its argument prototype would still apply. */ | |
7265 | char $ac_func(); | |
7266 | ||
7267 | int main() { | |
7268 | ||
7269 | /* The GNU C library defines this for functions which it implements | |
7270 | to always fail with ENOSYS. Some functions are actually named | |
7271 | something starting with __ and the normal name is an alias. */ | |
7272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7273 | choke me | |
7274 | #else | |
86702e31 | 7275 | $ac_func(); |
ab87f8c8 JL |
7276 | #endif |
7277 | ||
7278 | ; return 0; } | |
7279 | EOF | |
119d24d1 | 7280 | if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7281 | rm -rf conftest* |
7282 | eval "ac_cv_func_$ac_func=yes" | |
7283 | else | |
7284 | echo "configure: failed program was:" >&5 | |
7285 | cat conftest.$ac_ext >&5 | |
7286 | rm -rf conftest* | |
7287 | eval "ac_cv_func_$ac_func=no" | |
7288 | fi | |
7289 | rm -f conftest* | |
7290 | fi | |
7291 | ||
7292 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7293 | echo "$ac_t""yes" 1>&6 | |
7294 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7295 | cat >> confdefs.h <<EOF | |
7296 | #define $ac_tr_func 1 | |
7297 | EOF | |
7298 | ||
7299 | else | |
7300 | echo "$ac_t""no" 1>&6 | |
7301 | fi | |
7302 | done | |
7303 | ||
7304 | fi | |
7305 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7306 | cat >> confdefs.h <<\EOF | |
7307 | #define HAVE_STPCPY 1 | |
7308 | EOF | |
7309 | ||
7310 | fi | |
7311 | ||
7312 | if test $ac_cv_header_locale_h = yes; then | |
7313 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
119d24d1 | 7314 | echo "configure:7315: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7315 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7317 | else | |
7318 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7319 | #line 7320 "configure" |
ab87f8c8 JL |
7320 | #include "confdefs.h" |
7321 | #include <locale.h> | |
7322 | int main() { | |
7323 | return LC_MESSAGES | |
7324 | ; return 0; } | |
7325 | EOF | |
119d24d1 | 7326 | if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7327 | rm -rf conftest* |
7328 | am_cv_val_LC_MESSAGES=yes | |
7329 | else | |
7330 | echo "configure: failed program was:" >&5 | |
7331 | cat conftest.$ac_ext >&5 | |
7332 | rm -rf conftest* | |
7333 | am_cv_val_LC_MESSAGES=no | |
7334 | fi | |
7335 | rm -f conftest* | |
7336 | fi | |
7337 | ||
7338 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7339 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7340 | cat >> confdefs.h <<\EOF | |
7341 | #define HAVE_LC_MESSAGES 1 | |
7342 | EOF | |
7343 | ||
7344 | fi | |
7345 | fi | |
7346 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
119d24d1 | 7347 | echo "configure:7348: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7348 | # Check whether --enable-nls or --disable-nls was given. |
7349 | if test "${enable_nls+set}" = set; then | |
7350 | enableval="$enable_nls" | |
7351 | USE_NLS=$enableval | |
7352 | else | |
7353 | USE_NLS=yes | |
7354 | fi | |
7355 | ||
7356 | echo "$ac_t""$USE_NLS" 1>&6 | |
7357 | ||
7358 | ||
7359 | USE_INCLUDED_LIBINTL=no | |
7360 | ||
7361 | if test "$USE_NLS" = "yes"; then | |
7362 | cat >> confdefs.h <<\EOF | |
7363 | #define ENABLE_NLS 1 | |
7364 | EOF | |
7365 | ||
7366 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
119d24d1 | 7367 | echo "configure:7368: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7368 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7369 | if test "${with_included_gettext+set}" = set; then | |
7370 | withval="$with_included_gettext" | |
7371 | nls_cv_force_use_gnu_gettext=$withval | |
7372 | else | |
7373 | nls_cv_force_use_gnu_gettext=no | |
7374 | fi | |
7375 | ||
7376 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7377 | ||
7378 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7379 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7380 | nls_cv_header_intl= | |
7381 | nls_cv_header_libgt= | |
7382 | CATOBJEXT=NONE | |
7383 | ||
7384 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7385 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
119d24d1 | 7386 | echo "configure:7387: checking for libintl.h" >&5 |
ab87f8c8 JL |
7387 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7389 | else | |
7390 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7391 | #line 7392 "configure" |
ab87f8c8 JL |
7392 | #include "confdefs.h" |
7393 | #include <libintl.h> | |
7394 | EOF | |
7395 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 7396 | { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7397 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7398 | if test -z "$ac_err"; then |
7399 | rm -rf conftest* | |
7400 | eval "ac_cv_header_$ac_safe=yes" | |
7401 | else | |
7402 | echo "$ac_err" >&5 | |
7403 | echo "configure: failed program was:" >&5 | |
7404 | cat conftest.$ac_ext >&5 | |
7405 | rm -rf conftest* | |
7406 | eval "ac_cv_header_$ac_safe=no" | |
7407 | fi | |
7408 | rm -f conftest* | |
7409 | fi | |
7410 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7411 | echo "$ac_t""yes" 1>&6 | |
7412 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
119d24d1 | 7413 | echo "configure:7414: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7414 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7416 | else | |
7417 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7418 | #line 7419 "configure" |
ab87f8c8 JL |
7419 | #include "confdefs.h" |
7420 | #include <libintl.h> | |
7421 | int main() { | |
7422 | return (int) gettext ("") | |
7423 | ; return 0; } | |
7424 | EOF | |
119d24d1 | 7425 | if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7426 | rm -rf conftest* |
7427 | gt_cv_func_gettext_libc=yes | |
7428 | else | |
7429 | echo "configure: failed program was:" >&5 | |
7430 | cat conftest.$ac_ext >&5 | |
7431 | rm -rf conftest* | |
7432 | gt_cv_func_gettext_libc=no | |
7433 | fi | |
7434 | rm -f conftest* | |
7435 | fi | |
7436 | ||
7437 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7438 | ||
7439 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7440 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
119d24d1 | 7441 | echo "configure:7442: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7442 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7443 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7445 | else | |
7446 | ac_save_LIBS="$LIBS" | |
7447 | LIBS="-lintl $LIBS" | |
7448 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7449 | #line 7450 "configure" |
ab87f8c8 JL |
7450 | #include "confdefs.h" |
7451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7452 | /* We use char because int might match the return type of a gcc2 | |
7453 | builtin and then its argument prototype would still apply. */ | |
7454 | char bindtextdomain(); | |
7455 | ||
7456 | int main() { | |
7457 | bindtextdomain() | |
7458 | ; return 0; } | |
7459 | EOF | |
119d24d1 | 7460 | if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7461 | rm -rf conftest* |
7462 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7463 | else | |
7464 | echo "configure: failed program was:" >&5 | |
7465 | cat conftest.$ac_ext >&5 | |
7466 | rm -rf conftest* | |
7467 | eval "ac_cv_lib_$ac_lib_var=no" | |
7468 | fi | |
7469 | rm -f conftest* | |
7470 | LIBS="$ac_save_LIBS" | |
7471 | ||
7472 | fi | |
7473 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7474 | echo "$ac_t""yes" 1>&6 | |
7475 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
119d24d1 | 7476 | echo "configure:7477: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7477 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7479 | else | |
7480 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
119d24d1 | 7481 | echo "configure:7482: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7482 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7483 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7485 | else | |
7486 | ac_save_LIBS="$LIBS" | |
7487 | LIBS="-lintl $LIBS" | |
7488 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7489 | #line 7490 "configure" |
ab87f8c8 JL |
7490 | #include "confdefs.h" |
7491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7492 | /* We use char because int might match the return type of a gcc2 | |
7493 | builtin and then its argument prototype would still apply. */ | |
7494 | char gettext(); | |
7495 | ||
7496 | int main() { | |
7497 | gettext() | |
7498 | ; return 0; } | |
7499 | EOF | |
119d24d1 | 7500 | if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7501 | rm -rf conftest* |
7502 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7503 | else | |
7504 | echo "configure: failed program was:" >&5 | |
7505 | cat conftest.$ac_ext >&5 | |
7506 | rm -rf conftest* | |
7507 | eval "ac_cv_lib_$ac_lib_var=no" | |
7508 | fi | |
7509 | rm -f conftest* | |
7510 | LIBS="$ac_save_LIBS" | |
7511 | ||
7512 | fi | |
7513 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7514 | echo "$ac_t""yes" 1>&6 | |
7515 | gt_cv_func_gettext_libintl=yes | |
7516 | else | |
7517 | echo "$ac_t""no" 1>&6 | |
7518 | gt_cv_func_gettext_libintl=no | |
7519 | fi | |
7520 | ||
7521 | fi | |
7522 | ||
7523 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7524 | else | |
7525 | echo "$ac_t""no" 1>&6 | |
7526 | fi | |
7527 | ||
7528 | fi | |
7529 | ||
7530 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7531 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7532 | cat >> confdefs.h <<\EOF | |
7533 | #define HAVE_GETTEXT 1 | |
7534 | EOF | |
7535 | ||
7536 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7537 | set dummy msgfmt; ac_word=$2 | |
7538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7539 | echo "configure:7540: checking for $ac_word" >&5 |
ab87f8c8 JL |
7540 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7542 | else | |
7543 | case "$MSGFMT" in | |
7544 | /*) | |
7545 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7546 | ;; | |
7547 | *) | |
7548 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7549 | for ac_dir in $PATH; do | |
7550 | test -z "$ac_dir" && ac_dir=. | |
7551 | if test -f $ac_dir/$ac_word; then | |
7552 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7553 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7554 | break | |
7555 | fi | |
7556 | fi | |
7557 | done | |
7558 | IFS="$ac_save_ifs" | |
7559 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7560 | ;; | |
7561 | esac | |
7562 | fi | |
7563 | MSGFMT="$ac_cv_path_MSGFMT" | |
7564 | if test -n "$MSGFMT"; then | |
7565 | echo "$ac_t""$MSGFMT" 1>&6 | |
7566 | else | |
7567 | echo "$ac_t""no" 1>&6 | |
7568 | fi | |
7569 | if test "$MSGFMT" != "no"; then | |
7570 | for ac_func in dcgettext | |
7571 | do | |
7572 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
119d24d1 | 7573 | echo "configure:7574: checking for $ac_func" >&5 |
ab87f8c8 JL |
7574 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7576 | else | |
7577 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7578 | #line 7579 "configure" |
ab87f8c8 JL |
7579 | #include "confdefs.h" |
7580 | /* System header to define __stub macros and hopefully few prototypes, | |
7581 | which can conflict with char $ac_func(); below. */ | |
7582 | #include <assert.h> | |
7583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7584 | /* We use char because int might match the return type of a gcc2 | |
7585 | builtin and then its argument prototype would still apply. */ | |
7586 | char $ac_func(); | |
7587 | ||
7588 | int main() { | |
7589 | ||
7590 | /* The GNU C library defines this for functions which it implements | |
7591 | to always fail with ENOSYS. Some functions are actually named | |
7592 | something starting with __ and the normal name is an alias. */ | |
7593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7594 | choke me | |
7595 | #else | |
86702e31 | 7596 | $ac_func(); |
ab87f8c8 JL |
7597 | #endif |
7598 | ||
7599 | ; return 0; } | |
7600 | EOF | |
119d24d1 | 7601 | if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7602 | rm -rf conftest* |
7603 | eval "ac_cv_func_$ac_func=yes" | |
7604 | else | |
7605 | echo "configure: failed program was:" >&5 | |
7606 | cat conftest.$ac_ext >&5 | |
7607 | rm -rf conftest* | |
7608 | eval "ac_cv_func_$ac_func=no" | |
7609 | fi | |
7610 | rm -f conftest* | |
7611 | fi | |
7612 | ||
7613 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7614 | echo "$ac_t""yes" 1>&6 | |
7615 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7616 | cat >> confdefs.h <<EOF | |
7617 | #define $ac_tr_func 1 | |
7618 | EOF | |
7619 | ||
7620 | else | |
7621 | echo "$ac_t""no" 1>&6 | |
7622 | fi | |
7623 | done | |
7624 | ||
7625 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7626 | set dummy gmsgfmt; ac_word=$2 | |
7627 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7628 | echo "configure:7629: checking for $ac_word" >&5 |
ab87f8c8 JL |
7629 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7631 | else | |
7632 | case "$GMSGFMT" in | |
7633 | /*) | |
7634 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7635 | ;; | |
7636 | ?:/*) | |
7637 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7638 | ;; | |
7639 | *) | |
cd9e5e7c | 7640 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7641 | ac_dummy="$PATH" |
7642 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7643 | test -z "$ac_dir" && ac_dir=. |
7644 | if test -f $ac_dir/$ac_word; then | |
7645 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7646 | break | |
7647 | fi | |
7648 | done | |
7649 | IFS="$ac_save_ifs" | |
7650 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7651 | ;; | |
7652 | esac | |
7653 | fi | |
7654 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7655 | if test -n "$GMSGFMT"; then | |
7656 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7657 | else | |
7658 | echo "$ac_t""no" 1>&6 | |
7659 | fi | |
7660 | ||
7661 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7662 | set dummy xgettext; ac_word=$2 | |
7663 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7664 | echo "configure:7665: checking for $ac_word" >&5 |
ab87f8c8 JL |
7665 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7667 | else | |
7668 | case "$XGETTEXT" in | |
7669 | /*) | |
7670 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7671 | ;; | |
7672 | *) | |
7673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7674 | for ac_dir in $PATH; do | |
7675 | test -z "$ac_dir" && ac_dir=. | |
7676 | if test -f $ac_dir/$ac_word; then | |
7677 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7678 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7679 | break | |
7680 | fi | |
7681 | fi | |
7682 | done | |
7683 | IFS="$ac_save_ifs" | |
7684 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7685 | ;; | |
7686 | esac | |
7687 | fi | |
7688 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7689 | if test -n "$XGETTEXT"; then | |
7690 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7691 | else | |
7692 | echo "$ac_t""no" 1>&6 | |
7693 | fi | |
7694 | ||
7695 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7696 | #line 7697 "configure" |
ab87f8c8 JL |
7697 | #include "confdefs.h" |
7698 | ||
7699 | int main() { | |
7700 | extern int _nl_msg_cat_cntr; | |
7701 | return _nl_msg_cat_cntr | |
7702 | ; return 0; } | |
7703 | EOF | |
119d24d1 | 7704 | if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7705 | rm -rf conftest* |
7706 | CATOBJEXT=.gmo | |
7707 | DATADIRNAME=share | |
7708 | else | |
7709 | echo "configure: failed program was:" >&5 | |
7710 | cat conftest.$ac_ext >&5 | |
7711 | rm -rf conftest* | |
7712 | CATOBJEXT=.mo | |
7713 | DATADIRNAME=lib | |
7714 | fi | |
7715 | rm -f conftest* | |
7716 | INSTOBJEXT=.mo | |
7717 | fi | |
7718 | fi | |
7719 | ||
7720 | else | |
7721 | echo "$ac_t""no" 1>&6 | |
7722 | fi | |
7723 | ||
7724 | ||
7725 | if test "$CATOBJEXT" = "NONE"; then | |
7726 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
119d24d1 | 7727 | echo "configure:7728: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7728 | # Check whether --with-catgets or --without-catgets was given. |
7729 | if test "${with_catgets+set}" = set; then | |
7730 | withval="$with_catgets" | |
7731 | nls_cv_use_catgets=$withval | |
7732 | else | |
7733 | nls_cv_use_catgets=no | |
7734 | fi | |
7735 | ||
7736 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7737 | ||
7738 | if test "$nls_cv_use_catgets" = "yes"; then | |
7739 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
119d24d1 | 7740 | echo "configure:7741: checking for main in -li" >&5 |
ab87f8c8 JL |
7741 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7744 | else | |
7745 | ac_save_LIBS="$LIBS" | |
7746 | LIBS="-li $LIBS" | |
7747 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7748 | #line 7749 "configure" |
ab87f8c8 JL |
7749 | #include "confdefs.h" |
7750 | ||
7751 | int main() { | |
7752 | main() | |
7753 | ; return 0; } | |
7754 | EOF | |
119d24d1 | 7755 | if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7756 | rm -rf conftest* |
7757 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7758 | else | |
7759 | echo "configure: failed program was:" >&5 | |
7760 | cat conftest.$ac_ext >&5 | |
7761 | rm -rf conftest* | |
7762 | eval "ac_cv_lib_$ac_lib_var=no" | |
7763 | fi | |
7764 | rm -f conftest* | |
7765 | LIBS="$ac_save_LIBS" | |
7766 | ||
7767 | fi | |
7768 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7769 | echo "$ac_t""yes" 1>&6 | |
7770 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7771 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7772 | cat >> confdefs.h <<EOF | |
7773 | #define $ac_tr_lib 1 | |
7774 | EOF | |
7775 | ||
7776 | LIBS="-li $LIBS" | |
7777 | ||
7778 | else | |
7779 | echo "$ac_t""no" 1>&6 | |
7780 | fi | |
7781 | ||
7782 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
119d24d1 | 7783 | echo "configure:7784: checking for catgets" >&5 |
ab87f8c8 JL |
7784 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7786 | else | |
7787 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 7788 | #line 7789 "configure" |
ab87f8c8 JL |
7789 | #include "confdefs.h" |
7790 | /* System header to define __stub macros and hopefully few prototypes, | |
7791 | which can conflict with char catgets(); below. */ | |
7792 | #include <assert.h> | |
7793 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7794 | /* We use char because int might match the return type of a gcc2 | |
7795 | builtin and then its argument prototype would still apply. */ | |
7796 | char catgets(); | |
7797 | ||
7798 | int main() { | |
7799 | ||
7800 | /* The GNU C library defines this for functions which it implements | |
7801 | to always fail with ENOSYS. Some functions are actually named | |
7802 | something starting with __ and the normal name is an alias. */ | |
7803 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7804 | choke me | |
7805 | #else | |
86702e31 | 7806 | catgets(); |
ab87f8c8 JL |
7807 | #endif |
7808 | ||
7809 | ; return 0; } | |
7810 | EOF | |
119d24d1 | 7811 | if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7812 | rm -rf conftest* |
7813 | eval "ac_cv_func_catgets=yes" | |
7814 | else | |
7815 | echo "configure: failed program was:" >&5 | |
7816 | cat conftest.$ac_ext >&5 | |
7817 | rm -rf conftest* | |
7818 | eval "ac_cv_func_catgets=no" | |
7819 | fi | |
7820 | rm -f conftest* | |
7821 | fi | |
7822 | ||
7823 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7824 | echo "$ac_t""yes" 1>&6 | |
7825 | cat >> confdefs.h <<\EOF | |
7826 | #define HAVE_CATGETS 1 | |
7827 | EOF | |
7828 | ||
7829 | INTLOBJS="\$(CATOBJS)" | |
7830 | # Extract the first word of "gencat", so it can be a program name with args. | |
7831 | set dummy gencat; ac_word=$2 | |
7832 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7833 | echo "configure:7834: checking for $ac_word" >&5 |
ab87f8c8 JL |
7834 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7836 | else | |
7837 | case "$GENCAT" in | |
7838 | /*) | |
7839 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7840 | ;; | |
7841 | ?:/*) | |
7842 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7843 | ;; | |
7844 | *) | |
cd9e5e7c | 7845 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7846 | ac_dummy="$PATH" |
7847 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7848 | test -z "$ac_dir" && ac_dir=. |
7849 | if test -f $ac_dir/$ac_word; then | |
7850 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7851 | break | |
7852 | fi | |
7853 | done | |
7854 | IFS="$ac_save_ifs" | |
7855 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7856 | ;; | |
7857 | esac | |
7858 | fi | |
7859 | GENCAT="$ac_cv_path_GENCAT" | |
7860 | if test -n "$GENCAT"; then | |
7861 | echo "$ac_t""$GENCAT" 1>&6 | |
7862 | else | |
7863 | echo "$ac_t""no" 1>&6 | |
7864 | fi | |
7865 | if test "$GENCAT" != "no"; then | |
7866 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7867 | set dummy gmsgfmt; ac_word=$2 | |
7868 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7869 | echo "configure:7870: checking for $ac_word" >&5 |
ab87f8c8 JL |
7870 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7872 | else | |
7873 | case "$GMSGFMT" in | |
7874 | /*) | |
7875 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7876 | ;; | |
7877 | ?:/*) | |
7878 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7879 | ;; | |
7880 | *) | |
cd9e5e7c | 7881 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7882 | ac_dummy="$PATH" |
7883 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7884 | test -z "$ac_dir" && ac_dir=. |
7885 | if test -f $ac_dir/$ac_word; then | |
7886 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7887 | break | |
7888 | fi | |
7889 | done | |
7890 | IFS="$ac_save_ifs" | |
7891 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7892 | ;; | |
7893 | esac | |
7894 | fi | |
7895 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7896 | if test -n "$GMSGFMT"; then | |
7897 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7898 | else | |
7899 | echo "$ac_t""no" 1>&6 | |
7900 | fi | |
7901 | ||
7902 | if test "$GMSGFMT" = "no"; then | |
7903 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7904 | set dummy msgfmt; ac_word=$2 | |
7905 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7906 | echo "configure:7907: checking for $ac_word" >&5 |
ab87f8c8 JL |
7907 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7909 | else | |
7910 | case "$GMSGFMT" in | |
7911 | /*) | |
7912 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7913 | ;; | |
7914 | *) | |
7915 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7916 | for ac_dir in $PATH; do | |
7917 | test -z "$ac_dir" && ac_dir=. | |
7918 | if test -f $ac_dir/$ac_word; then | |
7919 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7920 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7921 | break | |
7922 | fi | |
7923 | fi | |
7924 | done | |
7925 | IFS="$ac_save_ifs" | |
7926 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7927 | ;; | |
7928 | esac | |
7929 | fi | |
7930 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7931 | if test -n "$GMSGFMT"; then | |
7932 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7933 | else | |
7934 | echo "$ac_t""no" 1>&6 | |
7935 | fi | |
7936 | ||
7937 | fi | |
7938 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7939 | set dummy xgettext; ac_word=$2 | |
7940 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7941 | echo "configure:7942: checking for $ac_word" >&5 |
ab87f8c8 JL |
7942 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7944 | else | |
7945 | case "$XGETTEXT" in | |
7946 | /*) | |
7947 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7948 | ;; | |
7949 | *) | |
7950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7951 | for ac_dir in $PATH; do | |
7952 | test -z "$ac_dir" && ac_dir=. | |
7953 | if test -f $ac_dir/$ac_word; then | |
7954 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7955 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7956 | break | |
7957 | fi | |
7958 | fi | |
7959 | done | |
7960 | IFS="$ac_save_ifs" | |
7961 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7962 | ;; | |
7963 | esac | |
7964 | fi | |
7965 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7966 | if test -n "$XGETTEXT"; then | |
7967 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7968 | else | |
7969 | echo "$ac_t""no" 1>&6 | |
7970 | fi | |
7971 | ||
7972 | USE_INCLUDED_LIBINTL=yes | |
7973 | CATOBJEXT=.cat | |
7974 | INSTOBJEXT=.cat | |
7975 | DATADIRNAME=lib | |
7976 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7977 | INTLLIBS=$INTLDEPS | |
7978 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7979 | nls_cv_header_intl=intl/libintl.h | |
7980 | nls_cv_header_libgt=intl/libgettext.h | |
7981 | fi | |
7982 | else | |
7983 | echo "$ac_t""no" 1>&6 | |
7984 | fi | |
7985 | ||
7986 | fi | |
7987 | fi | |
7988 | ||
7989 | if test "$CATOBJEXT" = "NONE"; then | |
7990 | nls_cv_use_gnu_gettext=yes | |
7991 | fi | |
7992 | fi | |
7993 | ||
7994 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7995 | INTLOBJS="\$(GETTOBJS)" | |
7996 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7997 | set dummy msgfmt; ac_word=$2 | |
7998 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 7999 | echo "configure:8000: checking for $ac_word" >&5 |
ab87f8c8 JL |
8000 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
8001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8002 | else | |
8003 | case "$MSGFMT" in | |
8004 | /*) | |
8005 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8006 | ;; | |
8007 | *) | |
8008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8009 | for ac_dir in $PATH; do | |
8010 | test -z "$ac_dir" && ac_dir=. | |
8011 | if test -f $ac_dir/$ac_word; then | |
8012 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
8013 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
8014 | break | |
8015 | fi | |
8016 | fi | |
8017 | done | |
8018 | IFS="$ac_save_ifs" | |
8019 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
8020 | ;; | |
8021 | esac | |
8022 | fi | |
8023 | MSGFMT="$ac_cv_path_MSGFMT" | |
8024 | if test -n "$MSGFMT"; then | |
8025 | echo "$ac_t""$MSGFMT" 1>&6 | |
8026 | else | |
8027 | echo "$ac_t""no" 1>&6 | |
8028 | fi | |
8029 | ||
8030 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
8031 | set dummy gmsgfmt; ac_word=$2 | |
8032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 8033 | echo "configure:8034: checking for $ac_word" >&5 |
ab87f8c8 JL |
8034 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
8035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8036 | else | |
8037 | case "$GMSGFMT" in | |
8038 | /*) | |
8039 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8040 | ;; | |
8041 | ?:/*) | |
8042 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
8043 | ;; | |
8044 | *) | |
cd9e5e7c | 8045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
8046 | ac_dummy="$PATH" |
8047 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
8048 | test -z "$ac_dir" && ac_dir=. |
8049 | if test -f $ac_dir/$ac_word; then | |
8050 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
8051 | break | |
8052 | fi | |
8053 | done | |
8054 | IFS="$ac_save_ifs" | |
8055 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
8056 | ;; | |
8057 | esac | |
8058 | fi | |
8059 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
8060 | if test -n "$GMSGFMT"; then | |
8061 | echo "$ac_t""$GMSGFMT" 1>&6 | |
8062 | else | |
8063 | echo "$ac_t""no" 1>&6 | |
8064 | fi | |
8065 | ||
8066 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8067 | set dummy xgettext; ac_word=$2 | |
8068 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
119d24d1 | 8069 | echo "configure:8070: checking for $ac_word" >&5 |
ab87f8c8 JL |
8070 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
8071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8072 | else | |
8073 | case "$XGETTEXT" in | |
8074 | /*) | |
8075 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8076 | ;; | |
8077 | *) | |
8078 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8079 | for ac_dir in $PATH; do | |
8080 | test -z "$ac_dir" && ac_dir=. | |
8081 | if test -f $ac_dir/$ac_word; then | |
8082 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8083 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8084 | break | |
8085 | fi | |
8086 | fi | |
8087 | done | |
8088 | IFS="$ac_save_ifs" | |
8089 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8090 | ;; | |
8091 | esac | |
8092 | fi | |
8093 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8094 | if test -n "$XGETTEXT"; then | |
8095 | echo "$ac_t""$XGETTEXT" 1>&6 | |
8096 | else | |
8097 | echo "$ac_t""no" 1>&6 | |
8098 | fi | |
8099 | ||
8100 | ||
8101 | USE_INCLUDED_LIBINTL=yes | |
8102 | CATOBJEXT=.gmo | |
8103 | INSTOBJEXT=.mo | |
8104 | DATADIRNAME=share | |
8105 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
8106 | INTLLIBS=$INTLDEPS | |
8107 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8108 | nls_cv_header_intl=intl/libintl.h | |
8109 | nls_cv_header_libgt=intl/libgettext.h | |
8110 | fi | |
8111 | ||
8112 | if test "$XGETTEXT" != ":"; then | |
8113 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8114 | : ; | |
8115 | else | |
8116 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
8117 | XGETTEXT=":" | |
8118 | fi | |
8119 | fi | |
8120 | ||
8121 | # We need to process the po/ directory. | |
8122 | POSUB=po | |
8123 | else | |
8124 | DATADIRNAME=share | |
8125 | nls_cv_header_intl=intl/libintl.h | |
8126 | nls_cv_header_libgt=intl/libgettext.h | |
8127 | fi | |
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8133 | # because some of the sources are only built for this goal. | |
8134 | if test "$PACKAGE" = gettext; then | |
8135 | USE_NLS=yes | |
8136 | USE_INCLUDED_LIBINTL=yes | |
8137 | fi | |
8138 | ||
8139 | for lang in $ALL_LINGUAS; do | |
8140 | GMOFILES="$GMOFILES $lang.gmo" | |
8141 | POFILES="$POFILES $lang.po" | |
8142 | done | |
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | if test "x$CATOBJEXT" != "x"; then | |
8158 | if test "x$ALL_LINGUAS" = "x"; then | |
8159 | LINGUAS= | |
8160 | else | |
8161 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
119d24d1 | 8162 | echo "configure:8163: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
8163 | NEW_LINGUAS= |
8164 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8165 | case "$ALL_LINGUAS" in | |
8166 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8167 | esac | |
8168 | done | |
8169 | LINGUAS=$NEW_LINGUAS | |
8170 | echo "$ac_t""$LINGUAS" 1>&6 | |
8171 | fi | |
8172 | ||
8173 | if test -n "$LINGUAS"; then | |
8174 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8175 | fi | |
8176 | fi | |
8177 | ||
8178 | if test $ac_cv_header_locale_h = yes; then | |
8179 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8180 | else | |
8181 | INCLUDE_LOCALE_H="\ | |
8182 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | test -d intl || mkdir intl | |
8187 | if test "$CATOBJEXT" = ".cat"; then | |
8188 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
8189 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
119d24d1 | 8190 | echo "configure:8191: checking for linux/version.h" >&5 |
ab87f8c8 JL |
8191 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8193 | else | |
8194 | cat > conftest.$ac_ext <<EOF | |
119d24d1 | 8195 | #line 8196 "configure" |
ab87f8c8 JL |
8196 | #include "confdefs.h" |
8197 | #include <linux/version.h> | |
8198 | EOF | |
8199 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
119d24d1 | 8200 | { (eval echo configure:8201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 8201 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
8202 | if test -z "$ac_err"; then |
8203 | rm -rf conftest* | |
8204 | eval "ac_cv_header_$ac_safe=yes" | |
8205 | else | |
8206 | echo "$ac_err" >&5 | |
8207 | echo "configure: failed program was:" >&5 | |
8208 | cat conftest.$ac_ext >&5 | |
8209 | rm -rf conftest* | |
8210 | eval "ac_cv_header_$ac_safe=no" | |
8211 | fi | |
8212 | rm -f conftest* | |
8213 | fi | |
8214 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8215 | echo "$ac_t""yes" 1>&6 | |
8216 | msgformat=linux | |
8217 | else | |
8218 | echo "$ac_t""no" 1>&6 | |
8219 | msgformat=xopen | |
8220 | fi | |
8221 | ||
8222 | ||
8223 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
8224 | fi | |
8225 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8226 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
8227 | ||
8228 | if test "$PACKAGE" = "gettext"; then | |
8229 | GT_NO="#NO#" | |
8230 | GT_YES= | |
8231 | else | |
8232 | GT_NO= | |
8233 | GT_YES="#YES#" | |
8234 | fi | |
8235 | ||
8236 | ||
8237 | ||
8238 | MKINSTALLDIRS= | |
8239 | if test -n "$ac_aux_dir"; then | |
8240 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
8241 | fi | |
8242 | if test -z "$MKINSTALLDIRS"; then | |
8243 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
8244 | fi | |
8245 | ||
8246 | ||
8247 | l= | |
8248 | ||
8249 | ||
8250 | test -d po || mkdir po | |
8251 | if test "x$srcdir" != "x."; then | |
8252 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8253 | posrcprefix="$srcdir/" | |
8254 | else | |
8255 | posrcprefix="../$srcdir/" | |
8256 | fi | |
8257 | else | |
8258 | posrcprefix="../" | |
8259 | fi | |
8260 | rm -f po/POTFILES | |
8261 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8262 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8263 | ||
8264 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
8265 | ||
f4ab28e3 MK |
8266 | # Windows32 Registry support for specifying GCC installation paths. |
8267 | # Check whether --enable-win32-registry or --disable-win32-registry was given. | |
8268 | if test "${enable_win32_registry+set}" = set; then | |
8269 | enableval="$enable_win32_registry" | |
8270 | : | |
8271 | fi | |
8272 | ||
8273 | ||
8274 | echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 | |
119d24d1 | 8275 | echo "configure:8276: checking whether windows registry support is requested" >&5 |
f4ab28e3 MK |
8276 | if test x$enable_win32_registry != xno; then |
8277 | cat >> confdefs.h <<\EOF | |
8278 | #define ENABLE_WIN32_REGISTRY 1 | |
8279 | EOF | |
8280 | ||
8281 | echo "$ac_t""yes" 1>&6 | |
8282 | else | |
8283 | echo "$ac_t""no" 1>&6 | |
8284 | fi | |
8285 | ||
8286 | # Check if user specified a different registry key. | |
8287 | case x${enable_win32_registry} in | |
8288 | x | xyes) | |
8289 | # default. | |
8290 | gcc_cv_win32_registry_key="$VERSION" | |
8291 | ;; | |
8292 | xno) | |
8293 | # no registry lookup. | |
8294 | gcc_cv_win32_registry_key='' | |
8295 | ;; | |
8296 | *) | |
8297 | # user-specified key. | |
8298 | gcc_cv_win32_registry_key="$enable_win32_registry" | |
8299 | ;; | |
8300 | esac | |
8301 | ||
8302 | if test x$enable_win32_registry != xno; then | |
8303 | echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 | |
119d24d1 | 8304 | echo "configure:8305: checking registry key on windows hosts" >&5 |
f4ab28e3 MK |
8305 | cat >> confdefs.h <<EOF |
8306 | #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" | |
8307 | EOF | |
8308 | ||
8309 | echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6 | |
8310 | fi | |
8311 | ||
ab87f8c8 JL |
8312 | # Get an absolute path to the GCC top-level source directory |
8313 | holddir=`pwd` | |
8314 | cd $srcdir | |
8315 | topdir=`pwd` | |
8316 | cd $holddir | |
8317 | ||
8318 | # Conditionalize the makefile for this host machine. | |
8319 | # Make-host contains the concatenation of all host makefile fragments | |
8320 | # [there can be more than one]. This file is built by configure.frag. | |
8321 | host_overrides=Make-host | |
8322 | dep_host_xmake_file= | |
8323 | for f in .. ${host_xmake_file} | |
8324 | do | |
8325 | if test -f ${srcdir}/config/$f | |
8326 | then | |
8327 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8328 | fi | |
8329 | done | |
8330 | ||
8331 | # Conditionalize the makefile for this target machine. | |
8332 | # Make-target contains the concatenation of all host makefile fragments | |
8333 | # [there can be more than one]. This file is built by configure.frag. | |
8334 | target_overrides=Make-target | |
8335 | dep_tmake_file= | |
8336 | for f in .. ${tmake_file} | |
8337 | do | |
8338 | if test -f ${srcdir}/config/$f | |
8339 | then | |
8340 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8341 | fi | |
8342 | done | |
8343 | ||
8344 | # If the host doesn't support symlinks, modify CC in | |
8345 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8346 | # Otherwise, we can use "CC=$(CC)". | |
8347 | rm -f symtest.tem | |
8348 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8349 | then | |
8350 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8351 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8352 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8353 | else | |
8354 | rm -f symtest.tem | |
8355 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8356 | then | |
8357 | symbolic_link="cp -p" | |
8358 | else | |
8359 | symbolic_link="cp" | |
8360 | fi | |
8361 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8362 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8363 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8364 | fi | |
8365 | rm -f symtest.tem | |
8366 | ||
8367 | out_object_file=`basename $out_file .c`.o | |
8368 | ||
8369 | tm_file_list= | |
8370 | for f in $tm_file; do | |
64ccbc99 KG |
8371 | case $f in |
8372 | gansidecl.h ) | |
8373 | tm_file_list="${tm_file_list} $f" ;; | |
8374 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8375 | esac | |
ab87f8c8 JL |
8376 | done |
8377 | ||
8378 | host_xm_file_list= | |
8379 | for f in $host_xm_file; do | |
64ccbc99 KG |
8380 | case $f in |
8381 | auto-host.h | gansidecl.h | hwint.h ) | |
8382 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8383 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8384 | esac | |
ab87f8c8 JL |
8385 | done |
8386 | ||
8387 | build_xm_file_list= | |
8388 | for f in $build_xm_file; do | |
64ccbc99 KG |
8389 | case $f in |
8390 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8391 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8392 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8393 | esac | |
ab87f8c8 JL |
8394 | done |
8395 | ||
8396 | # Define macro CROSS_COMPILE in compilation | |
8397 | # if this is a cross-compiler. | |
8398 | # Also use all.cross instead of all.internal | |
8399 | # and add cross-make to Makefile. | |
8400 | cross_overrides="/dev/null" | |
8401 | if test x$host != x$target | |
8402 | then | |
8403 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8404 | cross_overrides="${topdir}/cross-make" | |
8405 | fi | |
8406 | ||
8407 | # When building gcc with a cross-compiler, we need to fix a few things. | |
8408 | # This must come after cross-make as we want all.build to override | |
8409 | # all.cross. | |
8410 | build_overrides="/dev/null" | |
8411 | if test x$build != x$host | |
8412 | then | |
8413 | build_overrides="${topdir}/build-make" | |
8414 | fi | |
8415 | ||
8416 | # Expand extra_headers to include complete path. | |
8417 | # This substitutes for lots of t-* files. | |
8418 | extra_headers_list= | |
8419 | if test "x$extra_headers" = x | |
8420 | then true | |
8421 | else | |
8422 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8423 | for file in $extra_headers; | |
8424 | do | |
8425 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8426 | done | |
8427 | fi | |
8428 | ||
8429 | if test x$use_collect2 = xno; then | |
8430 | use_collect2= | |
8431 | fi | |
8432 | ||
8433 | # Add a definition of USE_COLLECT2 if system wants one. | |
8434 | # Also tell toplev.c what to do. | |
8435 | # This substitutes for lots of t-* files. | |
8436 | if test x$use_collect2 = x | |
8437 | then | |
8438 | will_use_collect2= | |
8439 | maybe_use_collect2= | |
8440 | else | |
8441 | will_use_collect2="collect2" | |
8442 | maybe_use_collect2="-DUSE_COLLECT2" | |
8443 | fi | |
8444 | ||
8445 | # NEED TO CONVERT | |
8446 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8447 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8448 | # for line oriented comments, so we must always use a GNU cpp. If | |
8449 | # building gcc with a cross compiler, use the cross compiler just | |
8450 | # built. Otherwise, we can use the cpp just built. | |
8451 | md_file_sub= | |
8452 | if test "x$md_cppflags" = x | |
8453 | then | |
8454 | md_file_sub=$srcdir/config/$md_file | |
8455 | else | |
8456 | md_file=md | |
8457 | fi | |
8458 | ||
8459 | # If we have gas in the build tree, make a link to it. | |
8460 | if test -f ../gas/Makefile; then | |
8461 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8462 | fi | |
8463 | ||
8464 | # If we have nm in the build tree, make a link to it. | |
8465 | if test -f ../binutils/Makefile; then | |
8466 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8467 | fi | |
8468 | ||
8469 | # If we have ld in the build tree, make a link to it. | |
8470 | if test -f ../ld/Makefile; then | |
8471 | # if test x$use_collect2 = x; then | |
8472 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8473 | # else | |
8474 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8475 | # fi | |
8476 | fi | |
8477 | ||
8478 | # Figure out what assembler alignment features are present. | |
8479 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
119d24d1 | 8480 | echo "configure:8481: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8481 | gcc_cv_as= |
8482 | gcc_cv_as_alignment_features= | |
8483 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8484 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8485 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8486 | elif test -x "$AS"; then | |
8487 | gcc_cv_as="$AS" | |
8488 | elif test -x as$host_exeext; then | |
8489 | # Build using assembler in the current directory. | |
8490 | gcc_cv_as=./as$host_exeext | |
8491 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8492 | # Single tree build which includes gas. | |
8493 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8494 | do | |
8495 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8496 | if test x$gcc_cv_gas_version != x; then | |
8497 | break | |
8498 | fi | |
8499 | done | |
8500 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8501 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8502 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8503 | # Gas version 2.6 and later support for .balign and .p2align. | |
8504 | # bytes to skip when using .p2align. | |
8505 | 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 | |
8506 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8507 | cat >> confdefs.h <<\EOF | |
8508 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8509 | EOF | |
8510 | ||
8511 | fi | |
8512 | # Gas version 2.8 and later support specifying the maximum | |
8513 | # bytes to skip when using .p2align. | |
8514 | 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 | |
8515 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8516 | cat >> confdefs.h <<\EOF | |
8517 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8518 | EOF |
8519 | ||
0b9d02c6 | 8520 | fi |
9e423e6d | 8521 | fi |
75bffa71 | 8522 | elif test x$host = x$target; then |
9e423e6d | 8523 | # Native build. |
779243f7 JL |
8524 | # Search the same directories that the installed compiler will |
8525 | # search. Else we may find the wrong assembler and lose. If we | |
8526 | # do not find a suitable assembler binary, then try the user's | |
8527 | # path. | |
8528 | # | |
8529 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8530 | # user's path. Unfortunately, there is no good way to get at the | |
8531 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8532 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8533 | # to be fixed as part of the make/configure rewrite too. | |
8534 | ||
8535 | if test "x$exec_prefix" = xNONE; then | |
8536 | if test "x$prefix" = xNONE; then | |
8537 | test_prefix=/usr/local | |
8538 | else | |
8539 | test_prefix=$prefix | |
8540 | fi | |
8541 | else | |
8542 | test_prefix=$exec_prefix | |
8543 | fi | |
8544 | ||
8545 | # If the loop below does not find an assembler, then use whatever | |
8546 | # one we can find in the users's path. | |
8547 | # user's path. | |
8548 | as=as$host_exeext | |
8549 | ||
8550 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8551 | $test_prefix/lib/gcc-lib/$target \ | |
8552 | /usr/lib/gcc/$target/$gcc_version \ | |
8553 | /usr/lib/gcc/$target \ | |
8554 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8555 | $test_prefix/$target/bin \ | |
8556 | /usr/libexec \ | |
8557 | /usr/ccs/gcc \ | |
8558 | /usr/ccs/bin \ | |
8559 | /udk/usr/ccs/bin \ | |
8560 | /bsd43/usr/lib/cmplrs/cc \ | |
8561 | /usr/cross64/usr/bin \ | |
8562 | /usr/lib/cmplrs/cc \ | |
8563 | /sysv/usr/lib/cmplrs/cc \ | |
8564 | /svr4/usr/lib/cmplrs/cc \ | |
8565 | /usr/bin" | |
8566 | ||
8567 | for dir in $test_dirs; do | |
8568 | if test -f $dir/as$host_exeext; then | |
8569 | gcc_cv_as=$dir/as$host_exeext | |
8570 | break; | |
8571 | fi | |
8572 | done | |
9e423e6d | 8573 | fi |
75bffa71 | 8574 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8575 | # Check if we have .balign and .p2align |
8576 | echo ".balign 4" > conftest.s | |
8577 | echo ".p2align 2" >> conftest.s | |
8578 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8579 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8580 | cat >> confdefs.h <<\EOF | |
8581 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8582 | EOF | |
8583 | ||
8584 | fi | |
8585 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8586 | # Check if specifying the maximum bytes to skip when |
8587 | # using .p2align is supported. | |
8588 | echo ".p2align 4,,7" > conftest.s | |
8589 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8590 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8591 | cat >> confdefs.h <<\EOF | |
8592 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8593 | EOF | |
8594 | ||
8595 | fi | |
8596 | rm -f conftest.s conftest.o | |
8597 | fi | |
8598 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8599 | ||
d1accaa3 | 8600 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
119d24d1 | 8601 | echo "configure:8602: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8602 | gcc_cv_as_subsections= |
8603 | if test x$gcc_cv_as != x; then | |
8604 | # Check if we have .subsection | |
8605 | echo ".subsection 1" > conftest.s | |
8606 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8607 | gcc_cv_as_subsections=".subsection" | |
8608 | if test -x nm$host_exeext; then | |
8609 | gcc_cv_nm=./nm$host_exeext | |
8610 | elif test x$host = x$target; then | |
8611 | # Native build. | |
8612 | gcc_cv_nm=nm$host_exeext | |
8613 | fi | |
8614 | if test x$gcc_cv_nm != x; then | |
8615 | cat > conftest.s <<EOF | |
8616 | conftest_label1: .word 0 | |
8617 | .subsection -1 | |
8618 | conftest_label2: .word 0 | |
8619 | .previous | |
8620 | EOF | |
8621 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8622 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8623 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8624 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8625 | : | |
8626 | else | |
d1accaa3 JJ |
8627 | gcc_cv_as_subsections="working .subsection -1" |
8628 | cat >> confdefs.h <<\EOF | |
8629 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8630 | EOF | |
8631 | ||
8632 | fi | |
8633 | fi | |
8634 | fi | |
8635 | fi | |
8636 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8637 | fi | |
8638 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8639 | ||
12822146 | 8640 | echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 |
119d24d1 | 8641 | echo "configure:8642: checking assembler weak support" >&5 |
12822146 JL |
8642 | gcc_cv_as_weak= |
8643 | if test x$gcc_cv_as != x; then | |
8644 | # Check if we have .weak | |
8645 | echo " .weak foobar" > conftest.s | |
8646 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8647 | cat >> confdefs.h <<\EOF | |
8648 | #define HAVE_GAS_WEAK 1 | |
8649 | EOF | |
8650 | ||
8651 | gcc_cv_as_weak="yes" | |
8652 | fi | |
8653 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8654 | fi | |
8655 | echo "$ac_t""$gcc_cv_as_weak" 1>&6 | |
8656 | ||
6a9c5260 | 8657 | echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6 |
119d24d1 | 8658 | echo "configure:8659: checking assembler hidden support" >&5 |
6a9c5260 UD |
8659 | gcc_cv_as_hidden= |
8660 | if test x$gcc_cv_as != x; then | |
8661 | # Check if we have .hidden | |
8662 | echo " .hidden foobar" > conftest.s | |
8663 | echo "foobar:" >> conftest.s | |
8664 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8665 | cat >> confdefs.h <<\EOF | |
8666 | #define HAVE_GAS_HIDDEN 1 | |
8667 | EOF | |
8668 | ||
8669 | gcc_cv_as_hidden="yes" | |
8670 | fi | |
8671 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8672 | fi | |
8673 | echo "$ac_t""$gcc_cv_as_hidden" 1>&6 | |
8674 | ||
1cb36a98 RH |
8675 | case "$target" in |
8676 | sparc*-*-*) | |
8677 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
119d24d1 | 8678 | echo "configure:8679: checking assembler .register pseudo-op support" >&5 |
5b68c389 AO |
8679 | if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then |
8680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8681 | else | |
8682 | ||
8683 | gcc_cv_as_register_pseudo_op=unknown | |
8684 | if test x$gcc_cv_as != x; then | |
8685 | # Check if we have .register | |
8686 | echo ".register %g2, #scratch" > conftest.s | |
8687 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
1cb36a98 | 8688 | gcc_cv_as_register_pseudo_op=yes |
5b68c389 AO |
8689 | else |
8690 | gcc_cv_as_register_pseudo_op=no | |
8691 | fi | |
8692 | rm -f conftest.s conftest.o | |
8693 | fi | |
8694 | ||
8695 | fi | |
8696 | ||
8697 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8698 | if test "x$gcc_cv_as_register_pseudo_op" = xyes; then | |
8699 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8700 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 |
8701 | EOF | |
8702 | ||
1cb36a98 | 8703 | fi |
1cb36a98 | 8704 | |
5b68c389 AO |
8705 | case "$tm_file" in |
8706 | *64*) | |
8707 | echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6 | |
119d24d1 | 8708 | echo "configure:8709: checking for 64 bit support in assembler ($gcc_cv_as)" >&5 |
5b68c389 AO |
8709 | if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then |
8710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8711 | else | |
8712 | ||
8713 | if test -n "$gcc_cv_as"; then | |
8714 | echo ".xword foo" > conftest.s | |
8715 | gcc_cv_as_flags64=no | |
8a90b95d | 8716 | for flag in "-xarch=v9" "-64 -Av9"; do |
5b68c389 AO |
8717 | if $gcc_cv_as $flag -o conftest.o conftest.s \ |
8718 | > /dev/null 2>&1; then | |
8719 | gcc_cv_as_flags64=$flag | |
8720 | break | |
8721 | fi | |
8722 | done | |
8723 | rm -f conftest.s conftest.o | |
8724 | else | |
8725 | if test "$gas" = yes; then | |
8726 | gcc_cv_as_flags64="-64 -Av9" | |
8727 | else | |
8728 | gcc_cv_as_flags64="-xarch=v9" | |
8729 | fi | |
1cb36a98 | 8730 | fi |
5b68c389 AO |
8731 | |
8732 | fi | |
8733 | ||
8734 | echo "$ac_t""$gcc_cv_as_flags64" 1>&6 | |
8735 | if test "x$gcc_cv_as_flags64" = xno; then | |
8736 | ||
8737 | tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8738 | dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'` | |
8739 | ||
8740 | else | |
8741 | cat >> confdefs.h <<EOF | |
8742 | #define AS_SPARC64_FLAG "$gcc_cv_as_flags64" | |
8743 | EOF | |
8744 | ||
1cb36a98 | 8745 | fi |
5b68c389 AO |
8746 | ;; |
8747 | *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no} | |
8748 | ;; | |
8749 | esac | |
8750 | ||
8751 | if test "x$gcc_cv_as_flags64" != xno; then | |
8752 | echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 | |
119d24d1 | 8753 | echo "configure:8754: checking for assembler offsetable %lo() support" >&5 |
5b68c389 AO |
8754 | if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then |
8755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8756 | else | |
8757 | ||
8758 | gcc_cv_as_offsetable_lo10=unknown | |
8759 | if test "x$gcc_cv_as" != x; then | |
8760 | # Check if assembler has offsetable %lo() | |
8761 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8762 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8763 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \ | |
8764 | > /dev/null 2>&1 && | |
8765 | $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \ | |
8766 | > /dev/null 2>&1; then | |
8767 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8768 | gcc_cv_as_offsetable_lo10=no | |
8769 | else | |
8770 | gcc_cv_as_offsetable_lo10=yes | |
8771 | fi | |
8772 | else | |
8773 | gcc_cv_as_offsetable_lo10=no | |
8774 | fi | |
8775 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8776 | fi | |
8777 | ||
8778 | fi | |
8779 | ||
8780 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8781 | if test "x$gcc_cv_as_offsetable_lo10" = xyes; then | |
8782 | cat >> confdefs.h <<\EOF | |
1cb36a98 RH |
8783 | #define HAVE_AS_OFFSETABLE_LO10 1 |
8784 | EOF | |
8785 | ||
1cb36a98 | 8786 | fi |
1cb36a98 | 8787 | fi |
1cb36a98 RH |
8788 | ;; |
8789 | ||
8790 | i[34567]86-*-*) | |
8791 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
119d24d1 | 8792 | echo "configure:8793: checking assembler instructions" >&5 |
1cb36a98 RH |
8793 | gcc_cv_as_instructions= |
8794 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
8795 | set "filds fists" "filds mem; fists mem" |
8796 | while test $# -gt 0 | |
8797 | do | |
8798 | echo "$2" > conftest.s | |
8799 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8800 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8801 | cat >> confdefs.h <<EOF | |
8802 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8803 | EOF | |
8804 | ||
8805 | fi | |
8806 | shift 2 | |
8807 | done | |
8808 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
8809 | fi |
8810 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8811 | ;; | |
8812 | esac | |
53b5ce19 | 8813 | |
861bb6c1 | 8814 | # Figure out what language subdirectories are present. |
71205e0b MH |
8815 | # Look if the user specified --enable-languages="..."; if not, use |
8816 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8817 | # go away some day. | |
8818 | if test x"${enable_languages+set}" != xset; then | |
8819 | if test x"${LANGUAGES+set}" = xset; then | |
8820 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8821 | else | |
8822 | enable_languages=all | |
8823 | fi | |
8824 | fi | |
861bb6c1 JL |
8825 | subdirs= |
8826 | for lang in ${srcdir}/*/config-lang.in .. | |
8827 | do | |
8828 | case $lang in | |
8829 | ..) ;; | |
8830 | # The odd quoting in the next line works around | |
8831 | # an apparent bug in bash 1.12 on linux. | |
8832 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8833 | *) |
8834 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8835 | if test "x$lang_alias" = x | |
8836 | then | |
8837 | echo "$lang doesn't set \$language." 1>&2 | |
8838 | exit 1 | |
8839 | fi | |
8840 | if test x"${enable_languages}" = xall; then | |
8841 | add_this_lang=yes | |
8842 | else | |
8843 | case "${enable_languages}" in | |
8844 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8845 | add_this_lang=yes | |
8846 | ;; | |
8847 | * ) | |
8848 | add_this_lang=no | |
8849 | ;; | |
8850 | esac | |
8851 | fi | |
8852 | if test x"${add_this_lang}" = xyes; then | |
8853 | case $lang in | |
8854 | ${srcdir}/ada/config-lang.in) | |
8855 | if test x$gnat = xyes ; then | |
8856 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8857 | fi | |
8858 | ;; | |
8859 | *) | |
8860 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8861 | ;; | |
8862 | esac | |
8863 | fi | |
8864 | ;; | |
861bb6c1 JL |
8865 | esac |
8866 | done | |
8867 | ||
f24af81b TT |
8868 | # Make gthr-default.h if we have a thread file. |
8869 | gthread_flags= | |
75bffa71 | 8870 | if test $thread_file != single; then |
f24af81b | 8871 | rm -f gthr-default.h |
db0d1ed9 | 8872 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8873 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8874 | fi | |
8875 | ||
8876 | ||
81bf3d9e RH |
8877 | # Find out what GC implementation we want, or may, use. |
8878 | # Check whether --with-gc or --without-gc was given. | |
8879 | if test "${with_gc+set}" = set; then | |
8880 | withval="$with_gc" | |
8881 | case "$withval" in | |
8882 | simple | page) | |
8883 | GGC=ggc-$withval | |
8884 | ;; | |
8885 | *) | |
8886 | { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; } | |
8887 | ;; | |
8888 | esac | |
8889 | else | |
4acab94b AO |
8890 | if test $ac_cv_func_mmap_anywhere = yes \ |
8891 | || test $ac_cv_func_valloc = yes; then | |
005537df | 8892 | GGC=ggc-page |
81bf3d9e RH |
8893 | else |
8894 | GGC=ggc-simple | |
8895 | fi | |
8896 | fi | |
8897 | ||
8898 | ||
8899 | echo "Using $GGC for garbage collection." | |
8900 | ||
7441a352 NS |
8901 | # Build a new-abi (c++) system |
8902 | # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given. | |
8903 | if test "${enable_new_gxx_abi+set}" = set; then | |
8904 | enableval="$enable_new_gxx_abi" | |
8905 | cat >> confdefs.h <<\EOF | |
8906 | #define ENABLE_NEW_GXX_ABI 1 | |
8907 | EOF | |
8908 | ||
8909 | GXX_ABI_FLAG='-fnew-abi' | |
8910 | echo "Building a new-abi g++ compiler." | |
8911 | ||
8912 | fi | |
8913 | ||
8914 | ||
8915 | ||
7822500a BK |
8916 | # Build a new-libstdc++ system (ie libstdc++-v3) |
8917 | echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6 | |
119d24d1 | 8918 | echo "configure:8919: checking for libstdc++ to install" >&5 |
7822500a BK |
8919 | # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given. |
8920 | if test "${enable_libstdcxx_v3+set}" = set; then | |
8921 | enableval="$enable_libstdcxx_v3" | |
8922 | enable_libstdcxx_v3=yes | |
8923 | else | |
8924 | enable_libstdcxx_v3=no | |
8925 | fi | |
8926 | ||
8927 | ||
8928 | if test x$enable_libstdcxx_v3 = xyes; then | |
8929 | echo "$ac_t""v3" 1>&6 | |
119d24d1 | 8930 | ac_esn=1 |
7822500a BK |
8931 | else |
8932 | echo "$ac_t""v2" 1>&6 | |
119d24d1 | 8933 | ac_esn=0 |
7822500a | 8934 | fi |
119d24d1 KG |
8935 | cat >> confdefs.h <<EOF |
8936 | #define ENABLE_STD_NAMESPACE $ac_esn | |
8937 | EOF | |
7822500a BK |
8938 | |
8939 | ||
861bb6c1 JL |
8940 | # Make empty files to contain the specs and options for each language. |
8941 | # Then add #include lines to for a compiler that has specs and/or options. | |
8942 | ||
8943 | lang_specs_files= | |
8944 | lang_options_files= | |
3103b7db ML |
8945 | lang_tree_files= |
8946 | rm -f specs.h options.h gencheck.h | |
8947 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8948 | for subdir in . $subdirs |
8949 | do | |
75bffa71 | 8950 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8951 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8952 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8953 | fi | |
75bffa71 | 8954 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8955 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8956 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8957 | fi | |
3103b7db ML |
8958 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8959 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8960 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8961 | fi | |
861bb6c1 JL |
8962 | done |
8963 | ||
8964 | # These (without "all_") are set in each config-lang.in. | |
8965 | # `language' must be a single word so is spelled singularly. | |
8966 | all_languages= | |
8967 | all_boot_languages= | |
8968 | all_compilers= | |
8969 | all_stagestuff= | |
8970 | all_diff_excludes= | |
e4476d1c | 8971 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug' |
861bb6c1 JL |
8972 | # List of language makefile fragments. |
8973 | all_lang_makefiles= | |
8974 | all_headers= | |
8975 | all_lib2funcs= | |
8976 | ||
8977 | # Add the language fragments. | |
8978 | # Languages are added via two mechanisms. Some information must be | |
8979 | # recorded in makefile variables, these are defined in config-lang.in. | |
8980 | # We accumulate them and plug them into the main Makefile. | |
8981 | # The other mechanism is a set of hooks for each of the main targets | |
8982 | # like `clean', `install', etc. | |
8983 | ||
8984 | language_fragments="Make-lang" | |
8985 | language_hooks="Make-hooks" | |
8986 | oldstyle_subdirs= | |
8987 | ||
8988 | for s in .. $subdirs | |
8989 | do | |
75bffa71 | 8990 | if test $s != ".." |
861bb6c1 JL |
8991 | then |
8992 | language= | |
8993 | boot_language= | |
8994 | compilers= | |
8995 | stagestuff= | |
8996 | diff_excludes= | |
8997 | headers= | |
8998 | outputs= | |
8999 | lib2funcs= | |
9000 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 9001 | if test "x$language" = x |
861bb6c1 JL |
9002 | then |
9003 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
9004 | exit 1 | |
9005 | fi | |
9006 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
9007 | all_languages="$all_languages $language" | |
75bffa71 | 9008 | if test "x$boot_language" = xyes |
861bb6c1 JL |
9009 | then |
9010 | all_boot_languages="$all_boot_languages $language" | |
9011 | fi | |
9012 | all_compilers="$all_compilers $compilers" | |
9013 | all_stagestuff="$all_stagestuff $stagestuff" | |
9014 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
9015 | all_headers="$all_headers $headers" | |
9016 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 9017 | if test x$outputs = x |
861bb6c1 JL |
9018 | then |
9019 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
9020 | fi | |
9021 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
9022 | fi | |
9023 | done | |
9024 | ||
9025 | # Since we can't use `::' targets, we link each language in | |
9026 | # with a set of hooks, reached indirectly via lang.${target}. | |
9027 | ||
9028 | rm -f Make-hooks | |
9029 | touch Make-hooks | |
9030 | target_list="all.build all.cross start.encap rest.encap \ | |
9031 | info dvi \ | |
9032 | install-normal install-common install-info install-man \ | |
9033 | uninstall distdir \ | |
9034 | mostlyclean clean distclean extraclean maintainer-clean \ | |
9035 | stage1 stage2 stage3 stage4" | |
9036 | for t in $target_list | |
9037 | do | |
9038 | x= | |
ab87f8c8 | 9039 | for lang in .. $all_languages |
861bb6c1 | 9040 | do |
ab87f8c8 JL |
9041 | if test $lang != ".."; then |
9042 | x="$x $lang.$t" | |
861bb6c1 JL |
9043 | fi |
9044 | done | |
9045 | echo "lang.$t: $x" >> Make-hooks | |
9046 | done | |
9047 | ||
9048 | # If we're not building in srcdir, create .gdbinit. | |
9049 | ||
75bffa71 | 9050 | if test ! -f Makefile.in; then |
861bb6c1 JL |
9051 | echo "dir ." > .gdbinit |
9052 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 9053 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
9054 | then |
9055 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
9056 | fi | |
75bffa71 | 9057 | if test "x$subdirs" != x; then |
861bb6c1 JL |
9058 | for s in $subdirs |
9059 | do | |
9060 | echo "dir ${srcdir}/$s" >> .gdbinit | |
9061 | done | |
9062 | fi | |
9063 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
9064 | fi | |
9065 | ||
88111b26 JL |
9066 | # Define variables host_canonical and build_canonical |
9067 | # because some Cygnus local changes in the Makefile depend on them. | |
9068 | build_canonical=${build} | |
9069 | host_canonical=${host} | |
9070 | target_subdir= | |
75bffa71 | 9071 | if test "${host}" != "${target}" ; then |
88111b26 JL |
9072 | target_subdir=${target}/ |
9073 | fi | |
9074 | ||
9075 | ||
9076 | ||
9077 | ||
dec88383 DE |
9078 | # If this is using newlib, then define inhibit_libc in |
9079 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
9080 | # libgcc.a, but that's OK because newib should have its own version of | |
9081 | # assert.h. | |
9082 | inhibit_libc= | |
75bffa71 | 9083 | if test x$with_newlib = xyes; then |
dec88383 DE |
9084 | inhibit_libc=-Dinhibit_libc |
9085 | fi | |
9086 | ||
9087 | ||
8f8d3278 NC |
9088 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
9089 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
9090 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
9091 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
9092 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
9093 | # make and thus we'd get different behavior depending on where we built the | |
9094 | # sources. | |
5949a9fc | 9095 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
9096 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
9097 | else | |
8f8d3278 NC |
9098 | # An explanation of the sed strings: |
9099 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
9100 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
9101 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
9102 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
9103 | # | |
9104 | # (*) Note this pattern overwrites the first character of the string | |
9105 | # with a forward slash if one is not already present. This is not a | |
9106 | # problem because the exact names of the sub-directories concerned is | |
9107 | # unimportant, just the number of them matters. | |
9108 | # | |
9109 | # The practical upshot of these patterns is like this: | |
9110 | # | |
9111 | # prefix exec_prefix result | |
9112 | # ------ ----------- ------ | |
9113 | # /foo /foo/bar ../ | |
9114 | # /foo/ /foo/bar ../ | |
9115 | # /foo /foo/bar/ ../ | |
9116 | # /foo/ /foo/bar/ ../ | |
9117 | # /foo /foo/bar/ugg ../../ | |
9118 | # | |
4c112cda NC |
9119 | dollar='$$' |
9120 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
9121 | fi |
9122 | ||
9123 | ||
2ce3c6c6 | 9124 | |
7e717196 JL |
9125 | # Nothing to do for FLOAT_H, float_format already handled. |
9126 | objdir=`pwd` | |
9127 | ||
9128 | ||
861bb6c1 JL |
9129 | # Process the language and host/target makefile fragments. |
9130 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
9131 | ||
9132 | # Substitute configuration variables | |
9133 | ||
9134 | ||
9135 | ||
9136 | ||
9137 | ||
9138 | ||
9139 | ||
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | ||
9162 | ||
9163 | ||
9164 | ||
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | ||
9177 | ||
9178 | ||
9b16d2c4 | 9179 | |
e9a25f70 | 9180 | |
6e26218f | 9181 | |
c8724862 | 9182 | |
e061d1ce | 9183 | |
f1943b77 | 9184 | |
0b9d02c6 | 9185 | |
3103b7db | 9186 | |
d8bb17c8 | 9187 | |
9fc9b82a | 9188 | |
861bb6c1 JL |
9189 | |
9190 | ||
9191 | # Echo that links are built | |
75bffa71 | 9192 | if test x$host = x$target |
861bb6c1 JL |
9193 | then |
9194 | str1="native " | |
9195 | else | |
9196 | str1="cross-" | |
9197 | str2=" from $host" | |
9198 | fi | |
9199 | ||
75bffa71 | 9200 | if test x$host != x$build |
861bb6c1 JL |
9201 | then |
9202 | str3=" on a $build system" | |
9203 | fi | |
9204 | ||
75bffa71 | 9205 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9206 | then |
9207 | str4= | |
9208 | fi | |
9209 | ||
9210 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
9211 | ||
75bffa71 | 9212 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
9213 | then |
9214 | echo " ${str2}${str3}." 1>&2 | |
9215 | fi | |
9216 | ||
f6cb0e63 | 9217 | # Truncate the target if necessary |
75bffa71 | 9218 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
9219 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
9220 | fi | |
9221 | ||
861bb6c1 JL |
9222 | # Configure the subdirectories |
9223 | # AC_CONFIG_SUBDIRS($subdirs) | |
9224 | ||
9225 | # Create the Makefile | |
9226 | # and configure language subdirectories | |
9227 | trap '' 1 2 15 | |
9228 | cat > confcache <<\EOF | |
9229 | # This file is a shell script that caches the results of configure | |
9230 | # tests run on this system so they can be shared between configure | |
9231 | # scripts and configure runs. It is not useful on other systems. | |
9232 | # If it contains results you don't want to keep, you may remove or edit it. | |
9233 | # | |
9234 | # By default, configure uses ./config.cache as the cache file, | |
9235 | # creating it if it does not exist already. You can give configure | |
9236 | # the --cache-file=FILE option to use a different cache file; that is | |
9237 | # what configure does when it calls configure scripts in | |
9238 | # subdirectories, so they share the cache. | |
9239 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9240 | # config.status only pays attention to the cache file if you give it the | |
9241 | # --recheck option to rerun configure. | |
9242 | # | |
9243 | EOF | |
9244 | # The following way of writing the cache mishandles newlines in values, | |
9245 | # but we know of no workaround that is simple, portable, and efficient. | |
9246 | # So, don't put newlines in cache variables' values. | |
9247 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9248 | # and sets the high bit in the cache file unless we assign to the vars. | |
9249 | (set) 2>&1 | | |
b27d2bd5 | 9250 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
9251 | *ac_space=\ *) |
9252 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9253 | # turns \\\\ into \\, and sed turns \\ into \). | |
9254 | sed -n \ | |
9255 | -e "s/'/'\\\\''/g" \ | |
9256 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9257 | ;; | |
9258 | *) | |
9259 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9260 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9261 | ;; | |
9262 | esac >> confcache | |
9263 | if cmp -s $cache_file confcache; then | |
9264 | : | |
9265 | else | |
9266 | if test -w $cache_file; then | |
9267 | echo "updating cache $cache_file" | |
9268 | cat confcache > $cache_file | |
9269 | else | |
9270 | echo "not updating unwritable cache $cache_file" | |
9271 | fi | |
9272 | fi | |
9273 | rm -f confcache | |
9274 | ||
9275 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
9276 | ||
9277 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9278 | # Let make expand exec_prefix. | |
9279 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9280 | ||
9281 | # Any assignment to VPATH causes Sun make to only execute | |
9282 | # the first set of double-colon rules, so remove it if not needed. | |
9283 | # If there is a colon in the path, we need to keep it. | |
9284 | if test "x$srcdir" = x.; then | |
9285 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
9286 | fi | |
9287 | ||
9288 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
9289 | ||
9290 | DEFS=-DHAVE_CONFIG_H | |
9291 | ||
9292 | # Without the "./", some shells look in PATH for config.status. | |
9293 | : ${CONFIG_STATUS=./config.status} | |
9294 | ||
9295 | echo creating $CONFIG_STATUS | |
9296 | rm -f $CONFIG_STATUS | |
9297 | cat > $CONFIG_STATUS <<EOF | |
9298 | #! /bin/sh | |
9299 | # Generated automatically by configure. | |
9300 | # Run this file to recreate the current configuration. | |
9301 | # This directory was configured as follows, | |
9302 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9303 | # | |
9304 | # $0 $ac_configure_args | |
9305 | # | |
9306 | # Compiler output produced by configure, useful for debugging | |
9307 | # configure, is in ./config.log if it exists. | |
9308 | ||
9309 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
9310 | for ac_option | |
9311 | do | |
9312 | case "\$ac_option" in | |
9313 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9314 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
9315 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
9316 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 9317 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
9318 | exit 0 ;; |
9319 | -help | --help | --hel | --he | --h) | |
9320 | echo "\$ac_cs_usage"; exit 0 ;; | |
9321 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
9322 | esac | |
9323 | done | |
9324 | ||
9325 | ac_given_srcdir=$srcdir | |
861bb6c1 | 9326 | |
b7cb92ad | 9327 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
9328 | EOF |
9329 | cat >> $CONFIG_STATUS <<EOF | |
9330 | ||
9331 | # Protect against being on the right side of a sed subst in config.status. | |
9332 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
9333 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
9334 | $ac_vpsub | |
9335 | $extrasub | |
6f144c9c | 9336 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
9337 | s%@CFLAGS@%$CFLAGS%g |
9338 | s%@CPPFLAGS@%$CPPFLAGS%g | |
9339 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 9340 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
9341 | s%@DEFS@%$DEFS%g |
9342 | s%@LDFLAGS@%$LDFLAGS%g | |
9343 | s%@LIBS@%$LIBS%g | |
9344 | s%@exec_prefix@%$exec_prefix%g | |
9345 | s%@prefix@%$prefix%g | |
9346 | s%@program_transform_name@%$program_transform_name%g | |
9347 | s%@bindir@%$bindir%g | |
9348 | s%@sbindir@%$sbindir%g | |
9349 | s%@libexecdir@%$libexecdir%g | |
9350 | s%@datadir@%$datadir%g | |
9351 | s%@sysconfdir@%$sysconfdir%g | |
9352 | s%@sharedstatedir@%$sharedstatedir%g | |
9353 | s%@localstatedir@%$localstatedir%g | |
9354 | s%@libdir@%$libdir%g | |
9355 | s%@includedir@%$includedir%g | |
9356 | s%@oldincludedir@%$oldincludedir%g | |
9357 | s%@infodir@%$infodir%g | |
9358 | s%@mandir@%$mandir%g | |
9359 | s%@host@%$host%g | |
9360 | s%@host_alias@%$host_alias%g | |
9361 | s%@host_cpu@%$host_cpu%g | |
9362 | s%@host_vendor@%$host_vendor%g | |
9363 | s%@host_os@%$host_os%g | |
9364 | s%@target@%$target%g | |
9365 | s%@target_alias@%$target_alias%g | |
9366 | s%@target_cpu@%$target_cpu%g | |
9367 | s%@target_vendor@%$target_vendor%g | |
9368 | s%@target_os@%$target_os%g | |
9369 | s%@build@%$build%g | |
9370 | s%@build_alias@%$build_alias%g | |
9371 | s%@build_cpu@%$build_cpu%g | |
9372 | s%@build_vendor@%$build_vendor%g | |
9373 | s%@build_os@%$build_os%g | |
e9a25f70 | 9374 | s%@CC@%$CC%g |
61842080 | 9375 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 9376 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
9377 | s%@AWK@%$AWK%g |
9378 | s%@LEX@%$LEX%g | |
9379 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
9380 | s%@LN@%$LN%g |
9381 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
9382 | s%@RANLIB@%$RANLIB%g |
9383 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
9384 | s%@INSTALL@%$INSTALL%g |
9385 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9386 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 9387 | s%@CPP@%$CPP%g |
bcf12124 | 9388 | s%@gnat@%$gnat%g |
0a4b6309 RL |
9389 | s%@vfprintf@%$vfprintf%g |
9390 | s%@doprint@%$doprint%g | |
861bb6c1 | 9391 | s%@manext@%$manext%g |
992d1248 | 9392 | s%@objext@%$objext%g |
ab87f8c8 JL |
9393 | s%@PACKAGE@%$PACKAGE%g |
9394 | s%@VERSION@%$VERSION%g | |
9395 | s%@ALLOCA@%$ALLOCA%g | |
9396 | s%@USE_NLS@%$USE_NLS%g | |
9397 | s%@MSGFMT@%$MSGFMT%g | |
9398 | s%@GMSGFMT@%$GMSGFMT%g | |
9399 | s%@XGETTEXT@%$XGETTEXT%g | |
9400 | s%@GENCAT@%$GENCAT%g | |
9401 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
9402 | s%@CATALOGS@%$CATALOGS%g | |
9403 | s%@CATOBJEXT@%$CATOBJEXT%g | |
9404 | s%@DATADIRNAME@%$DATADIRNAME%g | |
9405 | s%@GMOFILES@%$GMOFILES%g | |
9406 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
9407 | s%@INTLDEPS@%$INTLDEPS%g | |
9408 | s%@INTLLIBS@%$INTLLIBS%g | |
9409 | s%@INTLOBJS@%$INTLOBJS%g | |
9410 | s%@POFILES@%$POFILES%g | |
9411 | s%@POSUB@%$POSUB%g | |
9412 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
9413 | s%@GT_NO@%$GT_NO%g | |
9414 | s%@GT_YES@%$GT_YES%g | |
9415 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
9416 | s%@l@%$l%g | |
f24af81b | 9417 | s%@gthread_flags@%$gthread_flags%g |
81bf3d9e | 9418 | s%@GGC@%$GGC%g |
7441a352 | 9419 | s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g |
88111b26 JL |
9420 | s%@build_canonical@%$build_canonical%g |
9421 | s%@host_canonical@%$host_canonical%g | |
9422 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 9423 | s%@inhibit_libc@%$inhibit_libc%g |
d062c304 | 9424 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 9425 | s%@dollar@%$dollar%g |
7e717196 | 9426 | s%@objdir@%$objdir%g |
861bb6c1 | 9427 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
9428 | s%@all_boot_languages@%$all_boot_languages%g |
9429 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 9430 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 9431 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
9432 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
9433 | s%@all_languages@%$all_languages%g | |
9434 | s%@all_lib2funcs@%$all_lib2funcs%g | |
9435 | s%@all_stagestuff@%$all_stagestuff%g | |
9436 | s%@build_exeext@%$build_exeext%g | |
9437 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
9438 | s%@build_xm_file_list@%$build_xm_file_list%g | |
9439 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 9440 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 9441 | s%@cpp_install_dir@%$cpp_install_dir%g |
4f3ae93c BK |
9442 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
9443 | s%@dep_tmake_file@%$dep_tmake_file%g | |
9444 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 9445 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 9446 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
9447 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
9448 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 9449 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
9450 | s%@extra_parts@%$extra_parts%g |
9451 | s%@extra_passes@%$extra_passes%g | |
9452 | s%@extra_programs@%$extra_programs%g | |
4f3ae93c BK |
9453 | s%@float_h_file@%$float_h_file%g |
9454 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9455 | s%@gcc_version@%$gcc_version%g | |
9456 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9457 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9458 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9459 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c | 9460 | s%@install@%$install%g |
861bb6c1 | 9461 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9462 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9463 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9464 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9465 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9466 | s%@md_file@%$md_file%g |
9467 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9468 | s%@out_file@%$out_file%g | |
9469 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9470 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9471 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9472 | s%@thread_file@%$thread_file%g |
9473 | s%@tm_file_list@%$tm_file_list%g | |
9474 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9475 | /@target_overrides@/r $target_overrides |
9476 | s%@target_overrides@%%g | |
9477 | /@host_overrides@/r $host_overrides | |
9478 | s%@host_overrides@%%g | |
9479 | s%@cross_defines@%$cross_defines%g | |
9480 | /@cross_overrides@/r $cross_overrides | |
9481 | s%@cross_overrides@%%g | |
9482 | /@build_overrides@/r $build_overrides | |
9483 | s%@build_overrides@%%g | |
9484 | /@language_fragments@/r $language_fragments | |
9485 | s%@language_fragments@%%g | |
9486 | /@language_hooks@/r $language_hooks | |
9487 | s%@language_hooks@%%g | |
9488 | ||
9489 | CEOF | |
9490 | EOF | |
9491 | ||
9492 | cat >> $CONFIG_STATUS <<\EOF | |
9493 | ||
9494 | # Split the substitutions into bite-sized pieces for seds with | |
9495 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9496 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9497 | ac_file=1 # Number of current file. | |
9498 | ac_beg=1 # First line for current file. | |
9499 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9500 | ac_more_lines=: | |
9501 | ac_sed_cmds="" | |
9502 | while $ac_more_lines; do | |
9503 | if test $ac_beg -gt 1; then | |
9504 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9505 | else | |
9506 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9507 | fi | |
9508 | if test ! -s conftest.s$ac_file; then | |
9509 | ac_more_lines=false | |
9510 | rm -f conftest.s$ac_file | |
9511 | else | |
9512 | if test -z "$ac_sed_cmds"; then | |
9513 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9514 | else | |
9515 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9516 | fi | |
9517 | ac_file=`expr $ac_file + 1` | |
9518 | ac_beg=$ac_end | |
9519 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9520 | fi | |
9521 | done | |
9522 | if test -z "$ac_sed_cmds"; then | |
9523 | ac_sed_cmds=cat | |
9524 | fi | |
9525 | EOF | |
9526 | ||
9527 | cat >> $CONFIG_STATUS <<EOF | |
9528 | ||
9529 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9530 | EOF | |
9531 | cat >> $CONFIG_STATUS <<\EOF | |
9532 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9533 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9534 | case "$ac_file" in | |
9535 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9536 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9537 | *) ac_file_in="${ac_file}.in" ;; | |
9538 | esac | |
9539 | ||
9540 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9541 | ||
9542 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9543 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9544 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9545 | # The file is in a subdirectory. | |
9546 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9547 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9548 | # A "../" for each directory in $ac_dir_suffix. | |
9549 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9550 | else | |
9551 | ac_dir_suffix= ac_dots= | |
9552 | fi | |
9553 | ||
9554 | case "$ac_given_srcdir" in | |
9555 | .) srcdir=. | |
9556 | if test -z "$ac_dots"; then top_srcdir=. | |
9557 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9558 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9559 | *) # Relative path. | |
9560 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9561 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9562 | esac | |
9563 | ||
861bb6c1 JL |
9564 | |
9565 | echo creating "$ac_file" | |
9566 | rm -f "$ac_file" | |
9567 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9568 | case "$ac_file" in | |
9569 | *Makefile*) ac_comsub="1i\\ | |
9570 | # $configure_input" ;; | |
9571 | *) ac_comsub= ;; | |
9572 | esac | |
9573 | ||
9574 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9575 | sed -e "$ac_comsub | |
9576 | s%@configure_input@%$configure_input%g | |
9577 | s%@srcdir@%$srcdir%g | |
9578 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9579 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9580 | fi; done | |
9581 | rm -f conftest.s* | |
9582 | ||
9583 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9584 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9585 | # | |
9586 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9587 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9588 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9589 | ac_dC='\3' | |
9590 | ac_dD='%g' | |
9591 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9592 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9593 | ac_uB='\([ ]\)%\1#\2define\3' | |
9594 | ac_uC=' ' | |
9595 | ac_uD='\4%g' | |
9596 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9597 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9598 | ac_eB='$%\1#\2define\3' | |
9599 | ac_eC=' ' | |
9600 | ac_eD='%g' | |
9601 | ||
9602 | if test "${CONFIG_HEADERS+set}" != set; then | |
9603 | EOF | |
9604 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9605 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9606 | EOF |
9607 | cat >> $CONFIG_STATUS <<\EOF | |
9608 | fi | |
9609 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9610 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9611 | case "$ac_file" in | |
9612 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9613 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9614 | *) ac_file_in="${ac_file}.in" ;; | |
9615 | esac | |
9616 | ||
9617 | echo creating $ac_file | |
9618 | ||
9619 | rm -f conftest.frag conftest.in conftest.out | |
9620 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9621 | cat $ac_file_inputs > conftest.in | |
9622 | ||
9623 | EOF | |
9624 | ||
9625 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9626 | # the proper values into config.h.in to produce config.h. And first: | |
9627 | # Protect against being on the right side of a sed subst in config.status. | |
9628 | # Protect against being in an unquoted here document in config.status. | |
9629 | rm -f conftest.vals | |
9630 | cat > conftest.hdr <<\EOF | |
9631 | s/[\\&%]/\\&/g | |
9632 | s%[\\$`]%\\&%g | |
9633 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9634 | s%ac_d%ac_u%gp | |
9635 | s%ac_u%ac_e%gp | |
9636 | EOF | |
9637 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9638 | rm -f conftest.hdr | |
9639 | ||
9640 | # This sed command replaces #undef with comments. This is necessary, for | |
9641 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9642 | # on some systems where configure will not decide to define it. | |
9643 | cat >> conftest.vals <<\EOF | |
9644 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9645 | EOF | |
9646 | ||
9647 | # Break up conftest.vals because some shells have a limit on | |
9648 | # the size of here documents, and old seds have small limits too. | |
9649 | ||
9650 | rm -f conftest.tail | |
9651 | while : | |
9652 | do | |
9653 | ac_lines=`grep -c . conftest.vals` | |
9654 | # grep -c gives empty output for an empty file on some AIX systems. | |
9655 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9656 | # Write a limited-size here document to conftest.frag. | |
9657 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9658 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9659 | echo 'CEOF | |
9660 | sed -f conftest.frag conftest.in > conftest.out | |
9661 | rm -f conftest.in | |
9662 | mv conftest.out conftest.in | |
9663 | ' >> $CONFIG_STATUS | |
9664 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9665 | rm -f conftest.vals | |
9666 | mv conftest.tail conftest.vals | |
9667 | done | |
9668 | rm -f conftest.vals | |
9669 | ||
9670 | cat >> $CONFIG_STATUS <<\EOF | |
9671 | rm -f conftest.frag conftest.h | |
9672 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9673 | cat conftest.in >> conftest.h | |
9674 | rm -f conftest.in | |
9675 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9676 | echo "$ac_file is unchanged" | |
9677 | rm -f conftest.h | |
9678 | else | |
9679 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9680 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9681 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9682 | # The file is in a subdirectory. | |
9683 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9684 | fi | |
9685 | rm -f $ac_file | |
9686 | mv conftest.h $ac_file | |
9687 | fi | |
9688 | fi; done | |
9689 | ||
ab87f8c8 JL |
9690 | EOF |
9691 | ||
9692 | cat >> $CONFIG_STATUS <<EOF | |
9693 | ac_sources="$nls_cv_header_libgt" | |
9694 | ac_dests="$nls_cv_header_intl" | |
9695 | EOF | |
9696 | ||
9697 | cat >> $CONFIG_STATUS <<\EOF | |
9698 | srcdir=$ac_given_srcdir | |
9699 | while test -n "$ac_sources"; do | |
9700 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9701 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9702 | ||
9703 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9704 | ||
9705 | if test ! -r $srcdir/$ac_source; then | |
9706 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9707 | fi | |
9708 | rm -f $ac_dest | |
9709 | ||
9710 | # Make relative symlinks. | |
9711 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9712 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9713 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9714 | # The dest file is in a subdirectory. | |
9715 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9716 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9717 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9718 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9719 | else | |
9720 | ac_dest_dir_suffix= ac_dots= | |
9721 | fi | |
9722 | ||
9723 | case "$srcdir" in | |
9724 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9725 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9726 | esac | |
9727 | ||
9728 | # Make a symlink if possible; otherwise try a hard link. | |
9729 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9730 | ln $srcdir/$ac_source $ac_dest; then : | |
9731 | else | |
9732 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9733 | fi | |
9734 | done | |
861bb6c1 JL |
9735 | EOF |
9736 | cat >> $CONFIG_STATUS <<EOF | |
9737 | ||
ab87f8c8 | 9738 | |
861bb6c1 JL |
9739 | host='${host}' |
9740 | build='${build}' | |
9741 | target='${target}' | |
9742 | target_alias='${target_alias}' | |
9743 | srcdir='${srcdir}' | |
9744 | subdirs='${subdirs}' | |
9745 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9746 | symbolic_link='${symbolic_link}' | |
9747 | program_transform_set='${program_transform_set}' | |
9748 | program_transform_name='${program_transform_name}' | |
9749 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9750 | host_xmake_file='${host_xmake_file}' | |
9751 | dep_tmake_file='${dep_tmake_file}' | |
9752 | tmake_file='${tmake_file}' | |
9753 | thread_file='${thread_file}' | |
f1943b77 MH |
9754 | gcc_version='${gcc_version}' |
9755 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9756 | local_prefix='${local_prefix}' |
9757 | build_install_headers_dir='${build_install_headers_dir}' | |
9758 | build_exeext='${build_exeext}' | |
6e26218f | 9759 | host_exeext='${host_exeext}' |
7ed46111 | 9760 | out_file='${out_file}' |
861bb6c1 JL |
9761 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9762 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9763 | target_list='${target_list}' |
9764 | target_overrides='${target_overrides}' | |
9765 | host_overrides='${host_overrides}' | |
9766 | cross_defines='${cross_defines}' | |
9767 | cross_overrides='${cross_overrides}' | |
9768 | build_overrides='${build_overrides}' | |
9fc9b82a | 9769 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9770 | |
9771 | EOF | |
9772 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9773 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9774 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9775 | esac | |
861bb6c1 JL |
9776 | |
9777 | . $srcdir/configure.lang | |
9778 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9779 | xauto-host.h:config.in) |
861bb6c1 JL |
9780 | echo > cstamp-h ;; |
9781 | esac | |
93cf819d BK |
9782 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9783 | # bootstrapping and the installation procedure can still use | |
9784 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9785 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9786 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9787 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9788 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9789 | for d in .. ${subdirs} ; do |
75bffa71 | 9790 | if test $d != ..; then |
4e8a434e BK |
9791 | STARTDIR=`pwd` |
9792 | cd $d | |
9793 | for t in stage1 stage2 stage3 stage4 include | |
9794 | do | |
9795 | rm -f $t | |
9796 | $symbolic_link ../$t $t 2>/dev/null | |
9797 | done | |
9798 | cd $STARTDIR | |
93cf819d BK |
9799 | fi |
9800 | done | |
9801 | else true ; fi | |
ab87f8c8 JL |
9802 | # Avoid having to add intl to our include paths. |
9803 | if test -f intl/libintl.h; then | |
9804 | echo creating libintl.h | |
9805 | echo '#include "intl/libintl.h"' >libintl.h | |
9806 | fi | |
861bb6c1 JL |
9807 | |
9808 | exit 0 | |
9809 | EOF | |
9810 | chmod +x $CONFIG_STATUS | |
9811 | rm -fr confdefs* $ac_clean_files | |
9812 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9813 |