]>
Commit | Line | Data |
---|---|---|
861bb6c1 JL |
1 | #! /bin/sh |
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 MM |
31 | ac_help="$ac_help |
32 | --enable-checking enable expensive run-time checks." | |
3ecc3258 ZW |
33 | ac_help="$ac_help |
34 | --disable-cpp don't provide a user-visible C preprocessor." | |
35 | ac_help="$ac_help | |
36 | --with-cpp-install-dir=DIR | |
37 | install the user visible C preprocessor in DIR | |
38 | (relative to PREFIX) as well as PREFIX/bin." | |
861bb6c1 | 39 | ac_help="$ac_help |
f81a440f | 40 | --enable-cpplib use cpplib for the C preprocessor." |
0b9d02c6 | 41 | ac_help="$ac_help |
f81a440f | 42 | --enable-c-cpplib link cpplib directly into C and C++ compilers |
3ecc3258 | 43 | (EXPERIMENTAL) (implies --enable-cpplib)." |
9101297d | 44 | ac_help="$ac_help |
f81a440f | 45 | --enable-c-mbchar enable multibyte characters for C and C++." |
76c8f855 BK |
46 | ac_help="$ac_help |
47 | --disable-fast-fixincludes | |
48 | Disable the new fast fixincludes. | |
49 | Run the old fixincludes script unconditionally" | |
f81a440f ZW |
50 | ac_help="$ac_help |
51 | --enable-haifa use the experimental scheduler. | |
52 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 53 | targets which normally enable it." |
861bb6c1 JL |
54 | ac_help="$ac_help |
55 | --enable-threads enable thread usage for target GCC. | |
56 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
57 | ac_help="$ac_help |
58 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
59 | the GNU Objective-C runtime." | |
df37e3db TT |
60 | ac_help="$ac_help |
61 | --enable-java-gc=TYPE choose garbage collector [boehm]" | |
90e6a802 RL |
62 | ac_help="$ac_help |
63 | --enable-dwarf2 enable DWARF2 debugging as default." | |
ab87f8c8 JL |
64 | ac_help="$ac_help |
65 | --enable-nls use Native Language Support (disabled by default)" | |
66 | ac_help="$ac_help | |
67 | --disable-nls do not use Native Language Support" | |
68 | ac_help="$ac_help | |
69 | --with-included-gettext use the GNU gettext library included here" | |
70 | ac_help="$ac_help | |
71 | --with-catgets use catgets functions if available" | |
861bb6c1 JL |
72 | |
73 | # Initialize some variables set by options. | |
74 | # The variables have the same names as the options, with | |
75 | # dashes changed to underlines. | |
76 | build=NONE | |
77 | cache_file=./config.cache | |
78 | exec_prefix=NONE | |
79 | host=NONE | |
80 | no_create= | |
81 | nonopt=NONE | |
82 | no_recursion= | |
83 | prefix=NONE | |
84 | program_prefix=NONE | |
85 | program_suffix=NONE | |
86 | program_transform_name=s,x,x, | |
87 | silent= | |
88 | site= | |
89 | srcdir= | |
90 | target=NONE | |
91 | verbose= | |
92 | x_includes=NONE | |
93 | x_libraries=NONE | |
94 | bindir='${exec_prefix}/bin' | |
95 | sbindir='${exec_prefix}/sbin' | |
96 | libexecdir='${exec_prefix}/libexec' | |
97 | datadir='${prefix}/share' | |
98 | sysconfdir='${prefix}/etc' | |
99 | sharedstatedir='${prefix}/com' | |
100 | localstatedir='${prefix}/var' | |
101 | libdir='${exec_prefix}/lib' | |
102 | includedir='${prefix}/include' | |
103 | oldincludedir='/usr/include' | |
104 | infodir='${prefix}/info' | |
105 | mandir='${prefix}/man' | |
106 | ||
107 | # Initialize some other variables. | |
108 | subdirs= | |
109 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 110 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
111 | # Maximum number of lines to put in a shell here document. |
112 | ac_max_here_lines=12 | |
113 | ||
114 | ac_prev= | |
115 | for ac_option | |
116 | do | |
117 | ||
118 | # If the previous option needs an argument, assign it. | |
119 | if test -n "$ac_prev"; then | |
120 | eval "$ac_prev=\$ac_option" | |
121 | ac_prev= | |
122 | continue | |
123 | fi | |
124 | ||
125 | case "$ac_option" in | |
126 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
127 | *) ac_optarg= ;; | |
128 | esac | |
129 | ||
130 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
131 | ||
132 | case "$ac_option" in | |
133 | ||
134 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
135 | ac_prev=bindir ;; | |
136 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
137 | bindir="$ac_optarg" ;; | |
138 | ||
139 | -build | --build | --buil | --bui | --bu) | |
140 | ac_prev=build ;; | |
141 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
142 | build="$ac_optarg" ;; | |
143 | ||
144 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
145 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
146 | ac_prev=cache_file ;; | |
147 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
148 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
149 | cache_file="$ac_optarg" ;; | |
150 | ||
151 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
152 | ac_prev=datadir ;; | |
153 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
154 | | --da=*) | |
155 | datadir="$ac_optarg" ;; | |
156 | ||
157 | -disable-* | --disable-*) | |
158 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
159 | # Reject names that are not valid shell variable names. | |
160 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
161 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
162 | fi | |
163 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
164 | eval "enable_${ac_feature}=no" ;; | |
165 | ||
166 | -enable-* | --enable-*) | |
167 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
168 | # Reject names that are not valid shell variable names. | |
169 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
170 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
171 | fi | |
172 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
173 | case "$ac_option" in | |
174 | *=*) ;; | |
175 | *) ac_optarg=yes ;; | |
176 | esac | |
177 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
178 | ||
179 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
180 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
181 | | --exec | --exe | --ex) | |
182 | ac_prev=exec_prefix ;; | |
183 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
184 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
185 | | --exec=* | --exe=* | --ex=*) | |
186 | exec_prefix="$ac_optarg" ;; | |
187 | ||
188 | -gas | --gas | --ga | --g) | |
189 | # Obsolete; use --with-gas. | |
190 | with_gas=yes ;; | |
191 | ||
192 | -help | --help | --hel | --he) | |
193 | # Omit some internal or obsolete options to make the list less imposing. | |
194 | # This message is too long to be a string in the A/UX 3.1 sh. | |
195 | cat << EOF | |
196 | Usage: configure [options] [host] | |
197 | Options: [defaults in brackets after descriptions] | |
198 | Configuration: | |
199 | --cache-file=FILE cache test results in FILE | |
200 | --help print this message | |
201 | --no-create do not create output files | |
202 | --quiet, --silent do not print \`checking...' messages | |
203 | --version print the version of autoconf that created configure | |
204 | Directory and file names: | |
205 | --prefix=PREFIX install architecture-independent files in PREFIX | |
206 | [$ac_default_prefix] | |
207 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
208 | [same as prefix] | |
209 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
210 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
211 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
212 | --datadir=DIR read-only architecture-independent data in DIR | |
213 | [PREFIX/share] | |
214 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
215 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
216 | [PREFIX/com] | |
217 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
218 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
219 | --includedir=DIR C header files in DIR [PREFIX/include] | |
220 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
221 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
222 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
223 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
224 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
225 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
226 | --program-transform-name=PROGRAM | |
227 | run sed PROGRAM on installed program names | |
228 | EOF | |
229 | cat << EOF | |
230 | Host type: | |
231 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
232 | --host=HOST configure for HOST [guessed] | |
233 | --target=TARGET configure for TARGET [TARGET=HOST] | |
234 | Features and packages: | |
235 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
236 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
237 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
238 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
239 | --x-includes=DIR X include files are in DIR | |
240 | --x-libraries=DIR X library files are in DIR | |
241 | EOF | |
242 | if test -n "$ac_help"; then | |
243 | echo "--enable and --with options recognized:$ac_help" | |
244 | fi | |
245 | exit 0 ;; | |
246 | ||
247 | -host | --host | --hos | --ho) | |
248 | ac_prev=host ;; | |
249 | -host=* | --host=* | --hos=* | --ho=*) | |
250 | host="$ac_optarg" ;; | |
251 | ||
252 | -includedir | --includedir | --includedi | --included | --include \ | |
253 | | --includ | --inclu | --incl | --inc) | |
254 | ac_prev=includedir ;; | |
255 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
256 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
257 | includedir="$ac_optarg" ;; | |
258 | ||
259 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
260 | ac_prev=infodir ;; | |
261 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
262 | infodir="$ac_optarg" ;; | |
263 | ||
264 | -libdir | --libdir | --libdi | --libd) | |
265 | ac_prev=libdir ;; | |
266 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
267 | libdir="$ac_optarg" ;; | |
268 | ||
269 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
270 | | --libexe | --libex | --libe) | |
271 | ac_prev=libexecdir ;; | |
272 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
273 | | --libexe=* | --libex=* | --libe=*) | |
274 | libexecdir="$ac_optarg" ;; | |
275 | ||
276 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
277 | | --localstate | --localstat | --localsta | --localst \ | |
278 | | --locals | --local | --loca | --loc | --lo) | |
279 | ac_prev=localstatedir ;; | |
280 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
281 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
282 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
283 | localstatedir="$ac_optarg" ;; | |
284 | ||
285 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
286 | ac_prev=mandir ;; | |
287 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
288 | mandir="$ac_optarg" ;; | |
289 | ||
290 | -nfp | --nfp | --nf) | |
291 | # Obsolete; use --without-fp. | |
292 | with_fp=no ;; | |
293 | ||
294 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
295 | | --no-cr | --no-c) | |
296 | no_create=yes ;; | |
297 | ||
298 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
299 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
300 | no_recursion=yes ;; | |
301 | ||
302 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
303 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
304 | | --oldin | --oldi | --old | --ol | --o) | |
305 | ac_prev=oldincludedir ;; | |
306 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
307 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
308 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
309 | oldincludedir="$ac_optarg" ;; | |
310 | ||
311 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
312 | ac_prev=prefix ;; | |
313 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
314 | prefix="$ac_optarg" ;; | |
315 | ||
316 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
317 | | --program-pre | --program-pr | --program-p) | |
318 | ac_prev=program_prefix ;; | |
319 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
320 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
321 | program_prefix="$ac_optarg" ;; | |
322 | ||
323 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
324 | | --program-suf | --program-su | --program-s) | |
325 | ac_prev=program_suffix ;; | |
326 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
327 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
328 | program_suffix="$ac_optarg" ;; | |
329 | ||
330 | -program-transform-name | --program-transform-name \ | |
331 | | --program-transform-nam | --program-transform-na \ | |
332 | | --program-transform-n | --program-transform- \ | |
333 | | --program-transform | --program-transfor \ | |
334 | | --program-transfo | --program-transf \ | |
335 | | --program-trans | --program-tran \ | |
336 | | --progr-tra | --program-tr | --program-t) | |
337 | ac_prev=program_transform_name ;; | |
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 | program_transform_name="$ac_optarg" ;; | |
346 | ||
347 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
348 | | -silent | --silent | --silen | --sile | --sil) | |
349 | silent=yes ;; | |
350 | ||
351 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
352 | ac_prev=sbindir ;; | |
353 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
354 | | --sbi=* | --sb=*) | |
355 | sbindir="$ac_optarg" ;; | |
356 | ||
357 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
358 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
359 | | --sharedst | --shareds | --shared | --share | --shar \ | |
360 | | --sha | --sh) | |
361 | ac_prev=sharedstatedir ;; | |
362 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
363 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
364 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
365 | | --sha=* | --sh=*) | |
366 | sharedstatedir="$ac_optarg" ;; | |
367 | ||
368 | -site | --site | --sit) | |
369 | ac_prev=site ;; | |
370 | -site=* | --site=* | --sit=*) | |
371 | site="$ac_optarg" ;; | |
372 | ||
373 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
374 | ac_prev=srcdir ;; | |
375 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
376 | srcdir="$ac_optarg" ;; | |
377 | ||
378 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
379 | | --syscon | --sysco | --sysc | --sys | --sy) | |
380 | ac_prev=sysconfdir ;; | |
381 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
382 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
383 | sysconfdir="$ac_optarg" ;; | |
384 | ||
385 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
386 | ac_prev=target ;; | |
387 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
388 | target="$ac_optarg" ;; | |
389 | ||
390 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
391 | verbose=yes ;; | |
392 | ||
393 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 394 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
395 | exit 0 ;; |
396 | ||
397 | -with-* | --with-*) | |
398 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
399 | # Reject names that are not valid shell variable names. | |
400 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
401 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
402 | fi | |
403 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
404 | case "$ac_option" in | |
405 | *=*) ;; | |
406 | *) ac_optarg=yes ;; | |
407 | esac | |
408 | eval "with_${ac_package}='$ac_optarg'" ;; | |
409 | ||
410 | -without-* | --without-*) | |
411 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
412 | # Reject names that are not valid shell variable names. | |
413 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
414 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
415 | fi | |
416 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
417 | eval "with_${ac_package}=no" ;; | |
418 | ||
419 | --x) | |
420 | # Obsolete; use --with-x. | |
421 | with_x=yes ;; | |
422 | ||
423 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
424 | | --x-incl | --x-inc | --x-in | --x-i) | |
425 | ac_prev=x_includes ;; | |
426 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
427 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
428 | x_includes="$ac_optarg" ;; | |
429 | ||
430 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
431 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
432 | ac_prev=x_libraries ;; | |
433 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
434 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
435 | x_libraries="$ac_optarg" ;; | |
436 | ||
437 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
438 | ;; | |
439 | ||
440 | *) | |
441 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
442 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
443 | fi | |
444 | if test "x$nonopt" != xNONE; then | |
445 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
446 | fi | |
447 | nonopt="$ac_option" | |
448 | ;; | |
449 | ||
450 | esac | |
451 | done | |
452 | ||
453 | if test -n "$ac_prev"; then | |
454 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
455 | fi | |
456 | ||
457 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
458 | ||
459 | # File descriptor usage: | |
460 | # 0 standard input | |
461 | # 1 file creation | |
462 | # 2 errors and warnings | |
463 | # 3 some systems may open it to /dev/tty | |
464 | # 4 used on the Kubota Titan | |
465 | # 6 checking for... messages and results | |
466 | # 5 compiler messages saved in config.log | |
467 | if test "$silent" = yes; then | |
468 | exec 6>/dev/null | |
469 | else | |
470 | exec 6>&1 | |
471 | fi | |
472 | exec 5>./config.log | |
473 | ||
474 | echo "\ | |
475 | This file contains any messages produced by compilers while | |
476 | running configure, to aid debugging if configure makes a mistake. | |
477 | " 1>&5 | |
478 | ||
479 | # Strip out --no-create and --no-recursion so they do not pile up. | |
480 | # Also quote any args containing shell metacharacters. | |
481 | ac_configure_args= | |
482 | for ac_arg | |
483 | do | |
484 | case "$ac_arg" in | |
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
486 | | --no-cr | --no-c) ;; | |
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
489 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
490 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
491 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
492 | esac | |
493 | done | |
494 | ||
495 | # NLS nuisances. | |
496 | # Only set these to C if already set. These must not be set unconditionally | |
497 | # because not all systems understand e.g. LANG=C (notably SCO). | |
498 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
499 | # Non-C LC_CTYPE values break the ctype check. | |
500 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
501 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
502 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
503 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
504 | ||
505 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
506 | rm -rf conftest* confdefs.h | |
507 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
508 | echo > confdefs.h | |
509 | ||
510 | # A filename unique to this package, relative to the directory that | |
511 | # configure is in, which we can look for to find out if srcdir is correct. | |
512 | ac_unique_file=tree.c | |
513 | ||
514 | # Find the source files, if location was not specified. | |
515 | if test -z "$srcdir"; then | |
516 | ac_srcdir_defaulted=yes | |
517 | # Try the directory containing this script, then its parent. | |
518 | ac_prog=$0 | |
519 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
520 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
521 | srcdir=$ac_confdir | |
522 | if test ! -r $srcdir/$ac_unique_file; then | |
523 | srcdir=.. | |
524 | fi | |
525 | else | |
526 | ac_srcdir_defaulted=no | |
527 | fi | |
528 | if test ! -r $srcdir/$ac_unique_file; then | |
529 | if test "$ac_srcdir_defaulted" = yes; then | |
530 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
531 | else | |
532 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
533 | fi | |
534 | fi | |
535 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
536 | ||
537 | # Prefer explicitly selected file to automatically selected ones. | |
7aae67a2 JM |
538 | if test -z "$CONFIG_SITE"; then |
539 | if test "x$prefix" != xNONE; then | |
540 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
541 | else | |
542 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
861bb6c1 JL |
543 | fi |
544 | fi | |
545 | for ac_site_file in $CONFIG_SITE; do | |
546 | if test -r "$ac_site_file"; then | |
547 | echo "loading site script $ac_site_file" | |
548 | . "$ac_site_file" | |
549 | fi | |
550 | done | |
551 | ||
552 | if test -r "$cache_file"; then | |
553 | echo "loading cache $cache_file" | |
554 | . $cache_file | |
555 | else | |
556 | echo "creating cache $cache_file" | |
557 | > $cache_file | |
558 | fi | |
559 | ||
560 | ac_ext=c | |
561 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
562 | ac_cpp='$CPP $CPPFLAGS' | |
563 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 564 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
565 | cross_compiling=$ac_cv_prog_cc_cross |
566 | ||
cd9e5e7c MK |
567 | ac_exeext= |
568 | ac_objext=o | |
861bb6c1 JL |
569 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
570 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
571 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
572 | ac_n= ac_c=' | |
573 | ' ac_t=' ' | |
574 | else | |
575 | ac_n=-n ac_c= ac_t= | |
576 | fi | |
577 | else | |
578 | ac_n= ac_c='\c' ac_t= | |
579 | fi | |
580 | ||
581 | ||
582 | ||
583 | ||
861bb6c1 JL |
584 | remove=rm |
585 | hard_link=ln | |
586 | symbolic_link='ln -s' | |
587 | copy=cp | |
588 | ||
75a39864 JL |
589 | # Check for bogus environment variables. |
590 | # Test if LIBRARY_PATH contains the notation for the current directory | |
591 | # since this would lead to problems installing/building glibc. | |
592 | # LIBRARY_PATH contains the current directory if one of the following | |
593 | # is true: | |
594 | # - one of the terminals (":" and ";") is the first or last sign | |
595 | # - two terminals occur directly after each other | |
596 | # - the path contains an element with a dot in it | |
597 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
7aae67a2 | 598 | echo "configure:599: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
599 | case ${LIBRARY_PATH} in |
600 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
601 | library_path_setting="contains current directory" | |
602 | ;; | |
603 | *) | |
604 | library_path_setting="ok" | |
605 | ;; | |
606 | esac | |
607 | echo "$ac_t""$library_path_setting" 1>&6 | |
608 | if test "$library_path_setting" != "ok"; then | |
609 | { echo "configure: error: | |
610 | *** LIBRARY_PATH shouldn't contain the current directory when | |
079bd08e | 611 | *** building gcc. Please change the environment variable |
75a39864 JL |
612 | *** and run configure again." 1>&2; exit 1; } |
613 | fi | |
614 | ||
615 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
616 | # since this would lead to problems installing/building glibc. | |
617 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
618 | # is true: | |
619 | # - one of the terminals (":" and ";") is the first or last sign | |
620 | # - two terminals occur directly after each other | |
621 | # - the path contains an element with a dot in it | |
622 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
7aae67a2 | 623 | echo "configure:624: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
624 | case ${GCC_EXEC_PREFIX} in |
625 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
626 | gcc_exec_prefix_setting="contains current directory" | |
627 | ;; | |
628 | *) | |
629 | gcc_exec_prefix_setting="ok" | |
630 | ;; | |
631 | esac | |
632 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
633 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
634 | { echo "configure: error: | |
635 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
079bd08e | 636 | *** building gcc. Please change the environment variable |
75a39864 JL |
637 | *** and run configure again." 1>&2; exit 1; } |
638 | fi | |
639 | ||
861bb6c1 JL |
640 | # Check for additional parameters |
641 | ||
642 | # With GNU ld | |
643 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
644 | if test "${with_gnu_ld+set}" = set; then | |
645 | withval="$with_gnu_ld" | |
df6faf79 | 646 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 647 | else |
df6faf79 | 648 | gnu_ld_flag=no |
861bb6c1 JL |
649 | fi |
650 | ||
651 | ||
ab339d62 AO |
652 | # With pre-defined ld |
653 | # Check whether --with-ld or --without-ld was given. | |
654 | if test "${with_ld+set}" = set; then | |
655 | withval="$with_ld" | |
3ccc3a56 | 656 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
657 | fi |
658 | ||
3ccc3a56 AO |
659 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
660 | if test ! -x "$DEFAULT_LINKER"; then | |
661 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
e154a394 | 662 | elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
663 | gnu_ld_flag=yes |
664 | fi | |
665 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 666 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
667 | EOF |
668 | ||
669 | fi | |
670 | ||
861bb6c1 JL |
671 | # With GNU as |
672 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
673 | if test "${with_gnu_as+set}" = set; then | |
674 | withval="$with_gnu_as" | |
df6faf79 | 675 | gas_flag="$with_gnu_as" |
861bb6c1 | 676 | else |
df6faf79 | 677 | gas_flag=no |
861bb6c1 JL |
678 | fi |
679 | ||
680 | ||
ab339d62 AO |
681 | # Check whether --with-as or --without-as was given. |
682 | if test "${with_as+set}" = set; then | |
683 | withval="$with_as" | |
3ccc3a56 | 684 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
685 | fi |
686 | ||
3ccc3a56 AO |
687 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
688 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
689 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
e154a394 | 690 | elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then |
ab339d62 AO |
691 | gas_flag=yes |
692 | fi | |
693 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 694 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
695 | EOF |
696 | ||
3ccc3a56 | 697 | fi |
ab339d62 | 698 | |
861bb6c1 JL |
699 | # With stabs |
700 | # Check whether --with-stabs or --without-stabs was given. | |
701 | if test "${with_stabs+set}" = set; then | |
702 | withval="$with_stabs" | |
535b86ce | 703 | stabs="$with_stabs" |
861bb6c1 JL |
704 | else |
705 | stabs=no | |
706 | fi | |
707 | ||
708 | ||
709 | # With ELF | |
710 | # Check whether --with-elf or --without-elf was given. | |
711 | if test "${with_elf+set}" = set; then | |
712 | withval="$with_elf" | |
535b86ce | 713 | elf="$with_elf" |
861bb6c1 JL |
714 | else |
715 | elf=no | |
716 | fi | |
717 | ||
718 | ||
719 | # Specify the local prefix | |
4e88d51b | 720 | local_prefix= |
861bb6c1 JL |
721 | # Check whether --with-local-prefix or --without-local-prefix was given. |
722 | if test "${with_local_prefix+set}" = set; then | |
723 | withval="$with_local_prefix" | |
4e88d51b JM |
724 | case "${withval}" in |
725 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
726 | no) ;; | |
727 | *) local_prefix=$with_local_prefix ;; | |
728 | esac | |
861bb6c1 JL |
729 | fi |
730 | ||
731 | ||
732 | # Default local prefix if it is empty | |
75bffa71 | 733 | if test x$local_prefix = x; then |
861bb6c1 JL |
734 | local_prefix=/usr/local |
735 | fi | |
736 | ||
8f8d3278 NC |
737 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
738 | # passed in by the toplevel make and thus we'd get different behavior | |
739 | # depending on where we built the sources. | |
740 | gcc_gxx_include_dir= | |
861bb6c1 JL |
741 | # Specify the g++ header file directory |
742 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
743 | if test "${with_gxx_include_dir+set}" = set; then | |
744 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
745 | case "${withval}" in |
746 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
747 | no) ;; | |
8f8d3278 | 748 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 749 | esac |
861bb6c1 JL |
750 | fi |
751 | ||
752 | ||
8f8d3278 | 753 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 754 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 755 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 756 | else |
a270b446 | 757 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 758 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
759 | fi |
760 | fi | |
761 | ||
a494747c MM |
762 | # Enable expensive internal checks |
763 | # Check whether --enable-checking or --disable-checking was given. | |
764 | if test "${enable_checking+set}" = set; then | |
765 | enableval="$enable_checking" | |
4e88d51b JM |
766 | case "${enableval}" in |
767 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
768 | #define ENABLE_CHECKING 1 |
769 | EOF | |
4e88d51b JM |
770 | ;; |
771 | no) ;; | |
772 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
773 | esac | |
a494747c MM |
774 | fi |
775 | ||
776 | ||
3ecc3258 ZW |
777 | # Check whether --enable-cpp or --disable-cpp was given. |
778 | if test "${enable_cpp+set}" = set; then | |
779 | enableval="$enable_cpp" | |
780 | : | |
781 | else | |
782 | enable_cpp=yes | |
783 | fi | |
784 | ||
785 | ||
786 | # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. | |
787 | if test "${with_cpp_install_dir+set}" = set; then | |
788 | withval="$with_cpp_install_dir" | |
789 | if test x$withval = xyes; then | |
790 | { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } | |
791 | elif test x$withval != xno; then | |
792 | cpp_install_dir=$withval | |
793 | fi | |
794 | fi | |
795 | ||
796 | ||
f81a440f | 797 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 798 | cpp_main=cccp |
f81a440f ZW |
799 | # Check whether --enable-cpplib or --disable-cpplib was given. |
800 | if test "${enable_cpplib+set}" = set; then | |
801 | enableval="$enable_cpplib" | |
802 | if test x$enable_cpplib != xno; then | |
803 | cpp_main=cppmain | |
804 | fi | |
805 | fi | |
806 | ||
807 | ||
808 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
809 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
810 | if test "${enable_c_cpplib+set}" = set; then | |
811 | enableval="$enable_c_cpplib" | |
75bffa71 | 812 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
813 | extra_c_objs="${extra_c_objs} libcpp.a" |
814 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 815 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 816 | cpp_main=cppmain |
861bb6c1 JL |
817 | fi |
818 | fi | |
819 | ||
f81a440f | 820 | |
0b9d02c6 JL |
821 | # Enable Multibyte Characters for C/C++ |
822 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
823 | if test "${enable_c_mbchar+set}" = set; then | |
824 | enableval="$enable_c_mbchar" | |
75bffa71 | 825 | if test x$enable_c_mbchar != xno; then |
0b9d02c6 JL |
826 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
827 | fi | |
828 | fi | |
829 | ||
76c8f855 BK |
830 | |
831 | # Disable fast fixincludes | |
832 | # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given. | |
833 | if test "${enable_fast_fixincludes+set}" = set; then | |
834 | enableval="$enable_fast_fixincludes" | |
835 | if test x$enable_fast_fixincludes = xno ; then | |
836 | cp $srcdir/fixincludes ./fixinc.sh | |
837 | fi | |
838 | fi | |
839 | ||
840 | ||
9101297d DL |
841 | # Enable Haifa scheduler. |
842 | # Check whether --enable-haifa or --disable-haifa was given. | |
843 | if test "${enable_haifa+set}" = set; then | |
844 | enableval="$enable_haifa" | |
845 | : | |
846 | fi | |
847 | ||
861bb6c1 JL |
848 | |
849 | # Enable threads | |
850 | # Pass with no value to take the default | |
851 | # Pass with a value to specify a thread package | |
852 | # Check whether --enable-threads or --disable-threads was given. | |
853 | if test "${enable_threads+set}" = set; then | |
854 | enableval="$enable_threads" | |
75bffa71 | 855 | if test x$enable_threads = xno; then |
861bb6c1 JL |
856 | enable_threads='' |
857 | fi | |
858 | else | |
859 | enable_threads='' | |
860 | fi | |
861 | ||
862 | ||
e445171e | 863 | enable_threads_flag=$enable_threads |
861bb6c1 | 864 | # Check if a valid thread package |
e445171e | 865 | case x${enable_threads_flag} in |
861bb6c1 JL |
866 | x | xno) |
867 | # No threads | |
a851212a | 868 | target_thread_file='single' |
861bb6c1 JL |
869 | ;; |
870 | xyes) | |
871 | # default | |
a851212a | 872 | target_thread_file='' |
861bb6c1 JL |
873 | ;; |
874 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 875 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 876 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
877 | ;; |
878 | *) | |
879 | echo "$enable_threads is an unknown thread package" 1>&2 | |
880 | exit 1 | |
881 | ;; | |
882 | esac | |
883 | ||
d8bb17c8 OP |
884 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
885 | if test "${enable_objc_gc+set}" = set; then | |
886 | enableval="$enable_objc_gc" | |
887 | if [ x$enable_objc_gc = xno ]; then | |
888 | objc_boehm_gc='' | |
889 | else | |
890 | objc_boehm_gc=1 | |
891 | fi | |
892 | else | |
893 | objc_boehm_gc='' | |
894 | fi | |
895 | ||
896 | ||
df37e3db TT |
897 | # Check whether --enable-java-gc or --disable-java-gc was given. |
898 | if test "${enable_java_gc+set}" = set; then | |
899 | enableval="$enable_java_gc" | |
900 | ||
901 | JAVAGC=$enableval | |
902 | else | |
903 | JAVAGC=boehm | |
904 | fi | |
905 | ||
906 | ||
90e6a802 RL |
907 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
908 | if test "${with_dwarf2+set}" = set; then | |
909 | withval="$with_dwarf2" | |
910 | dwarf2="$with_dwarf2" | |
911 | else | |
912 | dwarf2=no | |
913 | fi | |
914 | ||
915 | ||
861bb6c1 JL |
916 | # Determine the host, build, and target systems |
917 | ac_aux_dir= | |
918 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
919 | if test -f $ac_dir/install-sh; then | |
920 | ac_aux_dir=$ac_dir | |
921 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
922 | break | |
923 | elif 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 | fi | |
928 | done | |
929 | if test -z "$ac_aux_dir"; then | |
930 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
931 | fi | |
932 | ac_config_guess=$ac_aux_dir/config.guess | |
933 | ac_config_sub=$ac_aux_dir/config.sub | |
934 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
935 | ||
936 | ||
937 | # Do some error checking and defaulting for the host and target type. | |
938 | # The inputs are: | |
939 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
940 | # | |
941 | # The rules are: | |
942 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
943 | # same time. | |
944 | # 2. Host defaults to nonopt. | |
945 | # 3. If nonopt is not specified, then host defaults to the current host, | |
946 | # as determined by config.guess. | |
947 | # 4. Target and build default to nonopt. | |
948 | # 5. If nonopt is not specified, then target and build default to host. | |
949 | ||
950 | # The aliases save the names the user supplied, while $host etc. | |
951 | # will get canonicalized. | |
952 | case $host---$target---$nonopt in | |
953 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
954 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
955 | esac | |
956 | ||
957 | ||
958 | # Make sure we can run config.sub. | |
6f144c9c | 959 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
960 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
961 | fi | |
962 | ||
963 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
7aae67a2 | 964 | echo "configure:965: checking host system type" >&5 |
861bb6c1 JL |
965 | |
966 | host_alias=$host | |
967 | case "$host_alias" in | |
968 | NONE) | |
969 | case $nonopt in | |
970 | NONE) | |
6f144c9c | 971 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
972 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
973 | fi ;; | |
974 | *) host_alias=$nonopt ;; | |
975 | esac ;; | |
976 | esac | |
977 | ||
6f144c9c | 978 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
979 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
980 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
981 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
982 | echo "$ac_t""$host" 1>&6 | |
983 | ||
984 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
7aae67a2 | 985 | echo "configure:986: checking target system type" >&5 |
861bb6c1 JL |
986 | |
987 | target_alias=$target | |
988 | case "$target_alias" in | |
989 | NONE) | |
990 | case $nonopt in | |
991 | NONE) target_alias=$host_alias ;; | |
992 | *) target_alias=$nonopt ;; | |
993 | esac ;; | |
994 | esac | |
995 | ||
6f144c9c | 996 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
997 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
998 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
999 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1000 | echo "$ac_t""$target" 1>&6 | |
1001 | ||
1002 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
7aae67a2 | 1003 | echo "configure:1004: checking build system type" >&5 |
861bb6c1 JL |
1004 | |
1005 | build_alias=$build | |
1006 | case "$build_alias" in | |
1007 | NONE) | |
1008 | case $nonopt in | |
1009 | NONE) build_alias=$host_alias ;; | |
1010 | *) build_alias=$nonopt ;; | |
1011 | esac ;; | |
1012 | esac | |
1013 | ||
6f144c9c | 1014 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
1015 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1016 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1017 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1018 | echo "$ac_t""$build" 1>&6 | |
1019 | ||
1020 | test "$host_alias" != "$target_alias" && | |
1021 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1022 | NONENONEs,x,x, && | |
1023 | program_prefix=${target_alias}- | |
1024 | ||
1025 | ||
e9a25f70 JL |
1026 | # Find the native compiler |
1027 | # Extract the first word of "gcc", so it can be a program name with args. | |
1028 | set dummy gcc; ac_word=$2 | |
1029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1030 | echo "configure:1031: checking for $ac_word" >&5 |
e9a25f70 JL |
1031 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1033 | else | |
1034 | if test -n "$CC"; then | |
1035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1036 | else | |
cd9e5e7c | 1037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1038 | ac_dummy="$PATH" |
1039 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1040 | test -z "$ac_dir" && ac_dir=. |
1041 | if test -f $ac_dir/$ac_word; then | |
1042 | ac_cv_prog_CC="gcc" | |
1043 | break | |
1044 | fi | |
1045 | done | |
1046 | IFS="$ac_save_ifs" | |
1047 | fi | |
1048 | fi | |
1049 | CC="$ac_cv_prog_CC" | |
1050 | if test -n "$CC"; then | |
1051 | echo "$ac_t""$CC" 1>&6 | |
1052 | else | |
1053 | echo "$ac_t""no" 1>&6 | |
1054 | fi | |
1055 | ||
1056 | if test -z "$CC"; then | |
1057 | # Extract the first word of "cc", so it can be a program name with args. | |
1058 | set dummy cc; ac_word=$2 | |
1059 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1060 | echo "configure:1061: checking for $ac_word" >&5 |
e9a25f70 JL |
1061 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1063 | else | |
1064 | if test -n "$CC"; then | |
1065 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1066 | else | |
cd9e5e7c | 1067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1068 | ac_prog_rejected=no |
b27d2bd5 MK |
1069 | ac_dummy="$PATH" |
1070 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1071 | test -z "$ac_dir" && ac_dir=. |
1072 | if test -f $ac_dir/$ac_word; then | |
1073 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1074 | ac_prog_rejected=yes | |
1075 | continue | |
1076 | fi | |
1077 | ac_cv_prog_CC="cc" | |
1078 | break | |
1079 | fi | |
1080 | done | |
1081 | IFS="$ac_save_ifs" | |
1082 | if test $ac_prog_rejected = yes; then | |
1083 | # We found a bogon in the path, so make sure we never use it. | |
1084 | set dummy $ac_cv_prog_CC | |
1085 | shift | |
1086 | if test $# -gt 0; then | |
1087 | # We chose a different compiler from the bogus one. | |
1088 | # However, it has the same basename, so the bogon will be chosen | |
1089 | # first if we set CC to just the basename; use the full file name. | |
1090 | shift | |
1091 | set dummy "$ac_dir/$ac_word" "$@" | |
1092 | shift | |
1093 | ac_cv_prog_CC="$@" | |
1094 | fi | |
1095 | fi | |
1096 | fi | |
1097 | fi | |
1098 | CC="$ac_cv_prog_CC" | |
1099 | if test -n "$CC"; then | |
1100 | echo "$ac_t""$CC" 1>&6 | |
1101 | else | |
1102 | echo "$ac_t""no" 1>&6 | |
1103 | fi | |
1104 | ||
cd9e5e7c MK |
1105 | if test -z "$CC"; then |
1106 | case "`uname -s`" in | |
1107 | *win32* | *WIN32*) | |
1108 | # Extract the first word of "cl", so it can be a program name with args. | |
1109 | set dummy cl; ac_word=$2 | |
1110 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1111 | echo "configure:1112: checking for $ac_word" >&5 |
cd9e5e7c MK |
1112 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1114 | else | |
1115 | if test -n "$CC"; then | |
1116 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1117 | else | |
1118 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1119 | ac_dummy="$PATH" |
1120 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1121 | test -z "$ac_dir" && ac_dir=. |
1122 | if test -f $ac_dir/$ac_word; then | |
1123 | ac_cv_prog_CC="cl" | |
1124 | break | |
1125 | fi | |
1126 | done | |
1127 | IFS="$ac_save_ifs" | |
1128 | fi | |
1129 | fi | |
1130 | CC="$ac_cv_prog_CC" | |
1131 | if test -n "$CC"; then | |
1132 | echo "$ac_t""$CC" 1>&6 | |
1133 | else | |
1134 | echo "$ac_t""no" 1>&6 | |
1135 | fi | |
1136 | ;; | |
1137 | esac | |
1138 | fi | |
e9a25f70 JL |
1139 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1140 | fi | |
1141 | ||
1142 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
7aae67a2 | 1143 | echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1144 | |
1145 | ac_ext=c | |
1146 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1147 | ac_cpp='$CPP $CPPFLAGS' | |
1148 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1149 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1150 | cross_compiling=$ac_cv_prog_cc_cross |
1151 | ||
b27d2bd5 MK |
1152 | cat > conftest.$ac_ext << EOF |
1153 | ||
7aae67a2 | 1154 | #line 1155 "configure" |
e9a25f70 | 1155 | #include "confdefs.h" |
b27d2bd5 | 1156 | |
e9a25f70 JL |
1157 | main(){return(0);} |
1158 | EOF | |
7aae67a2 | 1159 | if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1160 | ac_cv_prog_cc_works=yes |
1161 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1162 | if (./conftest; exit) 2>/dev/null; then | |
1163 | ac_cv_prog_cc_cross=no | |
1164 | else | |
1165 | ac_cv_prog_cc_cross=yes | |
1166 | fi | |
1167 | else | |
1168 | echo "configure: failed program was:" >&5 | |
1169 | cat conftest.$ac_ext >&5 | |
1170 | ac_cv_prog_cc_works=no | |
1171 | fi | |
1172 | rm -fr conftest* | |
b27d2bd5 MK |
1173 | ac_ext=c |
1174 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1175 | ac_cpp='$CPP $CPPFLAGS' | |
1176 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1177 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1178 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1179 | |
1180 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1181 | if test $ac_cv_prog_cc_works = no; then | |
1182 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1183 | fi | |
1184 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
7aae67a2 | 1185 | echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1186 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1187 | cross_compiling=$ac_cv_prog_cc_cross | |
1188 | ||
1189 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
7aae67a2 | 1190 | echo "configure:1191: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1191 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1193 | else | |
1194 | cat > conftest.c <<EOF | |
1195 | #ifdef __GNUC__ | |
1196 | yes; | |
1197 | #endif | |
1198 | EOF | |
7aae67a2 | 1199 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1200 | ac_cv_prog_gcc=yes |
1201 | else | |
1202 | ac_cv_prog_gcc=no | |
1203 | fi | |
1204 | fi | |
1205 | ||
1206 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1207 | ||
1208 | if test $ac_cv_prog_gcc = yes; then | |
1209 | GCC=yes | |
cd9e5e7c MK |
1210 | else |
1211 | GCC= | |
1212 | fi | |
1213 | ||
1214 | ac_test_CFLAGS="${CFLAGS+set}" | |
1215 | ac_save_CFLAGS="$CFLAGS" | |
1216 | CFLAGS= | |
1217 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
7aae67a2 | 1218 | echo "configure:1219: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1219 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1221 | else | |
1222 | echo 'void f(){}' > conftest.c | |
1223 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1224 | ac_cv_prog_cc_g=yes | |
1225 | else | |
1226 | ac_cv_prog_cc_g=no | |
1227 | fi | |
1228 | rm -f conftest* | |
1229 | ||
1230 | fi | |
1231 | ||
1232 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1233 | if test "$ac_test_CFLAGS" = set; then |
1234 | CFLAGS="$ac_save_CFLAGS" | |
1235 | elif test $ac_cv_prog_cc_g = yes; then | |
1236 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1237 | CFLAGS="-g -O2" |
1238 | else | |
cd9e5e7c | 1239 | CFLAGS="-g" |
81814e35 | 1240 | fi |
3723cad9 | 1241 | else |
cd9e5e7c MK |
1242 | if test "$GCC" = yes; then |
1243 | CFLAGS="-O2" | |
1244 | else | |
1245 | CFLAGS= | |
1246 | fi | |
e9a25f70 JL |
1247 | fi |
1248 | ||
61842080 MM |
1249 | |
1250 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1251 | # That's useful for people building cross-compilers, or just running a | |
1252 | # quick `make'. | |
1253 | if test "x$GCC" = "xyes"; then | |
1254 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1255 | else | |
1256 | stage1_warn_cflags="" | |
1257 | fi | |
1258 | ||
1259 | ||
e9a25f70 | 1260 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
7aae67a2 | 1261 | echo "configure:1262: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1262 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1263 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1265 | else | |
1266 | cat > conftestmake <<\EOF | |
1267 | all: | |
1268 | @echo 'ac_maketemp="${MAKE}"' | |
1269 | EOF | |
1270 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1271 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1272 | if test -n "$ac_maketemp"; then | |
1273 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1274 | else | |
1275 | eval ac_cv_prog_make_${ac_make}_set=no | |
1276 | fi | |
1277 | rm -f conftestmake | |
1278 | fi | |
1279 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1280 | echo "$ac_t""yes" 1>&6 | |
1281 | SET_MAKE= | |
1282 | else | |
1283 | echo "$ac_t""no" 1>&6 | |
1284 | SET_MAKE="MAKE=${MAKE-make}" | |
1285 | fi | |
1286 | ||
1287 | ||
ab339d62 | 1288 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
7aae67a2 | 1289 | echo "configure:1290: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1290 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
e154a394 | 1291 | if test x"$gas_flag" = x"no"; then |
3ccc3a56 | 1292 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1293 | else |
3ccc3a56 | 1294 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1295 | fi |
1296 | else | |
1297 | echo "$ac_t""no" 1>&6 | |
1298 | fi | |
1299 | ||
1300 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
7aae67a2 | 1301 | echo "configure:1302: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1302 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
e154a394 | 1303 | if test x"$gnu_ld_flag" = x"no"; then |
3ccc3a56 | 1304 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1305 | else |
3ccc3a56 | 1306 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1307 | fi |
1308 | else | |
1309 | echo "$ac_t""no" 1>&6 | |
1310 | fi | |
1311 | ||
861bb6c1 | 1312 | # Find some useful tools |
30f08b39 | 1313 | for ac_prog in mawk gawk nawk awk |
861bb6c1 JL |
1314 | do |
1315 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1316 | set dummy $ac_prog; ac_word=$2 | |
1317 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1318 | echo "configure:1319: checking for $ac_word" >&5 |
861bb6c1 JL |
1319 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1321 | else | |
1322 | if test -n "$AWK"; then | |
1323 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1324 | else | |
cd9e5e7c | 1325 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1326 | ac_dummy="$PATH" |
1327 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1328 | test -z "$ac_dir" && ac_dir=. |
1329 | if test -f $ac_dir/$ac_word; then | |
1330 | ac_cv_prog_AWK="$ac_prog" | |
1331 | break | |
1332 | fi | |
1333 | done | |
1334 | IFS="$ac_save_ifs" | |
1335 | fi | |
1336 | fi | |
1337 | AWK="$ac_cv_prog_AWK" | |
1338 | if test -n "$AWK"; then | |
1339 | echo "$ac_t""$AWK" 1>&6 | |
1340 | else | |
1341 | echo "$ac_t""no" 1>&6 | |
1342 | fi | |
1343 | ||
1344 | test -n "$AWK" && break | |
1345 | done | |
1346 | ||
1347 | # Extract the first word of "flex", so it can be a program name with args. | |
1348 | set dummy flex; ac_word=$2 | |
1349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1350 | echo "configure:1351: checking for $ac_word" >&5 |
861bb6c1 JL |
1351 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1353 | else | |
1354 | if test -n "$LEX"; then | |
1355 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1356 | else | |
cd9e5e7c | 1357 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1358 | ac_dummy="$PATH" |
1359 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1360 | test -z "$ac_dir" && ac_dir=. |
1361 | if test -f $ac_dir/$ac_word; then | |
1362 | ac_cv_prog_LEX="flex" | |
1363 | break | |
1364 | fi | |
1365 | done | |
1366 | IFS="$ac_save_ifs" | |
1367 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1368 | fi | |
1369 | fi | |
1370 | LEX="$ac_cv_prog_LEX" | |
1371 | if test -n "$LEX"; then | |
1372 | echo "$ac_t""$LEX" 1>&6 | |
1373 | else | |
1374 | echo "$ac_t""no" 1>&6 | |
1375 | fi | |
1376 | ||
1377 | if test -z "$LEXLIB" | |
1378 | then | |
1379 | case "$LEX" in | |
1380 | flex*) ac_lib=fl ;; | |
1381 | *) ac_lib=l ;; | |
1382 | esac | |
1383 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
7aae67a2 | 1384 | echo "configure:1385: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1385 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1388 | else | |
1389 | ac_save_LIBS="$LIBS" | |
1390 | LIBS="-l$ac_lib $LIBS" | |
1391 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1392 | #line 1393 "configure" |
861bb6c1 JL |
1393 | #include "confdefs.h" |
1394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1395 | /* We use char because int might match the return type of a gcc2 | |
1396 | builtin and then its argument prototype would still apply. */ | |
1397 | char yywrap(); | |
1398 | ||
1399 | int main() { | |
1400 | yywrap() | |
1401 | ; return 0; } | |
1402 | EOF | |
7aae67a2 | 1403 | if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1404 | rm -rf conftest* |
1405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1406 | else | |
1407 | echo "configure: failed program was:" >&5 | |
1408 | cat conftest.$ac_ext >&5 | |
1409 | rm -rf conftest* | |
1410 | eval "ac_cv_lib_$ac_lib_var=no" | |
1411 | fi | |
1412 | rm -f conftest* | |
1413 | LIBS="$ac_save_LIBS" | |
1414 | ||
1415 | fi | |
1416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1417 | echo "$ac_t""yes" 1>&6 | |
1418 | LEXLIB="-l$ac_lib" | |
1419 | else | |
1420 | echo "$ac_t""no" 1>&6 | |
1421 | fi | |
1422 | ||
1423 | fi | |
1424 | ||
0a4b6309 | 1425 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
7aae67a2 | 1426 | echo "configure:1427: checking whether ln works" >&5 |
0a4b6309 RL |
1427 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1429 | else | |
1430 | rm -f conftestdata_t | |
1431 | echo >conftestdata_f | |
1432 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1433 | then | |
1434 | gcc_cv_prog_LN="ln" | |
1435 | else | |
1436 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1437 | then | |
1438 | gcc_cv_prog_LN="ln -s" | |
1439 | else | |
1440 | gcc_cv_prog_LN=cp | |
1441 | fi | |
1442 | fi | |
1443 | rm -f conftestdata_f conftestdata_t | |
1444 | ||
1445 | fi | |
1446 | LN="$gcc_cv_prog_LN" | |
1447 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1448 | echo "$ac_t""yes" 1>&6 | |
1449 | else | |
1450 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1451 | echo "$ac_t""no, using ln -s" 1>&6 | |
1452 | else | |
1453 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1454 | fi | |
1455 | fi | |
1456 | ||
1457 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
7aae67a2 | 1458 | echo "configure:1459: checking whether ln -s works" >&5 |
0a4b6309 RL |
1459 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1461 | else | |
1462 | rm -f conftestdata_t | |
1463 | echo >conftestdata_f | |
1464 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1465 | then | |
1466 | gcc_cv_prog_LN_S="ln -s" | |
1467 | else | |
1468 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1469 | then | |
1470 | gcc_cv_prog_LN_S=ln | |
1471 | else | |
1472 | gcc_cv_prog_LN_S=cp | |
1473 | fi | |
1474 | fi | |
1475 | rm -f conftestdata_f conftestdata_t | |
1476 | ||
1477 | fi | |
1478 | LN_S="$gcc_cv_prog_LN_S" | |
1479 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1480 | echo "$ac_t""yes" 1>&6 | |
1481 | else | |
1482 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1483 | echo "$ac_t""no, using ln" 1>&6 | |
1484 | else | |
1485 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1486 | fi | |
1487 | fi | |
1488 | ||
1489 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
7aae67a2 | 1490 | echo "configure:1491: checking for volatile" >&5 |
0a4b6309 RL |
1491 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1492 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1493 | else | |
1494 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1495 | #line 1496 "configure" |
0a4b6309 RL |
1496 | #include "confdefs.h" |
1497 | ||
1498 | int main() { | |
1499 | volatile int foo; | |
1500 | ; return 0; } | |
1501 | EOF | |
7aae67a2 | 1502 | if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1503 | rm -rf conftest* |
1504 | gcc_cv_c_volatile=yes | |
1505 | else | |
1506 | echo "configure: failed program was:" >&5 | |
1507 | cat conftest.$ac_ext >&5 | |
1508 | rm -rf conftest* | |
1509 | gcc_cv_c_volatile=no | |
1510 | fi | |
1511 | rm -f conftest* | |
1512 | fi | |
1513 | ||
1514 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1515 | if test $gcc_cv_c_volatile = yes ; then | |
1516 | cat >> confdefs.h <<\EOF | |
1517 | #define HAVE_VOLATILE 1 | |
1518 | EOF | |
1519 | ||
1520 | fi | |
1521 | ||
861bb6c1 JL |
1522 | # Extract the first word of "ranlib", so it can be a program name with args. |
1523 | set dummy ranlib; ac_word=$2 | |
1524 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1525 | echo "configure:1526: checking for $ac_word" >&5 |
861bb6c1 JL |
1526 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1528 | else | |
1529 | if test -n "$RANLIB"; then | |
1530 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1531 | else | |
cd9e5e7c | 1532 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1533 | ac_dummy="$PATH" |
1534 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1535 | test -z "$ac_dir" && ac_dir=. |
1536 | if test -f $ac_dir/$ac_word; then | |
1537 | ac_cv_prog_RANLIB="ranlib" | |
1538 | break | |
1539 | fi | |
1540 | done | |
1541 | IFS="$ac_save_ifs" | |
1542 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1543 | fi | |
1544 | fi | |
1545 | RANLIB="$ac_cv_prog_RANLIB" | |
1546 | if test -n "$RANLIB"; then | |
1547 | echo "$ac_t""$RANLIB" 1>&6 | |
1548 | else | |
1549 | echo "$ac_t""no" 1>&6 | |
1550 | fi | |
1551 | ||
1552 | for ac_prog in 'bison -y' byacc | |
1553 | do | |
1554 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1555 | set dummy $ac_prog; ac_word=$2 | |
1556 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 1557 | echo "configure:1558: checking for $ac_word" >&5 |
861bb6c1 JL |
1558 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1560 | else | |
1561 | if test -n "$YACC"; then | |
1562 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1563 | else | |
cd9e5e7c | 1564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1565 | ac_dummy="$PATH" |
1566 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1567 | test -z "$ac_dir" && ac_dir=. |
1568 | if test -f $ac_dir/$ac_word; then | |
1569 | ac_cv_prog_YACC="$ac_prog" | |
1570 | break | |
1571 | fi | |
1572 | done | |
1573 | IFS="$ac_save_ifs" | |
1574 | fi | |
1575 | fi | |
1576 | YACC="$ac_cv_prog_YACC" | |
1577 | if test -n "$YACC"; then | |
1578 | echo "$ac_t""$YACC" 1>&6 | |
1579 | else | |
1580 | echo "$ac_t""no" 1>&6 | |
1581 | fi | |
1582 | ||
1583 | test -n "$YACC" && break | |
1584 | done | |
1585 | test -n "$YACC" || YACC="yacc" | |
1586 | ||
0a4b6309 RL |
1587 | # Find a good install program. We prefer a C program (faster), |
1588 | # so one script is as good as another. But avoid the broken or | |
1589 | # incompatible versions: | |
1590 | # SysV /etc/install, /usr/sbin/install | |
1591 | # SunOS /usr/etc/install | |
1592 | # IRIX /sbin/install | |
1593 | # AIX /bin/install | |
1594 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1595 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1596 | # ./install, which can be erroneously created by make from ./install.sh. | |
1597 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
7aae67a2 | 1598 | echo "configure:1599: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1599 | if test -z "$INSTALL"; then |
1600 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1602 | else | |
1603 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1604 | for ac_dir in $PATH; do | |
1605 | # Account for people who put trailing slashes in PATH elements. | |
1606 | case "$ac_dir/" in | |
1607 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1608 | *) | |
1609 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1610 | for ac_prog in ginstall scoinst install; do | |
1611 | if test -f $ac_dir/$ac_prog; then | |
1612 | if test $ac_prog = install && | |
1613 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1614 | # AIX install. It has an incompatible calling convention. | |
1615 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1616 | : | |
1617 | else | |
1618 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1619 | break 2 | |
1620 | fi | |
1621 | fi | |
1622 | done | |
1623 | ;; | |
1624 | esac | |
1625 | done | |
1626 | IFS="$ac_save_IFS" | |
1627 | ||
1628 | fi | |
1629 | if test "${ac_cv_path_install+set}" = set; then | |
1630 | INSTALL="$ac_cv_path_install" | |
1631 | else | |
1632 | # As a last resort, use the slow shell script. We don't cache a | |
1633 | # path for INSTALL within a source directory, because that will | |
1634 | # break other packages using the cache if that directory is | |
1635 | # removed, or if the path is relative. | |
1636 | INSTALL="$ac_install_sh" | |
1637 | fi | |
1638 | fi | |
1639 | echo "$ac_t""$INSTALL" 1>&6 | |
1640 | ||
1641 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1642 | # It thinks the first close brace ends the variable substitution. | |
1643 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1644 | ||
1645 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1646 | ||
861bb6c1 | 1647 | |
861bb6c1 | 1648 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
7aae67a2 | 1649 | echo "configure:1650: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1650 | # On Suns, sometimes $CPP names a directory. |
1651 | if test -n "$CPP" && test -d "$CPP"; then | |
1652 | CPP= | |
1653 | fi | |
1654 | if test -z "$CPP"; then | |
1655 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1657 | else | |
1658 | # This must be in double quotes, not single quotes, because CPP may get | |
1659 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1660 | CPP="${CC-cc} -E" | |
1661 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1662 | # not just through cpp. | |
1663 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1664 | #line 1665 "configure" |
861bb6c1 JL |
1665 | #include "confdefs.h" |
1666 | #include <assert.h> | |
1667 | Syntax Error | |
1668 | EOF | |
1669 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 1670 | { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1671 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1672 | if test -z "$ac_err"; then |
1673 | : | |
1674 | else | |
1675 | echo "$ac_err" >&5 | |
1676 | echo "configure: failed program was:" >&5 | |
1677 | cat conftest.$ac_ext >&5 | |
1678 | rm -rf conftest* | |
1679 | CPP="${CC-cc} -E -traditional-cpp" | |
1680 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1681 | #line 1682 "configure" |
cd9e5e7c MK |
1682 | #include "confdefs.h" |
1683 | #include <assert.h> | |
1684 | Syntax Error | |
1685 | EOF | |
1686 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 1687 | { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1688 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1689 | if test -z "$ac_err"; then | |
1690 | : | |
1691 | else | |
1692 | echo "$ac_err" >&5 | |
1693 | echo "configure: failed program was:" >&5 | |
1694 | cat conftest.$ac_ext >&5 | |
1695 | rm -rf conftest* | |
1696 | CPP="${CC-cc} -nologo -E" | |
1697 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1698 | #line 1699 "configure" |
20fced2c MM |
1699 | #include "confdefs.h" |
1700 | #include <assert.h> | |
1701 | Syntax Error | |
1702 | EOF | |
1703 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 1704 | { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1705 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1706 | if test -z "$ac_err"; then |
1707 | : | |
1708 | else | |
1709 | echo "$ac_err" >&5 | |
1710 | echo "configure: failed program was:" >&5 | |
1711 | cat conftest.$ac_ext >&5 | |
1712 | rm -rf conftest* | |
1713 | CPP=/lib/cpp | |
1714 | fi | |
1715 | rm -f conftest* | |
1716 | fi | |
cd9e5e7c MK |
1717 | rm -f conftest* |
1718 | fi | |
861bb6c1 JL |
1719 | rm -f conftest* |
1720 | ac_cv_prog_CPP="$CPP" | |
1721 | fi | |
1722 | CPP="$ac_cv_prog_CPP" | |
1723 | else | |
1724 | ac_cv_prog_CPP="$CPP" | |
1725 | fi | |
1726 | echo "$ac_t""$CPP" 1>&6 | |
1727 | ||
956d6950 | 1728 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
7aae67a2 | 1729 | echo "configure:1730: checking for ANSI C header files" >&5 |
956d6950 JL |
1730 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1732 | else | |
1733 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1734 | #line 1735 "configure" |
956d6950 JL |
1735 | #include "confdefs.h" |
1736 | #include <stdlib.h> | |
1737 | #include <stdarg.h> | |
1738 | #include <string.h> | |
1739 | #include <float.h> | |
1740 | EOF | |
1741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 1742 | { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1744 | if test -z "$ac_err"; then |
1745 | rm -rf conftest* | |
1746 | ac_cv_header_stdc=yes | |
1747 | else | |
1748 | echo "$ac_err" >&5 | |
1749 | echo "configure: failed program was:" >&5 | |
1750 | cat conftest.$ac_ext >&5 | |
1751 | rm -rf conftest* | |
1752 | ac_cv_header_stdc=no | |
1753 | fi | |
1754 | rm -f conftest* | |
1755 | ||
1756 | if test $ac_cv_header_stdc = yes; then | |
1757 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1758 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1759 | #line 1760 "configure" |
956d6950 JL |
1760 | #include "confdefs.h" |
1761 | #include <string.h> | |
1762 | EOF | |
1763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1764 | egrep "memchr" >/dev/null 2>&1; then | |
1765 | : | |
1766 | else | |
1767 | rm -rf conftest* | |
1768 | ac_cv_header_stdc=no | |
1769 | fi | |
1770 | rm -f conftest* | |
1771 | ||
1772 | fi | |
1773 | ||
1774 | if test $ac_cv_header_stdc = yes; then | |
1775 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1776 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1777 | #line 1778 "configure" |
956d6950 JL |
1778 | #include "confdefs.h" |
1779 | #include <stdlib.h> | |
1780 | EOF | |
1781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1782 | egrep "free" >/dev/null 2>&1; then | |
1783 | : | |
1784 | else | |
1785 | rm -rf conftest* | |
1786 | ac_cv_header_stdc=no | |
1787 | fi | |
1788 | rm -f conftest* | |
1789 | ||
1790 | fi | |
1791 | ||
1792 | if test $ac_cv_header_stdc = yes; then | |
1793 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1794 | if test "$cross_compiling" = yes; then | |
1795 | : | |
1796 | else | |
1797 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1798 | #line 1799 "configure" |
956d6950 JL |
1799 | #include "confdefs.h" |
1800 | #include <ctype.h> | |
1801 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1802 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1803 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1804 | int main () { int i; for (i = 0; i < 256; i++) | |
1805 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1806 | exit (0); } | |
1807 | ||
1808 | EOF | |
7aae67a2 | 1809 | if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1810 | then |
1811 | : | |
1812 | else | |
1813 | echo "configure: failed program was:" >&5 | |
1814 | cat conftest.$ac_ext >&5 | |
1815 | rm -fr conftest* | |
1816 | ac_cv_header_stdc=no | |
1817 | fi | |
1818 | rm -fr conftest* | |
1819 | fi | |
1820 | ||
1821 | fi | |
1822 | fi | |
1823 | ||
1824 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1825 | if test $ac_cv_header_stdc = yes; then | |
1826 | cat >> confdefs.h <<\EOF | |
1827 | #define STDC_HEADERS 1 | |
1828 | EOF | |
1829 | ||
1830 | fi | |
1831 | ||
1832 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
7aae67a2 | 1833 | echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1834 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1836 | else | |
1837 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1838 | #line 1839 "configure" |
956d6950 JL |
1839 | #include "confdefs.h" |
1840 | #include <sys/types.h> | |
1841 | #include <sys/time.h> | |
1842 | #include <time.h> | |
1843 | int main() { | |
1844 | struct tm *tp; | |
1845 | ; return 0; } | |
1846 | EOF | |
7aae67a2 | 1847 | if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1848 | rm -rf conftest* |
1849 | ac_cv_header_time=yes | |
1850 | else | |
1851 | echo "configure: failed program was:" >&5 | |
1852 | cat conftest.$ac_ext >&5 | |
1853 | rm -rf conftest* | |
1854 | ac_cv_header_time=no | |
1855 | fi | |
1856 | rm -f conftest* | |
1857 | fi | |
1858 | ||
1859 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1860 | if test $ac_cv_header_time = yes; then | |
1861 | cat >> confdefs.h <<\EOF | |
1862 | #define TIME_WITH_SYS_TIME 1 | |
1863 | EOF | |
1864 | ||
1865 | fi | |
1866 | ||
0a4b6309 | 1867 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
7aae67a2 | 1868 | echo "configure:1869: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1869 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1871 | else | |
1872 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1873 | #line 1874 "configure" |
0a4b6309 RL |
1874 | #include "confdefs.h" |
1875 | #include <string.h> | |
1876 | #include <strings.h> | |
1877 | int main() { | |
1878 | ||
1879 | ; return 0; } | |
1880 | EOF | |
7aae67a2 | 1881 | if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1882 | rm -rf conftest* |
1883 | gcc_cv_header_string=yes | |
1884 | else | |
1885 | echo "configure: failed program was:" >&5 | |
1886 | cat conftest.$ac_ext >&5 | |
1887 | rm -rf conftest* | |
1888 | gcc_cv_header_string=no | |
1889 | fi | |
1890 | rm -f conftest* | |
1891 | fi | |
1892 | ||
1893 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1894 | if test $gcc_cv_header_string = yes; then | |
1895 | cat >> confdefs.h <<\EOF | |
1896 | #define STRING_WITH_STRINGS 1 | |
1897 | EOF | |
1898 | ||
1899 | fi | |
1900 | ||
e9831ca0 | 1901 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
7aae67a2 | 1902 | echo "configure:1903: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1903 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1905 | else | |
1906 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1907 | #line 1908 "configure" |
e9831ca0 KG |
1908 | #include "confdefs.h" |
1909 | #include <sys/types.h> | |
1910 | #include <sys/wait.h> | |
1911 | #ifndef WEXITSTATUS | |
1912 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1913 | #endif | |
1914 | #ifndef WIFEXITED | |
1915 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1916 | #endif | |
1917 | int main() { | |
1918 | int s; | |
1919 | wait (&s); | |
1920 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1921 | ; return 0; } | |
1922 | EOF | |
7aae67a2 | 1923 | if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1924 | rm -rf conftest* |
1925 | ac_cv_header_sys_wait_h=yes | |
1926 | else | |
1927 | echo "configure: failed program was:" >&5 | |
1928 | cat conftest.$ac_ext >&5 | |
1929 | rm -rf conftest* | |
1930 | ac_cv_header_sys_wait_h=no | |
1931 | fi | |
1932 | rm -f conftest* | |
1933 | fi | |
1934 | ||
1935 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1936 | if test $ac_cv_header_sys_wait_h = yes; then | |
1937 | cat >> confdefs.h <<\EOF | |
1938 | #define HAVE_SYS_WAIT_H 1 | |
1939 | EOF | |
1940 | ||
1941 | fi | |
1942 | ||
75923b2f | 1943 | for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h direct.h |
861bb6c1 JL |
1944 | do |
1945 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1946 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7aae67a2 | 1947 | echo "configure:1948: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1948 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1950 | else | |
1951 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1952 | #line 1953 "configure" |
861bb6c1 JL |
1953 | #include "confdefs.h" |
1954 | #include <$ac_hdr> | |
1955 | EOF | |
956d6950 | 1956 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7aae67a2 | 1957 | { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1958 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1959 | if test -z "$ac_err"; then |
1960 | rm -rf conftest* | |
1961 | eval "ac_cv_header_$ac_safe=yes" | |
1962 | else | |
1963 | echo "$ac_err" >&5 | |
1964 | echo "configure: failed program was:" >&5 | |
1965 | cat conftest.$ac_ext >&5 | |
1966 | rm -rf conftest* | |
1967 | eval "ac_cv_header_$ac_safe=no" | |
1968 | fi | |
1969 | rm -f conftest* | |
1970 | fi | |
1971 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1972 | echo "$ac_t""yes" 1>&6 | |
1973 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1974 | cat >> confdefs.h <<EOF | |
1975 | #define $ac_tr_hdr 1 | |
1976 | EOF | |
1977 | ||
1978 | else | |
1979 | echo "$ac_t""no" 1>&6 | |
1980 | fi | |
1981 | done | |
1982 | ||
1983 | ||
f24af81b TT |
1984 | # Check for thread headers. |
1985 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1986 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
7aae67a2 | 1987 | echo "configure:1988: checking for thread.h" >&5 |
f24af81b TT |
1988 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1990 | else | |
1991 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 1992 | #line 1993 "configure" |
f24af81b TT |
1993 | #include "confdefs.h" |
1994 | #include <thread.h> | |
1995 | EOF | |
1996 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 1997 | { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1998 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
1999 | if test -z "$ac_err"; then |
2000 | rm -rf conftest* | |
2001 | eval "ac_cv_header_$ac_safe=yes" | |
2002 | else | |
2003 | echo "$ac_err" >&5 | |
2004 | echo "configure: failed program was:" >&5 | |
2005 | cat conftest.$ac_ext >&5 | |
2006 | rm -rf conftest* | |
2007 | eval "ac_cv_header_$ac_safe=no" | |
2008 | fi | |
2009 | rm -f conftest* | |
2010 | fi | |
2011 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2012 | echo "$ac_t""yes" 1>&6 | |
2013 | have_thread_h=yes | |
2014 | else | |
2015 | echo "$ac_t""no" 1>&6 | |
2016 | have_thread_h= | |
2017 | fi | |
2018 | ||
2019 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
2020 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
7aae67a2 | 2021 | echo "configure:2022: checking for pthread.h" >&5 |
f24af81b TT |
2022 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2024 | else | |
2025 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2026 | #line 2027 "configure" |
f24af81b TT |
2027 | #include "confdefs.h" |
2028 | #include <pthread.h> | |
2029 | EOF | |
2030 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 2031 | { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2032 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2033 | if test -z "$ac_err"; then |
2034 | rm -rf conftest* | |
2035 | eval "ac_cv_header_$ac_safe=yes" | |
2036 | else | |
2037 | echo "$ac_err" >&5 | |
2038 | echo "configure: failed program was:" >&5 | |
2039 | cat conftest.$ac_ext >&5 | |
2040 | rm -rf conftest* | |
2041 | eval "ac_cv_header_$ac_safe=no" | |
2042 | fi | |
2043 | rm -f conftest* | |
2044 | fi | |
2045 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2046 | echo "$ac_t""yes" 1>&6 | |
2047 | have_pthread_h=yes | |
2048 | else | |
2049 | echo "$ac_t""no" 1>&6 | |
2050 | have_pthread_h= | |
2051 | fi | |
2052 | ||
2053 | ||
bcf12124 JL |
2054 | # See if GNAT has been installed |
2055 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2056 | set dummy gnatbind; ac_word=$2 | |
2057 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 2058 | echo "configure:2059: checking for $ac_word" >&5 |
bcf12124 JL |
2059 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2061 | else | |
2062 | if test -n "$gnat"; then | |
2063 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2064 | else | |
cd9e5e7c | 2065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2066 | ac_dummy="$PATH" |
2067 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2068 | test -z "$ac_dir" && ac_dir=. |
2069 | if test -f $ac_dir/$ac_word; then | |
2070 | ac_cv_prog_gnat="yes" | |
2071 | break | |
2072 | fi | |
2073 | done | |
2074 | IFS="$ac_save_ifs" | |
2075 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2076 | fi | |
2077 | fi | |
2078 | gnat="$ac_cv_prog_gnat" | |
2079 | if test -n "$gnat"; then | |
2080 | echo "$ac_t""$gnat" 1>&6 | |
2081 | else | |
2082 | echo "$ac_t""no" 1>&6 | |
2083 | fi | |
2084 | ||
2085 | ||
76844337 RH |
2086 | # See if the system preprocessor understands the ANSI C preprocessor |
2087 | # stringification operator. | |
2088 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
7aae67a2 | 2089 | echo "configure:2090: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
2090 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
2091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2092 | else | |
2093 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2094 | #line 2095 "configure" |
76844337 RH |
2095 | #include "confdefs.h" |
2096 | ||
2097 | int main() { | |
2098 | #define S(x) #x | |
2099 | char *test = S(foo); | |
2100 | ; return 0; } | |
2101 | EOF | |
7aae67a2 | 2102 | if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
2103 | rm -rf conftest* |
2104 | gcc_cv_c_have_stringify=yes | |
2105 | else | |
2106 | echo "configure: failed program was:" >&5 | |
2107 | cat conftest.$ac_ext >&5 | |
2108 | rm -rf conftest* | |
2109 | gcc_cv_c_have_stringify=no | |
2110 | fi | |
2111 | rm -f conftest* | |
2112 | fi | |
2113 | ||
2114 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
2115 | if test $gcc_cv_c_have_stringify = yes; then | |
2116 | cat >> confdefs.h <<\EOF | |
2117 | #define HAVE_CPP_STRINGIFY 1 | |
2118 | EOF | |
2119 | ||
2120 | fi | |
2121 | ||
956d6950 JL |
2122 | # Use <inttypes.h> only if it exists, |
2123 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2124 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
7aae67a2 | 2125 | echo "configure:2126: checking for inttypes.h" >&5 |
956d6950 JL |
2126 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2128 | else | |
2129 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2130 | #line 2131 "configure" |
956d6950 JL |
2131 | #include "confdefs.h" |
2132 | #include <sys/types.h> | |
2133 | #include <inttypes.h> | |
2134 | int main() { | |
2135 | intmax_t i = -1; | |
2136 | ; return 0; } | |
2137 | EOF | |
7aae67a2 | 2138 | if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2139 | rm -rf conftest* |
0056a9b5 | 2140 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2141 | else |
2142 | echo "configure: failed program was:" >&5 | |
2143 | cat conftest.$ac_ext >&5 | |
2144 | rm -rf conftest* | |
2145 | gcc_cv_header_inttypes_h=no | |
2146 | fi | |
2147 | rm -f conftest* | |
2148 | fi | |
2149 | ||
2150 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2151 | if test $gcc_cv_header_inttypes_h = yes; then |
2152 | cat >> confdefs.h <<\EOF | |
2153 | #define HAVE_INTTYPES_H 1 | |
2154 | EOF | |
2155 | ||
2156 | fi | |
956d6950 | 2157 | |
76b4b31e | 2158 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 2159 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 UD |
2160 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
2161 | fputs_unlocked | |
956d6950 JL |
2162 | do |
2163 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 2164 | echo "configure:2165: checking for $ac_func" >&5 |
956d6950 JL |
2165 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2167 | else | |
2168 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2169 | #line 2170 "configure" |
956d6950 JL |
2170 | #include "confdefs.h" |
2171 | /* System header to define __stub macros and hopefully few prototypes, | |
2172 | which can conflict with char $ac_func(); below. */ | |
2173 | #include <assert.h> | |
2174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2175 | /* We use char because int might match the return type of a gcc2 | |
2176 | builtin and then its argument prototype would still apply. */ | |
2177 | char $ac_func(); | |
2178 | ||
2179 | int main() { | |
2180 | ||
2181 | /* The GNU C library defines this for functions which it implements | |
2182 | to always fail with ENOSYS. Some functions are actually named | |
2183 | something starting with __ and the normal name is an alias. */ | |
2184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2185 | choke me | |
2186 | #else | |
3ecc3258 | 2187 | $ac_func(); |
956d6950 JL |
2188 | #endif |
2189 | ||
2190 | ; return 0; } | |
2191 | EOF | |
7aae67a2 | 2192 | if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2193 | rm -rf conftest* |
2194 | eval "ac_cv_func_$ac_func=yes" | |
2195 | else | |
2196 | echo "configure: failed program was:" >&5 | |
2197 | cat conftest.$ac_ext >&5 | |
2198 | rm -rf conftest* | |
2199 | eval "ac_cv_func_$ac_func=no" | |
2200 | fi | |
2201 | rm -f conftest* | |
2202 | fi | |
2203 | ||
2204 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2205 | echo "$ac_t""yes" 1>&6 | |
2206 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2207 | cat >> confdefs.h <<EOF | |
2208 | #define $ac_tr_func 1 | |
2209 | EOF | |
2210 | ||
2211 | else | |
2212 | echo "$ac_t""no" 1>&6 | |
2213 | fi | |
2214 | done | |
2215 | ||
6885fc87 | 2216 | |
0b9d02c6 JL |
2217 | # Make sure wchar_t is available |
2218 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2219 | ||
0a4b6309 | 2220 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
7aae67a2 | 2221 | echo "configure:2222: checking for vprintf" >&5 |
0a4b6309 RL |
2222 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2224 | else | |
2225 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2226 | #line 2227 "configure" |
0a4b6309 RL |
2227 | #include "confdefs.h" |
2228 | /* System header to define __stub macros and hopefully few prototypes, | |
2229 | which can conflict with char vprintf(); below. */ | |
2230 | #include <assert.h> | |
2231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2232 | /* We use char because int might match the return type of a gcc2 | |
2233 | builtin and then its argument prototype would still apply. */ | |
2234 | char vprintf(); | |
2235 | ||
2236 | int main() { | |
2237 | ||
2238 | /* The GNU C library defines this for functions which it implements | |
2239 | to always fail with ENOSYS. Some functions are actually named | |
2240 | something starting with __ and the normal name is an alias. */ | |
2241 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2242 | choke me | |
2243 | #else | |
3ecc3258 | 2244 | vprintf(); |
0a4b6309 RL |
2245 | #endif |
2246 | ||
2247 | ; return 0; } | |
2248 | EOF | |
7aae67a2 | 2249 | if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2250 | rm -rf conftest* |
2251 | eval "ac_cv_func_vprintf=yes" | |
2252 | else | |
2253 | echo "configure: failed program was:" >&5 | |
2254 | cat conftest.$ac_ext >&5 | |
2255 | rm -rf conftest* | |
2256 | eval "ac_cv_func_vprintf=no" | |
2257 | fi | |
2258 | rm -f conftest* | |
2259 | fi | |
2260 | ||
2261 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2262 | echo "$ac_t""yes" 1>&6 | |
2263 | cat >> confdefs.h <<\EOF | |
2264 | #define HAVE_VPRINTF 1 | |
2265 | EOF | |
2266 | ||
2267 | else | |
2268 | echo "$ac_t""no" 1>&6 | |
2269 | fi | |
8fa1f09f | 2270 | |
0a4b6309 RL |
2271 | if test "$ac_cv_func_vprintf" != yes; then |
2272 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
7aae67a2 | 2273 | echo "configure:2274: checking for _doprnt" >&5 |
0a4b6309 RL |
2274 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2276 | else | |
2277 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2278 | #line 2279 "configure" |
0a4b6309 RL |
2279 | #include "confdefs.h" |
2280 | /* System header to define __stub macros and hopefully few prototypes, | |
2281 | which can conflict with char _doprnt(); below. */ | |
2282 | #include <assert.h> | |
2283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2284 | /* We use char because int might match the return type of a gcc2 | |
2285 | builtin and then its argument prototype would still apply. */ | |
2286 | char _doprnt(); | |
2287 | ||
2288 | int main() { | |
2289 | ||
2290 | /* The GNU C library defines this for functions which it implements | |
2291 | to always fail with ENOSYS. Some functions are actually named | |
2292 | something starting with __ and the normal name is an alias. */ | |
2293 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2294 | choke me | |
2295 | #else | |
3ecc3258 | 2296 | _doprnt(); |
0a4b6309 RL |
2297 | #endif |
2298 | ||
2299 | ; return 0; } | |
2300 | EOF | |
7aae67a2 | 2301 | if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2302 | rm -rf conftest* |
2303 | eval "ac_cv_func__doprnt=yes" | |
2304 | else | |
2305 | echo "configure: failed program was:" >&5 | |
2306 | cat conftest.$ac_ext >&5 | |
2307 | rm -rf conftest* | |
2308 | eval "ac_cv_func__doprnt=no" | |
2309 | fi | |
2310 | rm -f conftest* | |
2311 | fi | |
2312 | ||
2313 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2314 | echo "$ac_t""yes" 1>&6 | |
2315 | cat >> confdefs.h <<\EOF | |
2316 | #define HAVE_DOPRNT 1 | |
2317 | EOF | |
2318 | ||
2319 | else | |
2320 | echo "$ac_t""no" 1>&6 | |
2321 | fi | |
2322 | ||
2323 | fi | |
2324 | ||
2325 | vfprintf= | |
2326 | doprint= | |
2327 | if test $ac_cv_func_vprintf != yes ; then | |
2328 | vfprintf=vfprintf.o | |
2329 | if test $ac_cv_func__doprnt != yes ; then | |
2330 | doprint=doprint.o | |
2331 | fi | |
2332 | fi | |
2333 | ||
2334 | ||
2335 | ||
2336 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
7aae67a2 | 2337 | echo "configure:2338: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2338 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2340 | else | |
2341 | if test "$cross_compiling" = yes; then | |
2342 | gcc_cv_func_printf_ptr=no | |
2343 | else | |
2344 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2345 | #line 2346 "configure" |
0a4b6309 RL |
2346 | #include "confdefs.h" |
2347 | #include <stdio.h> | |
2348 | ||
2349 | main() | |
2350 | { | |
2351 | char buf[64]; | |
2352 | char *p = buf, *q = NULL; | |
2353 | sprintf(buf, "%p", p); | |
2354 | sscanf(buf, "%p", &q); | |
2355 | exit (p != q); | |
2356 | } | |
2357 | EOF | |
7aae67a2 | 2358 | if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2359 | then |
2360 | gcc_cv_func_printf_ptr=yes | |
2361 | else | |
2362 | echo "configure: failed program was:" >&5 | |
2363 | cat conftest.$ac_ext >&5 | |
2364 | rm -fr conftest* | |
2365 | gcc_cv_func_printf_ptr=no | |
2366 | fi | |
2367 | rm -fr conftest* | |
2368 | fi | |
2369 | ||
2370 | rm -f core core.* *.core | |
2371 | fi | |
2372 | ||
2373 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2374 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2375 | cat >> confdefs.h <<\EOF | |
2376 | #define HAVE_PRINTF_PTR 1 | |
2377 | EOF | |
2378 | ||
2379 | fi | |
2380 | ||
b27d2bd5 MK |
2381 | |
2382 | case "${host}" in | |
2383 | *-*-uwin*) | |
2384 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2385 | # can hang configure; on other versions, vfork exists just as a stub. | |
2386 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2387 | ac_cv_func_vfork_works=no | |
2388 | ;; | |
2389 | esac | |
c375c43b | 2390 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
7aae67a2 | 2391 | echo "configure:2392: checking for pid_t" >&5 |
c375c43b KG |
2392 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2394 | else | |
2395 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2396 | #line 2397 "configure" |
c375c43b KG |
2397 | #include "confdefs.h" |
2398 | #include <sys/types.h> | |
2399 | #if STDC_HEADERS | |
2400 | #include <stdlib.h> | |
2401 | #include <stddef.h> | |
2402 | #endif | |
2403 | EOF | |
2404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2405 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2406 | rm -rf conftest* |
2407 | ac_cv_type_pid_t=yes | |
2408 | else | |
2409 | rm -rf conftest* | |
2410 | ac_cv_type_pid_t=no | |
2411 | fi | |
2412 | rm -f conftest* | |
2413 | ||
2414 | fi | |
2415 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2416 | if test $ac_cv_type_pid_t = no; then | |
2417 | cat >> confdefs.h <<\EOF | |
2418 | #define pid_t int | |
2419 | EOF | |
2420 | ||
2421 | fi | |
2422 | ||
2423 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2424 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
7aae67a2 | 2425 | echo "configure:2426: checking for vfork.h" >&5 |
c375c43b KG |
2426 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2428 | else | |
2429 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2430 | #line 2431 "configure" |
c375c43b KG |
2431 | #include "confdefs.h" |
2432 | #include <vfork.h> | |
2433 | EOF | |
2434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 2435 | { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2437 | if test -z "$ac_err"; then |
2438 | rm -rf conftest* | |
2439 | eval "ac_cv_header_$ac_safe=yes" | |
2440 | else | |
2441 | echo "$ac_err" >&5 | |
2442 | echo "configure: failed program was:" >&5 | |
2443 | cat conftest.$ac_ext >&5 | |
2444 | rm -rf conftest* | |
2445 | eval "ac_cv_header_$ac_safe=no" | |
2446 | fi | |
2447 | rm -f conftest* | |
2448 | fi | |
2449 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2450 | echo "$ac_t""yes" 1>&6 | |
2451 | cat >> confdefs.h <<\EOF | |
2452 | #define HAVE_VFORK_H 1 | |
2453 | EOF | |
2454 | ||
2455 | else | |
2456 | echo "$ac_t""no" 1>&6 | |
2457 | fi | |
2458 | ||
2459 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
7aae67a2 | 2460 | echo "configure:2461: checking for working vfork" >&5 |
c375c43b KG |
2461 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2463 | else | |
2464 | if test "$cross_compiling" = yes; then | |
2465 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
7aae67a2 | 2466 | echo "configure:2467: checking for vfork" >&5 |
c375c43b KG |
2467 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2469 | else | |
2470 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2471 | #line 2472 "configure" |
c375c43b KG |
2472 | #include "confdefs.h" |
2473 | /* System header to define __stub macros and hopefully few prototypes, | |
2474 | which can conflict with char vfork(); below. */ | |
2475 | #include <assert.h> | |
2476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2477 | /* We use char because int might match the return type of a gcc2 | |
2478 | builtin and then its argument prototype would still apply. */ | |
2479 | char vfork(); | |
2480 | ||
2481 | int main() { | |
2482 | ||
2483 | /* The GNU C library defines this for functions which it implements | |
2484 | to always fail with ENOSYS. Some functions are actually named | |
2485 | something starting with __ and the normal name is an alias. */ | |
2486 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2487 | choke me | |
2488 | #else | |
3ecc3258 | 2489 | vfork(); |
c375c43b KG |
2490 | #endif |
2491 | ||
2492 | ; return 0; } | |
2493 | EOF | |
7aae67a2 | 2494 | if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2495 | rm -rf conftest* |
2496 | eval "ac_cv_func_vfork=yes" | |
2497 | else | |
2498 | echo "configure: failed program was:" >&5 | |
2499 | cat conftest.$ac_ext >&5 | |
2500 | rm -rf conftest* | |
2501 | eval "ac_cv_func_vfork=no" | |
2502 | fi | |
2503 | rm -f conftest* | |
2504 | fi | |
2505 | ||
2506 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2507 | echo "$ac_t""yes" 1>&6 | |
2508 | : | |
2509 | else | |
2510 | echo "$ac_t""no" 1>&6 | |
2511 | fi | |
2512 | ||
2513 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2514 | else | |
2515 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2516 | #line 2517 "configure" |
c375c43b KG |
2517 | #include "confdefs.h" |
2518 | /* Thanks to Paul Eggert for this test. */ | |
2519 | #include <stdio.h> | |
2520 | #include <sys/types.h> | |
2521 | #include <sys/stat.h> | |
2522 | #ifdef HAVE_UNISTD_H | |
2523 | #include <unistd.h> | |
2524 | #endif | |
2525 | #ifdef HAVE_VFORK_H | |
2526 | #include <vfork.h> | |
2527 | #endif | |
2528 | /* On some sparc systems, changes by the child to local and incoming | |
2529 | argument registers are propagated back to the parent. | |
2530 | The compiler is told about this with #include <vfork.h>, | |
2531 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2532 | Test for this by using a static variable whose address | |
2533 | is put into a register that is clobbered by the vfork. */ | |
2534 | static | |
2535 | #ifdef __cplusplus | |
2536 | sparc_address_test (int arg) | |
2537 | #else | |
2538 | sparc_address_test (arg) int arg; | |
2539 | #endif | |
2540 | { | |
2541 | static pid_t child; | |
2542 | if (!child) { | |
2543 | child = vfork (); | |
2544 | if (child < 0) { | |
2545 | perror ("vfork"); | |
2546 | _exit(2); | |
2547 | } | |
2548 | if (!child) { | |
2549 | arg = getpid(); | |
2550 | write(-1, "", 0); | |
2551 | _exit (arg); | |
2552 | } | |
2553 | } | |
2554 | } | |
2555 | main() { | |
2556 | pid_t parent = getpid (); | |
2557 | pid_t child; | |
2558 | ||
2559 | sparc_address_test (); | |
2560 | ||
2561 | child = vfork (); | |
2562 | ||
2563 | if (child == 0) { | |
2564 | /* Here is another test for sparc vfork register problems. | |
2565 | This test uses lots of local variables, at least | |
2566 | as many local variables as main has allocated so far | |
2567 | including compiler temporaries. 4 locals are enough for | |
2568 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2569 | A buggy compiler should reuse the register of parent | |
2570 | for one of the local variables, since it will think that | |
2571 | parent can't possibly be used any more in this routine. | |
2572 | Assigning to the local variable will thus munge parent | |
2573 | in the parent process. */ | |
2574 | pid_t | |
2575 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2576 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2577 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2578 | use the same hardware register for all 8 local variables. */ | |
2579 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2580 | || p != p5 || p != p6 || p != p7) | |
2581 | _exit(1); | |
2582 | ||
2583 | /* On some systems (e.g. IRIX 3.3), | |
2584 | vfork doesn't separate parent from child file descriptors. | |
2585 | If the child closes a descriptor before it execs or exits, | |
2586 | this munges the parent's descriptor as well. | |
2587 | Test for this by closing stdout in the child. */ | |
2588 | _exit(close(fileno(stdout)) != 0); | |
2589 | } else { | |
2590 | int status; | |
2591 | struct stat st; | |
2592 | ||
2593 | while (wait(&status) != child) | |
2594 | ; | |
2595 | exit( | |
2596 | /* Was there some problem with vforking? */ | |
2597 | child < 0 | |
2598 | ||
2599 | /* Did the child fail? (This shouldn't happen.) */ | |
2600 | || status | |
2601 | ||
2602 | /* Did the vfork/compiler bug occur? */ | |
2603 | || parent != getpid() | |
2604 | ||
2605 | /* Did the file descriptor bug occur? */ | |
2606 | || fstat(fileno(stdout), &st) != 0 | |
2607 | ); | |
2608 | } | |
2609 | } | |
2610 | EOF | |
7aae67a2 | 2611 | if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2612 | then |
2613 | ac_cv_func_vfork_works=yes | |
2614 | else | |
2615 | echo "configure: failed program was:" >&5 | |
2616 | cat conftest.$ac_ext >&5 | |
2617 | rm -fr conftest* | |
2618 | ac_cv_func_vfork_works=no | |
2619 | fi | |
2620 | rm -fr conftest* | |
2621 | fi | |
2622 | ||
2623 | fi | |
2624 | ||
2625 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2626 | if test $ac_cv_func_vfork_works = no; then | |
2627 | cat >> confdefs.h <<\EOF | |
2628 | #define vfork fork | |
2629 | EOF | |
2630 | ||
2631 | fi | |
2632 | ||
0a4b6309 RL |
2633 | |
2634 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
007e8d2a | 2635 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
c22c8e60 | 2636 | strsignal putc_unlocked fputs_unlocked strstr |
0a4b6309 RL |
2637 | do |
2638 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
7aae67a2 | 2639 | echo "configure:2640: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2640 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2642 | else | |
2643 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2644 | #line 2645 "configure" |
0a4b6309 RL |
2645 | #include "confdefs.h" |
2646 | ||
2647 | #include <stdio.h> | |
2648 | #ifdef STRING_WITH_STRINGS | |
2649 | # include <string.h> | |
2650 | # include <strings.h> | |
2651 | #else | |
2652 | # ifdef HAVE_STRING_H | |
2653 | # include <string.h> | |
2654 | # else | |
2655 | # ifdef HAVE_STRINGS_H | |
2656 | # include <strings.h> | |
2657 | # endif | |
2658 | # endif | |
2659 | #endif | |
2660 | #ifdef HAVE_STDLIB_H | |
2661 | #include <stdlib.h> | |
2662 | #endif | |
2663 | #ifdef HAVE_UNISTD_H | |
2664 | #include <unistd.h> | |
2665 | #endif | |
2666 | #ifndef HAVE_RINDEX | |
2667 | #define rindex strrchr | |
2668 | #endif | |
2669 | #ifndef HAVE_INDEX | |
2670 | #define index strchr | |
2671 | #endif | |
2672 | ||
2673 | int main() { | |
2674 | char *(*pfn) = (char *(*)) $ac_func | |
2675 | ; return 0; } | |
2676 | EOF | |
7aae67a2 | 2677 | if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2678 | rm -rf conftest* |
2679 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2680 | else | |
2681 | echo "configure: failed program was:" >&5 | |
2682 | cat conftest.$ac_ext >&5 | |
2683 | rm -rf conftest* | |
2684 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2685 | fi | |
2686 | rm -f conftest* | |
2687 | fi | |
2688 | ||
2689 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2690 | echo "$ac_t""yes" 1>&6 | |
2691 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2692 | cat >> confdefs.h <<EOF | |
2693 | #define $gcc_tr_decl 1 | |
2694 | EOF | |
2695 | ||
2696 | else | |
2697 | echo "$ac_t""no" 1>&6 | |
2698 | fi | |
2699 | ||
2700 | done | |
2701 | ||
2702 | ||
2703 | for ac_func in getrlimit setrlimit | |
2704 | do | |
2705 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
7aae67a2 | 2706 | echo "configure:2707: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2707 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2709 | else | |
2710 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2711 | #line 2712 "configure" |
0a4b6309 | 2712 | #include "confdefs.h" |
8fa1f09f | 2713 | |
0a4b6309 RL |
2714 | #include <stdio.h> |
2715 | #ifdef STRING_WITH_STRINGS | |
2716 | # include <string.h> | |
2717 | # include <strings.h> | |
2718 | #else | |
2719 | # ifdef HAVE_STRING_H | |
2720 | # include <string.h> | |
2721 | # else | |
2722 | # ifdef HAVE_STRINGS_H | |
2723 | # include <strings.h> | |
2724 | # endif | |
2725 | # endif | |
2726 | #endif | |
2727 | #ifdef HAVE_STDLIB_H | |
2728 | #include <stdlib.h> | |
2729 | #endif | |
2730 | #ifdef HAVE_UNISTD_H | |
2731 | #include <unistd.h> | |
2732 | #endif | |
2733 | #ifndef HAVE_RINDEX | |
2734 | #define rindex strrchr | |
2735 | #endif | |
2736 | #ifndef HAVE_INDEX | |
2737 | #define index strchr | |
2738 | #endif | |
d2cabf16 KG |
2739 | #include <sys/types.h> |
2740 | #ifdef HAVE_SYS_RESOURCE_H | |
2741 | #include <sys/resource.h> | |
2742 | #endif | |
0a4b6309 RL |
2743 | |
2744 | int main() { | |
2745 | char *(*pfn) = (char *(*)) $ac_func | |
2746 | ; return 0; } | |
2747 | EOF | |
7aae67a2 | 2748 | if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2749 | rm -rf conftest* |
2750 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2751 | else | |
2752 | echo "configure: failed program was:" >&5 | |
2753 | cat conftest.$ac_ext >&5 | |
2754 | rm -rf conftest* | |
2755 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2756 | fi | |
2757 | rm -f conftest* | |
2758 | fi | |
2759 | ||
2760 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2761 | echo "$ac_t""yes" 1>&6 | |
2762 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2763 | cat >> confdefs.h <<EOF | |
2764 | #define $gcc_tr_decl 1 | |
2765 | EOF | |
2766 | ||
2767 | else | |
2768 | echo "$ac_t""no" 1>&6 | |
2769 | fi | |
2770 | ||
2771 | done | |
2772 | ||
956d6950 JL |
2773 | |
2774 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
7aae67a2 | 2775 | echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2776 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2778 | else |
956d6950 | 2779 | cat > conftest.$ac_ext <<EOF |
7aae67a2 | 2780 | #line 2781 "configure" |
956d6950 JL |
2781 | #include "confdefs.h" |
2782 | #include <sys/types.h> | |
2783 | #include <signal.h> | |
2784 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2785 | #ifdef HAVE_UNISTD_H | |
2786 | #include <unistd.h> | |
2787 | #endif | |
2788 | int main() { | |
2789 | char *msg = *(sys_siglist + 1); | |
2790 | ; return 0; } | |
2791 | EOF | |
7aae67a2 | 2792 | if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2793 | rm -rf conftest* |
2794 | ac_cv_decl_sys_siglist=yes | |
2795 | else | |
2796 | echo "configure: failed program was:" >&5 | |
2797 | cat conftest.$ac_ext >&5 | |
2798 | rm -rf conftest* | |
2799 | ac_cv_decl_sys_siglist=no | |
2800 | fi | |
2801 | rm -f conftest* | |
2802 | fi | |
2803 | ||
2804 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2805 | if test $ac_cv_decl_sys_siglist = yes; then | |
2806 | cat >> confdefs.h <<\EOF | |
2807 | #define SYS_SIGLIST_DECLARED 1 | |
2808 | EOF | |
2809 | ||
a63d08e6 | 2810 | fi |
a63d08e6 JL |
2811 | |
2812 | ||
75923b2f MK |
2813 | # mkdir takes a single argument on some systems. |
2814 | echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 | |
7aae67a2 | 2815 | echo "configure:2816: checking if mkdir takes one argument" >&5 |
75923b2f MK |
2816 | if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then |
2817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2818 | else | |
2819 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 2820 | #line 2821 "configure" |
75923b2f MK |
2821 | #include "confdefs.h" |
2822 | ||
2823 | #include <sys/types.h> | |
2824 | #ifdef HAVE_SYS_STAT_H | |
2825 | # include <sys/stat.h> | |
2826 | #endif | |
2827 | #ifdef HAVE_UNISTD_H | |
2828 | # include <unistd.h> | |
2829 | #endif | |
2830 | #ifdef HAVE_DIRECT_H | |
2831 | # include <direct.h> | |
2832 | #endif | |
2833 | int main() { | |
2834 | mkdir ("foo", 0); | |
2835 | ; return 0; } | |
2836 | EOF | |
7aae67a2 | 2837 | if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
75923b2f MK |
2838 | rm -rf conftest* |
2839 | gcc_cv_mkdir_takes_one_arg=no | |
2840 | else | |
2841 | echo "configure: failed program was:" >&5 | |
2842 | cat conftest.$ac_ext >&5 | |
2843 | rm -rf conftest* | |
2844 | gcc_cv_mkdir_takes_one_arg=yes | |
2845 | fi | |
2846 | rm -f conftest* | |
2847 | fi | |
2848 | ||
2849 | echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 | |
2850 | if test $gcc_cv_mkdir_takes_one_arg = yes ; then | |
2851 | cat >> confdefs.h <<\EOF | |
2852 | #define MKDIR_TAKES_ONE_ARG 1 | |
2853 | EOF | |
2854 | ||
2855 | fi | |
2856 | ||
2857 | ||
861bb6c1 JL |
2858 | # File extensions |
2859 | manext='.1' | |
2860 | objext='.o' | |
2861 | ||
2862 | ||
2863 | ||
2864 | build_xm_file= | |
f6cb0e63 | 2865 | build_xm_defines= |
861bb6c1 JL |
2866 | build_install_headers_dir=install-headers-tar |
2867 | build_exeext= | |
2868 | host_xm_file= | |
f6cb0e63 | 2869 | host_xm_defines= |
861bb6c1 JL |
2870 | host_xmake_file= |
2871 | host_truncate_target= | |
6e26218f | 2872 | host_exeext= |
861bb6c1 JL |
2873 | |
2874 | # Decode the host machine, then the target machine. | |
2875 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2876 | # then we decode the target machine and forget everything else | |
2877 | # that came from the host machine. | |
2878 | for machine in $build $host $target; do | |
2879 | ||
2880 | out_file= | |
2881 | xmake_file= | |
2882 | tmake_file= | |
2883 | extra_headers= | |
2884 | extra_passes= | |
2885 | extra_parts= | |
2886 | extra_programs= | |
2887 | extra_objs= | |
2888 | extra_host_objs= | |
2889 | extra_gcc_objs= | |
f6cb0e63 | 2890 | xm_defines= |
861bb6c1 JL |
2891 | float_format= |
2892 | # Set this to force installation and use of collect2. | |
2893 | use_collect2= | |
2894 | # Set this to override the default target model. | |
2895 | target_cpu_default= | |
861bb6c1 JL |
2896 | # Set this to control how the header file directory is installed. |
2897 | install_headers_dir=install-headers-tar | |
2898 | # Set this to a non-empty list of args to pass to cpp if the target | |
2899 | # wants its .md file passed through cpp. | |
2900 | md_cppflags= | |
2901 | # Set this if directory names should be truncated to 14 characters. | |
2902 | truncate_target= | |
2903 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2904 | gdb_needs_out_file_path= | |
2905 | # Set this if the build machine requires executables to have a | |
2906 | # file name suffix. | |
2907 | exeext= | |
a851212a JW |
2908 | # Set this to control which thread package will be used. |
2909 | thread_file= | |
df6faf79 JW |
2910 | # Reinitialize these from the flag values every loop pass, since some |
2911 | # configure entries modify them. | |
2912 | gas="$gas_flag" | |
2913 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2914 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2915 | |
2916 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2917 | # each machine entry. | |
2918 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2919 | case $machine in | |
2920 | alpha*-*-*) | |
2921 | cpu_type=alpha | |
2922 | ;; | |
2923 | arm*-*-*) | |
2924 | cpu_type=arm | |
2925 | ;; | |
2926 | c*-convex-*) | |
2927 | cpu_type=convex | |
2928 | ;; | |
f6cb0e63 | 2929 | i[34567]86-*-*) |
861bb6c1 JL |
2930 | cpu_type=i386 |
2931 | ;; | |
2932 | hppa*-*-*) | |
2933 | cpu_type=pa | |
2934 | ;; | |
2935 | m68000-*-*) | |
2936 | cpu_type=m68k | |
2937 | ;; | |
2938 | mips*-*-*) | |
2939 | cpu_type=mips | |
2940 | ;; | |
2941 | powerpc*-*-*) | |
2942 | cpu_type=rs6000 | |
2943 | ;; | |
2944 | pyramid-*-*) | |
2945 | cpu_type=pyr | |
2946 | ;; | |
2947 | sparc*-*-*) | |
2948 | cpu_type=sparc | |
2949 | ;; | |
2950 | esac | |
2951 | ||
2952 | tm_file=${cpu_type}/${cpu_type}.h | |
2953 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2954 | ||
7aae67a2 JM |
2955 | # On a.out targets, we need to use collect2. |
2956 | case $machine in | |
2957 | *-*-*aout*) | |
2958 | use_collect2=yes | |
2959 | ;; | |
2960 | esac | |
2961 | ||
1b4a979b | 2962 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
2963 | case $machine in |
2964 | *-*-linux-gnu*) | |
c7391272 | 2965 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 2966 | ;; |
1b4a979b ME |
2967 | *-*-openbsd*) |
2968 | tm_file=${cpu_type}/openbsd.h | |
1b4a979b ME |
2969 | tmake_file="t-libc-ok t-openbsd" |
2970 | # avoid surprises, always provide an xm-openbsd file | |
2971 | xm_file=${cpu_type}/xm-openbsd.h | |
766518a0 ME |
2972 | # don't depend on processor x-fragments as well |
2973 | xmake_file=none | |
1b4a979b ME |
2974 | if test x$enable_threads = xyes; then |
2975 | thread_file='posix' | |
2976 | tmake_file="${tmake_file} t-openbsd-thread" | |
2977 | fi | |
2978 | ;; | |
f6cb0e63 JL |
2979 | esac |
2980 | ||
861bb6c1 JL |
2981 | case $machine in |
2982 | # Support site-specific machine types. | |
2983 | *local*) | |
2984 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2985 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2986 | xm_file=${cpu_type}/xm-$rest.h | |
2987 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 2988 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
2989 | then xmake_file=${cpu_type}/x-$rest; \ |
2990 | else true; \ | |
2991 | fi | |
75bffa71 | 2992 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
2993 | then tmake_file=${cpu_type}/t-$rest; \ |
2994 | else true; \ | |
2995 | fi | |
2996 | ;; | |
2997 | 1750a-*-*) | |
2998 | ;; | |
2999 | a29k-*-bsd* | a29k-*-sym1*) | |
3000 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 3001 | xm_defines=USG |
861bb6c1 JL |
3002 | xmake_file=a29k/x-unix |
3003 | use_collect2=yes | |
3004 | ;; | |
3005 | a29k-*-udi | a29k-*-coff) | |
3006 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
3007 | tmake_file=a29k/t-a29kbare | |
3008 | ;; | |
7cc34889 | 3009 | a29k-wrs-vxworks*) |
861bb6c1 JL |
3010 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
3011 | tmake_file=a29k/t-vx29k | |
3012 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 3013 | thread_file='vxworks' |
861bb6c1 JL |
3014 | ;; |
3015 | a29k-*-*) # Default a29k environment. | |
3016 | use_collect2=yes | |
3017 | ;; | |
615c8231 DT |
3018 | alpha-*-interix) |
3019 | tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h" | |
3020 | ||
3021 | # GAS + IEEE_CONFORMANT+IEEE (no inexact); | |
8354da48 | 3022 | #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE" |
615c8231 | 3023 | |
8354da48 JL |
3024 | # GAS + IEEE_CONFORMANT |
3025 | target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" | |
615c8231 DT |
3026 | |
3027 | xm_file="alpha/xm-alpha-interix.h xm-interix.h" | |
3028 | xmake_file="x-interix alpha/t-pe" | |
e345693a | 3029 | tmake_file="alpha/t-interix alpha/t-ieee" |
615c8231 DT |
3030 | if test x$enable_threads = xyes ; then |
3031 | thread_file='posix' | |
3032 | fi | |
3033 | if test x$stabs = xyes ; then | |
3034 | tm_file="${tm_file} dbxcoff.h" | |
3035 | fi | |
3036 | #prefix='$$INTERIX_ROOT'/usr/contrib | |
3037 | #local_prefix='$$INTERIX_ROOT'/usr/contrib | |
3038 | ;; | |
861bb6c1 | 3039 | alpha*-*-linux-gnuecoff*) |
8983c716 | 3040 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 3041 | target_cpu_default="MASK_GAS" |
e345693a | 3042 | tmake_file="alpha/t-ieee" |
861bb6c1 JL |
3043 | gas=no |
3044 | xmake_file=none | |
861bb6c1 JL |
3045 | gas=yes gnu_ld=yes |
3046 | ;; | |
2601ebca | 3047 | alpha*-*-linux-gnulibc1*) |
9d654bba | 3048 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3049 | target_cpu_default="MASK_GAS" |
e345693a | 3050 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
574badbc | 3051 | extra_parts="crtbegin.o crtend.o" |
2601ebca | 3052 | xmake_file=none |
2601ebca | 3053 | gas=yes gnu_ld=yes |
75bffa71 | 3054 | if test x$enable_threads = xyes; then |
2601ebca JL |
3055 | thread_file='posix' |
3056 | fi | |
3057 | ;; | |
861bb6c1 | 3058 | alpha*-*-linux-gnu*) |
9d654bba | 3059 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 3060 | target_cpu_default="MASK_GAS" |
e345693a | 3061 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee" |
574badbc | 3062 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 3063 | xmake_file=none |
861bb6c1 | 3064 | gas=yes gnu_ld=yes |
75bffa71 | 3065 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3066 | thread_file='posix' |
3067 | fi | |
3068 | ;; | |
9d654bba | 3069 | alpha*-*-netbsd*) |
66953094 | 3070 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba | 3071 | target_cpu_default="MASK_GAS" |
e345693a | 3072 | tmake_file="alpha/t-crtbe alpha/t-ieee" |
9d654bba RH |
3073 | extra_parts="crtbegin.o crtend.o" |
3074 | xmake_file=none | |
9d654bba RH |
3075 | gas=yes gnu_ld=yes |
3076 | ;; | |
1b4a979b ME |
3077 | |
3078 | alpha*-*-openbsd*) | |
3079 | # default x-alpha is only appropriate for dec-osf. | |
3080 | target_cpu_default="MASK_GAS" | |
e345693a | 3081 | tmake_file="alpha/t-ieee" |
1b4a979b | 3082 | ;; |
9d654bba | 3083 | |
e9a25f70 | 3084 | alpha*-dec-osf*) |
75bffa71 | 3085 | if test x$stabs = xyes |
861bb6c1 JL |
3086 | then |
3087 | tm_file="${tm_file} dbx.h" | |
3088 | fi | |
75bffa71 | 3089 | if test x$gas != xyes |
861bb6c1 JL |
3090 | then |
3091 | extra_passes="mips-tfile mips-tdump" | |
3092 | fi | |
861bb6c1 | 3093 | use_collect2=yes |
e345693a | 3094 | tmake_file="alpha/t-ieee" |
861bb6c1 | 3095 | case $machine in |
6ecd4e53 | 3096 | *-*-osf1*) |
b0435cf4 | 3097 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3098 | ;; |
3099 | *-*-osf[23]*) | |
b0435cf4 | 3100 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3101 | ;; |
3102 | *-*-osf4*) | |
b0435cf4 | 3103 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3104 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3105 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3106 | install_headers_dir=install-headers-cpio |
3107 | ;; | |
3108 | esac | |
e9a25f70 JL |
3109 | case $machine in |
3110 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3111 | target_cpu_default=MASK_SUPPORT_ARCH | |
3112 | ;; | |
3113 | esac | |
861bb6c1 | 3114 | ;; |
9ec36da5 JL |
3115 | alpha*-*-vxworks*) |
3116 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
e345693a | 3117 | tmake_file="alpha/t-ieee" |
9ec36da5 JL |
3118 | if x$gas != xyes |
3119 | then | |
3120 | extra_passes="mips-tfile mips-tdump" | |
3121 | fi | |
3122 | use_collect2=yes | |
28897609 | 3123 | thread_file='vxworks' |
9ec36da5 | 3124 | ;; |
b0435cf4 | 3125 | alpha*-*-winnt*) |
615c8231 | 3126 | tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h" |
861bb6c1 | 3127 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
e345693a | 3128 | tmake_file="t-libc-ok alpha/t-ieee" |
861bb6c1 JL |
3129 | xmake_file=winnt/x-winnt |
3130 | extra_host_objs=oldnames.o | |
3131 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3132 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3133 | then |
3134 | extra_programs=ld.exe | |
3135 | fi | |
75bffa71 | 3136 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3137 | thread_file='win32' |
3138 | fi | |
3139 | ;; | |
3140 | alpha*-dec-vms*) | |
3141 | tm_file=alpha/vms.h | |
3142 | xm_file="${xm_file} alpha/xm-vms.h" | |
e345693a | 3143 | tmake_file="alpha/t-vms alpha/t-ieee" |
861bb6c1 | 3144 | ;; |
66ed0683 JL |
3145 | arc-*-elf*) |
3146 | extra_parts="crtinit.o crtfini.o" | |
3147 | ;; | |
861bb6c1 JL |
3148 | arm-*-coff* | armel-*-coff*) |
3149 | tm_file=arm/coff.h | |
3150 | tmake_file=arm/t-bare | |
3151 | ;; | |
2aa0c933 | 3152 | arm-*-vxworks*) |
e14db015 | 3153 | tm_file=arm/vxarm.h |
2aa0c933 | 3154 | tmake_file=arm/t-bare |
28897609 | 3155 | thread_file='vxworks' |
2aa0c933 | 3156 | ;; |
861bb6c1 JL |
3157 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) |
3158 | tm_file=arm/riscix1-1.h | |
3159 | use_collect2=yes | |
3160 | ;; | |
3161 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3162 | if test x$gas = xyes |
861bb6c1 JL |
3163 | then |
3164 | tm_file=arm/rix-gas.h | |
3165 | else | |
3166 | tm_file=arm/riscix.h | |
3167 | fi | |
3168 | xmake_file=arm/x-riscix | |
3169 | tmake_file=arm/t-riscix | |
3170 | use_collect2=yes | |
3171 | ;; | |
3172 | arm-semi-aout | armel-semi-aout) | |
3173 | tm_file=arm/semi.h | |
3174 | tmake_file=arm/t-semi | |
861bb6c1 JL |
3175 | ;; |
3176 | arm-semi-aof | armel-semi-aof) | |
3177 | tm_file=arm/semiaof.h | |
3178 | tmake_file=arm/t-semiaof | |
861bb6c1 | 3179 | ;; |
58600d24 | 3180 | arm*-*-netbsd*) |
861bb6c1 | 3181 | tm_file=arm/netbsd.h |
641d4216 | 3182 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 3183 | tmake_file="t-netbsd arm/t-netbsd" |
af0ca027 | 3184 | use_collect2=yes |
861bb6c1 | 3185 | ;; |
b355a481 | 3186 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3187 | cpu_type=arm |
861bb6c1 | 3188 | xmake_file=x-linux |
b355a481 | 3189 | tm_file=arm/linux-aout.h |
861bb6c1 | 3190 | tmake_file=arm/t-linux |
861bb6c1 JL |
3191 | gnu_ld=yes |
3192 | ;; | |
b355a481 NC |
3193 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF |
3194 | xm_file=arm/xm-linux.h | |
3195 | xmake_file=x-linux | |
3196 | case $machine in | |
3197 | armv2*-*-*) | |
3198 | tm_file=arm/linux-elf26.h | |
3199 | ;; | |
3200 | *) | |
3201 | tm_file=arm/linux-elf.h | |
3202 | ;; | |
3203 | esac | |
3204 | tmake_file="t-linux arm/t-linux" | |
3205 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
b355a481 | 3206 | gnu_ld=yes |
65120c40 SB |
3207 | case x${enable_threads} in |
3208 | x | xyes | xpthreads | xposix) | |
3209 | thread_file='posix' | |
3210 | ;; | |
3211 | esac | |
b355a481 | 3212 | ;; |
483f6332 PB |
3213 | arm*-*-uclinux*) # ARM ucLinux |
3214 | tm_file=arm/uclinux-elf.h | |
3215 | tmake_file=arm/t-arm-elf | |
3216 | ;; | |
b355a481 | 3217 | arm*-*-aout) |
861bb6c1 | 3218 | tm_file=arm/aout.h |
e9a25f70 | 3219 | tmake_file=arm/t-bare |
861bb6c1 | 3220 | ;; |
e6592fff | 3221 | arm*-*-ecos-elf) |
54953b66 UD |
3222 | tm_file=arm/ecos-elf.h |
3223 | tmake_file=arm/t-elf | |
3224 | ;; | |
b355a481 NC |
3225 | arm*-*-elf) |
3226 | tm_file=arm/unknown-elf.h | |
3227 | tmake_file=arm/t-arm-elf | |
3228 | ;; | |
cbca921c CM |
3229 | arm*-*-oabi) |
3230 | tm_file=arm/unknown-elf-oabi.h | |
3231 | tmake_file=arm/t-arm-elf | |
3232 | ;; | |
cb805c2d NC |
3233 | arm-*-pe*) |
3234 | tm_file=arm/pe.h | |
3235 | tmake_file=arm/t-pe | |
3236 | extra_objs=pe.o | |
3237 | ;; | |
861bb6c1 JL |
3238 | c1-convex-*) # Convex C1 |
3239 | target_cpu_default=1 | |
3240 | use_collect2=yes | |
861bb6c1 JL |
3241 | ;; |
3242 | c2-convex-*) # Convex C2 | |
3243 | target_cpu_default=2 | |
3244 | use_collect2=yes | |
861bb6c1 JL |
3245 | ;; |
3246 | c32-convex-*) | |
3247 | target_cpu_default=4 | |
3248 | use_collect2=yes | |
861bb6c1 JL |
3249 | ;; |
3250 | c34-convex-*) | |
3251 | target_cpu_default=8 | |
3252 | use_collect2=yes | |
861bb6c1 JL |
3253 | ;; |
3254 | c38-convex-*) | |
3255 | target_cpu_default=16 | |
3256 | use_collect2=yes | |
861bb6c1 | 3257 | ;; |
62616695 MH |
3258 | c4x-*) |
3259 | cpu_type=c4x | |
3260 | tmake_file=c4x/t-c4x | |
3261 | ;; | |
861bb6c1 JL |
3262 | clipper-intergraph-clix*) |
3263 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3264 | xm_file=clipper/xm-clix.h | |
3265 | xmake_file=clipper/x-clix | |
3266 | extra_headers=va-clipper.h | |
3267 | extra_parts="crtbegin.o crtend.o" | |
3268 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3269 | ;; |
3270 | dsp16xx-*) | |
3271 | ;; | |
3272 | elxsi-elxsi-*) | |
3273 | use_collect2=yes | |
3274 | ;; | |
3275 | # This hasn't been upgraded to GCC 2. | |
3276 | # fx80-alliant-*) # Alliant FX/80 | |
3277 | # ;; | |
3278 | h8300-*-*) | |
3279 | float_format=i32 | |
3280 | ;; | |
30f08b39 JL |
3281 | hppa*-*-linux*) |
3282 | target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)" | |
3283 | tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h" | |
3284 | tmake_file="t-linux pa/t-linux" | |
3285 | extra_parts="crtbegin.o crtend.o" | |
3286 | xmake_file=none | |
3287 | gas=yes gnu_ld=yes | |
3288 | if test x$enable_threads = xyes; then | |
3289 | thread_file='posix' | |
3290 | fi | |
3291 | ;; | |
1b4a979b | 3292 | hppa*-*-openbsd*) |
13ee407e | 3293 | target_cpu_default="MASK_PA_11" |
4525d757 | 3294 | tmake_file=pa/t-openbsd |
1b4a979b | 3295 | ;; |
861bb6c1 | 3296 | hppa1.1-*-pro*) |
0d381b47 JL |
3297 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
3298 | tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h" | |
861bb6c1 JL |
3299 | xm_file=pa/xm-papro.h |
3300 | tmake_file=pa/t-pro | |
3301 | ;; | |
3302 | hppa1.1-*-osf*) | |
13ee407e | 3303 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3304 | tm_file="${tm_file} pa/som.h pa/pa-osf.h" |
861bb6c1 | 3305 | use_collect2=yes |
861bb6c1 JL |
3306 | ;; |
3307 | hppa1.1-*-rtems*) | |
0d381b47 JL |
3308 | target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" |
3309 | tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
861bb6c1 JL |
3310 | xm_file=pa/xm-papro.h |
3311 | tmake_file=pa/t-pro | |
3312 | ;; | |
3313 | hppa1.0-*-osf*) | |
0d381b47 | 3314 | tm_file="${tm_file} pa/som.h pa/pa-osf.h" |
861bb6c1 | 3315 | use_collect2=yes |
861bb6c1 JL |
3316 | ;; |
3317 | hppa1.1-*-bsd*) | |
0d381b47 | 3318 | tm_file="${tm_file} pa/som.h" |
13ee407e | 3319 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3320 | use_collect2=yes |
861bb6c1 JL |
3321 | ;; |
3322 | hppa1.0-*-bsd*) | |
0d381b47 | 3323 | tm_file="${tm_file} pa/som.h" |
861bb6c1 | 3324 | use_collect2=yes |
861bb6c1 JL |
3325 | ;; |
3326 | hppa1.0-*-hpux7*) | |
0d381b47 | 3327 | tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h" |
861bb6c1 JL |
3328 | xm_file=pa/xm-pahpux.h |
3329 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3330 | if test x$gas = xyes |
861bb6c1 JL |
3331 | then |
3332 | tm_file="${tm_file} pa/gas.h" | |
3333 | fi | |
861bb6c1 JL |
3334 | install_headers_dir=install-headers-cpio |
3335 | use_collect2=yes | |
3336 | ;; | |
3337 | hppa1.0-*-hpux8.0[0-2]*) | |
0d381b47 | 3338 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3339 | xm_file=pa/xm-pahpux.h |
3340 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3341 | if test x$gas = xyes |
861bb6c1 JL |
3342 | then |
3343 | tm_file="${tm_file} pa/pa-gas.h" | |
3344 | else | |
3345 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3346 | fi | |
861bb6c1 JL |
3347 | install_headers_dir=install-headers-cpio |
3348 | use_collect2=yes | |
3349 | ;; | |
3350 | hppa1.1-*-hpux8.0[0-2]*) | |
13ee407e | 3351 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3352 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3353 | xm_file=pa/xm-pahpux.h |
3354 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3355 | if test x$gas = xyes |
861bb6c1 JL |
3356 | then |
3357 | tm_file="${tm_file} pa/pa-gas.h" | |
3358 | else | |
3359 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3360 | fi | |
861bb6c1 JL |
3361 | install_headers_dir=install-headers-cpio |
3362 | use_collect2=yes | |
3363 | ;; | |
3364 | hppa1.1-*-hpux8*) | |
13ee407e | 3365 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3366 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3367 | xm_file=pa/xm-pahpux.h |
3368 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3369 | if test x$gas = xyes |
861bb6c1 JL |
3370 | then |
3371 | tm_file="${tm_file} pa/pa-gas.h" | |
3372 | fi | |
861bb6c1 JL |
3373 | install_headers_dir=install-headers-cpio |
3374 | use_collect2=yes | |
3375 | ;; | |
3376 | hppa1.0-*-hpux8*) | |
0d381b47 | 3377 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h" |
861bb6c1 JL |
3378 | xm_file=pa/xm-pahpux.h |
3379 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3380 | if test x$gas = xyes |
861bb6c1 JL |
3381 | then |
3382 | tm_file="${tm_file} pa/pa-gas.h" | |
3383 | fi | |
861bb6c1 JL |
3384 | install_headers_dir=install-headers-cpio |
3385 | use_collect2=yes | |
3386 | ;; | |
18cae839 | 3387 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
13ee407e | 3388 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3389 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
861bb6c1 JL |
3390 | xm_file=pa/xm-pahpux.h |
3391 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3392 | tmake_file=pa/t-pa |
75bffa71 | 3393 | if test x$gas = xyes |
861bb6c1 JL |
3394 | then |
3395 | tm_file="${tm_file} pa/pa-gas.h" | |
3396 | fi | |
75bffa71 | 3397 | if test x$enable_threads = x; then |
f24af81b TT |
3398 | enable_threads=$have_pthread_h |
3399 | fi | |
75bffa71 | 3400 | if test x$enable_threads = xyes; then |
f24af81b TT |
3401 | thread_file='dce' |
3402 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3403 | fi | |
861bb6c1 JL |
3404 | install_headers_dir=install-headers-cpio |
3405 | use_collect2=yes | |
3406 | ;; | |
3407 | hppa1.0-*-hpux10*) | |
0d381b47 | 3408 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" |
861bb6c1 JL |
3409 | xm_file=pa/xm-pahpux.h |
3410 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3411 | tmake_file=pa/t-pa |
75bffa71 | 3412 | if test x$gas = xyes |
861bb6c1 JL |
3413 | then |
3414 | tm_file="${tm_file} pa/pa-gas.h" | |
3415 | fi | |
75bffa71 | 3416 | if test x$enable_threads = x; then |
d005a5a4 JL |
3417 | enable_threads=$have_pthread_h |
3418 | fi | |
75bffa71 | 3419 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3420 | thread_file='dce' |
3421 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3422 | fi | |
861bb6c1 JL |
3423 | install_headers_dir=install-headers-cpio |
3424 | use_collect2=yes | |
3425 | ;; | |
fab7be4f | 3426 | hppa1.1-*-hpux11* | hppa2*-*-hpux11*) |
30f08b39 | 3427 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3428 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
fab7be4f JL |
3429 | xm_file=pa/xm-pahpux.h |
3430 | xmake_file=pa/x-pa-hpux | |
3431 | tmake_file=pa/t-pa | |
3432 | if [ x$gas = xyes ] | |
3433 | then | |
3434 | tm_file="${tm_file} pa/pa-gas.h" | |
3435 | fi | |
3436 | # if [[ x$enable_threads = x ]]; then | |
3437 | # enable_threads=$have_pthread_h | |
3438 | # fi | |
3439 | # if [[ x$enable_threads = xyes ]]; then | |
3440 | # thread_file='dce' | |
3441 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3442 | # fi | |
3443 | install_headers_dir=install-headers-cpio | |
3444 | use_collect2=yes | |
3445 | ;; | |
3446 | hppa1.0-*-hpux11*) | |
0d381b47 | 3447 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" |
fab7be4f JL |
3448 | xm_file=pa/xm-pahpux.h |
3449 | xmake_file=pa/x-pa-hpux | |
3450 | if [ x$gas = xyes ] | |
3451 | then | |
3452 | tm_file="${tm_file} pa/pa-gas.h" | |
3453 | fi | |
3454 | # if [[ x$enable_threads = x ]]; then | |
3455 | # enable_threads=$have_pthread_h | |
3456 | # fi | |
3457 | # if [[ x$enable_threads = xyes ]]; then | |
3458 | # thread_file='dce' | |
3459 | # tmake_file="${tmake_file} pa/t-dce-thr" | |
3460 | # fi | |
3461 | install_headers_dir=install-headers-cpio | |
3462 | use_collect2=yes | |
3463 | ;; | |
18cae839 | 3464 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
13ee407e | 3465 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3466 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3467 | xm_file=pa/xm-pahpux.h |
3468 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3469 | if test x$gas = xyes |
861bb6c1 JL |
3470 | then |
3471 | tm_file="${tm_file} pa/pa-gas.h" | |
3472 | fi | |
861bb6c1 JL |
3473 | install_headers_dir=install-headers-cpio |
3474 | use_collect2=yes | |
3475 | ;; | |
3476 | hppa1.0-*-hpux*) | |
0d381b47 | 3477 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" |
861bb6c1 JL |
3478 | xm_file=pa/xm-pahpux.h |
3479 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3480 | if test x$gas = xyes |
861bb6c1 JL |
3481 | then |
3482 | tm_file="${tm_file} pa/pa-gas.h" | |
3483 | fi | |
861bb6c1 JL |
3484 | install_headers_dir=install-headers-cpio |
3485 | use_collect2=yes | |
3486 | ;; | |
18cae839 | 3487 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
13ee407e | 3488 | target_cpu_default="MASK_PA_11" |
0d381b47 | 3489 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3490 | xm_file=pa/xm-pahpux.h |
3491 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3492 | if test x$gas = xyes |
861bb6c1 JL |
3493 | then |
3494 | tm_file="${tm_file} pa/pa-gas.h" | |
3495 | fi | |
861bb6c1 JL |
3496 | install_headers_dir=install-headers-cpio |
3497 | use_collect2=yes | |
3498 | ;; | |
3499 | hppa1.0-*-hiux*) | |
0d381b47 | 3500 | tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h" |
861bb6c1 JL |
3501 | xm_file=pa/xm-pahpux.h |
3502 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3503 | if test x$gas = xyes |
861bb6c1 JL |
3504 | then |
3505 | tm_file="${tm_file} pa/pa-gas.h" | |
3506 | fi | |
861bb6c1 JL |
3507 | install_headers_dir=install-headers-cpio |
3508 | use_collect2=yes | |
3509 | ;; | |
3510 | hppa*-*-lites*) | |
0d381b47 | 3511 | tm_file="${tm_file} elfos.h pa/elf.h" |
13ee407e | 3512 | target_cpu_default="MASK_PA_11" |
861bb6c1 | 3513 | use_collect2=yes |
861bb6c1 JL |
3514 | ;; |
3515 | i370-*-mvs*) | |
3516 | ;; | |
9b5c756a JL |
3517 | i[34567]86-*-elf*) |
3518 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h" | |
3519 | tm_file=i386/i386elf.h | |
3520 | tmake_file=i386/t-i386elf | |
3521 | xmake_file=x-svr4 | |
3522 | ;; | |
f6cb0e63 | 3523 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3524 | if test x$gas = xyes |
861bb6c1 JL |
3525 | then |
3526 | tm_file=i386/aix386.h | |
3527 | extra_parts="crtbegin.o crtend.o" | |
3528 | tmake_file=i386/t-crtstuff | |
3529 | else | |
3530 | tm_file=i386/aix386ng.h | |
3531 | use_collect2=yes | |
3532 | fi | |
f6cb0e63 JL |
3533 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3534 | xm_defines=USG | |
861bb6c1 | 3535 | xmake_file=i386/x-aix |
861bb6c1 | 3536 | ;; |
75bffa71 | 3537 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
f6cb0e63 JL |
3538 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
3539 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3540 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3541 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3542 | then |
3543 | tm_file=i386/sysv4gdb.h | |
3544 | else | |
3545 | tm_file=i386/sysv4.h | |
3546 | fi | |
3547 | extra_parts="crtbegin.o crtend.o" | |
3548 | tmake_file=i386/t-crtpic | |
3549 | ;; | |
f6cb0e63 | 3550 | i[34567]86-next-*) |
861bb6c1 JL |
3551 | tm_file=i386/next.h |
3552 | xm_file=i386/xm-next.h | |
3553 | tmake_file=i386/t-next | |
3554 | xmake_file=i386/x-next | |
3555 | extra_objs=nextstep.o | |
750930c1 | 3556 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3557 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3558 | thread_file='mach' |
3559 | fi | |
3560 | ;; | |
f6cb0e63 | 3561 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3562 | use_collect2=yes |
75bffa71 | 3563 | if test x$gas = xyes |
861bb6c1 JL |
3564 | then |
3565 | tm_file=i386/seq-gas.h | |
3566 | else | |
3567 | tm_file=i386/sequent.h | |
3568 | fi | |
3569 | ;; | |
f6cb0e63 JL |
3570 | i[34567]86-sequent-ptx1*) |
3571 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3572 | xmake_file=i386/x-sysv3 |
3573 | tm_file=i386/seq-sysv3.h | |
3574 | tmake_file=i386/t-crtstuff | |
861bb6c1 JL |
3575 | extra_parts="crtbegin.o crtend.o" |
3576 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3577 | ;; |
f6cb0e63 JL |
3578 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
3579 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3580 | xmake_file=i386/x-sysv3 |
3581 | tm_file=i386/seq2-sysv3.h | |
3582 | tmake_file=i386/t-crtstuff | |
3583 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3584 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3585 | ;; |
f6cb0e63 JL |
3586 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
3587 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3588 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
3589 | xmake_file=x-svr4 |
3590 | tm_file=i386/ptx4-i.h | |
3591 | tmake_file=t-svr4 | |
3592 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 | 3593 | install_headers_dir=install-headers-cpio |
861bb6c1 JL |
3594 | ;; |
3595 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 3596 | xm_defines=USG |
861bb6c1 JL |
3597 | tm_file=i386/sun.h |
3598 | use_collect2=yes | |
3599 | ;; | |
62db76ee | 3600 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
3601 | tm_file=i386/vxi386.h |
3602 | tmake_file=i386/t-i386bare | |
28897609 | 3603 | thread_file='vxworks' |
9e89df50 | 3604 | ;; |
f6cb0e63 | 3605 | i[34567]86-*-aout*) |
861bb6c1 JL |
3606 | tm_file=i386/i386-aout.h |
3607 | tmake_file=i386/t-i386bare | |
3608 | ;; | |
f6cb0e63 | 3609 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 3610 | tm_file=i386/bsd386.h |
861bb6c1 JL |
3611 | # tmake_file=t-libc-ok |
3612 | ;; | |
f6cb0e63 | 3613 | i[34567]86-*-bsd*) |
861bb6c1 | 3614 | tm_file=i386/386bsd.h |
861bb6c1 JL |
3615 | # tmake_file=t-libc-ok |
3616 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
3617 | # use_collect2=yes | |
3618 | ;; | |
f6cb0e63 | 3619 | i[34567]86-*-freebsdelf*) |
d0550c9b | 3620 | tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h" |
56830143 | 3621 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
d0550c9b | 3622 | tmake_file=t-freebsd |
861bb6c1 JL |
3623 | gas=yes |
3624 | gnu_ld=yes | |
3625 | stabs=yes | |
3626 | ;; | |
f6cb0e63 | 3627 | i[34567]86-*-freebsd*) |
861bb6c1 | 3628 | tm_file=i386/freebsd.h |
d0550c9b | 3629 | tmake_file=t-freebsd |
861bb6c1 | 3630 | ;; |
1b4a979b | 3631 | i[34567]86-*-netbsd*) |
861bb6c1 | 3632 | tm_file=i386/netbsd.h |
861bb6c1 | 3633 | tmake_file=t-netbsd |
af0ca027 | 3634 | use_collect2=yes |
861bb6c1 | 3635 | ;; |
1b4a979b | 3636 | i[34567]86-*-openbsd*) |
1b4a979b ME |
3637 | # we need collect2 until our bug is fixed... |
3638 | use_collect2=yes | |
3639 | ;; | |
f6cb0e63 | 3640 | i[34567]86-*-coff*) |
861bb6c1 JL |
3641 | tm_file=i386/i386-coff.h |
3642 | tmake_file=i386/t-i386bare | |
3643 | ;; | |
f6cb0e63 JL |
3644 | i[34567]86-*-isc*) # 80386 running ISC system |
3645 | xm_file="${xm_file} i386/xm-isc.h" | |
3646 | xm_defines="USG SVR3" | |
861bb6c1 | 3647 | case $machine in |
f6cb0e63 | 3648 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
3649 | xmake_file=i386/x-isc3 |
3650 | ;; | |
3651 | *) | |
3652 | xmake_file=i386/x-isc | |
3653 | ;; | |
3654 | esac | |
75bffa71 | 3655 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
3656 | then |
3657 | tm_file=i386/iscdbx.h | |
3658 | tmake_file=i386/t-svr3dbx | |
3659 | extra_parts="svr3.ifile svr3z.ifile" | |
3660 | else | |
3661 | tm_file=i386/isccoff.h | |
3662 | tmake_file=i386/t-crtstuff | |
3663 | extra_parts="crtbegin.o crtend.o" | |
3664 | fi | |
3665 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3666 | ;; |
f6cb0e63 | 3667 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 3668 | # pre BFD linkers |
861bb6c1 JL |
3669 | xmake_file=x-linux-aout |
3670 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3671 | tm_file=i386/linux-oldld.h | |
861bb6c1 | 3672 | gnu_ld=yes |
af39d8f5 | 3673 | float_format=i386 |
861bb6c1 | 3674 | ;; |
f6cb0e63 | 3675 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3676 | xmake_file=x-linux-aout |
3677 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3678 | tm_file=i386/linux-aout.h | |
861bb6c1 | 3679 | gnu_ld=yes |
af39d8f5 | 3680 | float_format=i386 |
861bb6c1 | 3681 | ;; |
f6cb0e63 | 3682 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3683 | # GNU/Linux C library 5 |
3684 | xmake_file=x-linux | |
3685 | tm_file=i386/linux.h | |
861bb6c1 JL |
3686 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
3687 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3688 | gnu_ld=yes |
af39d8f5 | 3689 | float_format=i386 |
75bffa71 | 3690 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3691 | thread_file='single' |
3692 | fi | |
3693 | ;; | |
f6cb0e63 | 3694 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3695 | # aka GNU/Linux C library 6 |
3696 | xmake_file=x-linux | |
861bb6c1 JL |
3697 | tm_file=i386/linux.h |
3698 | tmake_file="t-linux i386/t-crtstuff" | |
3699 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 3700 | gnu_ld=yes |
af39d8f5 | 3701 | float_format=i386 |
75bffa71 | 3702 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3703 | thread_file='posix' |
3704 | fi | |
3705 | ;; | |
f6cb0e63 | 3706 | i[34567]86-*-gnu*) |
cd9e5e7c | 3707 | float_format=i386 |
f6cb0e63 JL |
3708 | ;; |
3709 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
77d787fa | 3710 | echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead." |
866fb7cc | 3711 | exit 1 |
861bb6c1 | 3712 | ;; |
f6cb0e63 | 3713 | i[34567]86-pc-msdosdjgpp*) |
77d787fa ME |
3714 | xm_file=i386/xm-djgpp.h |
3715 | tm_file=i386/djgpp.h | |
3716 | tmake_file=i386/t-djgpp | |
3717 | xmake_file=i386/x-djgpp | |
f6cb0e63 JL |
3718 | gnu_ld=yes |
3719 | gas=yes | |
dedcc399 | 3720 | exeext=.exe |
77d787fa | 3721 | case $host in *pc-msdosdjgpp*) |
dedcc399 ME |
3722 | target_alias=djgpp |
3723 | ;; | |
3724 | esac | |
861bb6c1 | 3725 | ;; |
f6cb0e63 | 3726 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
3727 | tm_file=i386/moss.h |
3728 | tmake_file=t-libc-ok | |
861bb6c1 JL |
3729 | gnu_ld=yes |
3730 | gas=yes | |
3731 | ;; | |
f6cb0e63 | 3732 | i[34567]86-*-lynxos*) |
75bffa71 | 3733 | if test x$gas = xyes |
861bb6c1 JL |
3734 | then |
3735 | tm_file=i386/lynx.h | |
3736 | else | |
3737 | tm_file=i386/lynx-ng.h | |
3738 | fi | |
3739 | xm_file=i386/xm-lynx.h | |
3740 | tmake_file=i386/t-i386bare | |
3741 | xmake_file=x-lynx | |
3742 | ;; | |
f6cb0e63 | 3743 | i[34567]86-*-mach*) |
861bb6c1 JL |
3744 | tm_file=i386/mach.h |
3745 | # tmake_file=t-libc-ok | |
3746 | use_collect2=yes | |
3747 | ;; | |
f6cb0e63 | 3748 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 3749 | if test x$elf = xyes |
861bb6c1 JL |
3750 | then |
3751 | tm_file=i386/osfelf.h | |
3752 | use_collect2= | |
3753 | else | |
3754 | tm_file=i386/osfrose.h | |
3755 | use_collect2=yes | |
3756 | fi | |
f6cb0e63 | 3757 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
3758 | xmake_file=i386/x-osfrose |
3759 | tmake_file=i386/t-osf | |
3760 | extra_objs=halfpic.o | |
3761 | ;; | |
f6cb0e63 | 3762 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
3763 | cpu_type=i386 |
3764 | xm_file=i386/xm-go32.h | |
3765 | tm_file=i386/go32-rtems.h | |
3766 | tmake_file="i386/t-go32 t-rtems" | |
3767 | ;; | |
f5963e61 JL |
3768 | i[34567]86-*-rtemself*) |
3769 | cpu_type=i386 | |
3770 | tm_file=i386/rtemself.h | |
3771 | tmake_file="i386/t-i386bare t-rtems" | |
3772 | ;; | |
f6cb0e63 | 3773 | i[34567]86-*-rtems*) |
861bb6c1 JL |
3774 | cpu_type=i386 |
3775 | tm_file=i386/rtems.h | |
3776 | tmake_file="i386/t-i386bare t-rtems" | |
3777 | ;; | |
f6cb0e63 JL |
3778 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
3779 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
3780 | xm_defines="USG SVR3" | |
861bb6c1 | 3781 | xmake_file=i386/x-sco5 |
f6857708 | 3782 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3783 | tm_file=i386/sco5.h |
75bffa71 | 3784 | if test x$gas = xyes |
44bb0e93 RL |
3785 | then |
3786 | tm_file="i386/sco5gas.h ${tm_file}" | |
3787 | tmake_file=i386/t-sco5gas | |
3788 | else | |
3789 | tmake_file=i386/t-sco5 | |
3790 | fi | |
42902a72 | 3791 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3792 | ;; |
f6cb0e63 JL |
3793 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
3794 | xm_file="${xm_file} i386/xm-sco.h" | |
3795 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 | 3796 | xmake_file=i386/x-sco4 |
861bb6c1 | 3797 | install_headers_dir=install-headers-cpio |
75bffa71 | 3798 | if test x$stabs = xyes |
861bb6c1 JL |
3799 | then |
3800 | tm_file=i386/sco4dbx.h | |
3801 | tmake_file=i386/t-svr3dbx | |
3802 | extra_parts="svr3.ifile svr3z.rfile" | |
3803 | else | |
3804 | tm_file=i386/sco4.h | |
3805 | tmake_file=i386/t-crtstuff | |
3806 | extra_parts="crtbegin.o crtend.o" | |
3807 | fi | |
3808 | truncate_target=yes | |
3809 | ;; | |
f6cb0e63 | 3810 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
3811 | xm_file=i386/xm-sco.h |
3812 | xmake_file=i386/x-sco | |
861bb6c1 | 3813 | install_headers_dir=install-headers-cpio |
75bffa71 | 3814 | if test x$stabs = xyes |
861bb6c1 JL |
3815 | then |
3816 | tm_file=i386/scodbx.h | |
3817 | tmake_file=i386/t-svr3dbx | |
3818 | extra_parts="svr3.ifile svr3z.rfile" | |
3819 | else | |
3820 | tm_file=i386/sco.h | |
3821 | extra_parts="crtbegin.o crtend.o" | |
3822 | tmake_file=i386/t-crtstuff | |
3823 | fi | |
3824 | truncate_target=yes | |
3825 | ;; | |
f6cb0e63 JL |
3826 | i[34567]86-*-solaris2*) |
3827 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3828 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 3829 | if test x$stabs = xyes |
861bb6c1 JL |
3830 | then |
3831 | tm_file=i386/sol2dbg.h | |
3832 | else | |
3833 | tm_file=i386/sol2.h | |
3834 | fi | |
3835 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 3836 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 3837 | xmake_file=x-svr4 |
75bffa71 | 3838 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3839 | thread_file='solaris' |
3840 | fi | |
3841 | ;; | |
f6cb0e63 | 3842 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
3843 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
3844 | xm_defines="USG POSIX" | |
87e11b70 | 3845 | tm_file=i386/sysv5.h |
75bffa71 | 3846 | if test x$stabs = xyes |
fe07d4c1 RL |
3847 | then |
3848 | tm_file="${tm_file} dbx.h" | |
3849 | fi | |
3850 | tmake_file=i386/t-crtpic | |
3851 | xmake_file=x-svr4 | |
3852 | extra_parts="crtbegin.o crtend.o" | |
01e39005 RL |
3853 | if test x$enable_threads = xyes; then |
3854 | thread_file='posix' | |
3855 | fi | |
fe07d4c1 | 3856 | ;; |
f6cb0e63 JL |
3857 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
3858 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3859 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3860 | tm_file=i386/sysv4.h |
75bffa71 | 3861 | if test x$stabs = xyes |
861bb6c1 JL |
3862 | then |
3863 | tm_file="${tm_file} dbx.h" | |
3864 | fi | |
3865 | tmake_file=i386/t-crtpic | |
3866 | xmake_file=x-svr4 | |
3867 | extra_parts="crtbegin.o crtend.o" | |
3868 | ;; | |
112674fa RL |
3869 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
3870 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3871 | xm_defines="USG POSIX" | |
3872 | tm_file=i386/udk.h | |
3873 | tmake_file="i386/t-crtpic i386/t-udk" | |
3874 | xmake_file=x-svr4 | |
3875 | extra_parts="crtbegin.o crtend.o" | |
fd9c643f | 3876 | install_headers_dir=install-headers-cpio |
112674fa | 3877 | ;; |
f5963e61 JL |
3878 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
3879 | cpu_type=i386 | |
3880 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
3881 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
75bffa71 | 3882 | if test x$stabs = xyes |
f5963e61 JL |
3883 | then |
3884 | tm_file=i386/osf1elfgdb.h | |
3885 | else | |
3886 | tm_file=i386/osf1elf.h | |
3887 | fi | |
3888 | tmake_file=i386/t-osf1elf | |
3889 | xmake_file=i386/x-osf1elf | |
3890 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3891 | ;; | |
f6cb0e63 JL |
3892 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3893 | xm_defines="USG SVR3" | |
861bb6c1 | 3894 | xmake_file=i386/x-sysv3 |
75bffa71 | 3895 | if test x$gas = xyes |
861bb6c1 | 3896 | then |
75bffa71 | 3897 | if test x$stabs = xyes |
861bb6c1 JL |
3898 | then |
3899 | tm_file=i386/svr3dbx.h | |
3900 | tmake_file=i386/t-svr3dbx | |
3901 | extra_parts="svr3.ifile svr3z.rfile" | |
3902 | else | |
3903 | tm_file=i386/svr3gas.h | |
3904 | extra_parts="crtbegin.o crtend.o" | |
3905 | tmake_file=i386/t-crtstuff | |
3906 | fi | |
3907 | else | |
3908 | tm_file=i386/sysv3.h | |
3909 | extra_parts="crtbegin.o crtend.o" | |
3910 | tmake_file=i386/t-crtstuff | |
3911 | fi | |
3912 | ;; | |
3913 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3914 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3915 | tm_file=i386/vsta.h |
3916 | tmake_file=i386/t-vsta | |
3917 | xmake_file=i386/x-vsta | |
3918 | ;; | |
84530511 | 3919 | i[34567]86-*-win32) |
cae21ae8 GN |
3920 | xm_file="${xm_file} i386/xm-cygwin.h" |
3921 | tmake_file=i386/t-cygwin | |
84530511 | 3922 | tm_file=i386/win32.h |
cae21ae8 | 3923 | xmake_file=i386/x-cygwin |
84530511 | 3924 | extra_objs=winnt.o |
75bffa71 | 3925 | if test x$enable_threads = xyes; then |
84530511 SC |
3926 | thread_file='win32' |
3927 | fi | |
3928 | exeext=.exe | |
3929 | ;; | |
cae21ae8 GN |
3930 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
3931 | xm_file="${xm_file} i386/xm-cygwin.h" | |
3932 | tmake_file=i386/t-cygwin | |
3933 | tm_file=i386/cygwin.h | |
3934 | xmake_file=i386/x-cygwin | |
861bb6c1 | 3935 | extra_objs=winnt.o |
75bffa71 | 3936 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3937 | thread_file='win32' |
3938 | fi | |
3939 | exeext=.exe | |
3940 | ;; | |
f6cb0e63 | 3941 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3942 | tm_file=i386/mingw32.h |
3943 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 3944 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 3945 | extra_objs=winnt.o |
cae21ae8 | 3946 | xmake_file=i386/x-cygwin |
75bffa71 | 3947 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3948 | thread_file='win32' |
3949 | fi | |
3950 | exeext=.exe | |
f6cb0e63 JL |
3951 | case $machine in |
3952 | *mingw32msv*) | |
3953 | ;; | |
3954 | *minwg32crt* | *mingw32*) | |
3955 | tm_file="${tm_file} i386/crtdll.h" | |
3956 | ;; | |
3957 | esac | |
861bb6c1 | 3958 | ;; |
b27d2bd5 MK |
3959 | i[34567]86-*-uwin*) |
3960 | tm_file=i386/uwin.h | |
3961 | xm_file="${xm_file} i386/xm-uwin.h" | |
3962 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
3963 | tmake_file="i386/t-cygwin i386/t-uwin" | |
3964 | extra_objs=winnt.o | |
3965 | xmake_file=i386/x-cygwin | |
b27d2bd5 MK |
3966 | if test x$enable_threads = xyes; then |
3967 | thread_file='win32' | |
3968 | fi | |
3969 | exeext=.exe | |
3970 | ;; | |
052dbd9e | 3971 | i[34567]86-*-interix*) |
615c8231 | 3972 | tm_file="i386/i386-interix.h interix.h" |
97ad1d43 | 3973 | xm_file="i386/xm-i386-interix.h xm-interix.h" |
052dbd9e MK |
3974 | xm_defines="USG NO_SYS_SIGLIST" |
3975 | tmake_file="i386/t-interix" | |
3976 | extra_objs=interix.o | |
3977 | xmake_file=x-interix | |
615c8231 | 3978 | if test x$enable_threads = xyes ; then |
052dbd9e MK |
3979 | thread_file='posix' |
3980 | fi | |
615c8231 | 3981 | if test x$stabs = xyes ; then |
052dbd9e MK |
3982 | tm_file="${tm_file} dbxcoff.h" |
3983 | fi | |
3984 | ;; | |
f6cb0e63 | 3985 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3986 | tm_file=i386/win-nt.h |
3987 | out_file=i386/i386.c | |
f6cb0e63 | 3988 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3989 | xmake_file=winnt/x-winnt |
3990 | tmake_file=i386/t-winnt | |
3991 | extra_host_objs="winnt.o oldnames.o" | |
3992 | extra_gcc_objs="spawnv.o oldnames.o" | |
75bffa71 | 3993 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3994 | then |
3995 | extra_programs=ld.exe | |
3996 | fi | |
75bffa71 | 3997 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3998 | thread_file='win32' |
3999 | fi | |
4000 | ;; | |
f6cb0e63 JL |
4001 | i[34567]86-dg-dgux*) |
4002 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
4003 | xm_defines="USG POSIX" | |
861bb6c1 JL |
4004 | out_file=i386/dgux.c |
4005 | tm_file=i386/dgux.h | |
4006 | tmake_file=i386/t-dgux | |
4007 | xmake_file=i386/x-dgux | |
861bb6c1 JL |
4008 | install_headers_dir=install-headers-cpio |
4009 | ;; | |
4010 | i860-alliant-*) # Alliant FX/2800 | |
4011 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 4012 | xm_file="${xm_file}" |
861bb6c1 JL |
4013 | xmake_file=i860/x-fx2800 |
4014 | tmake_file=i860/t-fx2800 | |
4015 | extra_parts="crtbegin.o crtend.o" | |
4016 | ;; | |
4017 | i860-*-bsd*) | |
4018 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 4019 | if test x$gas = xyes |
861bb6c1 JL |
4020 | then |
4021 | tm_file="${tm_file} i860/bsd-gas.h" | |
4022 | fi | |
4023 | use_collect2=yes | |
4024 | ;; | |
4025 | i860-*-mach*) | |
4026 | tm_file="${tm_file} i860/mach.h" | |
4027 | tmake_file=t-libc-ok | |
4028 | ;; | |
4029 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
4030 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 4031 | xm_defines="USG SVR3" |
861bb6c1 | 4032 | tmake_file=t-osf |
861bb6c1 JL |
4033 | ;; |
4034 | i860-*-sysv3*) | |
4035 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 4036 | xm_defines="USG SVR3" |
861bb6c1 JL |
4037 | xmake_file=i860/x-sysv3 |
4038 | extra_parts="crtbegin.o crtend.o" | |
4039 | ;; | |
4040 | i860-*-sysv4*) | |
4041 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 4042 | xm_defines="USG SVR3" |
861bb6c1 JL |
4043 | xmake_file=i860/x-sysv4 |
4044 | tmake_file=t-svr4 | |
4045 | extra_parts="crtbegin.o crtend.o" | |
4046 | ;; | |
4047 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
4048 | tm_file="${tm_file} i960/vx960.h" | |
4049 | tmake_file=i960/t-vxworks960 | |
4050 | use_collect2=yes | |
7cc34889 | 4051 | thread_file='vxworks' |
861bb6c1 | 4052 | ;; |
a0372c94 | 4053 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
4054 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
4055 | tmake_file=i960/t-vxworks960 | |
4056 | use_collect2=yes | |
7cc34889 | 4057 | thread_file='vxworks' |
861bb6c1 JL |
4058 | ;; |
4059 | i960-wrs-vxworks*) | |
4060 | tm_file="${tm_file} i960/vx960.h" | |
4061 | tmake_file=i960/t-vxworks960 | |
4062 | use_collect2=yes | |
7cc34889 | 4063 | thread_file='vxworks' |
861bb6c1 JL |
4064 | ;; |
4065 | i960-*-coff*) | |
4066 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
4067 | tmake_file=i960/t-960bare | |
4068 | use_collect2=yes | |
4069 | ;; | |
4070 | i960-*-rtems) | |
4071 | tmake_file="i960/t-960bare t-rtems" | |
4072 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
4073 | use_collect2=yes | |
4074 | ;; | |
4075 | i960-*-*) # Default i960 environment. | |
4076 | use_collect2=yes | |
4077 | ;; | |
4078 | m32r-*-elf*) | |
4079 | extra_parts="crtinit.o crtfini.o" | |
4080 | ;; | |
4081 | m68000-convergent-sysv*) | |
4082 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
4083 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4084 | xm_defines=USG | |
861bb6c1 JL |
4085 | use_collect2=yes |
4086 | extra_headers=math-68881.h | |
4087 | ;; | |
4088 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
4089 | tm_file=m68k/hp2bsd.h | |
4090 | xmake_file=m68k/x-hp2bsd | |
4091 | use_collect2=yes | |
4092 | extra_headers=math-68881.h | |
4093 | ;; | |
4094 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4095 | xm_file="xm_alloca.h ${xm_file}" |
4096 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4097 | if test x$gas = xyes |
861bb6c1 JL |
4098 | then |
4099 | xmake_file=m68k/x-hp320g | |
4100 | tm_file=m68k/hp310g.h | |
4101 | else | |
4102 | xmake_file=m68k/x-hp320 | |
4103 | tm_file=m68k/hp310.h | |
4104 | fi | |
861bb6c1 JL |
4105 | install_headers_dir=install-headers-cpio |
4106 | use_collect2=yes | |
4107 | extra_headers=math-68881.h | |
4108 | ;; | |
4109 | m68000-sun-sunos3*) | |
4110 | tm_file=m68k/sun2.h | |
4111 | use_collect2=yes | |
4112 | extra_headers=math-68881.h | |
4113 | ;; | |
4114 | m68000-sun-sunos4*) | |
4115 | tm_file=m68k/sun2o4.h | |
4116 | use_collect2=yes | |
4117 | extra_headers=math-68881.h | |
4118 | ;; | |
4119 | m68000-att-sysv*) | |
f6cb0e63 JL |
4120 | xm_file="m68k/xm-3b1.h ${xm_file}" |
4121 | xm_defines=USG | |
75bffa71 | 4122 | if test x$gas = xyes |
861bb6c1 JL |
4123 | then |
4124 | tm_file=m68k/3b1g.h | |
4125 | else | |
4126 | tm_file=m68k/3b1.h | |
4127 | fi | |
4128 | use_collect2=yes | |
4129 | extra_headers=math-68881.h | |
4130 | ;; | |
4131 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 4132 | xm_defines="USG AUX" |
861bb6c1 | 4133 | tmake_file=m68k/t-aux |
861bb6c1 JL |
4134 | install_headers_dir=install-headers-cpio |
4135 | extra_headers=math-68881.h | |
4136 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
4137 | tm_file= | |
75bffa71 | 4138 | if test "$gnu_ld" = yes |
861bb6c1 JL |
4139 | then |
4140 | tm_file="${tm_file} m68k/auxgld.h" | |
4141 | else | |
4142 | tm_file="${tm_file} m68k/auxld.h" | |
4143 | fi | |
75bffa71 | 4144 | if test "$gas" = yes |
861bb6c1 JL |
4145 | then |
4146 | tm_file="${tm_file} m68k/auxgas.h" | |
4147 | else | |
4148 | tm_file="${tm_file} m68k/auxas.h" | |
4149 | fi | |
4150 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4151 | float_format=m68k |
861bb6c1 JL |
4152 | ;; |
4153 | m68k-apollo-*) | |
4154 | tm_file=m68k/apollo68.h | |
4155 | xmake_file=m68k/x-apollo68 | |
4156 | use_collect2=yes | |
4157 | extra_headers=math-68881.h | |
0a95276e | 4158 | float_format=m68k |
861bb6c1 JL |
4159 | ;; |
4160 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4161 | if test x$gas = xyes |
861bb6c1 JL |
4162 | then |
4163 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4164 | xm_defines=USG |
861bb6c1 JL |
4165 | else |
4166 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4167 | exit 1 | |
4168 | fi | |
4169 | extra_headers=math-68881.h | |
4170 | ;; | |
4171 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4172 | if test x$gas = xyes |
861bb6c1 | 4173 | then |
75bffa71 | 4174 | if test x$stabs = xyes |
861bb6c1 JL |
4175 | then |
4176 | tm_file=m68k/dpx2cdbx.h | |
4177 | else | |
4178 | tm_file=m68k/dpx2g.h | |
4179 | fi | |
4180 | else | |
4181 | tm_file=m68k/dpx2.h | |
4182 | fi | |
f6cb0e63 JL |
4183 | xm_file="xm-alloca.h ${xm_file}" |
4184 | xm_defines=USG | |
861bb6c1 JL |
4185 | xmake_file=m68k/x-dpx2 |
4186 | use_collect2=yes | |
4187 | extra_headers=math-68881.h | |
4188 | ;; | |
4189 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4190 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4191 | xm_file="xm-alloca.h ${xm_file}" |
4192 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4193 | tmake_file=t-svr4 |
4194 | extra_parts="crtbegin.o crtend.o" | |
4195 | extra_headers=math-68881.h | |
0a95276e | 4196 | float_format=m68k |
861bb6c1 JL |
4197 | ;; |
4198 | m68k-motorola-sysv*) | |
4199 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
4200 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
4201 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 4202 | if test x$gas = xyes |
861bb6c1 JL |
4203 | then |
4204 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4205 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4206 | then |
4207 | tmake_file=m68k/t-mot3300-gald | |
4208 | else | |
4209 | tmake_file=m68k/t-mot3300-gas | |
4210 | use_collect2=yes | |
4211 | fi | |
4212 | else | |
4213 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4214 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4215 | then |
4216 | tmake_file=m68k/t-mot3300-gld | |
4217 | else | |
4218 | tmake_file=m68k/t-mot3300 | |
4219 | use_collect2=yes | |
4220 | fi | |
4221 | fi | |
4222 | gdb_needs_out_file_path=yes | |
4223 | extra_parts="crt0.o mcrt0.o" | |
4224 | extra_headers=math-68881.h | |
0a95276e | 4225 | float_format=m68k |
861bb6c1 JL |
4226 | ;; |
4227 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4228 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4229 | xm_defines="USG SVR3" |
861bb6c1 JL |
4230 | xmake_file=m68k/x-tower |
4231 | extra_parts="crtbegin.o crtend.o" | |
4232 | extra_headers=math-68881.h | |
4233 | ;; | |
4234 | m68k-plexus-sysv*) | |
4235 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4236 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4237 | xm_defines=USG | |
861bb6c1 JL |
4238 | use_collect2=yes |
4239 | extra_headers=math-68881.h | |
4240 | ;; | |
4241 | m68k-tti-*) | |
4242 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4243 | xm_file="xm-alloca.h ${xm_file}" |
4244 | xm_defines=USG | |
861bb6c1 JL |
4245 | extra_headers=math-68881.h |
4246 | ;; | |
4247 | m68k-crds-unos*) | |
f6cb0e63 JL |
4248 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4249 | xm_defines="USG unos" | |
861bb6c1 JL |
4250 | xmake_file=m68k/x-crds |
4251 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4252 | use_collect2=yes |
4253 | extra_headers=math-68881.h | |
4254 | ;; | |
4255 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4256 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4257 | xm_file="xm-alloca.h ${xm_file}" |
4258 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4259 | xmake_file=m68k/x-amix |
4260 | tmake_file=t-svr4 | |
4261 | extra_parts="crtbegin.o crtend.o" | |
4262 | extra_headers=math-68881.h | |
0a95276e | 4263 | float_format=m68k |
861bb6c1 JL |
4264 | ;; |
4265 | m68k-ccur-rtu) | |
4266 | tm_file=m68k/ccur-GAS.h | |
4267 | xmake_file=m68k/x-ccur | |
4268 | extra_headers=math-68881.h | |
4269 | use_collect2=yes | |
0a95276e | 4270 | float_format=m68k |
861bb6c1 JL |
4271 | ;; |
4272 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4273 | tm_file=m68k/hp3bsd44.h | |
c83fe036 | 4274 | xmake_file=m68k/x-hp3bsd44 |
861bb6c1 JL |
4275 | use_collect2=yes |
4276 | extra_headers=math-68881.h | |
0a95276e | 4277 | float_format=m68k |
861bb6c1 JL |
4278 | ;; |
4279 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4280 | tm_file=m68k/hp3bsd.h | |
4281 | use_collect2=yes | |
4282 | extra_headers=math-68881.h | |
0a95276e | 4283 | float_format=m68k |
861bb6c1 JL |
4284 | ;; |
4285 | m68k-isi-bsd*) | |
75bffa71 | 4286 | if test x$with_fp = xno |
861bb6c1 JL |
4287 | then |
4288 | tm_file=m68k/isi-nfp.h | |
4289 | else | |
4290 | tm_file=m68k/isi.h | |
0a95276e | 4291 | float_format=m68k |
861bb6c1 JL |
4292 | fi |
4293 | use_collect2=yes | |
4294 | extra_headers=math-68881.h | |
4295 | ;; | |
4296 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
4297 | xm_file="xm_alloca.h ${xm_file}" |
4298 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4299 | if test x$gas = xyes |
861bb6c1 JL |
4300 | then |
4301 | xmake_file=m68k/x-hp320g | |
4302 | tm_file=m68k/hp320g.h | |
4303 | else | |
4304 | xmake_file=m68k/x-hp320 | |
4305 | tm_file=m68k/hpux7.h | |
4306 | fi | |
861bb6c1 JL |
4307 | install_headers_dir=install-headers-cpio |
4308 | use_collect2=yes | |
4309 | extra_headers=math-68881.h | |
0a95276e | 4310 | float_format=m68k |
861bb6c1 JL |
4311 | ;; |
4312 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4313 | xm_file="xm_alloca.h ${xm_file}" |
4314 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4315 | if test x$gas = xyes |
861bb6c1 JL |
4316 | then |
4317 | xmake_file=m68k/x-hp320g | |
4318 | tm_file=m68k/hp320g.h | |
4319 | else | |
4320 | xmake_file=m68k/x-hp320 | |
4321 | tm_file=m68k/hp320.h | |
4322 | fi | |
861bb6c1 JL |
4323 | install_headers_dir=install-headers-cpio |
4324 | use_collect2=yes | |
4325 | extra_headers=math-68881.h | |
0a95276e | 4326 | float_format=m68k |
861bb6c1 JL |
4327 | ;; |
4328 | m68k-sun-mach*) | |
4329 | tm_file=m68k/sun3mach.h | |
4330 | use_collect2=yes | |
4331 | extra_headers=math-68881.h | |
0a95276e | 4332 | float_format=m68k |
861bb6c1 JL |
4333 | ;; |
4334 | m68k-sony-newsos3*) | |
75bffa71 | 4335 | if test x$gas = xyes |
861bb6c1 JL |
4336 | then |
4337 | tm_file=m68k/news3gas.h | |
4338 | else | |
4339 | tm_file=m68k/news3.h | |
4340 | fi | |
4341 | use_collect2=yes | |
4342 | extra_headers=math-68881.h | |
0a95276e | 4343 | float_format=m68k |
861bb6c1 JL |
4344 | ;; |
4345 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4346 | if test x$gas = xyes |
861bb6c1 JL |
4347 | then |
4348 | tm_file=m68k/newsgas.h | |
4349 | else | |
4350 | tm_file=m68k/news.h | |
4351 | fi | |
4352 | use_collect2=yes | |
4353 | extra_headers=math-68881.h | |
0a95276e | 4354 | float_format=m68k |
861bb6c1 JL |
4355 | ;; |
4356 | m68k-next-nextstep2*) | |
4357 | tm_file=m68k/next21.h | |
f6cb0e63 | 4358 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4359 | tmake_file=m68k/t-next |
4360 | xmake_file=m68k/x-next | |
4361 | extra_objs=nextstep.o | |
4362 | extra_headers=math-68881.h | |
4363 | use_collect2=yes | |
0a95276e | 4364 | float_format=m68k |
861bb6c1 JL |
4365 | ;; |
4366 | m68k-next-nextstep3*) | |
4367 | tm_file=m68k/next.h | |
f6cb0e63 | 4368 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4369 | tmake_file=m68k/t-next |
4370 | xmake_file=m68k/x-next | |
4371 | extra_objs=nextstep.o | |
750930c1 | 4372 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4373 | extra_headers=math-68881.h |
0a95276e | 4374 | float_format=m68k |
75bffa71 | 4375 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4376 | thread_file='mach' |
4377 | fi | |
4378 | ;; | |
4379 | m68k-sun-sunos3*) | |
75bffa71 | 4380 | if test x$with_fp = xno |
861bb6c1 JL |
4381 | then |
4382 | tm_file=m68k/sun3n3.h | |
4383 | else | |
4384 | tm_file=m68k/sun3o3.h | |
0a95276e | 4385 | float_format=m68k |
861bb6c1 JL |
4386 | fi |
4387 | use_collect2=yes | |
4388 | extra_headers=math-68881.h | |
4389 | ;; | |
4390 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4391 | if test x$with_fp = xno |
861bb6c1 JL |
4392 | then |
4393 | tm_file=m68k/sun3n.h | |
4394 | else | |
4395 | tm_file=m68k/sun3.h | |
0a95276e | 4396 | float_format=m68k |
861bb6c1 | 4397 | fi |
861bb6c1 JL |
4398 | use_collect2=yes |
4399 | extra_headers=math-68881.h | |
4400 | ;; | |
4401 | m68k-wrs-vxworks*) | |
4402 | tm_file=m68k/vxm68k.h | |
4403 | tmake_file=m68k/t-vxworks68 | |
4404 | extra_headers=math-68881.h | |
7cc34889 | 4405 | thread_file='vxworks' |
0a95276e | 4406 | float_format=m68k |
861bb6c1 JL |
4407 | ;; |
4408 | m68k-*-aout*) | |
4409 | tmake_file=m68k/t-m68kbare | |
4410 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4411 | extra_headers=math-68881.h | |
0a95276e | 4412 | float_format=m68k |
861bb6c1 JL |
4413 | ;; |
4414 | m68k-*-coff*) | |
4415 | tmake_file=m68k/t-m68kbare | |
4416 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4417 | extra_headers=math-68881.h | |
0a95276e | 4418 | float_format=m68k |
861bb6c1 | 4419 | ;; |
d1be3be3 | 4420 | m68020-*-elf* | m68k-*-elf*) |
7aae67a2 | 4421 | tm_file="m68k/m68020-elf.h" |
d1be3be3 JW |
4422 | xm_file=m68k/xm-m68kv.h |
4423 | tmake_file=m68k/t-m68kelf | |
4424 | header_files=math-68881.h | |
4425 | ;; | |
861bb6c1 | 4426 | m68k-*-lynxos*) |
75bffa71 | 4427 | if test x$gas = xyes |
861bb6c1 JL |
4428 | then |
4429 | tm_file=m68k/lynx.h | |
4430 | else | |
4431 | tm_file=m68k/lynx-ng.h | |
4432 | fi | |
4433 | xm_file=m68k/xm-lynx.h | |
4434 | xmake_file=x-lynx | |
4435 | tmake_file=m68k/t-lynx | |
4436 | extra_headers=math-68881.h | |
0a95276e | 4437 | float_format=m68k |
861bb6c1 | 4438 | ;; |
58600d24 | 4439 | m68k*-*-netbsd*) |
861bb6c1 | 4440 | tm_file=m68k/netbsd.h |
861bb6c1 | 4441 | tmake_file=t-netbsd |
0a95276e | 4442 | float_format=m68k |
af0ca027 | 4443 | use_collect2=yes |
861bb6c1 | 4444 | ;; |
1b4a979b ME |
4445 | m68k*-*-openbsd*) |
4446 | float_format=m68k | |
4447 | # we need collect2 until our bug is fixed... | |
4448 | use_collect2=yes | |
4449 | ;; | |
861bb6c1 | 4450 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4451 | xm_file="xm-alloca.h ${xm_file}" |
4452 | xm_defines=USG | |
861bb6c1 JL |
4453 | xmake_file=m68k/x-m68kv |
4454 | extra_parts="crtbegin.o crtend.o" | |
4455 | extra_headers=math-68881.h | |
0a95276e | 4456 | float_format=m68k |
861bb6c1 JL |
4457 | ;; |
4458 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4459 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4460 | xm_file="xm-alloca.h ${xm_file}" |
4461 | xm_defines=USG | |
861bb6c1 JL |
4462 | tmake_file=t-svr4 |
4463 | extra_parts="crtbegin.o crtend.o" | |
4464 | extra_headers=math-68881.h | |
0a95276e | 4465 | float_format=m68k |
861bb6c1 | 4466 | ;; |
956d6950 | 4467 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4468 | # with a.out format |
861bb6c1 JL |
4469 | xmake_file=x-linux |
4470 | tm_file=m68k/linux-aout.h | |
4471 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
861bb6c1 | 4472 | extra_headers=math-68881.h |
0a95276e | 4473 | float_format=m68k |
861bb6c1 JL |
4474 | gnu_ld=yes |
4475 | ;; | |
956d6950 | 4476 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4477 | # with ELF format using the |
4478 | # GNU/Linux C library 5 | |
4479 | xmake_file=x-linux | |
861bb6c1 JL |
4480 | tm_file=m68k/linux.h |
4481 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4482 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4483 | extra_headers=math-68881.h |
0a95276e | 4484 | float_format=m68k |
861bb6c1 JL |
4485 | gnu_ld=yes |
4486 | ;; | |
956d6950 | 4487 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4488 | # with ELF format using glibc 2 |
4489 | # aka the GNU/Linux C library 6. | |
4490 | xmake_file=x-linux | |
861bb6c1 JL |
4491 | tm_file=m68k/linux.h |
4492 | tmake_file="t-linux m68k/t-linux" | |
4493 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
861bb6c1 | 4494 | extra_headers=math-68881.h |
0a95276e | 4495 | float_format=m68k |
861bb6c1 | 4496 | gnu_ld=yes |
75bffa71 | 4497 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4498 | thread_file='posix' |
4499 | fi | |
4500 | ;; | |
4501 | m68k-*-psos*) | |
4502 | tmake_file=m68k/t-m68kbare | |
4503 | tm_file=m68k/m68k-psos.h | |
4504 | extra_headers=math-68881.h | |
0a95276e | 4505 | float_format=m68k |
861bb6c1 JL |
4506 | ;; |
4507 | m68k-*-rtems*) | |
4508 | tmake_file="m68k/t-m68kbare t-rtems" | |
4509 | tm_file=m68k/rtems.h | |
4510 | extra_headers=math-68881.h | |
0a95276e | 4511 | float_format=m68k |
861bb6c1 JL |
4512 | ;; |
4513 | ||
4514 | m88k-dg-dgux*) | |
4515 | case $machine in | |
4516 | m88k-dg-dguxbcs*) | |
4517 | tm_file=m88k/dguxbcs.h | |
4518 | tmake_file=m88k/t-dguxbcs | |
4519 | ;; | |
4520 | *) | |
4521 | tm_file=m88k/dgux.h | |
4522 | tmake_file=m88k/t-dgux | |
4523 | ;; | |
4524 | esac | |
4525 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4526 | xmake_file=m88k/x-dgux |
75bffa71 | 4527 | if test x$gas = xyes |
861bb6c1 JL |
4528 | then |
4529 | tmake_file=m88k/t-dgux-gas | |
4530 | fi | |
861bb6c1 JL |
4531 | ;; |
4532 | m88k-dolphin-sysv3*) | |
4533 | tm_file=m88k/dolph.h | |
4534 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4535 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4536 | xmake_file=m88k/x-dolph |
75bffa71 | 4537 | if test x$gas = xyes |
861bb6c1 JL |
4538 | then |
4539 | tmake_file=m88k/t-m88k-gas | |
4540 | fi | |
4541 | ;; | |
4542 | m88k-tektronix-sysv3) | |
4543 | tm_file=m88k/tekXD88.h | |
4544 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4545 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4546 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 4547 | if test x$gas = xyes |
861bb6c1 JL |
4548 | then |
4549 | tmake_file=m88k/t-m88k-gas | |
4550 | fi | |
4551 | ;; | |
4552 | m88k-*-aout*) | |
4553 | tm_file=m88k/m88k-aout.h | |
4554 | ;; | |
4555 | m88k-*-coff*) | |
4556 | tm_file=m88k/m88k-coff.h | |
4557 | tmake_file=m88k/t-bug | |
4558 | ;; | |
4559 | m88k-*-luna*) | |
4560 | tm_file=m88k/luna.h | |
4561 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 4562 | if test x$gas = xyes |
861bb6c1 JL |
4563 | then |
4564 | tmake_file=m88k/t-luna-gas | |
4565 | else | |
4566 | tmake_file=m88k/t-luna | |
4567 | fi | |
4568 | ;; | |
1b4a979b ME |
4569 | m88k-*-openbsd*) |
4570 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
4571 | ;; | |
861bb6c1 JL |
4572 | m88k-*-sysv3*) |
4573 | tm_file=m88k/sysv3.h | |
4574 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4575 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4576 | xmake_file=m88k/x-sysv3 |
75bffa71 | 4577 | if test x$gas = xyes |
861bb6c1 JL |
4578 | then |
4579 | tmake_file=m88k/t-m88k-gas | |
4580 | fi | |
4581 | ;; | |
4582 | m88k-*-sysv4*) | |
4583 | tm_file=m88k/sysv4.h | |
4584 | extra_parts="crtbegin.o crtend.o" | |
4585 | xmake_file=m88k/x-sysv4 | |
4586 | tmake_file=m88k/t-sysv4 | |
4587 | ;; | |
4588 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
9b5c756a JL |
4589 | if test "x$gnu_ld" = xyes |
4590 | then | |
4591 | tm_file="mips/iris6.h mips/iris6gld.h" | |
9b5c756a JL |
4592 | else |
4593 | tm_file=mips/iris6.h | |
9b5c756a | 4594 | fi |
30f08b39 | 4595 | tmake_file=mips/t-iris6 |
861bb6c1 | 4596 | xm_file=mips/xm-iris6.h |
861bb6c1 | 4597 | xmake_file=mips/x-iris6 |
04069e5c | 4598 | # if test x$enable_threads = xyes; then |
6e148807 | 4599 | # thread_file='irix' |
04069e5c | 4600 | # fi |
861bb6c1 | 4601 | ;; |
98bd9f0f | 4602 | mips-wrs-vxworks) |
7aae67a2 | 4603 | tm_file="mips/elf.h mips/vxworks.h" |
98bd9f0f DB |
4604 | tmake_file=mips/t-ecoff |
4605 | gas=yes | |
4606 | gnu_ld=yes | |
4607 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 4608 | thread_file='vxworks' |
98bd9f0f | 4609 | ;; |
861bb6c1 | 4610 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 4611 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
4612 | xm_defines=USG |
4613 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4614 | xmake_file=mips/x-iris |
4615 | tmake_file=mips/t-cross64 | |
4616 | # See comment in mips/iris[56].h files. | |
4617 | use_collect2=yes | |
04069e5c | 4618 | # if test x$enable_threads = xyes; then |
6e148807 | 4619 | # thread_file='irix' |
04069e5c | 4620 | # fi |
861bb6c1 JL |
4621 | ;; |
4622 | mips-sni-sysv4) | |
75bffa71 | 4623 | if test x$gas = xyes |
861bb6c1 | 4624 | then |
75bffa71 | 4625 | if test x$stabs = xyes |
861bb6c1 JL |
4626 | then |
4627 | tm_file=mips/iris5gdb.h | |
4628 | else | |
f6cb0e63 | 4629 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
4630 | fi |
4631 | else | |
4632 | tm_file=mips/sni-svr4.h | |
4633 | fi | |
f6cb0e63 | 4634 | xm_defines=USG |
861bb6c1 JL |
4635 | xmake_file=mips/x-sni-svr4 |
4636 | tmake_file=mips/t-mips-gas | |
75bffa71 | 4637 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4638 | then |
4639 | use_collect2=yes | |
4640 | fi | |
861bb6c1 JL |
4641 | ;; |
4642 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 4643 | if test x$gas = xyes |
861bb6c1 | 4644 | then |
f6cb0e63 | 4645 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 4646 | if test x$stabs = xyes |
861bb6c1 JL |
4647 | then |
4648 | tm_file="${tm_file} dbx.h" | |
4649 | fi | |
4650 | else | |
4651 | tm_file=mips/iris5.h | |
4652 | fi | |
74c55ab0 JW |
4653 | xm_defines=USG |
4654 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4655 | xmake_file=mips/x-iris |
4656 | # mips-tfile doesn't work yet | |
4657 | tmake_file=mips/t-mips-gas | |
4658 | # See comment in mips/iris5.h file. | |
4659 | use_collect2=yes | |
04069e5c | 4660 | # if test x$enable_threads = xyes; then |
6e148807 | 4661 | # thread_file='irix' |
04069e5c | 4662 | # fi |
861bb6c1 JL |
4663 | ;; |
4664 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 4665 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4666 | if test x$stabs = xyes; then |
861bb6c1 JL |
4667 | tm_file="${tm_file} dbx.h" |
4668 | fi | |
f6cb0e63 | 4669 | xm_defines=USG |
861bb6c1 | 4670 | xmake_file=mips/x-iris |
75bffa71 | 4671 | if test x$gas = xyes |
861bb6c1 JL |
4672 | then |
4673 | tmake_file=mips/t-mips-gas | |
4674 | else | |
4675 | extra_passes="mips-tfile mips-tdump" | |
4676 | fi | |
75bffa71 | 4677 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4678 | then |
4679 | use_collect2=yes | |
4680 | fi | |
04069e5c | 4681 | # if test x$enable_threads = xyes; then |
6e148807 | 4682 | # thread_file='irix' |
04069e5c | 4683 | # fi |
861bb6c1 JL |
4684 | ;; |
4685 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 4686 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4687 | if test x$stabs = xyes; then |
861bb6c1 JL |
4688 | tm_file="${tm_file} dbx.h" |
4689 | fi | |
f6cb0e63 | 4690 | xm_defines=USG |
861bb6c1 | 4691 | xmake_file=mips/x-iris |
75bffa71 | 4692 | if test x$gas = xyes |
861bb6c1 JL |
4693 | then |
4694 | tmake_file=mips/t-mips-gas | |
4695 | else | |
4696 | extra_passes="mips-tfile mips-tdump" | |
4697 | fi | |
75bffa71 | 4698 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4699 | then |
4700 | use_collect2=yes | |
4701 | fi | |
04069e5c | 4702 | # if test x$enable_threads = xyes; then |
6e148807 | 4703 | # thread_file='irix' |
04069e5c | 4704 | # fi |
861bb6c1 JL |
4705 | ;; |
4706 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 4707 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 4708 | if test x$stabs = xyes; then |
861bb6c1 JL |
4709 | tm_file="${tm_file} dbx.h" |
4710 | fi | |
f6cb0e63 | 4711 | xm_defines=USG |
861bb6c1 | 4712 | xmake_file=mips/x-iris3 |
75bffa71 | 4713 | if test x$gas = xyes |
861bb6c1 JL |
4714 | then |
4715 | tmake_file=mips/t-mips-gas | |
4716 | else | |
4717 | extra_passes="mips-tfile mips-tdump" | |
4718 | fi | |
75bffa71 | 4719 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4720 | then |
4721 | use_collect2=yes | |
4722 | fi | |
4723 | ;; | |
4724 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 4725 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
4726 | xmake_file=mips/x-osfrose |
4727 | tmake_file=mips/t-osfrose | |
4728 | extra_objs=halfpic.o | |
4729 | use_collect2=yes | |
4730 | ;; | |
4731 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
4732 | tm_file=mips/dec-osf1.h | |
75bffa71 | 4733 | if test x$stabs = xyes; then |
861bb6c1 JL |
4734 | tm_file="${tm_file} dbx.h" |
4735 | fi | |
4736 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 4737 | if test x$gas = xyes |
861bb6c1 JL |
4738 | then |
4739 | tmake_file=mips/t-mips-gas | |
4740 | else | |
4741 | tmake_file=mips/t-ultrix | |
4742 | extra_passes="mips-tfile mips-tdump" | |
4743 | fi | |
75bffa71 | 4744 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4745 | then |
4746 | use_collect2=yes | |
4747 | fi | |
4748 | ;; | |
4749 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
4750 | tm_file=mips/dec-bsd.h | |
75bffa71 | 4751 | if test x$gas = xyes |
861bb6c1 JL |
4752 | then |
4753 | tmake_file=mips/t-mips-gas | |
4754 | else | |
4755 | tmake_file=mips/t-ultrix | |
4756 | extra_passes="mips-tfile mips-tdump" | |
4757 | fi | |
75bffa71 | 4758 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4759 | then |
4760 | use_collect2=yes | |
4761 | fi | |
4762 | ;; | |
58600d24 | 4763 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 4764 | tm_file=mips/netbsd.h |
be1ed94f | 4765 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 4766 | tmake_file=t-netbsd |
861bb6c1 | 4767 | ;; |
54953b66 | 4768 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
4769 | xmake_file=x-linux |
4770 | xm_file="xm-siglist.h ${xm_file}" | |
54953b66 UD |
4771 | case $machine in |
4772 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
4773 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
4774 | esac | |
18cae839 RL |
4775 | extra_parts="crtbegin.o crtend.o" |
4776 | gnu_ld=yes | |
4777 | gas=yes | |
18cae839 | 4778 | ;; |
1b4a979b ME |
4779 | mips*el-*-openbsd*) # mips little endian |
4780 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4781 | tm_file=mips/openbsd.h | |
1b4a979b ME |
4782 | ;; |
4783 | mips*-*-openbsd*) # mips big endian | |
4784 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4785 | tm_file=mips/openbsd-be.h | |
1b4a979b | 4786 | ;; |
861bb6c1 | 4787 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 4788 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 4789 | if test x$stabs = xyes; then |
861bb6c1 JL |
4790 | tm_file="${tm_file} dbx.h" |
4791 | fi | |
75bffa71 | 4792 | if test x$gas = xyes |
861bb6c1 JL |
4793 | then |
4794 | tmake_file=mips/t-mips-gas | |
4795 | else | |
4796 | extra_passes="mips-tfile mips-tdump" | |
4797 | fi | |
75bffa71 | 4798 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4799 | then |
4800 | use_collect2=yes | |
4801 | fi | |
4802 | xmake_file=mips/x-sony | |
4803 | ;; | |
4804 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
4805 | # That is based on svr4. | |
4806 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 4807 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 4808 | if test x$stabs = xyes; then |
861bb6c1 JL |
4809 | tm_file="${tm_file} dbx.h" |
4810 | fi | |
f6cb0e63 JL |
4811 | xm_file="xm-siglist.h ${xm_file}" |
4812 | xm_defines=USG | |
75bffa71 | 4813 | if test x$gas = xyes |
861bb6c1 JL |
4814 | then |
4815 | tmake_file=mips/t-mips-gas | |
4816 | else | |
4817 | extra_passes="mips-tfile mips-tdump" | |
4818 | fi | |
75bffa71 | 4819 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4820 | then |
4821 | use_collect2=yes | |
4822 | fi | |
4823 | ;; | |
4824 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 4825 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 4826 | if test x$stabs = xyes; then |
861bb6c1 JL |
4827 | tm_file="${tm_file} dbx.h" |
4828 | fi | |
f6cb0e63 JL |
4829 | xm_file="xm-siglist.h ${xm_file}" |
4830 | xm_defines=USG | |
861bb6c1 | 4831 | xmake_file=mips/x-sysv |
75bffa71 | 4832 | if test x$gas = xyes |
861bb6c1 JL |
4833 | then |
4834 | tmake_file=mips/t-mips-gas | |
4835 | extra_parts="crtbegin.o crtend.o" | |
4836 | else | |
4837 | tmake_file=mips/t-mips | |
4838 | extra_passes="mips-tfile mips-tdump" | |
4839 | fi | |
75bffa71 | 4840 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4841 | then |
4842 | use_collect2=yes | |
4843 | fi | |
861bb6c1 JL |
4844 | ;; |
4845 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 4846 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 4847 | if test x$stabs = xyes; then |
861bb6c1 JL |
4848 | tm_file="${tm_file} dbx.h" |
4849 | fi | |
4850 | xmake_file=mips/x-ultrix | |
75bffa71 | 4851 | if test x$gas = xyes |
861bb6c1 JL |
4852 | then |
4853 | tmake_file=mips/t-mips-gas | |
4854 | else | |
4855 | tmake_file=mips/t-ultrix | |
4856 | extra_passes="mips-tfile mips-tdump" | |
4857 | fi | |
75bffa71 | 4858 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4859 | then |
4860 | use_collect2=yes | |
4861 | fi | |
4862 | ;; | |
4863 | mips-*-riscos[56789]bsd*) | |
4864 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 4865 | if test x$stabs = xyes; then |
861bb6c1 JL |
4866 | tm_file="${tm_file} dbx.h" |
4867 | fi | |
75bffa71 | 4868 | if test x$gas = xyes |
861bb6c1 JL |
4869 | then |
4870 | tmake_file=mips/t-bsd-gas | |
4871 | else | |
4872 | tmake_file=mips/t-bsd | |
4873 | extra_passes="mips-tfile mips-tdump" | |
4874 | fi | |
75bffa71 | 4875 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4876 | then |
4877 | use_collect2=yes | |
4878 | fi | |
861bb6c1 JL |
4879 | ;; |
4880 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 4881 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 4882 | if test x$stabs = xyes; then |
861bb6c1 JL |
4883 | tm_file="${tm_file} dbx.h" |
4884 | fi | |
75bffa71 | 4885 | if test x$gas = xyes |
861bb6c1 JL |
4886 | then |
4887 | tmake_file=mips/t-bsd-gas | |
4888 | else | |
4889 | tmake_file=mips/t-bsd | |
4890 | extra_passes="mips-tfile mips-tdump" | |
4891 | fi | |
75bffa71 | 4892 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4893 | then |
4894 | use_collect2=yes | |
4895 | fi | |
861bb6c1 JL |
4896 | ;; |
4897 | mips-*-riscos[56789]sysv4*) | |
4898 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 4899 | if test x$stabs = xyes; then |
861bb6c1 JL |
4900 | tm_file="${tm_file} dbx.h" |
4901 | fi | |
f6cb0e63 | 4902 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 | 4903 | xmake_file=mips/x-sysv |
75bffa71 | 4904 | if test x$gas = xyes |
861bb6c1 JL |
4905 | then |
4906 | tmake_file=mips/t-svr4-gas | |
4907 | else | |
4908 | tmake_file=mips/t-svr4 | |
4909 | extra_passes="mips-tfile mips-tdump" | |
4910 | fi | |
75bffa71 | 4911 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4912 | then |
4913 | use_collect2=yes | |
4914 | fi | |
861bb6c1 JL |
4915 | ;; |
4916 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 4917 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 4918 | if test x$stabs = xyes; then |
861bb6c1 JL |
4919 | tm_file="${tm_file} dbx.h" |
4920 | fi | |
f6cb0e63 | 4921 | xm_defines=USG |
861bb6c1 | 4922 | xmake_file=mips/x-sysv |
75bffa71 | 4923 | if test x$gas = xyes |
861bb6c1 JL |
4924 | then |
4925 | tmake_file=mips/t-svr4-gas | |
4926 | else | |
4927 | tmake_file=mips/t-svr4 | |
4928 | extra_passes="mips-tfile mips-tdump" | |
4929 | fi | |
75bffa71 | 4930 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4931 | then |
4932 | use_collect2=yes | |
4933 | fi | |
861bb6c1 JL |
4934 | ;; |
4935 | mips-*-riscos[56789]sysv*) | |
4936 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 4937 | if test x$stabs = xyes; then |
861bb6c1 JL |
4938 | tm_file="${tm_file} dbx.h" |
4939 | fi | |
f6cb0e63 | 4940 | xm_defines=USG |
861bb6c1 | 4941 | xmake_file=mips/x-sysv |
75bffa71 | 4942 | if test x$gas = xyes |
861bb6c1 JL |
4943 | then |
4944 | tmake_file=mips/t-svr3-gas | |
4945 | else | |
4946 | tmake_file=mips/t-svr3 | |
4947 | extra_passes="mips-tfile mips-tdump" | |
4948 | fi | |
75bffa71 | 4949 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4950 | then |
4951 | use_collect2=yes | |
4952 | fi | |
861bb6c1 JL |
4953 | ;; |
4954 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4955 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 4956 | if test x$stabs = xyes; then |
861bb6c1 JL |
4957 | tm_file="${tm_file} dbx.h" |
4958 | fi | |
f6cb0e63 | 4959 | xm_defines=USG |
861bb6c1 | 4960 | xmake_file=mips/x-sysv |
75bffa71 | 4961 | if test x$gas = xyes |
861bb6c1 JL |
4962 | then |
4963 | tmake_file=mips/t-svr3-gas | |
4964 | else | |
4965 | tmake_file=mips/t-svr3 | |
4966 | extra_passes="mips-tfile mips-tdump" | |
4967 | fi | |
75bffa71 | 4968 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4969 | then |
4970 | use_collect2=yes | |
4971 | fi | |
861bb6c1 JL |
4972 | ;; |
4973 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4974 | tm_file=mips/mips-5.h | |
75bffa71 | 4975 | if test x$stabs = xyes; then |
861bb6c1 JL |
4976 | tm_file="${tm_file} dbx.h" |
4977 | fi | |
75bffa71 | 4978 | if test x$gas = xyes |
861bb6c1 JL |
4979 | then |
4980 | tmake_file=mips/t-mips-gas | |
4981 | else | |
4982 | extra_passes="mips-tfile mips-tdump" | |
4983 | fi | |
75bffa71 | 4984 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4985 | then |
4986 | use_collect2=yes | |
4987 | fi | |
861bb6c1 JL |
4988 | ;; |
4989 | mips-*-gnu*) | |
4990 | ;; | |
4991 | mipsel-*-ecoff*) | |
4992 | tm_file=mips/ecoffl.h | |
75bffa71 | 4993 | if test x$stabs = xyes; then |
861bb6c1 JL |
4994 | tm_file="${tm_file} dbx.h" |
4995 | fi | |
4996 | tmake_file=mips/t-ecoff | |
4997 | ;; | |
4998 | mips-*-ecoff*) | |
1be12a4a | 4999 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 5000 | if test x$stabs = xyes; then |
861bb6c1 JL |
5001 | tm_file="${tm_file} dbx.h" |
5002 | fi | |
5003 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
5004 | ;; |
5005 | mipsel-*-elf*) | |
7aae67a2 | 5006 | tm_file="mips/elfl.h" |
d8265d29 | 5007 | tmake_file=mips/t-elf |
861bb6c1 JL |
5008 | ;; |
5009 | mips-*-elf*) | |
d8265d29 CM |
5010 | tm_file="mips/elf.h" |
5011 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5012 | ;; |
5013 | mips64el-*-elf*) | |
d8265d29 CM |
5014 | tm_file="mips/elfl64.h" |
5015 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5016 | ;; |
5017 | mips64orionel-*-elf*) | |
7aae67a2 | 5018 | tm_file="mips/elforion.h mips/elfl64.h" |
d8265d29 | 5019 | tmake_file=mips/t-elf |
861bb6c1 JL |
5020 | ;; |
5021 | mips64-*-elf*) | |
d8265d29 CM |
5022 | tm_file="mips/elf64.h" |
5023 | tmake_file=mips/t-elf | |
861bb6c1 JL |
5024 | ;; |
5025 | mips64orion-*-elf*) | |
7aae67a2 | 5026 | tm_file="mips/elforion.h mips/elf64.h" |
d8265d29 | 5027 | tmake_file=mips/t-elf |
861bb6c1 JL |
5028 | ;; |
5029 | mips64orion-*-rtems*) | |
6e9856ba | 5030 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
861bb6c1 JL |
5031 | tmake_file="mips/t-ecoff t-rtems" |
5032 | ;; | |
e9a25f70 | 5033 | mipstx39el-*-elf*) |
d8265d29 | 5034 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h" |
09e4daf5 | 5035 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
5036 | ;; |
5037 | mipstx39-*-elf*) | |
d8265d29 | 5038 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h" |
09e4daf5 | 5039 | tmake_file=mips/t-r3900 |
e9a25f70 | 5040 | ;; |
861bb6c1 | 5041 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 5042 | if test x$stabs = xyes; then |
861bb6c1 JL |
5043 | tm_file="${tm_file} dbx.h" |
5044 | fi | |
75bffa71 | 5045 | if test x$gas = xyes |
861bb6c1 JL |
5046 | then |
5047 | tmake_file=mips/t-mips-gas | |
5048 | else | |
5049 | extra_passes="mips-tfile mips-tdump" | |
5050 | fi | |
75bffa71 | 5051 | if test x$gnu_ld != xyes |
861bb6c1 JL |
5052 | then |
5053 | use_collect2=yes | |
5054 | fi | |
5055 | ;; | |
5056 | mn10200-*-*) | |
5057 | cpu_type=mn10200 | |
5058 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 5059 | if test x$stabs = xyes |
861bb6c1 JL |
5060 | then |
5061 | tm_file="${tm_file} dbx.h" | |
5062 | fi | |
5063 | use_collect2=no | |
5064 | ;; | |
5065 | mn10300-*-*) | |
5066 | cpu_type=mn10300 | |
5067 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 5068 | if test x$stabs = xyes |
861bb6c1 JL |
5069 | then |
5070 | tm_file="${tm_file} dbx.h" | |
5071 | fi | |
5072 | use_collect2=no | |
5073 | ;; | |
5074 | ns32k-encore-bsd*) | |
5075 | tm_file=ns32k/encore.h | |
5076 | use_collect2=yes | |
5077 | ;; | |
5078 | ns32k-sequent-bsd*) | |
5079 | tm_file=ns32k/sequent.h | |
5080 | use_collect2=yes | |
5081 | ;; | |
5082 | ns32k-tek6100-bsd*) | |
5083 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
5084 | use_collect2=yes |
5085 | ;; | |
5086 | ns32k-tek6200-bsd*) | |
5087 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
5088 | use_collect2=yes |
5089 | ;; | |
5090 | # This has not been updated to GCC 2. | |
5091 | # ns32k-ns-genix*) | |
f6cb0e63 | 5092 | # xm_defines=USG |
861bb6c1 JL |
5093 | # xmake_file=ns32k/x-genix |
5094 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
5095 | # use_collect2=yes |
5096 | # ;; | |
5097 | ns32k-merlin-*) | |
5098 | tm_file=ns32k/merlin.h | |
5099 | use_collect2=yes | |
5100 | ;; | |
5101 | ns32k-pc532-mach*) | |
5102 | tm_file=ns32k/pc532-mach.h | |
5103 | use_collect2=yes | |
5104 | ;; | |
5105 | ns32k-pc532-minix*) | |
5106 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
5107 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
5108 | xm_defines=USG | |
861bb6c1 JL |
5109 | use_collect2=yes |
5110 | ;; | |
58600d24 | 5111 | ns32k-*-netbsd*) |
861bb6c1 | 5112 | tm_file=ns32k/netbsd.h |
641d4216 | 5113 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 5114 | # On NetBSD, the headers are already okay, except for math.h. |
861bb6c1 | 5115 | tmake_file=t-netbsd |
af0ca027 | 5116 | use_collect2=yes |
861bb6c1 JL |
5117 | ;; |
5118 | pdp11-*-bsd) | |
5119 | tm_file="${tm_file} pdp11/2bsd.h" | |
5120 | ;; | |
5121 | pdp11-*-*) | |
5122 | ;; | |
1b4a979b ME |
5123 | ns32k-*-openbsd*) |
5124 | # Nothing special | |
5125 | ;; | |
861bb6c1 JL |
5126 | pyramid-*-*) |
5127 | cpu_type=pyr | |
5128 | xmake_file=pyr/x-pyr | |
5129 | use_collect2=yes | |
5130 | ;; | |
5131 | romp-*-aos*) | |
5132 | use_collect2=yes | |
5133 | ;; | |
5134 | romp-*-mach*) | |
5135 | xmake_file=romp/x-mach | |
5136 | use_collect2=yes | |
5137 | ;; | |
1b4a979b ME |
5138 | romp-*-openbsd*) |
5139 | # Nothing special | |
5140 | ;; | |
5141 | powerpc-*-openbsd*) | |
5142 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
1b4a979b | 5143 | ;; |
c55dcc7d FF |
5144 | powerpc-*-beos*) |
5145 | cpu_type=rs6000 | |
5146 | tm_file=rs6000/beos.h | |
5147 | xm_file=rs6000/xm-beos.h | |
5148 | tmake_file=rs6000/t-beos | |
5149 | xmake_file=rs6000/x-beos | |
5150 | ;; | |
861bb6c1 JL |
5151 | powerpc-*-sysv* | powerpc-*-elf*) |
5152 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
5153 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5154 | xm_defines="USG POSIX" | |
861bb6c1 | 5155 | extra_headers=ppc-asm.h |
75bffa71 | 5156 | if test x$gas = xyes |
861bb6c1 JL |
5157 | then |
5158 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5159 | else | |
5160 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5161 | fi | |
5162 | xmake_file=rs6000/x-sysv4 | |
5163 | ;; | |
5164 | powerpc-*-eabiaix*) | |
5165 | tm_file=rs6000/eabiaix.h | |
5166 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5167 | extra_headers=ppc-asm.h |
5168 | ;; | |
5169 | powerpc-*-eabisim*) | |
5170 | tm_file=rs6000/eabisim.h | |
5171 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5172 | extra_headers=ppc-asm.h |
5173 | ;; | |
5174 | powerpc-*-eabi*) | |
5175 | tm_file=rs6000/eabi.h | |
75bffa71 | 5176 | if test x$gas = xyes |
861bb6c1 JL |
5177 | then |
5178 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5179 | else | |
5180 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5181 | fi | |
861bb6c1 JL |
5182 | extra_headers=ppc-asm.h |
5183 | ;; | |
5184 | powerpc-*-rtems*) | |
5185 | tm_file=rs6000/rtems.h | |
75bffa71 | 5186 | if test x$gas = xyes |
861bb6c1 JL |
5187 | then |
5188 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5189 | else | |
5190 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5191 | fi | |
861bb6c1 JL |
5192 | extra_headers=ppc-asm.h |
5193 | ;; | |
ce514f57 FS |
5194 | powerpc-*-linux-gnulibc1) |
5195 | tm_file=rs6000/linux.h | |
5196 | xm_file=rs6000/xm-sysv4.h | |
5197 | out_file=rs6000/rs6000.c | |
75bffa71 | 5198 | if test x$gas = xyes |
ce514f57 FS |
5199 | then |
5200 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5201 | else | |
5202 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5203 | fi | |
5204 | xmake_file=x-linux | |
ce514f57 FS |
5205 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5206 | extra_headers=ppc-asm.h | |
75bffa71 | 5207 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5208 | thread_file='posix' |
5209 | fi | |
5210 | ;; | |
861bb6c1 JL |
5211 | powerpc-*-linux-gnu*) |
5212 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
5213 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5214 | xm_defines="USG ${xm_defines}" | |
861bb6c1 | 5215 | out_file=rs6000/rs6000.c |
75bffa71 | 5216 | if test x$gas = xyes |
861bb6c1 JL |
5217 | then |
5218 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5219 | else | |
5220 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5221 | fi | |
5222 | xmake_file=x-linux | |
861bb6c1 JL |
5223 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5224 | extra_headers=ppc-asm.h | |
75bffa71 | 5225 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5226 | thread_file='posix' |
5227 | fi | |
5228 | ;; | |
7cc34889 | 5229 | powerpc-wrs-vxworks*) |
861bb6c1 | 5230 | cpu_type=rs6000 |
f6cb0e63 JL |
5231 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5232 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5233 | tm_file=rs6000/vxppc.h |
5234 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5235 | extra_headers=ppc-asm.h | |
7cc34889 | 5236 | thread_file='vxworks' |
861bb6c1 JL |
5237 | ;; |
5238 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
5239 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
5240 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5241 | xm_defines="USG POSIX" | |
75bffa71 | 5242 | if test x$gas = xyes |
861bb6c1 JL |
5243 | then |
5244 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5245 | else | |
5246 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5247 | fi | |
5248 | xmake_file=rs6000/x-sysv4 | |
5249 | extra_headers=ppc-asm.h | |
5250 | ;; | |
5251 | powerpcle-*-eabisim*) | |
5252 | tm_file=rs6000/eabilesim.h | |
5253 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
861bb6c1 JL |
5254 | extra_headers=ppc-asm.h |
5255 | ;; | |
5256 | powerpcle-*-eabi*) | |
5257 | tm_file=rs6000/eabile.h | |
75bffa71 | 5258 | if test x$gas = xyes |
861bb6c1 JL |
5259 | then |
5260 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5261 | else | |
5262 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5263 | fi | |
861bb6c1 JL |
5264 | extra_headers=ppc-asm.h |
5265 | ;; | |
5266 | powerpcle-*-winnt* ) | |
5267 | tm_file=rs6000/win-nt.h | |
5268 | tmake_file=rs6000/t-winnt | |
5269 | # extra_objs=pe.o | |
75bffa71 | 5270 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5271 | thread_file='win32' |
5272 | fi | |
5273 | extra_headers=ppc-asm.h | |
5274 | ;; | |
cae21ae8 GN |
5275 | powerpcle-*-pe | powerpcle-*-cygwin*) |
5276 | tm_file=rs6000/cygwin.h | |
5277 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
861bb6c1 | 5278 | tmake_file=rs6000/t-winnt |
cae21ae8 | 5279 | xmake_file=rs6000/x-cygwin |
861bb6c1 | 5280 | # extra_objs=pe.o |
75bffa71 | 5281 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5282 | thread_file='win32' |
5283 | fi | |
5284 | exeext=.exe | |
5285 | extra_headers=ppc-asm.h | |
5286 | ;; | |
5287 | powerpcle-*-solaris2*) | |
5288 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
5289 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5290 | xm_defines="USG POSIX" | |
75bffa71 | 5291 | if test x$gas = xyes |
861bb6c1 JL |
5292 | then |
5293 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5294 | else | |
5295 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5296 | fi | |
5297 | xmake_file=rs6000/x-sysv4 | |
861bb6c1 JL |
5298 | extra_headers=ppc-asm.h |
5299 | ;; | |
5300 | rs6000-ibm-aix3.[01]*) | |
5301 | tm_file=rs6000/aix31.h | |
5302 | xmake_file=rs6000/x-aix31 | |
45e24d08 | 5303 | float_format=none |
861bb6c1 JL |
5304 | use_collect2=yes |
5305 | ;; | |
5306 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5307 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5308 | if test x$host != x$target |
861bb6c1 JL |
5309 | then |
5310 | tmake_file=rs6000/t-xnewas | |
5311 | else | |
5312 | tmake_file=rs6000/t-newas | |
5313 | fi | |
45e24d08 | 5314 | float_format=none |
861bb6c1 JL |
5315 | use_collect2=yes |
5316 | ;; | |
05cea40f | 5317 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
590e30e7 | 5318 | tm_file=rs6000/aix41.h |
75bffa71 | 5319 | if test x$host != x$target |
861bb6c1 JL |
5320 | then |
5321 | tmake_file=rs6000/t-xnewas | |
5322 | else | |
5323 | tmake_file=rs6000/t-newas | |
5324 | fi | |
590e30e7 JW |
5325 | if test "$gnu_ld" = yes |
5326 | then | |
5327 | xmake_file=rs6000/x-aix41-gld | |
5328 | else | |
69c9f0fb | 5329 | xmake_file=rs6000/x-aix41 |
590e30e7 | 5330 | fi |
45e24d08 | 5331 | float_format=none |
0a95276e JL |
5332 | use_collect2=yes |
5333 | ;; | |
7747ddb3 | 5334 | rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) |
0a95276e | 5335 | tm_file=rs6000/aix43.h |
75bffa71 | 5336 | if test x$host != x$target |
0a95276e JL |
5337 | then |
5338 | tmake_file=rs6000/t-xaix43 | |
5339 | else | |
5340 | tmake_file=rs6000/t-aix43 | |
5341 | fi | |
5342 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5343 | float_format=none |
0a95276e JL |
5344 | use_collect2=yes |
5345 | ;; | |
5346 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5347 | tm_file=rs6000/aix43.h | |
75bffa71 | 5348 | if test x$host != x$target |
0a95276e JL |
5349 | then |
5350 | tmake_file=rs6000/t-xaix43 | |
5351 | else | |
5352 | tmake_file=rs6000/t-aix43 | |
5353 | fi | |
5354 | xmake_file=rs6000/x-aix43 | |
45e24d08 | 5355 | float_format=none |
861bb6c1 JL |
5356 | use_collect2=yes |
5357 | ;; | |
5358 | rs6000-ibm-aix*) | |
45e24d08 | 5359 | float_format=none |
861bb6c1 JL |
5360 | use_collect2=yes |
5361 | ;; | |
5362 | rs6000-bull-bosx) | |
45e24d08 | 5363 | float_format=none |
861bb6c1 JL |
5364 | use_collect2=yes |
5365 | ;; | |
5366 | rs6000-*-mach*) | |
5367 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5368 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5369 | xmake_file=rs6000/x-mach |
5370 | use_collect2=yes | |
5371 | ;; | |
5372 | rs6000-*-lynxos*) | |
5373 | tm_file=rs6000/lynx.h | |
5374 | xm_file=rs6000/xm-lynx.h | |
5375 | tmake_file=rs6000/t-rs6000 | |
5376 | xmake_file=rs6000/x-lynx | |
5377 | use_collect2=yes | |
5378 | ;; | |
5379 | sh-*-elf*) | |
5380 | tm_file=sh/elf.h | |
5381 | float_format=sh | |
5382 | ;; | |
b098f56d JS |
5383 | sh-*-rtemself*) |
5384 | tmake_file="sh/t-sh t-rtems" | |
5385 | tm_file=sh/rtemself.h | |
5386 | float_format=sh | |
5387 | ;; | |
5d84b57e JS |
5388 | sh-*-rtems*) |
5389 | tmake_file="sh/t-sh t-rtems" | |
5390 | tm_file=sh/rtems.h | |
5391 | float_format=sh | |
5392 | ;; | |
861bb6c1 JL |
5393 | sh-*-*) |
5394 | float_format=sh | |
5395 | ;; | |
5396 | sparc-tti-*) | |
5397 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5398 | xm_file="xm-alloca.h ${xm_file}" |
5399 | xm_defines=USG | |
861bb6c1 JL |
5400 | ;; |
5401 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5402 | tm_file=sparc/vxsparc.h | |
5403 | tmake_file=sparc/t-vxsparc | |
5404 | use_collect2=yes | |
7cc34889 | 5405 | thread_file='vxworks' |
861bb6c1 JL |
5406 | ;; |
5407 | sparc-*-aout*) | |
5408 | tmake_file=sparc/t-sparcbare | |
5409 | tm_file="sparc/aout.h libgloss.h" | |
5410 | ;; | |
5411 | sparc-*-netbsd*) | |
5412 | tm_file=sparc/netbsd.h | |
861bb6c1 | 5413 | tmake_file=t-netbsd |
af0ca027 | 5414 | use_collect2=yes |
861bb6c1 | 5415 | ;; |
1b4a979b ME |
5416 | sparc-*-openbsd*) |
5417 | # we need collect2 until our bug is fixed... | |
5418 | use_collect2=yes | |
5419 | ;; | |
861bb6c1 JL |
5420 | sparc-*-bsd*) |
5421 | tm_file=sparc/bsd.h | |
5422 | ;; | |
ac52b80b DE |
5423 | sparc-*-elf*) |
5424 | tm_file=sparc/elf.h | |
5425 | tmake_file=sparc/t-elf | |
5426 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5427 | #float_format=i128 | |
5428 | float_format=i64 | |
5429 | ;; | |
956d6950 | 5430 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5431 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5432 | tm_file=sparc/linux-aout.h |
5433 | xmake_file=x-linux | |
861bb6c1 JL |
5434 | gnu_ld=yes |
5435 | ;; | |
956d6950 | 5436 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5437 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5438 | xmake_file=x-linux |
861bb6c1 | 5439 | tm_file=sparc/linux.h |
3e88bbdb | 5440 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 | 5441 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5442 | gnu_ld=yes |
39c440fc | 5443 | float_format=sparc |
861bb6c1 | 5444 | ;; |
956d6950 | 5445 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5446 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5447 | xmake_file=x-linux |
861bb6c1 | 5448 | tm_file=sparc/linux.h |
3e88bbdb | 5449 | tmake_file="t-linux" |
861bb6c1 | 5450 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 | 5451 | gnu_ld=yes |
75bffa71 | 5452 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5453 | thread_file='posix' |
5454 | fi | |
39c440fc | 5455 | float_format=sparc |
861bb6c1 JL |
5456 | ;; |
5457 | sparc-*-lynxos*) | |
75bffa71 | 5458 | if test x$gas = xyes |
861bb6c1 JL |
5459 | then |
5460 | tm_file=sparc/lynx.h | |
5461 | else | |
5462 | tm_file=sparc/lynx-ng.h | |
5463 | fi | |
5464 | xm_file=sparc/xm-lynx.h | |
5465 | tmake_file=sparc/t-sunos41 | |
5466 | xmake_file=x-lynx | |
5467 | ;; | |
5468 | sparc-*-rtems*) | |
5469 | tmake_file="sparc/t-sparcbare t-rtems" | |
5470 | tm_file=sparc/rtems.h | |
5471 | ;; | |
d559a4db DM |
5472 | sparcv9-*-solaris2*) |
5473 | tm_file=sparc/sol2-sld-64.h | |
5474 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
5475 | xm_defines="USG POSIX" | |
345a6161 | 5476 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5477 | xmake_file=sparc/x-sysv4 |
5478 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
027ea2a7 | 5479 | float_format=none |
d7496fbb | 5480 | if test x${enable_threads} = x ; then |
d559a4db | 5481 | enable_threads=$have_pthread_h |
d7496fbb | 5482 | if test x${enable_threads} = x ; then |
d559a4db DM |
5483 | enable_threads=$have_thread_h |
5484 | fi | |
5485 | fi | |
d7496fbb DM |
5486 | if test x${enable_threads} = xyes ; then |
5487 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5488 | thread_file='posix' |
5489 | else | |
5490 | thread_file='solaris' | |
5491 | fi | |
5492 | fi | |
5493 | ;; | |
ab87f8c8 JL |
5494 | sparc-hal-solaris2*) |
5495 | xm_file=sparc/xm-sol2.h | |
5496 | tm_file="sparc/sol2.h sparc/hal.h" | |
5497 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5498 | xmake_file=sparc/x-sysv4 | |
5499 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
ab87f8c8 JL |
5500 | broken_install=yes |
5501 | ;; | |
861bb6c1 | 5502 | sparc-*-solaris2*) |
75bffa71 | 5503 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5504 | then |
5505 | tm_file=sparc/sol2.h | |
5506 | else | |
5507 | tm_file=sparc/sol2-sld.h | |
5508 | fi | |
0b3d64d2 JL |
5509 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5510 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5511 | tmake_file=sparc/t-sol2 |
5512 | xmake_file=sparc/x-sysv4 | |
5513 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
5514 | case $machine in |
5515 | *-*-solaris2.[0-4]) | |
027ea2a7 JW |
5516 | float_format=i128 |
5517 | ;; | |
f6cb0e63 | 5518 | *) |
027ea2a7 JW |
5519 | float_format=none |
5520 | ;; | |
f6cb0e63 | 5521 | esac |
75bffa71 | 5522 | if test x${enable_threads} = x; then |
f24af81b | 5523 | enable_threads=$have_pthread_h |
75bffa71 | 5524 | if test x${enable_threads} = x; then |
f24af81b TT |
5525 | enable_threads=$have_thread_h |
5526 | fi | |
5527 | fi | |
75bffa71 ILT |
5528 | if test x${enable_threads} = xyes; then |
5529 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
5530 | thread_file='posix' |
5531 | else | |
861bb6c1 | 5532 | thread_file='solaris' |
f24af81b | 5533 | fi |
861bb6c1 JL |
5534 | fi |
5535 | ;; | |
5536 | sparc-*-sunos4.0*) | |
5537 | tm_file=sparc/sunos4.h | |
5538 | tmake_file=sparc/t-sunos40 | |
5539 | use_collect2=yes | |
5540 | ;; | |
5541 | sparc-*-sunos4*) | |
5542 | tm_file=sparc/sunos4.h | |
5543 | tmake_file=sparc/t-sunos41 | |
5544 | use_collect2=yes | |
75bffa71 | 5545 | if test x$gas = xyes; then |
ca55abae JM |
5546 | tm_file="${tm_file} sparc/sun4gas.h" |
5547 | fi | |
861bb6c1 JL |
5548 | ;; |
5549 | sparc-*-sunos3*) | |
5550 | tm_file=sparc/sun4o3.h | |
5551 | use_collect2=yes | |
5552 | ;; | |
5553 | sparc-*-sysv4*) | |
5554 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
5555 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
5556 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5557 | tmake_file=t-svr4 |
5558 | xmake_file=sparc/x-sysv4 | |
5559 | extra_parts="crtbegin.o crtend.o" | |
5560 | ;; | |
5561 | sparc-*-vxsim*) | |
f5963e61 JL |
5562 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5563 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5564 | tm_file=sparc/vxsim.h |
5565 | tmake_file=sparc/t-vxsparc | |
5566 | xmake_file=sparc/x-sysv4 | |
5567 | ;; | |
5568 | sparclet-*-aout*) | |
5569 | tm_file="sparc/splet.h libgloss.h" | |
5570 | tmake_file=sparc/t-splet | |
5571 | ;; | |
5572 | sparclite-*-coff*) | |
5573 | tm_file="sparc/litecoff.h libgloss.h" | |
5574 | tmake_file=sparc/t-sparclite | |
5575 | ;; | |
5576 | sparclite-*-aout*) | |
5577 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
5578 | tmake_file=sparc/t-sparclite | |
5579 | ;; | |
5580 | sparc64-*-aout*) | |
5581 | tmake_file=sparc/t-sp64 | |
5582 | tm_file=sparc/sp64-aout.h | |
5583 | ;; | |
5584 | sparc64-*-elf*) | |
5585 | tmake_file=sparc/t-sp64 | |
5586 | tm_file=sparc/sp64-elf.h | |
5587 | extra_parts="crtbegin.o crtend.o" | |
5588 | ;; | |
956d6950 | 5589 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 5590 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
5591 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
5592 | tm_file=sparc/linux64.h | |
5593 | xmake_file=x-linux | |
345a6161 | 5594 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af | 5595 | gnu_ld=yes |
39c440fc | 5596 | float_format=sparc |
26b551af | 5597 | ;; |
861bb6c1 JL |
5598 | # This hasn't been upgraded to GCC 2. |
5599 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
5600 | # tm_file=tahoe/harris.h | |
5601 | # ;; | |
5602 | # tahoe-*-bsd*) # tahoe running BSD | |
5603 | # ;; | |
e98e406f NC |
5604 | thumb-*-coff* | thumbel-*-coff*) |
5605 | tm_file=arm/tcoff.h | |
5606 | out_file=arm/thumb.c | |
5607 | xm_file=arm/xm-thumb.h | |
5608 | md_file=arm/thumb.md | |
5609 | tmake_file=arm/t-thumb | |
5610 | ;; | |
c83fe036 NC |
5611 | thumb-*-elf* | thumbel-*-elf*) |
5612 | tm_file=arm/telf.h | |
5613 | out_file=arm/thumb.c | |
5614 | xm_file=arm/xm-thumb.h | |
5615 | md_file=arm/thumb.md | |
5616 | tmake_file=arm/t-thumb-elf | |
5617 | ;; | |
483f6332 PB |
5618 | thumb-*-linux-gnu*) |
5619 | tm_file=arm/linux-telf.h | |
5620 | out_file=arm/thumb.c | |
5621 | xm_file=arm/xm-thumb.h | |
5622 | md_file=arm/thumb.md | |
5623 | tmake_file=arm/t-thumb-linux | |
5624 | ;; | |
5625 | thumb-*-uclinux*) | |
5626 | tm_file=arm/uclinux-telf.h | |
5627 | out_file=arm/thumb.c | |
5628 | md_file=arm/thumb.md | |
5629 | tmake_file=arm/t-thumb-linux | |
5630 | xm_file=arm/xm-thumb.h | |
5631 | ;; | |
28897609 MS |
5632 | thumb-wrs-vxworks) |
5633 | tm_file=arm/tcoff.h | |
5634 | out_file=arm/thumb.c | |
5635 | xm_file=arm/xm-thumb.h | |
5636 | md_file=arm/thumb.md | |
5637 | tmake_file=arm/t-thumb | |
5638 | thread_file='vxworks' | |
5639 | ;; | |
cb805c2d NC |
5640 | thumb-*-pe) |
5641 | tm_file=arm/tpe.h | |
5642 | out_file=arm/thumb.c | |
5643 | xm_file=arm/xm-thumb.h | |
5644 | md_file=arm/thumb.md | |
5645 | tmake_file=arm/t-pe-thumb | |
5646 | extra_objs=pe.o | |
5647 | ;; | |
861bb6c1 JL |
5648 | # This hasn't been upgraded to GCC 2. |
5649 | # tron-*-*) | |
5650 | # cpu_type=gmicro | |
5651 | # use_collect2=yes | |
5652 | # ;; | |
f84271d9 JL |
5653 | v850-*-*) |
5654 | cpu_type=v850 | |
5655 | tm_file="v850/v850.h" | |
5656 | xm_file="v850/xm-v850.h" | |
62db76ee | 5657 | tmake_file=v850/t-v850 |
75bffa71 | 5658 | if test x$stabs = xyes |
f84271d9 JL |
5659 | then |
5660 | tm_file="${tm_file} dbx.h" | |
5661 | fi | |
5662 | use_collect2=no | |
5663 | ;; | |
861bb6c1 JL |
5664 | vax-*-bsd*) # vaxen running BSD |
5665 | use_collect2=yes | |
5666 | float_format=vax | |
5667 | ;; | |
5668 | vax-*-sysv*) # vaxen running system V | |
5669 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 5670 | xm_defines=USG |
861bb6c1 JL |
5671 | float_format=vax |
5672 | ;; | |
5673 | vax-*-netbsd*) | |
5674 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
861bb6c1 JL |
5675 | tmake_file=t-netbsd |
5676 | float_format=vax | |
af0ca027 | 5677 | use_collect2=yes |
861bb6c1 | 5678 | ;; |
1b4a979b | 5679 | vax-*-openbsd*) |
766518a0 | 5680 | tmake_file="${tmake_file} vax/t-openbsd" |
1b4a979b | 5681 | ;; |
861bb6c1 JL |
5682 | vax-*-ultrix*) # vaxen running ultrix |
5683 | tm_file="${tm_file} vax/ultrix.h" | |
5684 | use_collect2=yes | |
5685 | float_format=vax | |
5686 | ;; | |
5687 | vax-*-vms*) # vaxen running VMS | |
5688 | xm_file=vax/xm-vms.h | |
5689 | tm_file=vax/vms.h | |
5690 | float_format=vax | |
5691 | ;; | |
5692 | vax-*-*) # vax default entry | |
5693 | float_format=vax | |
5694 | ;; | |
5695 | we32k-att-sysv*) | |
5696 | xm_file="${xm_file} xm-svr3" | |
5697 | use_collect2=yes | |
5698 | ;; | |
5699 | *) | |
5700 | echo "Configuration $machine not supported" 1>&2 | |
5701 | exit 1 | |
5702 | ;; | |
5703 | esac | |
5704 | ||
5705 | case $machine in | |
5706 | *-*-linux-gnu*) | |
f6cb0e63 | 5707 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
5708 | *-*-gnu*) |
5709 | # On the GNU system, the setup is just about the same on | |
5710 | # each different CPU. The specific machines that GNU | |
5711 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 5712 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
5713 | tm_file=${cpu_type}/gnu.h |
5714 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
5715 | # GNU always uses ELF. | |
5716 | elf=yes | |
5717 | # GNU tools are the only tools. | |
5718 | gnu_ld=yes | |
5719 | gas=yes | |
861bb6c1 JL |
5720 | xmake_file=x-linux # These details are the same as Linux. |
5721 | tmake_file=t-gnu # These are not. | |
5722 | ;; | |
5723 | *-*-sysv4*) | |
861bb6c1 | 5724 | xmake_try_sysv=x-sysv |
861bb6c1 JL |
5725 | install_headers_dir=install-headers-cpio |
5726 | ;; | |
5727 | *-*-sysv*) | |
861bb6c1 JL |
5728 | install_headers_dir=install-headers-cpio |
5729 | ;; | |
5730 | esac | |
5731 | ||
f6cb0e63 | 5732 | # Distinguish i[34567]86 |
861bb6c1 JL |
5733 | # Also, do not run mips-tfile on MIPS if using gas. |
5734 | # Process --with-cpu= for PowerPC/rs6000 | |
5735 | target_cpu_default2= | |
5736 | case $machine in | |
5737 | i486-*-*) | |
5738 | target_cpu_default2=1 | |
5739 | ;; | |
5740 | i586-*-*) | |
83f4345f PT |
5741 | case $target_alias in |
5742 | k6-*) | |
5743 | target_cpu_default2=4 | |
5744 | ;; | |
5745 | *) | |
5746 | target_cpu_default2=2 | |
5747 | ;; | |
5748 | esac | |
861bb6c1 | 5749 | ;; |
f6cb0e63 | 5750 | i686-*-* | i786-*-*) |
861bb6c1 JL |
5751 | target_cpu_default2=3 |
5752 | ;; | |
5753 | alpha*-*-*) | |
5754 | case $machine in | |
e9a25f70 | 5755 | alphaev6*) |
de4abb91 | 5756 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX" |
e9a25f70 JL |
5757 | ;; |
5758 | alphapca56*) | |
fbb5ed67 | 5759 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 5760 | ;; |
861bb6c1 | 5761 | alphaev56*) |
e9a25f70 | 5762 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
5763 | ;; |
5764 | alphaev5*) | |
5765 | target_cpu_default2="MASK_CPU_EV5" | |
5766 | ;; | |
5767 | esac | |
5768 | ||
75bffa71 | 5769 | if test x$gas = xyes |
861bb6c1 | 5770 | then |
75bffa71 | 5771 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
5772 | then |
5773 | target_cpu_default2="MASK_GAS" | |
5774 | else | |
5775 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
5776 | fi | |
5777 | fi | |
5778 | ;; | |
956d6950 JL |
5779 | arm*-*-*) |
5780 | case "x$with_cpu" in | |
5781 | x) | |
5782 | # The most generic | |
5783 | target_cpu_default2="TARGET_CPU_generic" | |
5784 | ;; | |
5785 | ||
5786 | # Distinguish cores, and major variants | |
5787 | # arm7m doesn't exist, but D & I don't affect code | |
5788 | xarm23678 | xarm250 | xarm67010 \ | |
5789 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
5790 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 5791 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
5792 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5793 | ;; | |
5794 | ||
5795 | xyes | xno) | |
5796 | echo "--with-cpu must be passed a value" 1>&2 | |
5797 | exit 1 | |
5798 | ;; | |
5799 | ||
5800 | *) | |
75bffa71 | 5801 | if test x$pass2done = xyes |
956d6950 JL |
5802 | then |
5803 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5804 | exit 1 | |
5805 | fi | |
5806 | ;; | |
5807 | esac | |
5808 | ;; | |
5809 | ||
861bb6c1 | 5810 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 5811 | if test x$gas = xyes |
861bb6c1 | 5812 | then |
75bffa71 | 5813 | if test x$gnu_ld = xyes |
861bb6c1 JL |
5814 | then |
5815 | target_cpu_default2=20 | |
5816 | else | |
5817 | target_cpu_default2=16 | |
5818 | fi | |
5819 | fi | |
5820 | ;; | |
5821 | mips*-*-*) | |
75bffa71 | 5822 | if test x$gas = xyes |
861bb6c1 JL |
5823 | then |
5824 | target_cpu_default2=16 | |
5825 | fi | |
5826 | ;; | |
5827 | powerpc*-*-* | rs6000-*-*) | |
5828 | case "x$with_cpu" in | |
5829 | x) | |
5830 | ;; | |
5831 | ||
5832 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
5833 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
5834 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 5835 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 5836 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 5837 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
5838 | ;; |
5839 | ||
5840 | xyes | xno) | |
5841 | echo "--with-cpu must be passed a value" 1>&2 | |
5842 | exit 1 | |
5843 | ;; | |
5844 | ||
5845 | *) | |
75bffa71 | 5846 | if test x$pass2done = xyes |
956d6950 JL |
5847 | then |
5848 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5849 | exit 1 | |
5850 | fi | |
861bb6c1 JL |
5851 | ;; |
5852 | esac | |
5853 | ;; | |
5854 | sparc*-*-*) | |
5855 | case ".$with_cpu" in | |
5856 | .) | |
5857 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
5858 | ;; | |
8947065c | 5859 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
5860 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5861 | ;; | |
5862 | *) | |
75bffa71 | 5863 | if test x$pass2done = xyes |
956d6950 JL |
5864 | then |
5865 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5866 | exit 1 | |
5867 | fi | |
861bb6c1 JL |
5868 | ;; |
5869 | esac | |
5870 | ;; | |
5871 | esac | |
5872 | ||
75bffa71 | 5873 | if test "$target_cpu_default2" != "" |
861bb6c1 | 5874 | then |
75bffa71 | 5875 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
5876 | then |
5877 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
5878 | else | |
5879 | target_cpu_default=$target_cpu_default2 | |
5880 | fi | |
5881 | fi | |
5882 | ||
5883 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
5884 | # Actually, there is now; GNU ld doesn't handle the EH info or |
5885 | # collecting for shared libraries. | |
ca8c3b37 JM |
5886 | #case x$gnu_ld in |
5887 | #xyes) | |
5888 | # use_collect2= | |
5889 | # ;; | |
5890 | #esac | |
861bb6c1 JL |
5891 | |
5892 | # Save data on machine being used to compile GCC in build_xm_file. | |
5893 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 5894 | if test x$pass1done = x |
861bb6c1 | 5895 | then |
75bffa71 | 5896 | if test x"$xm_file" = x |
861bb6c1 JL |
5897 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
5898 | else build_xm_file=$xm_file | |
5899 | fi | |
f6cb0e63 | 5900 | build_xm_defines=$xm_defines |
861bb6c1 JL |
5901 | build_install_headers_dir=$install_headers_dir |
5902 | build_exeext=$exeext | |
5903 | pass1done=yes | |
5904 | else | |
75bffa71 | 5905 | if test x$pass2done = x |
861bb6c1 | 5906 | then |
75bffa71 | 5907 | if test x"$xm_file" = x |
861bb6c1 JL |
5908 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
5909 | else host_xm_file=$xm_file | |
5910 | fi | |
f6cb0e63 | 5911 | host_xm_defines=$xm_defines |
75bffa71 | 5912 | if test x"$xmake_file" = x |
861bb6c1 JL |
5913 | then xmake_file=$cpu_type/x-$cpu_type |
5914 | fi | |
5915 | host_xmake_file="$xmake_file" | |
5916 | host_truncate_target=$truncate_target | |
5917 | host_extra_gcc_objs=$extra_gcc_objs | |
5918 | host_extra_objs=$extra_host_objs | |
6e26218f | 5919 | host_exeext=$exeext |
861bb6c1 JL |
5920 | pass2done=yes |
5921 | fi | |
5922 | fi | |
5923 | done | |
5924 | ||
5925 | extra_objs="${host_extra_objs} ${extra_objs}" | |
5926 | ||
5927 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 5928 | if test x"$tm_file" = x |
861bb6c1 JL |
5929 | then tm_file=$cpu_type/$cpu_type.h; fi |
5930 | ||
75bffa71 | 5931 | if test x$extra_headers = x |
861bb6c1 JL |
5932 | then extra_headers=; fi |
5933 | ||
75bffa71 | 5934 | if test x"$xm_file" = x |
861bb6c1 JL |
5935 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
5936 | ||
75bffa71 | 5937 | if test x$md_file = x |
e98e406f | 5938 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 5939 | |
75bffa71 | 5940 | if test x$out_file = x |
861bb6c1 JL |
5941 | then out_file=$cpu_type/$cpu_type.c; fi |
5942 | ||
75bffa71 | 5943 | if test x"$tmake_file" = x |
861bb6c1 JL |
5944 | then tmake_file=$cpu_type/t-$cpu_type |
5945 | fi | |
5946 | ||
90e6a802 RL |
5947 | if test x"$dwarf2" = xyes |
5948 | then tm_file="tm-dwarf2.h $tm_file" | |
5949 | fi | |
5950 | ||
75bffa71 | 5951 | if test x$float_format = x |
861bb6c1 JL |
5952 | then float_format=i64 |
5953 | fi | |
5954 | ||
027ea2a7 JW |
5955 | if test $float_format = none |
5956 | then float_h_file=Makefile.in | |
5957 | else float_h_file=float-$float_format.h | |
5958 | fi | |
5959 | ||
75bffa71 | 5960 | if test x$enable_haifa = x |
128f7968 RH |
5961 | then |
5962 | case $target in | |
18cae839 | 5963 | alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
5964 | enable_haifa=yes;; |
5965 | esac | |
5966 | fi | |
5967 | ||
9fc9b82a | 5968 | # Handle cpp installation. |
3ecc3258 | 5969 | if test x$enable_cpp != xno |
9fc9b82a L |
5970 | then |
5971 | tmake_file="$tmake_file t-install-cpp" | |
5972 | fi | |
5973 | ||
861bb6c1 JL |
5974 | # Say what files are being used for the output code and MD file. |
5975 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
5976 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
5977 | ||
5978 | count=a | |
5979 | for f in $tm_file; do | |
5980 | count=${count}x | |
5981 | done | |
75bffa71 | 5982 | if test $count = ax; then |
861bb6c1 JL |
5983 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
5984 | else | |
5985 | echo "Using the following target machine macro files:" | |
5986 | for f in $tm_file; do | |
5987 | echo " $srcdir/config/$f" | |
5988 | done | |
5989 | fi | |
5990 | ||
5991 | count=a | |
5992 | for f in $host_xm_file; do | |
5993 | count=${count}x | |
5994 | done | |
75bffa71 | 5995 | if test $count = ax; then |
861bb6c1 JL |
5996 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
5997 | else | |
5998 | echo "Using the following host machine macro files:" | |
5999 | for f in $host_xm_file; do | |
6000 | echo " $srcdir/config/$f" | |
6001 | done | |
6002 | fi | |
6003 | ||
75bffa71 | 6004 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
6005 | count=a |
6006 | for f in $build_xm_file; do | |
6007 | count=${count}x | |
6008 | done | |
75bffa71 | 6009 | if test $count = ax; then |
861bb6c1 JL |
6010 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
6011 | else | |
6012 | echo "Using the following build machine macro files:" | |
6013 | for f in $build_xm_file; do | |
6014 | echo " $srcdir/config/$f" | |
6015 | done | |
6016 | fi | |
6017 | fi | |
6018 | ||
75bffa71 ILT |
6019 | if test x$thread_file = x; then |
6020 | if test x$target_thread_file != x; then | |
a851212a JW |
6021 | thread_file=$target_thread_file |
6022 | else | |
6023 | thread_file='single' | |
6024 | fi | |
861bb6c1 JL |
6025 | fi |
6026 | ||
6027 | # Set up the header files. | |
6028 | # $links is the list of header files to create. | |
6029 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 6030 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 6031 | # the first file included by config.h. |
f6cb0e63 | 6032 | null_defines= |
64ccbc99 | 6033 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h" |
db81d74a | 6034 | |
b7cb92ad | 6035 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
6036 | # as well. If host!=build, we are in error and need to do more |
6037 | # work to find out the build config parameters. | |
75bffa71 | 6038 | if test x$host = x$build |
db81d74a | 6039 | then |
64ccbc99 | 6040 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h" |
b7cb92ad JL |
6041 | else |
6042 | # We create a subdir, then run autoconf in the subdir. | |
6043 | # To prevent recursion we set host and build for the new | |
6044 | # invocation of configure to the build for this invocation | |
6045 | # of configure. | |
6046 | tempdir=build.$$ | |
6047 | rm -rf $tempdir | |
6048 | mkdir $tempdir | |
6049 | cd $tempdir | |
6050 | case ${srcdir} in | |
6051 | /*) realsrcdir=${srcdir};; | |
6052 | *) realsrcdir=../${srcdir};; | |
6053 | esac | |
fe81dd69 | 6054 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
6055 | --target=$target --host=$build --build=$build |
6056 | ||
6057 | # We just finished tests for the build machine, so rename | |
6058 | # the file auto-build.h in the gcc directory. | |
6059 | mv auto-host.h ../auto-build.h | |
6060 | cd .. | |
6061 | rm -rf $tempdir | |
64ccbc99 | 6062 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h" |
db81d74a RH |
6063 | fi |
6064 | ||
0056a9b5 KG |
6065 | xm_file="gansidecl.h ${xm_file}" |
6066 | tm_file="gansidecl.h ${tm_file}" | |
6067 | ||
861bb6c1 | 6068 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 6069 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 6070 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
6071 | |
6072 | rm -f config.bak | |
75bffa71 | 6073 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
6074 | |
6075 | # Make the links. | |
75bffa71 | 6076 | while test -n "$vars" |
861bb6c1 | 6077 | do |
861bb6c1 JL |
6078 | set $vars; var=$1; shift; vars=$* |
6079 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 6080 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
6081 | |
6082 | rm -f $link | |
6083 | ||
6084 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
6085 | # This substitutes for lots of *.h files. | |
75bffa71 | 6086 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 6087 | then |
8fbf199e | 6088 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
6089 | fi |
6090 | ||
6091 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
6092 | case $file in |
6093 | auto-config.h) | |
6094 | ;; | |
6095 | *) | |
6096 | echo '#ifdef IN_GCC' >>$link | |
6097 | ;; | |
6098 | esac | |
861bb6c1 | 6099 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
6100 | case $file in |
6101 | auto-config.h) | |
6102 | ;; | |
6103 | *) | |
6104 | echo '#endif' >>$link | |
6105 | ;; | |
6106 | esac | |
861bb6c1 | 6107 | done |
f6cb0e63 JL |
6108 | |
6109 | for def in `eval echo '$'$define`; do | |
6110 | echo "#ifndef $def" >>$link | |
6111 | echo "#define $def" >>$link | |
6112 | echo "#endif" >>$link | |
6113 | done | |
861bb6c1 JL |
6114 | done |
6115 | ||
6116 | # Truncate the target if necessary | |
75bffa71 | 6117 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
6118 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
6119 | fi | |
6120 | ||
f1943b77 | 6121 | # Get the version trigger filename from the toplevel |
75bffa71 | 6122 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
6123 | gcc_version_trigger=$with_gcc_version_trigger |
6124 | else | |
6125 | gcc_version_trigger=${srcdir}/version.c | |
6126 | fi | |
6127 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 6128 | |
ab87f8c8 JL |
6129 | # Internationalization |
6130 | PACKAGE=gcc | |
6131 | VERSION="$gcc_version" | |
6132 | cat >> confdefs.h <<EOF | |
6133 | #define PACKAGE "$PACKAGE" | |
6134 | EOF | |
861bb6c1 | 6135 | |
ab87f8c8 JL |
6136 | cat >> confdefs.h <<EOF |
6137 | #define VERSION "$VERSION" | |
6138 | EOF | |
861bb6c1 | 6139 | |
861bb6c1 | 6140 | |
ab87f8c8 JL |
6141 | |
6142 | ||
6143 | ALL_LINGUAS="en_UK" | |
6144 | ||
6145 | # NLS support is still experimental, so disable it by default for now. | |
6146 | # Check whether --enable-nls or --disable-nls was given. | |
6147 | if test "${enable_nls+set}" = set; then | |
6148 | enableval="$enable_nls" | |
6149 | : | |
861bb6c1 | 6150 | else |
ab87f8c8 | 6151 | enable_nls=no |
861bb6c1 | 6152 | fi |
861bb6c1 | 6153 | |
861bb6c1 | 6154 | |
861bb6c1 | 6155 | |
ab87f8c8 | 6156 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
7aae67a2 | 6157 | echo "configure:6158: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6158 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6159 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6161 | else | |
6162 | ac_save_LIBS="$LIBS" | |
6163 | LIBS="-lcposix $LIBS" | |
6164 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6165 | #line 6166 "configure" |
ab87f8c8 JL |
6166 | #include "confdefs.h" |
6167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6168 | /* We use char because int might match the return type of a gcc2 | |
6169 | builtin and then its argument prototype would still apply. */ | |
6170 | char strerror(); | |
861bb6c1 | 6171 | |
ab87f8c8 JL |
6172 | int main() { |
6173 | strerror() | |
6174 | ; return 0; } | |
6175 | EOF | |
7aae67a2 | 6176 | if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6177 | rm -rf conftest* |
6178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6179 | else | |
6180 | echo "configure: failed program was:" >&5 | |
6181 | cat conftest.$ac_ext >&5 | |
6182 | rm -rf conftest* | |
6183 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6184 | fi |
ab87f8c8 JL |
6185 | rm -f conftest* |
6186 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6187 | |
861bb6c1 | 6188 | fi |
ab87f8c8 JL |
6189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6190 | echo "$ac_t""yes" 1>&6 | |
6191 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6192 | else |
ab87f8c8 | 6193 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6194 | fi |
6195 | ||
ab87f8c8 | 6196 | |
2ce3c6c6 | 6197 | |
ab87f8c8 | 6198 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
7aae67a2 | 6199 | echo "configure:6200: checking for working const" >&5 |
ab87f8c8 JL |
6200 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6202 | else |
ab87f8c8 | 6203 | cat > conftest.$ac_ext <<EOF |
7aae67a2 | 6204 | #line 6205 "configure" |
ab87f8c8 | 6205 | #include "confdefs.h" |
861bb6c1 | 6206 | |
ab87f8c8 JL |
6207 | int main() { |
6208 | ||
6209 | /* Ultrix mips cc rejects this. */ | |
6210 | typedef int charset[2]; const charset x; | |
6211 | /* SunOS 4.1.1 cc rejects this. */ | |
6212 | char const *const *ccp; | |
6213 | char **p; | |
6214 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6215 | struct point {int x, y;}; | |
6216 | static struct point const zero = {0,0}; | |
6217 | /* AIX XL C 1.02.0.0 rejects this. | |
6218 | It does not let you subtract one const X* pointer from another in an arm | |
6219 | of an if-expression whose if-part is not a constant expression */ | |
6220 | const char *g = "string"; | |
6221 | ccp = &g + (g ? g-g : 0); | |
6222 | /* HPUX 7.0 cc rejects these. */ | |
6223 | ++ccp; | |
6224 | p = (char**) ccp; | |
6225 | ccp = (char const *const *) p; | |
6226 | { /* SCO 3.2v4 cc rejects this. */ | |
6227 | char *t; | |
6228 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6229 | ||
6230 | *t++ = 0; | |
6231 | } | |
6232 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6233 | int x[] = {25, 17}; | |
6234 | const int *foo = &x[0]; | |
6235 | ++foo; | |
6236 | } | |
6237 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6238 | typedef const int *iptr; | |
6239 | iptr p = 0; | |
6240 | ++p; | |
6241 | } | |
6242 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6243 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6244 | struct s { int j; const int *ap[3]; }; | |
6245 | struct s *b; b->j = 5; | |
6246 | } | |
6247 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6248 | const int foo = 10; | |
6249 | } | |
6250 | ||
6251 | ; return 0; } | |
6252 | EOF | |
7aae67a2 | 6253 | if { (eval echo configure:6254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6254 | rm -rf conftest* |
6255 | ac_cv_c_const=yes | |
861bb6c1 | 6256 | else |
ab87f8c8 JL |
6257 | echo "configure: failed program was:" >&5 |
6258 | cat conftest.$ac_ext >&5 | |
6259 | rm -rf conftest* | |
6260 | ac_cv_c_const=no | |
6261 | fi | |
6262 | rm -f conftest* | |
861bb6c1 JL |
6263 | fi |
6264 | ||
ab87f8c8 JL |
6265 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6266 | if test $ac_cv_c_const = no; then | |
6267 | cat >> confdefs.h <<\EOF | |
6268 | #define const | |
6269 | EOF | |
6270 | ||
861bb6c1 JL |
6271 | fi |
6272 | ||
ab87f8c8 | 6273 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
7aae67a2 | 6274 | echo "configure:6275: checking for inline" >&5 |
ab87f8c8 JL |
6275 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6276 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6277 | else | |
6278 | ac_cv_c_inline=no | |
6279 | for ac_kw in inline __inline__ __inline; do | |
6280 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6281 | #line 6282 "configure" |
ab87f8c8 JL |
6282 | #include "confdefs.h" |
6283 | ||
6284 | int main() { | |
6285 | } $ac_kw foo() { | |
6286 | ; return 0; } | |
6287 | EOF | |
7aae67a2 | 6288 | if { (eval echo configure:6289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6289 | rm -rf conftest* |
6290 | ac_cv_c_inline=$ac_kw; break | |
6291 | else | |
6292 | echo "configure: failed program was:" >&5 | |
6293 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6294 | fi |
ab87f8c8 JL |
6295 | rm -f conftest* |
6296 | done | |
4b95eb49 | 6297 | |
992d1248 | 6298 | fi |
861bb6c1 | 6299 | |
ab87f8c8 JL |
6300 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6301 | case "$ac_cv_c_inline" in | |
6302 | inline | yes) ;; | |
6303 | no) cat >> confdefs.h <<\EOF | |
6304 | #define inline | |
00ccc16d | 6305 | EOF |
ab87f8c8 JL |
6306 | ;; |
6307 | *) cat >> confdefs.h <<EOF | |
6308 | #define inline $ac_cv_c_inline | |
6309 | EOF | |
6310 | ;; | |
6311 | esac | |
6312 | ||
6313 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
7aae67a2 | 6314 | echo "configure:6315: checking for off_t" >&5 |
ab87f8c8 JL |
6315 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6317 | else | |
6318 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6319 | #line 6320 "configure" |
ab87f8c8 JL |
6320 | #include "confdefs.h" |
6321 | #include <sys/types.h> | |
6322 | #if STDC_HEADERS | |
6323 | #include <stdlib.h> | |
6324 | #include <stddef.h> | |
6325 | #endif | |
6326 | EOF | |
6327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6328 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6329 | rm -rf conftest* |
6330 | ac_cv_type_off_t=yes | |
6331 | else | |
6332 | rm -rf conftest* | |
6333 | ac_cv_type_off_t=no | |
6334 | fi | |
6335 | rm -f conftest* | |
6336 | ||
6337 | fi | |
6338 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6339 | if test $ac_cv_type_off_t = no; then | |
6340 | cat >> confdefs.h <<\EOF | |
6341 | #define off_t long | |
6342 | EOF | |
6343 | ||
6344 | fi | |
6345 | ||
6346 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
7aae67a2 | 6347 | echo "configure:6348: checking for size_t" >&5 |
ab87f8c8 JL |
6348 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6350 | else | |
6351 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6352 | #line 6353 "configure" |
ab87f8c8 JL |
6353 | #include "confdefs.h" |
6354 | #include <sys/types.h> | |
6355 | #if STDC_HEADERS | |
6356 | #include <stdlib.h> | |
6357 | #include <stddef.h> | |
6358 | #endif | |
6359 | EOF | |
6360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6361 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6362 | rm -rf conftest* |
6363 | ac_cv_type_size_t=yes | |
6364 | else | |
6365 | rm -rf conftest* | |
6366 | ac_cv_type_size_t=no | |
6367 | fi | |
6368 | rm -f conftest* | |
6369 | ||
6370 | fi | |
6371 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6372 | if test $ac_cv_type_size_t = no; then | |
6373 | cat >> confdefs.h <<\EOF | |
6374 | #define size_t unsigned | |
6375 | EOF | |
6376 | ||
6377 | fi | |
6378 | ||
6379 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6380 | # for constant arguments. Useless! | |
6381 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
7aae67a2 | 6382 | echo "configure:6383: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6383 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6385 | else | |
6386 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6387 | #line 6388 "configure" |
ab87f8c8 JL |
6388 | #include "confdefs.h" |
6389 | #include <alloca.h> | |
6390 | int main() { | |
6391 | char *p = alloca(2 * sizeof(int)); | |
6392 | ; return 0; } | |
6393 | EOF | |
7aae67a2 | 6394 | if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6395 | rm -rf conftest* |
6396 | ac_cv_header_alloca_h=yes | |
6397 | else | |
6398 | echo "configure: failed program was:" >&5 | |
6399 | cat conftest.$ac_ext >&5 | |
6400 | rm -rf conftest* | |
6401 | ac_cv_header_alloca_h=no | |
6402 | fi | |
6403 | rm -f conftest* | |
6404 | fi | |
6405 | ||
6406 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6407 | if test $ac_cv_header_alloca_h = yes; then | |
6408 | cat >> confdefs.h <<\EOF | |
6409 | #define HAVE_ALLOCA_H 1 | |
6410 | EOF | |
6411 | ||
6412 | fi | |
6413 | ||
6414 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
7aae67a2 | 6415 | echo "configure:6416: checking for alloca" >&5 |
ab87f8c8 JL |
6416 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6418 | else | |
6419 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6420 | #line 6421 "configure" |
ab87f8c8 JL |
6421 | #include "confdefs.h" |
6422 | ||
6423 | #ifdef __GNUC__ | |
6424 | # define alloca __builtin_alloca | |
6425 | #else | |
cd9e5e7c MK |
6426 | # ifdef _MSC_VER |
6427 | # include <malloc.h> | |
6428 | # define alloca _alloca | |
ab87f8c8 | 6429 | # else |
cd9e5e7c MK |
6430 | # if HAVE_ALLOCA_H |
6431 | # include <alloca.h> | |
3723cad9 | 6432 | # else |
cd9e5e7c MK |
6433 | # ifdef _AIX |
6434 | #pragma alloca | |
6435 | # else | |
6436 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6437 | char *alloca (); |
cd9e5e7c | 6438 | # endif |
ab87f8c8 JL |
6439 | # endif |
6440 | # endif | |
6441 | # endif | |
6442 | #endif | |
6443 | ||
6444 | int main() { | |
6445 | char *p = (char *) alloca(1); | |
6446 | ; return 0; } | |
6447 | EOF | |
7aae67a2 | 6448 | if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6449 | rm -rf conftest* |
6450 | ac_cv_func_alloca_works=yes | |
6451 | else | |
6452 | echo "configure: failed program was:" >&5 | |
6453 | cat conftest.$ac_ext >&5 | |
6454 | rm -rf conftest* | |
6455 | ac_cv_func_alloca_works=no | |
6456 | fi | |
6457 | rm -f conftest* | |
6458 | fi | |
6459 | ||
6460 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
6461 | if test $ac_cv_func_alloca_works = yes; then | |
6462 | cat >> confdefs.h <<\EOF | |
6463 | #define HAVE_ALLOCA 1 | |
6464 | EOF | |
6465 | ||
6466 | fi | |
6467 | ||
6468 | if test $ac_cv_func_alloca_works = no; then | |
6469 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6470 | # that cause trouble. Some versions do not even contain alloca or | |
6471 | # contain a buggy version. If you still want to use their alloca, | |
6472 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
cd9e5e7c | 6473 | ALLOCA=alloca.${ac_objext} |
ab87f8c8 JL |
6474 | cat >> confdefs.h <<\EOF |
6475 | #define C_ALLOCA 1 | |
6476 | EOF | |
6477 | ||
6478 | ||
6479 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
7aae67a2 | 6480 | echo "configure:6481: checking whether alloca needs Cray hooks" >&5 |
ab87f8c8 JL |
6481 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
6482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6483 | else | |
6484 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6485 | #line 6486 "configure" |
ab87f8c8 JL |
6486 | #include "confdefs.h" |
6487 | #if defined(CRAY) && ! defined(CRAY2) | |
6488 | webecray | |
6489 | #else | |
6490 | wenotbecray | |
6491 | #endif | |
6492 | ||
6493 | EOF | |
6494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6495 | egrep "webecray" >/dev/null 2>&1; then | |
6496 | rm -rf conftest* | |
6497 | ac_cv_os_cray=yes | |
6498 | else | |
6499 | rm -rf conftest* | |
6500 | ac_cv_os_cray=no | |
6501 | fi | |
6502 | rm -f conftest* | |
6503 | ||
6504 | fi | |
6505 | ||
6506 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
6507 | if test $ac_cv_os_cray = yes; then | |
6508 | for ac_func in _getb67 GETB67 getb67; do | |
6509 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 6510 | echo "configure:6511: checking for $ac_func" >&5 |
ab87f8c8 JL |
6511 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6513 | else | |
6514 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6515 | #line 6516 "configure" |
ab87f8c8 JL |
6516 | #include "confdefs.h" |
6517 | /* System header to define __stub macros and hopefully few prototypes, | |
6518 | which can conflict with char $ac_func(); below. */ | |
6519 | #include <assert.h> | |
6520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6521 | /* We use char because int might match the return type of a gcc2 | |
6522 | builtin and then its argument prototype would still apply. */ | |
6523 | char $ac_func(); | |
6524 | ||
6525 | int main() { | |
6526 | ||
6527 | /* The GNU C library defines this for functions which it implements | |
6528 | to always fail with ENOSYS. Some functions are actually named | |
6529 | something starting with __ and the normal name is an alias. */ | |
6530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6531 | choke me | |
6532 | #else | |
3ecc3258 | 6533 | $ac_func(); |
ab87f8c8 JL |
6534 | #endif |
6535 | ||
6536 | ; return 0; } | |
6537 | EOF | |
7aae67a2 | 6538 | if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6539 | rm -rf conftest* |
6540 | eval "ac_cv_func_$ac_func=yes" | |
6541 | else | |
6542 | echo "configure: failed program was:" >&5 | |
6543 | cat conftest.$ac_ext >&5 | |
6544 | rm -rf conftest* | |
6545 | eval "ac_cv_func_$ac_func=no" | |
6546 | fi | |
6547 | rm -f conftest* | |
6548 | fi | |
6549 | ||
6550 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6551 | echo "$ac_t""yes" 1>&6 | |
6552 | cat >> confdefs.h <<EOF | |
6553 | #define CRAY_STACKSEG_END $ac_func | |
6554 | EOF | |
6555 | ||
6556 | break | |
6557 | else | |
6558 | echo "$ac_t""no" 1>&6 | |
6559 | fi | |
6560 | ||
6561 | done | |
6562 | fi | |
6563 | ||
6564 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
7aae67a2 | 6565 | echo "configure:6566: checking stack direction for C alloca" >&5 |
ab87f8c8 JL |
6566 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
6567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6568 | else | |
6569 | if test "$cross_compiling" = yes; then | |
6570 | ac_cv_c_stack_direction=0 | |
6571 | else | |
6572 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6573 | #line 6574 "configure" |
ab87f8c8 JL |
6574 | #include "confdefs.h" |
6575 | find_stack_direction () | |
6576 | { | |
6577 | static char *addr = 0; | |
6578 | auto char dummy; | |
6579 | if (addr == 0) | |
6580 | { | |
6581 | addr = &dummy; | |
6582 | return find_stack_direction (); | |
6583 | } | |
6584 | else | |
6585 | return (&dummy > addr) ? 1 : -1; | |
6586 | } | |
6587 | main () | |
6588 | { | |
6589 | exit (find_stack_direction() < 0); | |
6590 | } | |
6591 | EOF | |
7aae67a2 | 6592 | if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6593 | then |
6594 | ac_cv_c_stack_direction=1 | |
6595 | else | |
6596 | echo "configure: failed program was:" >&5 | |
6597 | cat conftest.$ac_ext >&5 | |
6598 | rm -fr conftest* | |
6599 | ac_cv_c_stack_direction=-1 | |
6600 | fi | |
6601 | rm -fr conftest* | |
6602 | fi | |
6603 | ||
6604 | fi | |
6605 | ||
6606 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
6607 | cat >> confdefs.h <<EOF | |
6608 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6609 | EOF | |
6610 | ||
6611 | fi | |
6612 | ||
6613 | for ac_hdr in unistd.h | |
6614 | do | |
6615 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6616 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7aae67a2 | 6617 | echo "configure:6618: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6620 | else | |
6621 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6622 | #line 6623 "configure" |
ab87f8c8 JL |
6623 | #include "confdefs.h" |
6624 | #include <$ac_hdr> | |
6625 | EOF | |
6626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 6627 | { (eval echo configure:6628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6628 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6629 | if test -z "$ac_err"; then |
6630 | rm -rf conftest* | |
6631 | eval "ac_cv_header_$ac_safe=yes" | |
6632 | else | |
6633 | echo "$ac_err" >&5 | |
6634 | echo "configure: failed program was:" >&5 | |
6635 | cat conftest.$ac_ext >&5 | |
6636 | rm -rf conftest* | |
6637 | eval "ac_cv_header_$ac_safe=no" | |
6638 | fi | |
6639 | rm -f conftest* | |
6640 | fi | |
6641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6642 | echo "$ac_t""yes" 1>&6 | |
6643 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6644 | cat >> confdefs.h <<EOF | |
6645 | #define $ac_tr_hdr 1 | |
6646 | EOF | |
6647 | ||
6648 | else | |
6649 | echo "$ac_t""no" 1>&6 | |
6650 | fi | |
6651 | done | |
6652 | ||
6653 | for ac_func in getpagesize | |
6654 | do | |
6655 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 6656 | echo "configure:6657: checking for $ac_func" >&5 |
ab87f8c8 JL |
6657 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6658 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6659 | else | |
6660 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6661 | #line 6662 "configure" |
ab87f8c8 JL |
6662 | #include "confdefs.h" |
6663 | /* System header to define __stub macros and hopefully few prototypes, | |
6664 | which can conflict with char $ac_func(); below. */ | |
6665 | #include <assert.h> | |
6666 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6667 | /* We use char because int might match the return type of a gcc2 | |
6668 | builtin and then its argument prototype would still apply. */ | |
6669 | char $ac_func(); | |
6670 | ||
6671 | int main() { | |
6672 | ||
6673 | /* The GNU C library defines this for functions which it implements | |
6674 | to always fail with ENOSYS. Some functions are actually named | |
6675 | something starting with __ and the normal name is an alias. */ | |
6676 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6677 | choke me | |
6678 | #else | |
3ecc3258 | 6679 | $ac_func(); |
ab87f8c8 JL |
6680 | #endif |
6681 | ||
6682 | ; return 0; } | |
6683 | EOF | |
7aae67a2 | 6684 | if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6685 | rm -rf conftest* |
6686 | eval "ac_cv_func_$ac_func=yes" | |
6687 | else | |
6688 | echo "configure: failed program was:" >&5 | |
6689 | cat conftest.$ac_ext >&5 | |
6690 | rm -rf conftest* | |
6691 | eval "ac_cv_func_$ac_func=no" | |
6692 | fi | |
6693 | rm -f conftest* | |
6694 | fi | |
6695 | ||
6696 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6697 | echo "$ac_t""yes" 1>&6 | |
6698 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6699 | cat >> confdefs.h <<EOF | |
6700 | #define $ac_tr_func 1 | |
6701 | EOF | |
6702 | ||
6703 | else | |
6704 | echo "$ac_t""no" 1>&6 | |
6705 | fi | |
6706 | done | |
6707 | ||
6708 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
7aae67a2 | 6709 | echo "configure:6710: checking for working mmap" >&5 |
ab87f8c8 JL |
6710 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6712 | else | |
6713 | if test "$cross_compiling" = yes; then | |
6714 | ac_cv_func_mmap_fixed_mapped=no | |
6715 | else | |
6716 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6717 | #line 6718 "configure" |
ab87f8c8 JL |
6718 | #include "confdefs.h" |
6719 | ||
6720 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6721 | Here is a matrix of mmap possibilities: | |
6722 | mmap private not fixed | |
6723 | mmap private fixed at somewhere currently unmapped | |
6724 | mmap private fixed at somewhere already mapped | |
6725 | mmap shared not fixed | |
6726 | mmap shared fixed at somewhere currently unmapped | |
6727 | mmap shared fixed at somewhere already mapped | |
6728 | For private mappings, we should verify that changes cannot be read() | |
6729 | back from the file, nor mmap's back from the file at a different | |
6730 | address. (There have been systems where private was not correctly | |
6731 | implemented like the infamous i386 svr4.0, and systems where the | |
6732 | VM page cache was not coherent with the filesystem buffer cache | |
6733 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6734 | For shared mappings, we should conversely verify that changes get | |
6735 | propogated back to all the places they're supposed to be. | |
6736 | ||
6737 | Grep wants private fixed already mapped. | |
6738 | The main things grep needs to know about mmap are: | |
6739 | * does it exist and is it safe to write into the mmap'd area | |
6740 | * how to use it (BSD variants) */ | |
6741 | #include <sys/types.h> | |
6742 | #include <fcntl.h> | |
6743 | #include <sys/mman.h> | |
6744 | ||
6745 | /* This mess was copied from the GNU getpagesize.h. */ | |
6746 | #ifndef HAVE_GETPAGESIZE | |
6747 | # ifdef HAVE_UNISTD_H | |
6748 | # include <unistd.h> | |
6749 | # endif | |
6750 | ||
6751 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6752 | # ifndef HAVE_SYS_PARAM_H | |
6753 | # define HAVE_SYS_PARAM_H 1 | |
6754 | # endif | |
6755 | ||
6756 | # ifdef _SC_PAGESIZE | |
6757 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6758 | # else /* no _SC_PAGESIZE */ | |
6759 | # ifdef HAVE_SYS_PARAM_H | |
6760 | # include <sys/param.h> | |
6761 | # ifdef EXEC_PAGESIZE | |
6762 | # define getpagesize() EXEC_PAGESIZE | |
6763 | # else /* no EXEC_PAGESIZE */ | |
6764 | # ifdef NBPG | |
6765 | # define getpagesize() NBPG * CLSIZE | |
6766 | # ifndef CLSIZE | |
6767 | # define CLSIZE 1 | |
6768 | # endif /* no CLSIZE */ | |
6769 | # else /* no NBPG */ | |
6770 | # ifdef NBPC | |
6771 | # define getpagesize() NBPC | |
6772 | # else /* no NBPC */ | |
6773 | # ifdef PAGESIZE | |
6774 | # define getpagesize() PAGESIZE | |
6775 | # endif /* PAGESIZE */ | |
6776 | # endif /* no NBPC */ | |
6777 | # endif /* no NBPG */ | |
6778 | # endif /* no EXEC_PAGESIZE */ | |
6779 | # else /* no HAVE_SYS_PARAM_H */ | |
6780 | # define getpagesize() 8192 /* punt totally */ | |
6781 | # endif /* no HAVE_SYS_PARAM_H */ | |
6782 | # endif /* no _SC_PAGESIZE */ | |
6783 | ||
6784 | #endif /* no HAVE_GETPAGESIZE */ | |
6785 | ||
6786 | #ifdef __cplusplus | |
6787 | extern "C" { void *malloc(unsigned); } | |
6788 | #else | |
6789 | char *malloc(); | |
6790 | #endif | |
6791 | ||
6792 | int | |
6793 | main() | |
6794 | { | |
6795 | char *data, *data2, *data3; | |
6796 | int i, pagesize; | |
6797 | int fd; | |
6798 | ||
6799 | pagesize = getpagesize(); | |
6800 | ||
6801 | /* | |
6802 | * First, make a file with some known garbage in it. | |
6803 | */ | |
6804 | data = malloc(pagesize); | |
6805 | if (!data) | |
6806 | exit(1); | |
6807 | for (i = 0; i < pagesize; ++i) | |
6808 | *(data + i) = rand(); | |
6809 | umask(0); | |
6810 | fd = creat("conftestmmap", 0600); | |
6811 | if (fd < 0) | |
6812 | exit(1); | |
6813 | if (write(fd, data, pagesize) != pagesize) | |
6814 | exit(1); | |
6815 | close(fd); | |
6816 | ||
6817 | /* | |
6818 | * Next, try to mmap the file at a fixed address which | |
6819 | * already has something else allocated at it. If we can, | |
6820 | * also make sure that we see the same garbage. | |
6821 | */ | |
6822 | fd = open("conftestmmap", O_RDWR); | |
6823 | if (fd < 0) | |
6824 | exit(1); | |
6825 | data2 = malloc(2 * pagesize); | |
6826 | if (!data2) | |
6827 | exit(1); | |
6828 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6829 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6830 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6831 | exit(1); | |
6832 | for (i = 0; i < pagesize; ++i) | |
6833 | if (*(data + i) != *(data2 + i)) | |
6834 | exit(1); | |
6835 | ||
6836 | /* | |
6837 | * Finally, make sure that changes to the mapped area | |
6838 | * do not percolate back to the file as seen by read(). | |
6839 | * (This is a bug on some variants of i386 svr4.0.) | |
6840 | */ | |
6841 | for (i = 0; i < pagesize; ++i) | |
6842 | *(data2 + i) = *(data2 + i) + 1; | |
6843 | data3 = malloc(pagesize); | |
6844 | if (!data3) | |
6845 | exit(1); | |
6846 | if (read(fd, data3, pagesize) != pagesize) | |
6847 | exit(1); | |
6848 | for (i = 0; i < pagesize; ++i) | |
6849 | if (*(data + i) != *(data3 + i)) | |
6850 | exit(1); | |
6851 | close(fd); | |
6852 | unlink("conftestmmap"); | |
6853 | exit(0); | |
6854 | } | |
6855 | ||
6856 | EOF | |
7aae67a2 | 6857 | if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6858 | then |
6859 | ac_cv_func_mmap_fixed_mapped=yes | |
6860 | else | |
6861 | echo "configure: failed program was:" >&5 | |
6862 | cat conftest.$ac_ext >&5 | |
6863 | rm -fr conftest* | |
6864 | ac_cv_func_mmap_fixed_mapped=no | |
6865 | fi | |
6866 | rm -fr conftest* | |
6867 | fi | |
6868 | ||
6869 | fi | |
6870 | ||
6871 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
6872 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6873 | cat >> confdefs.h <<\EOF | |
6874 | #define HAVE_MMAP 1 | |
6875 | EOF | |
6876 | ||
6877 | fi | |
6878 | ||
6879 | ||
6880 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
6881 | unistd.h sys/param.h | |
6882 | do | |
6883 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6884 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
7aae67a2 | 6885 | echo "configure:6886: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6886 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6888 | else | |
6889 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6890 | #line 6891 "configure" |
ab87f8c8 JL |
6891 | #include "confdefs.h" |
6892 | #include <$ac_hdr> | |
6893 | EOF | |
6894 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 6895 | { (eval echo configure:6896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6896 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6897 | if test -z "$ac_err"; then |
6898 | rm -rf conftest* | |
6899 | eval "ac_cv_header_$ac_safe=yes" | |
6900 | else | |
6901 | echo "$ac_err" >&5 | |
6902 | echo "configure: failed program was:" >&5 | |
6903 | cat conftest.$ac_ext >&5 | |
6904 | rm -rf conftest* | |
6905 | eval "ac_cv_header_$ac_safe=no" | |
6906 | fi | |
6907 | rm -f conftest* | |
6908 | fi | |
6909 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6910 | echo "$ac_t""yes" 1>&6 | |
6911 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6912 | cat >> confdefs.h <<EOF | |
6913 | #define $ac_tr_hdr 1 | |
6914 | EOF | |
6915 | ||
6916 | else | |
6917 | echo "$ac_t""no" 1>&6 | |
6918 | fi | |
6919 | done | |
6920 | ||
6921 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
6922 | strdup __argz_count __argz_stringify __argz_next | |
6923 | do | |
6924 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 6925 | echo "configure:6926: checking for $ac_func" >&5 |
ab87f8c8 JL |
6926 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6928 | else | |
6929 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6930 | #line 6931 "configure" |
ab87f8c8 JL |
6931 | #include "confdefs.h" |
6932 | /* System header to define __stub macros and hopefully few prototypes, | |
6933 | which can conflict with char $ac_func(); below. */ | |
6934 | #include <assert.h> | |
6935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6936 | /* We use char because int might match the return type of a gcc2 | |
6937 | builtin and then its argument prototype would still apply. */ | |
6938 | char $ac_func(); | |
6939 | ||
6940 | int main() { | |
6941 | ||
6942 | /* The GNU C library defines this for functions which it implements | |
6943 | to always fail with ENOSYS. Some functions are actually named | |
6944 | something starting with __ and the normal name is an alias. */ | |
6945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6946 | choke me | |
6947 | #else | |
3ecc3258 | 6948 | $ac_func(); |
ab87f8c8 JL |
6949 | #endif |
6950 | ||
6951 | ; return 0; } | |
6952 | EOF | |
7aae67a2 | 6953 | if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6954 | rm -rf conftest* |
6955 | eval "ac_cv_func_$ac_func=yes" | |
6956 | else | |
6957 | echo "configure: failed program was:" >&5 | |
6958 | cat conftest.$ac_ext >&5 | |
6959 | rm -rf conftest* | |
6960 | eval "ac_cv_func_$ac_func=no" | |
6961 | fi | |
6962 | rm -f conftest* | |
6963 | fi | |
6964 | ||
6965 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6966 | echo "$ac_t""yes" 1>&6 | |
6967 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6968 | cat >> confdefs.h <<EOF | |
6969 | #define $ac_tr_func 1 | |
6970 | EOF | |
6971 | ||
6972 | else | |
6973 | echo "$ac_t""no" 1>&6 | |
6974 | fi | |
6975 | done | |
6976 | ||
6977 | ||
6978 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6979 | for ac_func in stpcpy | |
6980 | do | |
6981 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 6982 | echo "configure:6983: checking for $ac_func" >&5 |
ab87f8c8 JL |
6983 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6985 | else | |
6986 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 6987 | #line 6988 "configure" |
ab87f8c8 JL |
6988 | #include "confdefs.h" |
6989 | /* System header to define __stub macros and hopefully few prototypes, | |
6990 | which can conflict with char $ac_func(); below. */ | |
6991 | #include <assert.h> | |
6992 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6993 | /* We use char because int might match the return type of a gcc2 | |
6994 | builtin and then its argument prototype would still apply. */ | |
6995 | char $ac_func(); | |
6996 | ||
6997 | int main() { | |
6998 | ||
6999 | /* The GNU C library defines this for functions which it implements | |
7000 | to always fail with ENOSYS. Some functions are actually named | |
7001 | something starting with __ and the normal name is an alias. */ | |
7002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7003 | choke me | |
7004 | #else | |
3ecc3258 | 7005 | $ac_func(); |
ab87f8c8 JL |
7006 | #endif |
7007 | ||
7008 | ; return 0; } | |
7009 | EOF | |
7aae67a2 | 7010 | if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7011 | rm -rf conftest* |
7012 | eval "ac_cv_func_$ac_func=yes" | |
7013 | else | |
7014 | echo "configure: failed program was:" >&5 | |
7015 | cat conftest.$ac_ext >&5 | |
7016 | rm -rf conftest* | |
7017 | eval "ac_cv_func_$ac_func=no" | |
7018 | fi | |
7019 | rm -f conftest* | |
7020 | fi | |
7021 | ||
7022 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7023 | echo "$ac_t""yes" 1>&6 | |
7024 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7025 | cat >> confdefs.h <<EOF | |
7026 | #define $ac_tr_func 1 | |
7027 | EOF | |
7028 | ||
7029 | else | |
7030 | echo "$ac_t""no" 1>&6 | |
7031 | fi | |
7032 | done | |
7033 | ||
7034 | fi | |
7035 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
7036 | cat >> confdefs.h <<\EOF | |
7037 | #define HAVE_STPCPY 1 | |
7038 | EOF | |
7039 | ||
7040 | fi | |
7041 | ||
7042 | if test $ac_cv_header_locale_h = yes; then | |
7043 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
7aae67a2 | 7044 | echo "configure:7045: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
7045 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
7046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7047 | else | |
7048 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7049 | #line 7050 "configure" |
ab87f8c8 JL |
7050 | #include "confdefs.h" |
7051 | #include <locale.h> | |
7052 | int main() { | |
7053 | return LC_MESSAGES | |
7054 | ; return 0; } | |
7055 | EOF | |
7aae67a2 | 7056 | if { (eval echo configure:7057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7057 | rm -rf conftest* |
7058 | am_cv_val_LC_MESSAGES=yes | |
7059 | else | |
7060 | echo "configure: failed program was:" >&5 | |
7061 | cat conftest.$ac_ext >&5 | |
7062 | rm -rf conftest* | |
7063 | am_cv_val_LC_MESSAGES=no | |
7064 | fi | |
7065 | rm -f conftest* | |
7066 | fi | |
7067 | ||
7068 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
7069 | if test $am_cv_val_LC_MESSAGES = yes; then | |
7070 | cat >> confdefs.h <<\EOF | |
7071 | #define HAVE_LC_MESSAGES 1 | |
7072 | EOF | |
7073 | ||
7074 | fi | |
7075 | fi | |
7076 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
7aae67a2 | 7077 | echo "configure:7078: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
7078 | # Check whether --enable-nls or --disable-nls was given. |
7079 | if test "${enable_nls+set}" = set; then | |
7080 | enableval="$enable_nls" | |
7081 | USE_NLS=$enableval | |
7082 | else | |
7083 | USE_NLS=yes | |
7084 | fi | |
7085 | ||
7086 | echo "$ac_t""$USE_NLS" 1>&6 | |
7087 | ||
7088 | ||
7089 | USE_INCLUDED_LIBINTL=no | |
7090 | ||
7091 | if test "$USE_NLS" = "yes"; then | |
7092 | cat >> confdefs.h <<\EOF | |
7093 | #define ENABLE_NLS 1 | |
7094 | EOF | |
7095 | ||
7096 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
7aae67a2 | 7097 | echo "configure:7098: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
7098 | # Check whether --with-included-gettext or --without-included-gettext was given. |
7099 | if test "${with_included_gettext+set}" = set; then | |
7100 | withval="$with_included_gettext" | |
7101 | nls_cv_force_use_gnu_gettext=$withval | |
7102 | else | |
7103 | nls_cv_force_use_gnu_gettext=no | |
7104 | fi | |
7105 | ||
7106 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
7107 | ||
7108 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7109 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7110 | nls_cv_header_intl= | |
7111 | nls_cv_header_libgt= | |
7112 | CATOBJEXT=NONE | |
7113 | ||
7114 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
7115 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
7aae67a2 | 7116 | echo "configure:7117: checking for libintl.h" >&5 |
ab87f8c8 JL |
7117 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7119 | else | |
7120 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7121 | #line 7122 "configure" |
ab87f8c8 JL |
7122 | #include "confdefs.h" |
7123 | #include <libintl.h> | |
7124 | EOF | |
7125 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 7126 | { (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7127 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7128 | if test -z "$ac_err"; then |
7129 | rm -rf conftest* | |
7130 | eval "ac_cv_header_$ac_safe=yes" | |
7131 | else | |
7132 | echo "$ac_err" >&5 | |
7133 | echo "configure: failed program was:" >&5 | |
7134 | cat conftest.$ac_ext >&5 | |
7135 | rm -rf conftest* | |
7136 | eval "ac_cv_header_$ac_safe=no" | |
7137 | fi | |
7138 | rm -f conftest* | |
7139 | fi | |
7140 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7141 | echo "$ac_t""yes" 1>&6 | |
7142 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
7aae67a2 | 7143 | echo "configure:7144: checking for gettext in libc" >&5 |
ab87f8c8 JL |
7144 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
7145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7146 | else | |
7147 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7148 | #line 7149 "configure" |
ab87f8c8 JL |
7149 | #include "confdefs.h" |
7150 | #include <libintl.h> | |
7151 | int main() { | |
7152 | return (int) gettext ("") | |
7153 | ; return 0; } | |
7154 | EOF | |
7aae67a2 | 7155 | if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7156 | rm -rf conftest* |
7157 | gt_cv_func_gettext_libc=yes | |
7158 | else | |
7159 | echo "configure: failed program was:" >&5 | |
7160 | cat conftest.$ac_ext >&5 | |
7161 | rm -rf conftest* | |
7162 | gt_cv_func_gettext_libc=no | |
7163 | fi | |
7164 | rm -f conftest* | |
7165 | fi | |
7166 | ||
7167 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7168 | ||
7169 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7170 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
7aae67a2 | 7171 | echo "configure:7172: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7172 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7175 | else | |
7176 | ac_save_LIBS="$LIBS" | |
7177 | LIBS="-lintl $LIBS" | |
7178 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7179 | #line 7180 "configure" |
ab87f8c8 JL |
7180 | #include "confdefs.h" |
7181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7182 | /* We use char because int might match the return type of a gcc2 | |
7183 | builtin and then its argument prototype would still apply. */ | |
7184 | char bindtextdomain(); | |
7185 | ||
7186 | int main() { | |
7187 | bindtextdomain() | |
7188 | ; return 0; } | |
7189 | EOF | |
7aae67a2 | 7190 | if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7191 | rm -rf conftest* |
7192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7193 | else | |
7194 | echo "configure: failed program was:" >&5 | |
7195 | cat conftest.$ac_ext >&5 | |
7196 | rm -rf conftest* | |
7197 | eval "ac_cv_lib_$ac_lib_var=no" | |
7198 | fi | |
7199 | rm -f conftest* | |
7200 | LIBS="$ac_save_LIBS" | |
7201 | ||
7202 | fi | |
7203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7204 | echo "$ac_t""yes" 1>&6 | |
7205 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
7aae67a2 | 7206 | echo "configure:7207: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7207 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7209 | else | |
7210 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
7aae67a2 | 7211 | echo "configure:7212: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7212 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7215 | else | |
7216 | ac_save_LIBS="$LIBS" | |
7217 | LIBS="-lintl $LIBS" | |
7218 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7219 | #line 7220 "configure" |
ab87f8c8 JL |
7220 | #include "confdefs.h" |
7221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7222 | /* We use char because int might match the return type of a gcc2 | |
7223 | builtin and then its argument prototype would still apply. */ | |
7224 | char gettext(); | |
7225 | ||
7226 | int main() { | |
7227 | gettext() | |
7228 | ; return 0; } | |
7229 | EOF | |
7aae67a2 | 7230 | if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7231 | rm -rf conftest* |
7232 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7233 | else | |
7234 | echo "configure: failed program was:" >&5 | |
7235 | cat conftest.$ac_ext >&5 | |
7236 | rm -rf conftest* | |
7237 | eval "ac_cv_lib_$ac_lib_var=no" | |
7238 | fi | |
7239 | rm -f conftest* | |
7240 | LIBS="$ac_save_LIBS" | |
7241 | ||
7242 | fi | |
7243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7244 | echo "$ac_t""yes" 1>&6 | |
7245 | gt_cv_func_gettext_libintl=yes | |
7246 | else | |
7247 | echo "$ac_t""no" 1>&6 | |
7248 | gt_cv_func_gettext_libintl=no | |
7249 | fi | |
7250 | ||
7251 | fi | |
7252 | ||
7253 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7254 | else | |
7255 | echo "$ac_t""no" 1>&6 | |
7256 | fi | |
7257 | ||
7258 | fi | |
7259 | ||
7260 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7261 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7262 | cat >> confdefs.h <<\EOF | |
7263 | #define HAVE_GETTEXT 1 | |
7264 | EOF | |
7265 | ||
7266 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7267 | set dummy msgfmt; ac_word=$2 | |
7268 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7269 | echo "configure:7270: checking for $ac_word" >&5 |
ab87f8c8 JL |
7270 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7272 | else | |
7273 | case "$MSGFMT" in | |
7274 | /*) | |
7275 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7276 | ;; | |
7277 | *) | |
7278 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7279 | for ac_dir in $PATH; do | |
7280 | test -z "$ac_dir" && ac_dir=. | |
7281 | if test -f $ac_dir/$ac_word; then | |
7282 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7283 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7284 | break | |
7285 | fi | |
7286 | fi | |
7287 | done | |
7288 | IFS="$ac_save_ifs" | |
7289 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7290 | ;; | |
7291 | esac | |
7292 | fi | |
7293 | MSGFMT="$ac_cv_path_MSGFMT" | |
7294 | if test -n "$MSGFMT"; then | |
7295 | echo "$ac_t""$MSGFMT" 1>&6 | |
7296 | else | |
7297 | echo "$ac_t""no" 1>&6 | |
7298 | fi | |
7299 | if test "$MSGFMT" != "no"; then | |
7300 | for ac_func in dcgettext | |
7301 | do | |
7302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
7aae67a2 | 7303 | echo "configure:7304: checking for $ac_func" >&5 |
ab87f8c8 JL |
7304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7306 | else | |
7307 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7308 | #line 7309 "configure" |
ab87f8c8 JL |
7309 | #include "confdefs.h" |
7310 | /* System header to define __stub macros and hopefully few prototypes, | |
7311 | which can conflict with char $ac_func(); below. */ | |
7312 | #include <assert.h> | |
7313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7314 | /* We use char because int might match the return type of a gcc2 | |
7315 | builtin and then its argument prototype would still apply. */ | |
7316 | char $ac_func(); | |
7317 | ||
7318 | int main() { | |
7319 | ||
7320 | /* The GNU C library defines this for functions which it implements | |
7321 | to always fail with ENOSYS. Some functions are actually named | |
7322 | something starting with __ and the normal name is an alias. */ | |
7323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7324 | choke me | |
7325 | #else | |
3ecc3258 | 7326 | $ac_func(); |
ab87f8c8 JL |
7327 | #endif |
7328 | ||
7329 | ; return 0; } | |
7330 | EOF | |
7aae67a2 | 7331 | if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7332 | rm -rf conftest* |
7333 | eval "ac_cv_func_$ac_func=yes" | |
7334 | else | |
7335 | echo "configure: failed program was:" >&5 | |
7336 | cat conftest.$ac_ext >&5 | |
7337 | rm -rf conftest* | |
7338 | eval "ac_cv_func_$ac_func=no" | |
7339 | fi | |
7340 | rm -f conftest* | |
7341 | fi | |
7342 | ||
7343 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7344 | echo "$ac_t""yes" 1>&6 | |
7345 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7346 | cat >> confdefs.h <<EOF | |
7347 | #define $ac_tr_func 1 | |
7348 | EOF | |
7349 | ||
7350 | else | |
7351 | echo "$ac_t""no" 1>&6 | |
7352 | fi | |
7353 | done | |
7354 | ||
7355 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7356 | set dummy gmsgfmt; ac_word=$2 | |
7357 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7358 | echo "configure:7359: checking for $ac_word" >&5 |
ab87f8c8 JL |
7359 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7361 | else | |
7362 | case "$GMSGFMT" in | |
7363 | /*) | |
7364 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7365 | ;; | |
7366 | ?:/*) | |
7367 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7368 | ;; | |
7369 | *) | |
cd9e5e7c | 7370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7371 | ac_dummy="$PATH" |
7372 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7373 | test -z "$ac_dir" && ac_dir=. |
7374 | if test -f $ac_dir/$ac_word; then | |
7375 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7376 | break | |
7377 | fi | |
7378 | done | |
7379 | IFS="$ac_save_ifs" | |
7380 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7381 | ;; | |
7382 | esac | |
7383 | fi | |
7384 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7385 | if test -n "$GMSGFMT"; then | |
7386 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7387 | else | |
7388 | echo "$ac_t""no" 1>&6 | |
7389 | fi | |
7390 | ||
7391 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7392 | set dummy xgettext; ac_word=$2 | |
7393 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7394 | echo "configure:7395: checking for $ac_word" >&5 |
ab87f8c8 JL |
7395 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7396 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7397 | else | |
7398 | case "$XGETTEXT" in | |
7399 | /*) | |
7400 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7401 | ;; | |
7402 | *) | |
7403 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7404 | for ac_dir in $PATH; do | |
7405 | test -z "$ac_dir" && ac_dir=. | |
7406 | if test -f $ac_dir/$ac_word; then | |
7407 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7408 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7409 | break | |
7410 | fi | |
7411 | fi | |
7412 | done | |
7413 | IFS="$ac_save_ifs" | |
7414 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7415 | ;; | |
7416 | esac | |
7417 | fi | |
7418 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7419 | if test -n "$XGETTEXT"; then | |
7420 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7421 | else | |
7422 | echo "$ac_t""no" 1>&6 | |
7423 | fi | |
7424 | ||
7425 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7426 | #line 7427 "configure" |
ab87f8c8 JL |
7427 | #include "confdefs.h" |
7428 | ||
7429 | int main() { | |
7430 | extern int _nl_msg_cat_cntr; | |
7431 | return _nl_msg_cat_cntr | |
7432 | ; return 0; } | |
7433 | EOF | |
7aae67a2 | 7434 | if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7435 | rm -rf conftest* |
7436 | CATOBJEXT=.gmo | |
7437 | DATADIRNAME=share | |
7438 | else | |
7439 | echo "configure: failed program was:" >&5 | |
7440 | cat conftest.$ac_ext >&5 | |
7441 | rm -rf conftest* | |
7442 | CATOBJEXT=.mo | |
7443 | DATADIRNAME=lib | |
7444 | fi | |
7445 | rm -f conftest* | |
7446 | INSTOBJEXT=.mo | |
7447 | fi | |
7448 | fi | |
7449 | ||
7450 | else | |
7451 | echo "$ac_t""no" 1>&6 | |
7452 | fi | |
7453 | ||
7454 | ||
7455 | if test "$CATOBJEXT" = "NONE"; then | |
7456 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
7aae67a2 | 7457 | echo "configure:7458: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7458 | # Check whether --with-catgets or --without-catgets was given. |
7459 | if test "${with_catgets+set}" = set; then | |
7460 | withval="$with_catgets" | |
7461 | nls_cv_use_catgets=$withval | |
7462 | else | |
7463 | nls_cv_use_catgets=no | |
7464 | fi | |
7465 | ||
7466 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7467 | ||
7468 | if test "$nls_cv_use_catgets" = "yes"; then | |
7469 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
7aae67a2 | 7470 | echo "configure:7471: checking for main in -li" >&5 |
ab87f8c8 JL |
7471 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7472 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7474 | else | |
7475 | ac_save_LIBS="$LIBS" | |
7476 | LIBS="-li $LIBS" | |
7477 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7478 | #line 7479 "configure" |
ab87f8c8 JL |
7479 | #include "confdefs.h" |
7480 | ||
7481 | int main() { | |
7482 | main() | |
7483 | ; return 0; } | |
7484 | EOF | |
7aae67a2 | 7485 | if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7486 | rm -rf conftest* |
7487 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7488 | else | |
7489 | echo "configure: failed program was:" >&5 | |
7490 | cat conftest.$ac_ext >&5 | |
7491 | rm -rf conftest* | |
7492 | eval "ac_cv_lib_$ac_lib_var=no" | |
7493 | fi | |
7494 | rm -f conftest* | |
7495 | LIBS="$ac_save_LIBS" | |
7496 | ||
7497 | fi | |
7498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7499 | echo "$ac_t""yes" 1>&6 | |
7500 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7501 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7502 | cat >> confdefs.h <<EOF | |
7503 | #define $ac_tr_lib 1 | |
7504 | EOF | |
7505 | ||
7506 | LIBS="-li $LIBS" | |
7507 | ||
7508 | else | |
7509 | echo "$ac_t""no" 1>&6 | |
7510 | fi | |
7511 | ||
7512 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
7aae67a2 | 7513 | echo "configure:7514: checking for catgets" >&5 |
ab87f8c8 JL |
7514 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7516 | else | |
7517 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7518 | #line 7519 "configure" |
ab87f8c8 JL |
7519 | #include "confdefs.h" |
7520 | /* System header to define __stub macros and hopefully few prototypes, | |
7521 | which can conflict with char catgets(); below. */ | |
7522 | #include <assert.h> | |
7523 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7524 | /* We use char because int might match the return type of a gcc2 | |
7525 | builtin and then its argument prototype would still apply. */ | |
7526 | char catgets(); | |
7527 | ||
7528 | int main() { | |
7529 | ||
7530 | /* The GNU C library defines this for functions which it implements | |
7531 | to always fail with ENOSYS. Some functions are actually named | |
7532 | something starting with __ and the normal name is an alias. */ | |
7533 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7534 | choke me | |
7535 | #else | |
3ecc3258 | 7536 | catgets(); |
ab87f8c8 JL |
7537 | #endif |
7538 | ||
7539 | ; return 0; } | |
7540 | EOF | |
7aae67a2 | 7541 | if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7542 | rm -rf conftest* |
7543 | eval "ac_cv_func_catgets=yes" | |
7544 | else | |
7545 | echo "configure: failed program was:" >&5 | |
7546 | cat conftest.$ac_ext >&5 | |
7547 | rm -rf conftest* | |
7548 | eval "ac_cv_func_catgets=no" | |
7549 | fi | |
7550 | rm -f conftest* | |
7551 | fi | |
7552 | ||
7553 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7554 | echo "$ac_t""yes" 1>&6 | |
7555 | cat >> confdefs.h <<\EOF | |
7556 | #define HAVE_CATGETS 1 | |
7557 | EOF | |
7558 | ||
7559 | INTLOBJS="\$(CATOBJS)" | |
7560 | # Extract the first word of "gencat", so it can be a program name with args. | |
7561 | set dummy gencat; ac_word=$2 | |
7562 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7563 | echo "configure:7564: checking for $ac_word" >&5 |
ab87f8c8 JL |
7564 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7566 | else | |
7567 | case "$GENCAT" in | |
7568 | /*) | |
7569 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7570 | ;; | |
7571 | ?:/*) | |
7572 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7573 | ;; | |
7574 | *) | |
cd9e5e7c | 7575 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7576 | ac_dummy="$PATH" |
7577 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7578 | test -z "$ac_dir" && ac_dir=. |
7579 | if test -f $ac_dir/$ac_word; then | |
7580 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7581 | break | |
7582 | fi | |
7583 | done | |
7584 | IFS="$ac_save_ifs" | |
7585 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7586 | ;; | |
7587 | esac | |
7588 | fi | |
7589 | GENCAT="$ac_cv_path_GENCAT" | |
7590 | if test -n "$GENCAT"; then | |
7591 | echo "$ac_t""$GENCAT" 1>&6 | |
7592 | else | |
7593 | echo "$ac_t""no" 1>&6 | |
7594 | fi | |
7595 | if test "$GENCAT" != "no"; then | |
7596 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7597 | set dummy gmsgfmt; ac_word=$2 | |
7598 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7599 | echo "configure:7600: checking for $ac_word" >&5 |
ab87f8c8 JL |
7600 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7602 | else | |
7603 | case "$GMSGFMT" in | |
7604 | /*) | |
7605 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7606 | ;; | |
7607 | ?:/*) | |
7608 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7609 | ;; | |
7610 | *) | |
cd9e5e7c | 7611 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7612 | ac_dummy="$PATH" |
7613 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7614 | test -z "$ac_dir" && ac_dir=. |
7615 | if test -f $ac_dir/$ac_word; then | |
7616 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7617 | break | |
7618 | fi | |
7619 | done | |
7620 | IFS="$ac_save_ifs" | |
7621 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7622 | ;; | |
7623 | esac | |
7624 | fi | |
7625 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7626 | if test -n "$GMSGFMT"; then | |
7627 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7628 | else | |
7629 | echo "$ac_t""no" 1>&6 | |
7630 | fi | |
7631 | ||
7632 | if test "$GMSGFMT" = "no"; then | |
7633 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7634 | set dummy msgfmt; ac_word=$2 | |
7635 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7636 | echo "configure:7637: checking for $ac_word" >&5 |
ab87f8c8 JL |
7637 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7639 | else | |
7640 | case "$GMSGFMT" in | |
7641 | /*) | |
7642 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7643 | ;; | |
7644 | *) | |
7645 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7646 | for ac_dir in $PATH; do | |
7647 | test -z "$ac_dir" && ac_dir=. | |
7648 | if test -f $ac_dir/$ac_word; then | |
7649 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7650 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7651 | break | |
7652 | fi | |
7653 | fi | |
7654 | done | |
7655 | IFS="$ac_save_ifs" | |
7656 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7657 | ;; | |
7658 | esac | |
7659 | fi | |
7660 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7661 | if test -n "$GMSGFMT"; then | |
7662 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7663 | else | |
7664 | echo "$ac_t""no" 1>&6 | |
7665 | fi | |
7666 | ||
7667 | fi | |
7668 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7669 | set dummy xgettext; ac_word=$2 | |
7670 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7671 | echo "configure:7672: checking for $ac_word" >&5 |
ab87f8c8 JL |
7672 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7674 | else | |
7675 | case "$XGETTEXT" in | |
7676 | /*) | |
7677 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7678 | ;; | |
7679 | *) | |
7680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7681 | for ac_dir in $PATH; do | |
7682 | test -z "$ac_dir" && ac_dir=. | |
7683 | if test -f $ac_dir/$ac_word; then | |
7684 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7685 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7686 | break | |
7687 | fi | |
7688 | fi | |
7689 | done | |
7690 | IFS="$ac_save_ifs" | |
7691 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7692 | ;; | |
7693 | esac | |
7694 | fi | |
7695 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7696 | if test -n "$XGETTEXT"; then | |
7697 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7698 | else | |
7699 | echo "$ac_t""no" 1>&6 | |
7700 | fi | |
7701 | ||
7702 | USE_INCLUDED_LIBINTL=yes | |
7703 | CATOBJEXT=.cat | |
7704 | INSTOBJEXT=.cat | |
7705 | DATADIRNAME=lib | |
7706 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7707 | INTLLIBS=$INTLDEPS | |
7708 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7709 | nls_cv_header_intl=intl/libintl.h | |
7710 | nls_cv_header_libgt=intl/libgettext.h | |
7711 | fi | |
7712 | else | |
7713 | echo "$ac_t""no" 1>&6 | |
7714 | fi | |
7715 | ||
7716 | fi | |
7717 | fi | |
7718 | ||
7719 | if test "$CATOBJEXT" = "NONE"; then | |
7720 | nls_cv_use_gnu_gettext=yes | |
7721 | fi | |
7722 | fi | |
7723 | ||
7724 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7725 | INTLOBJS="\$(GETTOBJS)" | |
7726 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7727 | set dummy msgfmt; ac_word=$2 | |
7728 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7729 | echo "configure:7730: checking for $ac_word" >&5 |
ab87f8c8 JL |
7730 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7732 | else | |
7733 | case "$MSGFMT" in | |
7734 | /*) | |
7735 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7736 | ;; | |
7737 | *) | |
7738 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7739 | for ac_dir in $PATH; do | |
7740 | test -z "$ac_dir" && ac_dir=. | |
7741 | if test -f $ac_dir/$ac_word; then | |
7742 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7743 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7744 | break | |
7745 | fi | |
7746 | fi | |
7747 | done | |
7748 | IFS="$ac_save_ifs" | |
7749 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7750 | ;; | |
7751 | esac | |
7752 | fi | |
7753 | MSGFMT="$ac_cv_path_MSGFMT" | |
7754 | if test -n "$MSGFMT"; then | |
7755 | echo "$ac_t""$MSGFMT" 1>&6 | |
7756 | else | |
7757 | echo "$ac_t""no" 1>&6 | |
7758 | fi | |
7759 | ||
7760 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7761 | set dummy gmsgfmt; ac_word=$2 | |
7762 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7763 | echo "configure:7764: checking for $ac_word" >&5 |
ab87f8c8 JL |
7764 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7766 | else | |
7767 | case "$GMSGFMT" in | |
7768 | /*) | |
7769 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7770 | ;; | |
7771 | ?:/*) | |
7772 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7773 | ;; | |
7774 | *) | |
cd9e5e7c | 7775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7776 | ac_dummy="$PATH" |
7777 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7778 | test -z "$ac_dir" && ac_dir=. |
7779 | if test -f $ac_dir/$ac_word; then | |
7780 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7781 | break | |
7782 | fi | |
7783 | done | |
7784 | IFS="$ac_save_ifs" | |
7785 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7786 | ;; | |
7787 | esac | |
7788 | fi | |
7789 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7790 | if test -n "$GMSGFMT"; then | |
7791 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7792 | else | |
7793 | echo "$ac_t""no" 1>&6 | |
7794 | fi | |
7795 | ||
7796 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7797 | set dummy xgettext; ac_word=$2 | |
7798 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7aae67a2 | 7799 | echo "configure:7800: checking for $ac_word" >&5 |
ab87f8c8 JL |
7800 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7802 | else | |
7803 | case "$XGETTEXT" in | |
7804 | /*) | |
7805 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7806 | ;; | |
7807 | *) | |
7808 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7809 | for ac_dir in $PATH; do | |
7810 | test -z "$ac_dir" && ac_dir=. | |
7811 | if test -f $ac_dir/$ac_word; then | |
7812 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7813 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7814 | break | |
7815 | fi | |
7816 | fi | |
7817 | done | |
7818 | IFS="$ac_save_ifs" | |
7819 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7820 | ;; | |
7821 | esac | |
7822 | fi | |
7823 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7824 | if test -n "$XGETTEXT"; then | |
7825 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7826 | else | |
7827 | echo "$ac_t""no" 1>&6 | |
7828 | fi | |
7829 | ||
7830 | ||
7831 | USE_INCLUDED_LIBINTL=yes | |
7832 | CATOBJEXT=.gmo | |
7833 | INSTOBJEXT=.mo | |
7834 | DATADIRNAME=share | |
7835 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7836 | INTLLIBS=$INTLDEPS | |
7837 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7838 | nls_cv_header_intl=intl/libintl.h | |
7839 | nls_cv_header_libgt=intl/libgettext.h | |
7840 | fi | |
7841 | ||
7842 | if test "$XGETTEXT" != ":"; then | |
7843 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7844 | : ; | |
7845 | else | |
7846 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
7847 | XGETTEXT=":" | |
7848 | fi | |
7849 | fi | |
7850 | ||
7851 | # We need to process the po/ directory. | |
7852 | POSUB=po | |
7853 | else | |
7854 | DATADIRNAME=share | |
7855 | nls_cv_header_intl=intl/libintl.h | |
7856 | nls_cv_header_libgt=intl/libgettext.h | |
7857 | fi | |
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7863 | # because some of the sources are only built for this goal. | |
7864 | if test "$PACKAGE" = gettext; then | |
7865 | USE_NLS=yes | |
7866 | USE_INCLUDED_LIBINTL=yes | |
7867 | fi | |
7868 | ||
7869 | for lang in $ALL_LINGUAS; do | |
7870 | GMOFILES="$GMOFILES $lang.gmo" | |
7871 | POFILES="$POFILES $lang.po" | |
7872 | done | |
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | if test "x$CATOBJEXT" != "x"; then | |
7888 | if test "x$ALL_LINGUAS" = "x"; then | |
7889 | LINGUAS= | |
7890 | else | |
7891 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
7aae67a2 | 7892 | echo "configure:7893: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
7893 | NEW_LINGUAS= |
7894 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7895 | case "$ALL_LINGUAS" in | |
7896 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7897 | esac | |
7898 | done | |
7899 | LINGUAS=$NEW_LINGUAS | |
7900 | echo "$ac_t""$LINGUAS" 1>&6 | |
7901 | fi | |
7902 | ||
7903 | if test -n "$LINGUAS"; then | |
7904 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7905 | fi | |
7906 | fi | |
7907 | ||
7908 | if test $ac_cv_header_locale_h = yes; then | |
7909 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7910 | else | |
7911 | INCLUDE_LOCALE_H="\ | |
7912 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7913 | fi | |
7914 | ||
7915 | ||
7916 | test -d intl || mkdir intl | |
7917 | if test "$CATOBJEXT" = ".cat"; then | |
7918 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
7919 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
7aae67a2 | 7920 | echo "configure:7921: checking for linux/version.h" >&5 |
ab87f8c8 JL |
7921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7923 | else | |
7924 | cat > conftest.$ac_ext <<EOF | |
7aae67a2 | 7925 | #line 7926 "configure" |
ab87f8c8 JL |
7926 | #include "confdefs.h" |
7927 | #include <linux/version.h> | |
7928 | EOF | |
7929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7aae67a2 | 7930 | { (eval echo configure:7931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7932 | if test -z "$ac_err"; then |
7933 | rm -rf conftest* | |
7934 | eval "ac_cv_header_$ac_safe=yes" | |
7935 | else | |
7936 | echo "$ac_err" >&5 | |
7937 | echo "configure: failed program was:" >&5 | |
7938 | cat conftest.$ac_ext >&5 | |
7939 | rm -rf conftest* | |
7940 | eval "ac_cv_header_$ac_safe=no" | |
7941 | fi | |
7942 | rm -f conftest* | |
7943 | fi | |
7944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7945 | echo "$ac_t""yes" 1>&6 | |
7946 | msgformat=linux | |
7947 | else | |
7948 | echo "$ac_t""no" 1>&6 | |
7949 | msgformat=xopen | |
7950 | fi | |
7951 | ||
7952 | ||
7953 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
7954 | fi | |
7955 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7956 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7957 | ||
7958 | if test "$PACKAGE" = "gettext"; then | |
7959 | GT_NO="#NO#" | |
7960 | GT_YES= | |
7961 | else | |
7962 | GT_NO= | |
7963 | GT_YES="#YES#" | |
7964 | fi | |
7965 | ||
7966 | ||
7967 | ||
7968 | MKINSTALLDIRS= | |
7969 | if test -n "$ac_aux_dir"; then | |
7970 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
7971 | fi | |
7972 | if test -z "$MKINSTALLDIRS"; then | |
7973 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7974 | fi | |
7975 | ||
7976 | ||
7977 | l= | |
7978 | ||
7979 | ||
7980 | test -d po || mkdir po | |
7981 | if test "x$srcdir" != "x."; then | |
7982 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
7983 | posrcprefix="$srcdir/" | |
7984 | else | |
7985 | posrcprefix="../$srcdir/" | |
7986 | fi | |
7987 | else | |
7988 | posrcprefix="../" | |
7989 | fi | |
7990 | rm -f po/POTFILES | |
7991 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7992 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7993 | ||
7994 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
7995 | ||
7996 | # Get an absolute path to the GCC top-level source directory | |
7997 | holddir=`pwd` | |
7998 | cd $srcdir | |
7999 | topdir=`pwd` | |
8000 | cd $holddir | |
8001 | ||
8002 | # Conditionalize the makefile for this host machine. | |
8003 | # Make-host contains the concatenation of all host makefile fragments | |
8004 | # [there can be more than one]. This file is built by configure.frag. | |
8005 | host_overrides=Make-host | |
8006 | dep_host_xmake_file= | |
8007 | for f in .. ${host_xmake_file} | |
8008 | do | |
8009 | if test -f ${srcdir}/config/$f | |
8010 | then | |
8011 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
8012 | fi | |
8013 | done | |
8014 | ||
8015 | # Conditionalize the makefile for this target machine. | |
8016 | # Make-target contains the concatenation of all host makefile fragments | |
8017 | # [there can be more than one]. This file is built by configure.frag. | |
8018 | target_overrides=Make-target | |
8019 | dep_tmake_file= | |
8020 | for f in .. ${tmake_file} | |
8021 | do | |
8022 | if test -f ${srcdir}/config/$f | |
8023 | then | |
8024 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
8025 | fi | |
8026 | done | |
8027 | ||
8028 | # If the host doesn't support symlinks, modify CC in | |
8029 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
8030 | # Otherwise, we can use "CC=$(CC)". | |
8031 | rm -f symtest.tem | |
8032 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
8033 | then | |
8034 | cc_set_by_configure="\$(CC)" | |
5aa82ace | 8035 | quoted_cc_set_by_configure="\$(CC)" |
ab87f8c8 JL |
8036 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" |
8037 | else | |
8038 | rm -f symtest.tem | |
8039 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
8040 | then | |
8041 | symbolic_link="cp -p" | |
8042 | else | |
8043 | symbolic_link="cp" | |
8044 | fi | |
8045 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
5aa82ace | 8046 | quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`" |
ab87f8c8 JL |
8047 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
8048 | fi | |
8049 | rm -f symtest.tem | |
8050 | ||
8051 | out_object_file=`basename $out_file .c`.o | |
8052 | ||
8053 | tm_file_list= | |
8054 | for f in $tm_file; do | |
64ccbc99 KG |
8055 | case $f in |
8056 | gansidecl.h ) | |
8057 | tm_file_list="${tm_file_list} $f" ;; | |
8058 | *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; | |
8059 | esac | |
ab87f8c8 JL |
8060 | done |
8061 | ||
8062 | host_xm_file_list= | |
8063 | for f in $host_xm_file; do | |
64ccbc99 KG |
8064 | case $f in |
8065 | auto-host.h | gansidecl.h | hwint.h ) | |
8066 | host_xm_file_list="${host_xm_file_list} $f" ;; | |
8067 | *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; | |
8068 | esac | |
ab87f8c8 JL |
8069 | done |
8070 | ||
8071 | build_xm_file_list= | |
8072 | for f in $build_xm_file; do | |
64ccbc99 KG |
8073 | case $f in |
8074 | auto-build.h | auto-host.h | gansidecl.h | hwint.h ) | |
8075 | build_xm_file_list="${build_xm_file_list} $f" ;; | |
8076 | *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; | |
8077 | esac | |
ab87f8c8 JL |
8078 | done |
8079 | ||
8080 | # Define macro CROSS_COMPILE in compilation | |
8081 | # if this is a cross-compiler. | |
8082 | # Also use all.cross instead of all.internal | |
8083 | # and add cross-make to Makefile. | |
8084 | cross_overrides="/dev/null" | |
8085 | if test x$host != x$target | |
8086 | then | |
8087 | cross_defines="CROSS=-DCROSS_COMPILE" | |
8088 | cross_overrides="${topdir}/cross-make" | |
8089 | fi | |
8090 | ||
8091 | # When building gcc with a cross-compiler, we need to fix a few things. | |
8092 | # This must come after cross-make as we want all.build to override | |
8093 | # all.cross. | |
8094 | build_overrides="/dev/null" | |
8095 | if test x$build != x$host | |
8096 | then | |
8097 | build_overrides="${topdir}/build-make" | |
8098 | fi | |
8099 | ||
8100 | # Expand extra_headers to include complete path. | |
8101 | # This substitutes for lots of t-* files. | |
8102 | extra_headers_list= | |
8103 | if test "x$extra_headers" = x | |
8104 | then true | |
8105 | else | |
8106 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
8107 | for file in $extra_headers; | |
8108 | do | |
8109 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
8110 | done | |
8111 | fi | |
8112 | ||
8113 | if test x$use_collect2 = xno; then | |
8114 | use_collect2= | |
8115 | fi | |
8116 | ||
8117 | # Add a definition of USE_COLLECT2 if system wants one. | |
8118 | # Also tell toplev.c what to do. | |
8119 | # This substitutes for lots of t-* files. | |
8120 | if test x$use_collect2 = x | |
8121 | then | |
8122 | will_use_collect2= | |
8123 | maybe_use_collect2= | |
8124 | else | |
8125 | will_use_collect2="collect2" | |
8126 | maybe_use_collect2="-DUSE_COLLECT2" | |
8127 | fi | |
8128 | ||
8129 | # NEED TO CONVERT | |
8130 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
8131 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
8132 | # for line oriented comments, so we must always use a GNU cpp. If | |
8133 | # building gcc with a cross compiler, use the cross compiler just | |
8134 | # built. Otherwise, we can use the cpp just built. | |
8135 | md_file_sub= | |
8136 | if test "x$md_cppflags" = x | |
8137 | then | |
8138 | md_file_sub=$srcdir/config/$md_file | |
8139 | else | |
8140 | md_file=md | |
8141 | fi | |
8142 | ||
8143 | # If we have gas in the build tree, make a link to it. | |
8144 | if test -f ../gas/Makefile; then | |
8145 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
8146 | fi | |
8147 | ||
8148 | # If we have nm in the build tree, make a link to it. | |
8149 | if test -f ../binutils/Makefile; then | |
8150 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
8151 | fi | |
8152 | ||
8153 | # If we have ld in the build tree, make a link to it. | |
8154 | if test -f ../ld/Makefile; then | |
8155 | # if test x$use_collect2 = x; then | |
8156 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8157 | # else | |
8158 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8159 | # fi | |
8160 | fi | |
8161 | ||
8162 | # Figure out what assembler alignment features are present. | |
8163 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
7aae67a2 | 8164 | echo "configure:8165: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8165 | gcc_cv_as= |
8166 | gcc_cv_as_alignment_features= | |
8167 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8168 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8169 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8170 | elif test -x "$AS"; then | |
8171 | gcc_cv_as="$AS" | |
8172 | elif test -x as$host_exeext; then | |
8173 | # Build using assembler in the current directory. | |
8174 | gcc_cv_as=./as$host_exeext | |
8175 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8176 | # Single tree build which includes gas. | |
8177 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8178 | do | |
8179 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8180 | if test x$gcc_cv_gas_version != x; then | |
8181 | break | |
8182 | fi | |
8183 | done | |
8184 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8185 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8186 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8187 | # Gas version 2.6 and later support for .balign and .p2align. | |
8188 | # bytes to skip when using .p2align. | |
8189 | 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 | |
8190 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8191 | cat >> confdefs.h <<\EOF | |
8192 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8193 | EOF | |
8194 | ||
8195 | fi | |
8196 | # Gas version 2.8 and later support specifying the maximum | |
8197 | # bytes to skip when using .p2align. | |
8198 | 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 | |
8199 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8200 | cat >> confdefs.h <<\EOF | |
8201 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8202 | EOF |
8203 | ||
0b9d02c6 | 8204 | fi |
9e423e6d | 8205 | fi |
75bffa71 | 8206 | elif test x$host = x$target; then |
9e423e6d | 8207 | # Native build. |
779243f7 JL |
8208 | # Search the same directories that the installed compiler will |
8209 | # search. Else we may find the wrong assembler and lose. If we | |
8210 | # do not find a suitable assembler binary, then try the user's | |
8211 | # path. | |
8212 | # | |
8213 | # Also note we have to check MD_EXEC_PREFIX before checking the | |
8214 | # user's path. Unfortunately, there is no good way to get at the | |
8215 | # value of MD_EXEC_PREFIX here. So we do a brute force search | |
8216 | # through all the known MD_EXEC_PREFIX values. Ugh. This needs | |
8217 | # to be fixed as part of the make/configure rewrite too. | |
8218 | ||
8219 | if test "x$exec_prefix" = xNONE; then | |
8220 | if test "x$prefix" = xNONE; then | |
8221 | test_prefix=/usr/local | |
8222 | else | |
8223 | test_prefix=$prefix | |
8224 | fi | |
8225 | else | |
8226 | test_prefix=$exec_prefix | |
8227 | fi | |
8228 | ||
8229 | # If the loop below does not find an assembler, then use whatever | |
8230 | # one we can find in the users's path. | |
8231 | # user's path. | |
8232 | as=as$host_exeext | |
8233 | ||
8234 | test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \ | |
8235 | $test_prefix/lib/gcc-lib/$target \ | |
8236 | /usr/lib/gcc/$target/$gcc_version \ | |
8237 | /usr/lib/gcc/$target \ | |
8238 | $test_prefix/$target/bin/$target/$gcc_version \ | |
8239 | $test_prefix/$target/bin \ | |
8240 | /usr/libexec \ | |
8241 | /usr/ccs/gcc \ | |
8242 | /usr/ccs/bin \ | |
8243 | /udk/usr/ccs/bin \ | |
8244 | /bsd43/usr/lib/cmplrs/cc \ | |
8245 | /usr/cross64/usr/bin \ | |
8246 | /usr/lib/cmplrs/cc \ | |
8247 | /sysv/usr/lib/cmplrs/cc \ | |
8248 | /svr4/usr/lib/cmplrs/cc \ | |
8249 | /usr/bin" | |
8250 | ||
8251 | for dir in $test_dirs; do | |
8252 | if test -f $dir/as$host_exeext; then | |
8253 | gcc_cv_as=$dir/as$host_exeext | |
8254 | break; | |
8255 | fi | |
8256 | done | |
9e423e6d | 8257 | fi |
75bffa71 | 8258 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8259 | # Check if we have .balign and .p2align |
8260 | echo ".balign 4" > conftest.s | |
8261 | echo ".p2align 2" >> conftest.s | |
8262 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8263 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8264 | cat >> confdefs.h <<\EOF | |
8265 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8266 | EOF | |
8267 | ||
8268 | fi | |
8269 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8270 | # Check if specifying the maximum bytes to skip when |
8271 | # using .p2align is supported. | |
8272 | echo ".p2align 4,,7" > conftest.s | |
8273 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8274 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8275 | cat >> confdefs.h <<\EOF | |
8276 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8277 | EOF | |
8278 | ||
8279 | fi | |
8280 | rm -f conftest.s conftest.o | |
8281 | fi | |
8282 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8283 | ||
d1accaa3 | 8284 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
7aae67a2 | 8285 | echo "configure:8286: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8286 | gcc_cv_as_subsections= |
8287 | if test x$gcc_cv_as != x; then | |
8288 | # Check if we have .subsection | |
8289 | echo ".subsection 1" > conftest.s | |
8290 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8291 | gcc_cv_as_subsections=".subsection" | |
8292 | if test -x nm$host_exeext; then | |
8293 | gcc_cv_nm=./nm$host_exeext | |
8294 | elif test x$host = x$target; then | |
8295 | # Native build. | |
8296 | gcc_cv_nm=nm$host_exeext | |
8297 | fi | |
8298 | if test x$gcc_cv_nm != x; then | |
8299 | cat > conftest.s <<EOF | |
8300 | conftest_label1: .word 0 | |
8301 | .subsection -1 | |
8302 | conftest_label2: .word 0 | |
8303 | .previous | |
8304 | EOF | |
8305 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8306 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8307 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8308 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8309 | : | |
8310 | else | |
d1accaa3 JJ |
8311 | gcc_cv_as_subsections="working .subsection -1" |
8312 | cat >> confdefs.h <<\EOF | |
8313 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8314 | EOF | |
8315 | ||
8316 | fi | |
8317 | fi | |
8318 | fi | |
8319 | fi | |
8320 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8321 | fi | |
8322 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8323 | ||
1cb36a98 RH |
8324 | case "$target" in |
8325 | sparc*-*-*) | |
8326 | echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 | |
7aae67a2 | 8327 | echo "configure:8328: checking assembler .register pseudo-op support" >&5 |
1cb36a98 RH |
8328 | gcc_cv_as_register_pseudo_op= |
8329 | if test x$gcc_cv_as != x; then | |
8330 | # Check if we have .register | |
8331 | echo ".register %g2, #scratch" > conftest.s | |
8332 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8333 | gcc_cv_as_register_pseudo_op=yes | |
8334 | cat >> confdefs.h <<\EOF | |
8335 | #define HAVE_AS_REGISTER_PSEUDO_OP 1 | |
8336 | EOF | |
8337 | ||
8338 | fi | |
8339 | rm -f conftest.s conftest.o | |
8340 | fi | |
8341 | echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6 | |
8342 | ||
8343 | echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6 | |
7aae67a2 | 8344 | echo "configure:8345: checking assembler offsetable %lo() support" >&5 |
1cb36a98 RH |
8345 | gcc_cv_as_offsetable_lo10= |
8346 | if test x$gcc_cv_as != x; then | |
8347 | # Check if assembler has offsetable %lo() | |
8348 | echo "or %g1, %lo(ab) + 12, %g1" > conftest.s | |
8349 | echo "or %g1, %lo(ab + 12), %g1" > conftest1.s | |
8350 | gcc_cv_as_flags64="-xarch=v9" | |
8351 | if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then | |
8352 | gcc_cv_as_flags64="-64" | |
8353 | if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then | |
8354 | gcc_cv_as_flags64="" | |
8355 | fi | |
8356 | fi | |
8357 | if test -n "$gcc_cv_as_flags64" ; then | |
8358 | if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s > /dev/null 2>&1; then | |
8359 | if cmp conftest.o conftest1.o > /dev/null 2>&1; then | |
8360 | : | |
8361 | else | |
8362 | gcc_cv_as_offsetable_lo10=yes | |
8363 | cat >> confdefs.h <<\EOF | |
8364 | #define HAVE_AS_OFFSETABLE_LO10 1 | |
8365 | EOF | |
8366 | ||
8367 | fi | |
8368 | fi | |
8369 | fi | |
8370 | rm -f conftest.s conftest.o conftest1.s conftest1.o | |
8371 | fi | |
8372 | echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6 | |
8373 | ;; | |
8374 | ||
8375 | i[34567]86-*-*) | |
8376 | echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 | |
7aae67a2 | 8377 | echo "configure:8378: checking assembler instructions" >&5 |
1cb36a98 RH |
8378 | gcc_cv_as_instructions= |
8379 | if test x$gcc_cv_as != x; then | |
53b5ce19 JW |
8380 | set "filds fists" "filds mem; fists mem" |
8381 | while test $# -gt 0 | |
8382 | do | |
8383 | echo "$2" > conftest.s | |
8384 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8385 | gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" " | |
8386 | cat >> confdefs.h <<EOF | |
8387 | #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1 | |
8388 | EOF | |
8389 | ||
8390 | fi | |
8391 | shift 2 | |
8392 | done | |
8393 | rm -f conftest.s conftest.o | |
1cb36a98 RH |
8394 | fi |
8395 | echo "$ac_t""$gcc_cv_as_instructions" 1>&6 | |
8396 | ;; | |
8397 | esac | |
53b5ce19 | 8398 | |
861bb6c1 | 8399 | # Figure out what language subdirectories are present. |
71205e0b MH |
8400 | # Look if the user specified --enable-languages="..."; if not, use |
8401 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8402 | # go away some day. | |
8403 | if test x"${enable_languages+set}" != xset; then | |
8404 | if test x"${LANGUAGES+set}" = xset; then | |
8405 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8406 | else | |
8407 | enable_languages=all | |
8408 | fi | |
8409 | fi | |
861bb6c1 JL |
8410 | subdirs= |
8411 | for lang in ${srcdir}/*/config-lang.in .. | |
8412 | do | |
8413 | case $lang in | |
8414 | ..) ;; | |
8415 | # The odd quoting in the next line works around | |
8416 | # an apparent bug in bash 1.12 on linux. | |
8417 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8418 | *) |
8419 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8420 | if test "x$lang_alias" = x | |
8421 | then | |
8422 | echo "$lang doesn't set \$language." 1>&2 | |
8423 | exit 1 | |
8424 | fi | |
8425 | if test x"${enable_languages}" = xall; then | |
8426 | add_this_lang=yes | |
8427 | else | |
8428 | case "${enable_languages}" in | |
8429 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8430 | add_this_lang=yes | |
8431 | ;; | |
8432 | * ) | |
8433 | add_this_lang=no | |
8434 | ;; | |
8435 | esac | |
8436 | fi | |
8437 | if test x"${add_this_lang}" = xyes; then | |
8438 | case $lang in | |
8439 | ${srcdir}/ada/config-lang.in) | |
8440 | if test x$gnat = xyes ; then | |
8441 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8442 | fi | |
8443 | ;; | |
8444 | *) | |
8445 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8446 | ;; | |
8447 | esac | |
8448 | fi | |
8449 | ;; | |
861bb6c1 JL |
8450 | esac |
8451 | done | |
8452 | ||
f24af81b TT |
8453 | # Make gthr-default.h if we have a thread file. |
8454 | gthread_flags= | |
75bffa71 | 8455 | if test $thread_file != single; then |
f24af81b | 8456 | rm -f gthr-default.h |
db0d1ed9 | 8457 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8458 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8459 | fi | |
8460 | ||
8461 | ||
861bb6c1 JL |
8462 | # Make empty files to contain the specs and options for each language. |
8463 | # Then add #include lines to for a compiler that has specs and/or options. | |
8464 | ||
8465 | lang_specs_files= | |
8466 | lang_options_files= | |
3103b7db ML |
8467 | lang_tree_files= |
8468 | rm -f specs.h options.h gencheck.h | |
8469 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8470 | for subdir in . $subdirs |
8471 | do | |
75bffa71 | 8472 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8473 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8474 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8475 | fi | |
75bffa71 | 8476 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8477 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8478 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8479 | fi | |
3103b7db ML |
8480 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8481 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8482 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8483 | fi | |
861bb6c1 JL |
8484 | done |
8485 | ||
8486 | # These (without "all_") are set in each config-lang.in. | |
8487 | # `language' must be a single word so is spelled singularly. | |
8488 | all_languages= | |
8489 | all_boot_languages= | |
8490 | all_compilers= | |
8491 | all_stagestuff= | |
8492 | all_diff_excludes= | |
4f3ae93c | 8493 | all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile' |
861bb6c1 JL |
8494 | # List of language makefile fragments. |
8495 | all_lang_makefiles= | |
8496 | all_headers= | |
8497 | all_lib2funcs= | |
8498 | ||
8499 | # Add the language fragments. | |
8500 | # Languages are added via two mechanisms. Some information must be | |
8501 | # recorded in makefile variables, these are defined in config-lang.in. | |
8502 | # We accumulate them and plug them into the main Makefile. | |
8503 | # The other mechanism is a set of hooks for each of the main targets | |
8504 | # like `clean', `install', etc. | |
8505 | ||
8506 | language_fragments="Make-lang" | |
8507 | language_hooks="Make-hooks" | |
8508 | oldstyle_subdirs= | |
8509 | ||
8510 | for s in .. $subdirs | |
8511 | do | |
75bffa71 | 8512 | if test $s != ".." |
861bb6c1 JL |
8513 | then |
8514 | language= | |
8515 | boot_language= | |
8516 | compilers= | |
8517 | stagestuff= | |
8518 | diff_excludes= | |
8519 | headers= | |
8520 | outputs= | |
8521 | lib2funcs= | |
8522 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8523 | if test "x$language" = x |
861bb6c1 JL |
8524 | then |
8525 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8526 | exit 1 | |
8527 | fi | |
8528 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8529 | all_languages="$all_languages $language" | |
75bffa71 | 8530 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8531 | then |
8532 | all_boot_languages="$all_boot_languages $language" | |
8533 | fi | |
8534 | all_compilers="$all_compilers $compilers" | |
8535 | all_stagestuff="$all_stagestuff $stagestuff" | |
8536 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8537 | all_headers="$all_headers $headers" | |
8538 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8539 | if test x$outputs = x |
861bb6c1 JL |
8540 | then |
8541 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8542 | fi | |
8543 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8544 | fi | |
8545 | done | |
8546 | ||
8547 | # Since we can't use `::' targets, we link each language in | |
8548 | # with a set of hooks, reached indirectly via lang.${target}. | |
8549 | ||
8550 | rm -f Make-hooks | |
8551 | touch Make-hooks | |
8552 | target_list="all.build all.cross start.encap rest.encap \ | |
8553 | info dvi \ | |
8554 | install-normal install-common install-info install-man \ | |
8555 | uninstall distdir \ | |
8556 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8557 | stage1 stage2 stage3 stage4" | |
8558 | for t in $target_list | |
8559 | do | |
8560 | x= | |
ab87f8c8 | 8561 | for lang in .. $all_languages |
861bb6c1 | 8562 | do |
ab87f8c8 JL |
8563 | if test $lang != ".."; then |
8564 | x="$x $lang.$t" | |
861bb6c1 JL |
8565 | fi |
8566 | done | |
8567 | echo "lang.$t: $x" >> Make-hooks | |
8568 | done | |
8569 | ||
8570 | # If we're not building in srcdir, create .gdbinit. | |
8571 | ||
75bffa71 | 8572 | if test ! -f Makefile.in; then |
861bb6c1 JL |
8573 | echo "dir ." > .gdbinit |
8574 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 8575 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
8576 | then |
8577 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
8578 | fi | |
75bffa71 | 8579 | if test "x$subdirs" != x; then |
861bb6c1 JL |
8580 | for s in $subdirs |
8581 | do | |
8582 | echo "dir ${srcdir}/$s" >> .gdbinit | |
8583 | done | |
8584 | fi | |
8585 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
8586 | fi | |
8587 | ||
88111b26 JL |
8588 | # Define variables host_canonical and build_canonical |
8589 | # because some Cygnus local changes in the Makefile depend on them. | |
8590 | build_canonical=${build} | |
8591 | host_canonical=${host} | |
8592 | target_subdir= | |
75bffa71 | 8593 | if test "${host}" != "${target}" ; then |
88111b26 JL |
8594 | target_subdir=${target}/ |
8595 | fi | |
8596 | ||
8597 | ||
8598 | ||
8599 | ||
dec88383 DE |
8600 | # If this is using newlib, then define inhibit_libc in |
8601 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8602 | # libgcc.a, but that's OK because newib should have its own version of | |
8603 | # assert.h. | |
8604 | inhibit_libc= | |
75bffa71 | 8605 | if test x$with_newlib = xyes; then |
dec88383 DE |
8606 | inhibit_libc=-Dinhibit_libc |
8607 | fi | |
8608 | ||
8609 | ||
8c660648 JL |
8610 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
8611 | sched_prefix= | |
8612 | sched_cflags= | |
75bffa71 | 8613 | if test x$enable_haifa = xyes; then |
8c660648 JL |
8614 | echo "Using the Haifa scheduler." |
8615 | sched_prefix=haifa- | |
8616 | sched_cflags=-DHAIFA | |
8617 | fi | |
8618 | ||
8619 | ||
75bffa71 | 8620 | if test x$enable_haifa != x; then |
8c660648 | 8621 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
81814e35 | 8622 | for x in genattrtab.o toplev.o *sched.o; do |
75bffa71 | 8623 | if test -f $x; then |
8c660648 JL |
8624 | echo "Removing $x" |
8625 | rm -f $x | |
8626 | fi | |
8627 | done | |
8628 | fi | |
8629 | ||
8f8d3278 NC |
8630 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
8631 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
8632 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
8633 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
8634 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
8635 | # make and thus we'd get different behavior depending on where we built the | |
8636 | # sources. | |
5949a9fc | 8637 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
8638 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
8639 | else | |
8f8d3278 NC |
8640 | # An explanation of the sed strings: |
8641 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
8642 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
8643 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
8644 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
8645 | # | |
8646 | # (*) Note this pattern overwrites the first character of the string | |
8647 | # with a forward slash if one is not already present. This is not a | |
8648 | # problem because the exact names of the sub-directories concerned is | |
8649 | # unimportant, just the number of them matters. | |
8650 | # | |
8651 | # The practical upshot of these patterns is like this: | |
8652 | # | |
8653 | # prefix exec_prefix result | |
8654 | # ------ ----------- ------ | |
8655 | # /foo /foo/bar ../ | |
8656 | # /foo/ /foo/bar ../ | |
8657 | # /foo /foo/bar/ ../ | |
8658 | # /foo/ /foo/bar/ ../ | |
8659 | # /foo /foo/bar/ugg ../../ | |
8660 | # | |
4c112cda NC |
8661 | dollar='$$' |
8662 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
8663 | fi |
8664 | ||
8665 | ||
2ce3c6c6 | 8666 | |
7e717196 JL |
8667 | # Nothing to do for FLOAT_H, float_format already handled. |
8668 | objdir=`pwd` | |
8669 | ||
8670 | ||
861bb6c1 JL |
8671 | # Process the language and host/target makefile fragments. |
8672 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
8673 | ||
8674 | # Substitute configuration variables | |
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
9b16d2c4 | 8721 | |
e9a25f70 | 8722 | |
6e26218f | 8723 | |
c8724862 | 8724 | |
e061d1ce | 8725 | |
f1943b77 | 8726 | |
0b9d02c6 | 8727 | |
3103b7db | 8728 | |
d8bb17c8 | 8729 | |
9fc9b82a L |
8730 | |
8731 | ||
df37e3db | 8732 | |
5aa82ace | 8733 | |
861bb6c1 JL |
8734 | |
8735 | ||
8736 | # Echo that links are built | |
75bffa71 | 8737 | if test x$host = x$target |
861bb6c1 JL |
8738 | then |
8739 | str1="native " | |
8740 | else | |
8741 | str1="cross-" | |
8742 | str2=" from $host" | |
8743 | fi | |
8744 | ||
75bffa71 | 8745 | if test x$host != x$build |
861bb6c1 JL |
8746 | then |
8747 | str3=" on a $build system" | |
8748 | fi | |
8749 | ||
75bffa71 | 8750 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8751 | then |
8752 | str4= | |
8753 | fi | |
8754 | ||
8755 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
8756 | ||
75bffa71 | 8757 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8758 | then |
8759 | echo " ${str2}${str3}." 1>&2 | |
8760 | fi | |
8761 | ||
f6cb0e63 | 8762 | # Truncate the target if necessary |
75bffa71 | 8763 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
8764 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
8765 | fi | |
8766 | ||
861bb6c1 JL |
8767 | # Configure the subdirectories |
8768 | # AC_CONFIG_SUBDIRS($subdirs) | |
8769 | ||
8770 | # Create the Makefile | |
8771 | # and configure language subdirectories | |
8772 | trap '' 1 2 15 | |
8773 | cat > confcache <<\EOF | |
8774 | # This file is a shell script that caches the results of configure | |
8775 | # tests run on this system so they can be shared between configure | |
8776 | # scripts and configure runs. It is not useful on other systems. | |
8777 | # If it contains results you don't want to keep, you may remove or edit it. | |
8778 | # | |
8779 | # By default, configure uses ./config.cache as the cache file, | |
8780 | # creating it if it does not exist already. You can give configure | |
8781 | # the --cache-file=FILE option to use a different cache file; that is | |
8782 | # what configure does when it calls configure scripts in | |
8783 | # subdirectories, so they share the cache. | |
8784 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8785 | # config.status only pays attention to the cache file if you give it the | |
8786 | # --recheck option to rerun configure. | |
8787 | # | |
8788 | EOF | |
8789 | # The following way of writing the cache mishandles newlines in values, | |
8790 | # but we know of no workaround that is simple, portable, and efficient. | |
8791 | # So, don't put newlines in cache variables' values. | |
8792 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8793 | # and sets the high bit in the cache file unless we assign to the vars. | |
8794 | (set) 2>&1 | | |
b27d2bd5 | 8795 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
8796 | *ac_space=\ *) |
8797 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8798 | # turns \\\\ into \\, and sed turns \\ into \). | |
8799 | sed -n \ | |
8800 | -e "s/'/'\\\\''/g" \ | |
8801 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8802 | ;; | |
8803 | *) | |
8804 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8805 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8806 | ;; | |
8807 | esac >> confcache | |
8808 | if cmp -s $cache_file confcache; then | |
8809 | : | |
8810 | else | |
8811 | if test -w $cache_file; then | |
8812 | echo "updating cache $cache_file" | |
8813 | cat confcache > $cache_file | |
8814 | else | |
8815 | echo "not updating unwritable cache $cache_file" | |
8816 | fi | |
8817 | fi | |
8818 | rm -f confcache | |
8819 | ||
8820 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8821 | ||
8822 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8823 | # Let make expand exec_prefix. | |
8824 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8825 | ||
8826 | # Any assignment to VPATH causes Sun make to only execute | |
8827 | # the first set of double-colon rules, so remove it if not needed. | |
8828 | # If there is a colon in the path, we need to keep it. | |
8829 | if test "x$srcdir" = x.; then | |
8830 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8831 | fi | |
8832 | ||
8833 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8834 | ||
8835 | DEFS=-DHAVE_CONFIG_H | |
8836 | ||
8837 | # Without the "./", some shells look in PATH for config.status. | |
8838 | : ${CONFIG_STATUS=./config.status} | |
8839 | ||
8840 | echo creating $CONFIG_STATUS | |
8841 | rm -f $CONFIG_STATUS | |
8842 | cat > $CONFIG_STATUS <<EOF | |
8843 | #! /bin/sh | |
8844 | # Generated automatically by configure. | |
8845 | # Run this file to recreate the current configuration. | |
8846 | # This directory was configured as follows, | |
8847 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8848 | # | |
8849 | # $0 $ac_configure_args | |
8850 | # | |
8851 | # Compiler output produced by configure, useful for debugging | |
8852 | # configure, is in ./config.log if it exists. | |
8853 | ||
8854 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8855 | for ac_option | |
8856 | do | |
8857 | case "\$ac_option" in | |
8858 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8859 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8860 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8861 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 8862 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
8863 | exit 0 ;; |
8864 | -help | --help | --hel | --he | --h) | |
8865 | echo "\$ac_cs_usage"; exit 0 ;; | |
8866 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8867 | esac | |
8868 | done | |
8869 | ||
8870 | ac_given_srcdir=$srcdir | |
861bb6c1 | 8871 | |
b7cb92ad | 8872 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
8873 | EOF |
8874 | cat >> $CONFIG_STATUS <<EOF | |
8875 | ||
8876 | # Protect against being on the right side of a sed subst in config.status. | |
8877 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8878 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8879 | $ac_vpsub | |
8880 | $extrasub | |
6f144c9c | 8881 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
8882 | s%@CFLAGS@%$CFLAGS%g |
8883 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8884 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 8885 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
8886 | s%@DEFS@%$DEFS%g |
8887 | s%@LDFLAGS@%$LDFLAGS%g | |
8888 | s%@LIBS@%$LIBS%g | |
8889 | s%@exec_prefix@%$exec_prefix%g | |
8890 | s%@prefix@%$prefix%g | |
8891 | s%@program_transform_name@%$program_transform_name%g | |
8892 | s%@bindir@%$bindir%g | |
8893 | s%@sbindir@%$sbindir%g | |
8894 | s%@libexecdir@%$libexecdir%g | |
8895 | s%@datadir@%$datadir%g | |
8896 | s%@sysconfdir@%$sysconfdir%g | |
8897 | s%@sharedstatedir@%$sharedstatedir%g | |
8898 | s%@localstatedir@%$localstatedir%g | |
8899 | s%@libdir@%$libdir%g | |
8900 | s%@includedir@%$includedir%g | |
8901 | s%@oldincludedir@%$oldincludedir%g | |
8902 | s%@infodir@%$infodir%g | |
8903 | s%@mandir@%$mandir%g | |
8904 | s%@host@%$host%g | |
8905 | s%@host_alias@%$host_alias%g | |
8906 | s%@host_cpu@%$host_cpu%g | |
8907 | s%@host_vendor@%$host_vendor%g | |
8908 | s%@host_os@%$host_os%g | |
8909 | s%@target@%$target%g | |
8910 | s%@target_alias@%$target_alias%g | |
8911 | s%@target_cpu@%$target_cpu%g | |
8912 | s%@target_vendor@%$target_vendor%g | |
8913 | s%@target_os@%$target_os%g | |
8914 | s%@build@%$build%g | |
8915 | s%@build_alias@%$build_alias%g | |
8916 | s%@build_cpu@%$build_cpu%g | |
8917 | s%@build_vendor@%$build_vendor%g | |
8918 | s%@build_os@%$build_os%g | |
e9a25f70 | 8919 | s%@CC@%$CC%g |
61842080 | 8920 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 8921 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
8922 | s%@AWK@%$AWK%g |
8923 | s%@LEX@%$LEX%g | |
8924 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
8925 | s%@LN@%$LN%g |
8926 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
8927 | s%@RANLIB@%$RANLIB%g |
8928 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
8929 | s%@INSTALL@%$INSTALL%g |
8930 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8931 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 8932 | s%@CPP@%$CPP%g |
bcf12124 | 8933 | s%@gnat@%$gnat%g |
0a4b6309 RL |
8934 | s%@vfprintf@%$vfprintf%g |
8935 | s%@doprint@%$doprint%g | |
861bb6c1 | 8936 | s%@manext@%$manext%g |
992d1248 | 8937 | s%@objext@%$objext%g |
ab87f8c8 JL |
8938 | s%@PACKAGE@%$PACKAGE%g |
8939 | s%@VERSION@%$VERSION%g | |
8940 | s%@ALLOCA@%$ALLOCA%g | |
8941 | s%@USE_NLS@%$USE_NLS%g | |
8942 | s%@MSGFMT@%$MSGFMT%g | |
8943 | s%@GMSGFMT@%$GMSGFMT%g | |
8944 | s%@XGETTEXT@%$XGETTEXT%g | |
8945 | s%@GENCAT@%$GENCAT%g | |
8946 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
8947 | s%@CATALOGS@%$CATALOGS%g | |
8948 | s%@CATOBJEXT@%$CATOBJEXT%g | |
8949 | s%@DATADIRNAME@%$DATADIRNAME%g | |
8950 | s%@GMOFILES@%$GMOFILES%g | |
8951 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
8952 | s%@INTLDEPS@%$INTLDEPS%g | |
8953 | s%@INTLLIBS@%$INTLLIBS%g | |
8954 | s%@INTLOBJS@%$INTLOBJS%g | |
8955 | s%@POFILES@%$POFILES%g | |
8956 | s%@POSUB@%$POSUB%g | |
8957 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
8958 | s%@GT_NO@%$GT_NO%g | |
8959 | s%@GT_YES@%$GT_YES%g | |
8960 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
8961 | s%@l@%$l%g | |
f24af81b | 8962 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
8963 | s%@build_canonical@%$build_canonical%g |
8964 | s%@host_canonical@%$host_canonical%g | |
8965 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 8966 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
8967 | s%@sched_prefix@%$sched_prefix%g |
8968 | s%@sched_cflags@%$sched_cflags%g | |
d062c304 | 8969 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 8970 | s%@dollar@%$dollar%g |
7e717196 | 8971 | s%@objdir@%$objdir%g |
861bb6c1 | 8972 | s%@subdirs@%$subdirs%g |
861bb6c1 JL |
8973 | s%@all_boot_languages@%$all_boot_languages%g |
8974 | s%@all_compilers@%$all_compilers%g | |
861bb6c1 | 8975 | s%@all_diff_excludes@%$all_diff_excludes%g |
861bb6c1 | 8976 | s%@all_headers@%$all_headers%g |
4f3ae93c BK |
8977 | s%@all_lang_makefiles@%$all_lang_makefiles%g |
8978 | s%@all_languages@%$all_languages%g | |
8979 | s%@all_lib2funcs@%$all_lib2funcs%g | |
8980 | s%@all_stagestuff@%$all_stagestuff%g | |
8981 | s%@build_exeext@%$build_exeext%g | |
8982 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
8983 | s%@build_xm_file_list@%$build_xm_file_list%g | |
8984 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
5aa82ace | 8985 | s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g |
4f3ae93c | 8986 | s%@cpp_install_dir@%$cpp_install_dir%g |
e061d1ce | 8987 | s%@cpp_main@%$cpp_main%g |
4f3ae93c BK |
8988 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g |
8989 | s%@dep_tmake_file@%$dep_tmake_file%g | |
8990 | s%@extra_c_flags@%$extra_c_flags%g | |
861bb6c1 | 8991 | s%@extra_c_objs@%$extra_c_objs%g |
0b9d02c6 | 8992 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
4f3ae93c BK |
8993 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
8994 | s%@extra_headers_list@%$extra_headers_list%g | |
861bb6c1 | 8995 | s%@extra_objs@%$extra_objs%g |
4f3ae93c BK |
8996 | s%@extra_parts@%$extra_parts%g |
8997 | s%@extra_passes@%$extra_passes%g | |
8998 | s%@extra_programs@%$extra_programs%g | |
8999 | s%@fixinc_defs@%$fixinc_defs%g | |
9000 | s%@float_h_file@%$float_h_file%g | |
9001 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g | |
9002 | s%@gcc_version@%$gcc_version%g | |
9003 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
9004 | s%@host_exeext@%$host_exeext%g | |
861bb6c1 | 9005 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g |
861bb6c1 | 9006 | s%@host_xm_file_list@%$host_xm_file_list%g |
4f3ae93c BK |
9007 | s%@install@%$install%g |
9008 | s%@JAVAGC@%$JAVAGC%g | |
861bb6c1 | 9009 | s%@lang_options_files@%$lang_options_files%g |
4f3ae93c | 9010 | s%@lang_specs_files@%$lang_specs_files%g |
3103b7db | 9011 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 9012 | s%@local_prefix@%$local_prefix%g |
861bb6c1 | 9013 | s%@maybe_use_collect2@%$maybe_use_collect2%g |
4f3ae93c BK |
9014 | s%@md_file@%$md_file%g |
9015 | s%@objc_boehm_gc@%$objc_boehm_gc%g | |
9016 | s%@out_file@%$out_file%g | |
9017 | s%@out_object_file@%$out_object_file%g | |
861bb6c1 | 9018 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g |
e9a25f70 | 9019 | s%@symbolic_link@%$symbolic_link%g |
4f3ae93c BK |
9020 | s%@thread_file@%$thread_file%g |
9021 | s%@tm_file_list@%$tm_file_list%g | |
9022 | s%@will_use_collect2@%$will_use_collect2%g | |
861bb6c1 JL |
9023 | /@target_overrides@/r $target_overrides |
9024 | s%@target_overrides@%%g | |
9025 | /@host_overrides@/r $host_overrides | |
9026 | s%@host_overrides@%%g | |
9027 | s%@cross_defines@%$cross_defines%g | |
9028 | /@cross_overrides@/r $cross_overrides | |
9029 | s%@cross_overrides@%%g | |
9030 | /@build_overrides@/r $build_overrides | |
9031 | s%@build_overrides@%%g | |
9032 | /@language_fragments@/r $language_fragments | |
9033 | s%@language_fragments@%%g | |
9034 | /@language_hooks@/r $language_hooks | |
9035 | s%@language_hooks@%%g | |
9036 | ||
9037 | CEOF | |
9038 | EOF | |
9039 | ||
9040 | cat >> $CONFIG_STATUS <<\EOF | |
9041 | ||
9042 | # Split the substitutions into bite-sized pieces for seds with | |
9043 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9044 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
9045 | ac_file=1 # Number of current file. | |
9046 | ac_beg=1 # First line for current file. | |
9047 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
9048 | ac_more_lines=: | |
9049 | ac_sed_cmds="" | |
9050 | while $ac_more_lines; do | |
9051 | if test $ac_beg -gt 1; then | |
9052 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
9053 | else | |
9054 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
9055 | fi | |
9056 | if test ! -s conftest.s$ac_file; then | |
9057 | ac_more_lines=false | |
9058 | rm -f conftest.s$ac_file | |
9059 | else | |
9060 | if test -z "$ac_sed_cmds"; then | |
9061 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
9062 | else | |
9063 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
9064 | fi | |
9065 | ac_file=`expr $ac_file + 1` | |
9066 | ac_beg=$ac_end | |
9067 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
9068 | fi | |
9069 | done | |
9070 | if test -z "$ac_sed_cmds"; then | |
9071 | ac_sed_cmds=cat | |
9072 | fi | |
9073 | EOF | |
9074 | ||
9075 | cat >> $CONFIG_STATUS <<EOF | |
9076 | ||
9077 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
9078 | EOF | |
9079 | cat >> $CONFIG_STATUS <<\EOF | |
9080 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
9081 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9082 | case "$ac_file" in | |
9083 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9084 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9085 | *) ac_file_in="${ac_file}.in" ;; | |
9086 | esac | |
9087 | ||
9088 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
9089 | ||
9090 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9091 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9092 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9093 | # The file is in a subdirectory. | |
9094 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9095 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
9096 | # A "../" for each directory in $ac_dir_suffix. | |
9097 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
9098 | else | |
9099 | ac_dir_suffix= ac_dots= | |
9100 | fi | |
9101 | ||
9102 | case "$ac_given_srcdir" in | |
9103 | .) srcdir=. | |
9104 | if test -z "$ac_dots"; then top_srcdir=. | |
9105 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
9106 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
9107 | *) # Relative path. | |
9108 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
9109 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9110 | esac | |
9111 | ||
861bb6c1 JL |
9112 | |
9113 | echo creating "$ac_file" | |
9114 | rm -f "$ac_file" | |
9115 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
9116 | case "$ac_file" in | |
9117 | *Makefile*) ac_comsub="1i\\ | |
9118 | # $configure_input" ;; | |
9119 | *) ac_comsub= ;; | |
9120 | esac | |
9121 | ||
9122 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9123 | sed -e "$ac_comsub | |
9124 | s%@configure_input@%$configure_input%g | |
9125 | s%@srcdir@%$srcdir%g | |
9126 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
9127 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9128 | fi; done | |
9129 | rm -f conftest.s* | |
9130 | ||
9131 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9132 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9133 | # | |
9134 | # ac_d sets the value in "#define NAME VALUE" lines. | |
9135 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
9136 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
9137 | ac_dC='\3' | |
9138 | ac_dD='%g' | |
9139 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
9140 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9141 | ac_uB='\([ ]\)%\1#\2define\3' | |
9142 | ac_uC=' ' | |
9143 | ac_uD='\4%g' | |
9144 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9145 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9146 | ac_eB='$%\1#\2define\3' | |
9147 | ac_eC=' ' | |
9148 | ac_eD='%g' | |
9149 | ||
9150 | if test "${CONFIG_HEADERS+set}" != set; then | |
9151 | EOF | |
9152 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 9153 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
9154 | EOF |
9155 | cat >> $CONFIG_STATUS <<\EOF | |
9156 | fi | |
9157 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
9158 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9159 | case "$ac_file" in | |
9160 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
9161 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9162 | *) ac_file_in="${ac_file}.in" ;; | |
9163 | esac | |
9164 | ||
9165 | echo creating $ac_file | |
9166 | ||
9167 | rm -f conftest.frag conftest.in conftest.out | |
9168 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
9169 | cat $ac_file_inputs > conftest.in | |
9170 | ||
9171 | EOF | |
9172 | ||
9173 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
9174 | # the proper values into config.h.in to produce config.h. And first: | |
9175 | # Protect against being on the right side of a sed subst in config.status. | |
9176 | # Protect against being in an unquoted here document in config.status. | |
9177 | rm -f conftest.vals | |
9178 | cat > conftest.hdr <<\EOF | |
9179 | s/[\\&%]/\\&/g | |
9180 | s%[\\$`]%\\&%g | |
9181 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
9182 | s%ac_d%ac_u%gp | |
9183 | s%ac_u%ac_e%gp | |
9184 | EOF | |
9185 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
9186 | rm -f conftest.hdr | |
9187 | ||
9188 | # This sed command replaces #undef with comments. This is necessary, for | |
9189 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9190 | # on some systems where configure will not decide to define it. | |
9191 | cat >> conftest.vals <<\EOF | |
9192 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
9193 | EOF | |
9194 | ||
9195 | # Break up conftest.vals because some shells have a limit on | |
9196 | # the size of here documents, and old seds have small limits too. | |
9197 | ||
9198 | rm -f conftest.tail | |
9199 | while : | |
9200 | do | |
9201 | ac_lines=`grep -c . conftest.vals` | |
9202 | # grep -c gives empty output for an empty file on some AIX systems. | |
9203 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
9204 | # Write a limited-size here document to conftest.frag. | |
9205 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
9206 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
9207 | echo 'CEOF | |
9208 | sed -f conftest.frag conftest.in > conftest.out | |
9209 | rm -f conftest.in | |
9210 | mv conftest.out conftest.in | |
9211 | ' >> $CONFIG_STATUS | |
9212 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
9213 | rm -f conftest.vals | |
9214 | mv conftest.tail conftest.vals | |
9215 | done | |
9216 | rm -f conftest.vals | |
9217 | ||
9218 | cat >> $CONFIG_STATUS <<\EOF | |
9219 | rm -f conftest.frag conftest.h | |
9220 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
9221 | cat conftest.in >> conftest.h | |
9222 | rm -f conftest.in | |
9223 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
9224 | echo "$ac_file is unchanged" | |
9225 | rm -f conftest.h | |
9226 | else | |
9227 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9228 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
9229 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
9230 | # The file is in a subdirectory. | |
9231 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
9232 | fi | |
9233 | rm -f $ac_file | |
9234 | mv conftest.h $ac_file | |
9235 | fi | |
9236 | fi; done | |
9237 | ||
ab87f8c8 JL |
9238 | EOF |
9239 | ||
9240 | cat >> $CONFIG_STATUS <<EOF | |
9241 | ac_sources="$nls_cv_header_libgt" | |
9242 | ac_dests="$nls_cv_header_intl" | |
9243 | EOF | |
9244 | ||
9245 | cat >> $CONFIG_STATUS <<\EOF | |
9246 | srcdir=$ac_given_srcdir | |
9247 | while test -n "$ac_sources"; do | |
9248 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
9249 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
9250 | ||
9251 | echo "linking $srcdir/$ac_source to $ac_dest" | |
9252 | ||
9253 | if test ! -r $srcdir/$ac_source; then | |
9254 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
9255 | fi | |
9256 | rm -f $ac_dest | |
9257 | ||
9258 | # Make relative symlinks. | |
9259 | # Remove last slash and all that follows it. Not all systems have dirname. | |
9260 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
9261 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
9262 | # The dest file is in a subdirectory. | |
9263 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
9264 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
9265 | # A "../" for each directory in $ac_dest_dir_suffix. | |
9266 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
9267 | else | |
9268 | ac_dest_dir_suffix= ac_dots= | |
9269 | fi | |
9270 | ||
9271 | case "$srcdir" in | |
9272 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
9273 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
9274 | esac | |
9275 | ||
9276 | # Make a symlink if possible; otherwise try a hard link. | |
9277 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9278 | ln $srcdir/$ac_source $ac_dest; then : | |
9279 | else | |
9280 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9281 | fi | |
9282 | done | |
861bb6c1 JL |
9283 | EOF |
9284 | cat >> $CONFIG_STATUS <<EOF | |
9285 | ||
ab87f8c8 | 9286 | |
861bb6c1 JL |
9287 | host='${host}' |
9288 | build='${build}' | |
9289 | target='${target}' | |
9290 | target_alias='${target_alias}' | |
9291 | srcdir='${srcdir}' | |
9292 | subdirs='${subdirs}' | |
9293 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9294 | symbolic_link='${symbolic_link}' | |
9295 | program_transform_set='${program_transform_set}' | |
9296 | program_transform_name='${program_transform_name}' | |
9297 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9298 | host_xmake_file='${host_xmake_file}' | |
9299 | dep_tmake_file='${dep_tmake_file}' | |
9300 | tmake_file='${tmake_file}' | |
9301 | thread_file='${thread_file}' | |
f1943b77 MH |
9302 | gcc_version='${gcc_version}' |
9303 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9304 | local_prefix='${local_prefix}' |
9305 | build_install_headers_dir='${build_install_headers_dir}' | |
9306 | build_exeext='${build_exeext}' | |
6e26218f | 9307 | host_exeext='${host_exeext}' |
7ed46111 | 9308 | out_file='${out_file}' |
861bb6c1 JL |
9309 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9310 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9311 | target_list='${target_list}' |
9312 | target_overrides='${target_overrides}' | |
9313 | host_overrides='${host_overrides}' | |
9314 | cross_defines='${cross_defines}' | |
9315 | cross_overrides='${cross_overrides}' | |
9316 | build_overrides='${build_overrides}' | |
9fc9b82a | 9317 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9318 | |
9319 | EOF | |
9320 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9321 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9322 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9323 | esac | |
861bb6c1 JL |
9324 | |
9325 | . $srcdir/configure.lang | |
9326 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9327 | xauto-host.h:config.in) |
861bb6c1 JL |
9328 | echo > cstamp-h ;; |
9329 | esac | |
93cf819d BK |
9330 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9331 | # bootstrapping and the installation procedure can still use | |
9332 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9333 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9334 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9335 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9336 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9337 | for d in .. ${subdirs} ; do |
75bffa71 | 9338 | if test $d != ..; then |
4e8a434e BK |
9339 | STARTDIR=`pwd` |
9340 | cd $d | |
9341 | for t in stage1 stage2 stage3 stage4 include | |
9342 | do | |
9343 | rm -f $t | |
9344 | $symbolic_link ../$t $t 2>/dev/null | |
9345 | done | |
9346 | cd $STARTDIR | |
93cf819d BK |
9347 | fi |
9348 | done | |
9349 | else true ; fi | |
ab87f8c8 JL |
9350 | # Avoid having to add intl to our include paths. |
9351 | if test -f intl/libintl.h; then | |
9352 | echo creating libintl.h | |
9353 | echo '#include "intl/libintl.h"' >libintl.h | |
9354 | fi | |
861bb6c1 JL |
9355 | |
9356 | exit 0 | |
9357 | EOF | |
9358 | chmod +x $CONFIG_STATUS | |
9359 | rm -fr confdefs* $ac_clean_files | |
9360 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9361 |