]>
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." | |
861bb6c1 | 33 | ac_help="$ac_help |
f81a440f | 34 | --enable-cpplib use cpplib for the C preprocessor." |
0b9d02c6 | 35 | ac_help="$ac_help |
f81a440f ZW |
36 | --enable-c-cpplib link cpplib directly into C and C++ compilers |
37 | (implies --enable-cpplib)." | |
9101297d | 38 | ac_help="$ac_help |
f81a440f ZW |
39 | --enable-c-mbchar enable multibyte characters for C and C++." |
40 | ac_help="$ac_help | |
41 | --enable-haifa use the experimental scheduler. | |
42 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 43 | targets which normally enable it." |
4b104d6e | 44 | ac_help="$ac_help |
94878f15 | 45 | --with-fast-fixincludes use a faster fixinclude program (experimental)" |
861bb6c1 JL |
46 | ac_help="$ac_help |
47 | --enable-threads enable thread usage for target GCC. | |
48 | --enable-threads=LIB use LIB thread package for target GCC." | |
d8bb17c8 OP |
49 | ac_help="$ac_help |
50 | --enable-objc-gc enable the use of Boehm's garbage collector with | |
51 | the GNU Objective-C runtime." | |
df37e3db TT |
52 | ac_help="$ac_help |
53 | --enable-java-gc=TYPE choose garbage collector [boehm]" | |
90e6a802 RL |
54 | ac_help="$ac_help |
55 | --enable-dwarf2 enable DWARF2 debugging as default." | |
ab87f8c8 JL |
56 | ac_help="$ac_help |
57 | --enable-nls use Native Language Support (disabled by default)" | |
58 | ac_help="$ac_help | |
59 | --disable-nls do not use Native Language Support" | |
60 | ac_help="$ac_help | |
61 | --with-included-gettext use the GNU gettext library included here" | |
62 | ac_help="$ac_help | |
63 | --with-catgets use catgets functions if available" | |
861bb6c1 JL |
64 | |
65 | # Initialize some variables set by options. | |
66 | # The variables have the same names as the options, with | |
67 | # dashes changed to underlines. | |
68 | build=NONE | |
69 | cache_file=./config.cache | |
70 | exec_prefix=NONE | |
71 | host=NONE | |
72 | no_create= | |
73 | nonopt=NONE | |
74 | no_recursion= | |
75 | prefix=NONE | |
76 | program_prefix=NONE | |
77 | program_suffix=NONE | |
78 | program_transform_name=s,x,x, | |
79 | silent= | |
80 | site= | |
81 | srcdir= | |
82 | target=NONE | |
83 | verbose= | |
84 | x_includes=NONE | |
85 | x_libraries=NONE | |
86 | bindir='${exec_prefix}/bin' | |
87 | sbindir='${exec_prefix}/sbin' | |
88 | libexecdir='${exec_prefix}/libexec' | |
89 | datadir='${prefix}/share' | |
90 | sysconfdir='${prefix}/etc' | |
91 | sharedstatedir='${prefix}/com' | |
92 | localstatedir='${prefix}/var' | |
93 | libdir='${exec_prefix}/lib' | |
94 | includedir='${prefix}/include' | |
95 | oldincludedir='/usr/include' | |
96 | infodir='${prefix}/info' | |
97 | mandir='${prefix}/man' | |
98 | ||
99 | # Initialize some other variables. | |
100 | subdirs= | |
101 | MFLAGS= MAKEFLAGS= | |
6f144c9c | 102 | SHELL=${CONFIG_SHELL-/bin/sh} |
861bb6c1 JL |
103 | # Maximum number of lines to put in a shell here document. |
104 | ac_max_here_lines=12 | |
105 | ||
106 | ac_prev= | |
107 | for ac_option | |
108 | do | |
109 | ||
110 | # If the previous option needs an argument, assign it. | |
111 | if test -n "$ac_prev"; then | |
112 | eval "$ac_prev=\$ac_option" | |
113 | ac_prev= | |
114 | continue | |
115 | fi | |
116 | ||
117 | case "$ac_option" in | |
118 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
119 | *) ac_optarg= ;; | |
120 | esac | |
121 | ||
122 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
123 | ||
124 | case "$ac_option" in | |
125 | ||
126 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
127 | ac_prev=bindir ;; | |
128 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
129 | bindir="$ac_optarg" ;; | |
130 | ||
131 | -build | --build | --buil | --bui | --bu) | |
132 | ac_prev=build ;; | |
133 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
134 | build="$ac_optarg" ;; | |
135 | ||
136 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
137 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
138 | ac_prev=cache_file ;; | |
139 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
140 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
141 | cache_file="$ac_optarg" ;; | |
142 | ||
143 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
144 | ac_prev=datadir ;; | |
145 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
146 | | --da=*) | |
147 | datadir="$ac_optarg" ;; | |
148 | ||
149 | -disable-* | --disable-*) | |
150 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
151 | # Reject names that are not valid shell variable names. | |
152 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
153 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
154 | fi | |
155 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
156 | eval "enable_${ac_feature}=no" ;; | |
157 | ||
158 | -enable-* | --enable-*) | |
159 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
160 | # Reject names that are not valid shell variable names. | |
161 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
162 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
163 | fi | |
164 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
165 | case "$ac_option" in | |
166 | *=*) ;; | |
167 | *) ac_optarg=yes ;; | |
168 | esac | |
169 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
170 | ||
171 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
172 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
173 | | --exec | --exe | --ex) | |
174 | ac_prev=exec_prefix ;; | |
175 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
176 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
177 | | --exec=* | --exe=* | --ex=*) | |
178 | exec_prefix="$ac_optarg" ;; | |
179 | ||
180 | -gas | --gas | --ga | --g) | |
181 | # Obsolete; use --with-gas. | |
182 | with_gas=yes ;; | |
183 | ||
184 | -help | --help | --hel | --he) | |
185 | # Omit some internal or obsolete options to make the list less imposing. | |
186 | # This message is too long to be a string in the A/UX 3.1 sh. | |
187 | cat << EOF | |
188 | Usage: configure [options] [host] | |
189 | Options: [defaults in brackets after descriptions] | |
190 | Configuration: | |
191 | --cache-file=FILE cache test results in FILE | |
192 | --help print this message | |
193 | --no-create do not create output files | |
194 | --quiet, --silent do not print \`checking...' messages | |
195 | --version print the version of autoconf that created configure | |
196 | Directory and file names: | |
197 | --prefix=PREFIX install architecture-independent files in PREFIX | |
198 | [$ac_default_prefix] | |
199 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
200 | [same as prefix] | |
201 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
202 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
203 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
204 | --datadir=DIR read-only architecture-independent data in DIR | |
205 | [PREFIX/share] | |
206 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
207 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
208 | [PREFIX/com] | |
209 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
210 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
211 | --includedir=DIR C header files in DIR [PREFIX/include] | |
212 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
213 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
214 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
215 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
216 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
217 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
218 | --program-transform-name=PROGRAM | |
219 | run sed PROGRAM on installed program names | |
220 | EOF | |
221 | cat << EOF | |
222 | Host type: | |
223 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
224 | --host=HOST configure for HOST [guessed] | |
225 | --target=TARGET configure for TARGET [TARGET=HOST] | |
226 | Features and packages: | |
227 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
228 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
229 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
230 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
231 | --x-includes=DIR X include files are in DIR | |
232 | --x-libraries=DIR X library files are in DIR | |
233 | EOF | |
234 | if test -n "$ac_help"; then | |
235 | echo "--enable and --with options recognized:$ac_help" | |
236 | fi | |
237 | exit 0 ;; | |
238 | ||
239 | -host | --host | --hos | --ho) | |
240 | ac_prev=host ;; | |
241 | -host=* | --host=* | --hos=* | --ho=*) | |
242 | host="$ac_optarg" ;; | |
243 | ||
244 | -includedir | --includedir | --includedi | --included | --include \ | |
245 | | --includ | --inclu | --incl | --inc) | |
246 | ac_prev=includedir ;; | |
247 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
248 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
249 | includedir="$ac_optarg" ;; | |
250 | ||
251 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
252 | ac_prev=infodir ;; | |
253 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
254 | infodir="$ac_optarg" ;; | |
255 | ||
256 | -libdir | --libdir | --libdi | --libd) | |
257 | ac_prev=libdir ;; | |
258 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
259 | libdir="$ac_optarg" ;; | |
260 | ||
261 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
262 | | --libexe | --libex | --libe) | |
263 | ac_prev=libexecdir ;; | |
264 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
265 | | --libexe=* | --libex=* | --libe=*) | |
266 | libexecdir="$ac_optarg" ;; | |
267 | ||
268 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
269 | | --localstate | --localstat | --localsta | --localst \ | |
270 | | --locals | --local | --loca | --loc | --lo) | |
271 | ac_prev=localstatedir ;; | |
272 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
273 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
274 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
275 | localstatedir="$ac_optarg" ;; | |
276 | ||
277 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
278 | ac_prev=mandir ;; | |
279 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
280 | mandir="$ac_optarg" ;; | |
281 | ||
282 | -nfp | --nfp | --nf) | |
283 | # Obsolete; use --without-fp. | |
284 | with_fp=no ;; | |
285 | ||
286 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
287 | | --no-cr | --no-c) | |
288 | no_create=yes ;; | |
289 | ||
290 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
291 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
292 | no_recursion=yes ;; | |
293 | ||
294 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
295 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
296 | | --oldin | --oldi | --old | --ol | --o) | |
297 | ac_prev=oldincludedir ;; | |
298 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
299 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
300 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
301 | oldincludedir="$ac_optarg" ;; | |
302 | ||
303 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
304 | ac_prev=prefix ;; | |
305 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
306 | prefix="$ac_optarg" ;; | |
307 | ||
308 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
309 | | --program-pre | --program-pr | --program-p) | |
310 | ac_prev=program_prefix ;; | |
311 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
312 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
313 | program_prefix="$ac_optarg" ;; | |
314 | ||
315 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
316 | | --program-suf | --program-su | --program-s) | |
317 | ac_prev=program_suffix ;; | |
318 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
319 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
320 | program_suffix="$ac_optarg" ;; | |
321 | ||
322 | -program-transform-name | --program-transform-name \ | |
323 | | --program-transform-nam | --program-transform-na \ | |
324 | | --program-transform-n | --program-transform- \ | |
325 | | --program-transform | --program-transfor \ | |
326 | | --program-transfo | --program-transf \ | |
327 | | --program-trans | --program-tran \ | |
328 | | --progr-tra | --program-tr | --program-t) | |
329 | ac_prev=program_transform_name ;; | |
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 | program_transform_name="$ac_optarg" ;; | |
338 | ||
339 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
340 | | -silent | --silent | --silen | --sile | --sil) | |
341 | silent=yes ;; | |
342 | ||
343 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
344 | ac_prev=sbindir ;; | |
345 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
346 | | --sbi=* | --sb=*) | |
347 | sbindir="$ac_optarg" ;; | |
348 | ||
349 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
350 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
351 | | --sharedst | --shareds | --shared | --share | --shar \ | |
352 | | --sha | --sh) | |
353 | ac_prev=sharedstatedir ;; | |
354 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
355 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
356 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
357 | | --sha=* | --sh=*) | |
358 | sharedstatedir="$ac_optarg" ;; | |
359 | ||
360 | -site | --site | --sit) | |
361 | ac_prev=site ;; | |
362 | -site=* | --site=* | --sit=*) | |
363 | site="$ac_optarg" ;; | |
364 | ||
365 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
366 | ac_prev=srcdir ;; | |
367 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
368 | srcdir="$ac_optarg" ;; | |
369 | ||
370 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
371 | | --syscon | --sysco | --sysc | --sys | --sy) | |
372 | ac_prev=sysconfdir ;; | |
373 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
374 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
375 | sysconfdir="$ac_optarg" ;; | |
376 | ||
377 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
378 | ac_prev=target ;; | |
379 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
380 | target="$ac_optarg" ;; | |
381 | ||
382 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
383 | verbose=yes ;; | |
384 | ||
385 | -version | --version | --versio | --versi | --vers) | |
b27d2bd5 | 386 | echo "configure generated by autoconf version 2.13" |
861bb6c1 JL |
387 | exit 0 ;; |
388 | ||
389 | -with-* | --with-*) | |
390 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
391 | # Reject names that are not valid shell variable names. | |
392 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
393 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
394 | fi | |
395 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
396 | case "$ac_option" in | |
397 | *=*) ;; | |
398 | *) ac_optarg=yes ;; | |
399 | esac | |
400 | eval "with_${ac_package}='$ac_optarg'" ;; | |
401 | ||
402 | -without-* | --without-*) | |
403 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
404 | # Reject names that are not valid shell variable names. | |
405 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
406 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
407 | fi | |
408 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
409 | eval "with_${ac_package}=no" ;; | |
410 | ||
411 | --x) | |
412 | # Obsolete; use --with-x. | |
413 | with_x=yes ;; | |
414 | ||
415 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
416 | | --x-incl | --x-inc | --x-in | --x-i) | |
417 | ac_prev=x_includes ;; | |
418 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
419 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
420 | x_includes="$ac_optarg" ;; | |
421 | ||
422 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
423 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
424 | ac_prev=x_libraries ;; | |
425 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
426 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
427 | x_libraries="$ac_optarg" ;; | |
428 | ||
429 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
430 | ;; | |
431 | ||
432 | *) | |
433 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
434 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
435 | fi | |
436 | if test "x$nonopt" != xNONE; then | |
437 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
438 | fi | |
439 | nonopt="$ac_option" | |
440 | ;; | |
441 | ||
442 | esac | |
443 | done | |
444 | ||
445 | if test -n "$ac_prev"; then | |
446 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
447 | fi | |
448 | ||
449 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
450 | ||
451 | # File descriptor usage: | |
452 | # 0 standard input | |
453 | # 1 file creation | |
454 | # 2 errors and warnings | |
455 | # 3 some systems may open it to /dev/tty | |
456 | # 4 used on the Kubota Titan | |
457 | # 6 checking for... messages and results | |
458 | # 5 compiler messages saved in config.log | |
459 | if test "$silent" = yes; then | |
460 | exec 6>/dev/null | |
461 | else | |
462 | exec 6>&1 | |
463 | fi | |
464 | exec 5>./config.log | |
465 | ||
466 | echo "\ | |
467 | This file contains any messages produced by compilers while | |
468 | running configure, to aid debugging if configure makes a mistake. | |
469 | " 1>&5 | |
470 | ||
471 | # Strip out --no-create and --no-recursion so they do not pile up. | |
472 | # Also quote any args containing shell metacharacters. | |
473 | ac_configure_args= | |
474 | for ac_arg | |
475 | do | |
476 | case "$ac_arg" in | |
477 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
478 | | --no-cr | --no-c) ;; | |
479 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
480 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
481 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
482 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
483 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
484 | esac | |
485 | done | |
486 | ||
487 | # NLS nuisances. | |
488 | # Only set these to C if already set. These must not be set unconditionally | |
489 | # because not all systems understand e.g. LANG=C (notably SCO). | |
490 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
491 | # Non-C LC_CTYPE values break the ctype check. | |
492 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
493 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
494 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
495 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
496 | ||
497 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
498 | rm -rf conftest* confdefs.h | |
499 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
500 | echo > confdefs.h | |
501 | ||
502 | # A filename unique to this package, relative to the directory that | |
503 | # configure is in, which we can look for to find out if srcdir is correct. | |
504 | ac_unique_file=tree.c | |
505 | ||
506 | # Find the source files, if location was not specified. | |
507 | if test -z "$srcdir"; then | |
508 | ac_srcdir_defaulted=yes | |
509 | # Try the directory containing this script, then its parent. | |
510 | ac_prog=$0 | |
511 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
512 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
513 | srcdir=$ac_confdir | |
514 | if test ! -r $srcdir/$ac_unique_file; then | |
515 | srcdir=.. | |
516 | fi | |
517 | else | |
518 | ac_srcdir_defaulted=no | |
519 | fi | |
520 | if test ! -r $srcdir/$ac_unique_file; then | |
521 | if test "$ac_srcdir_defaulted" = yes; then | |
522 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
523 | else | |
524 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
525 | fi | |
526 | fi | |
527 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
528 | ||
529 | # Prefer explicitly selected file to automatically selected ones. | |
530 | if test -z "$CONFIG_SITE"; then | |
531 | if test "x$prefix" != xNONE; then | |
532 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
533 | else | |
534 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
535 | fi | |
536 | fi | |
537 | for ac_site_file in $CONFIG_SITE; do | |
538 | if test -r "$ac_site_file"; then | |
539 | echo "loading site script $ac_site_file" | |
540 | . "$ac_site_file" | |
541 | fi | |
542 | done | |
543 | ||
544 | if test -r "$cache_file"; then | |
545 | echo "loading cache $cache_file" | |
546 | . $cache_file | |
547 | else | |
548 | echo "creating cache $cache_file" | |
549 | > $cache_file | |
550 | fi | |
551 | ||
552 | ac_ext=c | |
553 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
554 | ac_cpp='$CPP $CPPFLAGS' | |
555 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 556 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
861bb6c1 JL |
557 | cross_compiling=$ac_cv_prog_cc_cross |
558 | ||
cd9e5e7c MK |
559 | ac_exeext= |
560 | ac_objext=o | |
861bb6c1 JL |
561 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
562 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
563 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
564 | ac_n= ac_c=' | |
565 | ' ac_t=' ' | |
566 | else | |
567 | ac_n=-n ac_c= ac_t= | |
568 | fi | |
569 | else | |
570 | ac_n= ac_c='\c' ac_t= | |
571 | fi | |
572 | ||
573 | ||
574 | ||
575 | ||
861bb6c1 JL |
576 | remove=rm |
577 | hard_link=ln | |
578 | symbolic_link='ln -s' | |
579 | copy=cp | |
580 | ||
75a39864 JL |
581 | # Check for bogus environment variables. |
582 | # Test if LIBRARY_PATH contains the notation for the current directory | |
583 | # since this would lead to problems installing/building glibc. | |
584 | # LIBRARY_PATH contains the current directory if one of the following | |
585 | # is true: | |
586 | # - one of the terminals (":" and ";") is the first or last sign | |
587 | # - two terminals occur directly after each other | |
588 | # - the path contains an element with a dot in it | |
589 | echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 | |
4525d757 | 590 | echo "configure:591: checking LIBRARY_PATH variable" >&5 |
75a39864 JL |
591 | case ${LIBRARY_PATH} in |
592 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
593 | library_path_setting="contains current directory" | |
594 | ;; | |
595 | *) | |
596 | library_path_setting="ok" | |
597 | ;; | |
598 | esac | |
599 | echo "$ac_t""$library_path_setting" 1>&6 | |
600 | if test "$library_path_setting" != "ok"; then | |
601 | { echo "configure: error: | |
602 | *** LIBRARY_PATH shouldn't contain the current directory when | |
603 | *** building egcs. Please change the environment variable | |
604 | *** and run configure again." 1>&2; exit 1; } | |
605 | fi | |
606 | ||
607 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
608 | # since this would lead to problems installing/building glibc. | |
609 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
610 | # is true: | |
611 | # - one of the terminals (":" and ";") is the first or last sign | |
612 | # - two terminals occur directly after each other | |
613 | # - the path contains an element with a dot in it | |
614 | echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 | |
4525d757 | 615 | echo "configure:616: checking GCC_EXEC_PREFIX variable" >&5 |
75a39864 JL |
616 | case ${GCC_EXEC_PREFIX} in |
617 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
618 | gcc_exec_prefix_setting="contains current directory" | |
619 | ;; | |
620 | *) | |
621 | gcc_exec_prefix_setting="ok" | |
622 | ;; | |
623 | esac | |
624 | echo "$ac_t""$gcc_exec_prefix_setting" 1>&6 | |
625 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
626 | { echo "configure: error: | |
627 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
628 | *** building egcs. Please change the environment variable | |
629 | *** and run configure again." 1>&2; exit 1; } | |
630 | fi | |
631 | ||
861bb6c1 JL |
632 | # Check for additional parameters |
633 | ||
634 | # With GNU ld | |
635 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
636 | if test "${with_gnu_ld+set}" = set; then | |
637 | withval="$with_gnu_ld" | |
df6faf79 | 638 | gnu_ld_flag="$with_gnu_ld" |
861bb6c1 | 639 | else |
df6faf79 | 640 | gnu_ld_flag=no |
861bb6c1 JL |
641 | fi |
642 | ||
643 | ||
ab339d62 AO |
644 | # With pre-defined ld |
645 | # Check whether --with-ld or --without-ld was given. | |
646 | if test "${with_ld+set}" = set; then | |
647 | withval="$with_ld" | |
3ccc3a56 | 648 | DEFAULT_LINKER="$with_ld" |
ab339d62 AO |
649 | fi |
650 | ||
3ccc3a56 AO |
651 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
652 | if test ! -x "$DEFAULT_LINKER"; then | |
653 | echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2 | |
654 | elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then | |
ab339d62 AO |
655 | gnu_ld_flag=yes |
656 | fi | |
657 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 658 | #define DEFAULT_LINKER "$DEFAULT_LINKER" |
ab339d62 AO |
659 | EOF |
660 | ||
661 | fi | |
662 | ||
861bb6c1 JL |
663 | # With GNU as |
664 | # Check whether --with-gnu-as or --without-gnu-as was given. | |
665 | if test "${with_gnu_as+set}" = set; then | |
666 | withval="$with_gnu_as" | |
df6faf79 | 667 | gas_flag="$with_gnu_as" |
861bb6c1 | 668 | else |
df6faf79 | 669 | gas_flag=no |
861bb6c1 JL |
670 | fi |
671 | ||
672 | ||
ab339d62 AO |
673 | # Check whether --with-as or --without-as was given. |
674 | if test "${with_as+set}" = set; then | |
675 | withval="$with_as" | |
3ccc3a56 | 676 | DEFAULT_ASSEMBLER="$with_as" |
ab339d62 AO |
677 | fi |
678 | ||
3ccc3a56 AO |
679 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
680 | if test ! -x "$DEFAULT_ASSEMBLER"; then | |
681 | echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2 | |
682 | elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then | |
ab339d62 AO |
683 | gas_flag=yes |
684 | fi | |
685 | cat >> confdefs.h <<EOF | |
3ccc3a56 | 686 | #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER" |
ab339d62 AO |
687 | EOF |
688 | ||
3ccc3a56 | 689 | fi |
ab339d62 | 690 | |
861bb6c1 JL |
691 | # With stabs |
692 | # Check whether --with-stabs or --without-stabs was given. | |
693 | if test "${with_stabs+set}" = set; then | |
694 | withval="$with_stabs" | |
535b86ce | 695 | stabs="$with_stabs" |
861bb6c1 JL |
696 | else |
697 | stabs=no | |
698 | fi | |
699 | ||
700 | ||
701 | # With ELF | |
702 | # Check whether --with-elf or --without-elf was given. | |
703 | if test "${with_elf+set}" = set; then | |
704 | withval="$with_elf" | |
535b86ce | 705 | elf="$with_elf" |
861bb6c1 JL |
706 | else |
707 | elf=no | |
708 | fi | |
709 | ||
710 | ||
711 | # Specify the local prefix | |
4e88d51b | 712 | local_prefix= |
861bb6c1 JL |
713 | # Check whether --with-local-prefix or --without-local-prefix was given. |
714 | if test "${with_local_prefix+set}" = set; then | |
715 | withval="$with_local_prefix" | |
4e88d51b JM |
716 | case "${withval}" in |
717 | yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;; | |
718 | no) ;; | |
719 | *) local_prefix=$with_local_prefix ;; | |
720 | esac | |
861bb6c1 JL |
721 | fi |
722 | ||
723 | ||
724 | # Default local prefix if it is empty | |
75bffa71 | 725 | if test x$local_prefix = x; then |
861bb6c1 JL |
726 | local_prefix=/usr/local |
727 | fi | |
728 | ||
8f8d3278 NC |
729 | # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only |
730 | # passed in by the toplevel make and thus we'd get different behavior | |
731 | # depending on where we built the sources. | |
732 | gcc_gxx_include_dir= | |
861bb6c1 JL |
733 | # Specify the g++ header file directory |
734 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
735 | if test "${with_gxx_include_dir+set}" = set; then | |
736 | withval="$with_gxx_include_dir" | |
4e88d51b JM |
737 | case "${withval}" in |
738 | yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;; | |
739 | no) ;; | |
8f8d3278 | 740 | *) gcc_gxx_include_dir=$with_gxx_include_dir ;; |
4e88d51b | 741 | esac |
861bb6c1 JL |
742 | fi |
743 | ||
744 | ||
8f8d3278 | 745 | if test x${gcc_gxx_include_dir} = x; then |
4e88d51b | 746 | if test x${enable_version_specific_runtime_libs} = xyes; then |
8f8d3278 | 747 | gcc_gxx_include_dir='${libsubdir}/include/g++' |
4e88d51b | 748 | else |
a270b446 | 749 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
8f8d3278 | 750 | gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface} |
4e88d51b JM |
751 | fi |
752 | fi | |
753 | ||
a494747c MM |
754 | # Enable expensive internal checks |
755 | # Check whether --enable-checking or --disable-checking was given. | |
756 | if test "${enable_checking+set}" = set; then | |
757 | enableval="$enable_checking" | |
4e88d51b JM |
758 | case "${enableval}" in |
759 | yes) cat >> confdefs.h <<\EOF | |
a494747c MM |
760 | #define ENABLE_CHECKING 1 |
761 | EOF | |
4e88d51b JM |
762 | ;; |
763 | no) ;; | |
764 | *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;; | |
765 | esac | |
a494747c MM |
766 | fi |
767 | ||
768 | ||
f81a440f | 769 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 770 | cpp_main=cccp |
f81a440f ZW |
771 | # Check whether --enable-cpplib or --disable-cpplib was given. |
772 | if test "${enable_cpplib+set}" = set; then | |
773 | enableval="$enable_cpplib" | |
774 | if test x$enable_cpplib != xno; then | |
775 | cpp_main=cppmain | |
776 | fi | |
777 | fi | |
778 | ||
779 | ||
780 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
861bb6c1 JL |
781 | # Check whether --enable-c-cpplib or --disable-c-cpplib was given. |
782 | if test "${enable_c_cpplib+set}" = set; then | |
783 | enableval="$enable_c_cpplib" | |
75bffa71 | 784 | if test x$enable_c_cpplib != xno; then |
19283265 RH |
785 | extra_c_objs="${extra_c_objs} libcpp.a" |
786 | extra_cxx_objs="${extra_cxx_objs} ../libcpp.a" | |
4525d757 | 787 | extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1" |
e061d1ce | 788 | cpp_main=cppmain |
861bb6c1 JL |
789 | fi |
790 | fi | |
791 | ||
f81a440f | 792 | |
0b9d02c6 JL |
793 | # Enable Multibyte Characters for C/C++ |
794 | # Check whether --enable-c-mbchar or --disable-c-mbchar was given. | |
795 | if test "${enable_c_mbchar+set}" = set; then | |
796 | enableval="$enable_c_mbchar" | |
75bffa71 | 797 | if test x$enable_c_mbchar != xno; then |
0b9d02c6 JL |
798 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
799 | fi | |
800 | fi | |
801 | ||
802 | ||
9101297d DL |
803 | # Enable Haifa scheduler. |
804 | # Check whether --enable-haifa or --disable-haifa was given. | |
805 | if test "${enable_haifa+set}" = set; then | |
806 | enableval="$enable_haifa" | |
807 | : | |
808 | fi | |
809 | ||
4b104d6e JL |
810 | # Fast fixincludes |
811 | # | |
812 | # This is a work in progress... | |
34a4c466 JL |
813 | # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given. |
814 | if test "${with_fast_fixincludes+set}" = set; then | |
815 | withval="$with_fast_fixincludes" | |
816 | fast_fixinc="$with_fast_fixincludes" | |
817 | else | |
4b104d6e JL |
818 | fast_fixinc=no |
819 | fi | |
820 | ||
861bb6c1 JL |
821 | |
822 | # Enable threads | |
823 | # Pass with no value to take the default | |
824 | # Pass with a value to specify a thread package | |
825 | # Check whether --enable-threads or --disable-threads was given. | |
826 | if test "${enable_threads+set}" = set; then | |
827 | enableval="$enable_threads" | |
75bffa71 | 828 | if test x$enable_threads = xno; then |
861bb6c1 JL |
829 | enable_threads='' |
830 | fi | |
831 | else | |
832 | enable_threads='' | |
833 | fi | |
834 | ||
835 | ||
e445171e | 836 | enable_threads_flag=$enable_threads |
861bb6c1 | 837 | # Check if a valid thread package |
e445171e | 838 | case x${enable_threads_flag} in |
861bb6c1 JL |
839 | x | xno) |
840 | # No threads | |
a851212a | 841 | target_thread_file='single' |
861bb6c1 JL |
842 | ;; |
843 | xyes) | |
844 | # default | |
a851212a | 845 | target_thread_file='' |
861bb6c1 JL |
846 | ;; |
847 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 848 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 849 | target_thread_file=$enable_threads_flag |
861bb6c1 JL |
850 | ;; |
851 | *) | |
852 | echo "$enable_threads is an unknown thread package" 1>&2 | |
853 | exit 1 | |
854 | ;; | |
855 | esac | |
856 | ||
d8bb17c8 OP |
857 | # Check whether --enable-objc-gc or --disable-objc-gc was given. |
858 | if test "${enable_objc_gc+set}" = set; then | |
859 | enableval="$enable_objc_gc" | |
860 | if [ x$enable_objc_gc = xno ]; then | |
861 | objc_boehm_gc='' | |
862 | else | |
863 | objc_boehm_gc=1 | |
864 | fi | |
865 | else | |
866 | objc_boehm_gc='' | |
867 | fi | |
868 | ||
869 | ||
df37e3db TT |
870 | # Check whether --enable-java-gc or --disable-java-gc was given. |
871 | if test "${enable_java_gc+set}" = set; then | |
872 | enableval="$enable_java_gc" | |
873 | ||
874 | JAVAGC=$enableval | |
875 | else | |
876 | JAVAGC=boehm | |
877 | fi | |
878 | ||
879 | ||
90e6a802 RL |
880 | # Check whether --with-dwarf2 or --without-dwarf2 was given. |
881 | if test "${with_dwarf2+set}" = set; then | |
882 | withval="$with_dwarf2" | |
883 | dwarf2="$with_dwarf2" | |
884 | else | |
885 | dwarf2=no | |
886 | fi | |
887 | ||
888 | ||
861bb6c1 JL |
889 | # Determine the host, build, and target systems |
890 | ac_aux_dir= | |
891 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
892 | if test -f $ac_dir/install-sh; then | |
893 | ac_aux_dir=$ac_dir | |
894 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
895 | break | |
896 | elif test -f $ac_dir/install.sh; then | |
897 | ac_aux_dir=$ac_dir | |
898 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
899 | break | |
900 | fi | |
901 | done | |
902 | if test -z "$ac_aux_dir"; then | |
903 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
904 | fi | |
905 | ac_config_guess=$ac_aux_dir/config.guess | |
906 | ac_config_sub=$ac_aux_dir/config.sub | |
907 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
908 | ||
909 | ||
910 | # Do some error checking and defaulting for the host and target type. | |
911 | # The inputs are: | |
912 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
913 | # | |
914 | # The rules are: | |
915 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
916 | # same time. | |
917 | # 2. Host defaults to nonopt. | |
918 | # 3. If nonopt is not specified, then host defaults to the current host, | |
919 | # as determined by config.guess. | |
920 | # 4. Target and build default to nonopt. | |
921 | # 5. If nonopt is not specified, then target and build default to host. | |
922 | ||
923 | # The aliases save the names the user supplied, while $host etc. | |
924 | # will get canonicalized. | |
925 | case $host---$target---$nonopt in | |
926 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
927 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
928 | esac | |
929 | ||
930 | ||
931 | # Make sure we can run config.sub. | |
6f144c9c | 932 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
861bb6c1 JL |
933 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
934 | fi | |
935 | ||
936 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
4525d757 | 937 | echo "configure:938: checking host system type" >&5 |
861bb6c1 JL |
938 | |
939 | host_alias=$host | |
940 | case "$host_alias" in | |
941 | NONE) | |
942 | case $nonopt in | |
943 | NONE) | |
6f144c9c | 944 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
861bb6c1 JL |
945 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
946 | fi ;; | |
947 | *) host_alias=$nonopt ;; | |
948 | esac ;; | |
949 | esac | |
950 | ||
6f144c9c | 951 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
861bb6c1 JL |
952 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
953 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
954 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
955 | echo "$ac_t""$host" 1>&6 | |
956 | ||
957 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
4525d757 | 958 | echo "configure:959: checking target system type" >&5 |
861bb6c1 JL |
959 | |
960 | target_alias=$target | |
961 | case "$target_alias" in | |
962 | NONE) | |
963 | case $nonopt in | |
964 | NONE) target_alias=$host_alias ;; | |
965 | *) target_alias=$nonopt ;; | |
966 | esac ;; | |
967 | esac | |
968 | ||
6f144c9c | 969 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
861bb6c1 JL |
970 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
971 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
972 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
973 | echo "$ac_t""$target" 1>&6 | |
974 | ||
975 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
4525d757 | 976 | echo "configure:977: checking build system type" >&5 |
861bb6c1 JL |
977 | |
978 | build_alias=$build | |
979 | case "$build_alias" in | |
980 | NONE) | |
981 | case $nonopt in | |
982 | NONE) build_alias=$host_alias ;; | |
983 | *) build_alias=$nonopt ;; | |
984 | esac ;; | |
985 | esac | |
986 | ||
6f144c9c | 987 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
861bb6c1 JL |
988 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
989 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
990 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
991 | echo "$ac_t""$build" 1>&6 | |
992 | ||
993 | test "$host_alias" != "$target_alias" && | |
994 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
995 | NONENONEs,x,x, && | |
996 | program_prefix=${target_alias}- | |
997 | ||
998 | ||
e9a25f70 JL |
999 | # Find the native compiler |
1000 | # Extract the first word of "gcc", so it can be a program name with args. | |
1001 | set dummy gcc; ac_word=$2 | |
1002 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4525d757 | 1003 | echo "configure:1004: checking for $ac_word" >&5 |
e9a25f70 JL |
1004 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1006 | else | |
1007 | if test -n "$CC"; then | |
1008 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1009 | else | |
cd9e5e7c | 1010 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1011 | ac_dummy="$PATH" |
1012 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1013 | test -z "$ac_dir" && ac_dir=. |
1014 | if test -f $ac_dir/$ac_word; then | |
1015 | ac_cv_prog_CC="gcc" | |
1016 | break | |
1017 | fi | |
1018 | done | |
1019 | IFS="$ac_save_ifs" | |
1020 | fi | |
1021 | fi | |
1022 | CC="$ac_cv_prog_CC" | |
1023 | if test -n "$CC"; then | |
1024 | echo "$ac_t""$CC" 1>&6 | |
1025 | else | |
1026 | echo "$ac_t""no" 1>&6 | |
1027 | fi | |
1028 | ||
1029 | if test -z "$CC"; then | |
1030 | # Extract the first word of "cc", so it can be a program name with args. | |
1031 | set dummy cc; ac_word=$2 | |
1032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1033 | echo "configure:1034: checking for $ac_word" >&5 |
e9a25f70 JL |
1034 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1036 | else | |
1037 | if test -n "$CC"; then | |
1038 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1039 | else | |
cd9e5e7c | 1040 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
e9a25f70 | 1041 | ac_prog_rejected=no |
b27d2bd5 MK |
1042 | ac_dummy="$PATH" |
1043 | for ac_dir in $ac_dummy; do | |
e9a25f70 JL |
1044 | test -z "$ac_dir" && ac_dir=. |
1045 | if test -f $ac_dir/$ac_word; then | |
1046 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1047 | ac_prog_rejected=yes | |
1048 | continue | |
1049 | fi | |
1050 | ac_cv_prog_CC="cc" | |
1051 | break | |
1052 | fi | |
1053 | done | |
1054 | IFS="$ac_save_ifs" | |
1055 | if test $ac_prog_rejected = yes; then | |
1056 | # We found a bogon in the path, so make sure we never use it. | |
1057 | set dummy $ac_cv_prog_CC | |
1058 | shift | |
1059 | if test $# -gt 0; then | |
1060 | # We chose a different compiler from the bogus one. | |
1061 | # However, it has the same basename, so the bogon will be chosen | |
1062 | # first if we set CC to just the basename; use the full file name. | |
1063 | shift | |
1064 | set dummy "$ac_dir/$ac_word" "$@" | |
1065 | shift | |
1066 | ac_cv_prog_CC="$@" | |
1067 | fi | |
1068 | fi | |
1069 | fi | |
1070 | fi | |
1071 | CC="$ac_cv_prog_CC" | |
1072 | if test -n "$CC"; then | |
1073 | echo "$ac_t""$CC" 1>&6 | |
1074 | else | |
1075 | echo "$ac_t""no" 1>&6 | |
1076 | fi | |
1077 | ||
cd9e5e7c MK |
1078 | if test -z "$CC"; then |
1079 | case "`uname -s`" in | |
1080 | *win32* | *WIN32*) | |
1081 | # Extract the first word of "cl", so it can be a program name with args. | |
1082 | set dummy cl; ac_word=$2 | |
1083 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1084 | echo "configure:1085: checking for $ac_word" >&5 |
cd9e5e7c MK |
1085 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1087 | else | |
1088 | if test -n "$CC"; then | |
1089 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1090 | else | |
1091 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
b27d2bd5 MK |
1092 | ac_dummy="$PATH" |
1093 | for ac_dir in $ac_dummy; do | |
cd9e5e7c MK |
1094 | test -z "$ac_dir" && ac_dir=. |
1095 | if test -f $ac_dir/$ac_word; then | |
1096 | ac_cv_prog_CC="cl" | |
1097 | break | |
1098 | fi | |
1099 | done | |
1100 | IFS="$ac_save_ifs" | |
1101 | fi | |
1102 | fi | |
1103 | CC="$ac_cv_prog_CC" | |
1104 | if test -n "$CC"; then | |
1105 | echo "$ac_t""$CC" 1>&6 | |
1106 | else | |
1107 | echo "$ac_t""no" 1>&6 | |
1108 | fi | |
1109 | ;; | |
1110 | esac | |
1111 | fi | |
e9a25f70 JL |
1112 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1113 | fi | |
1114 | ||
1115 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b27d2bd5 | 1116 | echo "configure:1117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
e9a25f70 JL |
1117 | |
1118 | ac_ext=c | |
1119 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1120 | ac_cpp='$CPP $CPPFLAGS' | |
1121 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
cd9e5e7c | 1122 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
e9a25f70 JL |
1123 | cross_compiling=$ac_cv_prog_cc_cross |
1124 | ||
b27d2bd5 MK |
1125 | cat > conftest.$ac_ext << EOF |
1126 | ||
1127 | #line 1128 "configure" | |
e9a25f70 | 1128 | #include "confdefs.h" |
b27d2bd5 | 1129 | |
e9a25f70 JL |
1130 | main(){return(0);} |
1131 | EOF | |
b27d2bd5 | 1132 | if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e9a25f70 JL |
1133 | ac_cv_prog_cc_works=yes |
1134 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1135 | if (./conftest; exit) 2>/dev/null; then | |
1136 | ac_cv_prog_cc_cross=no | |
1137 | else | |
1138 | ac_cv_prog_cc_cross=yes | |
1139 | fi | |
1140 | else | |
1141 | echo "configure: failed program was:" >&5 | |
1142 | cat conftest.$ac_ext >&5 | |
1143 | ac_cv_prog_cc_works=no | |
1144 | fi | |
1145 | rm -fr conftest* | |
b27d2bd5 MK |
1146 | ac_ext=c |
1147 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1148 | ac_cpp='$CPP $CPPFLAGS' | |
1149 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1150 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1151 | cross_compiling=$ac_cv_prog_cc_cross | |
e9a25f70 JL |
1152 | |
1153 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1154 | if test $ac_cv_prog_cc_works = no; then | |
1155 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1156 | fi | |
1157 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b27d2bd5 | 1158 | echo "configure:1159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
e9a25f70 JL |
1159 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1160 | cross_compiling=$ac_cv_prog_cc_cross | |
1161 | ||
1162 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b27d2bd5 | 1163 | echo "configure:1164: checking whether we are using GNU C" >&5 |
e9a25f70 JL |
1164 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1166 | else | |
1167 | cat > conftest.c <<EOF | |
1168 | #ifdef __GNUC__ | |
1169 | yes; | |
1170 | #endif | |
1171 | EOF | |
b27d2bd5 | 1172 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e9a25f70 JL |
1173 | ac_cv_prog_gcc=yes |
1174 | else | |
1175 | ac_cv_prog_gcc=no | |
1176 | fi | |
1177 | fi | |
1178 | ||
1179 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1180 | ||
1181 | if test $ac_cv_prog_gcc = yes; then | |
1182 | GCC=yes | |
cd9e5e7c MK |
1183 | else |
1184 | GCC= | |
1185 | fi | |
1186 | ||
1187 | ac_test_CFLAGS="${CFLAGS+set}" | |
1188 | ac_save_CFLAGS="$CFLAGS" | |
1189 | CFLAGS= | |
1190 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b27d2bd5 | 1191 | echo "configure:1192: checking whether ${CC-cc} accepts -g" >&5 |
e9a25f70 JL |
1192 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1194 | else | |
1195 | echo 'void f(){}' > conftest.c | |
1196 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1197 | ac_cv_prog_cc_g=yes | |
1198 | else | |
1199 | ac_cv_prog_cc_g=no | |
1200 | fi | |
1201 | rm -f conftest* | |
1202 | ||
1203 | fi | |
1204 | ||
1205 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
cd9e5e7c MK |
1206 | if test "$ac_test_CFLAGS" = set; then |
1207 | CFLAGS="$ac_save_CFLAGS" | |
1208 | elif test $ac_cv_prog_cc_g = yes; then | |
1209 | if test "$GCC" = yes; then | |
e9a25f70 JL |
1210 | CFLAGS="-g -O2" |
1211 | else | |
cd9e5e7c | 1212 | CFLAGS="-g" |
81814e35 | 1213 | fi |
3723cad9 | 1214 | else |
cd9e5e7c MK |
1215 | if test "$GCC" = yes; then |
1216 | CFLAGS="-O2" | |
1217 | else | |
1218 | CFLAGS= | |
1219 | fi | |
e9a25f70 JL |
1220 | fi |
1221 | ||
61842080 MM |
1222 | |
1223 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
1224 | # That's useful for people building cross-compilers, or just running a | |
1225 | # quick `make'. | |
1226 | if test "x$GCC" = "xyes"; then | |
1227 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
1228 | else | |
1229 | stage1_warn_cflags="" | |
1230 | fi | |
1231 | ||
1232 | ||
e9a25f70 | 1233 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
b27d2bd5 | 1234 | echo "configure:1235: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
e9a25f70 JL |
1235 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1236 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
1237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1238 | else | |
1239 | cat > conftestmake <<\EOF | |
1240 | all: | |
1241 | @echo 'ac_maketemp="${MAKE}"' | |
1242 | EOF | |
1243 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1244 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
1245 | if test -n "$ac_maketemp"; then | |
1246 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1247 | else | |
1248 | eval ac_cv_prog_make_${ac_make}_set=no | |
1249 | fi | |
1250 | rm -f conftestmake | |
1251 | fi | |
1252 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1253 | echo "$ac_t""yes" 1>&6 | |
1254 | SET_MAKE= | |
1255 | else | |
1256 | echo "$ac_t""no" 1>&6 | |
1257 | SET_MAKE="MAKE=${MAKE-make}" | |
1258 | fi | |
1259 | ||
1260 | ||
ab339d62 | 1261 | echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 |
b27d2bd5 | 1262 | echo "configure:1263: checking whether a default assembler was specified" >&5 |
3ccc3a56 | 1263 | if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then |
ab339d62 | 1264 | if test x"$with_gas" = x"no"; then |
3ccc3a56 | 1265 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6 |
ab339d62 | 1266 | else |
3ccc3a56 | 1267 | echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6 |
ab339d62 AO |
1268 | fi |
1269 | else | |
1270 | echo "$ac_t""no" 1>&6 | |
1271 | fi | |
1272 | ||
1273 | echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 | |
b27d2bd5 | 1274 | echo "configure:1275: checking whether a default linker was specified" >&5 |
3ccc3a56 | 1275 | if test x"${DEFAULT_LINKER+set}" = x"set"; then |
ab339d62 | 1276 | if test x"$with_gnu_ld" = x"no"; then |
3ccc3a56 | 1277 | echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6 |
ab339d62 | 1278 | else |
3ccc3a56 | 1279 | echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6 |
ab339d62 AO |
1280 | fi |
1281 | else | |
1282 | echo "$ac_t""no" 1>&6 | |
1283 | fi | |
1284 | ||
861bb6c1 JL |
1285 | # Find some useful tools |
1286 | for ac_prog in mawk gawk nawk awk | |
1287 | do | |
1288 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1289 | set dummy $ac_prog; ac_word=$2 | |
1290 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1291 | echo "configure:1292: checking for $ac_word" >&5 |
861bb6c1 JL |
1292 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
1293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1294 | else | |
1295 | if test -n "$AWK"; then | |
1296 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1297 | else | |
cd9e5e7c | 1298 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1299 | ac_dummy="$PATH" |
1300 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1301 | test -z "$ac_dir" && ac_dir=. |
1302 | if test -f $ac_dir/$ac_word; then | |
1303 | ac_cv_prog_AWK="$ac_prog" | |
1304 | break | |
1305 | fi | |
1306 | done | |
1307 | IFS="$ac_save_ifs" | |
1308 | fi | |
1309 | fi | |
1310 | AWK="$ac_cv_prog_AWK" | |
1311 | if test -n "$AWK"; then | |
1312 | echo "$ac_t""$AWK" 1>&6 | |
1313 | else | |
1314 | echo "$ac_t""no" 1>&6 | |
1315 | fi | |
1316 | ||
1317 | test -n "$AWK" && break | |
1318 | done | |
1319 | ||
1320 | # Extract the first word of "flex", so it can be a program name with args. | |
1321 | set dummy flex; ac_word=$2 | |
1322 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1323 | echo "configure:1324: checking for $ac_word" >&5 |
861bb6c1 JL |
1324 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1326 | else | |
1327 | if test -n "$LEX"; then | |
1328 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1329 | else | |
cd9e5e7c | 1330 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1331 | ac_dummy="$PATH" |
1332 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1333 | test -z "$ac_dir" && ac_dir=. |
1334 | if test -f $ac_dir/$ac_word; then | |
1335 | ac_cv_prog_LEX="flex" | |
1336 | break | |
1337 | fi | |
1338 | done | |
1339 | IFS="$ac_save_ifs" | |
1340 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1341 | fi | |
1342 | fi | |
1343 | LEX="$ac_cv_prog_LEX" | |
1344 | if test -n "$LEX"; then | |
1345 | echo "$ac_t""$LEX" 1>&6 | |
1346 | else | |
1347 | echo "$ac_t""no" 1>&6 | |
1348 | fi | |
1349 | ||
1350 | if test -z "$LEXLIB" | |
1351 | then | |
1352 | case "$LEX" in | |
1353 | flex*) ac_lib=fl ;; | |
1354 | *) ac_lib=l ;; | |
1355 | esac | |
1356 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b27d2bd5 | 1357 | echo "configure:1358: checking for yywrap in -l$ac_lib" >&5 |
861bb6c1 JL |
1358 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
1359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1361 | else | |
1362 | ac_save_LIBS="$LIBS" | |
1363 | LIBS="-l$ac_lib $LIBS" | |
1364 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1365 | #line 1366 "configure" |
861bb6c1 JL |
1366 | #include "confdefs.h" |
1367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1368 | /* We use char because int might match the return type of a gcc2 | |
1369 | builtin and then its argument prototype would still apply. */ | |
1370 | char yywrap(); | |
1371 | ||
1372 | int main() { | |
1373 | yywrap() | |
1374 | ; return 0; } | |
1375 | EOF | |
b27d2bd5 | 1376 | if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
861bb6c1 JL |
1377 | rm -rf conftest* |
1378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1379 | else | |
1380 | echo "configure: failed program was:" >&5 | |
1381 | cat conftest.$ac_ext >&5 | |
1382 | rm -rf conftest* | |
1383 | eval "ac_cv_lib_$ac_lib_var=no" | |
1384 | fi | |
1385 | rm -f conftest* | |
1386 | LIBS="$ac_save_LIBS" | |
1387 | ||
1388 | fi | |
1389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1390 | echo "$ac_t""yes" 1>&6 | |
1391 | LEXLIB="-l$ac_lib" | |
1392 | else | |
1393 | echo "$ac_t""no" 1>&6 | |
1394 | fi | |
1395 | ||
1396 | fi | |
1397 | ||
0a4b6309 | 1398 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
b27d2bd5 | 1399 | echo "configure:1400: checking whether ln works" >&5 |
0a4b6309 RL |
1400 | if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then |
1401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1402 | else | |
1403 | rm -f conftestdata_t | |
1404 | echo >conftestdata_f | |
1405 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1406 | then | |
1407 | gcc_cv_prog_LN="ln" | |
1408 | else | |
1409 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1410 | then | |
1411 | gcc_cv_prog_LN="ln -s" | |
1412 | else | |
1413 | gcc_cv_prog_LN=cp | |
1414 | fi | |
1415 | fi | |
1416 | rm -f conftestdata_f conftestdata_t | |
1417 | ||
1418 | fi | |
1419 | LN="$gcc_cv_prog_LN" | |
1420 | if test "$gcc_cv_prog_LN" = "ln"; then | |
1421 | echo "$ac_t""yes" 1>&6 | |
1422 | else | |
1423 | if test "$gcc_cv_prog_LN" = "ln -s"; then | |
1424 | echo "$ac_t""no, using ln -s" 1>&6 | |
1425 | else | |
1426 | echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6 | |
1427 | fi | |
1428 | fi | |
1429 | ||
1430 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
b27d2bd5 | 1431 | echo "configure:1432: checking whether ln -s works" >&5 |
0a4b6309 RL |
1432 | if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then |
1433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1434 | else | |
1435 | rm -f conftestdata_t | |
1436 | echo >conftestdata_f | |
1437 | if ln -s conftestdata_f conftestdata_t 2>/dev/null | |
1438 | then | |
1439 | gcc_cv_prog_LN_S="ln -s" | |
1440 | else | |
1441 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
1442 | then | |
1443 | gcc_cv_prog_LN_S=ln | |
1444 | else | |
1445 | gcc_cv_prog_LN_S=cp | |
1446 | fi | |
1447 | fi | |
1448 | rm -f conftestdata_f conftestdata_t | |
1449 | ||
1450 | fi | |
1451 | LN_S="$gcc_cv_prog_LN_S" | |
1452 | if test "$gcc_cv_prog_LN_S" = "ln -s"; then | |
1453 | echo "$ac_t""yes" 1>&6 | |
1454 | else | |
1455 | if test "$gcc_cv_prog_LN_S" = "ln"; then | |
1456 | echo "$ac_t""no, using ln" 1>&6 | |
1457 | else | |
1458 | echo "$ac_t""no, and neither does ln, so using cp" 1>&6 | |
1459 | fi | |
1460 | fi | |
1461 | ||
1462 | echo $ac_n "checking for volatile""... $ac_c" 1>&6 | |
b27d2bd5 | 1463 | echo "configure:1464: checking for volatile" >&5 |
0a4b6309 RL |
1464 | if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then |
1465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1466 | else | |
1467 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1468 | #line 1469 "configure" |
0a4b6309 RL |
1469 | #include "confdefs.h" |
1470 | ||
1471 | int main() { | |
1472 | volatile int foo; | |
1473 | ; return 0; } | |
1474 | EOF | |
b27d2bd5 | 1475 | if { (eval echo configure:1476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1476 | rm -rf conftest* |
1477 | gcc_cv_c_volatile=yes | |
1478 | else | |
1479 | echo "configure: failed program was:" >&5 | |
1480 | cat conftest.$ac_ext >&5 | |
1481 | rm -rf conftest* | |
1482 | gcc_cv_c_volatile=no | |
1483 | fi | |
1484 | rm -f conftest* | |
1485 | fi | |
1486 | ||
1487 | echo "$ac_t""$gcc_cv_c_volatile" 1>&6 | |
1488 | if test $gcc_cv_c_volatile = yes ; then | |
1489 | cat >> confdefs.h <<\EOF | |
1490 | #define HAVE_VOLATILE 1 | |
1491 | EOF | |
1492 | ||
1493 | fi | |
1494 | ||
861bb6c1 JL |
1495 | # Extract the first word of "ranlib", so it can be a program name with args. |
1496 | set dummy ranlib; ac_word=$2 | |
1497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1498 | echo "configure:1499: checking for $ac_word" >&5 |
861bb6c1 JL |
1499 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1501 | else | |
1502 | if test -n "$RANLIB"; then | |
1503 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1504 | else | |
cd9e5e7c | 1505 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1506 | ac_dummy="$PATH" |
1507 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1508 | test -z "$ac_dir" && ac_dir=. |
1509 | if test -f $ac_dir/$ac_word; then | |
1510 | ac_cv_prog_RANLIB="ranlib" | |
1511 | break | |
1512 | fi | |
1513 | done | |
1514 | IFS="$ac_save_ifs" | |
1515 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1516 | fi | |
1517 | fi | |
1518 | RANLIB="$ac_cv_prog_RANLIB" | |
1519 | if test -n "$RANLIB"; then | |
1520 | echo "$ac_t""$RANLIB" 1>&6 | |
1521 | else | |
1522 | echo "$ac_t""no" 1>&6 | |
1523 | fi | |
1524 | ||
1525 | for ac_prog in 'bison -y' byacc | |
1526 | do | |
1527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1528 | set dummy $ac_prog; ac_word=$2 | |
1529 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 1530 | echo "configure:1531: checking for $ac_word" >&5 |
861bb6c1 JL |
1531 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1533 | else | |
1534 | if test -n "$YACC"; then | |
1535 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1536 | else | |
cd9e5e7c | 1537 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
1538 | ac_dummy="$PATH" |
1539 | for ac_dir in $ac_dummy; do | |
861bb6c1 JL |
1540 | test -z "$ac_dir" && ac_dir=. |
1541 | if test -f $ac_dir/$ac_word; then | |
1542 | ac_cv_prog_YACC="$ac_prog" | |
1543 | break | |
1544 | fi | |
1545 | done | |
1546 | IFS="$ac_save_ifs" | |
1547 | fi | |
1548 | fi | |
1549 | YACC="$ac_cv_prog_YACC" | |
1550 | if test -n "$YACC"; then | |
1551 | echo "$ac_t""$YACC" 1>&6 | |
1552 | else | |
1553 | echo "$ac_t""no" 1>&6 | |
1554 | fi | |
1555 | ||
1556 | test -n "$YACC" && break | |
1557 | done | |
1558 | test -n "$YACC" || YACC="yacc" | |
1559 | ||
0a4b6309 RL |
1560 | # Find a good install program. We prefer a C program (faster), |
1561 | # so one script is as good as another. But avoid the broken or | |
1562 | # incompatible versions: | |
1563 | # SysV /etc/install, /usr/sbin/install | |
1564 | # SunOS /usr/etc/install | |
1565 | # IRIX /sbin/install | |
1566 | # AIX /bin/install | |
1567 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1568 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1569 | # ./install, which can be erroneously created by make from ./install.sh. | |
1570 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b27d2bd5 | 1571 | echo "configure:1572: checking for a BSD compatible install" >&5 |
0a4b6309 RL |
1572 | if test -z "$INSTALL"; then |
1573 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1575 | else | |
1576 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | |
1577 | for ac_dir in $PATH; do | |
1578 | # Account for people who put trailing slashes in PATH elements. | |
1579 | case "$ac_dir/" in | |
1580 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1581 | *) | |
1582 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1583 | for ac_prog in ginstall scoinst install; do | |
1584 | if test -f $ac_dir/$ac_prog; then | |
1585 | if test $ac_prog = install && | |
1586 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1587 | # AIX install. It has an incompatible calling convention. | |
1588 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1589 | : | |
1590 | else | |
1591 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1592 | break 2 | |
1593 | fi | |
1594 | fi | |
1595 | done | |
1596 | ;; | |
1597 | esac | |
1598 | done | |
1599 | IFS="$ac_save_IFS" | |
1600 | ||
1601 | fi | |
1602 | if test "${ac_cv_path_install+set}" = set; then | |
1603 | INSTALL="$ac_cv_path_install" | |
1604 | else | |
1605 | # As a last resort, use the slow shell script. We don't cache a | |
1606 | # path for INSTALL within a source directory, because that will | |
1607 | # break other packages using the cache if that directory is | |
1608 | # removed, or if the path is relative. | |
1609 | INSTALL="$ac_install_sh" | |
1610 | fi | |
1611 | fi | |
1612 | echo "$ac_t""$INSTALL" 1>&6 | |
1613 | ||
1614 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1615 | # It thinks the first close brace ends the variable substitution. | |
1616 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1617 | ||
1618 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1619 | ||
861bb6c1 | 1620 | |
861bb6c1 | 1621 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b27d2bd5 | 1622 | echo "configure:1623: checking how to run the C preprocessor" >&5 |
861bb6c1 JL |
1623 | # On Suns, sometimes $CPP names a directory. |
1624 | if test -n "$CPP" && test -d "$CPP"; then | |
1625 | CPP= | |
1626 | fi | |
1627 | if test -z "$CPP"; then | |
1628 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1630 | else | |
1631 | # This must be in double quotes, not single quotes, because CPP may get | |
1632 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1633 | CPP="${CC-cc} -E" | |
1634 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1635 | # not just through cpp. | |
1636 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1637 | #line 1638 "configure" |
861bb6c1 JL |
1638 | #include "confdefs.h" |
1639 | #include <assert.h> | |
1640 | Syntax Error | |
1641 | EOF | |
1642 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 1643 | { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1644 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1645 | if test -z "$ac_err"; then |
1646 | : | |
1647 | else | |
1648 | echo "$ac_err" >&5 | |
1649 | echo "configure: failed program was:" >&5 | |
1650 | cat conftest.$ac_ext >&5 | |
1651 | rm -rf conftest* | |
1652 | CPP="${CC-cc} -E -traditional-cpp" | |
1653 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1654 | #line 1655 "configure" |
cd9e5e7c MK |
1655 | #include "confdefs.h" |
1656 | #include <assert.h> | |
1657 | Syntax Error | |
1658 | EOF | |
1659 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 1660 | { (eval echo configure:1661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c MK |
1661 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1662 | if test -z "$ac_err"; then | |
1663 | : | |
1664 | else | |
1665 | echo "$ac_err" >&5 | |
1666 | echo "configure: failed program was:" >&5 | |
1667 | cat conftest.$ac_ext >&5 | |
1668 | rm -rf conftest* | |
1669 | CPP="${CC-cc} -nologo -E" | |
1670 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1671 | #line 1672 "configure" |
20fced2c MM |
1672 | #include "confdefs.h" |
1673 | #include <assert.h> | |
1674 | Syntax Error | |
1675 | EOF | |
1676 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 1677 | { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1678 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
861bb6c1 JL |
1679 | if test -z "$ac_err"; then |
1680 | : | |
1681 | else | |
1682 | echo "$ac_err" >&5 | |
1683 | echo "configure: failed program was:" >&5 | |
1684 | cat conftest.$ac_ext >&5 | |
1685 | rm -rf conftest* | |
1686 | CPP=/lib/cpp | |
1687 | fi | |
1688 | rm -f conftest* | |
1689 | fi | |
cd9e5e7c MK |
1690 | rm -f conftest* |
1691 | fi | |
861bb6c1 JL |
1692 | rm -f conftest* |
1693 | ac_cv_prog_CPP="$CPP" | |
1694 | fi | |
1695 | CPP="$ac_cv_prog_CPP" | |
1696 | else | |
1697 | ac_cv_prog_CPP="$CPP" | |
1698 | fi | |
1699 | echo "$ac_t""$CPP" 1>&6 | |
1700 | ||
956d6950 | 1701 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
b27d2bd5 | 1702 | echo "configure:1703: checking for ANSI C header files" >&5 |
956d6950 JL |
1703 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1705 | else | |
1706 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1707 | #line 1708 "configure" |
956d6950 JL |
1708 | #include "confdefs.h" |
1709 | #include <stdlib.h> | |
1710 | #include <stdarg.h> | |
1711 | #include <string.h> | |
1712 | #include <float.h> | |
1713 | EOF | |
1714 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 1715 | { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1716 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1717 | if test -z "$ac_err"; then |
1718 | rm -rf conftest* | |
1719 | ac_cv_header_stdc=yes | |
1720 | else | |
1721 | echo "$ac_err" >&5 | |
1722 | echo "configure: failed program was:" >&5 | |
1723 | cat conftest.$ac_ext >&5 | |
1724 | rm -rf conftest* | |
1725 | ac_cv_header_stdc=no | |
1726 | fi | |
1727 | rm -f conftest* | |
1728 | ||
1729 | if test $ac_cv_header_stdc = yes; then | |
1730 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
1731 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1732 | #line 1733 "configure" |
956d6950 JL |
1733 | #include "confdefs.h" |
1734 | #include <string.h> | |
1735 | EOF | |
1736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1737 | egrep "memchr" >/dev/null 2>&1; then | |
1738 | : | |
1739 | else | |
1740 | rm -rf conftest* | |
1741 | ac_cv_header_stdc=no | |
1742 | fi | |
1743 | rm -f conftest* | |
1744 | ||
1745 | fi | |
1746 | ||
1747 | if test $ac_cv_header_stdc = yes; then | |
1748 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
1749 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1750 | #line 1751 "configure" |
956d6950 JL |
1751 | #include "confdefs.h" |
1752 | #include <stdlib.h> | |
1753 | EOF | |
1754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1755 | egrep "free" >/dev/null 2>&1; then | |
1756 | : | |
1757 | else | |
1758 | rm -rf conftest* | |
1759 | ac_cv_header_stdc=no | |
1760 | fi | |
1761 | rm -f conftest* | |
1762 | ||
1763 | fi | |
1764 | ||
1765 | if test $ac_cv_header_stdc = yes; then | |
1766 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
1767 | if test "$cross_compiling" = yes; then | |
1768 | : | |
1769 | else | |
1770 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1771 | #line 1772 "configure" |
956d6950 JL |
1772 | #include "confdefs.h" |
1773 | #include <ctype.h> | |
1774 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
1775 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
1777 | int main () { int i; for (i = 0; i < 256; i++) | |
1778 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
1779 | exit (0); } | |
1780 | ||
1781 | EOF | |
b27d2bd5 | 1782 | if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
956d6950 JL |
1783 | then |
1784 | : | |
1785 | else | |
1786 | echo "configure: failed program was:" >&5 | |
1787 | cat conftest.$ac_ext >&5 | |
1788 | rm -fr conftest* | |
1789 | ac_cv_header_stdc=no | |
1790 | fi | |
1791 | rm -fr conftest* | |
1792 | fi | |
1793 | ||
1794 | fi | |
1795 | fi | |
1796 | ||
1797 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
1798 | if test $ac_cv_header_stdc = yes; then | |
1799 | cat >> confdefs.h <<\EOF | |
1800 | #define STDC_HEADERS 1 | |
1801 | EOF | |
1802 | ||
1803 | fi | |
1804 | ||
1805 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
b27d2bd5 | 1806 | echo "configure:1807: checking whether time.h and sys/time.h may both be included" >&5 |
956d6950 JL |
1807 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
1808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1809 | else | |
1810 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1811 | #line 1812 "configure" |
956d6950 JL |
1812 | #include "confdefs.h" |
1813 | #include <sys/types.h> | |
1814 | #include <sys/time.h> | |
1815 | #include <time.h> | |
1816 | int main() { | |
1817 | struct tm *tp; | |
1818 | ; return 0; } | |
1819 | EOF | |
b27d2bd5 | 1820 | if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
1821 | rm -rf conftest* |
1822 | ac_cv_header_time=yes | |
1823 | else | |
1824 | echo "configure: failed program was:" >&5 | |
1825 | cat conftest.$ac_ext >&5 | |
1826 | rm -rf conftest* | |
1827 | ac_cv_header_time=no | |
1828 | fi | |
1829 | rm -f conftest* | |
1830 | fi | |
1831 | ||
1832 | echo "$ac_t""$ac_cv_header_time" 1>&6 | |
1833 | if test $ac_cv_header_time = yes; then | |
1834 | cat >> confdefs.h <<\EOF | |
1835 | #define TIME_WITH_SYS_TIME 1 | |
1836 | EOF | |
1837 | ||
1838 | fi | |
1839 | ||
0a4b6309 | 1840 | echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 |
b27d2bd5 | 1841 | echo "configure:1842: checking whether string.h and strings.h may both be included" >&5 |
0a4b6309 RL |
1842 | if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then |
1843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1844 | else | |
1845 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1846 | #line 1847 "configure" |
0a4b6309 RL |
1847 | #include "confdefs.h" |
1848 | #include <string.h> | |
1849 | #include <strings.h> | |
1850 | int main() { | |
1851 | ||
1852 | ; return 0; } | |
1853 | EOF | |
b27d2bd5 | 1854 | if { (eval echo configure:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
1855 | rm -rf conftest* |
1856 | gcc_cv_header_string=yes | |
1857 | else | |
1858 | echo "configure: failed program was:" >&5 | |
1859 | cat conftest.$ac_ext >&5 | |
1860 | rm -rf conftest* | |
1861 | gcc_cv_header_string=no | |
1862 | fi | |
1863 | rm -f conftest* | |
1864 | fi | |
1865 | ||
1866 | echo "$ac_t""$gcc_cv_header_string" 1>&6 | |
1867 | if test $gcc_cv_header_string = yes; then | |
1868 | cat >> confdefs.h <<\EOF | |
1869 | #define STRING_WITH_STRINGS 1 | |
1870 | EOF | |
1871 | ||
1872 | fi | |
1873 | ||
e9831ca0 | 1874 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
b27d2bd5 | 1875 | echo "configure:1876: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
e9831ca0 KG |
1876 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
1877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1878 | else | |
1879 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1880 | #line 1881 "configure" |
e9831ca0 KG |
1881 | #include "confdefs.h" |
1882 | #include <sys/types.h> | |
1883 | #include <sys/wait.h> | |
1884 | #ifndef WEXITSTATUS | |
1885 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | |
1886 | #endif | |
1887 | #ifndef WIFEXITED | |
1888 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
1889 | #endif | |
1890 | int main() { | |
1891 | int s; | |
1892 | wait (&s); | |
1893 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
1894 | ; return 0; } | |
1895 | EOF | |
b27d2bd5 | 1896 | if { (eval echo configure:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e9831ca0 KG |
1897 | rm -rf conftest* |
1898 | ac_cv_header_sys_wait_h=yes | |
1899 | else | |
1900 | echo "configure: failed program was:" >&5 | |
1901 | cat conftest.$ac_ext >&5 | |
1902 | rm -rf conftest* | |
1903 | ac_cv_header_sys_wait_h=no | |
1904 | fi | |
1905 | rm -f conftest* | |
1906 | fi | |
1907 | ||
1908 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 | |
1909 | if test $ac_cv_header_sys_wait_h = yes; then | |
1910 | cat >> confdefs.h <<\EOF | |
1911 | #define HAVE_SYS_WAIT_H 1 | |
1912 | EOF | |
1913 | ||
1914 | fi | |
1915 | ||
a05e22b8 | 1916 | 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 |
861bb6c1 JL |
1917 | do |
1918 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
1919 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b27d2bd5 | 1920 | echo "configure:1921: checking for $ac_hdr" >&5 |
861bb6c1 JL |
1921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1923 | else | |
1924 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1925 | #line 1926 "configure" |
861bb6c1 JL |
1926 | #include "confdefs.h" |
1927 | #include <$ac_hdr> | |
1928 | EOF | |
956d6950 | 1929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
b27d2bd5 | 1930 | { (eval echo configure:1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
956d6950 JL |
1932 | if test -z "$ac_err"; then |
1933 | rm -rf conftest* | |
1934 | eval "ac_cv_header_$ac_safe=yes" | |
1935 | else | |
1936 | echo "$ac_err" >&5 | |
1937 | echo "configure: failed program was:" >&5 | |
1938 | cat conftest.$ac_ext >&5 | |
1939 | rm -rf conftest* | |
1940 | eval "ac_cv_header_$ac_safe=no" | |
1941 | fi | |
1942 | rm -f conftest* | |
1943 | fi | |
1944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1945 | echo "$ac_t""yes" 1>&6 | |
1946 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
1947 | cat >> confdefs.h <<EOF | |
1948 | #define $ac_tr_hdr 1 | |
1949 | EOF | |
1950 | ||
1951 | else | |
1952 | echo "$ac_t""no" 1>&6 | |
1953 | fi | |
1954 | done | |
1955 | ||
1956 | ||
f24af81b TT |
1957 | # Check for thread headers. |
1958 | ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` | |
1959 | echo $ac_n "checking for thread.h""... $ac_c" 1>&6 | |
b27d2bd5 | 1960 | echo "configure:1961: checking for thread.h" >&5 |
f24af81b TT |
1961 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1963 | else | |
1964 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1965 | #line 1966 "configure" |
f24af81b TT |
1966 | #include "confdefs.h" |
1967 | #include <thread.h> | |
1968 | EOF | |
1969 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 1970 | { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 1971 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
1972 | if test -z "$ac_err"; then |
1973 | rm -rf conftest* | |
1974 | eval "ac_cv_header_$ac_safe=yes" | |
1975 | else | |
1976 | echo "$ac_err" >&5 | |
1977 | echo "configure: failed program was:" >&5 | |
1978 | cat conftest.$ac_ext >&5 | |
1979 | rm -rf conftest* | |
1980 | eval "ac_cv_header_$ac_safe=no" | |
1981 | fi | |
1982 | rm -f conftest* | |
1983 | fi | |
1984 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1985 | echo "$ac_t""yes" 1>&6 | |
1986 | have_thread_h=yes | |
1987 | else | |
1988 | echo "$ac_t""no" 1>&6 | |
1989 | have_thread_h= | |
1990 | fi | |
1991 | ||
1992 | ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` | |
1993 | echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 | |
b27d2bd5 | 1994 | echo "configure:1995: checking for pthread.h" >&5 |
f24af81b TT |
1995 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 | else | |
1998 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 1999 | #line 2000 "configure" |
f24af81b TT |
2000 | #include "confdefs.h" |
2001 | #include <pthread.h> | |
2002 | EOF | |
2003 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 2004 | { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2005 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f24af81b TT |
2006 | if test -z "$ac_err"; then |
2007 | rm -rf conftest* | |
2008 | eval "ac_cv_header_$ac_safe=yes" | |
2009 | else | |
2010 | echo "$ac_err" >&5 | |
2011 | echo "configure: failed program was:" >&5 | |
2012 | cat conftest.$ac_ext >&5 | |
2013 | rm -rf conftest* | |
2014 | eval "ac_cv_header_$ac_safe=no" | |
2015 | fi | |
2016 | rm -f conftest* | |
2017 | fi | |
2018 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2019 | echo "$ac_t""yes" 1>&6 | |
2020 | have_pthread_h=yes | |
2021 | else | |
2022 | echo "$ac_t""no" 1>&6 | |
2023 | have_pthread_h= | |
2024 | fi | |
2025 | ||
2026 | ||
bcf12124 JL |
2027 | # See if GNAT has been installed |
2028 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2029 | set dummy gnatbind; ac_word=$2 | |
2030 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 2031 | echo "configure:2032: checking for $ac_word" >&5 |
bcf12124 JL |
2032 | if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then |
2033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2034 | else | |
2035 | if test -n "$gnat"; then | |
2036 | ac_cv_prog_gnat="$gnat" # Let the user override the test. | |
2037 | else | |
cd9e5e7c | 2038 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
2039 | ac_dummy="$PATH" |
2040 | for ac_dir in $ac_dummy; do | |
bcf12124 JL |
2041 | test -z "$ac_dir" && ac_dir=. |
2042 | if test -f $ac_dir/$ac_word; then | |
2043 | ac_cv_prog_gnat="yes" | |
2044 | break | |
2045 | fi | |
2046 | done | |
2047 | IFS="$ac_save_ifs" | |
2048 | test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no" | |
2049 | fi | |
2050 | fi | |
2051 | gnat="$ac_cv_prog_gnat" | |
2052 | if test -n "$gnat"; then | |
2053 | echo "$ac_t""$gnat" 1>&6 | |
2054 | else | |
2055 | echo "$ac_t""no" 1>&6 | |
2056 | fi | |
2057 | ||
2058 | ||
76844337 RH |
2059 | # See if the system preprocessor understands the ANSI C preprocessor |
2060 | # stringification operator. | |
2061 | echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 | |
b27d2bd5 | 2062 | echo "configure:2063: checking whether cpp understands the stringify operator" >&5 |
76844337 RH |
2063 | if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then |
2064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2065 | else | |
2066 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2067 | #line 2068 "configure" |
76844337 RH |
2068 | #include "confdefs.h" |
2069 | ||
2070 | int main() { | |
2071 | #define S(x) #x | |
2072 | char *test = S(foo); | |
2073 | ; return 0; } | |
2074 | EOF | |
b27d2bd5 | 2075 | if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
76844337 RH |
2076 | rm -rf conftest* |
2077 | gcc_cv_c_have_stringify=yes | |
2078 | else | |
2079 | echo "configure: failed program was:" >&5 | |
2080 | cat conftest.$ac_ext >&5 | |
2081 | rm -rf conftest* | |
2082 | gcc_cv_c_have_stringify=no | |
2083 | fi | |
2084 | rm -f conftest* | |
2085 | fi | |
2086 | ||
2087 | echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6 | |
2088 | if test $gcc_cv_c_have_stringify = yes; then | |
2089 | cat >> confdefs.h <<\EOF | |
2090 | #define HAVE_CPP_STRINGIFY 1 | |
2091 | EOF | |
2092 | ||
2093 | fi | |
2094 | ||
956d6950 JL |
2095 | # Use <inttypes.h> only if it exists, |
2096 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
2097 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | |
b27d2bd5 | 2098 | echo "configure:2099: checking for inttypes.h" >&5 |
956d6950 JL |
2099 | if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2101 | else | |
2102 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2103 | #line 2104 "configure" |
956d6950 JL |
2104 | #include "confdefs.h" |
2105 | #include <sys/types.h> | |
2106 | #include <inttypes.h> | |
2107 | int main() { | |
2108 | intmax_t i = -1; | |
2109 | ; return 0; } | |
2110 | EOF | |
b27d2bd5 | 2111 | if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 | 2112 | rm -rf conftest* |
0056a9b5 | 2113 | gcc_cv_header_inttypes_h=yes |
956d6950 JL |
2114 | else |
2115 | echo "configure: failed program was:" >&5 | |
2116 | cat conftest.$ac_ext >&5 | |
2117 | rm -rf conftest* | |
2118 | gcc_cv_header_inttypes_h=no | |
2119 | fi | |
2120 | rm -f conftest* | |
2121 | fi | |
2122 | ||
2123 | echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6 | |
0056a9b5 KG |
2124 | if test $gcc_cv_header_inttypes_h = yes; then |
2125 | cat >> confdefs.h <<\EOF | |
2126 | #define HAVE_INTTYPES_H 1 | |
2127 | EOF | |
2128 | ||
2129 | fi | |
956d6950 | 2130 | |
76b4b31e | 2131 | for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 2132 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
54953b66 UD |
2133 | sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \ |
2134 | fputs_unlocked | |
956d6950 JL |
2135 | do |
2136 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 2137 | echo "configure:2138: checking for $ac_func" >&5 |
956d6950 JL |
2138 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2140 | else | |
2141 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2142 | #line 2143 "configure" |
956d6950 JL |
2143 | #include "confdefs.h" |
2144 | /* System header to define __stub macros and hopefully few prototypes, | |
2145 | which can conflict with char $ac_func(); below. */ | |
2146 | #include <assert.h> | |
2147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2148 | /* We use char because int might match the return type of a gcc2 | |
2149 | builtin and then its argument prototype would still apply. */ | |
2150 | char $ac_func(); | |
2151 | ||
2152 | int main() { | |
2153 | ||
2154 | /* The GNU C library defines this for functions which it implements | |
2155 | to always fail with ENOSYS. Some functions are actually named | |
2156 | something starting with __ and the normal name is an alias. */ | |
2157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2158 | choke me | |
2159 | #else | |
027ea2a7 | 2160 | $ac_func(); |
956d6950 JL |
2161 | #endif |
2162 | ||
2163 | ; return 0; } | |
2164 | EOF | |
b27d2bd5 | 2165 | if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
956d6950 JL |
2166 | rm -rf conftest* |
2167 | eval "ac_cv_func_$ac_func=yes" | |
2168 | else | |
2169 | echo "configure: failed program was:" >&5 | |
2170 | cat conftest.$ac_ext >&5 | |
2171 | rm -rf conftest* | |
2172 | eval "ac_cv_func_$ac_func=no" | |
2173 | fi | |
2174 | rm -f conftest* | |
2175 | fi | |
2176 | ||
2177 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2178 | echo "$ac_t""yes" 1>&6 | |
2179 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2180 | cat >> confdefs.h <<EOF | |
2181 | #define $ac_tr_func 1 | |
2182 | EOF | |
2183 | ||
2184 | else | |
2185 | echo "$ac_t""no" 1>&6 | |
2186 | fi | |
2187 | done | |
2188 | ||
6885fc87 | 2189 | |
0b9d02c6 JL |
2190 | # Make sure wchar_t is available |
2191 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
2192 | ||
0a4b6309 | 2193 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
b27d2bd5 | 2194 | echo "configure:2195: checking for vprintf" >&5 |
0a4b6309 RL |
2195 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2197 | else | |
2198 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2199 | #line 2200 "configure" |
0a4b6309 RL |
2200 | #include "confdefs.h" |
2201 | /* System header to define __stub macros and hopefully few prototypes, | |
2202 | which can conflict with char vprintf(); below. */ | |
2203 | #include <assert.h> | |
2204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2205 | /* We use char because int might match the return type of a gcc2 | |
2206 | builtin and then its argument prototype would still apply. */ | |
2207 | char vprintf(); | |
2208 | ||
2209 | int main() { | |
2210 | ||
2211 | /* The GNU C library defines this for functions which it implements | |
2212 | to always fail with ENOSYS. Some functions are actually named | |
2213 | something starting with __ and the normal name is an alias. */ | |
2214 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
2215 | choke me | |
2216 | #else | |
027ea2a7 | 2217 | vprintf(); |
0a4b6309 RL |
2218 | #endif |
2219 | ||
2220 | ; return 0; } | |
2221 | EOF | |
b27d2bd5 | 2222 | if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2223 | rm -rf conftest* |
2224 | eval "ac_cv_func_vprintf=yes" | |
2225 | else | |
2226 | echo "configure: failed program was:" >&5 | |
2227 | cat conftest.$ac_ext >&5 | |
2228 | rm -rf conftest* | |
2229 | eval "ac_cv_func_vprintf=no" | |
2230 | fi | |
2231 | rm -f conftest* | |
2232 | fi | |
2233 | ||
2234 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
2235 | echo "$ac_t""yes" 1>&6 | |
2236 | cat >> confdefs.h <<\EOF | |
2237 | #define HAVE_VPRINTF 1 | |
2238 | EOF | |
2239 | ||
2240 | else | |
2241 | echo "$ac_t""no" 1>&6 | |
2242 | fi | |
8fa1f09f | 2243 | |
0a4b6309 RL |
2244 | if test "$ac_cv_func_vprintf" != yes; then |
2245 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b27d2bd5 | 2246 | echo "configure:2247: checking for _doprnt" >&5 |
0a4b6309 RL |
2247 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2249 | else | |
2250 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2251 | #line 2252 "configure" |
0a4b6309 RL |
2252 | #include "confdefs.h" |
2253 | /* System header to define __stub macros and hopefully few prototypes, | |
2254 | which can conflict with char _doprnt(); below. */ | |
2255 | #include <assert.h> | |
2256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2257 | /* We use char because int might match the return type of a gcc2 | |
2258 | builtin and then its argument prototype would still apply. */ | |
2259 | char _doprnt(); | |
2260 | ||
2261 | int main() { | |
2262 | ||
2263 | /* The GNU C library defines this for functions which it implements | |
2264 | to always fail with ENOSYS. Some functions are actually named | |
2265 | something starting with __ and the normal name is an alias. */ | |
2266 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
2267 | choke me | |
2268 | #else | |
027ea2a7 | 2269 | _doprnt(); |
0a4b6309 RL |
2270 | #endif |
2271 | ||
2272 | ; return 0; } | |
2273 | EOF | |
b27d2bd5 | 2274 | if { (eval echo configure:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0a4b6309 RL |
2275 | rm -rf conftest* |
2276 | eval "ac_cv_func__doprnt=yes" | |
2277 | else | |
2278 | echo "configure: failed program was:" >&5 | |
2279 | cat conftest.$ac_ext >&5 | |
2280 | rm -rf conftest* | |
2281 | eval "ac_cv_func__doprnt=no" | |
2282 | fi | |
2283 | rm -f conftest* | |
2284 | fi | |
2285 | ||
2286 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
2287 | echo "$ac_t""yes" 1>&6 | |
2288 | cat >> confdefs.h <<\EOF | |
2289 | #define HAVE_DOPRNT 1 | |
2290 | EOF | |
2291 | ||
2292 | else | |
2293 | echo "$ac_t""no" 1>&6 | |
2294 | fi | |
2295 | ||
2296 | fi | |
2297 | ||
2298 | vfprintf= | |
2299 | doprint= | |
2300 | if test $ac_cv_func_vprintf != yes ; then | |
2301 | vfprintf=vfprintf.o | |
2302 | if test $ac_cv_func__doprnt != yes ; then | |
2303 | doprint=doprint.o | |
2304 | fi | |
2305 | fi | |
2306 | ||
2307 | ||
2308 | ||
2309 | echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 | |
b27d2bd5 | 2310 | echo "configure:2311: checking whether the printf functions support %p" >&5 |
0a4b6309 RL |
2311 | if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then |
2312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2313 | else | |
2314 | if test "$cross_compiling" = yes; then | |
2315 | gcc_cv_func_printf_ptr=no | |
2316 | else | |
2317 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2318 | #line 2319 "configure" |
0a4b6309 RL |
2319 | #include "confdefs.h" |
2320 | #include <stdio.h> | |
2321 | ||
2322 | main() | |
2323 | { | |
2324 | char buf[64]; | |
2325 | char *p = buf, *q = NULL; | |
2326 | sprintf(buf, "%p", p); | |
2327 | sscanf(buf, "%p", &q); | |
2328 | exit (p != q); | |
2329 | } | |
2330 | EOF | |
b27d2bd5 | 2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
0a4b6309 RL |
2332 | then |
2333 | gcc_cv_func_printf_ptr=yes | |
2334 | else | |
2335 | echo "configure: failed program was:" >&5 | |
2336 | cat conftest.$ac_ext >&5 | |
2337 | rm -fr conftest* | |
2338 | gcc_cv_func_printf_ptr=no | |
2339 | fi | |
2340 | rm -fr conftest* | |
2341 | fi | |
2342 | ||
2343 | rm -f core core.* *.core | |
2344 | fi | |
2345 | ||
2346 | echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6 | |
2347 | if test $gcc_cv_func_printf_ptr = yes ; then | |
2348 | cat >> confdefs.h <<\EOF | |
2349 | #define HAVE_PRINTF_PTR 1 | |
2350 | EOF | |
2351 | ||
2352 | fi | |
2353 | ||
b27d2bd5 MK |
2354 | |
2355 | case "${host}" in | |
2356 | *-*-uwin*) | |
2357 | # Under some versions of uwin, vfork is notoriously buggy and the test | |
2358 | # can hang configure; on other versions, vfork exists just as a stub. | |
2359 | # FIXME: This should be removed once vfork in uwin's runtime is fixed. | |
2360 | ac_cv_func_vfork_works=no | |
2361 | ;; | |
2362 | esac | |
c375c43b | 2363 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
b27d2bd5 | 2364 | echo "configure:2365: checking for pid_t" >&5 |
c375c43b KG |
2365 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
2366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2367 | else | |
2368 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2369 | #line 2370 "configure" |
c375c43b KG |
2370 | #include "confdefs.h" |
2371 | #include <sys/types.h> | |
2372 | #if STDC_HEADERS | |
2373 | #include <stdlib.h> | |
2374 | #include <stddef.h> | |
2375 | #endif | |
2376 | EOF | |
2377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 2378 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
c375c43b KG |
2379 | rm -rf conftest* |
2380 | ac_cv_type_pid_t=yes | |
2381 | else | |
2382 | rm -rf conftest* | |
2383 | ac_cv_type_pid_t=no | |
2384 | fi | |
2385 | rm -f conftest* | |
2386 | ||
2387 | fi | |
2388 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
2389 | if test $ac_cv_type_pid_t = no; then | |
2390 | cat >> confdefs.h <<\EOF | |
2391 | #define pid_t int | |
2392 | EOF | |
2393 | ||
2394 | fi | |
2395 | ||
2396 | ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
2397 | echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
b27d2bd5 | 2398 | echo "configure:2399: checking for vfork.h" >&5 |
c375c43b KG |
2399 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2401 | else | |
2402 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2403 | #line 2404 "configure" |
c375c43b KG |
2404 | #include "confdefs.h" |
2405 | #include <vfork.h> | |
2406 | EOF | |
2407 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 2408 | { (eval echo configure:2409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 2409 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c375c43b KG |
2410 | if test -z "$ac_err"; then |
2411 | rm -rf conftest* | |
2412 | eval "ac_cv_header_$ac_safe=yes" | |
2413 | else | |
2414 | echo "$ac_err" >&5 | |
2415 | echo "configure: failed program was:" >&5 | |
2416 | cat conftest.$ac_ext >&5 | |
2417 | rm -rf conftest* | |
2418 | eval "ac_cv_header_$ac_safe=no" | |
2419 | fi | |
2420 | rm -f conftest* | |
2421 | fi | |
2422 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2423 | echo "$ac_t""yes" 1>&6 | |
2424 | cat >> confdefs.h <<\EOF | |
2425 | #define HAVE_VFORK_H 1 | |
2426 | EOF | |
2427 | ||
2428 | else | |
2429 | echo "$ac_t""no" 1>&6 | |
2430 | fi | |
2431 | ||
2432 | echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
b27d2bd5 | 2433 | echo "configure:2434: checking for working vfork" >&5 |
c375c43b KG |
2434 | if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
2435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2436 | else | |
2437 | if test "$cross_compiling" = yes; then | |
2438 | echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
b27d2bd5 | 2439 | echo "configure:2440: checking for vfork" >&5 |
c375c43b KG |
2440 | if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
2441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2442 | else | |
2443 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2444 | #line 2445 "configure" |
c375c43b KG |
2445 | #include "confdefs.h" |
2446 | /* System header to define __stub macros and hopefully few prototypes, | |
2447 | which can conflict with char vfork(); below. */ | |
2448 | #include <assert.h> | |
2449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2450 | /* We use char because int might match the return type of a gcc2 | |
2451 | builtin and then its argument prototype would still apply. */ | |
2452 | char vfork(); | |
2453 | ||
2454 | int main() { | |
2455 | ||
2456 | /* The GNU C library defines this for functions which it implements | |
2457 | to always fail with ENOSYS. Some functions are actually named | |
2458 | something starting with __ and the normal name is an alias. */ | |
2459 | #if defined (__stub_vfork) || defined (__stub___vfork) | |
2460 | choke me | |
2461 | #else | |
027ea2a7 | 2462 | vfork(); |
c375c43b KG |
2463 | #endif |
2464 | ||
2465 | ; return 0; } | |
2466 | EOF | |
b27d2bd5 | 2467 | if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c375c43b KG |
2468 | rm -rf conftest* |
2469 | eval "ac_cv_func_vfork=yes" | |
2470 | else | |
2471 | echo "configure: failed program was:" >&5 | |
2472 | cat conftest.$ac_ext >&5 | |
2473 | rm -rf conftest* | |
2474 | eval "ac_cv_func_vfork=no" | |
2475 | fi | |
2476 | rm -f conftest* | |
2477 | fi | |
2478 | ||
2479 | if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
2480 | echo "$ac_t""yes" 1>&6 | |
2481 | : | |
2482 | else | |
2483 | echo "$ac_t""no" 1>&6 | |
2484 | fi | |
2485 | ||
2486 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
2487 | else | |
2488 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2489 | #line 2490 "configure" |
c375c43b KG |
2490 | #include "confdefs.h" |
2491 | /* Thanks to Paul Eggert for this test. */ | |
2492 | #include <stdio.h> | |
2493 | #include <sys/types.h> | |
2494 | #include <sys/stat.h> | |
2495 | #ifdef HAVE_UNISTD_H | |
2496 | #include <unistd.h> | |
2497 | #endif | |
2498 | #ifdef HAVE_VFORK_H | |
2499 | #include <vfork.h> | |
2500 | #endif | |
2501 | /* On some sparc systems, changes by the child to local and incoming | |
2502 | argument registers are propagated back to the parent. | |
2503 | The compiler is told about this with #include <vfork.h>, | |
2504 | but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
2505 | Test for this by using a static variable whose address | |
2506 | is put into a register that is clobbered by the vfork. */ | |
2507 | static | |
2508 | #ifdef __cplusplus | |
2509 | sparc_address_test (int arg) | |
2510 | #else | |
2511 | sparc_address_test (arg) int arg; | |
2512 | #endif | |
2513 | { | |
2514 | static pid_t child; | |
2515 | if (!child) { | |
2516 | child = vfork (); | |
2517 | if (child < 0) { | |
2518 | perror ("vfork"); | |
2519 | _exit(2); | |
2520 | } | |
2521 | if (!child) { | |
2522 | arg = getpid(); | |
2523 | write(-1, "", 0); | |
2524 | _exit (arg); | |
2525 | } | |
2526 | } | |
2527 | } | |
2528 | main() { | |
2529 | pid_t parent = getpid (); | |
2530 | pid_t child; | |
2531 | ||
2532 | sparc_address_test (); | |
2533 | ||
2534 | child = vfork (); | |
2535 | ||
2536 | if (child == 0) { | |
2537 | /* Here is another test for sparc vfork register problems. | |
2538 | This test uses lots of local variables, at least | |
2539 | as many local variables as main has allocated so far | |
2540 | including compiler temporaries. 4 locals are enough for | |
2541 | gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
2542 | A buggy compiler should reuse the register of parent | |
2543 | for one of the local variables, since it will think that | |
2544 | parent can't possibly be used any more in this routine. | |
2545 | Assigning to the local variable will thus munge parent | |
2546 | in the parent process. */ | |
2547 | pid_t | |
2548 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
2549 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
2550 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
2551 | use the same hardware register for all 8 local variables. */ | |
2552 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
2553 | || p != p5 || p != p6 || p != p7) | |
2554 | _exit(1); | |
2555 | ||
2556 | /* On some systems (e.g. IRIX 3.3), | |
2557 | vfork doesn't separate parent from child file descriptors. | |
2558 | If the child closes a descriptor before it execs or exits, | |
2559 | this munges the parent's descriptor as well. | |
2560 | Test for this by closing stdout in the child. */ | |
2561 | _exit(close(fileno(stdout)) != 0); | |
2562 | } else { | |
2563 | int status; | |
2564 | struct stat st; | |
2565 | ||
2566 | while (wait(&status) != child) | |
2567 | ; | |
2568 | exit( | |
2569 | /* Was there some problem with vforking? */ | |
2570 | child < 0 | |
2571 | ||
2572 | /* Did the child fail? (This shouldn't happen.) */ | |
2573 | || status | |
2574 | ||
2575 | /* Did the vfork/compiler bug occur? */ | |
2576 | || parent != getpid() | |
2577 | ||
2578 | /* Did the file descriptor bug occur? */ | |
2579 | || fstat(fileno(stdout), &st) != 0 | |
2580 | ); | |
2581 | } | |
2582 | } | |
2583 | EOF | |
b27d2bd5 | 2584 | if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c375c43b KG |
2585 | then |
2586 | ac_cv_func_vfork_works=yes | |
2587 | else | |
2588 | echo "configure: failed program was:" >&5 | |
2589 | cat conftest.$ac_ext >&5 | |
2590 | rm -fr conftest* | |
2591 | ac_cv_func_vfork_works=no | |
2592 | fi | |
2593 | rm -fr conftest* | |
2594 | fi | |
2595 | ||
2596 | fi | |
2597 | ||
2598 | echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
2599 | if test $ac_cv_func_vfork_works = no; then | |
2600 | cat >> confdefs.h <<\EOF | |
2601 | #define vfork fork | |
2602 | EOF | |
2603 | ||
2604 | fi | |
2605 | ||
0a4b6309 RL |
2606 | |
2607 | for ac_func in malloc realloc calloc free bcopy bzero bcmp \ | |
007e8d2a | 2608 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
0a4b6309 RL |
2609 | strsignal |
2610 | do | |
2611 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
b27d2bd5 | 2612 | echo "configure:2613: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2613 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2615 | else | |
2616 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2617 | #line 2618 "configure" |
0a4b6309 RL |
2618 | #include "confdefs.h" |
2619 | ||
2620 | #include <stdio.h> | |
2621 | #ifdef STRING_WITH_STRINGS | |
2622 | # include <string.h> | |
2623 | # include <strings.h> | |
2624 | #else | |
2625 | # ifdef HAVE_STRING_H | |
2626 | # include <string.h> | |
2627 | # else | |
2628 | # ifdef HAVE_STRINGS_H | |
2629 | # include <strings.h> | |
2630 | # endif | |
2631 | # endif | |
2632 | #endif | |
2633 | #ifdef HAVE_STDLIB_H | |
2634 | #include <stdlib.h> | |
2635 | #endif | |
2636 | #ifdef HAVE_UNISTD_H | |
2637 | #include <unistd.h> | |
2638 | #endif | |
2639 | #ifndef HAVE_RINDEX | |
2640 | #define rindex strrchr | |
2641 | #endif | |
2642 | #ifndef HAVE_INDEX | |
2643 | #define index strchr | |
2644 | #endif | |
2645 | ||
2646 | int main() { | |
2647 | char *(*pfn) = (char *(*)) $ac_func | |
2648 | ; return 0; } | |
2649 | EOF | |
b27d2bd5 | 2650 | if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2651 | rm -rf conftest* |
2652 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2653 | else | |
2654 | echo "configure: failed program was:" >&5 | |
2655 | cat conftest.$ac_ext >&5 | |
2656 | rm -rf conftest* | |
2657 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2658 | fi | |
2659 | rm -f conftest* | |
2660 | fi | |
2661 | ||
2662 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2663 | echo "$ac_t""yes" 1>&6 | |
2664 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2665 | cat >> confdefs.h <<EOF | |
2666 | #define $gcc_tr_decl 1 | |
2667 | EOF | |
2668 | ||
2669 | else | |
2670 | echo "$ac_t""no" 1>&6 | |
2671 | fi | |
2672 | ||
2673 | done | |
2674 | ||
2675 | ||
2676 | for ac_func in getrlimit setrlimit | |
2677 | do | |
2678 | echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 | |
b27d2bd5 | 2679 | echo "configure:2680: checking whether $ac_func must be declared" >&5 |
0a4b6309 RL |
2680 | if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then |
2681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2682 | else | |
2683 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 2684 | #line 2685 "configure" |
0a4b6309 | 2685 | #include "confdefs.h" |
8fa1f09f | 2686 | |
0a4b6309 RL |
2687 | #include <stdio.h> |
2688 | #ifdef STRING_WITH_STRINGS | |
2689 | # include <string.h> | |
2690 | # include <strings.h> | |
2691 | #else | |
2692 | # ifdef HAVE_STRING_H | |
2693 | # include <string.h> | |
2694 | # else | |
2695 | # ifdef HAVE_STRINGS_H | |
2696 | # include <strings.h> | |
2697 | # endif | |
2698 | # endif | |
2699 | #endif | |
2700 | #ifdef HAVE_STDLIB_H | |
2701 | #include <stdlib.h> | |
2702 | #endif | |
2703 | #ifdef HAVE_UNISTD_H | |
2704 | #include <unistd.h> | |
2705 | #endif | |
2706 | #ifndef HAVE_RINDEX | |
2707 | #define rindex strrchr | |
2708 | #endif | |
2709 | #ifndef HAVE_INDEX | |
2710 | #define index strchr | |
2711 | #endif | |
d2cabf16 KG |
2712 | #include <sys/types.h> |
2713 | #ifdef HAVE_SYS_RESOURCE_H | |
2714 | #include <sys/resource.h> | |
2715 | #endif | |
0a4b6309 RL |
2716 | |
2717 | int main() { | |
2718 | char *(*pfn) = (char *(*)) $ac_func | |
2719 | ; return 0; } | |
2720 | EOF | |
b27d2bd5 | 2721 | if { (eval echo configure:2722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0a4b6309 RL |
2722 | rm -rf conftest* |
2723 | eval "gcc_cv_decl_needed_$ac_func=no" | |
2724 | else | |
2725 | echo "configure: failed program was:" >&5 | |
2726 | cat conftest.$ac_ext >&5 | |
2727 | rm -rf conftest* | |
2728 | eval "gcc_cv_decl_needed_$ac_func=yes" | |
2729 | fi | |
2730 | rm -f conftest* | |
2731 | fi | |
2732 | ||
2733 | if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then | |
2734 | echo "$ac_t""yes" 1>&6 | |
2735 | gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2736 | cat >> confdefs.h <<EOF | |
2737 | #define $gcc_tr_decl 1 | |
2738 | EOF | |
2739 | ||
2740 | else | |
2741 | echo "$ac_t""no" 1>&6 | |
2742 | fi | |
2743 | ||
2744 | done | |
2745 | ||
956d6950 JL |
2746 | |
2747 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
b27d2bd5 | 2748 | echo "configure:2749: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
956d6950 JL |
2749 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a63d08e6 | 2751 | else |
956d6950 | 2752 | cat > conftest.$ac_ext <<EOF |
b27d2bd5 | 2753 | #line 2754 "configure" |
956d6950 JL |
2754 | #include "confdefs.h" |
2755 | #include <sys/types.h> | |
2756 | #include <signal.h> | |
2757 | /* NetBSD declares sys_siglist in unistd.h. */ | |
2758 | #ifdef HAVE_UNISTD_H | |
2759 | #include <unistd.h> | |
2760 | #endif | |
2761 | int main() { | |
2762 | char *msg = *(sys_siglist + 1); | |
2763 | ; return 0; } | |
2764 | EOF | |
b27d2bd5 | 2765 | if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
956d6950 JL |
2766 | rm -rf conftest* |
2767 | ac_cv_decl_sys_siglist=yes | |
2768 | else | |
2769 | echo "configure: failed program was:" >&5 | |
2770 | cat conftest.$ac_ext >&5 | |
2771 | rm -rf conftest* | |
2772 | ac_cv_decl_sys_siglist=no | |
2773 | fi | |
2774 | rm -f conftest* | |
2775 | fi | |
2776 | ||
2777 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2778 | if test $ac_cv_decl_sys_siglist = yes; then | |
2779 | cat >> confdefs.h <<\EOF | |
2780 | #define SYS_SIGLIST_DECLARED 1 | |
2781 | EOF | |
2782 | ||
a63d08e6 | 2783 | fi |
a63d08e6 JL |
2784 | |
2785 | ||
861bb6c1 JL |
2786 | # File extensions |
2787 | manext='.1' | |
2788 | objext='.o' | |
2789 | ||
2790 | ||
2791 | ||
2792 | build_xm_file= | |
f6cb0e63 | 2793 | build_xm_defines= |
861bb6c1 JL |
2794 | build_install_headers_dir=install-headers-tar |
2795 | build_exeext= | |
2796 | host_xm_file= | |
f6cb0e63 | 2797 | host_xm_defines= |
861bb6c1 JL |
2798 | host_xmake_file= |
2799 | host_truncate_target= | |
6e26218f | 2800 | host_exeext= |
861bb6c1 | 2801 | |
9fc9b82a L |
2802 | # It is relative to $prefix. |
2803 | cpp_install_dir= | |
2804 | ||
861bb6c1 JL |
2805 | # Decode the host machine, then the target machine. |
2806 | # For the host machine, we save the xm_file variable as host_xm_file; | |
2807 | # then we decode the target machine and forget everything else | |
2808 | # that came from the host machine. | |
2809 | for machine in $build $host $target; do | |
2810 | ||
2811 | out_file= | |
2812 | xmake_file= | |
2813 | tmake_file= | |
2814 | extra_headers= | |
2815 | extra_passes= | |
2816 | extra_parts= | |
2817 | extra_programs= | |
2818 | extra_objs= | |
2819 | extra_host_objs= | |
2820 | extra_gcc_objs= | |
f6cb0e63 | 2821 | xm_defines= |
861bb6c1 JL |
2822 | float_format= |
2823 | # Set this to force installation and use of collect2. | |
2824 | use_collect2= | |
2825 | # Set this to override the default target model. | |
2826 | target_cpu_default= | |
861bb6c1 | 2827 | # Set this to control which fixincludes program to use. |
75bffa71 | 2828 | if test x$fast_fixinc != xyes; then |
4b104d6e JL |
2829 | fixincludes=fixincludes |
2830 | else fixincludes=fixinc.sh ; fi | |
861bb6c1 JL |
2831 | # Set this to control how the header file directory is installed. |
2832 | install_headers_dir=install-headers-tar | |
2833 | # Set this to a non-empty list of args to pass to cpp if the target | |
2834 | # wants its .md file passed through cpp. | |
2835 | md_cppflags= | |
2836 | # Set this if directory names should be truncated to 14 characters. | |
2837 | truncate_target= | |
2838 | # Set this if gdb needs a dir command with `dirname $out_file` | |
2839 | gdb_needs_out_file_path= | |
2840 | # Set this if the build machine requires executables to have a | |
2841 | # file name suffix. | |
2842 | exeext= | |
a851212a JW |
2843 | # Set this to control which thread package will be used. |
2844 | thread_file= | |
df6faf79 JW |
2845 | # Reinitialize these from the flag values every loop pass, since some |
2846 | # configure entries modify them. | |
2847 | gas="$gas_flag" | |
2848 | gnu_ld="$gnu_ld_flag" | |
e445171e | 2849 | enable_threads=$enable_threads_flag |
861bb6c1 JL |
2850 | |
2851 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
2852 | # each machine entry. | |
2853 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
2854 | case $machine in | |
2855 | alpha*-*-*) | |
2856 | cpu_type=alpha | |
2857 | ;; | |
2858 | arm*-*-*) | |
2859 | cpu_type=arm | |
2860 | ;; | |
2861 | c*-convex-*) | |
2862 | cpu_type=convex | |
2863 | ;; | |
f6cb0e63 | 2864 | i[34567]86-*-*) |
861bb6c1 JL |
2865 | cpu_type=i386 |
2866 | ;; | |
2867 | hppa*-*-*) | |
2868 | cpu_type=pa | |
2869 | ;; | |
2870 | m68000-*-*) | |
2871 | cpu_type=m68k | |
2872 | ;; | |
2873 | mips*-*-*) | |
2874 | cpu_type=mips | |
2875 | ;; | |
2876 | powerpc*-*-*) | |
2877 | cpu_type=rs6000 | |
2878 | ;; | |
2879 | pyramid-*-*) | |
2880 | cpu_type=pyr | |
2881 | ;; | |
2882 | sparc*-*-*) | |
2883 | cpu_type=sparc | |
2884 | ;; | |
2885 | esac | |
2886 | ||
2887 | tm_file=${cpu_type}/${cpu_type}.h | |
2888 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
2889 | ||
1b4a979b | 2890 | # Common parts for linux-gnu and openbsd systems |
f6cb0e63 JL |
2891 | case $machine in |
2892 | *-*-linux-gnu*) | |
c7391272 | 2893 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
f6cb0e63 | 2894 | ;; |
1b4a979b ME |
2895 | *-*-openbsd*) |
2896 | tm_file=${cpu_type}/openbsd.h | |
2897 | # On OpenBSD systems, the headers are okay | |
2898 | fixincludes=Makefile.in | |
2899 | tmake_file="t-libc-ok t-openbsd" | |
2900 | # avoid surprises, always provide an xm-openbsd file | |
2901 | xm_file=${cpu_type}/xm-openbsd.h | |
2902 | if test x$enable_threads = xyes; then | |
2903 | thread_file='posix' | |
2904 | tmake_file="${tmake_file} t-openbsd-thread" | |
2905 | fi | |
2906 | ;; | |
f6cb0e63 JL |
2907 | esac |
2908 | ||
861bb6c1 JL |
2909 | case $machine in |
2910 | # Support site-specific machine types. | |
2911 | *local*) | |
2912 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
2913 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
2914 | xm_file=${cpu_type}/xm-$rest.h | |
2915 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 2916 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
861bb6c1 JL |
2917 | then xmake_file=${cpu_type}/x-$rest; \ |
2918 | else true; \ | |
2919 | fi | |
75bffa71 | 2920 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
861bb6c1 JL |
2921 | then tmake_file=${cpu_type}/t-$rest; \ |
2922 | else true; \ | |
2923 | fi | |
2924 | ;; | |
2925 | 1750a-*-*) | |
2926 | ;; | |
2927 | a29k-*-bsd* | a29k-*-sym1*) | |
2928 | tm_file="${tm_file} a29k/unix.h" | |
f6cb0e63 | 2929 | xm_defines=USG |
861bb6c1 JL |
2930 | xmake_file=a29k/x-unix |
2931 | use_collect2=yes | |
2932 | ;; | |
2933 | a29k-*-udi | a29k-*-coff) | |
2934 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
2935 | tmake_file=a29k/t-a29kbare | |
2936 | ;; | |
7cc34889 | 2937 | a29k-wrs-vxworks*) |
861bb6c1 JL |
2938 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
2939 | tmake_file=a29k/t-vx29k | |
2940 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 2941 | thread_file='vxworks' |
861bb6c1 JL |
2942 | ;; |
2943 | a29k-*-*) # Default a29k environment. | |
2944 | use_collect2=yes | |
2945 | ;; | |
2946 | alpha*-*-linux-gnuecoff*) | |
8983c716 | 2947 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
f6cb0e63 | 2948 | target_cpu_default="MASK_GAS" |
861bb6c1 JL |
2949 | gas=no |
2950 | xmake_file=none | |
861bb6c1 JL |
2951 | gas=yes gnu_ld=yes |
2952 | ;; | |
2601ebca | 2953 | alpha*-*-linux-gnulibc1*) |
9d654bba | 2954 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2955 | target_cpu_default="MASK_GAS" |
574badbc RH |
2956 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
2957 | extra_parts="crtbegin.o crtend.o" | |
9d654bba | 2958 | fixincludes=fixinc.wrap |
2601ebca | 2959 | xmake_file=none |
2601ebca | 2960 | gas=yes gnu_ld=yes |
75bffa71 | 2961 | if test x$enable_threads = xyes; then |
2601ebca JL |
2962 | thread_file='posix' |
2963 | fi | |
2964 | ;; | |
861bb6c1 | 2965 | alpha*-*-linux-gnu*) |
9d654bba | 2966 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
f6cb0e63 | 2967 | target_cpu_default="MASK_GAS" |
574badbc RH |
2968 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
2969 | extra_parts="crtbegin.o crtend.o" | |
861bb6c1 JL |
2970 | xmake_file=none |
2971 | fixincludes=Makefile.in | |
861bb6c1 | 2972 | gas=yes gnu_ld=yes |
75bffa71 | 2973 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
2974 | thread_file='posix' |
2975 | fi | |
2976 | ;; | |
9d654bba | 2977 | alpha*-*-netbsd*) |
66953094 | 2978 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" |
9d654bba RH |
2979 | target_cpu_default="MASK_GAS" |
2980 | tmake_file="alpha/t-crtbe" | |
2981 | extra_parts="crtbegin.o crtend.o" | |
2982 | xmake_file=none | |
2983 | fixincludes=fixinc.wrap | |
2984 | gas=yes gnu_ld=yes | |
2985 | ;; | |
1b4a979b ME |
2986 | |
2987 | alpha*-*-openbsd*) | |
2988 | # default x-alpha is only appropriate for dec-osf. | |
2989 | target_cpu_default="MASK_GAS" | |
2990 | xmake_file=none | |
2991 | ;; | |
9d654bba | 2992 | |
e9a25f70 | 2993 | alpha*-dec-osf*) |
75bffa71 | 2994 | if test x$stabs = xyes |
861bb6c1 JL |
2995 | then |
2996 | tm_file="${tm_file} dbx.h" | |
2997 | fi | |
75bffa71 | 2998 | if test x$gas != xyes |
861bb6c1 JL |
2999 | then |
3000 | extra_passes="mips-tfile mips-tdump" | |
3001 | fi | |
861bb6c1 | 3002 | use_collect2=yes |
861bb6c1 | 3003 | case $machine in |
6ecd4e53 | 3004 | *-*-osf1*) |
b0435cf4 | 3005 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 JL |
3006 | ;; |
3007 | *-*-osf[23]*) | |
b0435cf4 | 3008 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
3009 | ;; |
3010 | *-*-osf4*) | |
b0435cf4 | 3011 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
3012 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
3013 | # a broken tar, so we use cpio instead. | |
861bb6c1 JL |
3014 | install_headers_dir=install-headers-cpio |
3015 | ;; | |
3016 | esac | |
e9a25f70 JL |
3017 | case $machine in |
3018 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
3019 | target_cpu_default=MASK_SUPPORT_ARCH | |
3020 | ;; | |
3021 | esac | |
861bb6c1 | 3022 | ;; |
9ec36da5 JL |
3023 | alpha*-*-vxworks*) |
3024 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
3025 | if x$gas != xyes | |
3026 | then | |
3027 | extra_passes="mips-tfile mips-tdump" | |
3028 | fi | |
3029 | use_collect2=yes | |
3030 | ;; | |
b0435cf4 | 3031 | alpha*-*-winnt*) |
861bb6c1 | 3032 | tm_file="${tm_file} alpha/win-nt.h" |
861bb6c1 JL |
3033 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
3034 | tmake_file=t-libc-ok | |
3035 | xmake_file=winnt/x-winnt | |
3036 | extra_host_objs=oldnames.o | |
3037 | extra_gcc_objs="spawnv.o oldnames.o" | |
3038 | fixincludes=fixinc.winnt | |
75bffa71 | 3039 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3040 | then |
3041 | extra_programs=ld.exe | |
3042 | fi | |
75bffa71 | 3043 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3044 | thread_file='win32' |
3045 | fi | |
3046 | ;; | |
3047 | alpha*-dec-vms*) | |
3048 | tm_file=alpha/vms.h | |
3049 | xm_file="${xm_file} alpha/xm-vms.h" | |
3050 | tmake_file=alpha/t-vms | |
3051 | fixincludes=Makefile.in | |
3052 | ;; | |
66ed0683 JL |
3053 | arc-*-elf*) |
3054 | extra_parts="crtinit.o crtfini.o" | |
3055 | ;; | |
861bb6c1 JL |
3056 | arm-*-coff* | armel-*-coff*) |
3057 | tm_file=arm/coff.h | |
3058 | tmake_file=arm/t-bare | |
3059 | ;; | |
3060 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
3061 | tm_file=arm/riscix1-1.h | |
3062 | use_collect2=yes | |
3063 | ;; | |
3064 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 3065 | if test x$gas = xyes |
861bb6c1 JL |
3066 | then |
3067 | tm_file=arm/rix-gas.h | |
3068 | else | |
3069 | tm_file=arm/riscix.h | |
3070 | fi | |
3071 | xmake_file=arm/x-riscix | |
3072 | tmake_file=arm/t-riscix | |
3073 | use_collect2=yes | |
3074 | ;; | |
3075 | arm-semi-aout | armel-semi-aout) | |
3076 | tm_file=arm/semi.h | |
3077 | tmake_file=arm/t-semi | |
3078 | fixincludes=Makefile.in # There is nothing to fix | |
3079 | ;; | |
3080 | arm-semi-aof | armel-semi-aof) | |
3081 | tm_file=arm/semiaof.h | |
3082 | tmake_file=arm/t-semiaof | |
3083 | fixincludes=Makefile.in # There is nothing to fix | |
3084 | ;; | |
58600d24 | 3085 | arm*-*-netbsd*) |
861bb6c1 | 3086 | tm_file=arm/netbsd.h |
641d4216 | 3087 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 3088 | tmake_file="t-netbsd arm/t-netbsd" |
be1ed94f | 3089 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3090 | fixincludes=fixinc.wrap |
861bb6c1 | 3091 | ;; |
b355a481 | 3092 | arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out |
861bb6c1 | 3093 | cpu_type=arm |
861bb6c1 | 3094 | xmake_file=x-linux |
b355a481 | 3095 | tm_file=arm/linux-aout.h |
861bb6c1 JL |
3096 | tmake_file=arm/t-linux |
3097 | fixincludes=Makefile.in | |
861bb6c1 JL |
3098 | gnu_ld=yes |
3099 | ;; | |
b355a481 NC |
3100 | arm*-*-linux-gnu*) # ARM GNU/Linux with ELF |
3101 | xm_file=arm/xm-linux.h | |
3102 | xmake_file=x-linux | |
3103 | case $machine in | |
3104 | armv2*-*-*) | |
3105 | tm_file=arm/linux-elf26.h | |
3106 | ;; | |
3107 | *) | |
3108 | tm_file=arm/linux-elf.h | |
3109 | ;; | |
3110 | esac | |
3111 | tmake_file="t-linux arm/t-linux" | |
3112 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
3113 | fixincludes=Makefile.in # Nothing to fix | |
3114 | gnu_ld=yes | |
3115 | ;; | |
3116 | arm*-*-aout) | |
861bb6c1 | 3117 | tm_file=arm/aout.h |
e9a25f70 | 3118 | tmake_file=arm/t-bare |
861bb6c1 | 3119 | ;; |
e6592fff | 3120 | arm*-*-ecos-elf) |
54953b66 UD |
3121 | tm_file=arm/ecos-elf.h |
3122 | tmake_file=arm/t-elf | |
3123 | ;; | |
b355a481 NC |
3124 | arm*-*-elf) |
3125 | tm_file=arm/unknown-elf.h | |
3126 | tmake_file=arm/t-arm-elf | |
3127 | ;; | |
cbca921c CM |
3128 | arm*-*-oabi) |
3129 | tm_file=arm/unknown-elf-oabi.h | |
3130 | tmake_file=arm/t-arm-elf | |
3131 | ;; | |
861bb6c1 JL |
3132 | c1-convex-*) # Convex C1 |
3133 | target_cpu_default=1 | |
3134 | use_collect2=yes | |
3135 | fixincludes=Makefile.in | |
3136 | ;; | |
3137 | c2-convex-*) # Convex C2 | |
3138 | target_cpu_default=2 | |
3139 | use_collect2=yes | |
3140 | fixincludes=Makefile.in | |
3141 | ;; | |
3142 | c32-convex-*) | |
3143 | target_cpu_default=4 | |
3144 | use_collect2=yes | |
3145 | fixincludes=Makefile.in | |
3146 | ;; | |
3147 | c34-convex-*) | |
3148 | target_cpu_default=8 | |
3149 | use_collect2=yes | |
3150 | fixincludes=Makefile.in | |
3151 | ;; | |
3152 | c38-convex-*) | |
3153 | target_cpu_default=16 | |
3154 | use_collect2=yes | |
3155 | fixincludes=Makefile.in | |
3156 | ;; | |
62616695 MH |
3157 | c4x-*) |
3158 | cpu_type=c4x | |
3159 | tmake_file=c4x/t-c4x | |
3160 | ;; | |
861bb6c1 JL |
3161 | clipper-intergraph-clix*) |
3162 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
3163 | xm_file=clipper/xm-clix.h | |
3164 | xmake_file=clipper/x-clix | |
3165 | extra_headers=va-clipper.h | |
3166 | extra_parts="crtbegin.o crtend.o" | |
3167 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3168 | ;; |
3169 | dsp16xx-*) | |
3170 | ;; | |
3171 | elxsi-elxsi-*) | |
3172 | use_collect2=yes | |
3173 | ;; | |
3174 | # This hasn't been upgraded to GCC 2. | |
3175 | # fx80-alliant-*) # Alliant FX/80 | |
3176 | # ;; | |
3177 | h8300-*-*) | |
3178 | float_format=i32 | |
3179 | ;; | |
1b4a979b ME |
3180 | hppa*-*-openbsd*) |
3181 | target_cpu_default="MASK_SNAKE" | |
4525d757 | 3182 | tmake_file=pa/t-openbsd |
1b4a979b | 3183 | ;; |
861bb6c1 JL |
3184 | hppa1.1-*-pro*) |
3185 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
3186 | xm_file=pa/xm-papro.h | |
3187 | tmake_file=pa/t-pro | |
3188 | ;; | |
3189 | hppa1.1-*-osf*) | |
3723cad9 | 3190 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3191 | tm_file="${tm_file} pa/pa-osf.h" |
3192 | use_collect2=yes | |
3193 | fixincludes=Makefile.in | |
3194 | ;; | |
3195 | hppa1.1-*-rtems*) | |
3196 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
3197 | xm_file=pa/xm-papro.h | |
3198 | tmake_file=pa/t-pro | |
3199 | ;; | |
3200 | hppa1.0-*-osf*) | |
3201 | tm_file="${tm_file} pa/pa-osf.h" | |
3202 | use_collect2=yes | |
3203 | fixincludes=Makefile.in | |
3204 | ;; | |
3205 | hppa1.1-*-bsd*) | |
3723cad9 | 3206 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3207 | use_collect2=yes |
3208 | fixincludes=Makefile.in | |
3209 | ;; | |
3210 | hppa1.0-*-bsd*) | |
3211 | use_collect2=yes | |
3212 | fixincludes=Makefile.in | |
3213 | ;; | |
3214 | hppa1.0-*-hpux7*) | |
3215 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
3216 | xm_file=pa/xm-pahpux.h | |
3217 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3218 | if test x$gas = xyes |
861bb6c1 JL |
3219 | then |
3220 | tm_file="${tm_file} pa/gas.h" | |
3221 | fi | |
861bb6c1 JL |
3222 | install_headers_dir=install-headers-cpio |
3223 | use_collect2=yes | |
3224 | ;; | |
3225 | hppa1.0-*-hpux8.0[0-2]*) | |
3226 | tm_file="${tm_file} pa/pa-hpux.h" | |
3227 | xm_file=pa/xm-pahpux.h | |
3228 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3229 | if test x$gas = xyes |
861bb6c1 JL |
3230 | then |
3231 | tm_file="${tm_file} pa/pa-gas.h" | |
3232 | else | |
3233 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3234 | fi | |
861bb6c1 JL |
3235 | install_headers_dir=install-headers-cpio |
3236 | use_collect2=yes | |
3237 | ;; | |
3238 | hppa1.1-*-hpux8.0[0-2]*) | |
3723cad9 | 3239 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3240 | tm_file="${tm_file} pa/pa-hpux.h" |
3241 | xm_file=pa/xm-pahpux.h | |
3242 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3243 | if test x$gas = xyes |
861bb6c1 JL |
3244 | then |
3245 | tm_file="${tm_file} pa/pa-gas.h" | |
3246 | else | |
3247 | tm_file="pa/pa-oldas.h ${tm_file}" | |
3248 | fi | |
861bb6c1 JL |
3249 | install_headers_dir=install-headers-cpio |
3250 | use_collect2=yes | |
3251 | ;; | |
3252 | hppa1.1-*-hpux8*) | |
3723cad9 | 3253 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3254 | tm_file="${tm_file} pa/pa-hpux.h" |
3255 | xm_file=pa/xm-pahpux.h | |
3256 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3257 | if test x$gas = xyes |
861bb6c1 JL |
3258 | then |
3259 | tm_file="${tm_file} pa/pa-gas.h" | |
3260 | fi | |
861bb6c1 JL |
3261 | install_headers_dir=install-headers-cpio |
3262 | use_collect2=yes | |
3263 | ;; | |
3264 | hppa1.0-*-hpux8*) | |
3265 | tm_file="${tm_file} pa/pa-hpux.h" | |
3266 | xm_file=pa/xm-pahpux.h | |
3267 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3268 | if test x$gas = xyes |
861bb6c1 JL |
3269 | then |
3270 | tm_file="${tm_file} pa/pa-gas.h" | |
3271 | fi | |
861bb6c1 JL |
3272 | install_headers_dir=install-headers-cpio |
3273 | use_collect2=yes | |
3274 | ;; | |
18cae839 | 3275 | hppa1.1-*-hpux10* | hppa2*-*-hpux10*) |
3723cad9 | 3276 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3277 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" |
3278 | xm_file=pa/xm-pahpux.h | |
3279 | xmake_file=pa/x-pa-hpux | |
f24af81b | 3280 | tmake_file=pa/t-pa |
75bffa71 | 3281 | if test x$gas = xyes |
861bb6c1 JL |
3282 | then |
3283 | tm_file="${tm_file} pa/pa-gas.h" | |
3284 | fi | |
75bffa71 | 3285 | if test x$enable_threads = x; then |
f24af81b TT |
3286 | enable_threads=$have_pthread_h |
3287 | fi | |
75bffa71 | 3288 | if test x$enable_threads = xyes; then |
f24af81b TT |
3289 | thread_file='dce' |
3290 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3291 | fi | |
861bb6c1 JL |
3292 | install_headers_dir=install-headers-cpio |
3293 | use_collect2=yes | |
3294 | ;; | |
3295 | hppa1.0-*-hpux10*) | |
3296 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
3297 | xm_file=pa/xm-pahpux.h | |
3298 | xmake_file=pa/x-pa-hpux | |
661c7909 | 3299 | tmake_file=pa/t-pa |
75bffa71 | 3300 | if test x$gas = xyes |
861bb6c1 JL |
3301 | then |
3302 | tm_file="${tm_file} pa/pa-gas.h" | |
3303 | fi | |
75bffa71 | 3304 | if test x$enable_threads = x; then |
d005a5a4 JL |
3305 | enable_threads=$have_pthread_h |
3306 | fi | |
75bffa71 | 3307 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
3308 | thread_file='dce' |
3309 | tmake_file="${tmake_file} pa/t-dce-thr" | |
3310 | fi | |
861bb6c1 JL |
3311 | install_headers_dir=install-headers-cpio |
3312 | use_collect2=yes | |
3313 | ;; | |
18cae839 | 3314 | hppa1.1-*-hpux* | hppa2*-*-hpux*) |
3723cad9 | 3315 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3316 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" |
3317 | xm_file=pa/xm-pahpux.h | |
3318 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3319 | if test x$gas = xyes |
861bb6c1 JL |
3320 | then |
3321 | tm_file="${tm_file} pa/pa-gas.h" | |
3322 | fi | |
861bb6c1 JL |
3323 | install_headers_dir=install-headers-cpio |
3324 | use_collect2=yes | |
3325 | ;; | |
3326 | hppa1.0-*-hpux*) | |
3327 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
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/pa-gas.h" | |
3333 | fi | |
861bb6c1 JL |
3334 | install_headers_dir=install-headers-cpio |
3335 | use_collect2=yes | |
3336 | ;; | |
18cae839 | 3337 | hppa1.1-*-hiux* | hppa2*-*-hiux*) |
3723cad9 | 3338 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3339 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" |
3340 | xm_file=pa/xm-pahpux.h | |
3341 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3342 | if test x$gas = xyes |
861bb6c1 JL |
3343 | then |
3344 | tm_file="${tm_file} pa/pa-gas.h" | |
3345 | fi | |
861bb6c1 JL |
3346 | install_headers_dir=install-headers-cpio |
3347 | use_collect2=yes | |
3348 | ;; | |
3349 | hppa1.0-*-hiux*) | |
3350 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
3351 | xm_file=pa/xm-pahpux.h | |
3352 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 3353 | if test x$gas = xyes |
861bb6c1 JL |
3354 | then |
3355 | tm_file="${tm_file} pa/pa-gas.h" | |
3356 | fi | |
861bb6c1 JL |
3357 | install_headers_dir=install-headers-cpio |
3358 | use_collect2=yes | |
3359 | ;; | |
3360 | hppa*-*-lites*) | |
3723cad9 | 3361 | target_cpu_default="MASK_SNAKE" |
861bb6c1 JL |
3362 | use_collect2=yes |
3363 | fixincludes=Makefile.in | |
3364 | ;; | |
3365 | i370-*-mvs*) | |
3366 | ;; | |
f6cb0e63 | 3367 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX |
75bffa71 | 3368 | if test x$gas = xyes |
861bb6c1 JL |
3369 | then |
3370 | tm_file=i386/aix386.h | |
3371 | extra_parts="crtbegin.o crtend.o" | |
3372 | tmake_file=i386/t-crtstuff | |
3373 | else | |
3374 | tm_file=i386/aix386ng.h | |
3375 | use_collect2=yes | |
3376 | fi | |
f6cb0e63 JL |
3377 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
3378 | xm_defines=USG | |
861bb6c1 | 3379 | xmake_file=i386/x-aix |
861bb6c1 | 3380 | ;; |
75bffa71 | 3381 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 |
f6cb0e63 JL |
3382 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
3383 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3384 | xmake_file=i386/x-ncr3000 |
75bffa71 | 3385 | if test x$stabs = xyes -a x$gas = xyes |
861bb6c1 JL |
3386 | then |
3387 | tm_file=i386/sysv4gdb.h | |
3388 | else | |
3389 | tm_file=i386/sysv4.h | |
3390 | fi | |
3391 | extra_parts="crtbegin.o crtend.o" | |
3392 | tmake_file=i386/t-crtpic | |
3393 | ;; | |
f6cb0e63 | 3394 | i[34567]86-next-*) |
861bb6c1 JL |
3395 | tm_file=i386/next.h |
3396 | xm_file=i386/xm-next.h | |
3397 | tmake_file=i386/t-next | |
3398 | xmake_file=i386/x-next | |
3399 | extra_objs=nextstep.o | |
750930c1 | 3400 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 3401 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3402 | thread_file='mach' |
3403 | fi | |
3404 | ;; | |
f6cb0e63 | 3405 | i[34567]86-sequent-bsd*) # 80386 from Sequent |
861bb6c1 | 3406 | use_collect2=yes |
75bffa71 | 3407 | if test x$gas = xyes |
861bb6c1 JL |
3408 | then |
3409 | tm_file=i386/seq-gas.h | |
3410 | else | |
3411 | tm_file=i386/sequent.h | |
3412 | fi | |
3413 | ;; | |
f6cb0e63 JL |
3414 | i[34567]86-sequent-ptx1*) |
3415 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3416 | xmake_file=i386/x-sysv3 |
3417 | tm_file=i386/seq-sysv3.h | |
3418 | tmake_file=i386/t-crtstuff | |
3419 | fixincludes=fixinc.ptx | |
3420 | extra_parts="crtbegin.o crtend.o" | |
3421 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3422 | ;; |
f6cb0e63 JL |
3423 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) |
3424 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3425 | xmake_file=i386/x-sysv3 |
3426 | tm_file=i386/seq2-sysv3.h | |
3427 | tmake_file=i386/t-crtstuff | |
3428 | extra_parts="crtbegin.o crtend.o" | |
3429 | fixincludes=fixinc.ptx | |
3430 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3431 | ;; |
f6cb0e63 JL |
3432 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) |
3433 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3434 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 JL |
3435 | xmake_file=x-svr4 |
3436 | tm_file=i386/ptx4-i.h | |
3437 | tmake_file=t-svr4 | |
3438 | extra_parts="crtbegin.o crtend.o" | |
3439 | fixincludes=fixinc.ptx | |
3440 | install_headers_dir=install-headers-cpio | |
861bb6c1 JL |
3441 | ;; |
3442 | i386-sun-sunos*) # Sun i386 roadrunner | |
f6cb0e63 | 3443 | xm_defines=USG |
861bb6c1 JL |
3444 | tm_file=i386/sun.h |
3445 | use_collect2=yes | |
3446 | ;; | |
62db76ee | 3447 | i[34567]86-wrs-vxworks*) |
9e89df50 MS |
3448 | tm_file=i386/vxi386.h |
3449 | tmake_file=i386/t-i386bare | |
3450 | ;; | |
f6cb0e63 | 3451 | i[34567]86-*-aout*) |
861bb6c1 JL |
3452 | tm_file=i386/i386-aout.h |
3453 | tmake_file=i386/t-i386bare | |
3454 | ;; | |
f6cb0e63 | 3455 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) |
861bb6c1 | 3456 | tm_file=i386/bsd386.h |
861bb6c1 JL |
3457 | # tmake_file=t-libc-ok |
3458 | ;; | |
f6cb0e63 | 3459 | i[34567]86-*-bsd*) |
861bb6c1 | 3460 | tm_file=i386/386bsd.h |
861bb6c1 JL |
3461 | # tmake_file=t-libc-ok |
3462 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
3463 | # use_collect2=yes | |
3464 | ;; | |
f6cb0e63 | 3465 | i[34567]86-*-freebsdelf*) |
861bb6c1 | 3466 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
be1ed94f | 3467 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 3468 | fixincludes=fixinc.wrap |
56830143 | 3469 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
861bb6c1 JL |
3470 | tmake_file=i386/t-freebsd |
3471 | gas=yes | |
3472 | gnu_ld=yes | |
3473 | stabs=yes | |
3474 | ;; | |
f6cb0e63 | 3475 | i[34567]86-*-freebsd*) |
861bb6c1 | 3476 | tm_file=i386/freebsd.h |
ca55abae | 3477 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 3478 | fixincludes=fixinc.wrap |
861bb6c1 JL |
3479 | tmake_file=i386/t-freebsd |
3480 | ;; | |
1b4a979b | 3481 | i[34567]86-*-netbsd*) |
861bb6c1 | 3482 | tm_file=i386/netbsd.h |
be1ed94f | 3483 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3484 | fixincludes=fixinc.wrap |
861bb6c1 JL |
3485 | tmake_file=t-netbsd |
3486 | ;; | |
1b4a979b ME |
3487 | i[34567]86-*-openbsd*) |
3488 | # Remove when the math emulator is fixed | |
3489 | target_cpu_default="MASK_NO_FANCY_MATH_387" | |
3490 | # we need collect2 until our bug is fixed... | |
3491 | use_collect2=yes | |
3492 | ;; | |
f6cb0e63 | 3493 | i[34567]86-*-coff*) |
861bb6c1 JL |
3494 | tm_file=i386/i386-coff.h |
3495 | tmake_file=i386/t-i386bare | |
3496 | ;; | |
f6cb0e63 JL |
3497 | i[34567]86-*-isc*) # 80386 running ISC system |
3498 | xm_file="${xm_file} i386/xm-isc.h" | |
3499 | xm_defines="USG SVR3" | |
861bb6c1 | 3500 | case $machine in |
f6cb0e63 | 3501 | i[34567]86-*-isc[34]*) |
861bb6c1 JL |
3502 | xmake_file=i386/x-isc3 |
3503 | ;; | |
3504 | *) | |
3505 | xmake_file=i386/x-isc | |
3506 | ;; | |
3507 | esac | |
75bffa71 | 3508 | if test x$gas = xyes -a x$stabs = xyes |
861bb6c1 JL |
3509 | then |
3510 | tm_file=i386/iscdbx.h | |
3511 | tmake_file=i386/t-svr3dbx | |
3512 | extra_parts="svr3.ifile svr3z.ifile" | |
3513 | else | |
3514 | tm_file=i386/isccoff.h | |
3515 | tmake_file=i386/t-crtstuff | |
3516 | extra_parts="crtbegin.o crtend.o" | |
3517 | fi | |
3518 | install_headers_dir=install-headers-cpio | |
861bb6c1 | 3519 | ;; |
f6cb0e63 | 3520 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux |
f6cb0e63 | 3521 | # pre BFD linkers |
861bb6c1 JL |
3522 | xmake_file=x-linux-aout |
3523 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3524 | tm_file=i386/linux-oldld.h | |
6d567568 | 3525 | fixincludes=fixinc.x86-linux-gnu |
861bb6c1 | 3526 | gnu_ld=yes |
af39d8f5 | 3527 | float_format=i386 |
861bb6c1 | 3528 | ;; |
f6cb0e63 | 3529 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux |
861bb6c1 JL |
3530 | xmake_file=x-linux-aout |
3531 | tmake_file="t-linux-aout i386/t-crtstuff" | |
3532 | tm_file=i386/linux-aout.h | |
6d567568 | 3533 | fixincludes=fixinc.x86-linux-gnu |
861bb6c1 | 3534 | gnu_ld=yes |
af39d8f5 | 3535 | float_format=i386 |
861bb6c1 | 3536 | ;; |
f6cb0e63 | 3537 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3538 | # GNU/Linux C library 5 |
3539 | xmake_file=x-linux | |
3540 | tm_file=i386/linux.h | |
861bb6c1 JL |
3541 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
3542 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
6d567568 | 3543 | fixincludes=fixinc.x86-linux-gnu |
861bb6c1 | 3544 | gnu_ld=yes |
af39d8f5 | 3545 | float_format=i386 |
75bffa71 | 3546 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3547 | thread_file='single' |
3548 | fi | |
3549 | ;; | |
f6cb0e63 | 3550 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux |
f6cb0e63 JL |
3551 | # aka GNU/Linux C library 6 |
3552 | xmake_file=x-linux | |
861bb6c1 JL |
3553 | tm_file=i386/linux.h |
3554 | tmake_file="t-linux i386/t-crtstuff" | |
3555 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
6d567568 | 3556 | fixincludes=fixinc.x86-linux-gnu |
861bb6c1 | 3557 | gnu_ld=yes |
af39d8f5 | 3558 | float_format=i386 |
75bffa71 | 3559 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3560 | thread_file='posix' |
3561 | fi | |
3562 | ;; | |
f6cb0e63 | 3563 | i[34567]86-*-gnu*) |
cd9e5e7c | 3564 | float_format=i386 |
f6cb0e63 JL |
3565 | ;; |
3566 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
3567 | xm_file=i386/xm-go32.h | |
3568 | tm_file=i386/go32.h | |
3569 | tmake_file=i386/t-go32 | |
861bb6c1 | 3570 | ;; |
f6cb0e63 | 3571 | i[34567]86-pc-msdosdjgpp*) |
861bb6c1 JL |
3572 | xm_file=i386/xm-go32.h |
3573 | tm_file=i386/go32.h | |
3574 | tmake_file=i386/t-go32 | |
90e6a802 | 3575 | xmake_file=i386/x-go32 |
f6cb0e63 JL |
3576 | gnu_ld=yes |
3577 | gas=yes | |
dedcc399 ME |
3578 | exeext=.exe |
3579 | case $host in | |
3580 | *pc-msdosdjgpp*) | |
3581 | target_alias=djgpp | |
3582 | ;; | |
3583 | esac | |
861bb6c1 | 3584 | ;; |
f6cb0e63 | 3585 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) |
861bb6c1 JL |
3586 | tm_file=i386/moss.h |
3587 | tmake_file=t-libc-ok | |
3588 | fixincludes=Makefile.in | |
3589 | gnu_ld=yes | |
3590 | gas=yes | |
3591 | ;; | |
f6cb0e63 | 3592 | i[34567]86-*-lynxos*) |
75bffa71 | 3593 | if test x$gas = xyes |
861bb6c1 JL |
3594 | then |
3595 | tm_file=i386/lynx.h | |
3596 | else | |
3597 | tm_file=i386/lynx-ng.h | |
3598 | fi | |
3599 | xm_file=i386/xm-lynx.h | |
3600 | tmake_file=i386/t-i386bare | |
3601 | xmake_file=x-lynx | |
3602 | ;; | |
f6cb0e63 | 3603 | i[34567]86-*-mach*) |
861bb6c1 JL |
3604 | tm_file=i386/mach.h |
3605 | # tmake_file=t-libc-ok | |
3606 | use_collect2=yes | |
3607 | ;; | |
f6cb0e63 | 3608 | i[34567]86-*-osfrose*) # 386 using OSF/rose |
75bffa71 | 3609 | if test x$elf = xyes |
861bb6c1 JL |
3610 | then |
3611 | tm_file=i386/osfelf.h | |
3612 | use_collect2= | |
3613 | else | |
3614 | tm_file=i386/osfrose.h | |
3615 | use_collect2=yes | |
3616 | fi | |
f6cb0e63 | 3617 | xm_file="i386/xm-osf.h ${xm_file}" |
861bb6c1 JL |
3618 | xmake_file=i386/x-osfrose |
3619 | tmake_file=i386/t-osf | |
3620 | extra_objs=halfpic.o | |
3621 | ;; | |
f6cb0e63 | 3622 | i[34567]86-go32-rtems*) |
861bb6c1 JL |
3623 | cpu_type=i386 |
3624 | xm_file=i386/xm-go32.h | |
3625 | tm_file=i386/go32-rtems.h | |
3626 | tmake_file="i386/t-go32 t-rtems" | |
3627 | ;; | |
f5963e61 JL |
3628 | i[34567]86-*-rtemself*) |
3629 | cpu_type=i386 | |
3630 | tm_file=i386/rtemself.h | |
3631 | tmake_file="i386/t-i386bare t-rtems" | |
3632 | ;; | |
f6cb0e63 | 3633 | i[34567]86-*-rtems*) |
861bb6c1 JL |
3634 | cpu_type=i386 |
3635 | tm_file=i386/rtems.h | |
3636 | tmake_file="i386/t-i386bare t-rtems" | |
3637 | ;; | |
f6cb0e63 JL |
3638 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 |
3639 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" | |
3640 | xm_defines="USG SVR3" | |
861bb6c1 JL |
3641 | xmake_file=i386/x-sco5 |
3642 | fixincludes=fixinc.sco | |
f6857708 | 3643 | install_headers_dir=install-headers-cpio |
861bb6c1 | 3644 | tm_file=i386/sco5.h |
75bffa71 | 3645 | if test x$gas = xyes |
44bb0e93 RL |
3646 | then |
3647 | tm_file="i386/sco5gas.h ${tm_file}" | |
3648 | tmake_file=i386/t-sco5gas | |
3649 | else | |
3650 | tmake_file=i386/t-sco5 | |
3651 | fi | |
42902a72 | 3652 | extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" |
861bb6c1 | 3653 | ;; |
f6cb0e63 JL |
3654 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system |
3655 | xm_file="${xm_file} i386/xm-sco.h" | |
3656 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
861bb6c1 JL |
3657 | xmake_file=i386/x-sco4 |
3658 | fixincludes=fixinc.sco | |
861bb6c1 | 3659 | install_headers_dir=install-headers-cpio |
75bffa71 | 3660 | if test x$stabs = xyes |
861bb6c1 JL |
3661 | then |
3662 | tm_file=i386/sco4dbx.h | |
3663 | tmake_file=i386/t-svr3dbx | |
3664 | extra_parts="svr3.ifile svr3z.rfile" | |
3665 | else | |
3666 | tm_file=i386/sco4.h | |
3667 | tmake_file=i386/t-crtstuff | |
3668 | extra_parts="crtbegin.o crtend.o" | |
3669 | fi | |
3670 | truncate_target=yes | |
3671 | ;; | |
f6cb0e63 | 3672 | i[34567]86-*-sco*) # 80386 running SCO system |
861bb6c1 JL |
3673 | xm_file=i386/xm-sco.h |
3674 | xmake_file=i386/x-sco | |
861bb6c1 | 3675 | install_headers_dir=install-headers-cpio |
75bffa71 | 3676 | if test x$stabs = xyes |
861bb6c1 JL |
3677 | then |
3678 | tm_file=i386/scodbx.h | |
3679 | tmake_file=i386/t-svr3dbx | |
3680 | extra_parts="svr3.ifile svr3z.rfile" | |
3681 | else | |
3682 | tm_file=i386/sco.h | |
3683 | extra_parts="crtbegin.o crtend.o" | |
3684 | tmake_file=i386/t-crtstuff | |
3685 | fi | |
3686 | truncate_target=yes | |
3687 | ;; | |
f6cb0e63 JL |
3688 | i[34567]86-*-solaris2*) |
3689 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3690 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 3691 | if test x$stabs = xyes |
861bb6c1 JL |
3692 | then |
3693 | tm_file=i386/sol2dbg.h | |
3694 | else | |
3695 | tm_file=i386/sol2.h | |
3696 | fi | |
3697 | tmake_file=i386/t-sol2 | |
f6cb0e63 | 3698 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
861bb6c1 | 3699 | xmake_file=x-svr4 |
f6cb0e63 JL |
3700 | case $machine in |
3701 | *-*-solaris2.[0-4]) | |
3702 | fixincludes=fixinc.svr4;; | |
3703 | *) | |
32f65aa0 | 3704 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 3705 | esac |
75bffa71 | 3706 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3707 | thread_file='solaris' |
3708 | fi | |
3709 | ;; | |
f6cb0e63 | 3710 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 |
48a51bf4 RL |
3711 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
3712 | xm_defines="USG POSIX" | |
fe07d4c1 | 3713 | tm_file=i386/sysv4.h |
75bffa71 | 3714 | if test x$stabs = xyes |
fe07d4c1 RL |
3715 | then |
3716 | tm_file="${tm_file} dbx.h" | |
3717 | fi | |
3718 | tmake_file=i386/t-crtpic | |
3719 | xmake_file=x-svr4 | |
3720 | extra_parts="crtbegin.o crtend.o" | |
823642df | 3721 | fixincludes=fixinc.svr4 |
fe07d4c1 | 3722 | ;; |
f6cb0e63 JL |
3723 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 |
3724 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" | |
3725 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
861bb6c1 | 3726 | tm_file=i386/sysv4.h |
75bffa71 | 3727 | if test x$stabs = xyes |
861bb6c1 JL |
3728 | then |
3729 | tm_file="${tm_file} dbx.h" | |
3730 | fi | |
3731 | tmake_file=i386/t-crtpic | |
3732 | xmake_file=x-svr4 | |
3733 | extra_parts="crtbegin.o crtend.o" | |
3734 | ;; | |
112674fa RL |
3735 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit |
3736 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3737 | xm_defines="USG POSIX" | |
3738 | tm_file=i386/udk.h | |
3739 | tmake_file="i386/t-crtpic i386/t-udk" | |
3740 | xmake_file=x-svr4 | |
3741 | extra_parts="crtbegin.o crtend.o" | |
3742 | fixincludes="fixinc.svr4" | |
3743 | ;; | |
f5963e61 JL |
3744 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ |
3745 | cpu_type=i386 | |
3746 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
3747 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
3748 | fixincludes=Makefile.in #Don't do it on OSF/1 | |
75bffa71 | 3749 | if test x$stabs = xyes |
f5963e61 JL |
3750 | then |
3751 | tm_file=i386/osf1elfgdb.h | |
3752 | else | |
3753 | tm_file=i386/osf1elf.h | |
3754 | fi | |
3755 | tmake_file=i386/t-osf1elf | |
3756 | xmake_file=i386/x-osf1elf | |
3757 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
3758 | ;; | |
f6cb0e63 JL |
3759 | i[34567]86-*-sysv*) # Intel 80386's running system V |
3760 | xm_defines="USG SVR3" | |
861bb6c1 | 3761 | xmake_file=i386/x-sysv3 |
75bffa71 | 3762 | if test x$gas = xyes |
861bb6c1 | 3763 | then |
75bffa71 | 3764 | if test x$stabs = xyes |
861bb6c1 JL |
3765 | then |
3766 | tm_file=i386/svr3dbx.h | |
3767 | tmake_file=i386/t-svr3dbx | |
3768 | extra_parts="svr3.ifile svr3z.rfile" | |
3769 | else | |
3770 | tm_file=i386/svr3gas.h | |
3771 | extra_parts="crtbegin.o crtend.o" | |
3772 | tmake_file=i386/t-crtstuff | |
3773 | fi | |
3774 | else | |
3775 | tm_file=i386/sysv3.h | |
3776 | extra_parts="crtbegin.o crtend.o" | |
3777 | tmake_file=i386/t-crtstuff | |
3778 | fi | |
3779 | ;; | |
3780 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 3781 | xm_file="${xm_file} i386/xm-vsta.h" |
861bb6c1 JL |
3782 | tm_file=i386/vsta.h |
3783 | tmake_file=i386/t-vsta | |
3784 | xmake_file=i386/x-vsta | |
3785 | ;; | |
84530511 | 3786 | i[34567]86-*-win32) |
cae21ae8 GN |
3787 | xm_file="${xm_file} i386/xm-cygwin.h" |
3788 | tmake_file=i386/t-cygwin | |
84530511 | 3789 | tm_file=i386/win32.h |
cae21ae8 | 3790 | xmake_file=i386/x-cygwin |
84530511 SC |
3791 | extra_objs=winnt.o |
3792 | fixincludes=Makefile.in | |
75bffa71 | 3793 | if test x$enable_threads = xyes; then |
84530511 SC |
3794 | thread_file='win32' |
3795 | fi | |
3796 | exeext=.exe | |
3797 | ;; | |
cae21ae8 GN |
3798 | i[34567]86-*-pe | i[34567]86-*-cygwin*) |
3799 | xm_file="${xm_file} i386/xm-cygwin.h" | |
3800 | tmake_file=i386/t-cygwin | |
3801 | tm_file=i386/cygwin.h | |
3802 | xmake_file=i386/x-cygwin | |
861bb6c1 JL |
3803 | extra_objs=winnt.o |
3804 | fixincludes=Makefile.in | |
75bffa71 | 3805 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3806 | thread_file='win32' |
3807 | fi | |
3808 | exeext=.exe | |
3809 | ;; | |
f6cb0e63 | 3810 | i[34567]86-*-mingw32*) |
861bb6c1 JL |
3811 | tm_file=i386/mingw32.h |
3812 | xm_file="${xm_file} i386/xm-mingw32.h" | |
cae21ae8 | 3813 | tmake_file="i386/t-cygwin i386/t-mingw32" |
861bb6c1 | 3814 | extra_objs=winnt.o |
cae21ae8 | 3815 | xmake_file=i386/x-cygwin |
861bb6c1 | 3816 | fixincludes=Makefile.in |
75bffa71 | 3817 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3818 | thread_file='win32' |
3819 | fi | |
3820 | exeext=.exe | |
f6cb0e63 JL |
3821 | case $machine in |
3822 | *mingw32msv*) | |
3823 | ;; | |
3824 | *minwg32crt* | *mingw32*) | |
3825 | tm_file="${tm_file} i386/crtdll.h" | |
3826 | ;; | |
3827 | esac | |
861bb6c1 | 3828 | ;; |
b27d2bd5 MK |
3829 | i[34567]86-*-uwin*) |
3830 | tm_file=i386/uwin.h | |
3831 | xm_file="${xm_file} i386/xm-uwin.h" | |
3832 | xm_defines="USG NO_STAB_H NO_SYS_SIGLIST" | |
3833 | tmake_file="i386/t-cygwin i386/t-uwin" | |
3834 | extra_objs=winnt.o | |
3835 | xmake_file=i386/x-cygwin | |
3836 | fixincludes=Makefile.in | |
3837 | if test x$enable_threads = xyes; then | |
3838 | thread_file='win32' | |
3839 | fi | |
3840 | exeext=.exe | |
3841 | ;; | |
f6cb0e63 | 3842 | i[34567]86-*-winnt3*) |
861bb6c1 JL |
3843 | tm_file=i386/win-nt.h |
3844 | out_file=i386/i386.c | |
f6cb0e63 | 3845 | xm_file="xm-winnt.h ${xm_file}" |
861bb6c1 JL |
3846 | xmake_file=winnt/x-winnt |
3847 | tmake_file=i386/t-winnt | |
3848 | extra_host_objs="winnt.o oldnames.o" | |
3849 | extra_gcc_objs="spawnv.o oldnames.o" | |
3850 | fixincludes=fixinc.winnt | |
75bffa71 | 3851 | if test x$gnu_ld != xyes |
861bb6c1 JL |
3852 | then |
3853 | extra_programs=ld.exe | |
3854 | fi | |
75bffa71 | 3855 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
3856 | thread_file='win32' |
3857 | fi | |
3858 | ;; | |
f6cb0e63 JL |
3859 | i[34567]86-dg-dgux*) |
3860 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
3861 | xm_defines="USG POSIX" | |
861bb6c1 JL |
3862 | out_file=i386/dgux.c |
3863 | tm_file=i386/dgux.h | |
3864 | tmake_file=i386/t-dgux | |
3865 | xmake_file=i386/x-dgux | |
9590eb1b | 3866 | fixincludes=fixinc.dgux |
861bb6c1 JL |
3867 | install_headers_dir=install-headers-cpio |
3868 | ;; | |
3869 | i860-alliant-*) # Alliant FX/2800 | |
3870 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 3871 | xm_file="${xm_file}" |
861bb6c1 JL |
3872 | xmake_file=i860/x-fx2800 |
3873 | tmake_file=i860/t-fx2800 | |
3874 | extra_parts="crtbegin.o crtend.o" | |
3875 | ;; | |
3876 | i860-*-bsd*) | |
3877 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 3878 | if test x$gas = xyes |
861bb6c1 JL |
3879 | then |
3880 | tm_file="${tm_file} i860/bsd-gas.h" | |
3881 | fi | |
3882 | use_collect2=yes | |
3883 | ;; | |
3884 | i860-*-mach*) | |
3885 | tm_file="${tm_file} i860/mach.h" | |
3886 | tmake_file=t-libc-ok | |
3887 | ;; | |
3888 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
3889 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
f6cb0e63 | 3890 | xm_defines="USG SVR3" |
861bb6c1 | 3891 | tmake_file=t-osf |
861bb6c1 JL |
3892 | ;; |
3893 | i860-*-sysv3*) | |
3894 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
f6cb0e63 | 3895 | xm_defines="USG SVR3" |
861bb6c1 JL |
3896 | xmake_file=i860/x-sysv3 |
3897 | extra_parts="crtbegin.o crtend.o" | |
3898 | ;; | |
3899 | i860-*-sysv4*) | |
3900 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
f6cb0e63 | 3901 | xm_defines="USG SVR3" |
861bb6c1 JL |
3902 | xmake_file=i860/x-sysv4 |
3903 | tmake_file=t-svr4 | |
3904 | extra_parts="crtbegin.o crtend.o" | |
3905 | ;; | |
3906 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
3907 | tm_file="${tm_file} i960/vx960.h" | |
3908 | tmake_file=i960/t-vxworks960 | |
3909 | use_collect2=yes | |
7cc34889 | 3910 | thread_file='vxworks' |
861bb6c1 | 3911 | ;; |
a0372c94 | 3912 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
861bb6c1 JL |
3913 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
3914 | tmake_file=i960/t-vxworks960 | |
3915 | use_collect2=yes | |
7cc34889 | 3916 | thread_file='vxworks' |
861bb6c1 JL |
3917 | ;; |
3918 | i960-wrs-vxworks*) | |
3919 | tm_file="${tm_file} i960/vx960.h" | |
3920 | tmake_file=i960/t-vxworks960 | |
3921 | use_collect2=yes | |
7cc34889 | 3922 | thread_file='vxworks' |
861bb6c1 JL |
3923 | ;; |
3924 | i960-*-coff*) | |
3925 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
3926 | tmake_file=i960/t-960bare | |
3927 | use_collect2=yes | |
3928 | ;; | |
3929 | i960-*-rtems) | |
3930 | tmake_file="i960/t-960bare t-rtems" | |
3931 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
3932 | use_collect2=yes | |
3933 | ;; | |
3934 | i960-*-*) # Default i960 environment. | |
3935 | use_collect2=yes | |
3936 | ;; | |
3937 | m32r-*-elf*) | |
3938 | extra_parts="crtinit.o crtfini.o" | |
3939 | ;; | |
3940 | m68000-convergent-sysv*) | |
3941 | tm_file=m68k/ctix.h | |
f6cb0e63 JL |
3942 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3943 | xm_defines=USG | |
861bb6c1 JL |
3944 | use_collect2=yes |
3945 | extra_headers=math-68881.h | |
3946 | ;; | |
3947 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
3948 | tm_file=m68k/hp2bsd.h | |
3949 | xmake_file=m68k/x-hp2bsd | |
3950 | use_collect2=yes | |
3951 | extra_headers=math-68881.h | |
3952 | ;; | |
3953 | m68000-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
3954 | xm_file="xm_alloca.h ${xm_file}" |
3955 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 3956 | if test x$gas = xyes |
861bb6c1 JL |
3957 | then |
3958 | xmake_file=m68k/x-hp320g | |
3959 | tm_file=m68k/hp310g.h | |
3960 | else | |
3961 | xmake_file=m68k/x-hp320 | |
3962 | tm_file=m68k/hp310.h | |
3963 | fi | |
861bb6c1 JL |
3964 | install_headers_dir=install-headers-cpio |
3965 | use_collect2=yes | |
3966 | extra_headers=math-68881.h | |
3967 | ;; | |
3968 | m68000-sun-sunos3*) | |
3969 | tm_file=m68k/sun2.h | |
3970 | use_collect2=yes | |
3971 | extra_headers=math-68881.h | |
3972 | ;; | |
3973 | m68000-sun-sunos4*) | |
3974 | tm_file=m68k/sun2o4.h | |
3975 | use_collect2=yes | |
3976 | extra_headers=math-68881.h | |
3977 | ;; | |
3978 | m68000-att-sysv*) | |
f6cb0e63 JL |
3979 | xm_file="m68k/xm-3b1.h ${xm_file}" |
3980 | xm_defines=USG | |
75bffa71 | 3981 | if test x$gas = xyes |
861bb6c1 JL |
3982 | then |
3983 | tm_file=m68k/3b1g.h | |
3984 | else | |
3985 | tm_file=m68k/3b1.h | |
3986 | fi | |
3987 | use_collect2=yes | |
3988 | extra_headers=math-68881.h | |
3989 | ;; | |
3990 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
f6cb0e63 | 3991 | xm_defines="USG AUX" |
861bb6c1 | 3992 | tmake_file=m68k/t-aux |
861bb6c1 JL |
3993 | install_headers_dir=install-headers-cpio |
3994 | extra_headers=math-68881.h | |
3995 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
3996 | tm_file= | |
75bffa71 | 3997 | if test "$gnu_ld" = yes |
861bb6c1 JL |
3998 | then |
3999 | tm_file="${tm_file} m68k/auxgld.h" | |
4000 | else | |
4001 | tm_file="${tm_file} m68k/auxld.h" | |
4002 | fi | |
75bffa71 | 4003 | if test "$gas" = yes |
861bb6c1 JL |
4004 | then |
4005 | tm_file="${tm_file} m68k/auxgas.h" | |
4006 | else | |
4007 | tm_file="${tm_file} m68k/auxas.h" | |
4008 | fi | |
4009 | tm_file="${tm_file} m68k/a-ux.h" | |
0a95276e | 4010 | float_format=m68k |
861bb6c1 JL |
4011 | ;; |
4012 | m68k-apollo-*) | |
4013 | tm_file=m68k/apollo68.h | |
4014 | xmake_file=m68k/x-apollo68 | |
4015 | use_collect2=yes | |
4016 | extra_headers=math-68881.h | |
0a95276e | 4017 | float_format=m68k |
861bb6c1 JL |
4018 | ;; |
4019 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 4020 | if test x$gas = xyes |
861bb6c1 JL |
4021 | then |
4022 | tm_file=m68k/altos3068.h | |
f6cb0e63 | 4023 | xm_defines=USG |
861bb6c1 JL |
4024 | else |
4025 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
4026 | exit 1 | |
4027 | fi | |
4028 | extra_headers=math-68881.h | |
4029 | ;; | |
4030 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 4031 | if test x$gas = xyes |
861bb6c1 | 4032 | then |
75bffa71 | 4033 | if test x$stabs = xyes |
861bb6c1 JL |
4034 | then |
4035 | tm_file=m68k/dpx2cdbx.h | |
4036 | else | |
4037 | tm_file=m68k/dpx2g.h | |
4038 | fi | |
4039 | else | |
4040 | tm_file=m68k/dpx2.h | |
4041 | fi | |
f6cb0e63 JL |
4042 | xm_file="xm-alloca.h ${xm_file}" |
4043 | xm_defines=USG | |
861bb6c1 JL |
4044 | xmake_file=m68k/x-dpx2 |
4045 | use_collect2=yes | |
4046 | extra_headers=math-68881.h | |
4047 | ;; | |
4048 | m68k-atari-sysv4*) # Atari variant of V.4. | |
4049 | tm_file=m68k/atari.h | |
f6cb0e63 JL |
4050 | xm_file="xm-alloca.h ${xm_file}" |
4051 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4052 | tmake_file=t-svr4 |
4053 | extra_parts="crtbegin.o crtend.o" | |
4054 | extra_headers=math-68881.h | |
0a95276e | 4055 | float_format=m68k |
861bb6c1 JL |
4056 | ;; |
4057 | m68k-motorola-sysv*) | |
4058 | tm_file=m68k/mot3300.h | |
f6cb0e63 JL |
4059 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
4060 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 4061 | if test x$gas = xyes |
861bb6c1 JL |
4062 | then |
4063 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 4064 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4065 | then |
4066 | tmake_file=m68k/t-mot3300-gald | |
4067 | else | |
4068 | tmake_file=m68k/t-mot3300-gas | |
4069 | use_collect2=yes | |
4070 | fi | |
4071 | else | |
4072 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 4073 | if test x$gnu_ld = xyes |
861bb6c1 JL |
4074 | then |
4075 | tmake_file=m68k/t-mot3300-gld | |
4076 | else | |
4077 | tmake_file=m68k/t-mot3300 | |
4078 | use_collect2=yes | |
4079 | fi | |
4080 | fi | |
4081 | gdb_needs_out_file_path=yes | |
4082 | extra_parts="crt0.o mcrt0.o" | |
4083 | extra_headers=math-68881.h | |
0a95276e | 4084 | float_format=m68k |
861bb6c1 JL |
4085 | ;; |
4086 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
4087 | tm_file=m68k/tower-as.h | |
f6cb0e63 | 4088 | xm_defines="USG SVR3" |
861bb6c1 JL |
4089 | xmake_file=m68k/x-tower |
4090 | extra_parts="crtbegin.o crtend.o" | |
4091 | extra_headers=math-68881.h | |
4092 | ;; | |
4093 | m68k-plexus-sysv*) | |
4094 | tm_file=m68k/plexus.h | |
f6cb0e63 JL |
4095 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
4096 | xm_defines=USG | |
861bb6c1 JL |
4097 | use_collect2=yes |
4098 | extra_headers=math-68881.h | |
4099 | ;; | |
4100 | m68k-tti-*) | |
4101 | tm_file=m68k/pbb.h | |
f6cb0e63 JL |
4102 | xm_file="xm-alloca.h ${xm_file}" |
4103 | xm_defines=USG | |
861bb6c1 JL |
4104 | extra_headers=math-68881.h |
4105 | ;; | |
4106 | m68k-crds-unos*) | |
f6cb0e63 JL |
4107 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
4108 | xm_defines="USG unos" | |
861bb6c1 JL |
4109 | xmake_file=m68k/x-crds |
4110 | tm_file=m68k/crds.h | |
861bb6c1 JL |
4111 | use_collect2=yes |
4112 | extra_headers=math-68881.h | |
4113 | ;; | |
4114 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
4115 | tm_file=m68k/amix.h | |
f6cb0e63 JL |
4116 | xm_file="xm-alloca.h ${xm_file}" |
4117 | xm_defines="USG FULL_PROTOTYPES" | |
861bb6c1 JL |
4118 | xmake_file=m68k/x-amix |
4119 | tmake_file=t-svr4 | |
4120 | extra_parts="crtbegin.o crtend.o" | |
4121 | extra_headers=math-68881.h | |
0a95276e | 4122 | float_format=m68k |
861bb6c1 JL |
4123 | ;; |
4124 | m68k-ccur-rtu) | |
4125 | tm_file=m68k/ccur-GAS.h | |
4126 | xmake_file=m68k/x-ccur | |
4127 | extra_headers=math-68881.h | |
4128 | use_collect2=yes | |
0a95276e | 4129 | float_format=m68k |
861bb6c1 JL |
4130 | ;; |
4131 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
4132 | tm_file=m68k/hp3bsd44.h | |
4133 | xmake_file=m68k/x-hp3bsd44 | |
4134 | use_collect2=yes | |
4135 | extra_headers=math-68881.h | |
0a95276e | 4136 | float_format=m68k |
861bb6c1 JL |
4137 | ;; |
4138 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
4139 | tm_file=m68k/hp3bsd.h | |
4140 | use_collect2=yes | |
4141 | extra_headers=math-68881.h | |
0a95276e | 4142 | float_format=m68k |
861bb6c1 JL |
4143 | ;; |
4144 | m68k-isi-bsd*) | |
75bffa71 | 4145 | if test x$with_fp = xno |
861bb6c1 JL |
4146 | then |
4147 | tm_file=m68k/isi-nfp.h | |
4148 | else | |
4149 | tm_file=m68k/isi.h | |
0a95276e | 4150 | float_format=m68k |
861bb6c1 JL |
4151 | fi |
4152 | use_collect2=yes | |
4153 | extra_headers=math-68881.h | |
4154 | ;; | |
4155 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
f6cb0e63 JL |
4156 | xm_file="xm_alloca.h ${xm_file}" |
4157 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4158 | if test x$gas = xyes |
861bb6c1 JL |
4159 | then |
4160 | xmake_file=m68k/x-hp320g | |
4161 | tm_file=m68k/hp320g.h | |
4162 | else | |
4163 | xmake_file=m68k/x-hp320 | |
4164 | tm_file=m68k/hpux7.h | |
4165 | fi | |
861bb6c1 JL |
4166 | install_headers_dir=install-headers-cpio |
4167 | use_collect2=yes | |
4168 | extra_headers=math-68881.h | |
0a95276e | 4169 | float_format=m68k |
861bb6c1 JL |
4170 | ;; |
4171 | m68k-hp-hpux*) # HP 9000 series 300 | |
f6cb0e63 JL |
4172 | xm_file="xm_alloca.h ${xm_file}" |
4173 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 4174 | if test x$gas = xyes |
861bb6c1 JL |
4175 | then |
4176 | xmake_file=m68k/x-hp320g | |
4177 | tm_file=m68k/hp320g.h | |
4178 | else | |
4179 | xmake_file=m68k/x-hp320 | |
4180 | tm_file=m68k/hp320.h | |
4181 | fi | |
861bb6c1 JL |
4182 | install_headers_dir=install-headers-cpio |
4183 | use_collect2=yes | |
4184 | extra_headers=math-68881.h | |
0a95276e | 4185 | float_format=m68k |
861bb6c1 JL |
4186 | ;; |
4187 | m68k-sun-mach*) | |
4188 | tm_file=m68k/sun3mach.h | |
4189 | use_collect2=yes | |
4190 | extra_headers=math-68881.h | |
0a95276e | 4191 | float_format=m68k |
861bb6c1 JL |
4192 | ;; |
4193 | m68k-sony-newsos3*) | |
75bffa71 | 4194 | if test x$gas = xyes |
861bb6c1 JL |
4195 | then |
4196 | tm_file=m68k/news3gas.h | |
4197 | else | |
4198 | tm_file=m68k/news3.h | |
4199 | fi | |
4200 | use_collect2=yes | |
4201 | extra_headers=math-68881.h | |
0a95276e | 4202 | float_format=m68k |
861bb6c1 JL |
4203 | ;; |
4204 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 4205 | if test x$gas = xyes |
861bb6c1 JL |
4206 | then |
4207 | tm_file=m68k/newsgas.h | |
4208 | else | |
4209 | tm_file=m68k/news.h | |
4210 | fi | |
4211 | use_collect2=yes | |
4212 | extra_headers=math-68881.h | |
0a95276e | 4213 | float_format=m68k |
861bb6c1 JL |
4214 | ;; |
4215 | m68k-next-nextstep2*) | |
4216 | tm_file=m68k/next21.h | |
f6cb0e63 | 4217 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4218 | tmake_file=m68k/t-next |
4219 | xmake_file=m68k/x-next | |
4220 | extra_objs=nextstep.o | |
4221 | extra_headers=math-68881.h | |
4222 | use_collect2=yes | |
0a95276e | 4223 | float_format=m68k |
861bb6c1 JL |
4224 | ;; |
4225 | m68k-next-nextstep3*) | |
4226 | tm_file=m68k/next.h | |
f6cb0e63 | 4227 | xm_file="m68k/xm-next.h ${xm_file}" |
861bb6c1 JL |
4228 | tmake_file=m68k/t-next |
4229 | xmake_file=m68k/x-next | |
4230 | extra_objs=nextstep.o | |
750930c1 | 4231 | extra_parts="crtbegin.o crtend.o" |
861bb6c1 | 4232 | extra_headers=math-68881.h |
0a95276e | 4233 | float_format=m68k |
75bffa71 | 4234 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4235 | thread_file='mach' |
4236 | fi | |
4237 | ;; | |
4238 | m68k-sun-sunos3*) | |
75bffa71 | 4239 | if test x$with_fp = xno |
861bb6c1 JL |
4240 | then |
4241 | tm_file=m68k/sun3n3.h | |
4242 | else | |
4243 | tm_file=m68k/sun3o3.h | |
0a95276e | 4244 | float_format=m68k |
861bb6c1 JL |
4245 | fi |
4246 | use_collect2=yes | |
4247 | extra_headers=math-68881.h | |
4248 | ;; | |
4249 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 4250 | if test x$with_fp = xno |
861bb6c1 JL |
4251 | then |
4252 | tm_file=m68k/sun3n.h | |
4253 | else | |
4254 | tm_file=m68k/sun3.h | |
0a95276e | 4255 | float_format=m68k |
861bb6c1 | 4256 | fi |
861bb6c1 JL |
4257 | use_collect2=yes |
4258 | extra_headers=math-68881.h | |
4259 | ;; | |
4260 | m68k-wrs-vxworks*) | |
4261 | tm_file=m68k/vxm68k.h | |
4262 | tmake_file=m68k/t-vxworks68 | |
4263 | extra_headers=math-68881.h | |
7cc34889 | 4264 | thread_file='vxworks' |
0a95276e | 4265 | float_format=m68k |
861bb6c1 JL |
4266 | ;; |
4267 | m68k-*-aout*) | |
4268 | tmake_file=m68k/t-m68kbare | |
4269 | tm_file="m68k/m68k-aout.h libgloss.h" | |
4270 | extra_headers=math-68881.h | |
0a95276e | 4271 | float_format=m68k |
861bb6c1 JL |
4272 | ;; |
4273 | m68k-*-coff*) | |
4274 | tmake_file=m68k/t-m68kbare | |
4275 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
4276 | extra_headers=math-68881.h | |
0a95276e | 4277 | float_format=m68k |
861bb6c1 | 4278 | ;; |
d1be3be3 JW |
4279 | m68020-*-elf* | m68k-*-elf*) |
4280 | tm_file="m68k/m68020-elf.h libgloss.h" | |
4281 | xm_file=m68k/xm-m68kv.h | |
4282 | tmake_file=m68k/t-m68kelf | |
4283 | header_files=math-68881.h | |
4284 | ;; | |
861bb6c1 | 4285 | m68k-*-lynxos*) |
75bffa71 | 4286 | if test x$gas = xyes |
861bb6c1 JL |
4287 | then |
4288 | tm_file=m68k/lynx.h | |
4289 | else | |
4290 | tm_file=m68k/lynx-ng.h | |
4291 | fi | |
4292 | xm_file=m68k/xm-lynx.h | |
4293 | xmake_file=x-lynx | |
4294 | tmake_file=m68k/t-lynx | |
4295 | extra_headers=math-68881.h | |
0a95276e | 4296 | float_format=m68k |
861bb6c1 | 4297 | ;; |
58600d24 | 4298 | m68k*-*-netbsd*) |
861bb6c1 | 4299 | tm_file=m68k/netbsd.h |
be1ed94f | 4300 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4301 | fixincludes=fixinc.wrap |
861bb6c1 | 4302 | tmake_file=t-netbsd |
0a95276e | 4303 | float_format=m68k |
861bb6c1 | 4304 | ;; |
1b4a979b ME |
4305 | m68k*-*-openbsd*) |
4306 | float_format=m68k | |
4307 | # we need collect2 until our bug is fixed... | |
4308 | use_collect2=yes | |
4309 | ;; | |
861bb6c1 | 4310 | m68k-*-sysv3*) # Motorola m68k's running system V.3 |
f6cb0e63 JL |
4311 | xm_file="xm-alloca.h ${xm_file}" |
4312 | xm_defines=USG | |
861bb6c1 JL |
4313 | xmake_file=m68k/x-m68kv |
4314 | extra_parts="crtbegin.o crtend.o" | |
4315 | extra_headers=math-68881.h | |
0a95276e | 4316 | float_format=m68k |
861bb6c1 JL |
4317 | ;; |
4318 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
4319 | tm_file=m68k/m68kv4.h | |
f6cb0e63 JL |
4320 | xm_file="xm-alloca.h ${xm_file}" |
4321 | xm_defines=USG | |
861bb6c1 JL |
4322 | tmake_file=t-svr4 |
4323 | extra_parts="crtbegin.o crtend.o" | |
4324 | extra_headers=math-68881.h | |
0a95276e | 4325 | float_format=m68k |
861bb6c1 | 4326 | ;; |
956d6950 | 4327 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
f6cb0e63 | 4328 | # with a.out format |
861bb6c1 JL |
4329 | xmake_file=x-linux |
4330 | tm_file=m68k/linux-aout.h | |
4331 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
956d6950 | 4332 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 4333 | extra_headers=math-68881.h |
0a95276e | 4334 | float_format=m68k |
861bb6c1 JL |
4335 | gnu_ld=yes |
4336 | ;; | |
956d6950 | 4337 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4338 | # with ELF format using the |
4339 | # GNU/Linux C library 5 | |
4340 | xmake_file=x-linux | |
861bb6c1 JL |
4341 | tm_file=m68k/linux.h |
4342 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
4343 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 4344 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 4345 | extra_headers=math-68881.h |
0a95276e | 4346 | float_format=m68k |
861bb6c1 JL |
4347 | gnu_ld=yes |
4348 | ;; | |
956d6950 | 4349 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
f6cb0e63 JL |
4350 | # with ELF format using glibc 2 |
4351 | # aka the GNU/Linux C library 6. | |
4352 | xmake_file=x-linux | |
861bb6c1 JL |
4353 | tm_file=m68k/linux.h |
4354 | tmake_file="t-linux m68k/t-linux" | |
4355 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 4356 | fixincludes=Makefile.in # The headers are ok already. |
861bb6c1 | 4357 | extra_headers=math-68881.h |
0a95276e | 4358 | float_format=m68k |
861bb6c1 | 4359 | gnu_ld=yes |
75bffa71 | 4360 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
4361 | thread_file='posix' |
4362 | fi | |
4363 | ;; | |
4364 | m68k-*-psos*) | |
4365 | tmake_file=m68k/t-m68kbare | |
4366 | tm_file=m68k/m68k-psos.h | |
4367 | extra_headers=math-68881.h | |
0a95276e | 4368 | float_format=m68k |
861bb6c1 JL |
4369 | ;; |
4370 | m68k-*-rtems*) | |
4371 | tmake_file="m68k/t-m68kbare t-rtems" | |
4372 | tm_file=m68k/rtems.h | |
4373 | extra_headers=math-68881.h | |
0a95276e | 4374 | float_format=m68k |
861bb6c1 JL |
4375 | ;; |
4376 | ||
4377 | m88k-dg-dgux*) | |
4378 | case $machine in | |
4379 | m88k-dg-dguxbcs*) | |
4380 | tm_file=m88k/dguxbcs.h | |
4381 | tmake_file=m88k/t-dguxbcs | |
4382 | ;; | |
4383 | *) | |
4384 | tm_file=m88k/dgux.h | |
4385 | tmake_file=m88k/t-dgux | |
4386 | ;; | |
4387 | esac | |
4388 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
861bb6c1 | 4389 | xmake_file=m88k/x-dgux |
75bffa71 | 4390 | if test x$gas = xyes |
861bb6c1 JL |
4391 | then |
4392 | tmake_file=m88k/t-dgux-gas | |
4393 | fi | |
4394 | fixincludes=fixinc.dgux | |
4395 | ;; | |
4396 | m88k-dolphin-sysv3*) | |
4397 | tm_file=m88k/dolph.h | |
4398 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4399 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4400 | xmake_file=m88k/x-dolph |
75bffa71 | 4401 | if test x$gas = xyes |
861bb6c1 JL |
4402 | then |
4403 | tmake_file=m88k/t-m88k-gas | |
4404 | fi | |
4405 | ;; | |
4406 | m88k-tektronix-sysv3) | |
4407 | tm_file=m88k/tekXD88.h | |
4408 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4409 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4410 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 4411 | if test x$gas = xyes |
861bb6c1 JL |
4412 | then |
4413 | tmake_file=m88k/t-m88k-gas | |
4414 | fi | |
4415 | ;; | |
4416 | m88k-*-aout*) | |
4417 | tm_file=m88k/m88k-aout.h | |
4418 | ;; | |
4419 | m88k-*-coff*) | |
4420 | tm_file=m88k/m88k-coff.h | |
4421 | tmake_file=m88k/t-bug | |
4422 | ;; | |
4423 | m88k-*-luna*) | |
4424 | tm_file=m88k/luna.h | |
4425 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 4426 | if test x$gas = xyes |
861bb6c1 JL |
4427 | then |
4428 | tmake_file=m88k/t-luna-gas | |
4429 | else | |
4430 | tmake_file=m88k/t-luna | |
4431 | fi | |
4432 | ;; | |
1b4a979b ME |
4433 | m88k-*-openbsd*) |
4434 | tmake_file="${tmake_file} m88k/t-luna-gas" | |
4435 | ;; | |
861bb6c1 JL |
4436 | m88k-*-sysv3*) |
4437 | tm_file=m88k/sysv3.h | |
4438 | extra_parts="crtbegin.o crtend.o" | |
f6cb0e63 | 4439 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
861bb6c1 | 4440 | xmake_file=m88k/x-sysv3 |
75bffa71 | 4441 | if test x$gas = xyes |
861bb6c1 JL |
4442 | then |
4443 | tmake_file=m88k/t-m88k-gas | |
4444 | fi | |
4445 | ;; | |
4446 | m88k-*-sysv4*) | |
4447 | tm_file=m88k/sysv4.h | |
4448 | extra_parts="crtbegin.o crtend.o" | |
4449 | xmake_file=m88k/x-sysv4 | |
4450 | tmake_file=m88k/t-sysv4 | |
4451 | ;; | |
4452 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
4453 | tm_file=mips/iris6.h | |
4454 | xm_file=mips/xm-iris6.h | |
861bb6c1 JL |
4455 | fixincludes=fixinc.irix |
4456 | xmake_file=mips/x-iris6 | |
4457 | tmake_file=mips/t-iris6 | |
04069e5c | 4458 | # if test x$enable_threads = xyes; then |
6e148807 | 4459 | # thread_file='irix' |
04069e5c | 4460 | # fi |
861bb6c1 | 4461 | ;; |
98bd9f0f DB |
4462 | mips-wrs-vxworks) |
4463 | tm_file="mips/elf.h libgloss.h" | |
4464 | tmake_file=mips/t-ecoff | |
4465 | gas=yes | |
4466 | gnu_ld=yes | |
4467 | extra_parts="crtbegin.o crtend.o" | |
e9c0315e | 4468 | thread_file='vxworks' |
98bd9f0f | 4469 | ;; |
861bb6c1 | 4470 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
f6cb0e63 | 4471 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
4472 | xm_defines=USG |
4473 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4474 | fixincludes=Makefile.in |
4475 | xmake_file=mips/x-iris | |
4476 | tmake_file=mips/t-cross64 | |
4477 | # See comment in mips/iris[56].h files. | |
4478 | use_collect2=yes | |
04069e5c | 4479 | # if test x$enable_threads = xyes; then |
6e148807 | 4480 | # thread_file='irix' |
04069e5c | 4481 | # fi |
861bb6c1 JL |
4482 | ;; |
4483 | mips-sni-sysv4) | |
75bffa71 | 4484 | if test x$gas = xyes |
861bb6c1 | 4485 | then |
75bffa71 | 4486 | if test x$stabs = xyes |
861bb6c1 JL |
4487 | then |
4488 | tm_file=mips/iris5gdb.h | |
4489 | else | |
f6cb0e63 | 4490 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
861bb6c1 JL |
4491 | fi |
4492 | else | |
4493 | tm_file=mips/sni-svr4.h | |
4494 | fi | |
f6cb0e63 | 4495 | xm_defines=USG |
861bb6c1 JL |
4496 | xmake_file=mips/x-sni-svr4 |
4497 | tmake_file=mips/t-mips-gas | |
75bffa71 | 4498 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4499 | then |
4500 | use_collect2=yes | |
4501 | fi | |
861bb6c1 JL |
4502 | ;; |
4503 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 4504 | if test x$gas = xyes |
861bb6c1 | 4505 | then |
f6cb0e63 | 4506 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 4507 | if test x$stabs = xyes |
861bb6c1 JL |
4508 | then |
4509 | tm_file="${tm_file} dbx.h" | |
4510 | fi | |
4511 | else | |
4512 | tm_file=mips/iris5.h | |
4513 | fi | |
74c55ab0 JW |
4514 | xm_defines=USG |
4515 | xm_file="mips/xm-iris5.h" | |
861bb6c1 JL |
4516 | fixincludes=fixinc.irix |
4517 | xmake_file=mips/x-iris | |
4518 | # mips-tfile doesn't work yet | |
4519 | tmake_file=mips/t-mips-gas | |
4520 | # See comment in mips/iris5.h file. | |
4521 | use_collect2=yes | |
04069e5c | 4522 | # if test x$enable_threads = xyes; then |
6e148807 | 4523 | # thread_file='irix' |
04069e5c | 4524 | # fi |
861bb6c1 JL |
4525 | ;; |
4526 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
f6cb0e63 | 4527 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4528 | if test x$stabs = xyes; then |
861bb6c1 JL |
4529 | tm_file="${tm_file} dbx.h" |
4530 | fi | |
f6cb0e63 | 4531 | xm_defines=USG |
861bb6c1 | 4532 | xmake_file=mips/x-iris |
75bffa71 | 4533 | if test x$gas = xyes |
861bb6c1 JL |
4534 | then |
4535 | tmake_file=mips/t-mips-gas | |
4536 | else | |
4537 | extra_passes="mips-tfile mips-tdump" | |
4538 | fi | |
75bffa71 | 4539 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4540 | then |
4541 | use_collect2=yes | |
4542 | fi | |
04069e5c | 4543 | # if test x$enable_threads = xyes; then |
6e148807 | 4544 | # thread_file='irix' |
04069e5c | 4545 | # fi |
861bb6c1 JL |
4546 | ;; |
4547 | mips-sgi-irix4*) # Mostly like a MIPS. | |
f6cb0e63 | 4548 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 4549 | if test x$stabs = xyes; then |
861bb6c1 JL |
4550 | tm_file="${tm_file} dbx.h" |
4551 | fi | |
f6cb0e63 | 4552 | xm_defines=USG |
861bb6c1 | 4553 | xmake_file=mips/x-iris |
75bffa71 | 4554 | if test x$gas = xyes |
861bb6c1 JL |
4555 | then |
4556 | tmake_file=mips/t-mips-gas | |
4557 | else | |
4558 | extra_passes="mips-tfile mips-tdump" | |
4559 | fi | |
75bffa71 | 4560 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4561 | then |
4562 | use_collect2=yes | |
4563 | fi | |
04069e5c | 4564 | # if test x$enable_threads = xyes; then |
6e148807 | 4565 | # thread_file='irix' |
04069e5c | 4566 | # fi |
861bb6c1 JL |
4567 | ;; |
4568 | mips-sgi-*) # Mostly like a MIPS. | |
f6cb0e63 | 4569 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 4570 | if test x$stabs = xyes; then |
861bb6c1 JL |
4571 | tm_file="${tm_file} dbx.h" |
4572 | fi | |
f6cb0e63 | 4573 | xm_defines=USG |
861bb6c1 | 4574 | xmake_file=mips/x-iris3 |
75bffa71 | 4575 | if test x$gas = xyes |
861bb6c1 JL |
4576 | then |
4577 | tmake_file=mips/t-mips-gas | |
4578 | else | |
4579 | extra_passes="mips-tfile mips-tdump" | |
4580 | fi | |
75bffa71 | 4581 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4582 | then |
4583 | use_collect2=yes | |
4584 | fi | |
4585 | ;; | |
4586 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
f6cb0e63 | 4587 | tm_file="mips/osfrose.h ${tm_file}" |
861bb6c1 JL |
4588 | xmake_file=mips/x-osfrose |
4589 | tmake_file=mips/t-osfrose | |
4590 | extra_objs=halfpic.o | |
4591 | use_collect2=yes | |
4592 | ;; | |
4593 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
4594 | tm_file=mips/dec-osf1.h | |
75bffa71 | 4595 | if test x$stabs = xyes; then |
861bb6c1 JL |
4596 | tm_file="${tm_file} dbx.h" |
4597 | fi | |
4598 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 4599 | if test x$gas = xyes |
861bb6c1 JL |
4600 | then |
4601 | tmake_file=mips/t-mips-gas | |
4602 | else | |
4603 | tmake_file=mips/t-ultrix | |
4604 | extra_passes="mips-tfile mips-tdump" | |
4605 | fi | |
75bffa71 | 4606 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4607 | then |
4608 | use_collect2=yes | |
4609 | fi | |
4610 | ;; | |
4611 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
4612 | tm_file=mips/dec-bsd.h | |
4613 | fixincludes= | |
75bffa71 | 4614 | if test x$gas = xyes |
861bb6c1 JL |
4615 | then |
4616 | tmake_file=mips/t-mips-gas | |
4617 | else | |
4618 | tmake_file=mips/t-ultrix | |
4619 | extra_passes="mips-tfile mips-tdump" | |
4620 | fi | |
75bffa71 | 4621 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4622 | then |
4623 | use_collect2=yes | |
4624 | fi | |
4625 | ;; | |
58600d24 | 4626 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
861bb6c1 | 4627 | tm_file=mips/netbsd.h |
be1ed94f | 4628 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4629 | fixincludes=fixinc.wrap |
861bb6c1 | 4630 | tmake_file=t-netbsd |
861bb6c1 | 4631 | ;; |
54953b66 | 4632 | mips*-*-linux*) # Linux MIPS, either endian. |
18cae839 RL |
4633 | xmake_file=x-linux |
4634 | xm_file="xm-siglist.h ${xm_file}" | |
54953b66 UD |
4635 | case $machine in |
4636 | mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;; | |
4637 | *) tm_file="mips/elf.h mips/linux.h" ;; | |
4638 | esac | |
18cae839 RL |
4639 | extra_parts="crtbegin.o crtend.o" |
4640 | gnu_ld=yes | |
4641 | gas=yes | |
4642 | fixincludes=Makefile.in | |
4643 | ;; | |
1b4a979b ME |
4644 | mips*el-*-openbsd*) # mips little endian |
4645 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4646 | tm_file=mips/openbsd.h | |
4647 | xmake_file=none | |
4648 | ;; | |
4649 | mips*-*-openbsd*) # mips big endian | |
4650 | target_cpu_default="MASK_GAS|MASK_ABICALLS" | |
4651 | tm_file=mips/openbsd-be.h | |
4652 | xmake_file=none | |
4653 | ;; | |
861bb6c1 | 4654 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. |
f6cb0e63 | 4655 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 4656 | if test x$stabs = xyes; then |
861bb6c1 JL |
4657 | tm_file="${tm_file} dbx.h" |
4658 | fi | |
75bffa71 | 4659 | if test x$gas = xyes |
861bb6c1 JL |
4660 | then |
4661 | tmake_file=mips/t-mips-gas | |
4662 | else | |
4663 | extra_passes="mips-tfile mips-tdump" | |
4664 | fi | |
75bffa71 | 4665 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4666 | then |
4667 | use_collect2=yes | |
4668 | fi | |
4669 | xmake_file=mips/x-sony | |
4670 | ;; | |
4671 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
4672 | # That is based on svr4. | |
4673 | # t-svr4 is not right because this system doesn't use ELF. | |
f6cb0e63 | 4674 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 4675 | if test x$stabs = xyes; then |
861bb6c1 JL |
4676 | tm_file="${tm_file} dbx.h" |
4677 | fi | |
f6cb0e63 JL |
4678 | xm_file="xm-siglist.h ${xm_file}" |
4679 | xm_defines=USG | |
75bffa71 | 4680 | if test x$gas = xyes |
861bb6c1 JL |
4681 | then |
4682 | tmake_file=mips/t-mips-gas | |
4683 | else | |
4684 | extra_passes="mips-tfile mips-tdump" | |
4685 | fi | |
75bffa71 | 4686 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4687 | then |
4688 | use_collect2=yes | |
4689 | fi | |
4690 | ;; | |
4691 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
f6cb0e63 | 4692 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 4693 | if test x$stabs = xyes; then |
861bb6c1 JL |
4694 | tm_file="${tm_file} dbx.h" |
4695 | fi | |
f6cb0e63 JL |
4696 | xm_file="xm-siglist.h ${xm_file}" |
4697 | xm_defines=USG | |
861bb6c1 | 4698 | xmake_file=mips/x-sysv |
75bffa71 | 4699 | if test x$gas = xyes |
861bb6c1 JL |
4700 | then |
4701 | tmake_file=mips/t-mips-gas | |
4702 | extra_parts="crtbegin.o crtend.o" | |
4703 | else | |
4704 | tmake_file=mips/t-mips | |
4705 | extra_passes="mips-tfile mips-tdump" | |
4706 | fi | |
75bffa71 | 4707 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4708 | then |
4709 | use_collect2=yes | |
4710 | fi | |
861bb6c1 JL |
4711 | ;; |
4712 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
f6cb0e63 | 4713 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 4714 | if test x$stabs = xyes; then |
861bb6c1 JL |
4715 | tm_file="${tm_file} dbx.h" |
4716 | fi | |
4717 | xmake_file=mips/x-ultrix | |
75bffa71 | 4718 | if test x$gas = xyes |
861bb6c1 JL |
4719 | then |
4720 | tmake_file=mips/t-mips-gas | |
4721 | else | |
4722 | tmake_file=mips/t-ultrix | |
4723 | extra_passes="mips-tfile mips-tdump" | |
4724 | fi | |
75bffa71 | 4725 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4726 | then |
4727 | use_collect2=yes | |
4728 | fi | |
4729 | ;; | |
4730 | mips-*-riscos[56789]bsd*) | |
4731 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
75bffa71 | 4732 | if test x$stabs = xyes; then |
861bb6c1 JL |
4733 | tm_file="${tm_file} dbx.h" |
4734 | fi | |
75bffa71 | 4735 | if test x$gas = xyes |
861bb6c1 JL |
4736 | then |
4737 | tmake_file=mips/t-bsd-gas | |
4738 | else | |
4739 | tmake_file=mips/t-bsd | |
4740 | extra_passes="mips-tfile mips-tdump" | |
4741 | fi | |
75bffa71 | 4742 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4743 | then |
4744 | use_collect2=yes | |
4745 | fi | |
861bb6c1 JL |
4746 | ;; |
4747 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
f6cb0e63 | 4748 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 4749 | if test x$stabs = xyes; then |
861bb6c1 JL |
4750 | tm_file="${tm_file} dbx.h" |
4751 | fi | |
75bffa71 | 4752 | if test x$gas = xyes |
861bb6c1 JL |
4753 | then |
4754 | tmake_file=mips/t-bsd-gas | |
4755 | else | |
4756 | tmake_file=mips/t-bsd | |
4757 | extra_passes="mips-tfile mips-tdump" | |
4758 | fi | |
75bffa71 | 4759 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4760 | then |
4761 | use_collect2=yes | |
4762 | fi | |
861bb6c1 JL |
4763 | ;; |
4764 | mips-*-riscos[56789]sysv4*) | |
4765 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
75bffa71 | 4766 | if test x$stabs = xyes; then |
861bb6c1 JL |
4767 | tm_file="${tm_file} dbx.h" |
4768 | fi | |
f6cb0e63 | 4769 | xm_file="xm-siglist.h ${xm_file}" |
861bb6c1 | 4770 | xmake_file=mips/x-sysv |
75bffa71 | 4771 | if test x$gas = xyes |
861bb6c1 JL |
4772 | then |
4773 | tmake_file=mips/t-svr4-gas | |
4774 | else | |
4775 | tmake_file=mips/t-svr4 | |
4776 | extra_passes="mips-tfile mips-tdump" | |
4777 | fi | |
75bffa71 | 4778 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4779 | then |
4780 | use_collect2=yes | |
4781 | fi | |
861bb6c1 JL |
4782 | ;; |
4783 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
f6cb0e63 | 4784 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 4785 | if test x$stabs = xyes; then |
861bb6c1 JL |
4786 | tm_file="${tm_file} dbx.h" |
4787 | fi | |
f6cb0e63 | 4788 | xm_defines=USG |
861bb6c1 | 4789 | xmake_file=mips/x-sysv |
75bffa71 | 4790 | if test x$gas = xyes |
861bb6c1 JL |
4791 | then |
4792 | tmake_file=mips/t-svr4-gas | |
4793 | else | |
4794 | tmake_file=mips/t-svr4 | |
4795 | extra_passes="mips-tfile mips-tdump" | |
4796 | fi | |
75bffa71 | 4797 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4798 | then |
4799 | use_collect2=yes | |
4800 | fi | |
861bb6c1 JL |
4801 | ;; |
4802 | mips-*-riscos[56789]sysv*) | |
4803 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
75bffa71 | 4804 | if test x$stabs = xyes; then |
861bb6c1 JL |
4805 | tm_file="${tm_file} dbx.h" |
4806 | fi | |
f6cb0e63 | 4807 | xm_defines=USG |
861bb6c1 | 4808 | xmake_file=mips/x-sysv |
75bffa71 | 4809 | if test x$gas = xyes |
861bb6c1 JL |
4810 | then |
4811 | tmake_file=mips/t-svr3-gas | |
4812 | else | |
4813 | tmake_file=mips/t-svr3 | |
4814 | extra_passes="mips-tfile mips-tdump" | |
4815 | fi | |
75bffa71 | 4816 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4817 | then |
4818 | use_collect2=yes | |
4819 | fi | |
861bb6c1 JL |
4820 | ;; |
4821 | mips-*-sysv* | mips-*-riscos*sysv*) | |
f6cb0e63 | 4822 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 4823 | if test x$stabs = xyes; then |
861bb6c1 JL |
4824 | tm_file="${tm_file} dbx.h" |
4825 | fi | |
f6cb0e63 | 4826 | xm_defines=USG |
861bb6c1 | 4827 | xmake_file=mips/x-sysv |
75bffa71 | 4828 | if test x$gas = xyes |
861bb6c1 JL |
4829 | then |
4830 | tmake_file=mips/t-svr3-gas | |
4831 | else | |
4832 | tmake_file=mips/t-svr3 | |
4833 | extra_passes="mips-tfile mips-tdump" | |
4834 | fi | |
75bffa71 | 4835 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4836 | then |
4837 | use_collect2=yes | |
4838 | fi | |
861bb6c1 JL |
4839 | ;; |
4840 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
4841 | tm_file=mips/mips-5.h | |
75bffa71 | 4842 | if test x$stabs = xyes; then |
861bb6c1 JL |
4843 | tm_file="${tm_file} dbx.h" |
4844 | fi | |
75bffa71 | 4845 | if test x$gas = xyes |
861bb6c1 JL |
4846 | then |
4847 | tmake_file=mips/t-mips-gas | |
4848 | else | |
4849 | extra_passes="mips-tfile mips-tdump" | |
4850 | fi | |
75bffa71 | 4851 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4852 | then |
4853 | use_collect2=yes | |
4854 | fi | |
861bb6c1 JL |
4855 | ;; |
4856 | mips-*-gnu*) | |
4857 | ;; | |
4858 | mipsel-*-ecoff*) | |
4859 | tm_file=mips/ecoffl.h | |
75bffa71 | 4860 | if test x$stabs = xyes; then |
861bb6c1 JL |
4861 | tm_file="${tm_file} dbx.h" |
4862 | fi | |
4863 | tmake_file=mips/t-ecoff | |
4864 | ;; | |
4865 | mips-*-ecoff*) | |
1be12a4a | 4866 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 4867 | if test x$stabs = xyes; then |
861bb6c1 JL |
4868 | tm_file="${tm_file} dbx.h" |
4869 | fi | |
4870 | tmake_file=mips/t-ecoff | |
861bb6c1 JL |
4871 | ;; |
4872 | mipsel-*-elf*) | |
4873 | tm_file="mips/elfl.h libgloss.h" | |
4874 | tmake_file=mips/t-ecoff | |
4875 | ;; | |
4876 | mips-*-elf*) | |
4877 | tm_file="mips/elf.h libgloss.h" | |
4878 | tmake_file=mips/t-ecoff | |
4879 | ;; | |
4880 | mips64el-*-elf*) | |
4881 | tm_file="mips/elfl64.h libgloss.h" | |
4882 | tmake_file=mips/t-ecoff | |
4883 | ;; | |
4884 | mips64orionel-*-elf*) | |
f6cb0e63 | 4885 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
861bb6c1 JL |
4886 | tmake_file=mips/t-ecoff |
4887 | ;; | |
4888 | mips64-*-elf*) | |
4889 | tm_file="mips/elf64.h libgloss.h" | |
4890 | tmake_file=mips/t-ecoff | |
4891 | ;; | |
4892 | mips64orion-*-elf*) | |
f6cb0e63 | 4893 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
861bb6c1 JL |
4894 | tmake_file=mips/t-ecoff |
4895 | ;; | |
4896 | mips64orion-*-rtems*) | |
6e9856ba | 4897 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
861bb6c1 JL |
4898 | tmake_file="mips/t-ecoff t-rtems" |
4899 | ;; | |
e9a25f70 JL |
4900 | mipstx39el-*-elf*) |
4901 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4902 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
4903 | ;; |
4904 | mipstx39-*-elf*) | |
4905 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
09e4daf5 | 4906 | tmake_file=mips/t-r3900 |
2ce3c6c6 JM |
4907 | # FIXME mips-elf should be fixed to use crtstuff. |
4908 | use_collect2=yes | |
e9a25f70 | 4909 | ;; |
861bb6c1 | 4910 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 4911 | if test x$stabs = xyes; then |
861bb6c1 JL |
4912 | tm_file="${tm_file} dbx.h" |
4913 | fi | |
75bffa71 | 4914 | if test x$gas = xyes |
861bb6c1 JL |
4915 | then |
4916 | tmake_file=mips/t-mips-gas | |
4917 | else | |
4918 | extra_passes="mips-tfile mips-tdump" | |
4919 | fi | |
75bffa71 | 4920 | if test x$gnu_ld != xyes |
861bb6c1 JL |
4921 | then |
4922 | use_collect2=yes | |
4923 | fi | |
4924 | ;; | |
4925 | mn10200-*-*) | |
4926 | cpu_type=mn10200 | |
4927 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 4928 | if test x$stabs = xyes |
861bb6c1 JL |
4929 | then |
4930 | tm_file="${tm_file} dbx.h" | |
4931 | fi | |
4932 | use_collect2=no | |
4933 | ;; | |
4934 | mn10300-*-*) | |
4935 | cpu_type=mn10300 | |
4936 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 4937 | if test x$stabs = xyes |
861bb6c1 JL |
4938 | then |
4939 | tm_file="${tm_file} dbx.h" | |
4940 | fi | |
4941 | use_collect2=no | |
4942 | ;; | |
4943 | ns32k-encore-bsd*) | |
4944 | tm_file=ns32k/encore.h | |
4945 | use_collect2=yes | |
4946 | ;; | |
4947 | ns32k-sequent-bsd*) | |
4948 | tm_file=ns32k/sequent.h | |
4949 | use_collect2=yes | |
4950 | ;; | |
4951 | ns32k-tek6100-bsd*) | |
4952 | tm_file=ns32k/tek6100.h | |
861bb6c1 JL |
4953 | use_collect2=yes |
4954 | ;; | |
4955 | ns32k-tek6200-bsd*) | |
4956 | tm_file=ns32k/tek6200.h | |
861bb6c1 JL |
4957 | use_collect2=yes |
4958 | ;; | |
4959 | # This has not been updated to GCC 2. | |
4960 | # ns32k-ns-genix*) | |
f6cb0e63 | 4961 | # xm_defines=USG |
861bb6c1 JL |
4962 | # xmake_file=ns32k/x-genix |
4963 | # tm_file=ns32k/genix.h | |
861bb6c1 JL |
4964 | # use_collect2=yes |
4965 | # ;; | |
4966 | ns32k-merlin-*) | |
4967 | tm_file=ns32k/merlin.h | |
4968 | use_collect2=yes | |
4969 | ;; | |
4970 | ns32k-pc532-mach*) | |
4971 | tm_file=ns32k/pc532-mach.h | |
4972 | use_collect2=yes | |
4973 | ;; | |
4974 | ns32k-pc532-minix*) | |
4975 | tm_file=ns32k/pc532-min.h | |
f6cb0e63 JL |
4976 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
4977 | xm_defines=USG | |
861bb6c1 JL |
4978 | use_collect2=yes |
4979 | ;; | |
58600d24 | 4980 | ns32k-*-netbsd*) |
861bb6c1 | 4981 | tm_file=ns32k/netbsd.h |
641d4216 | 4982 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 4983 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 4984 | fixincludes=fixinc.wrap |
861bb6c1 JL |
4985 | tmake_file=t-netbsd |
4986 | ;; | |
4987 | pdp11-*-bsd) | |
4988 | tm_file="${tm_file} pdp11/2bsd.h" | |
4989 | ;; | |
4990 | pdp11-*-*) | |
4991 | ;; | |
1b4a979b ME |
4992 | ns32k-*-openbsd*) |
4993 | # Nothing special | |
4994 | ;; | |
861bb6c1 JL |
4995 | pyramid-*-*) |
4996 | cpu_type=pyr | |
4997 | xmake_file=pyr/x-pyr | |
4998 | use_collect2=yes | |
4999 | ;; | |
5000 | romp-*-aos*) | |
5001 | use_collect2=yes | |
5002 | ;; | |
5003 | romp-*-mach*) | |
5004 | xmake_file=romp/x-mach | |
5005 | use_collect2=yes | |
5006 | ;; | |
1b4a979b ME |
5007 | romp-*-openbsd*) |
5008 | # Nothing special | |
5009 | ;; | |
5010 | powerpc-*-openbsd*) | |
5011 | tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd" | |
5012 | xmake_file=none | |
5013 | ;; | |
c55dcc7d FF |
5014 | powerpc-*-beos*) |
5015 | cpu_type=rs6000 | |
5016 | tm_file=rs6000/beos.h | |
5017 | xm_file=rs6000/xm-beos.h | |
5018 | tmake_file=rs6000/t-beos | |
5019 | xmake_file=rs6000/x-beos | |
5020 | ;; | |
861bb6c1 JL |
5021 | powerpc-*-sysv* | powerpc-*-elf*) |
5022 | tm_file=rs6000/sysv4.h | |
f6cb0e63 JL |
5023 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5024 | xm_defines="USG POSIX" | |
861bb6c1 | 5025 | extra_headers=ppc-asm.h |
75bffa71 | 5026 | if test x$gas = xyes |
861bb6c1 JL |
5027 | then |
5028 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5029 | else | |
5030 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5031 | fi | |
5032 | xmake_file=rs6000/x-sysv4 | |
5033 | ;; | |
5034 | powerpc-*-eabiaix*) | |
5035 | tm_file=rs6000/eabiaix.h | |
5036 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5037 | fixincludes=Makefile.in | |
5038 | extra_headers=ppc-asm.h | |
5039 | ;; | |
5040 | powerpc-*-eabisim*) | |
5041 | tm_file=rs6000/eabisim.h | |
5042 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5043 | fixincludes=Makefile.in | |
5044 | extra_headers=ppc-asm.h | |
5045 | ;; | |
5046 | powerpc-*-eabi*) | |
5047 | tm_file=rs6000/eabi.h | |
75bffa71 | 5048 | if test x$gas = xyes |
861bb6c1 JL |
5049 | then |
5050 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5051 | else | |
5052 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5053 | fi | |
5054 | fixincludes=Makefile.in | |
5055 | extra_headers=ppc-asm.h | |
5056 | ;; | |
5057 | powerpc-*-rtems*) | |
5058 | tm_file=rs6000/rtems.h | |
75bffa71 | 5059 | if test x$gas = xyes |
861bb6c1 JL |
5060 | then |
5061 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" | |
5062 | else | |
5063 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" | |
5064 | fi | |
5065 | fixincludes=Makefile.in | |
5066 | extra_headers=ppc-asm.h | |
5067 | ;; | |
ce514f57 FS |
5068 | powerpc-*-linux-gnulibc1) |
5069 | tm_file=rs6000/linux.h | |
5070 | xm_file=rs6000/xm-sysv4.h | |
5071 | out_file=rs6000/rs6000.c | |
75bffa71 | 5072 | if test x$gas = xyes |
ce514f57 FS |
5073 | then |
5074 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5075 | else | |
5076 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
5077 | fi | |
5078 | xmake_file=x-linux | |
5079 | fixincludes=Makefile.in | |
5080 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
5081 | extra_headers=ppc-asm.h | |
75bffa71 | 5082 | if test x$enable_threads = xyes; then |
ce514f57 FS |
5083 | thread_file='posix' |
5084 | fi | |
5085 | ;; | |
861bb6c1 JL |
5086 | powerpc-*-linux-gnu*) |
5087 | tm_file=rs6000/linux.h | |
f6cb0e63 JL |
5088 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5089 | xm_defines="USG ${xm_defines}" | |
861bb6c1 | 5090 | out_file=rs6000/rs6000.c |
75bffa71 | 5091 | if test x$gas = xyes |
861bb6c1 JL |
5092 | then |
5093 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" | |
5094 | else | |
5095 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" | |
5096 | fi | |
5097 | xmake_file=x-linux | |
5098 | fixincludes=Makefile.in | |
5099 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
5100 | extra_headers=ppc-asm.h | |
75bffa71 | 5101 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5102 | thread_file='posix' |
5103 | fi | |
5104 | ;; | |
7cc34889 | 5105 | powerpc-wrs-vxworks*) |
861bb6c1 | 5106 | cpu_type=rs6000 |
f6cb0e63 JL |
5107 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5108 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5109 | tm_file=rs6000/vxppc.h |
5110 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5111 | extra_headers=ppc-asm.h | |
7cc34889 | 5112 | thread_file='vxworks' |
861bb6c1 JL |
5113 | ;; |
5114 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
5115 | tm_file=rs6000/sysv4le.h | |
f6cb0e63 JL |
5116 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5117 | xm_defines="USG POSIX" | |
75bffa71 | 5118 | if test x$gas = xyes |
861bb6c1 JL |
5119 | then |
5120 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5121 | else | |
5122 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5123 | fi | |
5124 | xmake_file=rs6000/x-sysv4 | |
5125 | extra_headers=ppc-asm.h | |
5126 | ;; | |
5127 | powerpcle-*-eabisim*) | |
5128 | tm_file=rs6000/eabilesim.h | |
5129 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5130 | fixincludes=Makefile.in | |
5131 | extra_headers=ppc-asm.h | |
5132 | ;; | |
5133 | powerpcle-*-eabi*) | |
5134 | tm_file=rs6000/eabile.h | |
75bffa71 | 5135 | if test x$gas = xyes |
861bb6c1 JL |
5136 | then |
5137 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
5138 | else | |
5139 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5140 | fi | |
5141 | fixincludes=Makefile.in | |
5142 | extra_headers=ppc-asm.h | |
5143 | ;; | |
5144 | powerpcle-*-winnt* ) | |
5145 | tm_file=rs6000/win-nt.h | |
5146 | tmake_file=rs6000/t-winnt | |
5147 | # extra_objs=pe.o | |
5148 | fixincludes=Makefile.in | |
75bffa71 | 5149 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5150 | thread_file='win32' |
5151 | fi | |
5152 | extra_headers=ppc-asm.h | |
5153 | ;; | |
cae21ae8 GN |
5154 | powerpcle-*-pe | powerpcle-*-cygwin*) |
5155 | tm_file=rs6000/cygwin.h | |
5156 | xm_file="rs6000/xm-cygwin.h ${xm_file}" | |
861bb6c1 | 5157 | tmake_file=rs6000/t-winnt |
cae21ae8 | 5158 | xmake_file=rs6000/x-cygwin |
861bb6c1 JL |
5159 | # extra_objs=pe.o |
5160 | fixincludes=Makefile.in | |
75bffa71 | 5161 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5162 | thread_file='win32' |
5163 | fi | |
5164 | exeext=.exe | |
5165 | extra_headers=ppc-asm.h | |
5166 | ;; | |
5167 | powerpcle-*-solaris2*) | |
5168 | tm_file=rs6000/sol2.h | |
f6cb0e63 JL |
5169 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
5170 | xm_defines="USG POSIX" | |
75bffa71 | 5171 | if test x$gas = xyes |
861bb6c1 JL |
5172 | then |
5173 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
5174 | else | |
5175 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
5176 | fi | |
5177 | xmake_file=rs6000/x-sysv4 | |
f6cb0e63 JL |
5178 | case $machine in |
5179 | *-*-solaris2.[0-4]) | |
5180 | fixincludes=fixinc.svr4;; | |
5181 | *) | |
32f65aa0 | 5182 | fixincludes=fixinc.wrap;; |
f6cb0e63 | 5183 | esac |
861bb6c1 JL |
5184 | extra_headers=ppc-asm.h |
5185 | ;; | |
5186 | rs6000-ibm-aix3.[01]*) | |
5187 | tm_file=rs6000/aix31.h | |
5188 | xmake_file=rs6000/x-aix31 | |
5189 | use_collect2=yes | |
5190 | ;; | |
5191 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
5192 | tm_file=rs6000/aix3newas.h | |
75bffa71 | 5193 | if test x$host != x$target |
861bb6c1 JL |
5194 | then |
5195 | tmake_file=rs6000/t-xnewas | |
5196 | else | |
5197 | tmake_file=rs6000/t-newas | |
5198 | fi | |
5199 | use_collect2=yes | |
5200 | ;; | |
05cea40f | 5201 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
20fced2c | 5202 | if test "$gnu_ld" = yes |
d202e8aa | 5203 | then |
20fced2c MM |
5204 | tm_file=rs6000/aix41-gld.h |
5205 | else | |
5206 | tm_file=rs6000/aix41.h | |
5207 | fi | |
75bffa71 | 5208 | if test x$host != x$target |
861bb6c1 JL |
5209 | then |
5210 | tmake_file=rs6000/t-xnewas | |
5211 | else | |
5212 | tmake_file=rs6000/t-newas | |
5213 | fi | |
0a95276e JL |
5214 | xmake_file=rs6000/x-aix41 |
5215 | use_collect2=yes | |
5216 | ;; | |
5217 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
5218 | tm_file=rs6000/aix43.h | |
75bffa71 | 5219 | if test x$host != x$target |
0a95276e JL |
5220 | then |
5221 | tmake_file=rs6000/t-xaix43 | |
5222 | else | |
5223 | tmake_file=rs6000/t-aix43 | |
5224 | fi | |
5225 | xmake_file=rs6000/x-aix43 | |
5226 | use_collect2=yes | |
5227 | ;; | |
5228 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
5229 | tm_file=rs6000/aix43.h | |
75bffa71 | 5230 | if test x$host != x$target |
0a95276e JL |
5231 | then |
5232 | tmake_file=rs6000/t-xaix43 | |
5233 | else | |
5234 | tmake_file=rs6000/t-aix43 | |
5235 | fi | |
5236 | xmake_file=rs6000/x-aix43 | |
861bb6c1 JL |
5237 | use_collect2=yes |
5238 | ;; | |
5239 | rs6000-ibm-aix*) | |
5240 | use_collect2=yes | |
5241 | ;; | |
5242 | rs6000-bull-bosx) | |
5243 | use_collect2=yes | |
5244 | ;; | |
5245 | rs6000-*-mach*) | |
5246 | tm_file=rs6000/mach.h | |
f6cb0e63 | 5247 | xm_file="${xm_file} rs6000/xm-mach.h" |
861bb6c1 JL |
5248 | xmake_file=rs6000/x-mach |
5249 | use_collect2=yes | |
5250 | ;; | |
5251 | rs6000-*-lynxos*) | |
5252 | tm_file=rs6000/lynx.h | |
5253 | xm_file=rs6000/xm-lynx.h | |
5254 | tmake_file=rs6000/t-rs6000 | |
5255 | xmake_file=rs6000/x-lynx | |
5256 | use_collect2=yes | |
5257 | ;; | |
5258 | sh-*-elf*) | |
5259 | tm_file=sh/elf.h | |
5260 | float_format=sh | |
5261 | ;; | |
b098f56d JS |
5262 | sh-*-rtemself*) |
5263 | tmake_file="sh/t-sh t-rtems" | |
5264 | tm_file=sh/rtemself.h | |
5265 | float_format=sh | |
5266 | ;; | |
5d84b57e JS |
5267 | sh-*-rtems*) |
5268 | tmake_file="sh/t-sh t-rtems" | |
5269 | tm_file=sh/rtems.h | |
5270 | float_format=sh | |
5271 | ;; | |
861bb6c1 JL |
5272 | sh-*-*) |
5273 | float_format=sh | |
5274 | ;; | |
5275 | sparc-tti-*) | |
5276 | tm_file=sparc/pbd.h | |
f6cb0e63 JL |
5277 | xm_file="xm-alloca.h ${xm_file}" |
5278 | xm_defines=USG | |
861bb6c1 JL |
5279 | ;; |
5280 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
5281 | tm_file=sparc/vxsparc.h | |
5282 | tmake_file=sparc/t-vxsparc | |
5283 | use_collect2=yes | |
7cc34889 | 5284 | thread_file='vxworks' |
861bb6c1 JL |
5285 | ;; |
5286 | sparc-*-aout*) | |
5287 | tmake_file=sparc/t-sparcbare | |
5288 | tm_file="sparc/aout.h libgloss.h" | |
5289 | ;; | |
5290 | sparc-*-netbsd*) | |
5291 | tm_file=sparc/netbsd.h | |
be1ed94f | 5292 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 5293 | fixincludes=fixinc.wrap |
861bb6c1 JL |
5294 | tmake_file=t-netbsd |
5295 | ;; | |
1b4a979b ME |
5296 | sparc-*-openbsd*) |
5297 | # we need collect2 until our bug is fixed... | |
5298 | use_collect2=yes | |
5299 | ;; | |
861bb6c1 JL |
5300 | sparc-*-bsd*) |
5301 | tm_file=sparc/bsd.h | |
5302 | ;; | |
ac52b80b DE |
5303 | sparc-*-elf*) |
5304 | tm_file=sparc/elf.h | |
5305 | tmake_file=sparc/t-elf | |
5306 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
5307 | #float_format=i128 | |
5308 | float_format=i64 | |
5309 | ;; | |
956d6950 | 5310 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
f6cb0e63 | 5311 | xm_file="${xm_file} sparc/xm-linux.h" |
861bb6c1 JL |
5312 | tm_file=sparc/linux-aout.h |
5313 | xmake_file=x-linux | |
5314 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
5315 | gnu_ld=yes |
5316 | ;; | |
956d6950 | 5317 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
f6cb0e63 | 5318 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5319 | xmake_file=x-linux |
861bb6c1 | 5320 | tm_file=sparc/linux.h |
3e88bbdb | 5321 | tmake_file="t-linux t-linux-gnulibc1" |
861bb6c1 JL |
5322 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5323 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 JL |
5324 | gnu_ld=yes |
5325 | ;; | |
956d6950 | 5326 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
f6cb0e63 | 5327 | xm_file="${xm_file} sparc/xm-linux.h" |
26b551af | 5328 | xmake_file=x-linux |
861bb6c1 | 5329 | tm_file=sparc/linux.h |
3e88bbdb | 5330 | tmake_file="t-linux" |
861bb6c1 JL |
5331 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
5332 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
861bb6c1 | 5333 | gnu_ld=yes |
75bffa71 | 5334 | if test x$enable_threads = xyes; then |
861bb6c1 JL |
5335 | thread_file='posix' |
5336 | fi | |
5337 | ;; | |
5338 | sparc-*-lynxos*) | |
75bffa71 | 5339 | if test x$gas = xyes |
861bb6c1 JL |
5340 | then |
5341 | tm_file=sparc/lynx.h | |
5342 | else | |
5343 | tm_file=sparc/lynx-ng.h | |
5344 | fi | |
5345 | xm_file=sparc/xm-lynx.h | |
5346 | tmake_file=sparc/t-sunos41 | |
5347 | xmake_file=x-lynx | |
5348 | ;; | |
5349 | sparc-*-rtems*) | |
5350 | tmake_file="sparc/t-sparcbare t-rtems" | |
5351 | tm_file=sparc/rtems.h | |
5352 | ;; | |
d559a4db DM |
5353 | sparcv9-*-solaris2*) |
5354 | tm_file=sparc/sol2-sld-64.h | |
5355 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
5356 | xm_defines="USG POSIX" | |
345a6161 | 5357 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
5358 | xmake_file=sparc/x-sysv4 |
5359 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
5360 | fixincludes=fixinc.wrap | |
027ea2a7 | 5361 | float_format=none |
d7496fbb | 5362 | if test x${enable_threads} = x ; then |
d559a4db | 5363 | enable_threads=$have_pthread_h |
d7496fbb | 5364 | if test x${enable_threads} = x ; then |
d559a4db DM |
5365 | enable_threads=$have_thread_h |
5366 | fi | |
5367 | fi | |
d7496fbb DM |
5368 | if test x${enable_threads} = xyes ; then |
5369 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
5370 | thread_file='posix' |
5371 | else | |
5372 | thread_file='solaris' | |
5373 | fi | |
5374 | fi | |
5375 | ;; | |
ab87f8c8 JL |
5376 | sparc-hal-solaris2*) |
5377 | xm_file=sparc/xm-sol2.h | |
5378 | tm_file="sparc/sol2.h sparc/hal.h" | |
5379 | tmake_file="sparc/t-halos sparc/t-sol2" | |
5380 | xmake_file=sparc/x-sysv4 | |
5381 | extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o" | |
5382 | fixincludes=fixinc.svr4 | |
5383 | broken_install=yes | |
5384 | ;; | |
861bb6c1 | 5385 | sparc-*-solaris2*) |
75bffa71 | 5386 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
5387 | then |
5388 | tm_file=sparc/sol2.h | |
5389 | else | |
5390 | tm_file=sparc/sol2-sld.h | |
5391 | fi | |
0b3d64d2 JL |
5392 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5393 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5394 | tmake_file=sparc/t-sol2 |
5395 | xmake_file=sparc/x-sysv4 | |
5396 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
f6cb0e63 JL |
5397 | case $machine in |
5398 | *-*-solaris2.[0-4]) | |
027ea2a7 JW |
5399 | fixincludes=fixinc.svr4 |
5400 | float_format=i128 | |
5401 | ;; | |
f6cb0e63 | 5402 | *) |
027ea2a7 JW |
5403 | fixincludes=fixinc.wrap |
5404 | float_format=none | |
5405 | ;; | |
f6cb0e63 | 5406 | esac |
75bffa71 | 5407 | if test x${enable_threads} = x; then |
f24af81b | 5408 | enable_threads=$have_pthread_h |
75bffa71 | 5409 | if test x${enable_threads} = x; then |
f24af81b TT |
5410 | enable_threads=$have_thread_h |
5411 | fi | |
5412 | fi | |
75bffa71 ILT |
5413 | if test x${enable_threads} = xyes; then |
5414 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
5415 | thread_file='posix' |
5416 | else | |
861bb6c1 | 5417 | thread_file='solaris' |
f24af81b | 5418 | fi |
861bb6c1 JL |
5419 | fi |
5420 | ;; | |
5421 | sparc-*-sunos4.0*) | |
5422 | tm_file=sparc/sunos4.h | |
5423 | tmake_file=sparc/t-sunos40 | |
5424 | use_collect2=yes | |
5425 | ;; | |
5426 | sparc-*-sunos4*) | |
5427 | tm_file=sparc/sunos4.h | |
5428 | tmake_file=sparc/t-sunos41 | |
5429 | use_collect2=yes | |
75bffa71 | 5430 | if test x$gas = xyes; then |
ca55abae JM |
5431 | tm_file="${tm_file} sparc/sun4gas.h" |
5432 | fi | |
861bb6c1 JL |
5433 | ;; |
5434 | sparc-*-sunos3*) | |
5435 | tm_file=sparc/sun4o3.h | |
5436 | use_collect2=yes | |
5437 | ;; | |
5438 | sparc-*-sysv4*) | |
5439 | tm_file=sparc/sysv4.h | |
f6cb0e63 JL |
5440 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
5441 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5442 | tmake_file=t-svr4 |
5443 | xmake_file=sparc/x-sysv4 | |
5444 | extra_parts="crtbegin.o crtend.o" | |
5445 | ;; | |
5446 | sparc-*-vxsim*) | |
f5963e61 JL |
5447 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
5448 | xm_defines="USG POSIX" | |
861bb6c1 JL |
5449 | tm_file=sparc/vxsim.h |
5450 | tmake_file=sparc/t-vxsparc | |
5451 | xmake_file=sparc/x-sysv4 | |
5452 | ;; | |
5453 | sparclet-*-aout*) | |
5454 | tm_file="sparc/splet.h libgloss.h" | |
5455 | tmake_file=sparc/t-splet | |
5456 | ;; | |
5457 | sparclite-*-coff*) | |
5458 | tm_file="sparc/litecoff.h libgloss.h" | |
5459 | tmake_file=sparc/t-sparclite | |
5460 | ;; | |
5461 | sparclite-*-aout*) | |
5462 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
5463 | tmake_file=sparc/t-sparclite | |
5464 | ;; | |
5465 | sparc64-*-aout*) | |
5466 | tmake_file=sparc/t-sp64 | |
5467 | tm_file=sparc/sp64-aout.h | |
5468 | ;; | |
5469 | sparc64-*-elf*) | |
5470 | tmake_file=sparc/t-sp64 | |
5471 | tm_file=sparc/sp64-elf.h | |
5472 | extra_parts="crtbegin.o crtend.o" | |
5473 | ;; | |
956d6950 | 5474 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 5475 | tmake_file="t-linux sparc/t-linux64" |
26b551af DE |
5476 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
5477 | tm_file=sparc/linux64.h | |
5478 | xmake_file=x-linux | |
956d6950 | 5479 | fixincludes=Makefile.in # The headers are ok already. |
345a6161 | 5480 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
26b551af DE |
5481 | gnu_ld=yes |
5482 | ;; | |
861bb6c1 JL |
5483 | # This hasn't been upgraded to GCC 2. |
5484 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
5485 | # tm_file=tahoe/harris.h | |
5486 | # ;; | |
5487 | # tahoe-*-bsd*) # tahoe running BSD | |
5488 | # ;; | |
e98e406f NC |
5489 | thumb-*-coff* | thumbel-*-coff*) |
5490 | tm_file=arm/tcoff.h | |
5491 | out_file=arm/thumb.c | |
5492 | xm_file=arm/xm-thumb.h | |
5493 | md_file=arm/thumb.md | |
5494 | tmake_file=arm/t-thumb | |
3ecb16a2 | 5495 | fixincludes=Makefile.in # There is nothing to fix |
e98e406f | 5496 | ;; |
861bb6c1 JL |
5497 | # This hasn't been upgraded to GCC 2. |
5498 | # tron-*-*) | |
5499 | # cpu_type=gmicro | |
5500 | # use_collect2=yes | |
5501 | # ;; | |
f84271d9 JL |
5502 | v850-*-*) |
5503 | cpu_type=v850 | |
5504 | tm_file="v850/v850.h" | |
5505 | xm_file="v850/xm-v850.h" | |
62db76ee | 5506 | tmake_file=v850/t-v850 |
75bffa71 | 5507 | if test x$stabs = xyes |
f84271d9 JL |
5508 | then |
5509 | tm_file="${tm_file} dbx.h" | |
5510 | fi | |
5511 | use_collect2=no | |
5512 | ;; | |
861bb6c1 JL |
5513 | vax-*-bsd*) # vaxen running BSD |
5514 | use_collect2=yes | |
5515 | float_format=vax | |
5516 | ;; | |
5517 | vax-*-sysv*) # vaxen running system V | |
5518 | tm_file="${tm_file} vax/vaxv.h" | |
f6cb0e63 | 5519 | xm_defines=USG |
861bb6c1 JL |
5520 | float_format=vax |
5521 | ;; | |
5522 | vax-*-netbsd*) | |
5523 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
be1ed94f | 5524 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 5525 | fixincludes=fixinc.wrap |
861bb6c1 JL |
5526 | tmake_file=t-netbsd |
5527 | float_format=vax | |
5528 | ;; | |
1b4a979b ME |
5529 | vax-*-openbsd*) |
5530 | tmake_file="${tm_file} vax/t-openbsd" | |
5531 | ;; | |
861bb6c1 JL |
5532 | vax-*-ultrix*) # vaxen running ultrix |
5533 | tm_file="${tm_file} vax/ultrix.h" | |
5534 | use_collect2=yes | |
5535 | float_format=vax | |
5536 | ;; | |
5537 | vax-*-vms*) # vaxen running VMS | |
5538 | xm_file=vax/xm-vms.h | |
5539 | tm_file=vax/vms.h | |
5540 | float_format=vax | |
5541 | ;; | |
5542 | vax-*-*) # vax default entry | |
5543 | float_format=vax | |
5544 | ;; | |
5545 | we32k-att-sysv*) | |
5546 | xm_file="${xm_file} xm-svr3" | |
5547 | use_collect2=yes | |
5548 | ;; | |
5549 | *) | |
5550 | echo "Configuration $machine not supported" 1>&2 | |
5551 | exit 1 | |
5552 | ;; | |
5553 | esac | |
5554 | ||
5555 | case $machine in | |
5556 | *-*-linux-gnu*) | |
f6cb0e63 | 5557 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
861bb6c1 JL |
5558 | *-*-gnu*) |
5559 | # On the GNU system, the setup is just about the same on | |
5560 | # each different CPU. The specific machines that GNU | |
5561 | # supports are matched above and just set $cpu_type. | |
f6cb0e63 | 5562 | xm_file="xm-gnu.h ${xm_file}" |
861bb6c1 JL |
5563 | tm_file=${cpu_type}/gnu.h |
5564 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
5565 | # GNU always uses ELF. | |
5566 | elf=yes | |
5567 | # GNU tools are the only tools. | |
5568 | gnu_ld=yes | |
5569 | gas=yes | |
5570 | # On GNU, the headers are already okay. | |
5571 | fixincludes=Makefile.in | |
5572 | xmake_file=x-linux # These details are the same as Linux. | |
5573 | tmake_file=t-gnu # These are not. | |
5574 | ;; | |
5575 | *-*-sysv4*) | |
5576 | fixincludes=fixinc.svr4 | |
5577 | xmake_try_sysv=x-sysv | |
861bb6c1 JL |
5578 | install_headers_dir=install-headers-cpio |
5579 | ;; | |
5580 | *-*-sysv*) | |
861bb6c1 JL |
5581 | install_headers_dir=install-headers-cpio |
5582 | ;; | |
5583 | esac | |
5584 | ||
f6cb0e63 | 5585 | # Distinguish i[34567]86 |
861bb6c1 JL |
5586 | # Also, do not run mips-tfile on MIPS if using gas. |
5587 | # Process --with-cpu= for PowerPC/rs6000 | |
5588 | target_cpu_default2= | |
5589 | case $machine in | |
5590 | i486-*-*) | |
5591 | target_cpu_default2=1 | |
5592 | ;; | |
5593 | i586-*-*) | |
5594 | target_cpu_default2=2 | |
5595 | ;; | |
f6cb0e63 | 5596 | i686-*-* | i786-*-*) |
861bb6c1 JL |
5597 | target_cpu_default2=3 |
5598 | ;; | |
5599 | alpha*-*-*) | |
5600 | case $machine in | |
e9a25f70 | 5601 | alphaev6*) |
44e95b19 | 5602 | target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX" |
e9a25f70 JL |
5603 | ;; |
5604 | alphapca56*) | |
fbb5ed67 | 5605 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 5606 | ;; |
861bb6c1 | 5607 | alphaev56*) |
e9a25f70 | 5608 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
861bb6c1 JL |
5609 | ;; |
5610 | alphaev5*) | |
5611 | target_cpu_default2="MASK_CPU_EV5" | |
5612 | ;; | |
5613 | esac | |
5614 | ||
75bffa71 | 5615 | if test x$gas = xyes |
861bb6c1 | 5616 | then |
75bffa71 | 5617 | if test "$target_cpu_default2" = "" |
861bb6c1 JL |
5618 | then |
5619 | target_cpu_default2="MASK_GAS" | |
5620 | else | |
5621 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" | |
5622 | fi | |
5623 | fi | |
5624 | ;; | |
956d6950 JL |
5625 | arm*-*-*) |
5626 | case "x$with_cpu" in | |
5627 | x) | |
5628 | # The most generic | |
5629 | target_cpu_default2="TARGET_CPU_generic" | |
5630 | ;; | |
5631 | ||
5632 | # Distinguish cores, and major variants | |
5633 | # arm7m doesn't exist, but D & I don't affect code | |
5634 | xarm23678 | xarm250 | xarm67010 \ | |
5635 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
5636 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
4525d757 | 5637 | | xstrongarm | xstrongarm110 | xstrongarm1100) |
956d6950 JL |
5638 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5639 | ;; | |
5640 | ||
5641 | xyes | xno) | |
5642 | echo "--with-cpu must be passed a value" 1>&2 | |
5643 | exit 1 | |
5644 | ;; | |
5645 | ||
5646 | *) | |
75bffa71 | 5647 | if test x$pass2done = xyes |
956d6950 JL |
5648 | then |
5649 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5650 | exit 1 | |
5651 | fi | |
5652 | ;; | |
5653 | esac | |
5654 | ;; | |
5655 | ||
861bb6c1 | 5656 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 5657 | if test x$gas = xyes |
861bb6c1 | 5658 | then |
75bffa71 | 5659 | if test x$gnu_ld = xyes |
861bb6c1 JL |
5660 | then |
5661 | target_cpu_default2=20 | |
5662 | else | |
5663 | target_cpu_default2=16 | |
5664 | fi | |
5665 | fi | |
5666 | ;; | |
5667 | mips*-*-*) | |
75bffa71 | 5668 | if test x$gas = xyes |
861bb6c1 JL |
5669 | then |
5670 | target_cpu_default2=16 | |
5671 | fi | |
5672 | ;; | |
5673 | powerpc*-*-* | rs6000-*-*) | |
5674 | case "x$with_cpu" in | |
5675 | x) | |
5676 | ;; | |
5677 | ||
5678 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
5679 | | xrios1 | xrios2 | xrsc | xrsc1 \ | |
5680 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
507ba956 | 5681 | | xec603e | x740 | x750 | x401 \ |
861bb6c1 | 5682 | | x403 | x505 | x801 | x821 | x823 | x860) |
f24b370a | 5683 | target_cpu_default2="\"$with_cpu\"" |
861bb6c1 JL |
5684 | ;; |
5685 | ||
5686 | xyes | xno) | |
5687 | echo "--with-cpu must be passed a value" 1>&2 | |
5688 | exit 1 | |
5689 | ;; | |
5690 | ||
5691 | *) | |
75bffa71 | 5692 | if test x$pass2done = xyes |
956d6950 JL |
5693 | then |
5694 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5695 | exit 1 | |
5696 | fi | |
861bb6c1 JL |
5697 | ;; |
5698 | esac | |
5699 | ;; | |
5700 | sparc*-*-*) | |
5701 | case ".$with_cpu" in | |
5702 | .) | |
5703 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
5704 | ;; | |
8947065c | 5705 | .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9) |
861bb6c1 JL |
5706 | target_cpu_default2="TARGET_CPU_$with_cpu" |
5707 | ;; | |
5708 | *) | |
75bffa71 | 5709 | if test x$pass2done = xyes |
956d6950 JL |
5710 | then |
5711 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
5712 | exit 1 | |
5713 | fi | |
861bb6c1 JL |
5714 | ;; |
5715 | esac | |
5716 | ;; | |
5717 | esac | |
5718 | ||
75bffa71 | 5719 | if test "$target_cpu_default2" != "" |
861bb6c1 | 5720 | then |
75bffa71 | 5721 | if test "$target_cpu_default" != "" |
861bb6c1 JL |
5722 | then |
5723 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
5724 | else | |
5725 | target_cpu_default=$target_cpu_default2 | |
5726 | fi | |
5727 | fi | |
5728 | ||
5729 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
5730 | # Actually, there is now; GNU ld doesn't handle the EH info or |
5731 | # collecting for shared libraries. | |
ca8c3b37 JM |
5732 | #case x$gnu_ld in |
5733 | #xyes) | |
5734 | # use_collect2= | |
5735 | # ;; | |
5736 | #esac | |
861bb6c1 JL |
5737 | |
5738 | # Save data on machine being used to compile GCC in build_xm_file. | |
5739 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 5740 | if test x$pass1done = x |
861bb6c1 | 5741 | then |
75bffa71 | 5742 | if test x"$xm_file" = x |
861bb6c1 JL |
5743 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
5744 | else build_xm_file=$xm_file | |
5745 | fi | |
f6cb0e63 | 5746 | build_xm_defines=$xm_defines |
861bb6c1 JL |
5747 | build_install_headers_dir=$install_headers_dir |
5748 | build_exeext=$exeext | |
5749 | pass1done=yes | |
5750 | else | |
75bffa71 | 5751 | if test x$pass2done = x |
861bb6c1 | 5752 | then |
75bffa71 | 5753 | if test x"$xm_file" = x |
861bb6c1 JL |
5754 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
5755 | else host_xm_file=$xm_file | |
5756 | fi | |
f6cb0e63 | 5757 | host_xm_defines=$xm_defines |
75bffa71 | 5758 | if test x"$xmake_file" = x |
861bb6c1 JL |
5759 | then xmake_file=$cpu_type/x-$cpu_type |
5760 | fi | |
5761 | host_xmake_file="$xmake_file" | |
5762 | host_truncate_target=$truncate_target | |
5763 | host_extra_gcc_objs=$extra_gcc_objs | |
5764 | host_extra_objs=$extra_host_objs | |
6e26218f | 5765 | host_exeext=$exeext |
861bb6c1 JL |
5766 | pass2done=yes |
5767 | fi | |
5768 | fi | |
5769 | done | |
5770 | ||
5771 | extra_objs="${host_extra_objs} ${extra_objs}" | |
5772 | ||
5773 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 5774 | if test x"$tm_file" = x |
861bb6c1 JL |
5775 | then tm_file=$cpu_type/$cpu_type.h; fi |
5776 | ||
75bffa71 | 5777 | if test x$extra_headers = x |
861bb6c1 JL |
5778 | then extra_headers=; fi |
5779 | ||
75bffa71 | 5780 | if test x"$xm_file" = x |
861bb6c1 JL |
5781 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
5782 | ||
75bffa71 | 5783 | if test x$md_file = x |
e98e406f | 5784 | then md_file=$cpu_type/$cpu_type.md; fi |
861bb6c1 | 5785 | |
75bffa71 | 5786 | if test x$out_file = x |
861bb6c1 JL |
5787 | then out_file=$cpu_type/$cpu_type.c; fi |
5788 | ||
75bffa71 | 5789 | if test x"$tmake_file" = x |
861bb6c1 JL |
5790 | then tmake_file=$cpu_type/t-$cpu_type |
5791 | fi | |
5792 | ||
90e6a802 RL |
5793 | if test x"$dwarf2" = xyes |
5794 | then tm_file="tm-dwarf2.h $tm_file" | |
5795 | fi | |
5796 | ||
75bffa71 | 5797 | if test x$float_format = x |
861bb6c1 JL |
5798 | then float_format=i64 |
5799 | fi | |
5800 | ||
027ea2a7 JW |
5801 | if test $float_format = none |
5802 | then float_h_file=Makefile.in | |
5803 | else float_h_file=float-$float_format.h | |
5804 | fi | |
5805 | ||
75bffa71 | 5806 | if test x$enable_haifa = x |
128f7968 RH |
5807 | then |
5808 | case $target in | |
18cae839 | 5809 | alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
5810 | enable_haifa=yes;; |
5811 | esac | |
5812 | fi | |
5813 | ||
9fc9b82a L |
5814 | # Handle cpp installation. |
5815 | if [ x$enable_cpp != x ] | |
5816 | then | |
5817 | tmake_file="$tmake_file t-install-cpp" | |
5818 | fi | |
5819 | ||
861bb6c1 JL |
5820 | # Say what files are being used for the output code and MD file. |
5821 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
5822 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
5823 | ||
5824 | count=a | |
5825 | for f in $tm_file; do | |
5826 | count=${count}x | |
5827 | done | |
75bffa71 | 5828 | if test $count = ax; then |
861bb6c1 JL |
5829 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
5830 | else | |
5831 | echo "Using the following target machine macro files:" | |
5832 | for f in $tm_file; do | |
5833 | echo " $srcdir/config/$f" | |
5834 | done | |
5835 | fi | |
5836 | ||
5837 | count=a | |
5838 | for f in $host_xm_file; do | |
5839 | count=${count}x | |
5840 | done | |
75bffa71 | 5841 | if test $count = ax; then |
861bb6c1 JL |
5842 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
5843 | else | |
5844 | echo "Using the following host machine macro files:" | |
5845 | for f in $host_xm_file; do | |
5846 | echo " $srcdir/config/$f" | |
5847 | done | |
5848 | fi | |
5849 | ||
75bffa71 | 5850 | if test "$host_xm_file" != "$build_xm_file"; then |
861bb6c1 JL |
5851 | count=a |
5852 | for f in $build_xm_file; do | |
5853 | count=${count}x | |
5854 | done | |
75bffa71 | 5855 | if test $count = ax; then |
861bb6c1 JL |
5856 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
5857 | else | |
5858 | echo "Using the following build machine macro files:" | |
5859 | for f in $build_xm_file; do | |
5860 | echo " $srcdir/config/$f" | |
5861 | done | |
5862 | fi | |
5863 | fi | |
5864 | ||
75bffa71 ILT |
5865 | if test x$thread_file = x; then |
5866 | if test x$target_thread_file != x; then | |
a851212a JW |
5867 | thread_file=$target_thread_file |
5868 | else | |
5869 | thread_file='single' | |
5870 | fi | |
861bb6c1 JL |
5871 | fi |
5872 | ||
5873 | # Set up the header files. | |
5874 | # $links is the list of header files to create. | |
5875 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 5876 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 5877 | # the first file included by config.h. |
f6cb0e63 | 5878 | null_defines= |
0056a9b5 | 5879 | host_xm_file="auto-host.h gansidecl.h ${host_xm_file}" |
db81d74a | 5880 | |
b7cb92ad | 5881 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
5882 | # as well. If host!=build, we are in error and need to do more |
5883 | # work to find out the build config parameters. | |
75bffa71 | 5884 | if test x$host = x$build |
db81d74a | 5885 | then |
0056a9b5 | 5886 | build_xm_file="auto-host.h gansidecl.h ${build_xm_file}" |
b7cb92ad JL |
5887 | else |
5888 | # We create a subdir, then run autoconf in the subdir. | |
5889 | # To prevent recursion we set host and build for the new | |
5890 | # invocation of configure to the build for this invocation | |
5891 | # of configure. | |
5892 | tempdir=build.$$ | |
5893 | rm -rf $tempdir | |
5894 | mkdir $tempdir | |
5895 | cd $tempdir | |
5896 | case ${srcdir} in | |
5897 | /*) realsrcdir=${srcdir};; | |
5898 | *) realsrcdir=../${srcdir};; | |
5899 | esac | |
fe81dd69 | 5900 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
5901 | --target=$target --host=$build --build=$build |
5902 | ||
5903 | # We just finished tests for the build machine, so rename | |
5904 | # the file auto-build.h in the gcc directory. | |
5905 | mv auto-host.h ../auto-build.h | |
5906 | cd .. | |
5907 | rm -rf $tempdir | |
0056a9b5 | 5908 | build_xm_file="auto-build.h gansidecl.h ${build_xm_file}" |
db81d74a RH |
5909 | fi |
5910 | ||
0056a9b5 KG |
5911 | xm_file="gansidecl.h ${xm_file}" |
5912 | tm_file="gansidecl.h ${tm_file}" | |
5913 | ||
861bb6c1 | 5914 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 5915 | links="config.h tm.h tconfig.h hconfig.h" |
f6cb0e63 | 5916 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
861bb6c1 JL |
5917 | |
5918 | rm -f config.bak | |
75bffa71 | 5919 | if test -f config.status; then mv -f config.status config.bak; fi |
861bb6c1 JL |
5920 | |
5921 | # Make the links. | |
75bffa71 | 5922 | while test -n "$vars" |
861bb6c1 | 5923 | do |
861bb6c1 JL |
5924 | set $vars; var=$1; shift; vars=$* |
5925 | set $links; link=$1; shift; links=$* | |
f6cb0e63 | 5926 | set $defines; define=$1; shift; defines=$* |
861bb6c1 JL |
5927 | |
5928 | rm -f $link | |
5929 | ||
5930 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
5931 | # This substitutes for lots of *.h files. | |
75bffa71 | 5932 | if test "$target_cpu_default" != "" -a $link = tm.h |
861bb6c1 | 5933 | then |
8fbf199e | 5934 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
861bb6c1 JL |
5935 | fi |
5936 | ||
5937 | for file in `eval echo '$'$var`; do | |
ab87f8c8 JL |
5938 | case $file in |
5939 | auto-config.h) | |
5940 | ;; | |
5941 | *) | |
5942 | echo '#ifdef IN_GCC' >>$link | |
5943 | ;; | |
5944 | esac | |
861bb6c1 | 5945 | echo "#include \"$file\"" >>$link |
ab87f8c8 JL |
5946 | case $file in |
5947 | auto-config.h) | |
5948 | ;; | |
5949 | *) | |
5950 | echo '#endif' >>$link | |
5951 | ;; | |
5952 | esac | |
861bb6c1 | 5953 | done |
f6cb0e63 JL |
5954 | |
5955 | for def in `eval echo '$'$define`; do | |
5956 | echo "#ifndef $def" >>$link | |
5957 | echo "#define $def" >>$link | |
5958 | echo "#endif" >>$link | |
5959 | done | |
861bb6c1 JL |
5960 | done |
5961 | ||
5962 | # Truncate the target if necessary | |
75bffa71 | 5963 | if test x$host_truncate_target != x; then |
861bb6c1 JL |
5964 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
5965 | fi | |
5966 | ||
f1943b77 | 5967 | # Get the version trigger filename from the toplevel |
75bffa71 | 5968 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
5969 | gcc_version_trigger=$with_gcc_version_trigger |
5970 | else | |
5971 | gcc_version_trigger=${srcdir}/version.c | |
5972 | fi | |
5973 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
861bb6c1 | 5974 | |
ab87f8c8 JL |
5975 | # Internationalization |
5976 | PACKAGE=gcc | |
5977 | VERSION="$gcc_version" | |
5978 | cat >> confdefs.h <<EOF | |
5979 | #define PACKAGE "$PACKAGE" | |
5980 | EOF | |
861bb6c1 | 5981 | |
ab87f8c8 JL |
5982 | cat >> confdefs.h <<EOF |
5983 | #define VERSION "$VERSION" | |
5984 | EOF | |
861bb6c1 | 5985 | |
861bb6c1 | 5986 | |
ab87f8c8 JL |
5987 | |
5988 | ||
5989 | ALL_LINGUAS="en_UK" | |
5990 | ||
5991 | # NLS support is still experimental, so disable it by default for now. | |
5992 | # Check whether --enable-nls or --disable-nls was given. | |
5993 | if test "${enable_nls+set}" = set; then | |
5994 | enableval="$enable_nls" | |
5995 | : | |
861bb6c1 | 5996 | else |
ab87f8c8 | 5997 | enable_nls=no |
861bb6c1 | 5998 | fi |
861bb6c1 | 5999 | |
861bb6c1 | 6000 | |
861bb6c1 | 6001 | |
ab87f8c8 | 6002 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
b27d2bd5 | 6003 | echo "configure:6004: checking for strerror in -lcposix" >&5 |
ab87f8c8 JL |
6004 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
6005 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6007 | else | |
6008 | ac_save_LIBS="$LIBS" | |
6009 | LIBS="-lcposix $LIBS" | |
6010 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6011 | #line 6012 "configure" |
ab87f8c8 JL |
6012 | #include "confdefs.h" |
6013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6014 | /* We use char because int might match the return type of a gcc2 | |
6015 | builtin and then its argument prototype would still apply. */ | |
6016 | char strerror(); | |
861bb6c1 | 6017 | |
ab87f8c8 JL |
6018 | int main() { |
6019 | strerror() | |
6020 | ; return 0; } | |
6021 | EOF | |
b27d2bd5 | 6022 | if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6023 | rm -rf conftest* |
6024 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6025 | else | |
6026 | echo "configure: failed program was:" >&5 | |
6027 | cat conftest.$ac_ext >&5 | |
6028 | rm -rf conftest* | |
6029 | eval "ac_cv_lib_$ac_lib_var=no" | |
861bb6c1 | 6030 | fi |
ab87f8c8 JL |
6031 | rm -f conftest* |
6032 | LIBS="$ac_save_LIBS" | |
861bb6c1 | 6033 | |
861bb6c1 | 6034 | fi |
ab87f8c8 JL |
6035 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6036 | echo "$ac_t""yes" 1>&6 | |
6037 | LIBS="$LIBS -lcposix" | |
861bb6c1 | 6038 | else |
ab87f8c8 | 6039 | echo "$ac_t""no" 1>&6 |
861bb6c1 JL |
6040 | fi |
6041 | ||
ab87f8c8 | 6042 | |
2ce3c6c6 | 6043 | |
ab87f8c8 | 6044 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
b27d2bd5 | 6045 | echo "configure:6046: checking for working const" >&5 |
ab87f8c8 JL |
6046 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
6047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
861bb6c1 | 6048 | else |
ab87f8c8 | 6049 | cat > conftest.$ac_ext <<EOF |
b27d2bd5 | 6050 | #line 6051 "configure" |
ab87f8c8 | 6051 | #include "confdefs.h" |
861bb6c1 | 6052 | |
ab87f8c8 JL |
6053 | int main() { |
6054 | ||
6055 | /* Ultrix mips cc rejects this. */ | |
6056 | typedef int charset[2]; const charset x; | |
6057 | /* SunOS 4.1.1 cc rejects this. */ | |
6058 | char const *const *ccp; | |
6059 | char **p; | |
6060 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6061 | struct point {int x, y;}; | |
6062 | static struct point const zero = {0,0}; | |
6063 | /* AIX XL C 1.02.0.0 rejects this. | |
6064 | It does not let you subtract one const X* pointer from another in an arm | |
6065 | of an if-expression whose if-part is not a constant expression */ | |
6066 | const char *g = "string"; | |
6067 | ccp = &g + (g ? g-g : 0); | |
6068 | /* HPUX 7.0 cc rejects these. */ | |
6069 | ++ccp; | |
6070 | p = (char**) ccp; | |
6071 | ccp = (char const *const *) p; | |
6072 | { /* SCO 3.2v4 cc rejects this. */ | |
6073 | char *t; | |
6074 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6075 | ||
6076 | *t++ = 0; | |
6077 | } | |
6078 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6079 | int x[] = {25, 17}; | |
6080 | const int *foo = &x[0]; | |
6081 | ++foo; | |
6082 | } | |
6083 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6084 | typedef const int *iptr; | |
6085 | iptr p = 0; | |
6086 | ++p; | |
6087 | } | |
6088 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6089 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6090 | struct s { int j; const int *ap[3]; }; | |
6091 | struct s *b; b->j = 5; | |
6092 | } | |
6093 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6094 | const int foo = 10; | |
6095 | } | |
6096 | ||
6097 | ; return 0; } | |
6098 | EOF | |
b27d2bd5 | 6099 | if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6100 | rm -rf conftest* |
6101 | ac_cv_c_const=yes | |
861bb6c1 | 6102 | else |
ab87f8c8 JL |
6103 | echo "configure: failed program was:" >&5 |
6104 | cat conftest.$ac_ext >&5 | |
6105 | rm -rf conftest* | |
6106 | ac_cv_c_const=no | |
6107 | fi | |
6108 | rm -f conftest* | |
861bb6c1 JL |
6109 | fi |
6110 | ||
ab87f8c8 JL |
6111 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
6112 | if test $ac_cv_c_const = no; then | |
6113 | cat >> confdefs.h <<\EOF | |
6114 | #define const | |
6115 | EOF | |
6116 | ||
861bb6c1 JL |
6117 | fi |
6118 | ||
ab87f8c8 | 6119 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
b27d2bd5 | 6120 | echo "configure:6121: checking for inline" >&5 |
ab87f8c8 JL |
6121 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
6122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6123 | else | |
6124 | ac_cv_c_inline=no | |
6125 | for ac_kw in inline __inline__ __inline; do | |
6126 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6127 | #line 6128 "configure" |
ab87f8c8 JL |
6128 | #include "confdefs.h" |
6129 | ||
6130 | int main() { | |
6131 | } $ac_kw foo() { | |
6132 | ; return 0; } | |
6133 | EOF | |
b27d2bd5 | 6134 | if { (eval echo configure:6135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ab87f8c8 JL |
6135 | rm -rf conftest* |
6136 | ac_cv_c_inline=$ac_kw; break | |
6137 | else | |
6138 | echo "configure: failed program was:" >&5 | |
6139 | cat conftest.$ac_ext >&5 | |
4b95eb49 | 6140 | fi |
ab87f8c8 JL |
6141 | rm -f conftest* |
6142 | done | |
4b95eb49 | 6143 | |
992d1248 | 6144 | fi |
861bb6c1 | 6145 | |
ab87f8c8 JL |
6146 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
6147 | case "$ac_cv_c_inline" in | |
6148 | inline | yes) ;; | |
6149 | no) cat >> confdefs.h <<\EOF | |
6150 | #define inline | |
00ccc16d | 6151 | EOF |
ab87f8c8 JL |
6152 | ;; |
6153 | *) cat >> confdefs.h <<EOF | |
6154 | #define inline $ac_cv_c_inline | |
6155 | EOF | |
6156 | ;; | |
6157 | esac | |
6158 | ||
6159 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
b27d2bd5 | 6160 | echo "configure:6161: checking for off_t" >&5 |
ab87f8c8 JL |
6161 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
6162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6163 | else | |
6164 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6165 | #line 6166 "configure" |
ab87f8c8 JL |
6166 | #include "confdefs.h" |
6167 | #include <sys/types.h> | |
6168 | #if STDC_HEADERS | |
6169 | #include <stdlib.h> | |
6170 | #include <stddef.h> | |
6171 | #endif | |
6172 | EOF | |
6173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6174 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6175 | rm -rf conftest* |
6176 | ac_cv_type_off_t=yes | |
6177 | else | |
6178 | rm -rf conftest* | |
6179 | ac_cv_type_off_t=no | |
6180 | fi | |
6181 | rm -f conftest* | |
6182 | ||
6183 | fi | |
6184 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
6185 | if test $ac_cv_type_off_t = no; then | |
6186 | cat >> confdefs.h <<\EOF | |
6187 | #define off_t long | |
6188 | EOF | |
6189 | ||
6190 | fi | |
6191 | ||
6192 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
b27d2bd5 | 6193 | echo "configure:6194: checking for size_t" >&5 |
ab87f8c8 JL |
6194 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
6195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6196 | else | |
6197 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6198 | #line 6199 "configure" |
ab87f8c8 JL |
6199 | #include "confdefs.h" |
6200 | #include <sys/types.h> | |
6201 | #if STDC_HEADERS | |
6202 | #include <stdlib.h> | |
6203 | #include <stddef.h> | |
6204 | #endif | |
6205 | EOF | |
6206 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b27d2bd5 | 6207 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
ab87f8c8 JL |
6208 | rm -rf conftest* |
6209 | ac_cv_type_size_t=yes | |
6210 | else | |
6211 | rm -rf conftest* | |
6212 | ac_cv_type_size_t=no | |
6213 | fi | |
6214 | rm -f conftest* | |
6215 | ||
6216 | fi | |
6217 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
6218 | if test $ac_cv_type_size_t = no; then | |
6219 | cat >> confdefs.h <<\EOF | |
6220 | #define size_t unsigned | |
6221 | EOF | |
6222 | ||
6223 | fi | |
6224 | ||
6225 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6226 | # for constant arguments. Useless! | |
6227 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
b27d2bd5 | 6228 | echo "configure:6229: checking for working alloca.h" >&5 |
ab87f8c8 JL |
6229 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
6230 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6231 | else | |
6232 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6233 | #line 6234 "configure" |
ab87f8c8 JL |
6234 | #include "confdefs.h" |
6235 | #include <alloca.h> | |
6236 | int main() { | |
6237 | char *p = alloca(2 * sizeof(int)); | |
6238 | ; return 0; } | |
6239 | EOF | |
b27d2bd5 | 6240 | if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6241 | rm -rf conftest* |
6242 | ac_cv_header_alloca_h=yes | |
6243 | else | |
6244 | echo "configure: failed program was:" >&5 | |
6245 | cat conftest.$ac_ext >&5 | |
6246 | rm -rf conftest* | |
6247 | ac_cv_header_alloca_h=no | |
6248 | fi | |
6249 | rm -f conftest* | |
6250 | fi | |
6251 | ||
6252 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
6253 | if test $ac_cv_header_alloca_h = yes; then | |
6254 | cat >> confdefs.h <<\EOF | |
6255 | #define HAVE_ALLOCA_H 1 | |
6256 | EOF | |
6257 | ||
6258 | fi | |
6259 | ||
6260 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
b27d2bd5 | 6261 | echo "configure:6262: checking for alloca" >&5 |
ab87f8c8 JL |
6262 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
6263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6264 | else | |
6265 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6266 | #line 6267 "configure" |
ab87f8c8 JL |
6267 | #include "confdefs.h" |
6268 | ||
6269 | #ifdef __GNUC__ | |
6270 | # define alloca __builtin_alloca | |
6271 | #else | |
cd9e5e7c MK |
6272 | # ifdef _MSC_VER |
6273 | # include <malloc.h> | |
6274 | # define alloca _alloca | |
ab87f8c8 | 6275 | # else |
cd9e5e7c MK |
6276 | # if HAVE_ALLOCA_H |
6277 | # include <alloca.h> | |
3723cad9 | 6278 | # else |
cd9e5e7c MK |
6279 | # ifdef _AIX |
6280 | #pragma alloca | |
6281 | # else | |
6282 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
ab87f8c8 | 6283 | char *alloca (); |
cd9e5e7c | 6284 | # endif |
ab87f8c8 JL |
6285 | # endif |
6286 | # endif | |
6287 | # endif | |
6288 | #endif | |
6289 | ||
6290 | int main() { | |
6291 | char *p = (char *) alloca(1); | |
6292 | ; return 0; } | |
6293 | EOF | |
b27d2bd5 | 6294 | if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6295 | rm -rf conftest* |
6296 | ac_cv_func_alloca_works=yes | |
6297 | else | |
6298 | echo "configure: failed program was:" >&5 | |
6299 | cat conftest.$ac_ext >&5 | |
6300 | rm -rf conftest* | |
6301 | ac_cv_func_alloca_works=no | |
6302 | fi | |
6303 | rm -f conftest* | |
6304 | fi | |
6305 | ||
6306 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
6307 | if test $ac_cv_func_alloca_works = yes; then | |
6308 | cat >> confdefs.h <<\EOF | |
6309 | #define HAVE_ALLOCA 1 | |
6310 | EOF | |
6311 | ||
6312 | fi | |
6313 | ||
6314 | if test $ac_cv_func_alloca_works = no; then | |
6315 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6316 | # that cause trouble. Some versions do not even contain alloca or | |
6317 | # contain a buggy version. If you still want to use their alloca, | |
6318 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
cd9e5e7c | 6319 | ALLOCA=alloca.${ac_objext} |
ab87f8c8 JL |
6320 | cat >> confdefs.h <<\EOF |
6321 | #define C_ALLOCA 1 | |
6322 | EOF | |
6323 | ||
6324 | ||
6325 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
b27d2bd5 | 6326 | echo "configure:6327: checking whether alloca needs Cray hooks" >&5 |
ab87f8c8 JL |
6327 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
6328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6329 | else | |
6330 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6331 | #line 6332 "configure" |
ab87f8c8 JL |
6332 | #include "confdefs.h" |
6333 | #if defined(CRAY) && ! defined(CRAY2) | |
6334 | webecray | |
6335 | #else | |
6336 | wenotbecray | |
6337 | #endif | |
6338 | ||
6339 | EOF | |
6340 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6341 | egrep "webecray" >/dev/null 2>&1; then | |
6342 | rm -rf conftest* | |
6343 | ac_cv_os_cray=yes | |
6344 | else | |
6345 | rm -rf conftest* | |
6346 | ac_cv_os_cray=no | |
6347 | fi | |
6348 | rm -f conftest* | |
6349 | ||
6350 | fi | |
6351 | ||
6352 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
6353 | if test $ac_cv_os_cray = yes; then | |
6354 | for ac_func in _getb67 GETB67 getb67; do | |
6355 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 6356 | echo "configure:6357: checking for $ac_func" >&5 |
ab87f8c8 JL |
6357 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6359 | else | |
6360 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6361 | #line 6362 "configure" |
ab87f8c8 JL |
6362 | #include "confdefs.h" |
6363 | /* System header to define __stub macros and hopefully few prototypes, | |
6364 | which can conflict with char $ac_func(); below. */ | |
6365 | #include <assert.h> | |
6366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6367 | /* We use char because int might match the return type of a gcc2 | |
6368 | builtin and then its argument prototype would still apply. */ | |
6369 | char $ac_func(); | |
6370 | ||
6371 | int main() { | |
6372 | ||
6373 | /* The GNU C library defines this for functions which it implements | |
6374 | to always fail with ENOSYS. Some functions are actually named | |
6375 | something starting with __ and the normal name is an alias. */ | |
6376 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6377 | choke me | |
6378 | #else | |
027ea2a7 | 6379 | $ac_func(); |
ab87f8c8 JL |
6380 | #endif |
6381 | ||
6382 | ; return 0; } | |
6383 | EOF | |
b27d2bd5 | 6384 | if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6385 | rm -rf conftest* |
6386 | eval "ac_cv_func_$ac_func=yes" | |
6387 | else | |
6388 | echo "configure: failed program was:" >&5 | |
6389 | cat conftest.$ac_ext >&5 | |
6390 | rm -rf conftest* | |
6391 | eval "ac_cv_func_$ac_func=no" | |
6392 | fi | |
6393 | rm -f conftest* | |
6394 | fi | |
6395 | ||
6396 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6397 | echo "$ac_t""yes" 1>&6 | |
6398 | cat >> confdefs.h <<EOF | |
6399 | #define CRAY_STACKSEG_END $ac_func | |
6400 | EOF | |
6401 | ||
6402 | break | |
6403 | else | |
6404 | echo "$ac_t""no" 1>&6 | |
6405 | fi | |
6406 | ||
6407 | done | |
6408 | fi | |
6409 | ||
6410 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
b27d2bd5 | 6411 | echo "configure:6412: checking stack direction for C alloca" >&5 |
ab87f8c8 JL |
6412 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
6413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6414 | else | |
6415 | if test "$cross_compiling" = yes; then | |
6416 | ac_cv_c_stack_direction=0 | |
6417 | else | |
6418 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6419 | #line 6420 "configure" |
ab87f8c8 JL |
6420 | #include "confdefs.h" |
6421 | find_stack_direction () | |
6422 | { | |
6423 | static char *addr = 0; | |
6424 | auto char dummy; | |
6425 | if (addr == 0) | |
6426 | { | |
6427 | addr = &dummy; | |
6428 | return find_stack_direction (); | |
6429 | } | |
6430 | else | |
6431 | return (&dummy > addr) ? 1 : -1; | |
6432 | } | |
6433 | main () | |
6434 | { | |
6435 | exit (find_stack_direction() < 0); | |
6436 | } | |
6437 | EOF | |
b27d2bd5 | 6438 | if { (eval echo configure:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6439 | then |
6440 | ac_cv_c_stack_direction=1 | |
6441 | else | |
6442 | echo "configure: failed program was:" >&5 | |
6443 | cat conftest.$ac_ext >&5 | |
6444 | rm -fr conftest* | |
6445 | ac_cv_c_stack_direction=-1 | |
6446 | fi | |
6447 | rm -fr conftest* | |
6448 | fi | |
6449 | ||
6450 | fi | |
6451 | ||
6452 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
6453 | cat >> confdefs.h <<EOF | |
6454 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6455 | EOF | |
6456 | ||
6457 | fi | |
6458 | ||
6459 | for ac_hdr in unistd.h | |
6460 | do | |
6461 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6462 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b27d2bd5 | 6463 | echo "configure:6464: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6464 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6466 | else | |
6467 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6468 | #line 6469 "configure" |
ab87f8c8 JL |
6469 | #include "confdefs.h" |
6470 | #include <$ac_hdr> | |
6471 | EOF | |
6472 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 6473 | { (eval echo configure:6474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6474 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6475 | if test -z "$ac_err"; then |
6476 | rm -rf conftest* | |
6477 | eval "ac_cv_header_$ac_safe=yes" | |
6478 | else | |
6479 | echo "$ac_err" >&5 | |
6480 | echo "configure: failed program was:" >&5 | |
6481 | cat conftest.$ac_ext >&5 | |
6482 | rm -rf conftest* | |
6483 | eval "ac_cv_header_$ac_safe=no" | |
6484 | fi | |
6485 | rm -f conftest* | |
6486 | fi | |
6487 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6488 | echo "$ac_t""yes" 1>&6 | |
6489 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6490 | cat >> confdefs.h <<EOF | |
6491 | #define $ac_tr_hdr 1 | |
6492 | EOF | |
6493 | ||
6494 | else | |
6495 | echo "$ac_t""no" 1>&6 | |
6496 | fi | |
6497 | done | |
6498 | ||
6499 | for ac_func in getpagesize | |
6500 | do | |
6501 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 6502 | echo "configure:6503: checking for $ac_func" >&5 |
ab87f8c8 JL |
6503 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6505 | else | |
6506 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6507 | #line 6508 "configure" |
ab87f8c8 JL |
6508 | #include "confdefs.h" |
6509 | /* System header to define __stub macros and hopefully few prototypes, | |
6510 | which can conflict with char $ac_func(); below. */ | |
6511 | #include <assert.h> | |
6512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6513 | /* We use char because int might match the return type of a gcc2 | |
6514 | builtin and then its argument prototype would still apply. */ | |
6515 | char $ac_func(); | |
6516 | ||
6517 | int main() { | |
6518 | ||
6519 | /* The GNU C library defines this for functions which it implements | |
6520 | to always fail with ENOSYS. Some functions are actually named | |
6521 | something starting with __ and the normal name is an alias. */ | |
6522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6523 | choke me | |
6524 | #else | |
027ea2a7 | 6525 | $ac_func(); |
ab87f8c8 JL |
6526 | #endif |
6527 | ||
6528 | ; return 0; } | |
6529 | EOF | |
b27d2bd5 | 6530 | if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6531 | rm -rf conftest* |
6532 | eval "ac_cv_func_$ac_func=yes" | |
6533 | else | |
6534 | echo "configure: failed program was:" >&5 | |
6535 | cat conftest.$ac_ext >&5 | |
6536 | rm -rf conftest* | |
6537 | eval "ac_cv_func_$ac_func=no" | |
6538 | fi | |
6539 | rm -f conftest* | |
6540 | fi | |
6541 | ||
6542 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6543 | echo "$ac_t""yes" 1>&6 | |
6544 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6545 | cat >> confdefs.h <<EOF | |
6546 | #define $ac_tr_func 1 | |
6547 | EOF | |
6548 | ||
6549 | else | |
6550 | echo "$ac_t""no" 1>&6 | |
6551 | fi | |
6552 | done | |
6553 | ||
6554 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
b27d2bd5 | 6555 | echo "configure:6556: checking for working mmap" >&5 |
ab87f8c8 JL |
6556 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6558 | else | |
6559 | if test "$cross_compiling" = yes; then | |
6560 | ac_cv_func_mmap_fixed_mapped=no | |
6561 | else | |
6562 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6563 | #line 6564 "configure" |
ab87f8c8 JL |
6564 | #include "confdefs.h" |
6565 | ||
6566 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6567 | Here is a matrix of mmap possibilities: | |
6568 | mmap private not fixed | |
6569 | mmap private fixed at somewhere currently unmapped | |
6570 | mmap private fixed at somewhere already mapped | |
6571 | mmap shared not fixed | |
6572 | mmap shared fixed at somewhere currently unmapped | |
6573 | mmap shared fixed at somewhere already mapped | |
6574 | For private mappings, we should verify that changes cannot be read() | |
6575 | back from the file, nor mmap's back from the file at a different | |
6576 | address. (There have been systems where private was not correctly | |
6577 | implemented like the infamous i386 svr4.0, and systems where the | |
6578 | VM page cache was not coherent with the filesystem buffer cache | |
6579 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6580 | For shared mappings, we should conversely verify that changes get | |
6581 | propogated back to all the places they're supposed to be. | |
6582 | ||
6583 | Grep wants private fixed already mapped. | |
6584 | The main things grep needs to know about mmap are: | |
6585 | * does it exist and is it safe to write into the mmap'd area | |
6586 | * how to use it (BSD variants) */ | |
6587 | #include <sys/types.h> | |
6588 | #include <fcntl.h> | |
6589 | #include <sys/mman.h> | |
6590 | ||
6591 | /* This mess was copied from the GNU getpagesize.h. */ | |
6592 | #ifndef HAVE_GETPAGESIZE | |
6593 | # ifdef HAVE_UNISTD_H | |
6594 | # include <unistd.h> | |
6595 | # endif | |
6596 | ||
6597 | /* Assume that all systems that can run configure have sys/param.h. */ | |
6598 | # ifndef HAVE_SYS_PARAM_H | |
6599 | # define HAVE_SYS_PARAM_H 1 | |
6600 | # endif | |
6601 | ||
6602 | # ifdef _SC_PAGESIZE | |
6603 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6604 | # else /* no _SC_PAGESIZE */ | |
6605 | # ifdef HAVE_SYS_PARAM_H | |
6606 | # include <sys/param.h> | |
6607 | # ifdef EXEC_PAGESIZE | |
6608 | # define getpagesize() EXEC_PAGESIZE | |
6609 | # else /* no EXEC_PAGESIZE */ | |
6610 | # ifdef NBPG | |
6611 | # define getpagesize() NBPG * CLSIZE | |
6612 | # ifndef CLSIZE | |
6613 | # define CLSIZE 1 | |
6614 | # endif /* no CLSIZE */ | |
6615 | # else /* no NBPG */ | |
6616 | # ifdef NBPC | |
6617 | # define getpagesize() NBPC | |
6618 | # else /* no NBPC */ | |
6619 | # ifdef PAGESIZE | |
6620 | # define getpagesize() PAGESIZE | |
6621 | # endif /* PAGESIZE */ | |
6622 | # endif /* no NBPC */ | |
6623 | # endif /* no NBPG */ | |
6624 | # endif /* no EXEC_PAGESIZE */ | |
6625 | # else /* no HAVE_SYS_PARAM_H */ | |
6626 | # define getpagesize() 8192 /* punt totally */ | |
6627 | # endif /* no HAVE_SYS_PARAM_H */ | |
6628 | # endif /* no _SC_PAGESIZE */ | |
6629 | ||
6630 | #endif /* no HAVE_GETPAGESIZE */ | |
6631 | ||
6632 | #ifdef __cplusplus | |
6633 | extern "C" { void *malloc(unsigned); } | |
6634 | #else | |
6635 | char *malloc(); | |
6636 | #endif | |
6637 | ||
6638 | int | |
6639 | main() | |
6640 | { | |
6641 | char *data, *data2, *data3; | |
6642 | int i, pagesize; | |
6643 | int fd; | |
6644 | ||
6645 | pagesize = getpagesize(); | |
6646 | ||
6647 | /* | |
6648 | * First, make a file with some known garbage in it. | |
6649 | */ | |
6650 | data = malloc(pagesize); | |
6651 | if (!data) | |
6652 | exit(1); | |
6653 | for (i = 0; i < pagesize; ++i) | |
6654 | *(data + i) = rand(); | |
6655 | umask(0); | |
6656 | fd = creat("conftestmmap", 0600); | |
6657 | if (fd < 0) | |
6658 | exit(1); | |
6659 | if (write(fd, data, pagesize) != pagesize) | |
6660 | exit(1); | |
6661 | close(fd); | |
6662 | ||
6663 | /* | |
6664 | * Next, try to mmap the file at a fixed address which | |
6665 | * already has something else allocated at it. If we can, | |
6666 | * also make sure that we see the same garbage. | |
6667 | */ | |
6668 | fd = open("conftestmmap", O_RDWR); | |
6669 | if (fd < 0) | |
6670 | exit(1); | |
6671 | data2 = malloc(2 * pagesize); | |
6672 | if (!data2) | |
6673 | exit(1); | |
6674 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6675 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
6676 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6677 | exit(1); | |
6678 | for (i = 0; i < pagesize; ++i) | |
6679 | if (*(data + i) != *(data2 + i)) | |
6680 | exit(1); | |
6681 | ||
6682 | /* | |
6683 | * Finally, make sure that changes to the mapped area | |
6684 | * do not percolate back to the file as seen by read(). | |
6685 | * (This is a bug on some variants of i386 svr4.0.) | |
6686 | */ | |
6687 | for (i = 0; i < pagesize; ++i) | |
6688 | *(data2 + i) = *(data2 + i) + 1; | |
6689 | data3 = malloc(pagesize); | |
6690 | if (!data3) | |
6691 | exit(1); | |
6692 | if (read(fd, data3, pagesize) != pagesize) | |
6693 | exit(1); | |
6694 | for (i = 0; i < pagesize; ++i) | |
6695 | if (*(data + i) != *(data3 + i)) | |
6696 | exit(1); | |
6697 | close(fd); | |
6698 | unlink("conftestmmap"); | |
6699 | exit(0); | |
6700 | } | |
6701 | ||
6702 | EOF | |
b27d2bd5 | 6703 | if { (eval echo configure:6704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ab87f8c8 JL |
6704 | then |
6705 | ac_cv_func_mmap_fixed_mapped=yes | |
6706 | else | |
6707 | echo "configure: failed program was:" >&5 | |
6708 | cat conftest.$ac_ext >&5 | |
6709 | rm -fr conftest* | |
6710 | ac_cv_func_mmap_fixed_mapped=no | |
6711 | fi | |
6712 | rm -fr conftest* | |
6713 | fi | |
6714 | ||
6715 | fi | |
6716 | ||
6717 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
6718 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6719 | cat >> confdefs.h <<\EOF | |
6720 | #define HAVE_MMAP 1 | |
6721 | EOF | |
6722 | ||
6723 | fi | |
6724 | ||
6725 | ||
6726 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
6727 | unistd.h sys/param.h | |
6728 | do | |
6729 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6730 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b27d2bd5 | 6731 | echo "configure:6732: checking for $ac_hdr" >&5 |
ab87f8c8 JL |
6732 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6734 | else | |
6735 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6736 | #line 6737 "configure" |
ab87f8c8 JL |
6737 | #include "confdefs.h" |
6738 | #include <$ac_hdr> | |
6739 | EOF | |
6740 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 6741 | { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6742 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6743 | if test -z "$ac_err"; then |
6744 | rm -rf conftest* | |
6745 | eval "ac_cv_header_$ac_safe=yes" | |
6746 | else | |
6747 | echo "$ac_err" >&5 | |
6748 | echo "configure: failed program was:" >&5 | |
6749 | cat conftest.$ac_ext >&5 | |
6750 | rm -rf conftest* | |
6751 | eval "ac_cv_header_$ac_safe=no" | |
6752 | fi | |
6753 | rm -f conftest* | |
6754 | fi | |
6755 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6756 | echo "$ac_t""yes" 1>&6 | |
6757 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6758 | cat >> confdefs.h <<EOF | |
6759 | #define $ac_tr_hdr 1 | |
6760 | EOF | |
6761 | ||
6762 | else | |
6763 | echo "$ac_t""no" 1>&6 | |
6764 | fi | |
6765 | done | |
6766 | ||
6767 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
6768 | strdup __argz_count __argz_stringify __argz_next | |
6769 | do | |
6770 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 6771 | echo "configure:6772: checking for $ac_func" >&5 |
ab87f8c8 JL |
6772 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6774 | else | |
6775 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6776 | #line 6777 "configure" |
ab87f8c8 JL |
6777 | #include "confdefs.h" |
6778 | /* System header to define __stub macros and hopefully few prototypes, | |
6779 | which can conflict with char $ac_func(); below. */ | |
6780 | #include <assert.h> | |
6781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6782 | /* We use char because int might match the return type of a gcc2 | |
6783 | builtin and then its argument prototype would still apply. */ | |
6784 | char $ac_func(); | |
6785 | ||
6786 | int main() { | |
6787 | ||
6788 | /* The GNU C library defines this for functions which it implements | |
6789 | to always fail with ENOSYS. Some functions are actually named | |
6790 | something starting with __ and the normal name is an alias. */ | |
6791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6792 | choke me | |
6793 | #else | |
027ea2a7 | 6794 | $ac_func(); |
ab87f8c8 JL |
6795 | #endif |
6796 | ||
6797 | ; return 0; } | |
6798 | EOF | |
b27d2bd5 | 6799 | if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6800 | rm -rf conftest* |
6801 | eval "ac_cv_func_$ac_func=yes" | |
6802 | else | |
6803 | echo "configure: failed program was:" >&5 | |
6804 | cat conftest.$ac_ext >&5 | |
6805 | rm -rf conftest* | |
6806 | eval "ac_cv_func_$ac_func=no" | |
6807 | fi | |
6808 | rm -f conftest* | |
6809 | fi | |
6810 | ||
6811 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6812 | echo "$ac_t""yes" 1>&6 | |
6813 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6814 | cat >> confdefs.h <<EOF | |
6815 | #define $ac_tr_func 1 | |
6816 | EOF | |
6817 | ||
6818 | else | |
6819 | echo "$ac_t""no" 1>&6 | |
6820 | fi | |
6821 | done | |
6822 | ||
6823 | ||
6824 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6825 | for ac_func in stpcpy | |
6826 | do | |
6827 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 6828 | echo "configure:6829: checking for $ac_func" >&5 |
ab87f8c8 JL |
6829 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6831 | else | |
6832 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6833 | #line 6834 "configure" |
ab87f8c8 JL |
6834 | #include "confdefs.h" |
6835 | /* System header to define __stub macros and hopefully few prototypes, | |
6836 | which can conflict with char $ac_func(); below. */ | |
6837 | #include <assert.h> | |
6838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6839 | /* We use char because int might match the return type of a gcc2 | |
6840 | builtin and then its argument prototype would still apply. */ | |
6841 | char $ac_func(); | |
6842 | ||
6843 | int main() { | |
6844 | ||
6845 | /* The GNU C library defines this for functions which it implements | |
6846 | to always fail with ENOSYS. Some functions are actually named | |
6847 | something starting with __ and the normal name is an alias. */ | |
6848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6849 | choke me | |
6850 | #else | |
027ea2a7 | 6851 | $ac_func(); |
ab87f8c8 JL |
6852 | #endif |
6853 | ||
6854 | ; return 0; } | |
6855 | EOF | |
b27d2bd5 | 6856 | if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6857 | rm -rf conftest* |
6858 | eval "ac_cv_func_$ac_func=yes" | |
6859 | else | |
6860 | echo "configure: failed program was:" >&5 | |
6861 | cat conftest.$ac_ext >&5 | |
6862 | rm -rf conftest* | |
6863 | eval "ac_cv_func_$ac_func=no" | |
6864 | fi | |
6865 | rm -f conftest* | |
6866 | fi | |
6867 | ||
6868 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6869 | echo "$ac_t""yes" 1>&6 | |
6870 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6871 | cat >> confdefs.h <<EOF | |
6872 | #define $ac_tr_func 1 | |
6873 | EOF | |
6874 | ||
6875 | else | |
6876 | echo "$ac_t""no" 1>&6 | |
6877 | fi | |
6878 | done | |
6879 | ||
6880 | fi | |
6881 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6882 | cat >> confdefs.h <<\EOF | |
6883 | #define HAVE_STPCPY 1 | |
6884 | EOF | |
6885 | ||
6886 | fi | |
6887 | ||
6888 | if test $ac_cv_header_locale_h = yes; then | |
6889 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
b27d2bd5 | 6890 | echo "configure:6891: checking for LC_MESSAGES" >&5 |
ab87f8c8 JL |
6891 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
6892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6893 | else | |
6894 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6895 | #line 6896 "configure" |
ab87f8c8 JL |
6896 | #include "confdefs.h" |
6897 | #include <locale.h> | |
6898 | int main() { | |
6899 | return LC_MESSAGES | |
6900 | ; return 0; } | |
6901 | EOF | |
b27d2bd5 | 6902 | if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
6903 | rm -rf conftest* |
6904 | am_cv_val_LC_MESSAGES=yes | |
6905 | else | |
6906 | echo "configure: failed program was:" >&5 | |
6907 | cat conftest.$ac_ext >&5 | |
6908 | rm -rf conftest* | |
6909 | am_cv_val_LC_MESSAGES=no | |
6910 | fi | |
6911 | rm -f conftest* | |
6912 | fi | |
6913 | ||
6914 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
6915 | if test $am_cv_val_LC_MESSAGES = yes; then | |
6916 | cat >> confdefs.h <<\EOF | |
6917 | #define HAVE_LC_MESSAGES 1 | |
6918 | EOF | |
6919 | ||
6920 | fi | |
6921 | fi | |
6922 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
b27d2bd5 | 6923 | echo "configure:6924: checking whether NLS is requested" >&5 |
ab87f8c8 JL |
6924 | # Check whether --enable-nls or --disable-nls was given. |
6925 | if test "${enable_nls+set}" = set; then | |
6926 | enableval="$enable_nls" | |
6927 | USE_NLS=$enableval | |
6928 | else | |
6929 | USE_NLS=yes | |
6930 | fi | |
6931 | ||
6932 | echo "$ac_t""$USE_NLS" 1>&6 | |
6933 | ||
6934 | ||
6935 | USE_INCLUDED_LIBINTL=no | |
6936 | ||
6937 | if test "$USE_NLS" = "yes"; then | |
6938 | cat >> confdefs.h <<\EOF | |
6939 | #define ENABLE_NLS 1 | |
6940 | EOF | |
6941 | ||
6942 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
b27d2bd5 | 6943 | echo "configure:6944: checking whether included gettext is requested" >&5 |
ab87f8c8 JL |
6944 | # Check whether --with-included-gettext or --without-included-gettext was given. |
6945 | if test "${with_included_gettext+set}" = set; then | |
6946 | withval="$with_included_gettext" | |
6947 | nls_cv_force_use_gnu_gettext=$withval | |
6948 | else | |
6949 | nls_cv_force_use_gnu_gettext=no | |
6950 | fi | |
6951 | ||
6952 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
6953 | ||
6954 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6955 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
6956 | nls_cv_header_intl= | |
6957 | nls_cv_header_libgt= | |
6958 | CATOBJEXT=NONE | |
6959 | ||
6960 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
6961 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
b27d2bd5 | 6962 | echo "configure:6963: checking for libintl.h" >&5 |
ab87f8c8 JL |
6963 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6965 | else | |
6966 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6967 | #line 6968 "configure" |
ab87f8c8 JL |
6968 | #include "confdefs.h" |
6969 | #include <libintl.h> | |
6970 | EOF | |
6971 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 6972 | { (eval echo configure:6973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 6973 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
6974 | if test -z "$ac_err"; then |
6975 | rm -rf conftest* | |
6976 | eval "ac_cv_header_$ac_safe=yes" | |
6977 | else | |
6978 | echo "$ac_err" >&5 | |
6979 | echo "configure: failed program was:" >&5 | |
6980 | cat conftest.$ac_ext >&5 | |
6981 | rm -rf conftest* | |
6982 | eval "ac_cv_header_$ac_safe=no" | |
6983 | fi | |
6984 | rm -f conftest* | |
6985 | fi | |
6986 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6987 | echo "$ac_t""yes" 1>&6 | |
6988 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
b27d2bd5 | 6989 | echo "configure:6990: checking for gettext in libc" >&5 |
ab87f8c8 JL |
6990 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
6991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6992 | else | |
6993 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 6994 | #line 6995 "configure" |
ab87f8c8 JL |
6995 | #include "confdefs.h" |
6996 | #include <libintl.h> | |
6997 | int main() { | |
6998 | return (int) gettext ("") | |
6999 | ; return 0; } | |
7000 | EOF | |
b27d2bd5 | 7001 | if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7002 | rm -rf conftest* |
7003 | gt_cv_func_gettext_libc=yes | |
7004 | else | |
7005 | echo "configure: failed program was:" >&5 | |
7006 | cat conftest.$ac_ext >&5 | |
7007 | rm -rf conftest* | |
7008 | gt_cv_func_gettext_libc=no | |
7009 | fi | |
7010 | rm -f conftest* | |
7011 | fi | |
7012 | ||
7013 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
7014 | ||
7015 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
7016 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
b27d2bd5 | 7017 | echo "configure:7018: checking for bindtextdomain in -lintl" >&5 |
ab87f8c8 JL |
7018 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
7019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7021 | else | |
7022 | ac_save_LIBS="$LIBS" | |
7023 | LIBS="-lintl $LIBS" | |
7024 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7025 | #line 7026 "configure" |
ab87f8c8 JL |
7026 | #include "confdefs.h" |
7027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7028 | /* We use char because int might match the return type of a gcc2 | |
7029 | builtin and then its argument prototype would still apply. */ | |
7030 | char bindtextdomain(); | |
7031 | ||
7032 | int main() { | |
7033 | bindtextdomain() | |
7034 | ; return 0; } | |
7035 | EOF | |
b27d2bd5 | 7036 | if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7037 | rm -rf conftest* |
7038 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7039 | else | |
7040 | echo "configure: failed program was:" >&5 | |
7041 | cat conftest.$ac_ext >&5 | |
7042 | rm -rf conftest* | |
7043 | eval "ac_cv_lib_$ac_lib_var=no" | |
7044 | fi | |
7045 | rm -f conftest* | |
7046 | LIBS="$ac_save_LIBS" | |
7047 | ||
7048 | fi | |
7049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7050 | echo "$ac_t""yes" 1>&6 | |
7051 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
b27d2bd5 | 7052 | echo "configure:7053: checking for gettext in libintl" >&5 |
ab87f8c8 JL |
7053 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
7054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7055 | else | |
7056 | echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 | |
b27d2bd5 | 7057 | echo "configure:7058: checking for gettext in -lintl" >&5 |
ab87f8c8 JL |
7058 | ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` |
7059 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7061 | else | |
7062 | ac_save_LIBS="$LIBS" | |
7063 | LIBS="-lintl $LIBS" | |
7064 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7065 | #line 7066 "configure" |
ab87f8c8 JL |
7066 | #include "confdefs.h" |
7067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7068 | /* We use char because int might match the return type of a gcc2 | |
7069 | builtin and then its argument prototype would still apply. */ | |
7070 | char gettext(); | |
7071 | ||
7072 | int main() { | |
7073 | gettext() | |
7074 | ; return 0; } | |
7075 | EOF | |
b27d2bd5 | 7076 | if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7077 | rm -rf conftest* |
7078 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7079 | else | |
7080 | echo "configure: failed program was:" >&5 | |
7081 | cat conftest.$ac_ext >&5 | |
7082 | rm -rf conftest* | |
7083 | eval "ac_cv_lib_$ac_lib_var=no" | |
7084 | fi | |
7085 | rm -f conftest* | |
7086 | LIBS="$ac_save_LIBS" | |
7087 | ||
7088 | fi | |
7089 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7090 | echo "$ac_t""yes" 1>&6 | |
7091 | gt_cv_func_gettext_libintl=yes | |
7092 | else | |
7093 | echo "$ac_t""no" 1>&6 | |
7094 | gt_cv_func_gettext_libintl=no | |
7095 | fi | |
7096 | ||
7097 | fi | |
7098 | ||
7099 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
7100 | else | |
7101 | echo "$ac_t""no" 1>&6 | |
7102 | fi | |
7103 | ||
7104 | fi | |
7105 | ||
7106 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7107 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
7108 | cat >> confdefs.h <<\EOF | |
7109 | #define HAVE_GETTEXT 1 | |
7110 | EOF | |
7111 | ||
7112 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7113 | set dummy msgfmt; ac_word=$2 | |
7114 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7115 | echo "configure:7116: checking for $ac_word" >&5 |
ab87f8c8 JL |
7116 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7118 | else | |
7119 | case "$MSGFMT" in | |
7120 | /*) | |
7121 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7122 | ;; | |
7123 | *) | |
7124 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7125 | for ac_dir in $PATH; do | |
7126 | test -z "$ac_dir" && ac_dir=. | |
7127 | if test -f $ac_dir/$ac_word; then | |
7128 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7129 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7130 | break | |
7131 | fi | |
7132 | fi | |
7133 | done | |
7134 | IFS="$ac_save_ifs" | |
7135 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7136 | ;; | |
7137 | esac | |
7138 | fi | |
7139 | MSGFMT="$ac_cv_path_MSGFMT" | |
7140 | if test -n "$MSGFMT"; then | |
7141 | echo "$ac_t""$MSGFMT" 1>&6 | |
7142 | else | |
7143 | echo "$ac_t""no" 1>&6 | |
7144 | fi | |
7145 | if test "$MSGFMT" != "no"; then | |
7146 | for ac_func in dcgettext | |
7147 | do | |
7148 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b27d2bd5 | 7149 | echo "configure:7150: checking for $ac_func" >&5 |
ab87f8c8 JL |
7150 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7152 | else | |
7153 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7154 | #line 7155 "configure" |
ab87f8c8 JL |
7155 | #include "confdefs.h" |
7156 | /* System header to define __stub macros and hopefully few prototypes, | |
7157 | which can conflict with char $ac_func(); below. */ | |
7158 | #include <assert.h> | |
7159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7160 | /* We use char because int might match the return type of a gcc2 | |
7161 | builtin and then its argument prototype would still apply. */ | |
7162 | char $ac_func(); | |
7163 | ||
7164 | int main() { | |
7165 | ||
7166 | /* The GNU C library defines this for functions which it implements | |
7167 | to always fail with ENOSYS. Some functions are actually named | |
7168 | something starting with __ and the normal name is an alias. */ | |
7169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7170 | choke me | |
7171 | #else | |
027ea2a7 | 7172 | $ac_func(); |
ab87f8c8 JL |
7173 | #endif |
7174 | ||
7175 | ; return 0; } | |
7176 | EOF | |
b27d2bd5 | 7177 | if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7178 | rm -rf conftest* |
7179 | eval "ac_cv_func_$ac_func=yes" | |
7180 | else | |
7181 | echo "configure: failed program was:" >&5 | |
7182 | cat conftest.$ac_ext >&5 | |
7183 | rm -rf conftest* | |
7184 | eval "ac_cv_func_$ac_func=no" | |
7185 | fi | |
7186 | rm -f conftest* | |
7187 | fi | |
7188 | ||
7189 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7190 | echo "$ac_t""yes" 1>&6 | |
7191 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7192 | cat >> confdefs.h <<EOF | |
7193 | #define $ac_tr_func 1 | |
7194 | EOF | |
7195 | ||
7196 | else | |
7197 | echo "$ac_t""no" 1>&6 | |
7198 | fi | |
7199 | done | |
7200 | ||
7201 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7202 | set dummy gmsgfmt; ac_word=$2 | |
7203 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7204 | echo "configure:7205: checking for $ac_word" >&5 |
ab87f8c8 JL |
7205 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7207 | else | |
7208 | case "$GMSGFMT" in | |
7209 | /*) | |
7210 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7211 | ;; | |
7212 | ?:/*) | |
7213 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7214 | ;; | |
7215 | *) | |
cd9e5e7c | 7216 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7217 | ac_dummy="$PATH" |
7218 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7219 | test -z "$ac_dir" && ac_dir=. |
7220 | if test -f $ac_dir/$ac_word; then | |
7221 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7222 | break | |
7223 | fi | |
7224 | done | |
7225 | IFS="$ac_save_ifs" | |
7226 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7227 | ;; | |
7228 | esac | |
7229 | fi | |
7230 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7231 | if test -n "$GMSGFMT"; then | |
7232 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7233 | else | |
7234 | echo "$ac_t""no" 1>&6 | |
7235 | fi | |
7236 | ||
7237 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7238 | set dummy xgettext; ac_word=$2 | |
7239 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7240 | echo "configure:7241: checking for $ac_word" >&5 |
ab87f8c8 JL |
7241 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7243 | else | |
7244 | case "$XGETTEXT" in | |
7245 | /*) | |
7246 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7247 | ;; | |
7248 | *) | |
7249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7250 | for ac_dir in $PATH; do | |
7251 | test -z "$ac_dir" && ac_dir=. | |
7252 | if test -f $ac_dir/$ac_word; then | |
7253 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7254 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7255 | break | |
7256 | fi | |
7257 | fi | |
7258 | done | |
7259 | IFS="$ac_save_ifs" | |
7260 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7261 | ;; | |
7262 | esac | |
7263 | fi | |
7264 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7265 | if test -n "$XGETTEXT"; then | |
7266 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7267 | else | |
7268 | echo "$ac_t""no" 1>&6 | |
7269 | fi | |
7270 | ||
7271 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7272 | #line 7273 "configure" |
ab87f8c8 JL |
7273 | #include "confdefs.h" |
7274 | ||
7275 | int main() { | |
7276 | extern int _nl_msg_cat_cntr; | |
7277 | return _nl_msg_cat_cntr | |
7278 | ; return 0; } | |
7279 | EOF | |
b27d2bd5 | 7280 | if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7281 | rm -rf conftest* |
7282 | CATOBJEXT=.gmo | |
7283 | DATADIRNAME=share | |
7284 | else | |
7285 | echo "configure: failed program was:" >&5 | |
7286 | cat conftest.$ac_ext >&5 | |
7287 | rm -rf conftest* | |
7288 | CATOBJEXT=.mo | |
7289 | DATADIRNAME=lib | |
7290 | fi | |
7291 | rm -f conftest* | |
7292 | INSTOBJEXT=.mo | |
7293 | fi | |
7294 | fi | |
7295 | ||
7296 | else | |
7297 | echo "$ac_t""no" 1>&6 | |
7298 | fi | |
7299 | ||
7300 | ||
7301 | if test "$CATOBJEXT" = "NONE"; then | |
7302 | echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 | |
b27d2bd5 | 7303 | echo "configure:7304: checking whether catgets can be used" >&5 |
ab87f8c8 JL |
7304 | # Check whether --with-catgets or --without-catgets was given. |
7305 | if test "${with_catgets+set}" = set; then | |
7306 | withval="$with_catgets" | |
7307 | nls_cv_use_catgets=$withval | |
7308 | else | |
7309 | nls_cv_use_catgets=no | |
7310 | fi | |
7311 | ||
7312 | echo "$ac_t""$nls_cv_use_catgets" 1>&6 | |
7313 | ||
7314 | if test "$nls_cv_use_catgets" = "yes"; then | |
7315 | echo $ac_n "checking for main in -li""... $ac_c" 1>&6 | |
b27d2bd5 | 7316 | echo "configure:7317: checking for main in -li" >&5 |
ab87f8c8 JL |
7317 | ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` |
7318 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7320 | else | |
7321 | ac_save_LIBS="$LIBS" | |
7322 | LIBS="-li $LIBS" | |
7323 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7324 | #line 7325 "configure" |
ab87f8c8 JL |
7325 | #include "confdefs.h" |
7326 | ||
7327 | int main() { | |
7328 | main() | |
7329 | ; return 0; } | |
7330 | EOF | |
b27d2bd5 | 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_lib_$ac_lib_var=yes" | |
7334 | else | |
7335 | echo "configure: failed program was:" >&5 | |
7336 | cat conftest.$ac_ext >&5 | |
7337 | rm -rf conftest* | |
7338 | eval "ac_cv_lib_$ac_lib_var=no" | |
7339 | fi | |
7340 | rm -f conftest* | |
7341 | LIBS="$ac_save_LIBS" | |
7342 | ||
7343 | fi | |
7344 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7345 | echo "$ac_t""yes" 1>&6 | |
7346 | ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7347 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7348 | cat >> confdefs.h <<EOF | |
7349 | #define $ac_tr_lib 1 | |
7350 | EOF | |
7351 | ||
7352 | LIBS="-li $LIBS" | |
7353 | ||
7354 | else | |
7355 | echo "$ac_t""no" 1>&6 | |
7356 | fi | |
7357 | ||
7358 | echo $ac_n "checking for catgets""... $ac_c" 1>&6 | |
b27d2bd5 | 7359 | echo "configure:7360: checking for catgets" >&5 |
ab87f8c8 JL |
7360 | if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then |
7361 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7362 | else | |
7363 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7364 | #line 7365 "configure" |
ab87f8c8 JL |
7365 | #include "confdefs.h" |
7366 | /* System header to define __stub macros and hopefully few prototypes, | |
7367 | which can conflict with char catgets(); below. */ | |
7368 | #include <assert.h> | |
7369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7370 | /* We use char because int might match the return type of a gcc2 | |
7371 | builtin and then its argument prototype would still apply. */ | |
7372 | char catgets(); | |
7373 | ||
7374 | int main() { | |
7375 | ||
7376 | /* The GNU C library defines this for functions which it implements | |
7377 | to always fail with ENOSYS. Some functions are actually named | |
7378 | something starting with __ and the normal name is an alias. */ | |
7379 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
7380 | choke me | |
7381 | #else | |
027ea2a7 | 7382 | catgets(); |
ab87f8c8 JL |
7383 | #endif |
7384 | ||
7385 | ; return 0; } | |
7386 | EOF | |
b27d2bd5 | 7387 | if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab87f8c8 JL |
7388 | rm -rf conftest* |
7389 | eval "ac_cv_func_catgets=yes" | |
7390 | else | |
7391 | echo "configure: failed program was:" >&5 | |
7392 | cat conftest.$ac_ext >&5 | |
7393 | rm -rf conftest* | |
7394 | eval "ac_cv_func_catgets=no" | |
7395 | fi | |
7396 | rm -f conftest* | |
7397 | fi | |
7398 | ||
7399 | if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then | |
7400 | echo "$ac_t""yes" 1>&6 | |
7401 | cat >> confdefs.h <<\EOF | |
7402 | #define HAVE_CATGETS 1 | |
7403 | EOF | |
7404 | ||
7405 | INTLOBJS="\$(CATOBJS)" | |
7406 | # Extract the first word of "gencat", so it can be a program name with args. | |
7407 | set dummy gencat; ac_word=$2 | |
7408 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7409 | echo "configure:7410: checking for $ac_word" >&5 |
ab87f8c8 JL |
7410 | if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then |
7411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7412 | else | |
7413 | case "$GENCAT" in | |
7414 | /*) | |
7415 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. | |
7416 | ;; | |
7417 | ?:/*) | |
7418 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path. | |
7419 | ;; | |
7420 | *) | |
cd9e5e7c | 7421 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7422 | ac_dummy="$PATH" |
7423 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7424 | test -z "$ac_dir" && ac_dir=. |
7425 | if test -f $ac_dir/$ac_word; then | |
7426 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
7427 | break | |
7428 | fi | |
7429 | done | |
7430 | IFS="$ac_save_ifs" | |
7431 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" | |
7432 | ;; | |
7433 | esac | |
7434 | fi | |
7435 | GENCAT="$ac_cv_path_GENCAT" | |
7436 | if test -n "$GENCAT"; then | |
7437 | echo "$ac_t""$GENCAT" 1>&6 | |
7438 | else | |
7439 | echo "$ac_t""no" 1>&6 | |
7440 | fi | |
7441 | if test "$GENCAT" != "no"; then | |
7442 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7443 | set dummy gmsgfmt; ac_word=$2 | |
7444 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7445 | echo "configure:7446: checking for $ac_word" >&5 |
ab87f8c8 JL |
7446 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7448 | else | |
7449 | case "$GMSGFMT" in | |
7450 | /*) | |
7451 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7452 | ;; | |
7453 | ?:/*) | |
7454 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7455 | ;; | |
7456 | *) | |
cd9e5e7c | 7457 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7458 | ac_dummy="$PATH" |
7459 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7460 | test -z "$ac_dir" && ac_dir=. |
7461 | if test -f $ac_dir/$ac_word; then | |
7462 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7463 | break | |
7464 | fi | |
7465 | done | |
7466 | IFS="$ac_save_ifs" | |
7467 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7468 | ;; | |
7469 | esac | |
7470 | fi | |
7471 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7472 | if test -n "$GMSGFMT"; then | |
7473 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7474 | else | |
7475 | echo "$ac_t""no" 1>&6 | |
7476 | fi | |
7477 | ||
7478 | if test "$GMSGFMT" = "no"; then | |
7479 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7480 | set dummy msgfmt; ac_word=$2 | |
7481 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7482 | echo "configure:7483: checking for $ac_word" >&5 |
ab87f8c8 JL |
7483 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7485 | else | |
7486 | case "$GMSGFMT" in | |
7487 | /*) | |
7488 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7489 | ;; | |
7490 | *) | |
7491 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7492 | for ac_dir in $PATH; do | |
7493 | test -z "$ac_dir" && ac_dir=. | |
7494 | if test -f $ac_dir/$ac_word; then | |
7495 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7496 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7497 | break | |
7498 | fi | |
7499 | fi | |
7500 | done | |
7501 | IFS="$ac_save_ifs" | |
7502 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
7503 | ;; | |
7504 | esac | |
7505 | fi | |
7506 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7507 | if test -n "$GMSGFMT"; then | |
7508 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7509 | else | |
7510 | echo "$ac_t""no" 1>&6 | |
7511 | fi | |
7512 | ||
7513 | fi | |
7514 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7515 | set dummy xgettext; ac_word=$2 | |
7516 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7517 | echo "configure:7518: checking for $ac_word" >&5 |
ab87f8c8 JL |
7518 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7520 | else | |
7521 | case "$XGETTEXT" in | |
7522 | /*) | |
7523 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7524 | ;; | |
7525 | *) | |
7526 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7527 | for ac_dir in $PATH; do | |
7528 | test -z "$ac_dir" && ac_dir=. | |
7529 | if test -f $ac_dir/$ac_word; then | |
7530 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7531 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7532 | break | |
7533 | fi | |
7534 | fi | |
7535 | done | |
7536 | IFS="$ac_save_ifs" | |
7537 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7538 | ;; | |
7539 | esac | |
7540 | fi | |
7541 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7542 | if test -n "$XGETTEXT"; then | |
7543 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7544 | else | |
7545 | echo "$ac_t""no" 1>&6 | |
7546 | fi | |
7547 | ||
7548 | USE_INCLUDED_LIBINTL=yes | |
7549 | CATOBJEXT=.cat | |
7550 | INSTOBJEXT=.cat | |
7551 | DATADIRNAME=lib | |
7552 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7553 | INTLLIBS=$INTLDEPS | |
7554 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7555 | nls_cv_header_intl=intl/libintl.h | |
7556 | nls_cv_header_libgt=intl/libgettext.h | |
7557 | fi | |
7558 | else | |
7559 | echo "$ac_t""no" 1>&6 | |
7560 | fi | |
7561 | ||
7562 | fi | |
7563 | fi | |
7564 | ||
7565 | if test "$CATOBJEXT" = "NONE"; then | |
7566 | nls_cv_use_gnu_gettext=yes | |
7567 | fi | |
7568 | fi | |
7569 | ||
7570 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7571 | INTLOBJS="\$(GETTOBJS)" | |
7572 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7573 | set dummy msgfmt; ac_word=$2 | |
7574 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7575 | echo "configure:7576: checking for $ac_word" >&5 |
ab87f8c8 JL |
7576 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
7577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7578 | else | |
7579 | case "$MSGFMT" in | |
7580 | /*) | |
7581 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7582 | ;; | |
7583 | *) | |
7584 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7585 | for ac_dir in $PATH; do | |
7586 | test -z "$ac_dir" && ac_dir=. | |
7587 | if test -f $ac_dir/$ac_word; then | |
7588 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7589 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7590 | break | |
7591 | fi | |
7592 | fi | |
7593 | done | |
7594 | IFS="$ac_save_ifs" | |
7595 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7596 | ;; | |
7597 | esac | |
7598 | fi | |
7599 | MSGFMT="$ac_cv_path_MSGFMT" | |
7600 | if test -n "$MSGFMT"; then | |
7601 | echo "$ac_t""$MSGFMT" 1>&6 | |
7602 | else | |
7603 | echo "$ac_t""no" 1>&6 | |
7604 | fi | |
7605 | ||
7606 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7607 | set dummy gmsgfmt; ac_word=$2 | |
7608 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7609 | echo "configure:7610: checking for $ac_word" >&5 |
ab87f8c8 JL |
7610 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
7611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7612 | else | |
7613 | case "$GMSGFMT" in | |
7614 | /*) | |
7615 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7616 | ;; | |
7617 | ?:/*) | |
7618 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
7619 | ;; | |
7620 | *) | |
cd9e5e7c | 7621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b27d2bd5 MK |
7622 | ac_dummy="$PATH" |
7623 | for ac_dir in $ac_dummy; do | |
ab87f8c8 JL |
7624 | test -z "$ac_dir" && ac_dir=. |
7625 | if test -f $ac_dir/$ac_word; then | |
7626 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
7627 | break | |
7628 | fi | |
7629 | done | |
7630 | IFS="$ac_save_ifs" | |
7631 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7632 | ;; | |
7633 | esac | |
7634 | fi | |
7635 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
7636 | if test -n "$GMSGFMT"; then | |
7637 | echo "$ac_t""$GMSGFMT" 1>&6 | |
7638 | else | |
7639 | echo "$ac_t""no" 1>&6 | |
7640 | fi | |
7641 | ||
7642 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7643 | set dummy xgettext; ac_word=$2 | |
7644 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b27d2bd5 | 7645 | echo "configure:7646: checking for $ac_word" >&5 |
ab87f8c8 JL |
7646 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
7647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7648 | else | |
7649 | case "$XGETTEXT" in | |
7650 | /*) | |
7651 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7652 | ;; | |
7653 | *) | |
7654 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7655 | for ac_dir in $PATH; do | |
7656 | test -z "$ac_dir" && ac_dir=. | |
7657 | if test -f $ac_dir/$ac_word; then | |
7658 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7659 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7660 | break | |
7661 | fi | |
7662 | fi | |
7663 | done | |
7664 | IFS="$ac_save_ifs" | |
7665 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7666 | ;; | |
7667 | esac | |
7668 | fi | |
7669 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7670 | if test -n "$XGETTEXT"; then | |
7671 | echo "$ac_t""$XGETTEXT" 1>&6 | |
7672 | else | |
7673 | echo "$ac_t""no" 1>&6 | |
7674 | fi | |
7675 | ||
7676 | ||
7677 | USE_INCLUDED_LIBINTL=yes | |
7678 | CATOBJEXT=.gmo | |
7679 | INSTOBJEXT=.mo | |
7680 | DATADIRNAME=share | |
7681 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7682 | INTLLIBS=$INTLDEPS | |
7683 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7684 | nls_cv_header_intl=intl/libintl.h | |
7685 | nls_cv_header_libgt=intl/libgettext.h | |
7686 | fi | |
7687 | ||
7688 | if test "$XGETTEXT" != ":"; then | |
7689 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7690 | : ; | |
7691 | else | |
7692 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | |
7693 | XGETTEXT=":" | |
7694 | fi | |
7695 | fi | |
7696 | ||
7697 | # We need to process the po/ directory. | |
7698 | POSUB=po | |
7699 | else | |
7700 | DATADIRNAME=share | |
7701 | nls_cv_header_intl=intl/libintl.h | |
7702 | nls_cv_header_libgt=intl/libgettext.h | |
7703 | fi | |
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7709 | # because some of the sources are only built for this goal. | |
7710 | if test "$PACKAGE" = gettext; then | |
7711 | USE_NLS=yes | |
7712 | USE_INCLUDED_LIBINTL=yes | |
7713 | fi | |
7714 | ||
7715 | for lang in $ALL_LINGUAS; do | |
7716 | GMOFILES="$GMOFILES $lang.gmo" | |
7717 | POFILES="$POFILES $lang.po" | |
7718 | done | |
7719 | ||
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | if test "x$CATOBJEXT" != "x"; then | |
7734 | if test "x$ALL_LINGUAS" = "x"; then | |
7735 | LINGUAS= | |
7736 | else | |
7737 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
b27d2bd5 | 7738 | echo "configure:7739: checking for catalogs to be installed" >&5 |
ab87f8c8 JL |
7739 | NEW_LINGUAS= |
7740 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7741 | case "$ALL_LINGUAS" in | |
7742 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7743 | esac | |
7744 | done | |
7745 | LINGUAS=$NEW_LINGUAS | |
7746 | echo "$ac_t""$LINGUAS" 1>&6 | |
7747 | fi | |
7748 | ||
7749 | if test -n "$LINGUAS"; then | |
7750 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7751 | fi | |
7752 | fi | |
7753 | ||
7754 | if test $ac_cv_header_locale_h = yes; then | |
7755 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7756 | else | |
7757 | INCLUDE_LOCALE_H="\ | |
7758 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7759 | fi | |
7760 | ||
7761 | ||
7762 | test -d intl || mkdir intl | |
7763 | if test "$CATOBJEXT" = ".cat"; then | |
7764 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
7765 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
b27d2bd5 | 7766 | echo "configure:7767: checking for linux/version.h" >&5 |
ab87f8c8 JL |
7767 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7769 | else | |
7770 | cat > conftest.$ac_ext <<EOF | |
b27d2bd5 | 7771 | #line 7772 "configure" |
ab87f8c8 JL |
7772 | #include "confdefs.h" |
7773 | #include <linux/version.h> | |
7774 | EOF | |
7775 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b27d2bd5 | 7776 | { (eval echo configure:7777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
cd9e5e7c | 7777 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ab87f8c8 JL |
7778 | if test -z "$ac_err"; then |
7779 | rm -rf conftest* | |
7780 | eval "ac_cv_header_$ac_safe=yes" | |
7781 | else | |
7782 | echo "$ac_err" >&5 | |
7783 | echo "configure: failed program was:" >&5 | |
7784 | cat conftest.$ac_ext >&5 | |
7785 | rm -rf conftest* | |
7786 | eval "ac_cv_header_$ac_safe=no" | |
7787 | fi | |
7788 | rm -f conftest* | |
7789 | fi | |
7790 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7791 | echo "$ac_t""yes" 1>&6 | |
7792 | msgformat=linux | |
7793 | else | |
7794 | echo "$ac_t""no" 1>&6 | |
7795 | msgformat=xopen | |
7796 | fi | |
7797 | ||
7798 | ||
7799 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed | |
7800 | fi | |
7801 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7802 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7803 | ||
7804 | if test "$PACKAGE" = "gettext"; then | |
7805 | GT_NO="#NO#" | |
7806 | GT_YES= | |
7807 | else | |
7808 | GT_NO= | |
7809 | GT_YES="#YES#" | |
7810 | fi | |
7811 | ||
7812 | ||
7813 | ||
7814 | MKINSTALLDIRS= | |
7815 | if test -n "$ac_aux_dir"; then | |
7816 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
7817 | fi | |
7818 | if test -z "$MKINSTALLDIRS"; then | |
7819 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7820 | fi | |
7821 | ||
7822 | ||
7823 | l= | |
7824 | ||
7825 | ||
7826 | test -d po || mkdir po | |
7827 | if test "x$srcdir" != "x."; then | |
7828 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
7829 | posrcprefix="$srcdir/" | |
7830 | else | |
7831 | posrcprefix="../$srcdir/" | |
7832 | fi | |
7833 | else | |
7834 | posrcprefix="../" | |
7835 | fi | |
7836 | rm -f po/POTFILES | |
7837 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7838 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7839 | ||
7840 | XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT" | |
7841 | ||
7842 | # Get an absolute path to the GCC top-level source directory | |
7843 | holddir=`pwd` | |
7844 | cd $srcdir | |
7845 | topdir=`pwd` | |
7846 | cd $holddir | |
7847 | ||
7848 | # Conditionalize the makefile for this host machine. | |
7849 | # Make-host contains the concatenation of all host makefile fragments | |
7850 | # [there can be more than one]. This file is built by configure.frag. | |
7851 | host_overrides=Make-host | |
7852 | dep_host_xmake_file= | |
7853 | for f in .. ${host_xmake_file} | |
7854 | do | |
7855 | if test -f ${srcdir}/config/$f | |
7856 | then | |
7857 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
7858 | fi | |
7859 | done | |
7860 | ||
7861 | # Conditionalize the makefile for this target machine. | |
7862 | # Make-target contains the concatenation of all host makefile fragments | |
7863 | # [there can be more than one]. This file is built by configure.frag. | |
7864 | target_overrides=Make-target | |
7865 | dep_tmake_file= | |
7866 | for f in .. ${tmake_file} | |
7867 | do | |
7868 | if test -f ${srcdir}/config/$f | |
7869 | then | |
7870 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
7871 | fi | |
7872 | done | |
7873 | ||
7874 | # If the host doesn't support symlinks, modify CC in | |
7875 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
7876 | # Otherwise, we can use "CC=$(CC)". | |
7877 | rm -f symtest.tem | |
7878 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null | |
7879 | then | |
7880 | cc_set_by_configure="\$(CC)" | |
7881 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
7882 | else | |
7883 | rm -f symtest.tem | |
7884 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
7885 | then | |
7886 | symbolic_link="cp -p" | |
7887 | else | |
7888 | symbolic_link="cp" | |
7889 | fi | |
7890 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" | |
7891 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
7892 | fi | |
7893 | rm -f symtest.tem | |
7894 | ||
7895 | out_object_file=`basename $out_file .c`.o | |
7896 | ||
7897 | tm_file_list= | |
7898 | for f in $tm_file; do | |
7899 | if test $f != "gansidecl.h" ; then | |
7900 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
7901 | else | |
7902 | tm_file_list="${tm_file_list} $f" | |
7903 | fi | |
7904 | done | |
7905 | ||
7906 | host_xm_file_list= | |
7907 | for f in $host_xm_file; do | |
7908 | if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then | |
7909 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" | |
7910 | else | |
7911 | host_xm_file_list="${host_xm_file_list} $f" | |
7912 | fi | |
7913 | done | |
7914 | ||
7915 | build_xm_file_list= | |
7916 | for f in $build_xm_file; do | |
7917 | if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then | |
7918 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
7919 | else | |
7920 | build_xm_file_list="${build_xm_file_list} $f" | |
7921 | fi | |
7922 | done | |
7923 | ||
7924 | # Define macro CROSS_COMPILE in compilation | |
7925 | # if this is a cross-compiler. | |
7926 | # Also use all.cross instead of all.internal | |
7927 | # and add cross-make to Makefile. | |
7928 | cross_overrides="/dev/null" | |
7929 | if test x$host != x$target | |
7930 | then | |
7931 | cross_defines="CROSS=-DCROSS_COMPILE" | |
7932 | cross_overrides="${topdir}/cross-make" | |
7933 | fi | |
7934 | ||
7935 | # When building gcc with a cross-compiler, we need to fix a few things. | |
7936 | # This must come after cross-make as we want all.build to override | |
7937 | # all.cross. | |
7938 | build_overrides="/dev/null" | |
7939 | if test x$build != x$host | |
7940 | then | |
7941 | build_overrides="${topdir}/build-make" | |
7942 | fi | |
7943 | ||
7944 | # Expand extra_headers to include complete path. | |
7945 | # This substitutes for lots of t-* files. | |
7946 | extra_headers_list= | |
7947 | if test "x$extra_headers" = x | |
7948 | then true | |
7949 | else | |
7950 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
7951 | for file in $extra_headers; | |
7952 | do | |
7953 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
7954 | done | |
7955 | fi | |
7956 | ||
7957 | if test x$use_collect2 = xno; then | |
7958 | use_collect2= | |
7959 | fi | |
7960 | ||
7961 | # Add a definition of USE_COLLECT2 if system wants one. | |
7962 | # Also tell toplev.c what to do. | |
7963 | # This substitutes for lots of t-* files. | |
7964 | if test x$use_collect2 = x | |
7965 | then | |
7966 | will_use_collect2= | |
7967 | maybe_use_collect2= | |
7968 | else | |
7969 | will_use_collect2="collect2" | |
7970 | maybe_use_collect2="-DUSE_COLLECT2" | |
7971 | fi | |
7972 | ||
7973 | # NEED TO CONVERT | |
7974 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
7975 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
7976 | # for line oriented comments, so we must always use a GNU cpp. If | |
7977 | # building gcc with a cross compiler, use the cross compiler just | |
7978 | # built. Otherwise, we can use the cpp just built. | |
7979 | md_file_sub= | |
7980 | if test "x$md_cppflags" = x | |
7981 | then | |
7982 | md_file_sub=$srcdir/config/$md_file | |
7983 | else | |
7984 | md_file=md | |
7985 | fi | |
7986 | ||
7987 | # If we have gas in the build tree, make a link to it. | |
7988 | if test -f ../gas/Makefile; then | |
7989 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null | |
7990 | fi | |
7991 | ||
7992 | # If we have nm in the build tree, make a link to it. | |
7993 | if test -f ../binutils/Makefile; then | |
7994 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null | |
7995 | fi | |
7996 | ||
7997 | # If we have ld in the build tree, make a link to it. | |
7998 | if test -f ../ld/Makefile; then | |
7999 | # if test x$use_collect2 = x; then | |
8000 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null | |
8001 | # else | |
8002 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null | |
8003 | # fi | |
8004 | fi | |
8005 | ||
8006 | # Figure out what assembler alignment features are present. | |
8007 | echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 | |
b27d2bd5 | 8008 | echo "configure:8009: checking assembler alignment features" >&5 |
ab87f8c8 JL |
8009 | gcc_cv_as= |
8010 | gcc_cv_as_alignment_features= | |
8011 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas | |
8012 | if test -x "$DEFAULT_ASSEMBLER"; then | |
8013 | gcc_cv_as="$DEFAULT_ASSEMBLER" | |
8014 | elif test -x "$AS"; then | |
8015 | gcc_cv_as="$AS" | |
8016 | elif test -x as$host_exeext; then | |
8017 | # Build using assembler in the current directory. | |
8018 | gcc_cv_as=./as$host_exeext | |
8019 | elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then | |
8020 | # Single tree build which includes gas. | |
8021 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in | |
8022 | do | |
8023 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
8024 | if test x$gcc_cv_gas_version != x; then | |
8025 | break | |
8026 | fi | |
8027 | done | |
8028 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
8029 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
8030 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
8031 | # Gas version 2.6 and later support for .balign and .p2align. | |
8032 | # bytes to skip when using .p2align. | |
8033 | 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 | |
8034 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8035 | cat >> confdefs.h <<\EOF | |
8036 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8037 | EOF | |
8038 | ||
8039 | fi | |
8040 | # Gas version 2.8 and later support specifying the maximum | |
8041 | # bytes to skip when using .p2align. | |
8042 | 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 | |
8043 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8044 | cat >> confdefs.h <<\EOF | |
8045 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
9e423e6d JW |
8046 | EOF |
8047 | ||
0b9d02c6 | 8048 | fi |
9e423e6d | 8049 | fi |
75bffa71 | 8050 | elif test x$host = x$target; then |
9e423e6d JW |
8051 | # Native build. |
8052 | gcc_cv_as=as$host_exeext | |
8053 | fi | |
75bffa71 | 8054 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
8055 | # Check if we have .balign and .p2align |
8056 | echo ".balign 4" > conftest.s | |
8057 | echo ".p2align 2" >> conftest.s | |
8058 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8059 | gcc_cv_as_alignment_features=".balign and .p2align" | |
8060 | cat >> confdefs.h <<\EOF | |
8061 | #define HAVE_GAS_BALIGN_AND_P2ALIGN 1 | |
8062 | EOF | |
8063 | ||
8064 | fi | |
8065 | rm -f conftest.s conftest.o | |
9e423e6d JW |
8066 | # Check if specifying the maximum bytes to skip when |
8067 | # using .p2align is supported. | |
8068 | echo ".p2align 4,,7" > conftest.s | |
8069 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8070 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
8071 | cat >> confdefs.h <<\EOF | |
8072 | #define HAVE_GAS_MAX_SKIP_P2ALIGN 1 | |
8073 | EOF | |
8074 | ||
8075 | fi | |
8076 | rm -f conftest.s conftest.o | |
8077 | fi | |
8078 | echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 | |
8079 | ||
d1accaa3 | 8080 | echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 |
b27d2bd5 | 8081 | echo "configure:8082: checking assembler subsection support" >&5 |
d1accaa3 JJ |
8082 | gcc_cv_as_subsections= |
8083 | if test x$gcc_cv_as != x; then | |
8084 | # Check if we have .subsection | |
8085 | echo ".subsection 1" > conftest.s | |
8086 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8087 | gcc_cv_as_subsections=".subsection" | |
8088 | if test -x nm$host_exeext; then | |
8089 | gcc_cv_nm=./nm$host_exeext | |
8090 | elif test x$host = x$target; then | |
8091 | # Native build. | |
8092 | gcc_cv_nm=nm$host_exeext | |
8093 | fi | |
8094 | if test x$gcc_cv_nm != x; then | |
8095 | cat > conftest.s <<EOF | |
8096 | conftest_label1: .word 0 | |
8097 | .subsection -1 | |
8098 | conftest_label2: .word 0 | |
8099 | .previous | |
8100 | EOF | |
8101 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
8102 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
8103 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
8104 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
8105 | : | |
8106 | else | |
d1accaa3 JJ |
8107 | gcc_cv_as_subsections="working .subsection -1" |
8108 | cat >> confdefs.h <<\EOF | |
8109 | #define HAVE_GAS_SUBSECTION_ORDERING 1 | |
8110 | EOF | |
8111 | ||
8112 | fi | |
8113 | fi | |
8114 | fi | |
8115 | fi | |
8116 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
8117 | fi | |
8118 | echo "$ac_t""$gcc_cv_as_subsections" 1>&6 | |
8119 | ||
861bb6c1 | 8120 | # Figure out what language subdirectories are present. |
71205e0b MH |
8121 | # Look if the user specified --enable-languages="..."; if not, use |
8122 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
8123 | # go away some day. | |
8124 | if test x"${enable_languages+set}" != xset; then | |
8125 | if test x"${LANGUAGES+set}" = xset; then | |
8126 | enable_languages="`echo ${LANGUAGES} | tr ' ' ','`" | |
8127 | else | |
8128 | enable_languages=all | |
8129 | fi | |
8130 | fi | |
861bb6c1 JL |
8131 | subdirs= |
8132 | for lang in ${srcdir}/*/config-lang.in .. | |
8133 | do | |
8134 | case $lang in | |
8135 | ..) ;; | |
8136 | # The odd quoting in the next line works around | |
8137 | # an apparent bug in bash 1.12 on linux. | |
8138 | ${srcdir}/[*]/config-lang.in) ;; | |
71205e0b MH |
8139 | *) |
8140 | lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang` | |
8141 | if test "x$lang_alias" = x | |
8142 | then | |
8143 | echo "$lang doesn't set \$language." 1>&2 | |
8144 | exit 1 | |
8145 | fi | |
8146 | if test x"${enable_languages}" = xall; then | |
8147 | add_this_lang=yes | |
8148 | else | |
8149 | case "${enable_languages}" in | |
8150 | ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" ) | |
8151 | add_this_lang=yes | |
8152 | ;; | |
8153 | * ) | |
8154 | add_this_lang=no | |
8155 | ;; | |
8156 | esac | |
8157 | fi | |
8158 | if test x"${add_this_lang}" = xyes; then | |
8159 | case $lang in | |
8160 | ${srcdir}/ada/config-lang.in) | |
8161 | if test x$gnat = xyes ; then | |
8162 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8163 | fi | |
8164 | ;; | |
8165 | *) | |
8166 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
8167 | ;; | |
8168 | esac | |
8169 | fi | |
8170 | ;; | |
861bb6c1 JL |
8171 | esac |
8172 | done | |
8173 | ||
f24af81b TT |
8174 | # Make gthr-default.h if we have a thread file. |
8175 | gthread_flags= | |
75bffa71 | 8176 | if test $thread_file != single; then |
f24af81b | 8177 | rm -f gthr-default.h |
db0d1ed9 | 8178 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
8179 | gthread_flags=-DHAVE_GTHR_DEFAULT |
8180 | fi | |
8181 | ||
8182 | ||
861bb6c1 JL |
8183 | # Make empty files to contain the specs and options for each language. |
8184 | # Then add #include lines to for a compiler that has specs and/or options. | |
8185 | ||
8186 | lang_specs_files= | |
8187 | lang_options_files= | |
3103b7db ML |
8188 | lang_tree_files= |
8189 | rm -f specs.h options.h gencheck.h | |
8190 | touch specs.h options.h gencheck.h | |
861bb6c1 JL |
8191 | for subdir in . $subdirs |
8192 | do | |
75bffa71 | 8193 | if test -f $srcdir/$subdir/lang-specs.h; then |
861bb6c1 JL |
8194 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
8195 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
8196 | fi | |
75bffa71 | 8197 | if test -f $srcdir/$subdir/lang-options.h; then |
861bb6c1 JL |
8198 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
8199 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
8200 | fi | |
3103b7db ML |
8201 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
8202 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
8203 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
8204 | fi | |
861bb6c1 JL |
8205 | done |
8206 | ||
8207 | # These (without "all_") are set in each config-lang.in. | |
8208 | # `language' must be a single word so is spelled singularly. | |
8209 | all_languages= | |
8210 | all_boot_languages= | |
8211 | all_compilers= | |
8212 | all_stagestuff= | |
8213 | all_diff_excludes= | |
ab87f8c8 | 8214 | all_outputs='Makefile intl/Makefile po/Makefile.in' |
861bb6c1 JL |
8215 | # List of language makefile fragments. |
8216 | all_lang_makefiles= | |
8217 | all_headers= | |
8218 | all_lib2funcs= | |
8219 | ||
8220 | # Add the language fragments. | |
8221 | # Languages are added via two mechanisms. Some information must be | |
8222 | # recorded in makefile variables, these are defined in config-lang.in. | |
8223 | # We accumulate them and plug them into the main Makefile. | |
8224 | # The other mechanism is a set of hooks for each of the main targets | |
8225 | # like `clean', `install', etc. | |
8226 | ||
8227 | language_fragments="Make-lang" | |
8228 | language_hooks="Make-hooks" | |
8229 | oldstyle_subdirs= | |
8230 | ||
8231 | for s in .. $subdirs | |
8232 | do | |
75bffa71 | 8233 | if test $s != ".." |
861bb6c1 JL |
8234 | then |
8235 | language= | |
8236 | boot_language= | |
8237 | compilers= | |
8238 | stagestuff= | |
8239 | diff_excludes= | |
8240 | headers= | |
8241 | outputs= | |
8242 | lib2funcs= | |
8243 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 8244 | if test "x$language" = x |
861bb6c1 JL |
8245 | then |
8246 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
8247 | exit 1 | |
8248 | fi | |
8249 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
8250 | all_languages="$all_languages $language" | |
75bffa71 | 8251 | if test "x$boot_language" = xyes |
861bb6c1 JL |
8252 | then |
8253 | all_boot_languages="$all_boot_languages $language" | |
8254 | fi | |
8255 | all_compilers="$all_compilers $compilers" | |
8256 | all_stagestuff="$all_stagestuff $stagestuff" | |
8257 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
8258 | all_headers="$all_headers $headers" | |
8259 | all_outputs="$all_outputs $outputs" | |
75bffa71 | 8260 | if test x$outputs = x |
861bb6c1 JL |
8261 | then |
8262 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
8263 | fi | |
8264 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
8265 | fi | |
8266 | done | |
8267 | ||
8268 | # Since we can't use `::' targets, we link each language in | |
8269 | # with a set of hooks, reached indirectly via lang.${target}. | |
8270 | ||
8271 | rm -f Make-hooks | |
8272 | touch Make-hooks | |
8273 | target_list="all.build all.cross start.encap rest.encap \ | |
8274 | info dvi \ | |
8275 | install-normal install-common install-info install-man \ | |
8276 | uninstall distdir \ | |
8277 | mostlyclean clean distclean extraclean maintainer-clean \ | |
8278 | stage1 stage2 stage3 stage4" | |
8279 | for t in $target_list | |
8280 | do | |
8281 | x= | |
ab87f8c8 | 8282 | for lang in .. $all_languages |
861bb6c1 | 8283 | do |
ab87f8c8 JL |
8284 | if test $lang != ".."; then |
8285 | x="$x $lang.$t" | |
861bb6c1 JL |
8286 | fi |
8287 | done | |
8288 | echo "lang.$t: $x" >> Make-hooks | |
8289 | done | |
8290 | ||
8291 | # If we're not building in srcdir, create .gdbinit. | |
8292 | ||
75bffa71 | 8293 | if test ! -f Makefile.in; then |
861bb6c1 JL |
8294 | echo "dir ." > .gdbinit |
8295 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 8296 | if test x$gdb_needs_out_file_path = xyes |
861bb6c1 JL |
8297 | then |
8298 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
8299 | fi | |
75bffa71 | 8300 | if test "x$subdirs" != x; then |
861bb6c1 JL |
8301 | for s in $subdirs |
8302 | do | |
8303 | echo "dir ${srcdir}/$s" >> .gdbinit | |
8304 | done | |
8305 | fi | |
8306 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
8307 | fi | |
8308 | ||
88111b26 JL |
8309 | # Define variables host_canonical and build_canonical |
8310 | # because some Cygnus local changes in the Makefile depend on them. | |
8311 | build_canonical=${build} | |
8312 | host_canonical=${host} | |
8313 | target_subdir= | |
75bffa71 | 8314 | if test "${host}" != "${target}" ; then |
88111b26 JL |
8315 | target_subdir=${target}/ |
8316 | fi | |
8317 | ||
8318 | ||
8319 | ||
8320 | ||
dec88383 DE |
8321 | # If this is using newlib, then define inhibit_libc in |
8322 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
8323 | # libgcc.a, but that's OK because newib should have its own version of | |
8324 | # assert.h. | |
8325 | inhibit_libc= | |
75bffa71 | 8326 | if test x$with_newlib = xyes; then |
dec88383 DE |
8327 | inhibit_libc=-Dinhibit_libc |
8328 | fi | |
8329 | ||
8330 | ||
8c660648 JL |
8331 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
8332 | sched_prefix= | |
8333 | sched_cflags= | |
75bffa71 | 8334 | if test x$enable_haifa = xyes; then |
8c660648 JL |
8335 | echo "Using the Haifa scheduler." |
8336 | sched_prefix=haifa- | |
8337 | sched_cflags=-DHAIFA | |
8338 | fi | |
8339 | ||
8340 | ||
75bffa71 | 8341 | if test x$enable_haifa != x; then |
8c660648 | 8342 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
81814e35 | 8343 | for x in genattrtab.o toplev.o *sched.o; do |
75bffa71 | 8344 | if test -f $x; then |
8c660648 JL |
8345 | echo "Removing $x" |
8346 | rm -f $x | |
8347 | fi | |
8348 | done | |
8349 | fi | |
8350 | ||
8f8d3278 NC |
8351 | # If $(exec_prefix) exists and is not the same as $(prefix), then compute an |
8352 | # absolute path for gcc_tooldir based on inserting the number of up-directory | |
8353 | # movements required to get from $(exec_prefix) to $(prefix) into the basic | |
8354 | # $(libsubdir)/@(unlibsubdir) based path. | |
82cbf8f7 JL |
8355 | # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel |
8356 | # make and thus we'd get different behavior depending on where we built the | |
8357 | # sources. | |
5949a9fc | 8358 | if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then |
d062c304 JL |
8359 | gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)' |
8360 | else | |
8f8d3278 NC |
8361 | # An explanation of the sed strings: |
8362 | # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix' | |
8363 | # -e 's|/$||' match a trailing forward slash and eliminates it | |
8364 | # -e 's|^[^/]|/|' forces the string to start with a forward slash (*) | |
8365 | # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../ | |
8366 | # | |
8367 | # (*) Note this pattern overwrites the first character of the string | |
8368 | # with a forward slash if one is not already present. This is not a | |
8369 | # problem because the exact names of the sub-directories concerned is | |
8370 | # unimportant, just the number of them matters. | |
8371 | # | |
8372 | # The practical upshot of these patterns is like this: | |
8373 | # | |
8374 | # prefix exec_prefix result | |
8375 | # ------ ----------- ------ | |
8376 | # /foo /foo/bar ../ | |
8377 | # /foo/ /foo/bar ../ | |
8378 | # /foo /foo/bar/ ../ | |
8379 | # /foo/ /foo/bar/ ../ | |
8380 | # /foo /foo/bar/ugg ../../ | |
8381 | # | |
4c112cda NC |
8382 | dollar='$$' |
8383 | gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)" | |
d062c304 JL |
8384 | fi |
8385 | ||
8386 | ||
2ce3c6c6 | 8387 | |
7e717196 JL |
8388 | # Nothing to do for FLOAT_H, float_format already handled. |
8389 | objdir=`pwd` | |
8390 | ||
8391 | ||
861bb6c1 JL |
8392 | # Process the language and host/target makefile fragments. |
8393 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
8394 | ||
8395 | # Substitute configuration variables | |
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
9b16d2c4 | 8442 | |
e9a25f70 | 8443 | |
6e26218f | 8444 | |
c8724862 | 8445 | |
e061d1ce | 8446 | |
f1943b77 | 8447 | |
0b9d02c6 | 8448 | |
3103b7db | 8449 | |
d8bb17c8 | 8450 | |
9fc9b82a L |
8451 | |
8452 | ||
df37e3db | 8453 | |
861bb6c1 JL |
8454 | |
8455 | ||
8456 | # Echo that links are built | |
75bffa71 | 8457 | if test x$host = x$target |
861bb6c1 JL |
8458 | then |
8459 | str1="native " | |
8460 | else | |
8461 | str1="cross-" | |
8462 | str2=" from $host" | |
8463 | fi | |
8464 | ||
75bffa71 | 8465 | if test x$host != x$build |
861bb6c1 JL |
8466 | then |
8467 | str3=" on a $build system" | |
8468 | fi | |
8469 | ||
75bffa71 | 8470 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8471 | then |
8472 | str4= | |
8473 | fi | |
8474 | ||
8475 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
8476 | ||
75bffa71 | 8477 | if test "x$str2" != x || test "x$str3" != x |
861bb6c1 JL |
8478 | then |
8479 | echo " ${str2}${str3}." 1>&2 | |
8480 | fi | |
8481 | ||
f6cb0e63 | 8482 | # Truncate the target if necessary |
75bffa71 | 8483 | if test x$host_truncate_target != x; then |
f6cb0e63 JL |
8484 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
8485 | fi | |
8486 | ||
861bb6c1 JL |
8487 | # Configure the subdirectories |
8488 | # AC_CONFIG_SUBDIRS($subdirs) | |
8489 | ||
8490 | # Create the Makefile | |
8491 | # and configure language subdirectories | |
8492 | trap '' 1 2 15 | |
8493 | cat > confcache <<\EOF | |
8494 | # This file is a shell script that caches the results of configure | |
8495 | # tests run on this system so they can be shared between configure | |
8496 | # scripts and configure runs. It is not useful on other systems. | |
8497 | # If it contains results you don't want to keep, you may remove or edit it. | |
8498 | # | |
8499 | # By default, configure uses ./config.cache as the cache file, | |
8500 | # creating it if it does not exist already. You can give configure | |
8501 | # the --cache-file=FILE option to use a different cache file; that is | |
8502 | # what configure does when it calls configure scripts in | |
8503 | # subdirectories, so they share the cache. | |
8504 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8505 | # config.status only pays attention to the cache file if you give it the | |
8506 | # --recheck option to rerun configure. | |
8507 | # | |
8508 | EOF | |
8509 | # The following way of writing the cache mishandles newlines in values, | |
8510 | # but we know of no workaround that is simple, portable, and efficient. | |
8511 | # So, don't put newlines in cache variables' values. | |
8512 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8513 | # and sets the high bit in the cache file unless we assign to the vars. | |
8514 | (set) 2>&1 | | |
b27d2bd5 | 8515 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
861bb6c1 JL |
8516 | *ac_space=\ *) |
8517 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8518 | # turns \\\\ into \\, and sed turns \\ into \). | |
8519 | sed -n \ | |
8520 | -e "s/'/'\\\\''/g" \ | |
8521 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8522 | ;; | |
8523 | *) | |
8524 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8525 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8526 | ;; | |
8527 | esac >> confcache | |
8528 | if cmp -s $cache_file confcache; then | |
8529 | : | |
8530 | else | |
8531 | if test -w $cache_file; then | |
8532 | echo "updating cache $cache_file" | |
8533 | cat confcache > $cache_file | |
8534 | else | |
8535 | echo "not updating unwritable cache $cache_file" | |
8536 | fi | |
8537 | fi | |
8538 | rm -f confcache | |
8539 | ||
8540 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8541 | ||
8542 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8543 | # Let make expand exec_prefix. | |
8544 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8545 | ||
8546 | # Any assignment to VPATH causes Sun make to only execute | |
8547 | # the first set of double-colon rules, so remove it if not needed. | |
8548 | # If there is a colon in the path, we need to keep it. | |
8549 | if test "x$srcdir" = x.; then | |
8550 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8551 | fi | |
8552 | ||
8553 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8554 | ||
8555 | DEFS=-DHAVE_CONFIG_H | |
8556 | ||
8557 | # Without the "./", some shells look in PATH for config.status. | |
8558 | : ${CONFIG_STATUS=./config.status} | |
8559 | ||
8560 | echo creating $CONFIG_STATUS | |
8561 | rm -f $CONFIG_STATUS | |
8562 | cat > $CONFIG_STATUS <<EOF | |
8563 | #! /bin/sh | |
8564 | # Generated automatically by configure. | |
8565 | # Run this file to recreate the current configuration. | |
8566 | # This directory was configured as follows, | |
8567 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8568 | # | |
8569 | # $0 $ac_configure_args | |
8570 | # | |
8571 | # Compiler output produced by configure, useful for debugging | |
8572 | # configure, is in ./config.log if it exists. | |
8573 | ||
8574 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8575 | for ac_option | |
8576 | do | |
8577 | case "\$ac_option" in | |
8578 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8579 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8580 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8581 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
b27d2bd5 | 8582 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
861bb6c1 JL |
8583 | exit 0 ;; |
8584 | -help | --help | --hel | --he | --h) | |
8585 | echo "\$ac_cs_usage"; exit 0 ;; | |
8586 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
8587 | esac | |
8588 | done | |
8589 | ||
8590 | ac_given_srcdir=$srcdir | |
861bb6c1 | 8591 | |
b7cb92ad | 8592 | trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
861bb6c1 JL |
8593 | EOF |
8594 | cat >> $CONFIG_STATUS <<EOF | |
8595 | ||
8596 | # Protect against being on the right side of a sed subst in config.status. | |
8597 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8598 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8599 | $ac_vpsub | |
8600 | $extrasub | |
6f144c9c | 8601 | s%@SHELL@%$SHELL%g |
861bb6c1 JL |
8602 | s%@CFLAGS@%$CFLAGS%g |
8603 | s%@CPPFLAGS@%$CPPFLAGS%g | |
8604 | s%@CXXFLAGS@%$CXXFLAGS%g | |
b27d2bd5 | 8605 | s%@FFLAGS@%$FFLAGS%g |
861bb6c1 JL |
8606 | s%@DEFS@%$DEFS%g |
8607 | s%@LDFLAGS@%$LDFLAGS%g | |
8608 | s%@LIBS@%$LIBS%g | |
8609 | s%@exec_prefix@%$exec_prefix%g | |
8610 | s%@prefix@%$prefix%g | |
8611 | s%@program_transform_name@%$program_transform_name%g | |
8612 | s%@bindir@%$bindir%g | |
8613 | s%@sbindir@%$sbindir%g | |
8614 | s%@libexecdir@%$libexecdir%g | |
8615 | s%@datadir@%$datadir%g | |
8616 | s%@sysconfdir@%$sysconfdir%g | |
8617 | s%@sharedstatedir@%$sharedstatedir%g | |
8618 | s%@localstatedir@%$localstatedir%g | |
8619 | s%@libdir@%$libdir%g | |
8620 | s%@includedir@%$includedir%g | |
8621 | s%@oldincludedir@%$oldincludedir%g | |
8622 | s%@infodir@%$infodir%g | |
8623 | s%@mandir@%$mandir%g | |
8624 | s%@host@%$host%g | |
8625 | s%@host_alias@%$host_alias%g | |
8626 | s%@host_cpu@%$host_cpu%g | |
8627 | s%@host_vendor@%$host_vendor%g | |
8628 | s%@host_os@%$host_os%g | |
8629 | s%@target@%$target%g | |
8630 | s%@target_alias@%$target_alias%g | |
8631 | s%@target_cpu@%$target_cpu%g | |
8632 | s%@target_vendor@%$target_vendor%g | |
8633 | s%@target_os@%$target_os%g | |
8634 | s%@build@%$build%g | |
8635 | s%@build_alias@%$build_alias%g | |
8636 | s%@build_cpu@%$build_cpu%g | |
8637 | s%@build_vendor@%$build_vendor%g | |
8638 | s%@build_os@%$build_os%g | |
e9a25f70 | 8639 | s%@CC@%$CC%g |
61842080 | 8640 | s%@stage1_warn_cflags@%$stage1_warn_cflags%g |
e9a25f70 | 8641 | s%@SET_MAKE@%$SET_MAKE%g |
861bb6c1 JL |
8642 | s%@AWK@%$AWK%g |
8643 | s%@LEX@%$LEX%g | |
8644 | s%@LEXLIB@%$LEXLIB%g | |
0a4b6309 RL |
8645 | s%@LN@%$LN%g |
8646 | s%@LN_S@%$LN_S%g | |
861bb6c1 JL |
8647 | s%@RANLIB@%$RANLIB%g |
8648 | s%@YACC@%$YACC%g | |
0a4b6309 RL |
8649 | s%@INSTALL@%$INSTALL%g |
8650 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
8651 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
861bb6c1 | 8652 | s%@CPP@%$CPP%g |
bcf12124 | 8653 | s%@gnat@%$gnat%g |
0a4b6309 RL |
8654 | s%@vfprintf@%$vfprintf%g |
8655 | s%@doprint@%$doprint%g | |
861bb6c1 | 8656 | s%@manext@%$manext%g |
992d1248 | 8657 | s%@objext@%$objext%g |
ab87f8c8 JL |
8658 | s%@PACKAGE@%$PACKAGE%g |
8659 | s%@VERSION@%$VERSION%g | |
8660 | s%@ALLOCA@%$ALLOCA%g | |
8661 | s%@USE_NLS@%$USE_NLS%g | |
8662 | s%@MSGFMT@%$MSGFMT%g | |
8663 | s%@GMSGFMT@%$GMSGFMT%g | |
8664 | s%@XGETTEXT@%$XGETTEXT%g | |
8665 | s%@GENCAT@%$GENCAT%g | |
8666 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
8667 | s%@CATALOGS@%$CATALOGS%g | |
8668 | s%@CATOBJEXT@%$CATOBJEXT%g | |
8669 | s%@DATADIRNAME@%$DATADIRNAME%g | |
8670 | s%@GMOFILES@%$GMOFILES%g | |
8671 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
8672 | s%@INTLDEPS@%$INTLDEPS%g | |
8673 | s%@INTLLIBS@%$INTLLIBS%g | |
8674 | s%@INTLOBJS@%$INTLOBJS%g | |
8675 | s%@POFILES@%$POFILES%g | |
8676 | s%@POSUB@%$POSUB%g | |
8677 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
8678 | s%@GT_NO@%$GT_NO%g | |
8679 | s%@GT_YES@%$GT_YES%g | |
8680 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
8681 | s%@l@%$l%g | |
f24af81b | 8682 | s%@gthread_flags@%$gthread_flags%g |
88111b26 JL |
8683 | s%@build_canonical@%$build_canonical%g |
8684 | s%@host_canonical@%$host_canonical%g | |
8685 | s%@target_subdir@%$target_subdir%g | |
dec88383 | 8686 | s%@inhibit_libc@%$inhibit_libc%g |
8c660648 JL |
8687 | s%@sched_prefix@%$sched_prefix%g |
8688 | s%@sched_cflags@%$sched_cflags%g | |
d062c304 | 8689 | s%@gcc_tooldir@%$gcc_tooldir%g |
4c112cda | 8690 | s%@dollar@%$dollar%g |
7e717196 | 8691 | s%@objdir@%$objdir%g |
861bb6c1 JL |
8692 | s%@subdirs@%$subdirs%g |
8693 | s%@all_languages@%$all_languages%g | |
8694 | s%@all_boot_languages@%$all_boot_languages%g | |
8695 | s%@all_compilers@%$all_compilers%g | |
8696 | s%@all_lang_makefiles@%$all_lang_makefiles%g | |
8697 | s%@all_stagestuff@%$all_stagestuff%g | |
8698 | s%@all_diff_excludes@%$all_diff_excludes%g | |
8699 | s%@all_lib2funcs@%$all_lib2funcs%g | |
8700 | s%@all_headers@%$all_headers%g | |
e061d1ce | 8701 | s%@cpp_main@%$cpp_main%g |
861bb6c1 JL |
8702 | s%@extra_passes@%$extra_passes%g |
8703 | s%@extra_programs@%$extra_programs%g | |
8704 | s%@extra_parts@%$extra_parts%g | |
8705 | s%@extra_c_objs@%$extra_c_objs%g | |
c8724862 | 8706 | s%@extra_cxx_objs@%$extra_cxx_objs%g |
0b9d02c6 | 8707 | s%@extra_cpp_objs@%$extra_cpp_objs%g |
861bb6c1 JL |
8708 | s%@extra_c_flags@%$extra_c_flags%g |
8709 | s%@extra_objs@%$extra_objs%g | |
8710 | s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g | |
8711 | s%@extra_headers_list@%$extra_headers_list%g | |
8712 | s%@dep_host_xmake_file@%$dep_host_xmake_file%g | |
8713 | s%@dep_tmake_file@%$dep_tmake_file%g | |
8714 | s%@out_file@%$out_file%g | |
8715 | s%@out_object_file@%$out_object_file%g | |
8716 | s%@md_file@%$md_file%g | |
8717 | s%@tm_file_list@%$tm_file_list%g | |
8718 | s%@build_xm_file_list@%$build_xm_file_list%g | |
8719 | s%@host_xm_file_list@%$host_xm_file_list%g | |
8720 | s%@lang_specs_files@%$lang_specs_files%g | |
8721 | s%@lang_options_files@%$lang_options_files%g | |
3103b7db | 8722 | s%@lang_tree_files@%$lang_tree_files%g |
861bb6c1 | 8723 | s%@thread_file@%$thread_file%g |
d8bb17c8 | 8724 | s%@objc_boehm_gc@%$objc_boehm_gc%g |
df37e3db | 8725 | s%@JAVAGC@%$JAVAGC%g |
f1943b77 MH |
8726 | s%@gcc_version@%$gcc_version%g |
8727 | s%@gcc_version_trigger@%$gcc_version_trigger%g | |
861bb6c1 | 8728 | s%@local_prefix@%$local_prefix%g |
8f8d3278 | 8729 | s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g |
861bb6c1 JL |
8730 | s%@fixincludes@%$fixincludes%g |
8731 | s%@build_install_headers_dir@%$build_install_headers_dir%g | |
8732 | s%@build_exeext@%$build_exeext%g | |
6e26218f | 8733 | s%@host_exeext@%$host_exeext%g |
027ea2a7 | 8734 | s%@float_h_file@%$float_h_file%g |
861bb6c1 JL |
8735 | s%@will_use_collect2@%$will_use_collect2%g |
8736 | s%@maybe_use_collect2@%$maybe_use_collect2%g | |
8737 | s%@cc_set_by_configure@%$cc_set_by_configure%g | |
8738 | s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g | |
9b16d2c4 | 8739 | s%@install@%$install%g |
e9a25f70 | 8740 | s%@symbolic_link@%$symbolic_link%g |
9fc9b82a | 8741 | s%@cpp_install_dir@%$cpp_install_dir%g |
861bb6c1 JL |
8742 | /@target_overrides@/r $target_overrides |
8743 | s%@target_overrides@%%g | |
8744 | /@host_overrides@/r $host_overrides | |
8745 | s%@host_overrides@%%g | |
8746 | s%@cross_defines@%$cross_defines%g | |
8747 | /@cross_overrides@/r $cross_overrides | |
8748 | s%@cross_overrides@%%g | |
8749 | /@build_overrides@/r $build_overrides | |
8750 | s%@build_overrides@%%g | |
8751 | /@language_fragments@/r $language_fragments | |
8752 | s%@language_fragments@%%g | |
8753 | /@language_hooks@/r $language_hooks | |
8754 | s%@language_hooks@%%g | |
8755 | ||
8756 | CEOF | |
8757 | EOF | |
8758 | ||
8759 | cat >> $CONFIG_STATUS <<\EOF | |
8760 | ||
8761 | # Split the substitutions into bite-sized pieces for seds with | |
8762 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8763 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8764 | ac_file=1 # Number of current file. | |
8765 | ac_beg=1 # First line for current file. | |
8766 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8767 | ac_more_lines=: | |
8768 | ac_sed_cmds="" | |
8769 | while $ac_more_lines; do | |
8770 | if test $ac_beg -gt 1; then | |
8771 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8772 | else | |
8773 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8774 | fi | |
8775 | if test ! -s conftest.s$ac_file; then | |
8776 | ac_more_lines=false | |
8777 | rm -f conftest.s$ac_file | |
8778 | else | |
8779 | if test -z "$ac_sed_cmds"; then | |
8780 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
8781 | else | |
8782 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8783 | fi | |
8784 | ac_file=`expr $ac_file + 1` | |
8785 | ac_beg=$ac_end | |
8786 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8787 | fi | |
8788 | done | |
8789 | if test -z "$ac_sed_cmds"; then | |
8790 | ac_sed_cmds=cat | |
8791 | fi | |
8792 | EOF | |
8793 | ||
8794 | cat >> $CONFIG_STATUS <<EOF | |
8795 | ||
8796 | CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"} | |
8797 | EOF | |
8798 | cat >> $CONFIG_STATUS <<\EOF | |
8799 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8800 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8801 | case "$ac_file" in | |
8802 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8803 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8804 | *) ac_file_in="${ac_file}.in" ;; | |
8805 | esac | |
8806 | ||
8807 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8808 | ||
8809 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8810 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8811 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8812 | # The file is in a subdirectory. | |
8813 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8814 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8815 | # A "../" for each directory in $ac_dir_suffix. | |
8816 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8817 | else | |
8818 | ac_dir_suffix= ac_dots= | |
8819 | fi | |
8820 | ||
8821 | case "$ac_given_srcdir" in | |
8822 | .) srcdir=. | |
8823 | if test -z "$ac_dots"; then top_srcdir=. | |
8824 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8825 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8826 | *) # Relative path. | |
8827 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8828 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8829 | esac | |
8830 | ||
861bb6c1 JL |
8831 | |
8832 | echo creating "$ac_file" | |
8833 | rm -f "$ac_file" | |
8834 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8835 | case "$ac_file" in | |
8836 | *Makefile*) ac_comsub="1i\\ | |
8837 | # $configure_input" ;; | |
8838 | *) ac_comsub= ;; | |
8839 | esac | |
8840 | ||
8841 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8842 | sed -e "$ac_comsub | |
8843 | s%@configure_input@%$configure_input%g | |
8844 | s%@srcdir@%$srcdir%g | |
8845 | s%@top_srcdir@%$top_srcdir%g | |
861bb6c1 JL |
8846 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
8847 | fi; done | |
8848 | rm -f conftest.s* | |
8849 | ||
8850 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8851 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8852 | # | |
8853 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8854 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8855 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8856 | ac_dC='\3' | |
8857 | ac_dD='%g' | |
8858 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8859 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8860 | ac_uB='\([ ]\)%\1#\2define\3' | |
8861 | ac_uC=' ' | |
8862 | ac_uD='\4%g' | |
8863 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8864 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8865 | ac_eB='$%\1#\2define\3' | |
8866 | ac_eC=' ' | |
8867 | ac_eD='%g' | |
8868 | ||
8869 | if test "${CONFIG_HEADERS+set}" != set; then | |
8870 | EOF | |
8871 | cat >> $CONFIG_STATUS <<EOF | |
b7cb92ad | 8872 | CONFIG_HEADERS="auto-host.h:config.in" |
861bb6c1 JL |
8873 | EOF |
8874 | cat >> $CONFIG_STATUS <<\EOF | |
8875 | fi | |
8876 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8877 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8878 | case "$ac_file" in | |
8879 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8880 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8881 | *) ac_file_in="${ac_file}.in" ;; | |
8882 | esac | |
8883 | ||
8884 | echo creating $ac_file | |
8885 | ||
8886 | rm -f conftest.frag conftest.in conftest.out | |
8887 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8888 | cat $ac_file_inputs > conftest.in | |
8889 | ||
8890 | EOF | |
8891 | ||
8892 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8893 | # the proper values into config.h.in to produce config.h. And first: | |
8894 | # Protect against being on the right side of a sed subst in config.status. | |
8895 | # Protect against being in an unquoted here document in config.status. | |
8896 | rm -f conftest.vals | |
8897 | cat > conftest.hdr <<\EOF | |
8898 | s/[\\&%]/\\&/g | |
8899 | s%[\\$`]%\\&%g | |
8900 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8901 | s%ac_d%ac_u%gp | |
8902 | s%ac_u%ac_e%gp | |
8903 | EOF | |
8904 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8905 | rm -f conftest.hdr | |
8906 | ||
8907 | # This sed command replaces #undef with comments. This is necessary, for | |
8908 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8909 | # on some systems where configure will not decide to define it. | |
8910 | cat >> conftest.vals <<\EOF | |
8911 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8912 | EOF | |
8913 | ||
8914 | # Break up conftest.vals because some shells have a limit on | |
8915 | # the size of here documents, and old seds have small limits too. | |
8916 | ||
8917 | rm -f conftest.tail | |
8918 | while : | |
8919 | do | |
8920 | ac_lines=`grep -c . conftest.vals` | |
8921 | # grep -c gives empty output for an empty file on some AIX systems. | |
8922 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8923 | # Write a limited-size here document to conftest.frag. | |
8924 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8925 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8926 | echo 'CEOF | |
8927 | sed -f conftest.frag conftest.in > conftest.out | |
8928 | rm -f conftest.in | |
8929 | mv conftest.out conftest.in | |
8930 | ' >> $CONFIG_STATUS | |
8931 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8932 | rm -f conftest.vals | |
8933 | mv conftest.tail conftest.vals | |
8934 | done | |
8935 | rm -f conftest.vals | |
8936 | ||
8937 | cat >> $CONFIG_STATUS <<\EOF | |
8938 | rm -f conftest.frag conftest.h | |
8939 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8940 | cat conftest.in >> conftest.h | |
8941 | rm -f conftest.in | |
8942 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8943 | echo "$ac_file is unchanged" | |
8944 | rm -f conftest.h | |
8945 | else | |
8946 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8947 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8948 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8949 | # The file is in a subdirectory. | |
8950 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8951 | fi | |
8952 | rm -f $ac_file | |
8953 | mv conftest.h $ac_file | |
8954 | fi | |
8955 | fi; done | |
8956 | ||
ab87f8c8 JL |
8957 | EOF |
8958 | ||
8959 | cat >> $CONFIG_STATUS <<EOF | |
8960 | ac_sources="$nls_cv_header_libgt" | |
8961 | ac_dests="$nls_cv_header_intl" | |
8962 | EOF | |
8963 | ||
8964 | cat >> $CONFIG_STATUS <<\EOF | |
8965 | srcdir=$ac_given_srcdir | |
8966 | while test -n "$ac_sources"; do | |
8967 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
8968 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
8969 | ||
8970 | echo "linking $srcdir/$ac_source to $ac_dest" | |
8971 | ||
8972 | if test ! -r $srcdir/$ac_source; then | |
8973 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } | |
8974 | fi | |
8975 | rm -f $ac_dest | |
8976 | ||
8977 | # Make relative symlinks. | |
8978 | # Remove last slash and all that follows it. Not all systems have dirname. | |
8979 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
8980 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
8981 | # The dest file is in a subdirectory. | |
8982 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
8983 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" | |
8984 | # A "../" for each directory in $ac_dest_dir_suffix. | |
8985 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
8986 | else | |
8987 | ac_dest_dir_suffix= ac_dots= | |
8988 | fi | |
8989 | ||
8990 | case "$srcdir" in | |
8991 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
8992 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
8993 | esac | |
8994 | ||
8995 | # Make a symlink if possible; otherwise try a hard link. | |
8996 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
8997 | ln $srcdir/$ac_source $ac_dest; then : | |
8998 | else | |
8999 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } | |
9000 | fi | |
9001 | done | |
861bb6c1 JL |
9002 | EOF |
9003 | cat >> $CONFIG_STATUS <<EOF | |
9004 | ||
ab87f8c8 | 9005 | |
861bb6c1 JL |
9006 | host='${host}' |
9007 | build='${build}' | |
9008 | target='${target}' | |
9009 | target_alias='${target_alias}' | |
9010 | srcdir='${srcdir}' | |
9011 | subdirs='${subdirs}' | |
9012 | oldstyle_subdirs='${oldstyle_subdirs}' | |
9013 | symbolic_link='${symbolic_link}' | |
9014 | program_transform_set='${program_transform_set}' | |
9015 | program_transform_name='${program_transform_name}' | |
9016 | dep_host_xmake_file='${dep_host_xmake_file}' | |
9017 | host_xmake_file='${host_xmake_file}' | |
9018 | dep_tmake_file='${dep_tmake_file}' | |
9019 | tmake_file='${tmake_file}' | |
9020 | thread_file='${thread_file}' | |
f1943b77 MH |
9021 | gcc_version='${gcc_version}' |
9022 | gcc_version_trigger='${gcc_version_trigger}' | |
861bb6c1 JL |
9023 | local_prefix='${local_prefix}' |
9024 | build_install_headers_dir='${build_install_headers_dir}' | |
9025 | build_exeext='${build_exeext}' | |
6e26218f | 9026 | host_exeext='${host_exeext}' |
7ed46111 | 9027 | out_file='${out_file}' |
861bb6c1 JL |
9028 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
9029 | SET_MAKE='${SET_MAKE}' | |
861bb6c1 JL |
9030 | target_list='${target_list}' |
9031 | target_overrides='${target_overrides}' | |
9032 | host_overrides='${host_overrides}' | |
9033 | cross_defines='${cross_defines}' | |
9034 | cross_overrides='${cross_overrides}' | |
9035 | build_overrides='${build_overrides}' | |
9fc9b82a | 9036 | cpp_install_dir='${cpp_install_dir}' |
861bb6c1 JL |
9037 | |
9038 | EOF | |
9039 | cat >> $CONFIG_STATUS <<\EOF | |
ab87f8c8 JL |
9040 | case "$CONFIG_FILES" in *po/Makefile.in*) |
9041 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9042 | esac | |
861bb6c1 JL |
9043 | |
9044 | . $srcdir/configure.lang | |
9045 | case x$CONFIG_HEADERS in | |
b7cb92ad | 9046 | xauto-host.h:config.in) |
861bb6c1 JL |
9047 | echo > cstamp-h ;; |
9048 | esac | |
93cf819d BK |
9049 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
9050 | # bootstrapping and the installation procedure can still use | |
9051 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
9052 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
9053 | # This is virtually a duplicate of what happens in configure.lang; we do | |
9054 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 9055 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 9056 | for d in .. ${subdirs} ; do |
75bffa71 | 9057 | if test $d != ..; then |
4e8a434e BK |
9058 | STARTDIR=`pwd` |
9059 | cd $d | |
9060 | for t in stage1 stage2 stage3 stage4 include | |
9061 | do | |
9062 | rm -f $t | |
9063 | $symbolic_link ../$t $t 2>/dev/null | |
9064 | done | |
9065 | cd $STARTDIR | |
93cf819d BK |
9066 | fi |
9067 | done | |
9068 | else true ; fi | |
ab87f8c8 JL |
9069 | # Avoid having to add intl to our include paths. |
9070 | if test -f intl/libintl.h; then | |
9071 | echo creating libintl.h | |
9072 | echo '#include "intl/libintl.h"' >libintl.h | |
9073 | fi | |
861bb6c1 JL |
9074 | |
9075 | exit 0 | |
9076 | EOF | |
9077 | chmod +x $CONFIG_STATUS | |
9078 | rm -fr confdefs* $ac_clean_files | |
9079 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
9080 |