Run the alternative version of the lns-common-1 test for the MCore target.
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
cac3d6c4 2
a0da8069 3# Guess values for system-dependent variables and create Makefiles.
cac3d6c4
CM
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
a0da8069
NN
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
cac3d6c4
CM
10# Defaults:
11ac_help=
a0da8069 12ac_default_prefix=/usr/local
cac3d6c4 13# Any additions from configure.in:
66a79c16
DJ
14ac_help="$ac_help
15 --with-build-libsubdir=[DIR] Directory where to find libraries for build system"
cac3d6c4
CM
16ac_help="$ac_help
17 --enable-libada Builds libada directory"
18ac_help="$ac_help
19 --enable-libssp Builds libssp directory"
20ac_help="$ac_help
8a0d8a5c 21 --with-mpfr-dir=PATH This option has been REMOVED"
cac3d6c4 22ac_help="$ac_help
8a0d8a5c
PB
23 --with-mpfr=PATH Specify prefix directory for installed MPFR package
24 Equivalent to --with-mpfr-include=PATH/include
25 plus --with-mpfr-lib=PATH/lib"
cac3d6c4 26ac_help="$ac_help
8a0d8a5c
PB
27 --with-mpfr-include=PATH
28 Specify directory for installed MPFR include files"
cac3d6c4 29ac_help="$ac_help
8a0d8a5c
PB
30 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library"
31ac_help="$ac_help
32 --with-gmp-dir=PATH This option has been REMOVED"
33ac_help="$ac_help
34 --with-gmp=PATH Specify prefix directory for the installed GMP package
35 Equivalent to --with-gmp-include=PATH/include
36 plus --with-gmp-lib=PATH/lib"
37ac_help="$ac_help
38 --with-gmp-include=PATH Specify directory for installed GMP include files"
39ac_help="$ac_help
40 --with-gmp-lib=PATH Specify the directory for the installed GMP library"
9b134994
PB
41ac_help="$ac_help
42 --enable-stage1-languages[=all] choose additional languages to build during
43 stage1. Mostly useful for compiler development."
4f0ef2d8
CD
44ac_help="$ac_help
45 --enable-objc-gc enable the use of Boehm's garbage collector with
46 the GNU Objective-C runtime."
cac3d6c4
CM
47ac_help="$ac_help
48 --with-build-sysroot=sysroot
49 use sysroot as the system root during the build"
50ac_help="$ac_help
80911fe1 51 --enable-bootstrap Enable bootstrapping [yes if native build]"
cac3d6c4
CM
52ac_help="$ac_help
53 --enable-serial-[{host,target,build}-]configure
54 Force sequential configuration of
55 sub-packages for the host, target or build
56 machine, or all sub-packages"
2429c060
PB
57ac_help="$ac_help
58 --with-build-time-tools=path
59 use given path to find target tools during the build"
cac3d6c4
CM
60ac_help="$ac_help
61 --enable-maintainer-mode enable make rules and dependencies not useful
62 (and sometimes confusing) to the casual installer"
8a0d8a5c
PB
63ac_help="$ac_help
64 --enable-stage1-checking[=all] choose additional checking for stage1
65 of the compiler."
cac3d6c4
CM
66ac_help="$ac_help
67 --enable-werror enable -Werror in bootstrap stage2 and later"
108a6f8e
CD
68ac_help="$ac_help
69 --with-datarootdir Use datarootdir as the data root directory."
70ac_help="$ac_help
71 --with-docdir Install documentation in this directory."
72ac_help="$ac_help
73 --with-htmldir Install html in this directory."
a0da8069
NN
74
75# Initialize some variables set by options.
76# The variables have the same names as the options, with
77# dashes changed to underlines.
cac3d6c4
CM
78build=NONE
79cache_file=./config.cache
a0da8069 80exec_prefix=NONE
cac3d6c4 81host=NONE
a0da8069 82no_create=
cac3d6c4 83nonopt=NONE
a0da8069
NN
84no_recursion=
85prefix=NONE
86program_prefix=NONE
87program_suffix=NONE
88program_transform_name=s,x,x,
89silent=
90site=
91srcdir=
cac3d6c4 92target=NONE
a0da8069
NN
93verbose=
94x_includes=NONE
95x_libraries=NONE
96bindir='${exec_prefix}/bin'
97sbindir='${exec_prefix}/sbin'
98libexecdir='${exec_prefix}/libexec'
99datadir='${prefix}/share'
100sysconfdir='${prefix}/etc'
101sharedstatedir='${prefix}/com'
102localstatedir='${prefix}/var'
103libdir='${exec_prefix}/lib'
104includedir='${prefix}/include'
105oldincludedir='/usr/include'
106infodir='${prefix}/info'
107mandir='${prefix}/man'
252b5132 108
cac3d6c4
CM
109# Initialize some other variables.
110subdirs=
111MFLAGS= MAKEFLAGS=
112SHELL=${CONFIG_SHELL-/bin/sh}
113# Maximum number of lines to put in a shell here document.
114ac_max_here_lines=12
115
a0da8069
NN
116ac_prev=
117for ac_option
118do
cac3d6c4 119
a0da8069
NN
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
125 fi
252b5132 126
cac3d6c4
CM
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
a0da8069
NN
131
132 # Accept the important Cygnus configure options, so we can diagnose typos.
133
cac3d6c4 134 case "$ac_option" in
a0da8069
NN
135
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
cac3d6c4 139 bindir="$ac_optarg" ;;
a0da8069
NN
140
141 -build | --build | --buil | --bui | --bu)
cac3d6c4 142 ac_prev=build ;;
a0da8069 143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
cac3d6c4 144 build="$ac_optarg" ;;
a0da8069
NN
145
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cac3d6c4 151 cache_file="$ac_optarg" ;;
a0da8069
NN
152
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
cac3d6c4 157 datadir="$ac_optarg" ;;
a0da8069
NN
158
159 -disable-* | --disable-*)
cac3d6c4 160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
a0da8069 161 # Reject names that are not valid shell variable names.
cac3d6c4
CM
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 fi
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
a0da8069
NN
167
168 -enable-* | --enable-*)
cac3d6c4 169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
a0da8069 170 # Reject names that are not valid shell variable names.
cac3d6c4
CM
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 fi
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
a0da8069
NN
177 *) ac_optarg=yes ;;
178 esac
cac3d6c4 179 eval "enable_${ac_feature}='$ac_optarg'" ;;
a0da8069
NN
180
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
cac3d6c4 188 exec_prefix="$ac_optarg" ;;
a0da8069
NN
189
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
193
cac3d6c4
CM
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198Usage: configure [options] [host]
199Options: [defaults in brackets after descriptions]
200Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
230EOF
231 cat << EOF
232Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
243EOF
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
246 fi
247 exit 0 ;;
a0da8069
NN
248
249 -host | --host | --hos | --ho)
cac3d6c4 250 ac_prev=host ;;
a0da8069 251 -host=* | --host=* | --hos=* | --ho=*)
cac3d6c4 252 host="$ac_optarg" ;;
a0da8069
NN
253
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
cac3d6c4 259 includedir="$ac_optarg" ;;
a0da8069
NN
260
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
cac3d6c4 264 infodir="$ac_optarg" ;;
a0da8069
NN
265
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
cac3d6c4 269 libdir="$ac_optarg" ;;
a0da8069
NN
270
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
cac3d6c4 276 libexecdir="$ac_optarg" ;;
a0da8069
NN
277
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
cac3d6c4 285 localstatedir="$ac_optarg" ;;
a0da8069
NN
286
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
cac3d6c4 290 mandir="$ac_optarg" ;;
a0da8069
NN
291
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
295
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cac3d6c4 297 | --no-cr | --no-c)
a0da8069
NN
298 no_create=yes ;;
299
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
303
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
cac3d6c4 311 oldincludedir="$ac_optarg" ;;
a0da8069
NN
312
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
cac3d6c4 316 prefix="$ac_optarg" ;;
a0da8069
NN
317
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
cac3d6c4 323 program_prefix="$ac_optarg" ;;
a0da8069
NN
324
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
cac3d6c4 330 program_suffix="$ac_optarg" ;;
a0da8069
NN
331
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
cac3d6c4 347 program_transform_name="$ac_optarg" ;;
a0da8069
NN
348
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
352
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
cac3d6c4 357 sbindir="$ac_optarg" ;;
a0da8069
NN
358
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
cac3d6c4 368 sharedstatedir="$ac_optarg" ;;
a0da8069
NN
369
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
cac3d6c4 373 site="$ac_optarg" ;;
a0da8069
NN
374
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
cac3d6c4 378 srcdir="$ac_optarg" ;;
a0da8069
NN
379
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
cac3d6c4 385 sysconfdir="$ac_optarg" ;;
a0da8069
NN
386
387 -target | --target | --targe | --targ | --tar | --ta | --t)
cac3d6c4 388 ac_prev=target ;;
a0da8069 389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
cac3d6c4 390 target="$ac_optarg" ;;
a0da8069
NN
391
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
394
cac3d6c4
CM
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
a0da8069
NN
398
399 -with-* | --with-*)
cac3d6c4 400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
a0da8069 401 # Reject names that are not valid shell variable names.
cac3d6c4
CM
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 fi
a0da8069 405 ac_package=`echo $ac_package| sed 's/-/_/g'`
cac3d6c4
CM
406 case "$ac_option" in
407 *=*) ;;
a0da8069
NN
408 *) ac_optarg=yes ;;
409 esac
cac3d6c4 410 eval "with_${ac_package}='$ac_optarg'" ;;
a0da8069
NN
411
412 -without-* | --without-*)
cac3d6c4 413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
a0da8069 414 # Reject names that are not valid shell variable names.
cac3d6c4
CM
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 fi
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
a0da8069
NN
420
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
424
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
cac3d6c4 430 x_includes="$ac_optarg" ;;
a0da8069
NN
431
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
cac3d6c4 437 x_libraries="$ac_optarg" ;;
a0da8069 438
cac3d6c4 439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
a0da8069
NN
440 ;;
441
442 *)
cac3d6c4
CM
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 fi
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448 fi
449 nonopt="$ac_option"
a0da8069
NN
450 ;;
451
452 esac
453done
454
455if test -n "$ac_prev"; then
cac3d6c4 456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
a0da8069 457fi
a0da8069 458
cac3d6c4
CM
459trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460
461# File descriptor usage:
462# 0 standard input
463# 1 file creation
464# 2 errors and warnings
465# 3 some systems may open it to /dev/tty
466# 4 used on the Kubota Titan
467# 6 checking for... messages and results
468# 5 compiler messages saved in config.log
469if test "$silent" = yes; then
470 exec 6>/dev/null
471else
472 exec 6>&1
473fi
474exec 5>./config.log
475
476echo "\
477This file contains any messages produced by compilers while
478running configure, to aid debugging if configure makes a mistake.
479" 1>&5
a0da8069 480
cac3d6c4
CM
481# Strip out --no-create and --no-recursion so they do not pile up.
482# Also quote any args containing shell metacharacters.
483ac_configure_args=
484for ac_arg
a0da8069 485do
cac3d6c4
CM
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
a0da8069
NN
494 esac
495done
496
cac3d6c4
CM
497# NLS nuisances.
498# Only set these to C if already set. These must not be set unconditionally
499# because not all systems understand e.g. LANG=C (notably SCO).
500# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501# Non-C LC_CTYPE values break the ctype check.
502if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
376a0e54 506
cac3d6c4
CM
507# confdefs.h avoids OS command line length limits that DEFS can exceed.
508rm -rf conftest* confdefs.h
509# AIX cpp loses on an empty file, so make sure it contains at least a newline.
510echo > confdefs.h
a0da8069 511
cac3d6c4
CM
512# A filename unique to this package, relative to the directory that
513# configure is in, which we can look for to find out if srcdir is correct.
514ac_unique_file=move-if-change
a0da8069
NN
515
516# Find the source files, if location was not specified.
517if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
cac3d6c4
CM
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
a0da8069
NN
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
526 fi
527else
528 ac_srcdir_defaulted=no
529fi
530if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
cac3d6c4 532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
a0da8069 533 else
cac3d6c4 534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
a0da8069
NN
535 fi
536fi
cac3d6c4 537srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
a0da8069
NN
538
539# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
540if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
545 fi
546fi
547for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
cac3d6c4 549 echo "loading site script $ac_site_file"
a0da8069
NN
550 . "$ac_site_file"
551 fi
552done
553
554if test -r "$cache_file"; then
cac3d6c4
CM
555 echo "loading cache $cache_file"
556 . $cache_file
a0da8069 557else
cac3d6c4
CM
558 echo "creating cache $cache_file"
559 > $cache_file
a0da8069
NN
560fi
561
562ac_ext=c
cac3d6c4 563# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
a0da8069 564ac_cpp='$CPP $CPPFLAGS'
cac3d6c4
CM
565ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567cross_compiling=$ac_cv_prog_cc_cross
568
569ac_exeext=
570ac_objext=o
571if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
578 fi
579else
580 ac_n= ac_c='\c' ac_t=
581fi
a0da8069
NN
582
583
75778ec4 584
a0da8069 585ac_aux_dir=
315b3b02 586for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
595 fi
596done
597if test -z "$ac_aux_dir"; then
cac3d6c4 598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
a0da8069 599fi
cac3d6c4
CM
600ac_config_guess=$ac_aux_dir/config.guess
601ac_config_sub=$ac_aux_dir/config.sub
602ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
a0da8069
NN
603
604
cac3d6c4
CM
605# Do some error checking and defaulting for the host and target type.
606# The inputs are:
607# configure --host=HOST --target=TARGET --build=BUILD NONOPT
608#
609# The rules are:
610# 1. You are not allowed to specify --host, --target, and nonopt at the
611# same time.
612# 2. Host defaults to nonopt.
613# 3. If nonopt is not specified, then host defaults to the current host,
614# as determined by config.guess.
615# 4. Target and build default to nonopt.
616# 5. If nonopt is not specified, then target and build default to host.
a0da8069
NN
617
618# The aliases save the names the user supplied, while $host etc.
619# will get canonicalized.
cac3d6c4
CM
620case $host---$target---$nonopt in
621NONE---*---* | *---NONE---* | *---*---NONE) ;;
622*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
623esac
624
625
626# Make sure we can run config.sub.
627if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
628else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
629fi
630
631echo $ac_n "checking host system type""... $ac_c" 1>&6
9b134994 632echo "configure:633: checking host system type" >&5
cac3d6c4
CM
633
634host_alias=$host
635case "$host_alias" in
636NONE)
637 case $nonopt in
638 NONE)
639 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
641 fi ;;
642 *) host_alias=$nonopt ;;
643 esac ;;
644esac
645
646host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650echo "$ac_t""$host" 1>&6
651
652echo $ac_n "checking target system type""... $ac_c" 1>&6
9b134994 653echo "configure:654: checking target system type" >&5
cac3d6c4
CM
654
655target_alias=$target
656case "$target_alias" in
657NONE)
658 case $nonopt in
659 NONE) target_alias=$host_alias ;;
660 *) target_alias=$nonopt ;;
661 esac ;;
662esac
663
664target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
665target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668echo "$ac_t""$target" 1>&6
669
670echo $ac_n "checking build system type""... $ac_c" 1>&6
9b134994 671echo "configure:672: checking build system type" >&5
cac3d6c4
CM
672
673build_alias=$build
674case "$build_alias" in
675NONE)
676 case $nonopt in
677 NONE) build_alias=$host_alias ;;
678 *) build_alias=$nonopt ;;
679 esac ;;
680esac
681
682build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
683build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686echo "$ac_t""$build" 1>&6
687
688test "$host_alias" != "$target_alias" &&
a0da8069
NN
689 test "$program_prefix$program_suffix$program_transform_name" = \
690 NONENONEs,x,x, &&
691 program_prefix=${target_alias}-
cac3d6c4
CM
692
693if test "$program_transform_name" = s,x,x,; then
694 program_transform_name=
695else
696 # Double any \ or $. echo might interpret backslashes.
697 cat <<\EOF_SED > conftestsed
698s,\\,\\\\,g; s,\$,$$,g
699EOF_SED
700 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
701 rm -f conftestsed
702fi
a0da8069 703test "$program_prefix" != NONE &&
cac3d6c4 704 program_transform_name="s,^,${program_prefix},; $program_transform_name"
a0da8069
NN
705# Use a double $ so make ignores it.
706test "$program_suffix" != NONE &&
cac3d6c4
CM
707 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
708
709# sed with no file args requires a program.
710test "$program_transform_name" = "" && program_transform_name="s,x,x,"
a0da8069
NN
711
712
e5c3f801
NN
713# Get 'install' or 'install-sh' and its variants.
714# Find a good install program. We prefer a C program (faster),
715# so one script is as good as another. But avoid the broken or
716# incompatible versions:
717# SysV /etc/install, /usr/sbin/install
718# SunOS /usr/etc/install
719# IRIX /sbin/install
720# AIX /bin/install
721# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
722# AFS /usr/afsws/bin/install, which mishandles nonexistent args
723# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
724# ./install, which can be erroneously created by make from ./install.sh.
cac3d6c4 725echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9b134994 726echo "configure:727: checking for a BSD compatible install" >&5
e5c3f801 727if test -z "$INSTALL"; then
cac3d6c4
CM
728if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730else
731 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
732 for ac_dir in $PATH; do
733 # Account for people who put trailing slashes in PATH elements.
734 case "$ac_dir/" in
735 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
736 *)
737 # OSF1 and SCO ODT 3.0 have their own names for install.
738 # Don't use installbsd from OSF since it installs stuff as root
739 # by default.
740 for ac_prog in ginstall scoinst install; do
741 if test -f $ac_dir/$ac_prog; then
e5c3f801 742 if test $ac_prog = install &&
cac3d6c4 743 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
e5c3f801
NN
744 # AIX install. It has an incompatible calling convention.
745 :
746 else
cac3d6c4
CM
747 ac_cv_path_install="$ac_dir/$ac_prog -c"
748 break 2
e5c3f801
NN
749 fi
750 fi
751 done
cac3d6c4
CM
752 ;;
753 esac
754 done
755 IFS="$ac_save_IFS"
e5c3f801
NN
756
757fi
758 if test "${ac_cv_path_install+set}" = set; then
cac3d6c4 759 INSTALL="$ac_cv_path_install"
e5c3f801
NN
760 else
761 # As a last resort, use the slow shell script. We don't cache a
762 # path for INSTALL within a source directory, because that will
763 # break other packages using the cache if that directory is
764 # removed, or if the path is relative.
cac3d6c4 765 INSTALL="$ac_install_sh"
e5c3f801
NN
766 fi
767fi
cac3d6c4 768echo "$ac_t""$INSTALL" 1>&6
e5c3f801
NN
769
770# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
771# It thinks the first close brace ends the variable substitution.
772test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
773
cac3d6c4 774test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
e5c3f801
NN
775
776test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
777
cac3d6c4 778echo $ac_n "checking whether ln works""... $ac_c" 1>&6
9b134994 779echo "configure:780: checking whether ln works" >&5
cac3d6c4
CM
780if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
656fdd47
PB
782else
783 rm -f conftestdata_t
784echo >conftestdata_f
785if ln conftestdata_f conftestdata_t 2>/dev/null
786then
787 acx_cv_prog_LN=ln
788else
789 acx_cv_prog_LN=no
790fi
791rm -f conftestdata_f conftestdata_t
792
793fi
794if test $acx_cv_prog_LN = no; then
795 LN="cp"
cac3d6c4 796 echo "$ac_t""no, using $LN" 1>&6
656fdd47
PB
797else
798 LN="$acx_cv_prog_LN"
cac3d6c4 799 echo "$ac_t""yes" 1>&6
656fdd47
PB
800fi
801
cac3d6c4 802echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9b134994 803echo "configure:804: checking whether ln -s works" >&5
cac3d6c4
CM
804if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806else
807 rm -f conftestdata
808if ln -s X conftestdata 2>/dev/null
809then
810 rm -f conftestdata
811 ac_cv_prog_LN_S="ln -s"
812else
813 ac_cv_prog_LN_S=ln
814fi
815fi
816LN_S="$ac_cv_prog_LN_S"
817if test "$ac_cv_prog_LN_S" = "ln -s"; then
818 echo "$ac_t""yes" 1>&6
dfdffa2c 819else
cac3d6c4 820 echo "$ac_t""no" 1>&6
dfdffa2c
PB
821fi
822
e5c3f801 823
252b5132 824### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
825### If we are on Windows, search for the shell. This will permit people
826### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
827### without also having to set CONFIG_SHELL. This code will work when
828### using bash, which sets OSTYPE.
829case "${OSTYPE}" in
830*win32*)
a0da8069
NN
831 if test x${CONFIG_SHELL} = x ; then
832 if test ! -f /bin/sh ; then
833 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
834 CONFIG_SHELL=${SHELL}
835 export CONFIG_SHELL
836 else
837 for prog in sh sh.exe bash bash.exe; do
838 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
839 for dir in $PATH; do
840 test -z "$dir" && dir=.
841 if test -f $dir/$prog; then
842 CONFIG_SHELL=$dir/$prog
843 export CONFIG_SHELL
844 break
845 fi
846 done
847 IFS="$save_ifs"
848 test -n "${CONFIG_SHELL}" && break
849 done
850 fi
851 fi
852 fi
853 ;;
854esac
855
856config_shell=${CONFIG_SHELL-/bin/sh}
857
252b5132
RH
858progname=$0
859# if PWD already has a value, it is probably wrong.
a0da8069 860if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 861
d2cc0e0d 862# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
863# will be expanded by make, so quote '$'.
864tmp="$progname $@"
865sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
866$tmp
d2cc0e0d 867EOF_SED
8ff944f6
DJ
868TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
869rm -f conftestsed.out
586c0873 870
75205f78 871
a0da8069 872moveifchange=${srcdir}/move-if-change
252b5132 873
0fdbe983
DJ
874srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
875
876# We pass INSTALL explicitly to sub-makes. Make sure that it is not
877# a relative path.
878if test "$INSTALL" = "${srcdir}/install-sh -c"; then
879 INSTALL="${srcpwd}/install-sh -c"
880fi
881
a0da8069
NN
882# Set srcdir to "." if that's what it is.
883# This is important for multilib support.
884pwd=`${PWDCMD-pwd}`
a0da8069
NN
885if test "${pwd}" = "${srcpwd}" ; then
886 srcdir=.
252b5132
RH
887fi
888
a0da8069 889topsrcdir=$srcpwd
252b5132 890
a0da8069 891extra_host_args=
afefada0 892
a0da8069
NN
893### To add a new directory to the tree, first choose whether it is a target
894### or a host dependent tool. Then put it into the appropriate list
895### (library or tools, host or target), doing a dependency sort.
252b5132 896
cac3d6c4 897# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 898# configdirs, or target_configdirs; see the serialization section below.
252b5132 899
cac3d6c4
CM
900# Dependency sorting is only needed when *configuration* must be done in
901# a particular order. In all cases a dependency should be specified in
a0da8069 902# the Makefile, whether or not it's implicitly specified here.
252b5132 903
a0da8069
NN
904# Double entries in build_configdirs, configdirs, or target_configdirs may
905# cause circular dependencies and break everything horribly.
252b5132 906
6a9cf61e
PB
907# these library is used by various programs built for the build
908# environment
909#
910build_libs="build-libiberty"
911
912# these tools are built for the build environment
ee025550 913build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 914
a0da8069
NN
915# these libraries are used by various programs built for the host environment
916#
be01d343 917host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
a0da8069 918
a0da8069
NN
919# these tools are built for the host environment
920# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
921# know that we are building the simulator.
922# binutils, gas and ld appear in that order because it makes sense to run
923# "make check" in that particular order.
b00612cc 924host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
925
926# libgcj represents the runtime libraries only used by gcj.
927libgcj="target-libffi \
a0da8069
NN
928 target-zlib \
929 target-qthreads \
930 target-libjava"
931
932# these libraries are built for the target environment, and are built after
933# the host libraries and the host tools (which may be a cross compiler)
934#
9c14acb8 935target_libraries="target-libiberty \
6aa8ef82 936 target-libgcc \
a0da8069
NN
937 target-libgloss \
938 target-newlib \
b9459e83 939 target-libstdc++-v3 \
4b1cb4fe 940 target-libmudflap \
bb780410 941 target-libssp \
4b1cb4fe 942 target-libgfortran \
4f0ef2d8 943 target-boehm-gc \
83326456 944 ${libgcj} \
a2592b1b 945 target-libobjc \
b3ded179
PB
946 target-libada \
947 target-libgomp"
a0da8069 948
9c14acb8
NN
949# these tools are built using the target libraries, and are intended to
950# run only in the target environment
a0da8069 951#
9c14acb8 952# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
953# list belongs in this list. those programs are also very likely
954# candidates for the "native_only" list which follows
955#
a3dd767d 956target_tools="target-examples target-groff target-gperf target-rda"
252b5132 957
a0da8069 958################################################################################
252b5132 959
a0da8069
NN
960## All tools belong in one of the four categories, and are assigned above
961## We assign ${configdirs} this way to remove all embedded newlines. This
962## is important because configure will choke if they ever get through.
963## ${configdirs} is directories we build using the host tools.
964## ${target_configdirs} is directories we build using the target tools.
a0da8069 965configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 966target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 967build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 968
a0da8069 969################################################################################
252b5132 970
a0da8069 971srcname="gnu development package"
252b5132 972
a0da8069
NN
973# This gets set non-empty for some net releases of packages.
974appdirs=""
252b5132 975
a0da8069
NN
976# Define is_cross_compiler to save on calls to 'test'.
977is_cross_compiler=
978if test x"${host}" = x"${target}" ; then
979 is_cross_compiler=no
252b5132 980else
a0da8069 981 is_cross_compiler=yes
cac3d6c4 982fi
252b5132 983
9175bfc0 984# Find the build and target subdir names.
dd12c3a8
NN
985 case ${build_alias} in
986 "") build_noncanonical=${build} ;;
987 *) build_noncanonical=${build_alias} ;;
988esac
989
990 case ${host_alias} in
991 "") host_noncanonical=${build_noncanonical} ;;
992 *) host_noncanonical=${host_alias} ;;
993esac
994
995 case ${target_alias} in
996 "") target_noncanonical=${host_noncanonical} ;;
997 *) target_noncanonical=${target_alias} ;;
998esac
999
66a79c16
DJ
1000
1001# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1002# have matching libraries, they should use host libraries: Makefile.tpl
1003# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1004# However, they still use the build modules, because the corresponding
1005# host modules (e.g. bison) are only built for the host when bootstrap
1006# finishes. So:
1007# - build_subdir is where we find build modules, and never changes.
1008# - build_libsubdir is where we find build libraries, and can be overridden.
1009
1010# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1011build_subdir="build-${build_noncanonical}"
66a79c16
DJ
1012# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1013if test "${with_build_libsubdir+set}" = set; then
1014 withval="$with_build_libsubdir"
1015 build_libsubdir="$withval"
1016else
1017 build_libsubdir="$build_subdir"
1018fi
1019
b00612cc
PB
1020# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1021if ( test $srcdir = . && test -d gcc ) \
1022 || test -d $srcdir/../host-${host_noncanonical}; then
1023 host_subdir="host-${host_noncanonical}"
1024else
1025 host_subdir=.
1026fi
dd12c3a8
NN
1027# No prefix.
1028target_subdir=${target_noncanonical}
66a79c16 1029
252b5132 1030
a0da8069
NN
1031# Skipdirs are removed silently.
1032skipdirs=
1033# Noconfigdirs are removed loudly.
1034noconfigdirs=""
252b5132 1035
a0da8069
NN
1036use_gnu_ld=
1037# Make sure we don't let GNU ld be added if we didn't want it.
1038if test x$with_gnu_ld = xno ; then
1039 use_gnu_ld=no
1040 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1041fi
1042
a0da8069
NN
1043use_gnu_as=
1044# Make sure we don't let GNU as be added if we didn't want it.
1045if test x$with_gnu_as = xno ; then
1046 use_gnu_as=no
1047 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1048fi
1049
cac3d6c4 1050# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1051# it's not even worth trying to configure, much less build, that tool.
252b5132 1052
a0da8069
NN
1053case ${with_x} in
1054 yes | "") ;; # the default value for this tree is that X11 is available
1055 no)
675c6968 1056 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1057 # We won't be able to build gdbtk without X.
cac3d6c4 1058 enable_gdbtk=no
a0da8069
NN
1059 ;;
1060 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1061esac
252b5132 1062
a0da8069 1063# Some tools are only suitable for building in a "native" situation.
cac3d6c4 1064# Remove these if host!=target.
701628f5 1065native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1066
a0da8069
NN
1067# Similarly, some are only suitable for cross toolchains.
1068# Remove these if host=target.
1069cross_only="target-libgloss target-newlib target-opcodes"
1070
1071case $is_cross_compiler in
1072 no) skipdirs="${skipdirs} ${cross_only}" ;;
1073 yes) skipdirs="${skipdirs} ${native_only}" ;;
1074esac
252b5132 1075
a0da8069
NN
1076# If both --with-headers and --with-libs are specified, default to
1077# --without-newlib.
32be62b5
RS
1078if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1079 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1080 if test x"${with_newlib}" = x ; then
1081 with_newlib=no
1082 fi
252b5132
RH
1083fi
1084
a0da8069
NN
1085# Recognize --with-newlib/--without-newlib.
1086case ${with_newlib} in
1087 no) skipdirs="${skipdirs} target-newlib" ;;
1088 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1089esac
252b5132 1090
a0da8069 1091# Configure extra directories which are host specific
252b5132 1092
a0da8069
NN
1093case "${host}" in
1094 *-cygwin*)
1095 configdirs="$configdirs libtermcap" ;;
1096esac
252b5132 1097
59f7ec45
HPN
1098# A target can indicate whether a language isn't supported for some reason.
1099# Only spaces may be used in this macro; not newlines or tabs.
1100unsupported_languages=
1101
cac3d6c4 1102# Remove more programs from consideration, based on the host or
a0da8069
NN
1103# target this usually means that a port of the program doesn't
1104# exist yet.
252b5132 1105
a0da8069
NN
1106case "${host}" in
1107 hppa*64*-*-*)
1108 noconfigdirs="$noconfigdirs byacc"
1109 ;;
ec11bdc6 1110 i[3456789]86-*-vsta)
675c6968 1111 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1112 ;;
ec11bdc6 1113 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1114 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1115 ;;
2d1e8239
NC
1116 x86_64-*-mingw*)
1117 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1118 ;;
ec11bdc6 1119 i[3456789]86-*-mingw32*)
675c6968 1120 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 1121 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 1122 ;;
ec11bdc6 1123 i[3456789]86-*-beos*)
675c6968 1124 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1125 ;;
a0da8069 1126 *-*-cygwin*)
a92834c8 1127 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1128 ;;
1129 *-*-netbsd*)
a92834c8 1130 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1131 ;;
1132 ppc*-*-pe)
675c6968 1133 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1134 ;;
1135 powerpc-*-beos*)
675c6968 1136 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1137 ;;
a0da8069 1138esac
252b5132 1139
4b1cb4fe 1140
a2592b1b
DD
1141# Check whether --enable-libada or --disable-libada was given.
1142if test "${enable_libada+set}" = set; then
1143 enableval="$enable_libada"
1144 ENABLE_LIBADA=$enableval
1145else
1146 ENABLE_LIBADA=yes
cac3d6c4
CM
1147fi
1148
a2592b1b 1149if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 1150 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1151fi
1152
5f128533
KH
1153# Check whether --enable-libssp or --disable-libssp was given.
1154if test "${enable_libssp+set}" = set; then
1155 enableval="$enable_libssp"
1156 ENABLE_LIBSSP=$enableval
1157else
1158 ENABLE_LIBSSP=yes
cac3d6c4
CM
1159fi
1160
5f128533 1161
a0da8069
NN
1162# Save it here so that, even in case of --enable-libgcj, if the Java
1163# front-end isn't enabled, we still get libgcj disabled.
1164libgcj_saved=$libgcj
1165case $enable_libgcj in
1166yes)
1167 # If we reset it here, it won't get added to noconfigdirs in the
1168 # target-specific build rules, so it will be forcibly enabled
1169 # (unless the Java language itself isn't enabled).
1170 libgcj=
1171 ;;
1172no)
1173 # Make sure we get it printed in the list of not supported target libs.
1174 noconfigdirs="$noconfigdirs ${libgcj}"
1175 ;;
1176esac
252b5132 1177
4b1cb4fe 1178
a6df5a19
PB
1179# Disable libmudflap on some systems.
1180if test x$enable_libmudflap = x ; then
3e707e94 1181 case "${target}" in
b3ded179 1182 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 1183 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1184 ;;
1185 *-*-freebsd*)
1186 # Enable libmudflap by default in FreeBSD.
1187 ;;
1188 *)
1189 # Disable it by default everywhere else.
1190 noconfigdirs="$noconfigdirs target-libmudflap"
1191 ;;
1192 esac
a6df5a19 1193fi
4b1cb4fe 1194
a6df5a19
PB
1195# Disable libgomp on non POSIX hosted systems.
1196if test x$enable_libgomp = x ; then
b3ded179
PB
1197 # Enable libgomp by default on hosted POSIX systems.
1198 case "${target}" in
1199 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1200 ;;
1201 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1202 ;;
64ce424c 1203 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
1204 ;;
1205 *-*-darwin* | *-*-aix*)
1206 ;;
1207 *)
1208 noconfigdirs="$noconfigdirs target-libgomp"
1209 ;;
1210 esac
a6df5a19 1211fi
b3ded179 1212
4b1cb4fe 1213
a0da8069
NN
1214case "${target}" in
1215 *-*-chorusos)
54d1c879 1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1217 ;;
790c0838 1218 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 1219 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1220 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1221 ;;
04d1ab34 1222 *-*-darwin*)
d320aacb 1223 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1224 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 1225 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1226 ;;
a0da8069 1227 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 1228 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1229 ;;
de0b4a87 1230 *-*-freebsd*)
4b1cb4fe
DD
1231 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1232 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1233 && test -f /usr/local/include/gmp.h; then
1234 with_gmp=/usr/local
1235 fi
1236
1237 # Skip some stuff that's unsupported on some FreeBSD configurations.
1238 case "${target}" in
1239 i*86-*-*) ;;
1240 alpha*-*-*) ;;
1241 *)
54d1c879 1242 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
1243 ;;
1244 esac
1245 ;;
f8a495c8
NC
1246 *-*-kaos*)
1247 # Remove unsupported stuff on all kaOS configurations.
54d1c879 1248 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1249 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1250 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1251 noconfigdirs="$noconfigdirs target-libgloss"
1252 ;;
a0da8069
NN
1253 *-*-netbsd*)
1254 # Skip some stuff on all NetBSD configurations.
1255 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1256
1257 # Skip some stuff that's unsupported on some NetBSD configurations.
1258 case "${target}" in
1259 i*86-*-netbsdelf*) ;;
5b474aa8 1260 arm*-*-netbsdelf*) ;;
a0da8069 1261 *)
54d1c879 1262 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1263 ;;
1264 esac
1265 ;;
2a3124ca 1266 *-*-netware*)
54d1c879 1267 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
1268 ;;
1269 *-*-rtems*)
54d1c879 1270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1271 ;;
1587117a
EC
1272 # The tpf target doesn't support gdb yet.
1273 *-*-tpf*)
54d1c879 1274 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 1275 ;;
c1968181 1276 *-*-uclinux*)
54d1c879 1277 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 1278 ;;
a0da8069 1279 *-*-vxworks*)
54d1c879 1280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1281 ;;
1282 alpha*-dec-osf*)
1283 # ld works, but does not support shared libraries.
1284 # newlib is not 64 bit ready. I'm not sure about fileutils.
1285 # gas doesn't generate exception information.
1286 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1287 ;;
1288 alpha*-*-*vms*)
54d1c879 1289 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
1290 ;;
1291 alpha*-*-linux*)
1292 # newlib is not 64 bit ready
1293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1294 ;;
a0da8069
NN
1295 alpha*-*-*)
1296 # newlib is not 64 bit ready
54d1c879 1297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1298 ;;
4a18bd6b 1299 am33_2.0-*-linux*)
54d1c879 1300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 1301 ;;
a0da8069 1302 sh-*-linux*)
54d1c879 1303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
cac3d6c4 1304 ;;
a0da8069 1305 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 1306 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1307 noconfigdirs="$noconfigdirs target-examples"
1308 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 1309 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
1310 noconfigdirs="$noconfigdirs expect dejagnu"
1311 # the C++ libraries don't build on top of CE's C libraries
b9459e83 1312 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
1313 noconfigdirs="$noconfigdirs target-newlib"
1314 case "${host}" in
1315 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 1316 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
1317 ;;
1318 esac
1319 ;;
1320 arc-*-*)
54d1c879 1321 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1322 ;;
caeba88f 1323 arm-semi-aof )
caeba88f 1324 ;;
a0da8069 1325 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 1326 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 1327 ;;
11b04d1f 1328 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
1329 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1330 ;;
bd70a46f
KH
1331 arm*-*-linux-gnueabi)
1332 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1333 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1334 ;;
df4a6958 1335 arm*-*-symbianelf*)
54d1c879 1336 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 1337 ;;
a0da8069 1338 arm-*-pe*)
54d1c879 1339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1340 ;;
a0da8069 1341 thumb-*-coff)
54d1c879 1342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1343 ;;
1344 thumb-*-elf)
54d1c879 1345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1346 ;;
a0da8069 1347 thumb-*-pe)
54d1c879 1348 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1349 ;;
1350 arm-*-riscix*)
54d1c879 1351 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
1352 ;;
1353 avr-*-*)
54d1c879 1354 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1355 ;;
376a0e54 1356 bfin-*-*)
00d89675 1357 noconfigdirs="$noconfigdirs gdb"
3cf3372e 1358 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
1359 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1360 fi
1361 ;;
a0da8069 1362 c4x-*-* | tic4x-*-*)
54d1c879 1363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1364 ;;
1365 c54x*-*-* | tic54x-*-*)
54d1c879 1366 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 1367 ;;
c7e66c6d 1368 cris-*-* | crisv32-*-*)
59f7ec45 1369 unsupported_languages="$unsupported_languages java"
c7e66c6d 1370 case "${target}" in
2faa2958 1371 *-*-aout)
096f7d00 1372 unsupported_languages="$unsupported_languages fortran"
59f7ec45 1373 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 1374 *-*-elf)
096f7d00 1375 unsupported_languages="$unsupported_languages fortran"
5e818318 1376 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 1377 *-*-linux*)
5e818318 1378 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 1379 *)
096f7d00 1380 unsupported_languages="$unsupported_languages fortran"
54d1c879 1381 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 1382 esac
a0da8069 1383 ;;
3e707e94 1384 crx-*-*)
54d1c879 1385 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 1386 ;;
a0da8069 1387 d10v-*-*)
54d1c879 1388 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1389 ;;
1390 d30v-*-*)
54d1c879 1391 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1392 ;;
1393 fr30-*-elf*)
54d1c879 1394 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1395 ;;
1396 frv-*-*)
54d1c879 1397 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1398 ;;
1399 h8300*-*-*)
54d1c879 1400 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1401 ;;
1402 h8500-*-*)
54d1c879 1403 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1404 ;;
caeba88f 1405 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 1406 ;;
a0da8069
NN
1407 hppa*64*-*-linux* | parisc*64*-*-linux*)
1408 # In this case, it's because the hppa64-linux target is for
1409 # the kernel only at this point and has no libc, and thus no
1410 # headers, crt*.o, etc., all of which are needed by these.
1411 noconfigdirs="$noconfigdirs target-zlib"
1412 ;;
5dcac624
DA
1413 parisc*-*-linux* | hppa*-*-linux*)
1414 ;;
a0da8069 1415 hppa*-*-*elf* | \
a0da8069
NN
1416 hppa*-*-lites* | \
1417 hppa*-*-openbsd* | \
1418 hppa*64*-*-*)
54d1c879 1419 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
1420 ;;
1421 hppa*-hp-hpux11*)
1422 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
1423 ;;
1424 hppa*-*-*)
1425 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1426 # build on HP-UX 10.20.
54d1c879 1427 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 1428 ;;
b07c2aad 1429 i960-*-*)
54d1c879 1430 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 1431 ;;
a0da8069
NN
1432 ia64*-*-elf*)
1433 # No gdb support yet.
675c6968 1434 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
1435 ;;
1436 ia64*-**-hpux*)
1437 # No gdb or ld support yet.
54d1c879 1438 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 1439 ;;
caeba88f 1440 i370-*-opened*)
caeba88f 1441 ;;
ec11bdc6 1442 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 1443 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 1444 ;;
ec11bdc6 1445 i[3456789]86-*-linux*)
a0da8069
NN
1446 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1447 # not build java stuff by default.
1448 case "${target}" in
1449 *-*-*libc1*)
54d1c879 1450 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
1451 esac
1452
1453 # This section makes it possible to build newlib natively on linux.
1454 # If we are using a cross compiler then don't configure newlib.
1455 if test x${is_cross_compiler} != xno ; then
bba45b8b 1456 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
1457 fi
1458 noconfigdirs="$noconfigdirs target-libgloss"
1459 # If we are not using a cross compiler, do configure newlib.
1460 # Note however, that newlib will only be configured in this situation
1461 # if the --with-newlib option has been given, because otherwise
1462 # 'target-newlib' will appear in skipdirs.
1463 ;;
ec11bdc6 1464 i[3456789]86-*-mingw32*)
45055374
CV
1465 target_configdirs="$target_configdirs target-winsup"
1466 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
cac3d6c4 1467 ;;
2d1e8239
NC
1468 x86_64-*-mingw*)
1469 target_configdirs="$target_configdirs target-winsup"
1470 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1471 ;;
a0da8069
NN
1472 *-*-cygwin*)
1473 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 1474 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 1475 # always build newlib if winsup directory is present.
45055374 1476 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 1477 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 1478 elif test -d "$srcdir/newlib"; then
45055374 1479 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 1480 fi
cac3d6c4 1481 ;;
caeba88f
AL
1482 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1483 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 1484 ;;
ec11bdc6 1485 i[3456789]86-*-pe)
54d1c879 1486 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1487 ;;
ec11bdc6 1488 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
1489 # The linker does not yet know about weak symbols in COFF,
1490 # and is not configured to handle mixed ELF and COFF.
54d1c879 1491 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 1492 ;;
ec11bdc6 1493 i[3456789]86-*-sco*)
54d1c879 1494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 1495 ;;
ec11bdc6 1496 i[3456789]86-*-solaris2*)
a0da8069
NN
1497 noconfigdirs="$noconfigdirs target-libgloss"
1498 ;;
ec11bdc6 1499 i[3456789]86-*-sysv4*)
54d1c879 1500 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1501 ;;
ec11bdc6 1502 i[3456789]86-*-beos*)
54d1c879 1503 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 1504 ;;
b59bea8a 1505 i[3456789]86-*-rdos*)
2429c060
PB
1506 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1507 ;;
b07c2aad 1508 m32r-*-*)
54d1c879 1509 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 1510 ;;
a0da8069 1511 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 1512 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1513 ;;
1514 m68k-*-elf*)
54d1c879 1515 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1516 ;;
1517 m68k-*-coff*)
54d1c879 1518 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1519 ;;
1520 mcore-*-pe*)
1521 # The EPOC C++ environment does not support exceptions or rtti,
1522 # and so building libstdc++-v3 tends not to always work.
1523 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1524 ;;
1525 mmix-*-*)
59f7ec45 1526 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 1527 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
1528 ;;
1529 mn10200-*-*)
54d1c879 1530 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1531 ;;
1532 mn10300-*-*)
54d1c879 1533 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 1534 ;;
4970f871 1535 mt-*-*)
cdb9b172
AH
1536 noconfigdirs="$noconfigdirs sim"
1537 ;;
a0da8069
NN
1538 powerpc-*-aix*)
1539 # copied from rs6000-*-* entry
54d1c879 1540 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1541 ;;
1542 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1543 target_configdirs="$target_configdirs target-winsup"
54d1c879 1544 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
1545 # always build newlib.
1546 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1547 ;;
1548 # This is temporary until we can link against shared libraries
1549 powerpcle-*-solaris*)
54d1c879 1550 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
1551 ;;
1552 powerpc-*-beos*)
54d1c879 1553 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 1554 ;;
a0da8069 1555 powerpc-*-eabi)
54d1c879 1556 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
1557 ;;
1558 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 1559 ;;
a0da8069 1560 rs6000-*-lynxos*)
54d1c879 1561 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
1562 ;;
1563 rs6000-*-aix*)
54d1c879 1564 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
1565 ;;
1566 rs6000-*-*)
54d1c879 1567 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
1568 ;;
1569 m68k-apollo-*)
54d1c879 1570 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
1571 ;;
1572 mips*-*-irix5*)
54d1c879 1573 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1574 ;;
1575 mips*-*-irix6*)
a0da8069
NN
1576 # Linking libjava exceeds command-line length limits on at least
1577 # IRIX 6.2, but not on IRIX 6.5.
1578 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1579 # <oldham@codesourcery.com>
54d1c879 1580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 1581 ;;
a0da8069 1582 mips*-*-bsd*)
54d1c879 1583 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 1584 ;;
1712ab83 1585 mips64*-*-linux*)
f3529cf1 1586 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 1587 ;;
a0da8069
NN
1588 mips*-*-linux*)
1589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1590 ;;
1591 mips*-*-*)
54d1c879 1592 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
1593 ;;
1594 romp-*-*)
54d1c879 1595 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 1596 ;;
dbf85af7 1597 sh-*-* | sh64-*-*)
a0da8069 1598 case "${host}" in
ec11bdc6
DD
1599 i[3456789]86-*-vsta) ;; # don't add gprof back in
1600 i[3456789]86-*-go32*) ;; # don't add gprof back in
1601 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
1602 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1603 esac
54d1c879 1604 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1605 ;;
a0da8069 1606 sparc-*-elf*)
54d1c879 1607 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1608 ;;
1609 sparc64-*-elf*)
54d1c879 1610 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1611 ;;
1612 sparclite-*-*)
54d1c879 1613 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1614 ;;
1615 sparc-*-sunos4*)
54d1c879 1616 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1617 if test x${is_cross_compiler} != xno ; then
1618 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1619 else
1620 use_gnu_ld=no
1621 fi
1622 ;;
e3c770b1 1623 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 1624 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 1625 ;;
a0da8069
NN
1626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1627 ;;
2839fe5d
BE
1628 spu-*-*)
1629 skipdirs="target-libssp"
1630 ;;
a0da8069 1631 v810-*-*)
54d1c879 1632 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
1633 ;;
1634 v850-*-*)
54d1c879 1635 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1636 ;;
1637 v850e-*-*)
54d1c879 1638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1639 ;;
1640 v850ea-*-*)
54d1c879 1641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1642 ;;
1643 vax-*-vms)
54d1c879 1644 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
1645 ;;
1646 vax-*-*)
54d1c879 1647 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1648 ;;
fbd1054d 1649 xtensa-*-*)
54d1c879 1650 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 1651 ;;
a0da8069 1652 ip2k-*-*)
54d1c879 1653 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 1654 ;;
de0b4a87 1655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
1656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1657 ;;
1658 *-*-lynxos*)
54d1c879 1659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
cac3d6c4 1660 ;;
a0da8069 1661 *-*-*)
54d1c879 1662 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1663 ;;
1664esac
252b5132 1665
a0da8069
NN
1666# If we aren't building newlib, then don't build libgloss, since libgloss
1667# depends upon some newlib header files.
1668case "${noconfigdirs}" in
1669 *target-libgloss*) ;;
1670 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1671esac
1672
a0da8069
NN
1673# Work in distributions that contain no compiler tools, like Autoconf.
1674tentative_cc=""
1675host_makefile_frag=/dev/null
1676if test -d ${srcdir}/config ; then
1677case "${host}" in
1678 m68k-hp-hpux*)
1679 # Avoid "too much defining" errors from HPUX compiler.
1680 tentative_cc="cc -Wp,-H256000"
1681 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1682 # If it's HP/UX ar, this should be harmless.
1683 RANLIB="ar ts"
1684 ;;
1685 m68k-apollo-sysv*)
1686 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1687 ;;
1688 m68k-apollo-bsd*)
1689 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1690 # chokes on bfd, the compiler won't let you assign integers to enums, and
1691 # other problems. Defining CC to gcc is a questionable way to say "don't use
1692 # the apollo compiler" (the preferred version of GCC could be called cc,
1693 # or whatever), but I'm not sure leaving CC as cc is any better...
1694 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1695 # Used to have BISON=yacc.
1696 tentative_cc=gcc
1697 ;;
1698 m88k-dg-dgux*)
1699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
1700 ;;
1701 m88k-harris-cxux*)
1702 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1703 tentative_cc="cc -Xa"
1704 host_makefile_frag="config/mh-cxux"
1705 ;;
1706 m88k-motorola-sysv*)
1707 ;;
1708 mips*-dec-ultrix*)
1709 tentative_cc="cc -Wf,-XNg1000"
1710 host_makefile_frag="config/mh-decstation"
1711 ;;
1712 mips*-nec-sysv4*)
1713 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1714 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1715 host_makefile_frag="config/mh-necv4"
1716 ;;
1717 mips*-sgi-irix4*)
1718 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1719 # environment. Also bump switch table size so that cp-parse will
1720 # compile. Bump string length limit so linker builds.
1721 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1722 ;;
1723 mips*-*-sysv4*)
1724 host_makefile_frag="config/mh-sysv4"
1725 ;;
1726 mips*-*-sysv*)
1727 # This is for a MIPS running RISC/os 4.52C.
1728
1729 # This is needed for GDB, but needs to be in the top-level make because
1730 # if a library is compiled with the bsd headers and gets linked with the
1731 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1732 # a different size).
1733 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1734 # known except to select the sysv environment. Could we use /proc instead?
1735 # These "sysv environments" and "bsd environments" often end up being a pain.
1736 #
1737 # This is not part of CFLAGS because perhaps not all C compilers have this
1738 # option.
1739 tentative_cc="cc -systype sysv"
1740 ;;
1741 i370-ibm-opened*)
1742 tentative_cc="c89"
1743 ;;
ec11bdc6 1744 i[3456789]86-*-sysv5*)
a0da8069
NN
1745 host_makefile_frag="config/mh-sysv5"
1746 ;;
ec11bdc6 1747 i[3456789]86-*-dgux*)
a0da8069
NN
1748 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1749 host_makefile_frag="config/mh-dgux386"
1750 ;;
ec11bdc6 1751 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
1752 # The MetaWare compiler will generate a copyright message unless you
1753 # turn it off by adding the -Hnocopyr flag.
1754 tentative_cc="cc -Hnocopyr"
1755 ;;
ec11bdc6 1756 i[3456789]86-ncr-sysv4*)
a0da8069
NN
1757 # for an NCR 3000 (i486/SVR4) system.
1758 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1759 # This compiler not only emits obnoxious copyright messages every time
1760 # you run it, but it chokes and dies on a whole bunch of GNU source
1761 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1762 tentative_cc="/usr/ccs/ATT/cc"
1763 host_makefile_frag="config/mh-ncr3000"
1764 ;;
ec11bdc6 1765 i[3456789]86-*-sco3.2v5*)
a0da8069 1766 ;;
ec11bdc6 1767 i[3456789]86-*-sco*)
a0da8069
NN
1768 # The native C compiler botches some simple uses of const. Unfortunately,
1769 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1770 tentative_cc="cc -Dconst="
1771 host_makefile_frag="config/mh-sco"
1772 ;;
ec11bdc6 1773 i[3456789]86-*-udk*)
a0da8069
NN
1774 host_makefile_frag="config/mh-sysv5"
1775 ;;
ec11bdc6 1776 i[3456789]86-*-solaris2*)
a0da8069
NN
1777 host_makefile_frag="config/mh-sysv4"
1778 ;;
ec11bdc6 1779 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
1780 host_makefile_frag="config/mh-djgpp"
1781 ;;
1782 *-cygwin*)
1783 host_makefile_frag="config/mh-cygwin"
1784 ;;
1785 *-mingw32*)
a0da8069 1786 ;;
2d1e8239
NC
1787 *-mingw64*)
1788 ;;
a0da8069
NN
1789 *-interix*)
1790 host_makefile_frag="config/mh-interix"
1791 ;;
1792 vax-*-ultrix2*)
1793 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1794 tentative_cc=gcc
1795 ;;
1796 *-*-solaris2*)
1797 host_makefile_frag="config/mh-solaris"
1798 ;;
1799 m68k-sun-sunos*)
1800 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1801 # without overflowing the jump tables (-J says to use a 32 bit table)
1802 tentative_cc="cc -J"
1803 ;;
1804 *-hp-hpux*)
1805 tentative_cc="cc -Wp,-H256000"
1806 ;;
1807 *-*-hiux*)
1808 tentative_cc="cc -Wp,-H256000"
1809 ;;
1810 rs6000-*-lynxos*)
1811 # /bin/cc is less than useful for our purposes. Always use GCC
1812 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1813 host_makefile_frag="config/mh-lynxrs6k"
1814 ;;
0df3d27f
PB
1815 powerpc-*-darwin*)
1816 host_makefile_frag="config/mh-ppc-darwin"
1817 ;;
f6d183c0
PB
1818 powerpc-*-aix*)
1819 host_makefile_frag="config/mh-ppc-aix"
1820 ;;
1821 rs6000-*-aix*)
1822 host_makefile_frag="config/mh-ppc-aix"
1823 ;;
a0da8069
NN
1824 *-*-lynxos*)
1825 # /bin/cc is less than useful for our purposes. Always use GCC
1826 tentative_cc="/bin/gcc"
1827 ;;
1828 *-*-sysv4*)
1829 host_makefile_frag="config/mh-sysv4"
1830 ;;
fe69863c
DD
1831 # This is placed last to prevent interfering with the cases above.
1832 i[3456789]86-*-*)
1833 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1834 host_makefile_frag="config/mh-x86omitfp"
1835 ;;
a0da8069
NN
1836esac
1837fi
1838
9e07f89d
NN
1839# If we aren't going to be using gcc, see if we can extract a definition
1840# of CC from the fragment.
1841# Actually, use the 'pre-extracted' version above.
1842if test -z "${CC}" && test "${build}" = "${host}" ; then
1843 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1844 found=
1845 for dir in $PATH; do
1846 test -z "$dir" && dir=.
1847 if test -f $dir/gcc; then
1848 found=yes
1849 break
1850 fi
1851 done
1852 IFS="$save_ifs"
1853 if test -z "${found}" && test -n "${tentative_cc}" ; then
1854 CC=$tentative_cc
1855 fi
1856fi
1857
1858if test "${build}" != "${host}" ; then
1859 # If we are doing a Canadian Cross, in which the host and build systems
1860 # are not the same, we set reasonable default values for the tools.
1861
9e07f89d
NN
1862 CC=${CC-${host_alias}-gcc}
1863 CFLAGS=${CFLAGS-"-g -O2"}
1864 CXX=${CXX-${host_alias}-c++}
1865 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1866 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d
NN
1867
1868else
1869 # Set reasonable default values for some tools even if not Canadian.
1870 # Of course, these are different reasonable default values, originally
1871 # specified directly in the Makefile.
1872 # We don't export, so that autoconf can do its job.
1873 # Note that all these settings are above the fragment inclusion point
1874 # in Makefile.in, so can still be overridden by fragments.
1875 # This is all going to change when we autoconfiscate...
1876
9e07f89d 1877 CC_FOR_BUILD="\$(CC)"
6a9cf61e 1878 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 1879set dummy gcc; ac_word=$2
cac3d6c4 1880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2d1e8239 1881echo "configure:1882: checking for $ac_word" >&5
cac3d6c4
CM
1882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1884else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887else
cac3d6c4
CM
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 ac_dummy="$PATH"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1893 ac_cv_prog_CC="gcc"
1894 break
1895 fi
1896 done
1897 IFS="$ac_save_ifs"
9e07f89d
NN
1898fi
1899fi
cac3d6c4 1900CC="$ac_cv_prog_CC"
9e07f89d 1901if test -n "$CC"; then
cac3d6c4 1902 echo "$ac_t""$CC" 1>&6
9e07f89d 1903else
cac3d6c4 1904 echo "$ac_t""no" 1>&6
9e07f89d
NN
1905fi
1906
1907if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909set dummy cc; ac_word=$2
cac3d6c4 1910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2d1e8239 1911echo "configure:1912: checking for $ac_word" >&5
cac3d6c4
CM
1912if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1914else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917else
cac3d6c4 1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9e07f89d 1919 ac_prog_rejected=no
cac3d6c4
CM
1920 ac_dummy="$PATH"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1926 continue
1927 fi
1928 ac_cv_prog_CC="cc"
1929 break
1930 fi
1931 done
1932 IFS="$ac_save_ifs"
9e07f89d
NN
1933if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy $ac_cv_prog_CC
1936 shift
cac3d6c4 1937 if test $# -gt 0; then
9e07f89d
NN
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1941 shift
cac3d6c4
CM
1942 set dummy "$ac_dir/$ac_word" "$@"
1943 shift
1944 ac_cv_prog_CC="$@"
9e07f89d
NN
1945 fi
1946fi
1947fi
1948fi
cac3d6c4 1949CC="$ac_cv_prog_CC"
9e07f89d 1950if test -n "$CC"; then
cac3d6c4 1951 echo "$ac_t""$CC" 1>&6
9e07f89d 1952else
cac3d6c4 1953 echo "$ac_t""no" 1>&6
9e07f89d
NN
1954fi
1955
cac3d6c4
CM
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1958 *win32* | *WIN32*)
1959 # Extract the first word of "cl", so it can be a program name with args.
1960set dummy cl; ac_word=$2
1961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2d1e8239 1962echo "configure:1963: checking for $ac_word" >&5
cac3d6c4
CM
1963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
1965else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
cac3d6c4
CM
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 ac_dummy="$PATH"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_CC="cl"
1975 break
1976 fi
1977 done
1978 IFS="$ac_save_ifs"
9e07f89d
NN
1979fi
1980fi
cac3d6c4 1981CC="$ac_cv_prog_CC"
9e07f89d 1982if test -n "$CC"; then
cac3d6c4 1983 echo "$ac_t""$CC" 1>&6
9e07f89d 1984else
cac3d6c4 1985 echo "$ac_t""no" 1>&6
9e07f89d 1986fi
cac3d6c4
CM
1987 ;;
1988 esac
376a0e54 1989 fi
cac3d6c4 1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9e07f89d
NN
1991fi
1992
cac3d6c4 1993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2d1e8239 1994echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9e07f89d 1995
cac3d6c4
CM
1996ac_ext=c
1997# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001cross_compiling=$ac_cv_prog_cc_cross
2002
2003cat > conftest.$ac_ext << EOF
2004
2d1e8239 2005#line 2006 "configure"
cac3d6c4
CM
2006#include "confdefs.h"
2007
2008main(){return(0);}
2009EOF
2d1e8239 2010if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
2011 ac_cv_prog_cc_works=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (./conftest; exit) 2>/dev/null; then
2014 ac_cv_prog_cc_cross=no
376a0e54 2015 else
cac3d6c4 2016 ac_cv_prog_cc_cross=yes
376a0e54 2017 fi
cac3d6c4
CM
2018else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_prog_cc_works=no
9e07f89d 2022fi
cac3d6c4
CM
2023rm -fr conftest*
2024ac_ext=c
2025# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029cross_compiling=$ac_cv_prog_cc_cross
2030
2031echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032if test $ac_cv_prog_cc_works = no; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2034fi
2035echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2d1e8239 2036echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
cac3d6c4
CM
2037echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038cross_compiling=$ac_cv_prog_cc_cross
2039
2040echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2d1e8239 2041echo "configure:2042: checking whether we are using GNU C" >&5
cac3d6c4
CM
2042if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045 cat > conftest.c <<EOF
2046#ifdef __GNUC__
2047 yes;
2048#endif
2049EOF
2d1e8239 2050if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
cac3d6c4 2051 ac_cv_prog_gcc=yes
376a0e54 2052else
cac3d6c4
CM
2053 ac_cv_prog_gcc=no
2054fi
2055fi
2056
2057echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2058
2059if test $ac_cv_prog_gcc = yes; then
2060 GCC=yes
9e07f89d 2061else
cac3d6c4
CM
2062 GCC=
2063fi
376a0e54 2064
cac3d6c4
CM
2065ac_test_CFLAGS="${CFLAGS+set}"
2066ac_save_CFLAGS="$CFLAGS"
2067CFLAGS=
2068echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2d1e8239 2069echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
cac3d6c4
CM
2070if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072else
2073 echo 'void f(){}' > conftest.c
2074if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9e07f89d
NN
2075 ac_cv_prog_cc_g=yes
2076else
cac3d6c4 2077 ac_cv_prog_cc_g=no
9e07f89d 2078fi
cac3d6c4
CM
2079rm -f conftest*
2080
376a0e54 2081fi
cac3d6c4
CM
2082
2083echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9e07f89d 2084if test "$ac_test_CFLAGS" = set; then
cac3d6c4 2085 CFLAGS="$ac_save_CFLAGS"
9e07f89d
NN
2086elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098fi
2099
2100
6a9cf61e
PB
2101 # We must set the default linker to the linker used by gcc for the correct
2102 # operation of libtool. If LD is not defined and we are using gcc, try to
2103 # set the LD default to the ld used by gcc.
2104 if test -z "$LD"; then
2105 if test "$GCC" = yes; then
2106 case $build in
2107 *-*-mingw*)
2108 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2109 *)
2110 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2111 esac
2112 case $gcc_prog_ld in
2113 # Accept absolute paths.
2114 [\\/]* | [A-Za-z]:[\\/]*)
2115 LD="$gcc_prog_ld" ;;
2116 esac
2117 fi
2118 fi
2119
2120 CXX=${CXX-"c++"}
2121 CFLAGS=${CFLAGS-"-g"}
2122 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2123fi
2124
cac3d6c4
CM
2125if test $host != $build; then
2126 ac_tool_prefix=${host_alias}-
2127else
2128 ac_tool_prefix=
2129fi
6a9cf61e
PB
2130
2131
9e07f89d 2132
cac3d6c4 2133# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
9e07f89d 2134set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cac3d6c4 2135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2d1e8239 2136echo "configure:2137: checking for $ac_word" >&5
cac3d6c4
CM
2137if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2139else
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2142else
cac3d6c4
CM
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2149 break
2150 fi
2151 done
2152 IFS="$ac_save_ifs"
9e07f89d
NN
2153fi
2154fi
cac3d6c4 2155GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d 2156if test -n "$GNATBIND"; then
cac3d6c4 2157 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2158else
cac3d6c4 2159 echo "$ac_t""no" 1>&6
9e07f89d
NN
2160fi
2161
cac3d6c4 2162
9e07f89d 2163if test -z "$ac_cv_prog_GNATBIND"; then
cac3d6c4 2164if test -n "$ac_tool_prefix"; then
9e07f89d
NN
2165 # Extract the first word of "gnatbind", so it can be a program name with args.
2166set dummy gnatbind; ac_word=$2
cac3d6c4 2167echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2d1e8239 2168echo "configure:2169: checking for $ac_word" >&5
cac3d6c4
CM
2169if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d 2171else
cac3d6c4
CM
2172 if test -n "$GNATBIND"; then
2173 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 2174else
cac3d6c4
CM
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2176 ac_dummy="$PATH"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_GNATBIND="gnatbind"
2181 break
2182 fi
2183 done
2184 IFS="$ac_save_ifs"
2185 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
9e07f89d
NN
2186fi
2187fi
cac3d6c4
CM
2188GNATBIND="$ac_cv_prog_GNATBIND"
2189if test -n "$GNATBIND"; then
2190 echo "$ac_t""$GNATBIND" 1>&6
9e07f89d 2191else
cac3d6c4 2192 echo "$ac_t""no" 1>&6
9e07f89d
NN
2193fi
2194
2195else
cac3d6c4
CM
2196 GNATBIND="no"
2197fi
9e07f89d
NN
2198fi
2199
cac3d6c4 2200echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2d1e8239 2201echo "configure:2202: checking whether compiler driver understands Ada" >&5
cac3d6c4
CM
2202if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
9e07f89d
NN
2204else
2205 cat >conftest.adb <<EOF
2206procedure conftest is begin null; end conftest;
2207EOF
2208acx_cv_cc_gcc_supports_ada=no
2209# There is a bug in old released versions of GCC which causes the
2210# driver to exit successfully when the appropriate language module
2211# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2212# Therefore we must check for the error message as well as an
2213# unsuccessful exit.
b8908782
DD
2214# Other compilers, like HP Tru64 UNIX cc, exit successfully when
2215# given a .adb file, but produce no object file. So we must check
2216# if an object file was really produced to guard against this.
9e07f89d 2217errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 2218if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 2219 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
2220fi
2221rm -f conftest.*
2222fi
cac3d6c4
CM
2223
2224echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
9e07f89d 2225
b8908782 2226if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
2227 have_gnat=yes
2228else
2229 have_gnat=no
2230fi
2231
cac3d6c4 2232echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2d1e8239 2233echo "configure:2234: checking how to compare bootstrapped objects" >&5
cac3d6c4
CM
2234if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
b8908782
DD
2236else
2237 echo abfoo >t1
2238 echo cdfoo >t2
2239 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
2240 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2241 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2242 :
2243 else
2244 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2245 fi
2246 fi
b8908782
DD
2247 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2248 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 2249 :
b8908782
DD
2250 else
2251 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2252 fi
2253 fi
2254 rm t1 t2
2255
2256fi
cac3d6c4
CM
2257
2258echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
b8908782
DD
2259do_compare="$gcc_cv_prog_cmp_skip"
2260
2261
9e07f89d 2262
11b04d1f 2263# Check for GMP and MPFR
8a0d8a5c 2264gmplibs="-lmpfr"
4b1cb4fe
DD
2265gmpinc=
2266have_gmp=yes
11b04d1f
DD
2267# Specify a location for mpfr
2268# check for this first so it ends up on the link line before gmp.
2269# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2270if test "${with_mpfr_dir+set}" = set; then
2271 withval="$with_mpfr_dir"
8a0d8a5c
PB
2272 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2273Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
cac3d6c4 2274fi
11b04d1f
DD
2275
2276
11b04d1f
DD
2277# Check whether --with-mpfr or --without-mpfr was given.
2278if test "${with_mpfr+set}" = set; then
2279 withval="$with_mpfr"
cac3d6c4
CM
2280 :
2281fi
11b04d1f 2282
8a0d8a5c
PB
2283# Check whether --with-mpfr_include or --without-mpfr_include was given.
2284if test "${with_mpfr_include+set}" = set; then
2285 withval="$with_mpfr_include"
2286 :
2287fi
2288
2289# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2290if test "${with_mpfr_lib+set}" = set; then
2291 withval="$with_mpfr_lib"
2292 :
2293fi
2294
11b04d1f
DD
2295
2296if test "x$with_mpfr" != x; then
2297 gmplibs="-L$with_mpfr/lib $gmplibs"
2298 gmpinc="-I$with_mpfr/include"
2299fi
8a0d8a5c
PB
2300if test "x$with_mpfr_include" != x; then
2301 gmpinc="-I$with_mpfr_include"
2302fi
2303if test "x$with_mpfr_lib" != x; then
2304 gmplibs="-L$with_mpfr_lib $gmplibs"
2305fi
11b04d1f 2306
4b1cb4fe
DD
2307# Specify a location for gmp
2308# Check whether --with-gmp-dir or --without-gmp-dir was given.
2309if test "${with_gmp_dir+set}" = set; then
2310 withval="$with_gmp_dir"
8a0d8a5c
PB
2311 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2312Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
cac3d6c4 2313fi
4b1cb4fe
DD
2314
2315
8a0d8a5c 2316gmplibs="$gmplibs -lgmp"
4b1cb4fe
DD
2317
2318# Check whether --with-gmp or --without-gmp was given.
2319if test "${with_gmp+set}" = set; then
2320 withval="$with_gmp"
cac3d6c4
CM
2321 :
2322fi
4b1cb4fe 2323
8a0d8a5c
PB
2324# Check whether --with-gmp_include or --without-gmp_include was given.
2325if test "${with_gmp_include+set}" = set; then
2326 withval="$with_gmp_include"
2327 :
2328fi
2329
2330# Check whether --with-gmp_lib or --without-gmp_lib was given.
2331if test "${with_gmp_lib+set}" = set; then
2332 withval="$with_gmp_lib"
2333 :
2334fi
2335
2336
4b1cb4fe 2337
11b04d1f
DD
2338if test "x$with_gmp" != x; then
2339 gmplibs="-L$with_gmp/lib $gmplibs"
2340 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 2341fi
8a0d8a5c
PB
2342if test "x$with_gmp_include" != x; then
2343 gmpinc="-I$with_gmp_include $gmpinc"
2344fi
2345if test "x$with_gmp_lib" != x; then
2346 gmplibs="-L$with_gmp_lib $gmplibs"
2347fi
4b1cb4fe
DD
2348
2349saved_CFLAGS="$CFLAGS"
2350CFLAGS="$CFLAGS $gmpinc"
2351# Check GMP actually works
cac3d6c4 2352echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2d1e8239 2353echo "configure:2354: checking for correct version of gmp.h" >&5
cac3d6c4 2354cat > conftest.$ac_ext <<EOF
2d1e8239 2355#line 2356 "configure"
cac3d6c4 2356#include "confdefs.h"
4b1cb4fe 2357#include "gmp.h"
cac3d6c4 2358int main() {
4b1cb4fe 2359
9dbaa842 2360#if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4b1cb4fe
DD
2361choke me
2362#endif
2363
cac3d6c4
CM
2364; return 0; }
2365EOF
2d1e8239 2366if { (eval echo configure:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
cac3d6c4
CM
2367 rm -rf conftest*
2368 echo "$ac_t""yes" 1>&6
2369else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 echo "$ac_t""no" 1>&6; have_gmp=no
2374fi
2375rm -f conftest*
4b1cb4fe
DD
2376
2377if test x"$have_gmp" = xyes; then
4b1cb4fe
DD
2378 saved_LIBS="$LIBS"
2379 LIBS="$LIBS $gmplibs"
9b134994 2380 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2d1e8239 2381echo "configure:2382: checking for correct version of mpfr.h" >&5
9b134994 2382 cat > conftest.$ac_ext <<EOF
2d1e8239 2383#line 2384 "configure"
9b134994
PB
2384#include "confdefs.h"
2385#include <gmp.h>
2386#include <mpfr.h>
2387int main() {
2388
2389#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
2390 choke me
2391#endif
2392 mpfr_t n; mpfr_init(n);
2393
2394; return 0; }
2395EOF
2d1e8239 2396if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9b134994 2397 rm -rf conftest*
cac3d6c4 2398 cat > conftest.$ac_ext <<EOF
2d1e8239 2399#line 2400 "configure"
cac3d6c4 2400#include "confdefs.h"
4b1cb4fe 2401#include <gmp.h>
11b04d1f 2402#include <mpfr.h>
cac3d6c4 2403int main() {
9dbaa842 2404
9b134994 2405#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
9dbaa842
DD
2406 choke me
2407#endif
2408 mpfr_t n; mpfr_init(n);
2409
cac3d6c4
CM
2410; return 0; }
2411EOF
2d1e8239 2412if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
cac3d6c4
CM
2413 rm -rf conftest*
2414 echo "$ac_t""yes" 1>&6
9b134994
PB
2415else
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -rf conftest*
2419 echo "$ac_t""buggy but acceptable" 1>&6
2420fi
2421rm -f conftest*
cac3d6c4
CM
2422else
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 echo "$ac_t""no" 1>&6; have_gmp=no
2427fi
2428rm -f conftest*
4b1cb4fe 2429 LIBS="$saved_LIBS"
4b1cb4fe 2430fi
8b01a5c2 2431CFLAGS="$saved_CFLAGS"
4b1cb4fe 2432
9dbaa842 2433if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
8a0d8a5c 2434 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
2435Try the --with-gmp and/or --with-mpfr options to specify their locations.
2436Copies of these libraries' source code can be found at their respective
2437hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
2438See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2439If you obtained GMP and/or MPFR from a vendor distribution package, make
2440sure that you have installed both the libraries and the header files.
2441They may be located in separate packages." 1>&2; exit 1; }
9dbaa842
DD
2442fi
2443
11b04d1f 2444# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
2445
2446
2447
947f426e 2448# By default, C is the only stage 1 language.
9b134994 2449stage1_languages=,c,
1d39f329 2450
9e07f89d
NN
2451# Figure out what language subdirectories are present.
2452# Look if the user specified --enable-languages="..."; if not, use
2453# the environment variable $LANGUAGES if defined. $LANGUAGES might
2454# go away some day.
2455# NB: embedded tabs in this IF block -- do not untabify
2456if test -d ${srcdir}/gcc; then
2457 if test x"${enable_languages+set}" != xset; then
2458 if test x"${LANGUAGES+set}" = xset; then
2459 enable_languages="${LANGUAGES}"
2460 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2461 else
2462 enable_languages=all
2463 fi
2464 else
2465 if test x"${enable_languages}" = x ||
2466 test x"${enable_languages}" = xyes;
2467 then
2468 echo configure.in: --enable-languages needs at least one language argument 1>&2
2469 exit 1
2470 fi
2471 fi
2472 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2473
096f7d00
DE
2474 # 'f95' is the old name for the 'fortran' language. We issue a warning
2475 # and make the substitution.
2476 case ,${enable_languages}, in
2477 *,f95,*)
2478 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2479 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2480 ;;
2481 esac
2482
9e07f89d
NN
2483 # First scan to see if an enabled language requires some other language.
2484 # We assume that a given config-lang.in will list all the language
2485 # front ends it requires, even if some are required indirectly.
2486 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2487 case ${lang_frag} in
2488 ..) ;;
2489 # The odd quoting in the next line works around
2490 # an apparent bug in bash 1.12 on linux.
2491 ${srcdir}/gcc/[*]/config-lang.in) ;;
2492 *)
2493 # From the config-lang.in, get $language, $lang_requires
2494 language=
2495 lang_requires=
2496 . ${lang_frag}
2497 for other in ${lang_requires} ; do
2498 case ,${enable_languages}, in
2499 *,$other,*) ;;
2500 *,all,*) ;;
2501 *,$language,*)
2502 echo " \`$other' language required by \`$language'; enabling" 1>&2
2503 enable_languages="${enable_languages},${other}"
2504 ;;
2505 esac
2506 done
2507 ;;
2508 esac
2509 done
2510
9b134994 2511 new_enable_languages=,c,
9e07f89d 2512 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 2513 potential_languages=,c,
9e07f89d
NN
2514
2515 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2516 case ${lang_frag} in
2517 ..) ;;
2518 # The odd quoting in the next line works around
2519 # an apparent bug in bash 1.12 on linux.
2520 ${srcdir}/gcc/[*]/config-lang.in) ;;
2521 *)
cac3d6c4 2522 # From the config-lang.in, get $language, $target_libs,
1d39f329 2523 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
2524 language=
2525 target_libs=
2526 lang_dirs=
64ce424c 2527 subdir_requires=
9b134994
PB
2528 boot_language=no
2529 build_by_default=yes
9e07f89d 2530 . ${lang_frag}
9b134994
PB
2531 if test x${language} = x; then
2532 echo "${lang_frag} doesn't set \$language." 1>&2
2533 exit 1
2534 fi
2535
2536 case ,${enable_languages}, in
2537 *,${language},*)
9e07f89d
NN
2538 # Language was explicitly selected; include it.
2539 add_this_lang=yes
2540 ;;
9b134994
PB
2541 *,all,*)
2542 # 'all' was selected, select it if it is a default language
2543 add_this_lang=${build_by_default}
9e07f89d
NN
2544 ;;
2545 *)
2546 add_this_lang=no
2547 ;;
2548 esac
4b1cb4fe 2549
64ce424c 2550 # Disable languages that need other directories if these aren't available.
1f3f1bbf 2551 for i in $subdir_requires; do
3d3adb43 2552 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
2553 case ,${enable_languages}, in
2554 *,${language},*)
2555 # Specifically requested language; tell them.
2556 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2557 ;;
2558 *)
2559 # Silently disable.
9b134994 2560 add_this_lang=unsupported
64ce424c
PB
2561 ;;
2562 esac
2563 done
2564
9b134994
PB
2565 # Disable Ada if no preexisting GNAT is available.
2566 case ,${enable_languages},:${language}:${have_gnat} in
2567 *,${language},*:ada:no)
2568 # Specifically requested language; tell them.
2569 { echo "configure: error: GNAT is required to build $language" 1>&2; exit 1; }
2570 ;;
2571 *:ada:no)
2572 # Silently disable.
2573 add_this_lang=unsupported
2574 ;;
2575 esac
2576
59f7ec45
HPN
2577 # Disable a language that is unsupported by the target.
2578 case " $unsupported_languages " in
2579 *" $language "*)
9b134994 2580 add_this_lang=unsupported
59f7ec45
HPN
2581 ;;
2582 esac
2583
4b1cb4fe 2584 case $add_this_lang in
9b134994 2585 unsupported)
9e07f89d 2586 # Remove language-dependent dirs.
1d39f329
NN
2587 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2588 ;;
9b134994
PB
2589 no)
2590 # Remove language-dependent dirs; still show language as supported.
2591 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2592 potential_languages="${potential_languages}${language},"
2593 ;;
2594 yes)
2595 new_enable_languages="${new_enable_languages}${language},"
2596 potential_languages="${potential_languages}${language},"
1d39f329
NN
2597 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2598 case ${boot_language} in
2599 yes)
4fa63067 2600 # Add to (comma-separated) list of stage 1 languages.
9b134994 2601 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
2602 ;;
2603 esac
2604 ;;
9e07f89d
NN
2605 esac
2606 ;;
2607 esac
2608 done
2609
9b134994
PB
2610 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
2611if test "${enable_stage1_languages+set}" = set; then
2612 enableval="$enable_stage1_languages"
2613 case ,${enable_stage1_languages}, in
2614 ,no,|,,)
2615 # Set it to something that will have no effect in the loop below
2616 enable_stage1_languages=c ;;
2617 ,yes,)
2618 enable_stage1_languages=`echo $new_enable_languages | \
2619 sed -e "s/^,//" -e "s/,$//" ` ;;
2620 *,all,*)
2621 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
2622 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
2623 esac
2624
2625 # Add "good" languages from enable_stage1_languages to stage1_languages,
2626 # while "bad" languages go in missing_languages. Leave no duplicates.
2627 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
2628 case $potential_languages in
2629 *,$i,*)
2630 case $stage1_languages in
2631 *,$i,*) ;;
2632 *) stage1_languages="$stage1_languages$i," ;;
2633 esac ;;
2634 *)
2635 case $missing_languages in
2636 *,$i,*) ;;
2637 *) missing_languages="$missing_languages$i," ;;
2638 esac ;;
2639 esac
2640 done
2641fi
2642
2643
2644 # Remove leading/trailing commas that were added for simplicity
2645 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 2646 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
2647 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
2648 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
2649
9e07f89d 2650 if test "x$missing_languages" != x; then
cac3d6c4 2651 { echo "configure: error:
27258dd4 2652The following requested languages could not be built: ${missing_languages}
9b134994 2653Supported languages are: ${potential_languages}" 1>&2; exit 1; }
9e07f89d 2654 fi
9e07f89d
NN
2655 if test "x$new_enable_languages" != "x$enable_languages"; then
2656 echo The following languages will be built: ${new_enable_languages}
9b134994 2657 enable_languages="$new_enable_languages"
9e07f89d 2658 fi
9b134994
PB
2659
2660
2e70b094 2661 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
2662fi
2663
a6df5a19
PB
2664# Handle --disable-<component> generically.
2665for dir in $configdirs $build_configdirs $target_configdirs ; do
2666 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2667 if eval test x\${enable_${dirname}} "=" xno ; then
2668 noconfigdirs="$noconfigdirs $dir"
2669 fi
2670done
2671
4f0ef2d8
CD
2672# Check for Boehm's garbage collector
2673# Check whether --enable-objc-gc or --disable-objc-gc was given.
2674if test "${enable_objc_gc+set}" = set; then
2675 enableval="$enable_objc_gc"
2676 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2677 *,objc,*:*:yes:*target-boehm-gc*)
2678 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2679 ;;
2680esac
2681fi
2682
2683
2684# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
2685case ,${enable_languages},:${enable_objc_gc} in
2686 *,objc,*:yes)
4f0ef2d8
CD
2687 # Keep target-boehm-gc if requested for Objective-C.
2688 ;;
4f0ef2d8 2689 *)
d42c4017
DA
2690 # Otherwise remove target-boehm-gc depending on target-libjava.
2691 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2692 noconfigdirs="$noconfigdirs target-boehm-gc"
2693 fi
4f0ef2d8
CD
2694 ;;
2695esac
2696
caeba88f
AL
2697# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2698# $build_configdirs and $target_configdirs.
9e07f89d
NN
2699# If we have the source for $noconfigdirs entries, add them to $notsupp.
2700
2701notsupp=""
2702for dir in . $skipdirs $noconfigdirs ; do
caeba88f 2703 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
2704 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2705 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2706 if test -r $srcdir/$dirname/configure ; then
2707 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2708 true
2709 else
2710 notsupp="$notsupp $dir"
2711 fi
2712 fi
2713 fi
caeba88f
AL
2714 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2715 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2716 if test -r $srcdir/$dirname/configure ; then
2717 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2718 true
2719 else
2720 notsupp="$notsupp $dir"
2721 fi
2722 fi
2723 fi
9e07f89d
NN
2724 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2725 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2726 if test -r $srcdir/$dirname/configure ; then
2727 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2728 true
2729 else
2730 notsupp="$notsupp $dir"
2731 fi
2732 fi
2733 fi
2734done
2735
2736# Sometimes the tools are distributed with libiberty but with no other
2737# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 2738# Don't let libgcc imply libiberty either.
9e07f89d 2739if test -n "${target_configdirs}" ; then
f86e35b8 2740 libgcc=
9e07f89d
NN
2741 others=
2742 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
2743 if test "$i" = "libgcc"; then
2744 libgcc=target-libgcc
2745 elif test "$i" != "libiberty" ; then
9e07f89d
NN
2746 if test -r $srcdir/$i/configure ; then
2747 others=yes;
2748 break;
2749 fi
2750 fi
2751 done
2752 if test -z "${others}" ; then
f86e35b8 2753 target_configdirs=$libgcc
9e07f89d
NN
2754 fi
2755fi
2756
2757# Quietly strip out all directories which aren't configurable in this tree.
2758# This relies on all configurable subdirectories being autoconfiscated, which
2759# is now the case.
6a9cf61e
PB
2760build_configdirs_all="$build_configdirs"
2761build_configdirs=
2762for i in ${build_configdirs_all} ; do
cac3d6c4 2763 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
2764 if test -f ${srcdir}/$j/configure ; then
2765 build_configdirs="${build_configdirs} $i"
2766 fi
2767done
2768
9e07f89d
NN
2769configdirs_all="$configdirs"
2770configdirs=
2771for i in ${configdirs_all} ; do
2772 if test -f ${srcdir}/$i/configure ; then
2773 configdirs="${configdirs} $i"
2774 fi
2775done
6a9cf61e 2776
9e07f89d
NN
2777target_configdirs_all="$target_configdirs"
2778target_configdirs=
2779for i in ${target_configdirs_all} ; do
cac3d6c4 2780 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
2781 if test -f ${srcdir}/$j/configure ; then
2782 target_configdirs="${target_configdirs} $i"
2783 fi
2784done
2785
2786# Produce a warning message for the subdirs we can't configure.
2787# This isn't especially interesting in the Cygnus tree, but in the individual
2788# FSF releases, it's important to let people know when their machine isn't
2789# supported by the one or two programs in a package.
2790
2791if test -n "${notsupp}" && test -z "${norecursion}" ; then
2792 # If $appdirs is non-empty, at least one of those directories must still
2793 # be configured, or we error out. (E.g., if the gas release supports a
2794 # specified target in some subdirs but not the gas subdir, we shouldn't
2795 # pretend that all is well.)
2796 if test -n "$appdirs" ; then
2797 for dir in $appdirs ; do
2798 if test -r $dir/Makefile.in ; then
2799 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2800 appdirs=""
2801 break
2802 fi
6a9cf61e 2803 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
2804 appdirs=""
2805 break
2806 fi
2807 fi
2808 done
2809 if test -n "$appdirs" ; then
2810 echo "*** This configuration is not supported by this package." 1>&2
2811 exit 1
2812 fi
2813 fi
2814 # Okay, some application will build, or we don't care to check. Still
2815 # notify of subdirs not getting built.
2816 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2817 echo " ${notsupp}" 1>&2
2818 echo " (Any other directories should still work fine.)" 1>&2
2819fi
2820
2821case "$host" in
2822 *msdosdjgpp*)
2823 enable_gdbtk=no ;;
2824esac
2825
2826copy_dirs=
2827
a19b6204
MM
2828# Check whether --with-build-sysroot or --without-build-sysroot was given.
2829if test "${with_build_sysroot+set}" = set; then
2830 withval="$with_build_sysroot"
2831 if test x"$withval" != x ; then
2832 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2833 fi
2834else
2835 SYSROOT_CFLAGS_FOR_TARGET=
cac3d6c4
CM
2836fi
2837
a19b6204
MM
2838
2839
9e07f89d
NN
2840# Handle --with-headers=XXX. If the value is not "yes", the contents of
2841# the named directory are copied to $(tooldir)/sys-include.
2842if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2843 if test x${is_cross_compiler} = xno ; then
2844 echo 1>&2 '***' --with-headers is only supported when cross compiling
2845 exit 1
2846 fi
2847 if test x"${with_headers}" != xyes ; then
2848 case "${exec_prefixoption}" in
2849 "") x=${prefix} ;;
2850 *) x=${exec_prefix} ;;
2851 esac
2852 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2853 fi
2854fi
2855
2856# Handle --with-libs=XXX. If the value is not "yes", the contents of
2857# the name directories are copied to $(tooldir)/lib. Multiple directories
2858# are permitted.
2859if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2860 if test x${is_cross_compiler} = xno ; then
2861 echo 1>&2 '***' --with-libs is only supported when cross compiling
2862 exit 1
2863 fi
2864 if test x"${with_libs}" != xyes ; then
2865 # Copy the libraries in reverse order, so that files in the first named
2866 # library override files in subsequent libraries.
2867 case "${exec_prefixoption}" in
2868 "") x=${prefix} ;;
2869 *) x=${exec_prefix} ;;
2870 esac
2871 for l in ${with_libs}; do
2872 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2873 done
2874 fi
2875fi
2876
2429c060
PB
2877# Set with_gnu_as and with_gnu_ld as appropriate.
2878#
2879# This is done by determining whether or not the appropriate directory
2880# is available, and by checking whether or not specific configurations
2881# have requested that this magic not happen.
2882#
2883# The command line options always override the explicit settings in
2884# configure.in, and the settings in configure.in override this magic.
2885#
2886# If the default for a toolchain is to use GNU as and ld, and you don't
2887# want to do that, then you should use the --without-gnu-as and
2888# --without-gnu-ld options for the configure script.
2889
2890if test x${use_gnu_as} = x &&
2891 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2892 with_gnu_as=yes
2893 extra_host_args="$extra_host_args --with-gnu-as"
2894fi
2895
2896if test x${use_gnu_ld} = x &&
2897 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2898 with_gnu_ld=yes
2899 extra_host_args="$extra_host_args --with-gnu-ld"
2900fi
2901
2902# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2903# can detect this case.
2904
2905if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2906 with_newlib=yes
2907 extra_host_args="$extra_host_args --with-newlib"
2908fi
2909
9e07f89d
NN
2910# Handle ${copy_dirs}
2911set fnord ${copy_dirs}
2912shift
2913while test $# != 0 ; do
2914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2915 :
2916 else
2917 echo Copying $1 to $2
2918
2919 # Use the install script to create the directory and all required
2920 # parent directories.
2921 if test -d $2 ; then
2922 :
2923 else
2924 echo >config.temp
2925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2926 fi
2927
2928 # Copy the directory, assuming we have tar.
2929 # FIXME: Should we use B in the second tar? Not all systems support it.
2930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2931
2932 # It is the responsibility of the user to correctly adjust all
2933 # symlinks. If somebody can figure out how to handle them correctly
2934 # here, feel free to add the code.
2935
2936 echo $1 > $2/COPIED
2937 fi
2938 shift; shift
2939done
2940
2429c060
PB
2941# Determine a target-dependent exec_prefix that the installed
2942# gcc will search in. Keep this list sorted by triplet, with
2943# the *-*-osname triplets last.
2944md_exec_prefix=
2945case "${target}" in
2946 alpha*-*-*vms*)
2947 md_exec_prefix=/gnu/lib/gcc-lib
2948 ;;
2949 i3456786-pc-msdosdjgpp*)
2950 md_exec_prefix=/dev/env/DJDIR/bin
2951 ;;
2952 i3456786-*-sco3.2v5*)
2953 if test $with_gnu_as = yes; then
2954 md_exec_prefix=/usr/gnu/bin
2955 else
2956 md_exec_prefix=/usr/ccs/bin/elf
2957 fi
2958 ;;
2959
2960 mn10300-*-* | \
2961 powerpc-*-chorusos* | \
2962 powerpc*-*-eabi* | \
2963 powerpc*-*-sysv* | \
2964 powerpc*-*-kaos* | \
2965 s390x-ibm-tpf*)
2966 md_exec_prefix=/usr/ccs/bin
2967 ;;
2968 sparc64-*-elf*)
2969 ;;
2970 v850*-*-*)
2971 md_exec_prefix=/usr/ccs/bin
2972 ;;
2973 xtensa-*-elf*)
2974 ;;
2975
2976 *-*-beos* | \
2977 *-*-elf* | \
2978 *-*-hpux* | \
2979 *-*-netware* | \
2980 *-*-nto-qnx* | \
2981 *-*-rtems* | \
2982 *-*-solaris2* | \
2983 *-*-sysv45* | \
2984 *-*-vxworks* | \
2985 *-wrs-windiss)
2986 md_exec_prefix=/usr/ccs/bin
2987 ;;
2988esac
2989
a0da8069
NN
2990extra_arflags_for_target=
2991extra_nmflags_for_target=
2992extra_ranlibflags_for_target=
2993target_makefile_frag=/dev/null
2994case "${target}" in
77d7106f
AM
2995 spu-*-*)
2996 target_makefile_frag="config/mt-spu"
2997 ;;
2a3124ca 2998 *-*-netware*)
a0da8069
NN
2999 target_makefile_frag="config/mt-netware"
3000 ;;
3d6dfe0f
NN
3001 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3002 target_makefile_frag="config/mt-gnu"
a0da8069
NN
3003 ;;
3004 *-*-aix4.[3456789]* | *-*-aix[56789].*)
cac3d6c4 3005 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
3006 # commands to handle both 32-bit and 64-bit objects. These flags are
3007 # harmless if we're using GNU nm or ar.
3008 extra_arflags_for_target=" -X32_64"
3009 extra_nmflags_for_target=" -B -X32_64"
3010 ;;
3011 *-*-darwin*)
3012 # ranlib from Darwin requires the -c flag to look at common symbols.
3013 extra_ranlibflags_for_target=" -c"
3014 ;;
3015 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
3016 target_makefile_frag="config/mt-wince"
3017 ;;
3018esac
3019
3020alphaieee_frag=/dev/null
3021case $target in
3022 alpha*-*-*)
3023 # This just makes sure to use the -mieee option to build target libs.
3024 # This should probably be set individually by each library.
3025 alphaieee_frag="config/mt-alphaieee"
3026 ;;
3027esac
3028
3029# If --enable-target-optspace always use -Os instead of -O2 to build
3030# the target libraries, similarly if it is not specified, use -Os
3031# on selected platforms.
3032ospace_frag=/dev/null
3033case "${enable_target_optspace}:${target}" in
3034 yes:*)
3035 ospace_frag="config/mt-ospace"
3036 ;;
3037 :d30v-*)
3038 ospace_frag="config/mt-d30v"
3039 ;;
3040 :m32r-* | :d10v-* | :fr30-*)
3041 ospace_frag="config/mt-ospace"
3042 ;;
3043 no:* | :*)
3044 ;;
3045 *)
3046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3047 ;;
3048esac
3049
a0da8069
NN
3050# Default to using --with-stabs for certain targets.
3051if test x${with_stabs} = x ; then
3052 case "${target}" in
e31d1ea3 3053 mips*-*-irix[56]*)
a0da8069
NN
3054 ;;
3055 mips*-*-* | alpha*-*-osf*)
3056 with_stabs=yes;
3057 extra_host_args="${extra_host_args} --with-stabs"
3058 ;;
3059 esac
3060fi
3061
3062# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3063# them automatically.
3064case "${host}" in
cac3d6c4 3065 hppa*64*-*-hpux11*)
a0da8069
NN
3066 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3067 ;;
3068esac
3069
a0da8069
NN
3070# Some systems (e.g., one of the i386-aix systems the gas testers are
3071# using) don't handle "\$" correctly, so don't use it here.
61fa5f72 3072tooldir='${exec_prefix}'/${target_alias}
a0da8069
NN
3073build_tooldir=${tooldir}
3074
a0da8069
NN
3075# Create a .gdbinit file which runs the one in srcdir
3076# and tells GDB to look there for source files.
3077
3078if test -r ${srcdir}/.gdbinit ; then
3079 case ${srcdir} in
3080 .) ;;
3081 *) cat > ./.gdbinit <<EOF
3082# ${NO_EDIT}
3083dir ${srcdir}
3084dir .
3085source ${srcdir}/.gdbinit
3086EOF
3087 ;;
3088 esac
3089fi
3090
a0da8069
NN
3091# Make sure that the compiler is able to generate an executable. If it
3092# can't, we are probably in trouble. We don't care whether we can run the
3093# executable--we might be using a cross compiler--we only care whether it
3094# can be created. At this point the main configure script has set CC.
3095we_are_ok=no
3096echo "int main () { return 0; }" > conftest.c
3097${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3098if test $? = 0 ; then
3099 if test -s conftest || test -s conftest.exe ; then
3100 we_are_ok=yes
3101 fi
cac3d6c4 3102fi
a0da8069
NN
3103case $we_are_ok in
3104 no)
3105 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3106 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3107 rm -f conftest*
3108 exit 1
3109 ;;
3110esac
3111rm -f conftest*
3112
3113# The Solaris /usr/ucb/cc compiler does not appear to work.
3114case "${host}" in
3115 sparc-sun-solaris2*)
3116 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3117 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3118 could_use=
3119 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3120 if test -d /opt/cygnus/bin ; then
3121 if test "$could_use" = "" ; then
3122 could_use="/opt/cygnus/bin"
3123 else
3124 could_use="$could_use or /opt/cygnus/bin"
3125 fi
3126 fi
3127 if test "$could_use" = "" ; then
3128 echo "Warning: compilation may fail because you're using"
3129 echo "/usr/ucb/cc. You should change your PATH or CC "
3130 echo "variable and rerun configure."
3131 else
3132 echo "Warning: compilation may fail because you're using"
3133 echo "/usr/ucb/cc, when you should use the C compiler from"
3134 echo "$could_use. You should change your"
3135 echo "PATH or CC variable and rerun configure."
3136 fi
3137 fi
3138 ;;
3139esac
3140
a0da8069
NN
3141case "${host}" in
3142 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 3143 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
3144 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3145esac
3146
3147# Record target_configdirs and the configure arguments for target and
3148# build configuration in Makefile.
3149target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 3150build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 3151
a0da8069
NN
3152# Determine whether gdb needs tk/tcl or not.
3153# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3154# and in that case we want gdb to be built without tk. Ugh!
3155# In fact I believe gdb is the *only* package directly dependent on tk,
3156# so we should be able to put the 'maybe's in unconditionally and
3157# leave out the maybe dependencies when enable_gdbtk is false. I'm not
3158# 100% sure that that's safe though.
c180f501 3159
675c6968 3160gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
3161case "$enable_gdbtk" in
3162 no)
3163 GDB_TK="" ;;
c180f501
AC
3164 yes)
3165 GDB_TK="${gdb_tk}" ;;
a0da8069 3166 *)
c180f501
AC
3167 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3168 # distro. Eventually someone will fix this and move Insight, nee
3169 # gdbtk to a separate directory.
3170 if test -d ${srcdir}/gdb/gdbtk ; then
3171 GDB_TK="${gdb_tk}"
3172 else
3173 GDB_TK=""
3174 fi
3175 ;;
a0da8069 3176esac
907be67c
DJ
3177CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3178INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 3179
6bd3dfaa 3180# Strip out unwanted targets.
dd12c3a8
NN
3181
3182# While at that, we remove Makefiles if we were started for recursive
3183# configuration, so that the top-level Makefile reconfigures them,
3184# like we used to do when configure itself was recursive.
dd12c3a8 3185
6bd3dfaa
PB
3186# Loop over modules. $extrasub must be used with care, limiting as
3187# much as possible the usage of range addresses. That's because autoconf
3188# splits the sed script to overcome limits in the number of commands,
3189# and relying on carefully-timed sed passes may turn out to be very hard
3190# to maintain later. In this particular case, you just have to be careful
3191# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 3192
319cab08
PB
3193# Check whether --enable-bootstrap or --disable-bootstrap was given.
3194if test "${enable_bootstrap+set}" = set; then
3195 enableval="$enable_bootstrap"
cac3d6c4 3196 :
319cab08 3197else
9cb3fa6f 3198 enable_bootstrap=default
cac3d6c4
CM
3199fi
3200
319cab08 3201
9cb3fa6f
PB
3202# Issue errors and warnings for invalid/strange bootstrap combinations.
3203case "$configdirs" in
3204 *gcc*) have_compiler=yes ;;
3205 *) have_compiler=no ;;
3206esac
3207
3208case "$have_compiler:$host:$target:$enable_bootstrap" in
3209 *:*:*:no) ;;
3210
0aed8855 3211 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
3212 # and we are in a native configuration.
3213 yes:$build:$build:default)
0aed8855 3214 enable_bootstrap=yes ;;
9cb3fa6f
PB
3215
3216 *:*:*:default)
3217 enable_bootstrap=no ;;
3218
3219 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 3220 yes:$build:$build:yes)
9cb3fa6f
PB
3221 ;;
3222
3223 # Other configurations, but we have a compiler. Assume the user knows
3224 # what he's doing.
80911fe1 3225 yes:*:*:yes)
cac3d6c4 3226 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
9cb3fa6f
PB
3227 ;;
3228
3229 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 3230 no:*:*:yes)
cac3d6c4 3231 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
9cb3fa6f
PB
3232
3233 # Fail if wrong command line
3234 *)
cac3d6c4 3235 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
9cb3fa6f
PB
3236 ;;
3237esac
3238
3239# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
3240case "$enable_bootstrap" in
3241 yes)
498d4a71 3242 bootstrap_suffix=bootstrap ;;
319cab08 3243 no)
498d4a71 3244 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
3245esac
3246
6a9cf61e 3247for module in ${build_configdirs} ; do
498d4a71
CF
3248 if test -z "${no_recursion}" \
3249 && test -f ${build_subdir}/${module}/Makefile; then
3250 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3251 rm -f ${build_subdir}/${module}/Makefile
3252 fi
3253 extrasub="$extrasub
3254/^@if build-$module\$/d
3255/^@endif build-$module\$/d
3256/^@if build-$module-$bootstrap_suffix\$/d
3257/^@endif build-$module-$bootstrap_suffix\$/d"
3258done
3259for module in ${configdirs} ; do
80911fe1 3260 if test -z "${no_recursion}"; then
8cf39b1b 3261 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
3262 if test -f ${file}; then
3263 echo 1>&2 "*** removing ${file} to force reconfigure"
3264 rm -f ${file}
3265 fi
3266 done
498d4a71
CF
3267 fi
3268 extrasub="$extrasub
3269/^@if $module\$/d
3270/^@endif $module\$/d
3271/^@if $module-$bootstrap_suffix\$/d
3272/^@endif $module-$bootstrap_suffix\$/d"
3273done
3274for module in ${target_configdirs} ; do
3275 if test -z "${no_recursion}" \
3276 && test -f ${target_subdir}/${module}/Makefile; then
3277 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3278 rm -f ${target_subdir}/${module}/Makefile
3279 fi
3280 extrasub="$extrasub
3281/^@if target-$module\$/d
3282/^@endif target-$module\$/d
3283/^@if target-$module-$bootstrap_suffix\$/d
3284/^@endif target-$module-$bootstrap_suffix\$/d"
3285done
3286
6bd3dfaa
PB
3287extrasub="$extrasub
3288/^@if /,/^@endif /d"
a0da8069
NN
3289
3290# Create the serialization dependencies. This uses a temporary file.
3291
e6bfb94a
AO
3292# Check whether --enable-serial-configure or --disable-serial-configure was given.
3293if test "${enable_serial_configure+set}" = set; then
3294 enableval="$enable_serial_configure"
cac3d6c4
CM
3295 :
3296fi
e6bfb94a
AO
3297
3298
1047cb91
DD
3299case ${enable_serial_configure} in
3300 yes)
3301 enable_serial_build_configure=yes
3302 enable_serial_host_configure=yes
3303 enable_serial_target_configure=yes
3304 ;;
3305esac
3306
a0da8069
NN
3307# These force 'configure's to be done one at a time, to avoid problems
3308# with contention over a shared config.cache.
3309rm -f serdep.tmp
e6bfb94a 3310echo '# serdep.tmp' > serdep.tmp
a0da8069 3311olditem=
1047cb91 3312test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
3313for item in ${build_configdirs} ; do
3314 case ${olditem} in
3315 "") ;;
e6bfb94a 3316 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3317 esac
3318 olditem=${item}
3319done
3320olditem=
1047cb91 3321test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
3322for item in ${configdirs} ; do
3323 case ${olditem} in
3324 "") ;;
e6bfb94a 3325 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3326 esac
3327 olditem=${item}
3328done
3329olditem=
1047cb91 3330test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
3331for item in ${target_configdirs} ; do
3332 case ${olditem} in
3333 "") ;;
e6bfb94a 3334 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3335 esac
3336 olditem=${item}
3337done
3338serialization_dependencies=serdep.tmp
3339
3340
e6bfb94a
AO
3341# Base args. Strip norecursion, cache-file, srcdir, host, build,
3342# target and nonopt. These are the ones we might not want to pass
f27d4f92
DJ
3343# down to subconfigures. Also strip program-prefix, program-suffix,
3344# and program-transform-name, so that we can pass down a consistent
3345# program-transform-name. If autoconf has put single quotes around
3346# any of these arguments (because they contain shell metacharacters)
3347# then this will fail; in practice this only happens for
3348# --program-transform-name, so be sure to override --program-transform-name
3349# at the end of the argument list.
3350# These will be expanded by make, so quote '$'.
d2cc0e0d 3351cat <<\EOF_SED > conftestsed
54752a6b
NN
3352s/ --no[^ ]*/ /g
3353s/ --c[a-z-]*[= ][^ ]*//g
3354s/ --sr[a-z-]*[= ][^ ]*//g
3355s/ --ho[a-z-]*[= ][^ ]*//g
3356s/ --bu[a-z-]*[= ][^ ]*//g
3357s/ --t[a-z-]*[= ][^ ]*//g
3358s/ --program-[pst][a-z-]*[= ][^ ]*//g
3359s/ -cache-file[= ][^ ]*//g
3360s/ -srcdir[= ][^ ]*//g
3361s/ -host[= ][^ ]*//g
3362s/ -build[= ][^ ]*//g
3363s/ -target[= ][^ ]*//g
3364s/ -program-prefix[= ][^ ]*//g
3365s/ -program-suffix[= ][^ ]*//g
3366s/ -program-transform-name[= ][^ ]*//g
d2cc0e0d
GK
3367s/ [^' -][^ ]* / /
3368s/^ *//;s/ *$//
8ff944f6
DJ
3369s,\$,$$,g
3370EOF_SED
3371sed -f conftestsed <<EOF_SED > conftestsed.out
cac3d6c4 3372 ${ac_configure_args}
d2cc0e0d 3373EOF_SED
8ff944f6
DJ
3374baseargs=`cat conftestsed.out`
3375rm -f conftestsed conftestsed.out
a0da8069 3376
f27d4f92
DJ
3377# Add in --program-transform-name, after --program-prefix and
3378# --program-suffix have been applied to it. Autoconf has already
3379# doubled dollar signs and backslashes in program_transform_name; we want
3380# the backslashes un-doubled, and then the entire thing wrapped in single
cac3d6c4 3381# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
3382# Also, because we want to override the logic in subdir configure scripts to
3383# choose program_transform_name, replace any s,x,x, with s,y,y,.
3384sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3385${program_transform_name}
3386EOF_SED
3387gcc_transform_name=`cat conftestsed.out`
3388rm -f conftestsed.out
3389baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3390
a0da8069
NN
3391# For the build-side libraries, we just need to pretend we're native,
3392# and not use the same cache file. Multilibs are neither needed nor
3393# desired.
69e57115 3394build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
a0da8069
NN
3395
3396# For host modules, accept cache file option, or specification as blank.
3397case "${cache_file}" in
3398"") # empty
3399 cache_file_option="" ;;
3400/* | [A-Za-z]:[\\/]* ) # absolute path
3401 cache_file_option="--cache-file=${cache_file}" ;;
3402*) # relative path
3403 cache_file_option="--cache-file=../${cache_file}" ;;
3404esac
3405
82252c06
NN
3406# Host dirs don't like to share a cache file either, horribly enough.
3407# This seems to be due to autoconf 2.5x stupidity.
bb5dca17 3408host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
a0da8069
NN
3409
3410target_configargs=${baseargs}
3411
3412# Passing a --with-cross-host argument lets the target libraries know
3413# whether they are being built with a cross-compiler or being built
3414# native. However, it would be better to use other mechanisms to make the
3415# sorts of decisions they want to make on this basis. Please consider
3416# this option to be deprecated. FIXME.
3417if test x${is_cross_compiler} = xyes ; then
3418 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3419fi
3420
3421# Default to --enable-multilib.
3422if test x${enable_multilib} = x ; then
3423 target_configargs="--enable-multilib ${target_configargs}"
3424fi
3425
3426# Pass --with-newlib if appropriate. Note that target_configdirs has
3427# changed from the earlier setting of with_newlib.
3428if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3429 target_configargs="--with-newlib ${target_configargs}"
3430fi
3431
95036d20
NN
3432# Different target subdirs use different values of certain variables
3433# (notably CXX). Worse, multilibs use *lots* of different values.
3434# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3435# it doesn't automatically accept command-line overrides of them.
3436# This means it's not safe for target subdirs to share a cache file,
3437# which is disgusting, but there you have it. Hopefully this can be
3438# fixed in future. It's still worthwhile to use a cache file for each
3439# directory. I think.
3440
ae380b45
MS
3441# Pass the appropriate --build, --host, --target and --cache-file arguments.
3442# We need to pass --target, as newer autoconf's requires consistency
3443# for target_alias and gcc doesn't manage it consistently.
3444target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
a0da8069 3445
a0da8069
NN
3446FLAGS_FOR_TARGET=
3447case " $target_configdirs " in
3448 *" newlib "*)
3449 case " $target_configargs " in
3450 *" --with-newlib "*)
3451 case "$target" in
3452 *-cygwin*)
564b43e5 3453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
3454 esac
3455
3456 # If we're not building GCC, don't discard standard headers.
3457 if test -d ${srcdir}/gcc; then
3458 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3459
3460 if test "${build}" != "${host}"; then
3461 # On Canadian crosses, CC_FOR_TARGET will have already been set
3462 # by `configure', so we won't have an opportunity to add -Bgcc/
3463 # to it. This is right: we don't want to search that directory
3464 # for binaries, but we want the header files in there, so add
3465 # them explicitly.
b00612cc 3466 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
3467
3468 # Someone might think of using the pre-installed headers on
3469 # Canadian crosses, in case the installed compiler is not fully
3470 # compatible with the compiler being built. In this case, it
3471 # would be better to flag an error than risking having
3472 # incompatible object files being constructed. We can't
3473 # guarantee that an error will be flagged, but let's hope the
3474 # compiler will do it, when presented with incompatible header
3475 # files.
3476 fi
3477 fi
3478
3479 case "${target}-${is_cross_compiler}" in
ec11bdc6 3480 i[3456789]86-*-linux*-no)
a0da8069
NN
3481 # Here host == target, so we don't need to build gcc,
3482 # so we don't want to discard standard headers.
3483 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3484 ;;
3485 *)
3486 # If we're building newlib, use its generic headers last, but search
3487 # for any libc-related directories first (so make it the last -B
3488 # switch).
3489 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3490 ;;
3491 esac
3492 ;;
3493 esac
3494 ;;
3495esac
45055374
CV
3496case "$target" in
3497*-mingw*)
3498 # Can't be handled as Cygwin above since Mingw does not use newlib.
3499 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
3500esac
a0da8069 3501
5fbad20a
DD
3502# Allow the user to override the flags for
3503# our build compiler if desired.
3504CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3505
a0da8069
NN
3506# On Canadian crosses, we'll be searching the right directories for
3507# the previously-installed cross compiler, so don't bother to add
3508# flags for directories within the install tree of the compiler
3509# being built; programs in there won't even run.
3510if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3511 # Search for pre-installed headers if nothing else fits.
bba45b8b 3512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
3513fi
3514
3515if test "x${use_gnu_ld}" = x &&
3516 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3517 # Arrange for us to find uninstalled linker scripts.
b00612cc 3518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
3519fi
3520
a481dbb7
DD
3521# Search for other target-specific linker scripts and such.
3522case "${target}" in
3523 m32c-*-* )
3524 if test -d ${srcdir}/libgloss/m32c; then
3525 # This is for crt0.o
3526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3527 # This is for r8c.ld
3528 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3529 # This is for libnosys.a
3530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3531 fi
3532 ;;
3533esac
3534
a0da8069 3535# Makefile fragments.
3e707e94
PB
3536for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3537do
3538 eval fragval=\$$frag
3539 if test $fragval != /dev/null; then
3540 eval $frag=${srcdir}/$fragval
3541 fi
3542done
a0da8069
NN
3543
3544
3545
3546
3547
3548# Miscellanea: directories, flags, etc.
3549
3550
3551
3552
3553
3554
3555
6a9cf61e 3556# Build module lists & subconfigure args.
a0da8069
NN
3557
3558
3559
be01d343
PB
3560# Host module lists & subconfigure args.
3561
3562
3563
3564# Target module lists & subconfigure args.
3565
3566
3567
3568# Build tools.
3569
3570
3571
3572# Generate default definitions for YACC, M4, LEX and other programs that run
3573# on the build machine. These are used if the Makefile can't locate these
3574# programs in objdir.
3575MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3576
3577for ac_prog in 'bison -y' byacc yacc
3578do
3579# Extract the first word of "$ac_prog", so it can be a program name with args.
3580set dummy $ac_prog; ac_word=$2
3581echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3582echo "configure:3583: checking for $ac_word" >&5
be01d343
PB
3583if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585else
3586 if test -n "$YACC"; then
3587 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3588else
3589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3590 ac_dummy="$PATH"
3591 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if test -f $ac_dir/$ac_word; then
3594 ac_cv_prog_YACC="$ac_prog"
3595 break
3596 fi
3597 done
3598 IFS="$ac_save_ifs"
3599fi
3600fi
3601YACC="$ac_cv_prog_YACC"
3602if test -n "$YACC"; then
3603 echo "$ac_t""$YACC" 1>&6
3604else
3605 echo "$ac_t""no" 1>&6
3606fi
3607
3608test -n "$YACC" && break
3609done
3610test -n "$YACC" || YACC="$MISSING bison -y"
3611
3612case " $build_configdirs " in
3613 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3614 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3615esac
3616
3617for ac_prog in bison
3618do
3619# Extract the first word of "$ac_prog", so it can be a program name with args.
3620set dummy $ac_prog; ac_word=$2
3621echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3622echo "configure:3623: checking for $ac_word" >&5
be01d343
PB
3623if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3625else
3626 if test -n "$BISON"; then
3627 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3628else
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3630 ac_dummy="$PATH"
3631 for ac_dir in $ac_dummy; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f $ac_dir/$ac_word; then
3634 ac_cv_prog_BISON="$ac_prog"
3635 break
3636 fi
3637 done
3638 IFS="$ac_save_ifs"
3639fi
3640fi
3641BISON="$ac_cv_prog_BISON"
3642if test -n "$BISON"; then
3643 echo "$ac_t""$BISON" 1>&6
3644else
3645 echo "$ac_t""no" 1>&6
3646fi
3647
3648test -n "$BISON" && break
3649done
3650test -n "$BISON" || BISON="$MISSING bison"
3651
3652case " $build_configdirs " in
3653 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3654esac
3655
3656for ac_prog in gm4 gnum4 m4
3657do
3658# Extract the first word of "$ac_prog", so it can be a program name with args.
3659set dummy $ac_prog; ac_word=$2
3660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3661echo "configure:3662: checking for $ac_word" >&5
be01d343
PB
3662if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664else
3665 if test -n "$M4"; then
3666 ac_cv_prog_M4="$M4" # Let the user override the test.
3667else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_M4="$ac_prog"
3674 break
3675 fi
3676 done
3677 IFS="$ac_save_ifs"
3678fi
3679fi
3680M4="$ac_cv_prog_M4"
3681if test -n "$M4"; then
3682 echo "$ac_t""$M4" 1>&6
3683else
3684 echo "$ac_t""no" 1>&6
3685fi
3686
3687test -n "$M4" && break
3688done
3689test -n "$M4" || M4="$MISSING m4"
3690
3691case " $build_configdirs " in
3692 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3693esac
3694
3695for ac_prog in flex lex
3696do
3697# Extract the first word of "$ac_prog", so it can be a program name with args.
3698set dummy $ac_prog; ac_word=$2
3699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3700echo "configure:3701: checking for $ac_word" >&5
be01d343
PB
3701if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3703else
3704 if test -n "$LEX"; then
3705 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3706else
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3708 ac_dummy="$PATH"
3709 for ac_dir in $ac_dummy; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/$ac_word; then
3712 ac_cv_prog_LEX="$ac_prog"
3713 break
3714 fi
3715 done
3716 IFS="$ac_save_ifs"
3717fi
3718fi
3719LEX="$ac_cv_prog_LEX"
3720if test -n "$LEX"; then
3721 echo "$ac_t""$LEX" 1>&6
3722else
3723 echo "$ac_t""no" 1>&6
3724fi
3725
3726test -n "$LEX" && break
3727done
3728test -n "$LEX" || LEX="$MISSING flex"
3729
3730case " $build_configdirs " in
3731 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3732 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3733esac
3734
3735for ac_prog in flex
3736do
3737# Extract the first word of "$ac_prog", so it can be a program name with args.
3738set dummy $ac_prog; ac_word=$2
3739echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3740echo "configure:3741: checking for $ac_word" >&5
be01d343
PB
3741if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743else
3744 if test -n "$FLEX"; then
3745 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3746else
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_FLEX="$ac_prog"
3753 break
3754 fi
3755 done
3756 IFS="$ac_save_ifs"
3757fi
3758fi
3759FLEX="$ac_cv_prog_FLEX"
3760if test -n "$FLEX"; then
3761 echo "$ac_t""$FLEX" 1>&6
3762else
3763 echo "$ac_t""no" 1>&6
3764fi
3765
3766test -n "$FLEX" && break
3767done
3768test -n "$FLEX" || FLEX="$MISSING flex"
3769
3770case " $build_configdirs " in
3771 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3772esac
3773
3774for ac_prog in makeinfo
3775do
3776# Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
3778echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3779echo "configure:3780: checking for $ac_word" >&5
be01d343
PB
3780if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782else
3783 if test -n "$MAKEINFO"; then
3784 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3785else
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 ac_dummy="$PATH"
3788 for ac_dir in $ac_dummy; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f $ac_dir/$ac_word; then
3791 ac_cv_prog_MAKEINFO="$ac_prog"
3792 break
3793 fi
3794 done
3795 IFS="$ac_save_ifs"
3796fi
3797fi
3798MAKEINFO="$ac_cv_prog_MAKEINFO"
3799if test -n "$MAKEINFO"; then
3800 echo "$ac_t""$MAKEINFO" 1>&6
3801else
3802 echo "$ac_t""no" 1>&6
3803fi
3804
3805test -n "$MAKEINFO" && break
3806done
3807test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3808
3809case " $build_configdirs " in
3810 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3811 *)
3812
a4ef73e9 3813 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
3814 # higher, else we use the "missing" dummy.
3815 if ${MAKEINFO} --version \
a4ef73e9 3816 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
3817 :
3818 else
3819 MAKEINFO="$MISSING makeinfo"
3820 fi
3821 ;;
3822
3823esac
a0da8069 3824
be01d343 3825# FIXME: expect and dejagnu may become build tools?
a0da8069 3826
be01d343
PB
3827for ac_prog in expect
3828do
3829# Extract the first word of "$ac_prog", so it can be a program name with args.
3830set dummy $ac_prog; ac_word=$2
3831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3832echo "configure:3833: checking for $ac_word" >&5
be01d343
PB
3833if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835else
3836 if test -n "$EXPECT"; then
3837 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3838else
3839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3840 ac_dummy="$PATH"
3841 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 if test -f $ac_dir/$ac_word; then
3844 ac_cv_prog_EXPECT="$ac_prog"
3845 break
3846 fi
3847 done
3848 IFS="$ac_save_ifs"
3849fi
3850fi
3851EXPECT="$ac_cv_prog_EXPECT"
3852if test -n "$EXPECT"; then
3853 echo "$ac_t""$EXPECT" 1>&6
3854else
3855 echo "$ac_t""no" 1>&6
3856fi
a0da8069 3857
be01d343
PB
3858test -n "$EXPECT" && break
3859done
3860test -n "$EXPECT" || EXPECT="expect"
a0da8069 3861
be01d343
PB
3862case " $configdirs " in
3863 *" expect "*)
3864 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3865 ;;
3866esac
a0da8069 3867
be01d343
PB
3868for ac_prog in runtest
3869do
3870# Extract the first word of "$ac_prog", so it can be a program name with args.
3871set dummy $ac_prog; ac_word=$2
3872echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3873echo "configure:3874: checking for $ac_word" >&5
be01d343
PB
3874if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3876else
3877 if test -n "$RUNTEST"; then
3878 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3879else
3880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3881 ac_dummy="$PATH"
3882 for ac_dir in $ac_dummy; do
3883 test -z "$ac_dir" && ac_dir=.
3884 if test -f $ac_dir/$ac_word; then
3885 ac_cv_prog_RUNTEST="$ac_prog"
3886 break
3887 fi
3888 done
3889 IFS="$ac_save_ifs"
3890fi
3891fi
3892RUNTEST="$ac_cv_prog_RUNTEST"
3893if test -n "$RUNTEST"; then
3894 echo "$ac_t""$RUNTEST" 1>&6
3895else
3896 echo "$ac_t""no" 1>&6
3897fi
a0da8069 3898
be01d343
PB
3899test -n "$RUNTEST" && break
3900done
3901test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 3902
be01d343
PB
3903case " $configdirs " in
3904 *" dejagnu "*)
6b89cc21 3905 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
3906 ;;
3907esac
a0da8069
NN
3908
3909
a0da8069 3910# Host tools.
859789af
AC
3911ncn_tool_prefix=
3912test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3913ncn_target_tool_prefix=
3914test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3915
05cbd757
PB
3916 for ncn_progname in ar; do
3917 if test -n "$ncn_tool_prefix"; then
3918 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3919set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3921echo "configure:3922: checking for $ac_word" >&5
cac3d6c4
CM
3922if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3924else
3925 if test -n "$AR"; then
3926 ac_cv_prog_AR="$AR" # Let the user override the test.
3927else
cac3d6c4
CM
3928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3929 ac_dummy="$PATH"
3930 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 if test -f $ac_dir/$ac_word; then
3933 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3934 break
3935 fi
3936 done
3937 IFS="$ac_save_ifs"
859789af
AC
3938fi
3939fi
cac3d6c4 3940AR="$ac_cv_prog_AR"
859789af 3941if test -n "$AR"; then
cac3d6c4 3942 echo "$ac_t""$AR" 1>&6
859789af 3943else
cac3d6c4 3944 echo "$ac_t""no" 1>&6
859789af
AC
3945fi
3946
05cbd757
PB
3947 fi
3948 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3950set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 3951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3952echo "configure:3953: checking for $ac_word" >&5
cac3d6c4
CM
3953if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
859789af 3955else
05cbd757
PB
3956 if test -n "$AR"; then
3957 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 3958else
cac3d6c4
CM
3959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3960 ac_dummy="$PATH"
3961 for ac_dir in $ac_dummy; do
3962 test -z "$ac_dir" && ac_dir=.
3963 if test -f $ac_dir/$ac_word; then
3964 ac_cv_prog_AR="${ncn_progname}"
3965 break
3966 fi
3967 done
3968 IFS="$ac_save_ifs"
859789af
AC
3969fi
3970fi
cac3d6c4 3971AR="$ac_cv_prog_AR"
05cbd757 3972if test -n "$AR"; then
cac3d6c4 3973 echo "$ac_t""$AR" 1>&6
859789af 3974else
cac3d6c4 3975 echo "$ac_t""no" 1>&6
859789af 3976fi
cac3d6c4 3977
05cbd757
PB
3978 fi
3979 test -n "$ac_cv_prog_AR" && break
3980done
3981
3982if test -z "$ac_cv_prog_AR" ; then
3983 set dummy ar
3984 if test $build = $host ; then
3985 AR="$2"
859789af 3986 else
05cbd757 3987 AR="${ncn_tool_prefix}$2"
859789af 3988 fi
859789af
AC
3989fi
3990
05cbd757
PB
3991 for ncn_progname in as; do
3992 if test -n "$ncn_tool_prefix"; then
3993 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3994set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 3995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 3996echo "configure:3997: checking for $ac_word" >&5
cac3d6c4
CM
3997if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
3999else
4000 if test -n "$AS"; then
4001 ac_cv_prog_AS="$AS" # Let the user override the test.
4002else
cac3d6c4
CM
4003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 ac_dummy="$PATH"
4005 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f $ac_dir/$ac_word; then
4008 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
4009 break
4010 fi
4011 done
4012 IFS="$ac_save_ifs"
859789af
AC
4013fi
4014fi
cac3d6c4 4015AS="$ac_cv_prog_AS"
859789af 4016if test -n "$AS"; then
cac3d6c4 4017 echo "$ac_t""$AS" 1>&6
859789af 4018else
cac3d6c4 4019 echo "$ac_t""no" 1>&6
859789af
AC
4020fi
4021
05cbd757
PB
4022 fi
4023 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
4024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4025set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4027echo "configure:4028: checking for $ac_word" >&5
cac3d6c4
CM
4028if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4030else
05cbd757
PB
4031 if test -n "$AS"; then
4032 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 4033else
cac3d6c4
CM
4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4035 ac_dummy="$PATH"
4036 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/$ac_word; then
4039 ac_cv_prog_AS="${ncn_progname}"
4040 break
4041 fi
4042 done
4043 IFS="$ac_save_ifs"
859789af
AC
4044fi
4045fi
cac3d6c4 4046AS="$ac_cv_prog_AS"
05cbd757 4047if test -n "$AS"; then
cac3d6c4 4048 echo "$ac_t""$AS" 1>&6
859789af 4049else
cac3d6c4 4050 echo "$ac_t""no" 1>&6
859789af 4051fi
cac3d6c4 4052
05cbd757
PB
4053 fi
4054 test -n "$ac_cv_prog_AS" && break
4055done
4056
4057if test -z "$ac_cv_prog_AS" ; then
4058 set dummy as
4059 if test $build = $host ; then
4060 AS="$2"
859789af 4061 else
05cbd757 4062 AS="${ncn_tool_prefix}$2"
859789af 4063 fi
859789af
AC
4064fi
4065
05cbd757
PB
4066 for ncn_progname in dlltool; do
4067 if test -n "$ncn_tool_prefix"; then
4068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4069set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4071echo "configure:4072: checking for $ac_word" >&5
cac3d6c4
CM
4072if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4074else
4075 if test -n "$DLLTOOL"; then
4076 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4077else
cac3d6c4
CM
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4079 ac_dummy="$PATH"
4080 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f $ac_dir/$ac_word; then
4083 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4084 break
4085 fi
4086 done
4087 IFS="$ac_save_ifs"
859789af
AC
4088fi
4089fi
cac3d6c4 4090DLLTOOL="$ac_cv_prog_DLLTOOL"
859789af 4091if test -n "$DLLTOOL"; then
cac3d6c4 4092 echo "$ac_t""$DLLTOOL" 1>&6
859789af 4093else
cac3d6c4 4094 echo "$ac_t""no" 1>&6
859789af
AC
4095fi
4096
05cbd757
PB
4097 fi
4098 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4100set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4101echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4102echo "configure:4103: checking for $ac_word" >&5
cac3d6c4
CM
4103if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4105else
05cbd757
PB
4106 if test -n "$DLLTOOL"; then
4107 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 4108else
cac3d6c4
CM
4109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4110 ac_dummy="$PATH"
4111 for ac_dir in $ac_dummy; do
4112 test -z "$ac_dir" && ac_dir=.
4113 if test -f $ac_dir/$ac_word; then
4114 ac_cv_prog_DLLTOOL="${ncn_progname}"
4115 break
4116 fi
4117 done
4118 IFS="$ac_save_ifs"
859789af
AC
4119fi
4120fi
cac3d6c4 4121DLLTOOL="$ac_cv_prog_DLLTOOL"
05cbd757 4122if test -n "$DLLTOOL"; then
cac3d6c4 4123 echo "$ac_t""$DLLTOOL" 1>&6
859789af 4124else
cac3d6c4 4125 echo "$ac_t""no" 1>&6
859789af 4126fi
cac3d6c4 4127
05cbd757
PB
4128 fi
4129 test -n "$ac_cv_prog_DLLTOOL" && break
4130done
4131
4132if test -z "$ac_cv_prog_DLLTOOL" ; then
4133 set dummy dlltool
4134 if test $build = $host ; then
4135 DLLTOOL="$2"
859789af 4136 else
05cbd757 4137 DLLTOOL="${ncn_tool_prefix}$2"
859789af 4138 fi
859789af
AC
4139fi
4140
05cbd757
PB
4141 for ncn_progname in ld; do
4142 if test -n "$ncn_tool_prefix"; then
4143 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4144set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4145echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4146echo "configure:4147: checking for $ac_word" >&5
cac3d6c4
CM
4147if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4149else
4150 if test -n "$LD"; then
4151 ac_cv_prog_LD="$LD" # Let the user override the test.
4152else
cac3d6c4
CM
4153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4154 ac_dummy="$PATH"
4155 for ac_dir in $ac_dummy; do
4156 test -z "$ac_dir" && ac_dir=.
4157 if test -f $ac_dir/$ac_word; then
4158 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4159 break
4160 fi
4161 done
4162 IFS="$ac_save_ifs"
859789af
AC
4163fi
4164fi
cac3d6c4 4165LD="$ac_cv_prog_LD"
859789af 4166if test -n "$LD"; then
cac3d6c4 4167 echo "$ac_t""$LD" 1>&6
859789af 4168else
cac3d6c4 4169 echo "$ac_t""no" 1>&6
859789af
AC
4170fi
4171
05cbd757
PB
4172 fi
4173 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4175set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4176echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4177echo "configure:4178: checking for $ac_word" >&5
cac3d6c4
CM
4178if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4180else
05cbd757
PB
4181 if test -n "$LD"; then
4182 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 4183else
cac3d6c4
CM
4184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4185 ac_dummy="$PATH"
4186 for ac_dir in $ac_dummy; do
4187 test -z "$ac_dir" && ac_dir=.
4188 if test -f $ac_dir/$ac_word; then
4189 ac_cv_prog_LD="${ncn_progname}"
4190 break
4191 fi
4192 done
4193 IFS="$ac_save_ifs"
859789af
AC
4194fi
4195fi
cac3d6c4 4196LD="$ac_cv_prog_LD"
05cbd757 4197if test -n "$LD"; then
cac3d6c4 4198 echo "$ac_t""$LD" 1>&6
859789af 4199else
cac3d6c4 4200 echo "$ac_t""no" 1>&6
859789af 4201fi
cac3d6c4 4202
05cbd757
PB
4203 fi
4204 test -n "$ac_cv_prog_LD" && break
4205done
4206
4207if test -z "$ac_cv_prog_LD" ; then
4208 set dummy ld
4209 if test $build = $host ; then
4210 LD="$2"
859789af 4211 else
05cbd757 4212 LD="${ncn_tool_prefix}$2"
859789af 4213 fi
859789af
AC
4214fi
4215
be01d343
PB
4216 for ncn_progname in lipo; do
4217 if test -n "$ncn_tool_prefix"; then
4218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4219set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4220echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4221echo "configure:4222: checking for $ac_word" >&5
be01d343
PB
4222if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4224else
4225 if test -n "$LIPO"; then
4226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4227else
4228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4229 ac_dummy="$PATH"
4230 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 if test -f $ac_dir/$ac_word; then
4233 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4234 break
4235 fi
4236 done
4237 IFS="$ac_save_ifs"
4238fi
4239fi
4240LIPO="$ac_cv_prog_LIPO"
4241if test -n "$LIPO"; then
4242 echo "$ac_t""$LIPO" 1>&6
4243else
4244 echo "$ac_t""no" 1>&6
4245fi
4246
4247 fi
4248 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4250set dummy ${ncn_progname}; ac_word=$2
4251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4252echo "configure:4253: checking for $ac_word" >&5
be01d343
PB
4253if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4255else
4256 if test -n "$LIPO"; then
4257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4258else
4259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4260 ac_dummy="$PATH"
4261 for ac_dir in $ac_dummy; do
4262 test -z "$ac_dir" && ac_dir=.
4263 if test -f $ac_dir/$ac_word; then
4264 ac_cv_prog_LIPO="${ncn_progname}"
4265 break
4266 fi
4267 done
4268 IFS="$ac_save_ifs"
4269fi
4270fi
4271LIPO="$ac_cv_prog_LIPO"
4272if test -n "$LIPO"; then
4273 echo "$ac_t""$LIPO" 1>&6
4274else
4275 echo "$ac_t""no" 1>&6
4276fi
4277
4278 fi
4279 test -n "$ac_cv_prog_LIPO" && break
4280done
4281
4282if test -z "$ac_cv_prog_LIPO" ; then
4283 set dummy lipo
4284 if test $build = $host ; then
4285 LIPO="$2"
4286 else
4287 LIPO="${ncn_tool_prefix}$2"
4288 fi
4289fi
4290
05cbd757
PB
4291 for ncn_progname in nm; do
4292 if test -n "$ncn_tool_prefix"; then
4293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4294set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4295echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4296echo "configure:4297: checking for $ac_word" >&5
cac3d6c4
CM
4297if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4299else
4300 if test -n "$NM"; then
4301 ac_cv_prog_NM="$NM" # Let the user override the test.
4302else
cac3d6c4
CM
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 ac_dummy="$PATH"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4309 break
4310 fi
4311 done
4312 IFS="$ac_save_ifs"
859789af
AC
4313fi
4314fi
cac3d6c4 4315NM="$ac_cv_prog_NM"
859789af 4316if test -n "$NM"; then
cac3d6c4 4317 echo "$ac_t""$NM" 1>&6
859789af 4318else
cac3d6c4 4319 echo "$ac_t""no" 1>&6
859789af
AC
4320fi
4321
05cbd757
PB
4322 fi
4323 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4325set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4326echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4327echo "configure:4328: checking for $ac_word" >&5
cac3d6c4
CM
4328if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4330else
05cbd757
PB
4331 if test -n "$NM"; then
4332 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 4333else
cac3d6c4
CM
4334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4335 ac_dummy="$PATH"
4336 for ac_dir in $ac_dummy; do
4337 test -z "$ac_dir" && ac_dir=.
4338 if test -f $ac_dir/$ac_word; then
4339 ac_cv_prog_NM="${ncn_progname}"
4340 break
4341 fi
4342 done
4343 IFS="$ac_save_ifs"
859789af
AC
4344fi
4345fi
cac3d6c4 4346NM="$ac_cv_prog_NM"
05cbd757 4347if test -n "$NM"; then
cac3d6c4 4348 echo "$ac_t""$NM" 1>&6
859789af 4349else
cac3d6c4 4350 echo "$ac_t""no" 1>&6
859789af 4351fi
cac3d6c4 4352
05cbd757
PB
4353 fi
4354 test -n "$ac_cv_prog_NM" && break
4355done
4356
4357if test -z "$ac_cv_prog_NM" ; then
4358 set dummy nm
4359 if test $build = $host ; then
4360 NM="$2"
859789af 4361 else
05cbd757 4362 NM="${ncn_tool_prefix}$2"
859789af 4363 fi
859789af
AC
4364fi
4365
05cbd757
PB
4366 for ncn_progname in ranlib; do
4367 if test -n "$ncn_tool_prefix"; then
4368 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4369set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4370echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4371echo "configure:4372: checking for $ac_word" >&5
cac3d6c4
CM
4372if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4374else
4375 if test -n "$RANLIB"; then
4376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4377else
cac3d6c4
CM
4378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4379 ac_dummy="$PATH"
4380 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f $ac_dir/$ac_word; then
4383 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4384 break
4385 fi
4386 done
4387 IFS="$ac_save_ifs"
859789af
AC
4388fi
4389fi
cac3d6c4 4390RANLIB="$ac_cv_prog_RANLIB"
859789af 4391if test -n "$RANLIB"; then
cac3d6c4 4392 echo "$ac_t""$RANLIB" 1>&6
859789af 4393else
cac3d6c4 4394 echo "$ac_t""no" 1>&6
859789af
AC
4395fi
4396
05cbd757
PB
4397 fi
4398 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4400set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4402echo "configure:4403: checking for $ac_word" >&5
cac3d6c4
CM
4403if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4405else
05cbd757
PB
4406 if test -n "$RANLIB"; then
4407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 4408else
cac3d6c4
CM
4409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4410 ac_dummy="$PATH"
4411 for ac_dir in $ac_dummy; do
4412 test -z "$ac_dir" && ac_dir=.
4413 if test -f $ac_dir/$ac_word; then
4414 ac_cv_prog_RANLIB="${ncn_progname}"
4415 break
4416 fi
4417 done
4418 IFS="$ac_save_ifs"
859789af
AC
4419fi
4420fi
cac3d6c4 4421RANLIB="$ac_cv_prog_RANLIB"
05cbd757 4422if test -n "$RANLIB"; then
cac3d6c4 4423 echo "$ac_t""$RANLIB" 1>&6
859789af 4424else
cac3d6c4 4425 echo "$ac_t""no" 1>&6
859789af 4426fi
cac3d6c4 4427
859789af 4428 fi
05cbd757
PB
4429 test -n "$ac_cv_prog_RANLIB" && break
4430done
4431
4432if test -z "$ac_cv_prog_RANLIB" ; then
4433 RANLIB=":"
859789af
AC
4434fi
4435
be01d343
PB
4436 for ncn_progname in strip; do
4437 if test -n "$ncn_tool_prefix"; then
4438 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4439set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4441echo "configure:4442: checking for $ac_word" >&5
be01d343
PB
4442if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444else
4445 if test -n "$STRIP"; then
4446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4447else
4448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4449 ac_dummy="$PATH"
4450 for ac_dir in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir=.
4452 if test -f $ac_dir/$ac_word; then
4453 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4454 break
4455 fi
4456 done
4457 IFS="$ac_save_ifs"
4458fi
4459fi
4460STRIP="$ac_cv_prog_STRIP"
4461if test -n "$STRIP"; then
4462 echo "$ac_t""$STRIP" 1>&6
4463else
4464 echo "$ac_t""no" 1>&6
4465fi
4466
4467 fi
4468 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4470set dummy ${ncn_progname}; ac_word=$2
4471echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4472echo "configure:4473: checking for $ac_word" >&5
be01d343
PB
4473if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4475else
4476 if test -n "$STRIP"; then
4477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4478else
4479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4480 ac_dummy="$PATH"
4481 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 if test -f $ac_dir/$ac_word; then
4484 ac_cv_prog_STRIP="${ncn_progname}"
4485 break
4486 fi
4487 done
4488 IFS="$ac_save_ifs"
4489fi
4490fi
4491STRIP="$ac_cv_prog_STRIP"
4492if test -n "$STRIP"; then
4493 echo "$ac_t""$STRIP" 1>&6
4494else
4495 echo "$ac_t""no" 1>&6
4496fi
4497
4498 fi
4499 test -n "$ac_cv_prog_STRIP" && break
4500done
4501
4502if test -z "$ac_cv_prog_STRIP" ; then
4503 STRIP=":"
4504fi
4505
05cbd757
PB
4506 for ncn_progname in windres; do
4507 if test -n "$ncn_tool_prefix"; then
4508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4509set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4511echo "configure:4512: checking for $ac_word" >&5
cac3d6c4
CM
4512if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4514else
4515 if test -n "$WINDRES"; then
4516 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4517else
cac3d6c4
CM
4518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4519 ac_dummy="$PATH"
4520 for ac_dir in $ac_dummy; do
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f $ac_dir/$ac_word; then
4523 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4524 break
4525 fi
4526 done
4527 IFS="$ac_save_ifs"
859789af
AC
4528fi
4529fi
cac3d6c4 4530WINDRES="$ac_cv_prog_WINDRES"
859789af 4531if test -n "$WINDRES"; then
cac3d6c4 4532 echo "$ac_t""$WINDRES" 1>&6
859789af 4533else
cac3d6c4 4534 echo "$ac_t""no" 1>&6
859789af
AC
4535fi
4536
05cbd757
PB
4537 fi
4538 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4540set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4541echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4542echo "configure:4543: checking for $ac_word" >&5
cac3d6c4
CM
4543if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4545else
05cbd757
PB
4546 if test -n "$WINDRES"; then
4547 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 4548else
cac3d6c4
CM
4549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4550 ac_dummy="$PATH"
4551 for ac_dir in $ac_dummy; do
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f $ac_dir/$ac_word; then
4554 ac_cv_prog_WINDRES="${ncn_progname}"
4555 break
4556 fi
4557 done
4558 IFS="$ac_save_ifs"
859789af
AC
4559fi
4560fi
cac3d6c4 4561WINDRES="$ac_cv_prog_WINDRES"
05cbd757 4562if test -n "$WINDRES"; then
cac3d6c4 4563 echo "$ac_t""$WINDRES" 1>&6
859789af 4564else
cac3d6c4 4565 echo "$ac_t""no" 1>&6
859789af 4566fi
cac3d6c4 4567
05cbd757
PB
4568 fi
4569 test -n "$ac_cv_prog_WINDRES" && break
4570done
4571
4572if test -z "$ac_cv_prog_WINDRES" ; then
4573 set dummy windres
4574 if test $build = $host ; then
4575 WINDRES="$2"
859789af 4576 else
05cbd757 4577 WINDRES="${ncn_tool_prefix}$2"
859789af 4578 fi
859789af
AC
4579fi
4580
05cbd757
PB
4581 for ncn_progname in objcopy; do
4582 if test -n "$ncn_tool_prefix"; then
4583 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4584set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4586echo "configure:4587: checking for $ac_word" >&5
cac3d6c4
CM
4587if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4589else
4590 if test -n "$OBJCOPY"; then
4591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4592else
cac3d6c4
CM
4593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4594 ac_dummy="$PATH"
4595 for ac_dir in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f $ac_dir/$ac_word; then
4598 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4599 break
4600 fi
4601 done
4602 IFS="$ac_save_ifs"
859789af
AC
4603fi
4604fi
cac3d6c4 4605OBJCOPY="$ac_cv_prog_OBJCOPY"
859789af 4606if test -n "$OBJCOPY"; then
cac3d6c4 4607 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4608else
cac3d6c4 4609 echo "$ac_t""no" 1>&6
859789af
AC
4610fi
4611
05cbd757
PB
4612 fi
4613 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4615set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4617echo "configure:4618: checking for $ac_word" >&5
cac3d6c4
CM
4618if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4620else
05cbd757
PB
4621 if test -n "$OBJCOPY"; then
4622 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 4623else
cac3d6c4
CM
4624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4625 ac_dummy="$PATH"
4626 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f $ac_dir/$ac_word; then
4629 ac_cv_prog_OBJCOPY="${ncn_progname}"
4630 break
4631 fi
4632 done
4633 IFS="$ac_save_ifs"
859789af
AC
4634fi
4635fi
cac3d6c4 4636OBJCOPY="$ac_cv_prog_OBJCOPY"
05cbd757 4637if test -n "$OBJCOPY"; then
cac3d6c4 4638 echo "$ac_t""$OBJCOPY" 1>&6
859789af 4639else
cac3d6c4 4640 echo "$ac_t""no" 1>&6
859789af 4641fi
cac3d6c4 4642
05cbd757
PB
4643 fi
4644 test -n "$ac_cv_prog_OBJCOPY" && break
4645done
4646
4647if test -z "$ac_cv_prog_OBJCOPY" ; then
4648 set dummy objcopy
4649 if test $build = $host ; then
4650 OBJCOPY="$2"
859789af 4651 else
05cbd757 4652 OBJCOPY="${ncn_tool_prefix}$2"
859789af 4653 fi
859789af
AC
4654fi
4655
05cbd757
PB
4656 for ncn_progname in objdump; do
4657 if test -n "$ncn_tool_prefix"; then
4658 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4659set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4661echo "configure:4662: checking for $ac_word" >&5
cac3d6c4
CM
4662if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
859789af
AC
4664else
4665 if test -n "$OBJDUMP"; then
4666 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4667else
cac3d6c4
CM
4668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4669 ac_dummy="$PATH"
4670 for ac_dir in $ac_dummy; do
4671 test -z "$ac_dir" && ac_dir=.
4672 if test -f $ac_dir/$ac_word; then
4673 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4674 break
4675 fi
4676 done
4677 IFS="$ac_save_ifs"
859789af
AC
4678fi
4679fi
cac3d6c4 4680OBJDUMP="$ac_cv_prog_OBJDUMP"
859789af 4681if test -n "$OBJDUMP"; then
cac3d6c4 4682 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4683else
cac3d6c4 4684 echo "$ac_t""no" 1>&6
859789af
AC
4685fi
4686
05cbd757
PB
4687 fi
4688 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4690set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4691echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4692echo "configure:4693: checking for $ac_word" >&5
cac3d6c4
CM
4693if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4695else
05cbd757
PB
4696 if test -n "$OBJDUMP"; then
4697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 4698else
cac3d6c4
CM
4699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4700 ac_dummy="$PATH"
4701 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if test -f $ac_dir/$ac_word; then
4704 ac_cv_prog_OBJDUMP="${ncn_progname}"
4705 break
4706 fi
4707 done
4708 IFS="$ac_save_ifs"
859789af
AC
4709fi
4710fi
cac3d6c4 4711OBJDUMP="$ac_cv_prog_OBJDUMP"
05cbd757 4712if test -n "$OBJDUMP"; then
cac3d6c4 4713 echo "$ac_t""$OBJDUMP" 1>&6
859789af 4714else
cac3d6c4 4715 echo "$ac_t""no" 1>&6
859789af 4716fi
cac3d6c4 4717
05cbd757
PB
4718 fi
4719 test -n "$ac_cv_prog_OBJDUMP" && break
4720done
4721
4722if test -z "$ac_cv_prog_OBJDUMP" ; then
4723 set dummy objdump
4724 if test $build = $host ; then
4725 OBJDUMP="$2"
859789af 4726 else
05cbd757 4727 OBJDUMP="${ncn_tool_prefix}$2"
859789af 4728 fi
859789af
AC
4729fi
4730
a0da8069
NN
4731
4732
4733
4734
4735
4736
be01d343 4737# Target tools.
2429c060
PB
4738# Check whether --with-build-time-tools or --without-build-time-tools was given.
4739if test "${with_build_time_tools+set}" = set; then
4740 withval="$with_build_time_tools"
4741 case x"$withval" in
4742 x/*) ;;
4743 *)
4744 with_build_time_tools=
4745 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4746 ;;
4747 esac
859789af 4748else
2429c060 4749 with_build_time_tools=
859789af
AC
4750fi
4751
859789af 4752
2429c060
PB
4753 if test -n "$with_build_time_tools"; then
4754 for ncn_progname in cc gcc; do
4755 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 4756echo "configure:4757: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4757 if test -x $with_build_time_tools/${ncn_progname}; then
4758 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060 4759 echo "$ac_t""yes" 1>&6
cac3d6c4 4760 break
2429c060
PB
4761 else
4762 echo "$ac_t""no" 1>&6
cac3d6c4
CM
4763 fi
4764 done
55db4b87
PB
4765fi
4766
2429c060
PB
4767if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4768 for ncn_progname in cc gcc; do
4769 if test -n "$ncn_target_tool_prefix"; then
4770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4771set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4772echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4773echo "configure:4774: checking for $ac_word" >&5
cac3d6c4
CM
4774if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4776else
4777 if test -n "$CC_FOR_TARGET"; then
4778 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4779else
cac3d6c4
CM
4780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4781 ac_dummy="$PATH"
4782 for ac_dir in $ac_dummy; do
4783 test -z "$ac_dir" && ac_dir=.
4784 if test -f $ac_dir/$ac_word; then
4785 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4786 break
4787 fi
4788 done
4789 IFS="$ac_save_ifs"
55db4b87
PB
4790fi
4791fi
cac3d6c4 4792CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87 4793if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4794 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4795else
cac3d6c4 4796 echo "$ac_t""no" 1>&6
55db4b87
PB
4797fi
4798
2429c060
PB
4799 fi
4800 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4802set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4803echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4804echo "configure:4805: checking for $ac_word" >&5
cac3d6c4
CM
4805if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4807else
05cbd757
PB
4808 if test -n "$CC_FOR_TARGET"; then
4809 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 4810else
cac3d6c4
CM
4811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 ac_dummy="$PATH"
4813 for ac_dir in $ac_dummy; do
4814 test -z "$ac_dir" && ac_dir=.
4815 if test -f $ac_dir/$ac_word; then
4816 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4817 break
4818 fi
4819 done
4820 IFS="$ac_save_ifs"
55db4b87
PB
4821fi
4822fi
cac3d6c4 4823CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
05cbd757 4824if test -n "$CC_FOR_TARGET"; then
cac3d6c4 4825 echo "$ac_t""$CC_FOR_TARGET" 1>&6
55db4b87 4826else
cac3d6c4 4827 echo "$ac_t""no" 1>&6
55db4b87 4828fi
cac3d6c4 4829
2429c060
PB
4830 fi
4831 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4832 done
4833fi
4834
05cbd757
PB
4835if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4836 set dummy cc gcc
4837 if test $build = $target ; then
4838 CC_FOR_TARGET="$2"
55db4b87 4839 else
05cbd757 4840 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4841 fi
55db4b87
PB
4842fi
4843
2429c060
PB
4844 if test -n "$with_build_time_tools"; then
4845 for ncn_progname in c++ g++ cxx gxx; do
4846 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 4847echo "configure:4848: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4848 if test -x $with_build_time_tools/${ncn_progname}; then
4849 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4850 echo "$ac_t""yes" 1>&6
4851 break
4852 else
4853 echo "$ac_t""no" 1>&6
4854 fi
4855 done
4856fi
4857
4858if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4859 for ncn_progname in c++ g++ cxx gxx; do
4860 if test -n "$ncn_target_tool_prefix"; then
4861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4862set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4863echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4864echo "configure:4865: checking for $ac_word" >&5
cac3d6c4
CM
4865if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
4867else
4868 if test -n "$CXX_FOR_TARGET"; then
4869 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4870else
cac3d6c4
CM
4871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4872 ac_dummy="$PATH"
4873 for ac_dir in $ac_dummy; do
4874 test -z "$ac_dir" && ac_dir=.
4875 if test -f $ac_dir/$ac_word; then
4876 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4877 break
4878 fi
4879 done
4880 IFS="$ac_save_ifs"
55db4b87
PB
4881fi
4882fi
cac3d6c4 4883CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
55db4b87 4884if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4885 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4886else
cac3d6c4 4887 echo "$ac_t""no" 1>&6
55db4b87
PB
4888fi
4889
2429c060
PB
4890 fi
4891 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4893set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4895echo "configure:4896: checking for $ac_word" >&5
cac3d6c4
CM
4896if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4898else
05cbd757
PB
4899 if test -n "$CXX_FOR_TARGET"; then
4900 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 4901else
cac3d6c4
CM
4902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4903 ac_dummy="$PATH"
4904 for ac_dir in $ac_dummy; do
4905 test -z "$ac_dir" && ac_dir=.
4906 if test -f $ac_dir/$ac_word; then
4907 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4908 break
4909 fi
4910 done
4911 IFS="$ac_save_ifs"
55db4b87
PB
4912fi
4913fi
cac3d6c4 4914CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
05cbd757 4915if test -n "$CXX_FOR_TARGET"; then
cac3d6c4 4916 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
55db4b87 4917else
cac3d6c4 4918 echo "$ac_t""no" 1>&6
55db4b87 4919fi
cac3d6c4 4920
2429c060
PB
4921 fi
4922 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4923 done
4924fi
4925
05cbd757
PB
4926if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4927 set dummy c++ g++ cxx gxx
4928 if test $build = $target ; then
4929 CXX_FOR_TARGET="$2"
55db4b87 4930 else
05cbd757 4931 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 4932 fi
859789af
AC
4933fi
4934
2429c060
PB
4935 if test -n "$with_build_time_tools"; then
4936 for ncn_progname in gcc; do
4937 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 4938echo "configure:4939: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
4939 if test -x $with_build_time_tools/${ncn_progname}; then
4940 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
4941 echo "$ac_t""yes" 1>&6
4942 break
4943 else
4944 echo "$ac_t""no" 1>&6
4945 fi
4946 done
4947fi
4948
4949if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4950 for ncn_progname in gcc; do
4951 if test -n "$ncn_target_tool_prefix"; then
4952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 4953set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 4954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4955echo "configure:4956: checking for $ac_word" >&5
2429c060 4956if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 4957 echo $ac_n "(cached) $ac_c" 1>&6
859789af 4958else
2429c060
PB
4959 if test -n "$GCC_FOR_TARGET"; then
4960 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 4961else
cac3d6c4
CM
4962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4963 ac_dummy="$PATH"
4964 for ac_dir in $ac_dummy; do
4965 test -z "$ac_dir" && ac_dir=.
4966 if test -f $ac_dir/$ac_word; then
4967 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4968 break
4969 fi
4970 done
4971 IFS="$ac_save_ifs"
55db4b87
PB
4972fi
4973fi
cac3d6c4 4974GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87 4975if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 4976 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 4977else
cac3d6c4 4978 echo "$ac_t""no" 1>&6
55db4b87
PB
4979fi
4980
2429c060
PB
4981 fi
4982 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 4984set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 4985echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 4986echo "configure:4987: checking for $ac_word" >&5
cac3d6c4
CM
4987if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 4989else
05cbd757
PB
4990 if test -n "$GCC_FOR_TARGET"; then
4991 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 4992else
cac3d6c4
CM
4993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4994 ac_dummy="$PATH"
4995 for ac_dir in $ac_dummy; do
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f $ac_dir/$ac_word; then
4998 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4999 break
5000 fi
5001 done
5002 IFS="$ac_save_ifs"
55db4b87
PB
5003fi
5004fi
cac3d6c4 5005GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
05cbd757 5006if test -n "$GCC_FOR_TARGET"; then
cac3d6c4 5007 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
55db4b87 5008else
cac3d6c4 5009 echo "$ac_t""no" 1>&6
55db4b87 5010fi
cac3d6c4 5011
2429c060
PB
5012 fi
5013 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
5014 done
5015fi
5016
05cbd757
PB
5017if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
5018 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
5019fi
5020
2429c060
PB
5021 if test -n "$with_build_time_tools"; then
5022 for ncn_progname in gcj; do
5023 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5024echo "configure:5025: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5025 if test -x $with_build_time_tools/${ncn_progname}; then
5026 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5027 echo "$ac_t""yes" 1>&6
5028 break
5029 else
5030 echo "$ac_t""no" 1>&6
5031 fi
5032 done
5033fi
5034
5035if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5036 for ncn_progname in gcj; do
5037 if test -n "$ncn_target_tool_prefix"; then
5038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 5039set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5041echo "configure:5042: checking for $ac_word" >&5
cac3d6c4
CM
5042if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
5044else
5045 if test -n "$GCJ_FOR_TARGET"; then
5046 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5047else
cac3d6c4
CM
5048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5049 ac_dummy="$PATH"
5050 for ac_dir in $ac_dummy; do
5051 test -z "$ac_dir" && ac_dir=.
5052 if test -f $ac_dir/$ac_word; then
5053 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5054 break
5055 fi
5056 done
5057 IFS="$ac_save_ifs"
55db4b87
PB
5058fi
5059fi
cac3d6c4 5060GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
55db4b87 5061if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 5062 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 5063else
cac3d6c4 5064 echo "$ac_t""no" 1>&6
55db4b87
PB
5065fi
5066
2429c060
PB
5067 fi
5068 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 5070set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5071echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5072echo "configure:5073: checking for $ac_word" >&5
cac3d6c4
CM
5073if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 5075else
05cbd757
PB
5076 if test -n "$GCJ_FOR_TARGET"; then
5077 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 5078else
cac3d6c4
CM
5079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5080 ac_dummy="$PATH"
5081 for ac_dir in $ac_dummy; do
5082 test -z "$ac_dir" && ac_dir=.
5083 if test -f $ac_dir/$ac_word; then
5084 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5085 break
5086 fi
5087 done
5088 IFS="$ac_save_ifs"
55db4b87
PB
5089fi
5090fi
cac3d6c4 5091GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
05cbd757 5092if test -n "$GCJ_FOR_TARGET"; then
cac3d6c4 5093 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
55db4b87 5094else
cac3d6c4 5095 echo "$ac_t""no" 1>&6
55db4b87 5096fi
cac3d6c4 5097
2429c060
PB
5098 fi
5099 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5100 done
5101fi
5102
05cbd757
PB
5103if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5104 set dummy gcj
5105 if test $build = $target ; then
5106 GCJ_FOR_TARGET="$2"
55db4b87 5107 else
05cbd757 5108 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 5109 fi
55db4b87
PB
5110fi
5111
2429c060
PB
5112 if test -n "$with_build_time_tools"; then
5113 for ncn_progname in gfortran; do
5114 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5115echo "configure:5116: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5116 if test -x $with_build_time_tools/${ncn_progname}; then
5117 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5118 echo "$ac_t""yes" 1>&6
5119 break
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123 done
5124fi
5125
5126if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5127 for ncn_progname in gfortran; do
5128 if test -n "$ncn_target_tool_prefix"; then
5129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 5130set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5131echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5132echo "configure:5133: checking for $ac_word" >&5
cac3d6c4
CM
5133if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87
PB
5135else
5136 if test -n "$GFORTRAN_FOR_TARGET"; then
5137 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5138else
cac3d6c4
CM
5139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5140 ac_dummy="$PATH"
5141 for ac_dir in $ac_dummy; do
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f $ac_dir/$ac_word; then
5144 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5145 break
5146 fi
5147 done
5148 IFS="$ac_save_ifs"
55db4b87
PB
5149fi
5150fi
cac3d6c4 5151GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
55db4b87 5152if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 5153 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 5154else
cac3d6c4 5155 echo "$ac_t""no" 1>&6
55db4b87
PB
5156fi
5157
2429c060
PB
5158 fi
5159 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 5161set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5162echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5163echo "configure:5164: checking for $ac_word" >&5
cac3d6c4
CM
5164if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
55db4b87 5166else
05cbd757
PB
5167 if test -n "$GFORTRAN_FOR_TARGET"; then
5168 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 5169else
cac3d6c4
CM
5170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5171 ac_dummy="$PATH"
5172 for ac_dir in $ac_dummy; do
5173 test -z "$ac_dir" && ac_dir=.
5174 if test -f $ac_dir/$ac_word; then
5175 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5176 break
5177 fi
5178 done
5179 IFS="$ac_save_ifs"
55db4b87
PB
5180fi
5181fi
cac3d6c4 5182GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
05cbd757 5183if test -n "$GFORTRAN_FOR_TARGET"; then
cac3d6c4 5184 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
55db4b87 5185else
cac3d6c4 5186 echo "$ac_t""no" 1>&6
55db4b87 5187fi
cac3d6c4 5188
2429c060
PB
5189 fi
5190 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5191 done
5192fi
5193
05cbd757
PB
5194if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5195 set dummy gfortran
5196 if test $build = $target ; then
5197 GFORTRAN_FOR_TARGET="$2"
55db4b87 5198 else
05cbd757 5199 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 5200 fi
859789af
AC
5201fi
5202
2429c060
PB
5203
5204
5205# The user is always right.
5206if test "${PATH_SEPARATOR+set}" != set; then
5207 echo "#! /bin/sh" >conf$$.sh
5208 echo "exit 0" >>conf$$.sh
5209 chmod +x conf$$.sh
5210 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5211 PATH_SEPARATOR=';'
5212 else
5213 PATH_SEPARATOR=:
5214 fi
5215 rm -f conf$$.sh
5216fi
5217
5218
5219
5220if test "x$exec_prefix" = xNONE; then
5221 if test "x$prefix" = xNONE; then
5222 gcc_cv_tool_prefix=$ac_default_prefix
5223 else
5224 gcc_cv_tool_prefix=$prefix
5225 fi
859789af 5226else
2429c060
PB
5227 gcc_cv_tool_prefix=$exec_prefix
5228fi
5229
5230# If there is no compiler in the tree, use the PATH only. In any
5231# case, if there is no compiler in the tree nobody should use
5232# AS_FOR_TARGET and LD_FOR_TARGET.
5233if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5234 gcc_version=`cat $srcdir/gcc/BASE-VER`
5235 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5236 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5237 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5238 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5239 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5240 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
859789af 5241else
2429c060 5242 gcc_cv_tool_dirs=
859789af 5243fi
2429c060
PB
5244
5245if test x$build = x$target && test -n "$md_exec_prefix"; then
5246 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
859789af 5247fi
2429c060
PB
5248
5249
5250
5251cat > conftest.c << \EOF
5252#ifdef __GNUC__
5253 gcc_yay;
5254#endif
5255EOF
5256if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5257 have_gcc_for_target=yes
859789af 5258else
2429c060
PB
5259 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5260 have_gcc_for_target=no
859789af 5261fi
2429c060
PB
5262rm conftest.c
5263
5264
5265
859789af 5266
2429c060
PB
5267if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5268 if test -n "$with_build_time_tools"; then
3a35eeb3 5269 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5270echo "configure:5271: checking for ar in $with_build_time_tools" >&5
3a35eeb3
PB
5271 if test -x $with_build_time_tools/ar; then
5272 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5273 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5274 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5275 else
5276 echo "$ac_t""no" 1>&6
5277 fi
2429c060
PB
5278 elif test $build != $host && test $have_gcc_for_target = yes; then
5279 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5280 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5281 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 5282 fi
2429c060
PB
5283fi
5284if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5285 # Extract the first word of "ar", so it can be a program name with args.
5286set dummy ar; ac_word=$2
cac3d6c4 5287echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5288echo "configure:5289: checking for $ac_word" >&5
2429c060 5289if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5290 echo $ac_n "(cached) $ac_c" 1>&6
859789af 5291else
2429c060
PB
5292 case "$AR_FOR_TARGET" in
5293 /*)
5294 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5295 ;;
5296 ?:/*)
5297 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5298 ;;
5299 *)
cac3d6c4 5300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2429c060
PB
5301 ac_dummy="$gcc_cv_tool_dirs"
5302 for ac_dir in $ac_dummy; do
cac3d6c4
CM
5303 test -z "$ac_dir" && ac_dir=.
5304 if test -f $ac_dir/$ac_word; then
2429c060 5305 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
cac3d6c4
CM
5306 break
5307 fi
5308 done
5309 IFS="$ac_save_ifs"
2429c060
PB
5310 ;;
5311esac
859789af 5312fi
2429c060
PB
5313AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5314if test -n "$AR_FOR_TARGET"; then
5315 echo "$ac_t""$AR_FOR_TARGET" 1>&6
859789af 5316else
cac3d6c4 5317 echo "$ac_t""no" 1>&6
859789af 5318fi
05cbd757 5319
2429c060
PB
5320fi
5321if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5322 if test -n "$with_build_time_tools"; then
5323 for ncn_progname in ar; do
5324 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5325echo "configure:5326: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5326 if test -x $with_build_time_tools/${ncn_progname}; then
5327 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5328 echo "$ac_t""yes" 1>&6
5329 break
5330 else
5331 echo "$ac_t""no" 1>&6
5332 fi
5333 done
859789af
AC
5334fi
5335
2429c060
PB
5336if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5337 for ncn_progname in ar; do
5338 if test -n "$ncn_target_tool_prefix"; then
5339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 5340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 5341echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5342echo "configure:5343: checking for $ac_word" >&5
2429c060 5343if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5344 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140 5345else
2429c060
PB
5346 if test -n "$AR_FOR_TARGET"; then
5347 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 5348else
cac3d6c4
CM
5349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5350 ac_dummy="$PATH"
5351 for ac_dir in $ac_dummy; do
5352 test -z "$ac_dir" && ac_dir=.
5353 if test -f $ac_dir/$ac_word; then
2429c060 5354 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cac3d6c4
CM
5355 break
5356 fi
5357 done
5358 IFS="$ac_save_ifs"
7e0f7140
GK
5359fi
5360fi
2429c060
PB
5361AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5362if test -n "$AR_FOR_TARGET"; then
5363 echo "$ac_t""$AR_FOR_TARGET" 1>&6
7e0f7140 5364else
cac3d6c4 5365 echo "$ac_t""no" 1>&6
7e0f7140
GK
5366fi
5367
2429c060
PB
5368 fi
5369 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 5371set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 5372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5373echo "configure:5374: checking for $ac_word" >&5
2429c060 5374if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
cac3d6c4 5375 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140 5376else
2429c060
PB
5377 if test -n "$AR_FOR_TARGET"; then
5378 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4
CM
5379else
5380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5381 ac_dummy="$PATH"
5382 for ac_dir in $ac_dummy; do
5383 test -z "$ac_dir" && ac_dir=.
5384 if test -f $ac_dir/$ac_word; then
2429c060 5385 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cac3d6c4
CM
5386 break
5387 fi
5388 done
5389 IFS="$ac_save_ifs"
7e0f7140
GK
5390fi
5391fi
2429c060
PB
5392AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5393if test -n "$AR_FOR_TARGET"; then
5394 echo "$ac_t""$AR_FOR_TARGET" 1>&6
7e0f7140 5395else
cac3d6c4 5396 echo "$ac_t""no" 1>&6
7e0f7140 5397fi
cac3d6c4 5398
2429c060
PB
5399 fi
5400 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5401 done
5402fi
5403
5404if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5405 set dummy ar
7e0f7140 5406 if test $build = $target ; then
2429c060 5407 AR_FOR_TARGET="$2"
7e0f7140 5408 else
2429c060 5409 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
5410 fi
5411fi
5412
3a35eeb3
PB
5413else
5414 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
5415fi
5416
5417
5418
5419
5420if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5421 if test -n "$with_build_time_tools"; then
3a35eeb3 5422 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5423echo "configure:5424: checking for as in $with_build_time_tools" >&5
3a35eeb3
PB
5424 if test -x $with_build_time_tools/as; then
5425 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5426 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5427 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5428 else
5429 echo "$ac_t""no" 1>&6
5430 fi
2429c060
PB
5431 elif test $build != $host && test $have_gcc_for_target = yes; then
5432 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5433 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5434 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5435 fi
5436fi
5437if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5438 # Extract the first word of "as", so it can be a program name with args.
5439set dummy as; ac_word=$2
5440echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5441echo "configure:5442: checking for $ac_word" >&5
2429c060
PB
5442if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5444else
5445 case "$AS_FOR_TARGET" in
5446 /*)
5447 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5448 ;;
5449 ?:/*)
5450 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5451 ;;
5452 *)
5453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5454 ac_dummy="$gcc_cv_tool_dirs"
5455 for ac_dir in $ac_dummy; do
5456 test -z "$ac_dir" && ac_dir=.
5457 if test -f $ac_dir/$ac_word; then
5458 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5459 break
5460 fi
5461 done
5462 IFS="$ac_save_ifs"
5463 ;;
5464esac
5465fi
5466AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5467if test -n "$AS_FOR_TARGET"; then
5468 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5469else
5470 echo "$ac_t""no" 1>&6
5471fi
5472
5473fi
5474if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5475 if test -n "$with_build_time_tools"; then
5476 for ncn_progname in as; do
5477 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5478echo "configure:5479: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5479 if test -x $with_build_time_tools/${ncn_progname}; then
5480 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5481 echo "$ac_t""yes" 1>&6
5482 break
5483 else
5484 echo "$ac_t""no" 1>&6
5485 fi
5486 done
5487fi
5488
5489if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5490 for ncn_progname in as; do
5491 if test -n "$ncn_target_tool_prefix"; then
5492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5493set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5494echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5495echo "configure:5496: checking for $ac_word" >&5
2429c060
PB
5496if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5498else
5499 if test -n "$AS_FOR_TARGET"; then
5500 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5501else
5502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5503 ac_dummy="$PATH"
5504 for ac_dir in $ac_dummy; do
5505 test -z "$ac_dir" && ac_dir=.
5506 if test -f $ac_dir/$ac_word; then
5507 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5508 break
5509 fi
5510 done
5511 IFS="$ac_save_ifs"
5512fi
5513fi
5514AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5515if test -n "$AS_FOR_TARGET"; then
5516 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5517else
5518 echo "$ac_t""no" 1>&6
5519fi
5520
5521 fi
5522 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5524set dummy ${ncn_progname}; ac_word=$2
5525echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5526echo "configure:5527: checking for $ac_word" >&5
2429c060
PB
5527if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5529else
5530 if test -n "$AS_FOR_TARGET"; then
5531 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5532else
5533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5534 ac_dummy="$PATH"
5535 for ac_dir in $ac_dummy; do
5536 test -z "$ac_dir" && ac_dir=.
5537 if test -f $ac_dir/$ac_word; then
5538 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5539 break
5540 fi
5541 done
5542 IFS="$ac_save_ifs"
5543fi
5544fi
5545AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5546if test -n "$AS_FOR_TARGET"; then
5547 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5548else
5549 echo "$ac_t""no" 1>&6
5550fi
5551
5552 fi
5553 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5554 done
5555fi
5556
5557if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5558 set dummy as
5559 if test $build = $target ; then
5560 AS_FOR_TARGET="$2"
5561 else
5562 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5563 fi
5564fi
5565
3a35eeb3
PB
5566else
5567 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
5568fi
5569
5570
5571
5572
5573if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5574 if test -n "$with_build_time_tools"; then
3a35eeb3 5575 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5576echo "configure:5577: checking for dlltool in $with_build_time_tools" >&5
3a35eeb3
PB
5577 if test -x $with_build_time_tools/dlltool; then
5578 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5579 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5580 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5581 else
5582 echo "$ac_t""no" 1>&6
5583 fi
2429c060
PB
5584 elif test $build != $host && test $have_gcc_for_target = yes; then
5585 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5586 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5587 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5588 fi
5589fi
5590if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5591 # Extract the first word of "dlltool", so it can be a program name with args.
5592set dummy dlltool; ac_word=$2
5593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5594echo "configure:5595: checking for $ac_word" >&5
2429c060
PB
5595if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5597else
5598 case "$DLLTOOL_FOR_TARGET" in
5599 /*)
5600 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5601 ;;
5602 ?:/*)
5603 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5604 ;;
5605 *)
5606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5607 ac_dummy="$gcc_cv_tool_dirs"
5608 for ac_dir in $ac_dummy; do
5609 test -z "$ac_dir" && ac_dir=.
5610 if test -f $ac_dir/$ac_word; then
5611 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5612 break
5613 fi
5614 done
5615 IFS="$ac_save_ifs"
5616 ;;
5617esac
5618fi
5619DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5620if test -n "$DLLTOOL_FOR_TARGET"; then
5621 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5622else
5623 echo "$ac_t""no" 1>&6
5624fi
5625
5626fi
5627if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5628 if test -n "$with_build_time_tools"; then
5629 for ncn_progname in dlltool; do
5630 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5631echo "configure:5632: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5632 if test -x $with_build_time_tools/${ncn_progname}; then
5633 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5634 echo "$ac_t""yes" 1>&6
5635 break
5636 else
5637 echo "$ac_t""no" 1>&6
5638 fi
5639 done
5640fi
5641
5642if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5643 for ncn_progname in dlltool; do
5644 if test -n "$ncn_target_tool_prefix"; then
5645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5648echo "configure:5649: checking for $ac_word" >&5
2429c060
PB
5649if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5651else
5652 if test -n "$DLLTOOL_FOR_TARGET"; then
5653 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5654else
5655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5656 ac_dummy="$PATH"
5657 for ac_dir in $ac_dummy; do
5658 test -z "$ac_dir" && ac_dir=.
5659 if test -f $ac_dir/$ac_word; then
5660 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5661 break
5662 fi
5663 done
5664 IFS="$ac_save_ifs"
5665fi
5666fi
5667DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5668if test -n "$DLLTOOL_FOR_TARGET"; then
5669 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5670else
5671 echo "$ac_t""no" 1>&6
5672fi
5673
5674 fi
5675 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5677set dummy ${ncn_progname}; ac_word=$2
5678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5679echo "configure:5680: checking for $ac_word" >&5
2429c060
PB
5680if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5682else
5683 if test -n "$DLLTOOL_FOR_TARGET"; then
5684 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5685else
5686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5687 ac_dummy="$PATH"
5688 for ac_dir in $ac_dummy; do
5689 test -z "$ac_dir" && ac_dir=.
5690 if test -f $ac_dir/$ac_word; then
5691 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5692 break
5693 fi
5694 done
5695 IFS="$ac_save_ifs"
5696fi
5697fi
5698DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5699if test -n "$DLLTOOL_FOR_TARGET"; then
5700 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5701else
5702 echo "$ac_t""no" 1>&6
5703fi
5704
5705 fi
5706 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5707 done
5708fi
5709
5710if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5711 set dummy dlltool
5712 if test $build = $target ; then
5713 DLLTOOL_FOR_TARGET="$2"
5714 else
5715 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5716 fi
5717fi
5718
3a35eeb3
PB
5719else
5720 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
5721fi
5722
5723
5724
5725
5726if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5727 if test -n "$with_build_time_tools"; then
3a35eeb3 5728 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5729echo "configure:5730: checking for ld in $with_build_time_tools" >&5
3a35eeb3
PB
5730 if test -x $with_build_time_tools/ld; then
5731 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5732 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5733 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5734 else
5735 echo "$ac_t""no" 1>&6
5736 fi
2429c060
PB
5737 elif test $build != $host && test $have_gcc_for_target = yes; then
5738 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5739 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5740 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5741 fi
5742fi
5743if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5744 # Extract the first word of "ld", so it can be a program name with args.
5745set dummy ld; ac_word=$2
5746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5747echo "configure:5748: checking for $ac_word" >&5
2429c060
PB
5748if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5750else
5751 case "$LD_FOR_TARGET" in
5752 /*)
5753 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5754 ;;
5755 ?:/*)
5756 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5757 ;;
5758 *)
5759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5760 ac_dummy="$gcc_cv_tool_dirs"
5761 for ac_dir in $ac_dummy; do
5762 test -z "$ac_dir" && ac_dir=.
5763 if test -f $ac_dir/$ac_word; then
5764 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5765 break
5766 fi
5767 done
5768 IFS="$ac_save_ifs"
5769 ;;
5770esac
5771fi
5772LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5773if test -n "$LD_FOR_TARGET"; then
5774 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5775else
5776 echo "$ac_t""no" 1>&6
5777fi
5778
5779fi
5780if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5781 if test -n "$with_build_time_tools"; then
5782 for ncn_progname in ld; do
5783 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5784echo "configure:5785: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5785 if test -x $with_build_time_tools/${ncn_progname}; then
5786 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5787 echo "$ac_t""yes" 1>&6
5788 break
5789 else
5790 echo "$ac_t""no" 1>&6
5791 fi
5792 done
5793fi
5794
5795if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5796 for ncn_progname in ld; do
5797 if test -n "$ncn_target_tool_prefix"; then
5798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5799set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5801echo "configure:5802: checking for $ac_word" >&5
2429c060
PB
5802if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5804else
5805 if test -n "$LD_FOR_TARGET"; then
5806 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5807else
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5809 ac_dummy="$PATH"
5810 for ac_dir in $ac_dummy; do
5811 test -z "$ac_dir" && ac_dir=.
5812 if test -f $ac_dir/$ac_word; then
5813 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5814 break
5815 fi
5816 done
5817 IFS="$ac_save_ifs"
5818fi
5819fi
5820LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5821if test -n "$LD_FOR_TARGET"; then
5822 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5823else
5824 echo "$ac_t""no" 1>&6
5825fi
5826
5827 fi
5828 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5830set dummy ${ncn_progname}; ac_word=$2
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5832echo "configure:5833: checking for $ac_word" >&5
2429c060
PB
5833if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5835else
5836 if test -n "$LD_FOR_TARGET"; then
5837 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5838else
5839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5840 ac_dummy="$PATH"
5841 for ac_dir in $ac_dummy; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f $ac_dir/$ac_word; then
5844 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5845 break
5846 fi
5847 done
5848 IFS="$ac_save_ifs"
5849fi
5850fi
5851LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5852if test -n "$LD_FOR_TARGET"; then
5853 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5854else
5855 echo "$ac_t""no" 1>&6
5856fi
5857
5858 fi
5859 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5860 done
5861fi
5862
5863if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5864 set dummy ld
5865 if test $build = $target ; then
5866 LD_FOR_TARGET="$2"
5867 else
5868 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5869 fi
5870fi
5871
3a35eeb3
PB
5872else
5873 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
5874fi
5875
5876
5877
5878
5879if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5880 if test -n "$with_build_time_tools"; then
3a35eeb3 5881 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5882echo "configure:5883: checking for lipo in $with_build_time_tools" >&5
3a35eeb3
PB
5883 if test -x $with_build_time_tools/lipo; then
5884 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5885 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5886 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5887 else
5888 echo "$ac_t""no" 1>&6
5889 fi
2429c060
PB
5890 elif test $build != $host && test $have_gcc_for_target = yes; then
5891 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5892 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5893 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5894 fi
5895fi
5896if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5897 # Extract the first word of "lipo", so it can be a program name with args.
5898set dummy lipo; ac_word=$2
5899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5900echo "configure:5901: checking for $ac_word" >&5
2429c060
PB
5901if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5903else
5904 case "$LIPO_FOR_TARGET" in
5905 /*)
5906 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5907 ;;
5908 ?:/*)
5909 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5910 ;;
5911 *)
5912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5913 ac_dummy="$gcc_cv_tool_dirs"
5914 for ac_dir in $ac_dummy; do
5915 test -z "$ac_dir" && ac_dir=.
5916 if test -f $ac_dir/$ac_word; then
5917 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5918 break
5919 fi
5920 done
5921 IFS="$ac_save_ifs"
5922 ;;
5923esac
5924fi
5925LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5926if test -n "$LIPO_FOR_TARGET"; then
5927 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5928else
5929 echo "$ac_t""no" 1>&6
5930fi
5931
5932fi
5933if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5934 if test -n "$with_build_time_tools"; then
5935 for ncn_progname in lipo; do
5936 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 5937echo "configure:5938: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
5938 if test -x $with_build_time_tools/${ncn_progname}; then
5939 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
5940 echo "$ac_t""yes" 1>&6
5941 break
5942 else
5943 echo "$ac_t""no" 1>&6
5944 fi
5945 done
5946fi
5947
5948if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5949 for ncn_progname in lipo; do
5950 if test -n "$ncn_target_tool_prefix"; then
5951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5952set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5954echo "configure:5955: checking for $ac_word" >&5
2429c060
PB
5955if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5957else
5958 if test -n "$LIPO_FOR_TARGET"; then
5959 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5960else
5961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5962 ac_dummy="$PATH"
5963 for ac_dir in $ac_dummy; do
5964 test -z "$ac_dir" && ac_dir=.
5965 if test -f $ac_dir/$ac_word; then
5966 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5967 break
5968 fi
5969 done
5970 IFS="$ac_save_ifs"
5971fi
5972fi
5973LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5974if test -n "$LIPO_FOR_TARGET"; then
5975 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5976else
5977 echo "$ac_t""no" 1>&6
5978fi
5979
5980 fi
5981 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5983set dummy ${ncn_progname}; ac_word=$2
5984echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 5985echo "configure:5986: checking for $ac_word" >&5
2429c060
PB
5986if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5988else
5989 if test -n "$LIPO_FOR_TARGET"; then
5990 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5991else
5992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5993 ac_dummy="$PATH"
5994 for ac_dir in $ac_dummy; do
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f $ac_dir/$ac_word; then
5997 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5998 break
5999 fi
6000 done
6001 IFS="$ac_save_ifs"
6002fi
6003fi
6004LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
6005if test -n "$LIPO_FOR_TARGET"; then
6006 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6007else
6008 echo "$ac_t""no" 1>&6
6009fi
6010
6011 fi
6012 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6013 done
6014fi
6015
6016if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6017 set dummy lipo
6018 if test $build = $target ; then
6019 LIPO_FOR_TARGET="$2"
6020 else
6021 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
6022 fi
6023fi
6024
3a35eeb3
PB
6025else
6026 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
6027fi
6028
6029
6030
6031
6032if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6033 if test -n "$with_build_time_tools"; then
3a35eeb3 6034 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6035echo "configure:6036: checking for nm in $with_build_time_tools" >&5
3a35eeb3
PB
6036 if test -x $with_build_time_tools/nm; then
6037 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
6038 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6039 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6040 else
6041 echo "$ac_t""no" 1>&6
6042 fi
2429c060
PB
6043 elif test $build != $host && test $have_gcc_for_target = yes; then
6044 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
6045 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
6046 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6047 fi
6048fi
6049if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6050 # Extract the first word of "nm", so it can be a program name with args.
6051set dummy nm; ac_word=$2
6052echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6053echo "configure:6054: checking for $ac_word" >&5
2429c060
PB
6054if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6056else
6057 case "$NM_FOR_TARGET" in
6058 /*)
6059 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
6060 ;;
6061 ?:/*)
6062 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6063 ;;
6064 *)
6065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6066 ac_dummy="$gcc_cv_tool_dirs"
6067 for ac_dir in $ac_dummy; do
6068 test -z "$ac_dir" && ac_dir=.
6069 if test -f $ac_dir/$ac_word; then
6070 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
6071 break
6072 fi
6073 done
6074 IFS="$ac_save_ifs"
6075 ;;
6076esac
6077fi
6078NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6079if test -n "$NM_FOR_TARGET"; then
6080 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6081else
6082 echo "$ac_t""no" 1>&6
6083fi
6084
6085fi
6086if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6087 if test -n "$with_build_time_tools"; then
6088 for ncn_progname in nm; do
6089 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6090echo "configure:6091: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
6091 if test -x $with_build_time_tools/${ncn_progname}; then
6092 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6093 echo "$ac_t""yes" 1>&6
6094 break
6095 else
6096 echo "$ac_t""no" 1>&6
6097 fi
6098 done
6099fi
6100
6101if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6102 for ncn_progname in nm; do
6103 if test -n "$ncn_target_tool_prefix"; then
6104 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 6105set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6106echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6107echo "configure:6108: checking for $ac_word" >&5
cac3d6c4
CM
6108if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6110else
55db4b87
PB
6111 if test -n "$NM_FOR_TARGET"; then
6112 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 6113else
cac3d6c4
CM
6114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6115 ac_dummy="$PATH"
6116 for ac_dir in $ac_dummy; do
6117 test -z "$ac_dir" && ac_dir=.
6118 if test -f $ac_dir/$ac_word; then
6119 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6120 break
6121 fi
6122 done
6123 IFS="$ac_save_ifs"
859789af
AC
6124fi
6125fi
cac3d6c4 6126NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
55db4b87 6127if test -n "$NM_FOR_TARGET"; then
cac3d6c4 6128 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 6129else
cac3d6c4 6130 echo "$ac_t""no" 1>&6
859789af
AC
6131fi
6132
2429c060
PB
6133 fi
6134 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6136set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6137echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6138echo "configure:6139: checking for $ac_word" >&5
cac3d6c4
CM
6139if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6141else
05cbd757
PB
6142 if test -n "$NM_FOR_TARGET"; then
6143 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 6144else
cac3d6c4
CM
6145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6146 ac_dummy="$PATH"
6147 for ac_dir in $ac_dummy; do
6148 test -z "$ac_dir" && ac_dir=.
6149 if test -f $ac_dir/$ac_word; then
6150 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6151 break
6152 fi
6153 done
6154 IFS="$ac_save_ifs"
859789af
AC
6155fi
6156fi
cac3d6c4 6157NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
05cbd757 6158if test -n "$NM_FOR_TARGET"; then
cac3d6c4 6159 echo "$ac_t""$NM_FOR_TARGET" 1>&6
859789af 6160else
cac3d6c4 6161 echo "$ac_t""no" 1>&6
859789af 6162fi
cac3d6c4 6163
2429c060
PB
6164 fi
6165 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6166 done
6167fi
6168
05cbd757
PB
6169if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6170 set dummy nm
6171 if test $build = $target ; then
6172 NM_FOR_TARGET="$2"
859789af 6173 else
05cbd757 6174 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 6175 fi
859789af
AC
6176fi
6177
3a35eeb3
PB
6178else
6179 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
6180fi
6181
6182
6183
6184
6185if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6186 if test -n "$with_build_time_tools"; then
3a35eeb3 6187 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6188echo "configure:6189: checking for objdump in $with_build_time_tools" >&5
3a35eeb3
PB
6189 if test -x $with_build_time_tools/objdump; then
6190 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6191 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6192 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6193 else
6194 echo "$ac_t""no" 1>&6
6195 fi
2429c060
PB
6196 elif test $build != $host && test $have_gcc_for_target = yes; then
6197 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6198 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6199 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6200 fi
6201fi
6202if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6203 # Extract the first word of "objdump", so it can be a program name with args.
6204set dummy objdump; ac_word=$2
6205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6206echo "configure:6207: checking for $ac_word" >&5
2429c060
PB
6207if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6209else
6210 case "$OBJDUMP_FOR_TARGET" in
6211 /*)
6212 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6213 ;;
6214 ?:/*)
6215 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6216 ;;
6217 *)
6218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6219 ac_dummy="$gcc_cv_tool_dirs"
6220 for ac_dir in $ac_dummy; do
6221 test -z "$ac_dir" && ac_dir=.
6222 if test -f $ac_dir/$ac_word; then
6223 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6224 break
6225 fi
6226 done
6227 IFS="$ac_save_ifs"
6228 ;;
6229esac
6230fi
6231OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6232if test -n "$OBJDUMP_FOR_TARGET"; then
6233 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6234else
6235 echo "$ac_t""no" 1>&6
6236fi
6237
6238fi
6239if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6240 if test -n "$with_build_time_tools"; then
6241 for ncn_progname in objdump; do
6242 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6243echo "configure:6244: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
6244 if test -x $with_build_time_tools/${ncn_progname}; then
6245 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6246 echo "$ac_t""yes" 1>&6
6247 break
6248 else
6249 echo "$ac_t""no" 1>&6
6250 fi
6251 done
6252fi
6253
6254if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6255 for ncn_progname in objdump; do
6256 if test -n "$ncn_target_tool_prefix"; then
6257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6258set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6260echo "configure:6261: checking for $ac_word" >&5
5ae72758
DJ
6261if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6263else
6264 if test -n "$OBJDUMP_FOR_TARGET"; then
6265 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6266else
6267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6268 ac_dummy="$PATH"
6269 for ac_dir in $ac_dummy; do
6270 test -z "$ac_dir" && ac_dir=.
6271 if test -f $ac_dir/$ac_word; then
6272 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6273 break
6274 fi
6275 done
6276 IFS="$ac_save_ifs"
6277fi
6278fi
6279OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6280if test -n "$OBJDUMP_FOR_TARGET"; then
6281 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6282else
6283 echo "$ac_t""no" 1>&6
6284fi
6285
2429c060
PB
6286 fi
6287 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758
DJ
6289set dummy ${ncn_progname}; ac_word=$2
6290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6291echo "configure:6292: checking for $ac_word" >&5
5ae72758
DJ
6292if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6294else
6295 if test -n "$OBJDUMP_FOR_TARGET"; then
6296 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6297else
6298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6299 ac_dummy="$PATH"
6300 for ac_dir in $ac_dummy; do
6301 test -z "$ac_dir" && ac_dir=.
6302 if test -f $ac_dir/$ac_word; then
6303 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6304 break
6305 fi
6306 done
6307 IFS="$ac_save_ifs"
6308fi
6309fi
6310OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6311if test -n "$OBJDUMP_FOR_TARGET"; then
6312 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6313else
6314 echo "$ac_t""no" 1>&6
6315fi
6316
2429c060
PB
6317 fi
6318 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6319 done
6320fi
6321
5ae72758
DJ
6322if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6323 set dummy objdump
6324 if test $build = $target ; then
6325 OBJDUMP_FOR_TARGET="$2"
6326 else
6327 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6328 fi
6329fi
6330
3a35eeb3
PB
6331else
6332 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
6333fi
6334
6335
6336
6337
6338if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6339 if test -n "$with_build_time_tools"; then
3a35eeb3 6340 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6341echo "configure:6342: checking for ranlib in $with_build_time_tools" >&5
3a35eeb3
PB
6342 if test -x $with_build_time_tools/ranlib; then
6343 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6344 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6345 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6348 fi
2429c060
PB
6349 elif test $build != $host && test $have_gcc_for_target = yes; then
6350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6351 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6352 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6353 fi
6354fi
6355if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6356 # Extract the first word of "ranlib", so it can be a program name with args.
6357set dummy ranlib; ac_word=$2
6358echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6359echo "configure:6360: checking for $ac_word" >&5
2429c060
PB
6360if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6362else
6363 case "$RANLIB_FOR_TARGET" in
6364 /*)
6365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6366 ;;
6367 ?:/*)
6368 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6369 ;;
6370 *)
6371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6372 ac_dummy="$gcc_cv_tool_dirs"
6373 for ac_dir in $ac_dummy; do
6374 test -z "$ac_dir" && ac_dir=.
6375 if test -f $ac_dir/$ac_word; then
6376 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6377 break
6378 fi
6379 done
6380 IFS="$ac_save_ifs"
6381 ;;
6382esac
6383fi
6384RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6385if test -n "$RANLIB_FOR_TARGET"; then
6386 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6387else
6388 echo "$ac_t""no" 1>&6
6389fi
6390
6391fi
6392if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6393 if test -n "$with_build_time_tools"; then
6394 for ncn_progname in ranlib; do
6395 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6396echo "configure:6397: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
6397 if test -x $with_build_time_tools/${ncn_progname}; then
6398 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6399 echo "$ac_t""yes" 1>&6
6400 break
6401 else
6402 echo "$ac_t""no" 1>&6
6403 fi
6404 done
6405fi
6406
6407if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6408 for ncn_progname in ranlib; do
6409 if test -n "$ncn_target_tool_prefix"; then
6410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758
DJ
6411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6413echo "configure:6414: checking for $ac_word" >&5
cac3d6c4
CM
6414if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6416else
55db4b87
PB
6417 if test -n "$RANLIB_FOR_TARGET"; then
6418 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 6419else
cac3d6c4
CM
6420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6421 ac_dummy="$PATH"
6422 for ac_dir in $ac_dummy; do
6423 test -z "$ac_dir" && ac_dir=.
6424 if test -f $ac_dir/$ac_word; then
6425 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6426 break
6427 fi
6428 done
6429 IFS="$ac_save_ifs"
859789af
AC
6430fi
6431fi
cac3d6c4 6432RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
55db4b87 6433if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 6434 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 6435else
cac3d6c4 6436 echo "$ac_t""no" 1>&6
859789af
AC
6437fi
6438
2429c060
PB
6439 fi
6440 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6442set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6443echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6444echo "configure:6445: checking for $ac_word" >&5
cac3d6c4
CM
6445if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6447else
05cbd757
PB
6448 if test -n "$RANLIB_FOR_TARGET"; then
6449 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 6450else
cac3d6c4
CM
6451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6452 ac_dummy="$PATH"
6453 for ac_dir in $ac_dummy; do
6454 test -z "$ac_dir" && ac_dir=.
6455 if test -f $ac_dir/$ac_word; then
6456 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6457 break
6458 fi
6459 done
6460 IFS="$ac_save_ifs"
859789af
AC
6461fi
6462fi
cac3d6c4 6463RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
05cbd757 6464if test -n "$RANLIB_FOR_TARGET"; then
cac3d6c4 6465 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
859789af 6466else
cac3d6c4 6467 echo "$ac_t""no" 1>&6
859789af 6468fi
cac3d6c4 6469
2429c060
PB
6470 fi
6471 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6472 done
6473fi
6474
6475if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6476 set dummy ranlib
6477 if test $build = $target ; then
6478 RANLIB_FOR_TARGET="$2"
6479 else
6480 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 6481 fi
2429c060 6482fi
05cbd757 6483
3a35eeb3
PB
6484else
6485 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
6486fi
6487
2429c060
PB
6488
6489
6490
6491if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6492 if test -n "$with_build_time_tools"; then
3a35eeb3 6493 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6494echo "configure:6495: checking for strip in $with_build_time_tools" >&5
3a35eeb3
PB
6495 if test -x $with_build_time_tools/strip; then
6496 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6497 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6498 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6499 else
6500 echo "$ac_t""no" 1>&6
6501 fi
2429c060
PB
6502 elif test $build != $host && test $have_gcc_for_target = yes; then
6503 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6504 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6505 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6506 fi
6507fi
6508if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6509 # Extract the first word of "strip", so it can be a program name with args.
6510set dummy strip; ac_word=$2
6511echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6512echo "configure:6513: checking for $ac_word" >&5
2429c060
PB
6513if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515else
6516 case "$STRIP_FOR_TARGET" in
6517 /*)
6518 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6519 ;;
6520 ?:/*)
6521 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6522 ;;
6523 *)
6524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6525 ac_dummy="$gcc_cv_tool_dirs"
6526 for ac_dir in $ac_dummy; do
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/$ac_word; then
6529 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6530 break
6531 fi
6532 done
6533 IFS="$ac_save_ifs"
6534 ;;
6535esac
6536fi
6537STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6538if test -n "$STRIP_FOR_TARGET"; then
6539 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6540else
6541 echo "$ac_t""no" 1>&6
6542fi
6543
6544fi
6545if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6546 if test -n "$with_build_time_tools"; then
6547 for ncn_progname in strip; do
6548 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6549echo "configure:6550: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
6550 if test -x $with_build_time_tools/${ncn_progname}; then
6551 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6552 echo "$ac_t""yes" 1>&6
6553 break
6554 else
6555 echo "$ac_t""no" 1>&6
6556 fi
6557 done
6558fi
6559
6560if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6561 for ncn_progname in strip; do
6562 if test -n "$ncn_target_tool_prefix"; then
6563 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 6564set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6565echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6566echo "configure:6567: checking for $ac_word" >&5
cac3d6c4
CM
6567if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
6569else
6570 if test -n "$STRIP_FOR_TARGET"; then
6571 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6572else
cac3d6c4
CM
6573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6574 ac_dummy="$PATH"
6575 for ac_dir in $ac_dummy; do
6576 test -z "$ac_dir" && ac_dir=.
6577 if test -f $ac_dir/$ac_word; then
6578 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6579 break
6580 fi
6581 done
6582 IFS="$ac_save_ifs"
7e0f7140
GK
6583fi
6584fi
cac3d6c4 6585STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 6586if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 6587 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 6588else
cac3d6c4 6589 echo "$ac_t""no" 1>&6
7e0f7140
GK
6590fi
6591
2429c060
PB
6592 fi
6593 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 6595set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6596echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6597echo "configure:6598: checking for $ac_word" >&5
cac3d6c4
CM
6598if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
7e0f7140
GK
6600else
6601 if test -n "$STRIP_FOR_TARGET"; then
6602 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6603else
cac3d6c4
CM
6604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6605 ac_dummy="$PATH"
6606 for ac_dir in $ac_dummy; do
6607 test -z "$ac_dir" && ac_dir=.
6608 if test -f $ac_dir/$ac_word; then
6609 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6610 break
6611 fi
6612 done
6613 IFS="$ac_save_ifs"
7e0f7140
GK
6614fi
6615fi
cac3d6c4 6616STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140 6617if test -n "$STRIP_FOR_TARGET"; then
cac3d6c4 6618 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
7e0f7140 6619else
cac3d6c4 6620 echo "$ac_t""no" 1>&6
7e0f7140 6621fi
cac3d6c4 6622
2429c060
PB
6623 fi
6624 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6625 done
6626fi
6627
7e0f7140
GK
6628if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6629 set dummy strip
6630 if test $build = $target ; then
6631 STRIP_FOR_TARGET="$2"
6632 else
6633 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6634 fi
6635fi
6636
3a35eeb3
PB
6637else
6638 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
6639fi
6640
6641
6642
6643
6644if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6645 if test -n "$with_build_time_tools"; then
3a35eeb3 6646 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6647echo "configure:6648: checking for windres in $with_build_time_tools" >&5
3a35eeb3
PB
6648 if test -x $with_build_time_tools/windres; then
6649 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6650 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6651 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6652 else
6653 echo "$ac_t""no" 1>&6
6654 fi
2429c060
PB
6655 elif test $build != $host && test $have_gcc_for_target = yes; then
6656 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6657 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6658 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6659 fi
6660fi
6661if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6662 # Extract the first word of "windres", so it can be a program name with args.
6663set dummy windres; ac_word=$2
6664echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6665echo "configure:6666: checking for $ac_word" >&5
2429c060
PB
6666if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668else
6669 case "$WINDRES_FOR_TARGET" in
6670 /*)
6671 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6672 ;;
6673 ?:/*)
6674 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6675 ;;
6676 *)
6677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6678 ac_dummy="$gcc_cv_tool_dirs"
6679 for ac_dir in $ac_dummy; do
6680 test -z "$ac_dir" && ac_dir=.
6681 if test -f $ac_dir/$ac_word; then
6682 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6683 break
6684 fi
6685 done
6686 IFS="$ac_save_ifs"
6687 ;;
6688esac
6689fi
6690WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6691if test -n "$WINDRES_FOR_TARGET"; then
6692 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6693else
6694 echo "$ac_t""no" 1>&6
6695fi
6696
6697fi
6698if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6699 if test -n "$with_build_time_tools"; then
6700 for ncn_progname in windres; do
6701 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
f86e35b8 6702echo "configure:6703: checking for ${ncn_progname} in $with_build_time_tools" >&5
3a35eeb3
PB
6703 if test -x $with_build_time_tools/${ncn_progname}; then
6704 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2429c060
PB
6705 echo "$ac_t""yes" 1>&6
6706 break
6707 else
6708 echo "$ac_t""no" 1>&6
6709 fi
6710 done
6711fi
6712
6713if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6714 for ncn_progname in windres; do
6715 if test -n "$ncn_target_tool_prefix"; then
6716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6717set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cac3d6c4 6718echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6719echo "configure:6720: checking for $ac_word" >&5
cac3d6c4
CM
6720if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6722else
55db4b87
PB
6723 if test -n "$WINDRES_FOR_TARGET"; then
6724 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 6725else
cac3d6c4
CM
6726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6727 ac_dummy="$PATH"
6728 for ac_dir in $ac_dummy; do
6729 test -z "$ac_dir" && ac_dir=.
6730 if test -f $ac_dir/$ac_word; then
6731 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6732 break
6733 fi
6734 done
6735 IFS="$ac_save_ifs"
859789af
AC
6736fi
6737fi
cac3d6c4 6738WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
55db4b87 6739if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 6740 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 6741else
cac3d6c4 6742 echo "$ac_t""no" 1>&6
859789af
AC
6743fi
6744
2429c060
PB
6745 fi
6746 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6748set dummy ${ncn_progname}; ac_word=$2
cac3d6c4 6749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f86e35b8 6750echo "configure:6751: checking for $ac_word" >&5
cac3d6c4
CM
6751if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
859789af 6753else
05cbd757
PB
6754 if test -n "$WINDRES_FOR_TARGET"; then
6755 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 6756else
cac3d6c4
CM
6757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6758 ac_dummy="$PATH"
6759 for ac_dir in $ac_dummy; do
6760 test -z "$ac_dir" && ac_dir=.
6761 if test -f $ac_dir/$ac_word; then
6762 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6763 break
6764 fi
6765 done
6766 IFS="$ac_save_ifs"
859789af
AC
6767fi
6768fi
cac3d6c4 6769WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
05cbd757 6770if test -n "$WINDRES_FOR_TARGET"; then
cac3d6c4 6771 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
859789af 6772else
cac3d6c4 6773 echo "$ac_t""no" 1>&6
859789af 6774fi
cac3d6c4 6775
2429c060
PB
6776 fi
6777 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6778 done
6779fi
6780
05cbd757
PB
6781if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6782 set dummy windres
6783 if test $build = $target ; then
6784 WINDRES_FOR_TARGET="$2"
859789af 6785 else
05cbd757 6786 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 6787 fi
859789af
AC
6788fi
6789
3a35eeb3
PB
6790else
6791 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
6792fi
6793
852e5f18 6794
be01d343
PB
6795RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6796
6797echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
f86e35b8 6798echo "configure:6799: checking where to find the target ar" >&5
be01d343 6799if test "x${build}" != "x${host}" ; then
2429c060
PB
6800 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6801 # We already found the complete path
6802 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6803 else
6804 # Canadian cross, just use what we found
6805 echo "$ac_t""pre-installed" 1>&6
6806 fi
be01d343
PB
6807else
6808 ok=yes
6809 case " ${configdirs} " in
6810 *" binutils "*) ;;
6811 *) ok=no ;;
6812 esac
6813
6814 if test $ok = yes; then
6815 # An in-tree tool is available and we can use it
6816 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6817 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6818 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6819 # We already found the complete path
6820 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
be01d343
PB
6821 elif test "x$target" = "x$host"; then
6822 # We can use an host tool
6823 AR_FOR_TARGET='$(AR)'
6824 echo "$ac_t""host tool" 1>&6
6825 else
6826 # We need a cross tool
6827 echo "$ac_t""pre-installed" 1>&6
6828 fi
6829fi
6830echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
f86e35b8 6831echo "configure:6832: checking where to find the target as" >&5
be01d343 6832if test "x${build}" != "x${host}" ; then
2429c060
PB
6833 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6834 # We already found the complete path
6835 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6836 else
6837 # Canadian cross, just use what we found
6838 echo "$ac_t""pre-installed" 1>&6
6839 fi
be01d343
PB
6840else
6841 ok=yes
6842 case " ${configdirs} " in
6843 *" gas "*) ;;
6844 *) ok=no ;;
6845 esac
6846
6847 if test $ok = yes; then
6848 # An in-tree tool is available and we can use it
6849 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6850 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6851 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6852 # We already found the complete path
6853 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
be01d343
PB
6854 elif test "x$target" = "x$host"; then
6855 # We can use an host tool
6856 AS_FOR_TARGET='$(AS)'
6857 echo "$ac_t""host tool" 1>&6
6858 else
6859 # We need a cross tool
6860 echo "$ac_t""pre-installed" 1>&6
6861 fi
6862fi
6863echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
f86e35b8 6864echo "configure:6865: checking where to find the target cc" >&5
be01d343 6865if test "x${build}" != "x${host}" ; then
2429c060
PB
6866 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6867 # We already found the complete path
6868 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6869 else
6870 # Canadian cross, just use what we found
6871 echo "$ac_t""pre-installed" 1>&6
6872 fi
be01d343
PB
6873else
6874 ok=yes
6875 case " ${configdirs} " in
6876 *" gcc "*) ;;
6877 *) ok=no ;;
6878 esac
6879
6880 if test $ok = yes; then
6881 # An in-tree tool is available and we can use it
6882 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6883 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6884 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6885 # We already found the complete path
6886 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
be01d343
PB
6887 elif test "x$target" = "x$host"; then
6888 # We can use an host tool
6889 CC_FOR_TARGET='$(CC)'
6890 echo "$ac_t""host tool" 1>&6
6891 else
6892 # We need a cross tool
6893 echo "$ac_t""pre-installed" 1>&6
6894 fi
6895fi
6896echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
f86e35b8 6897echo "configure:6898: checking where to find the target c++" >&5
be01d343 6898if test "x${build}" != "x${host}" ; then
2429c060
PB
6899 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6900 # We already found the complete path
6901 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6902 else
6903 # Canadian cross, just use what we found
6904 echo "$ac_t""pre-installed" 1>&6
6905 fi
be01d343
PB
6906else
6907 ok=yes
6908 case " ${configdirs} " in
6909 *" gcc "*) ;;
6910 *) ok=no ;;
6911 esac
6912 case ,${enable_languages}, in
6913 *,c++,*) ;;
6914 *) ok=no ;;
6915 esac
6916 if test $ok = yes; then
6917 # An in-tree tool is available and we can use it
6918 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6919 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6920 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6921 # We already found the complete path
6922 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
be01d343
PB
6923 elif test "x$target" = "x$host"; then
6924 # We can use an host tool
6925 CXX_FOR_TARGET='$(CXX)'
6926 echo "$ac_t""host tool" 1>&6
6927 else
6928 # We need a cross tool
6929 echo "$ac_t""pre-installed" 1>&6
6930 fi
6931fi
6932echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
f86e35b8 6933echo "configure:6934: checking where to find the target c++ for libstdc++" >&5
be01d343 6934if test "x${build}" != "x${host}" ; then
2429c060
PB
6935 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6936 # We already found the complete path
6937 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6938 else
6939 # Canadian cross, just use what we found
6940 echo "$ac_t""pre-installed" 1>&6
6941 fi
be01d343
PB
6942else
6943 ok=yes
6944 case " ${configdirs} " in
6945 *" gcc "*) ;;
6946 *) ok=no ;;
6947 esac
6948 case ,${enable_languages}, in
6949 *,c++,*) ;;
6950 *) ok=no ;;
6951 esac
6952 if test $ok = yes; then
6953 # An in-tree tool is available and we can use it
6954 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6955 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6956 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6957 # We already found the complete path
6958 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
be01d343
PB
6959 elif test "x$target" = "x$host"; then
6960 # We can use an host tool
6961 RAW_CXX_FOR_TARGET='$(CXX)'
6962 echo "$ac_t""host tool" 1>&6
6963 else
6964 # We need a cross tool
6965 echo "$ac_t""pre-installed" 1>&6
6966 fi
6967fi
6968echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
f86e35b8 6969echo "configure:6970: checking where to find the target dlltool" >&5
be01d343 6970if test "x${build}" != "x${host}" ; then
2429c060
PB
6971 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6974 else
6975 # Canadian cross, just use what we found
6976 echo "$ac_t""pre-installed" 1>&6
6977 fi
be01d343
PB
6978else
6979 ok=yes
6980 case " ${configdirs} " in
6981 *" binutils "*) ;;
6982 *) ok=no ;;
6983 esac
6984
6985 if test $ok = yes; then
6986 # An in-tree tool is available and we can use it
6987 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6988 echo "$ac_t""just compiled" 1>&6
2429c060
PB
6989 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6990 # We already found the complete path
6991 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
be01d343
PB
6992 elif test "x$target" = "x$host"; then
6993 # We can use an host tool
6994 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6995 echo "$ac_t""host tool" 1>&6
6996 else
6997 # We need a cross tool
6998 echo "$ac_t""pre-installed" 1>&6
6999 fi
7000fi
7001echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
f86e35b8 7002echo "configure:7003: checking where to find the target gcc" >&5
be01d343 7003if test "x${build}" != "x${host}" ; then
2429c060
PB
7004 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7005 # We already found the complete path
7006 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7007 else
7008 # Canadian cross, just use what we found
7009 echo "$ac_t""pre-installed" 1>&6
7010 fi
be01d343
PB
7011else
7012 ok=yes
7013 case " ${configdirs} " in
7014 *" gcc "*) ;;
7015 *) ok=no ;;
7016 esac
7017
7018 if test $ok = yes; then
7019 # An in-tree tool is available and we can use it
7020 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7021 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7022 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7023 # We already found the complete path
7024 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
be01d343
PB
7025 elif test "x$target" = "x$host"; then
7026 # We can use an host tool
7027 GCC_FOR_TARGET='$()'
7028 echo "$ac_t""host tool" 1>&6
7029 else
7030 # We need a cross tool
7031 echo "$ac_t""pre-installed" 1>&6
7032 fi
7033fi
7034echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
f86e35b8 7035echo "configure:7036: checking where to find the target gcj" >&5
be01d343 7036if test "x${build}" != "x${host}" ; then
2429c060
PB
7037 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7040 else
7041 # Canadian cross, just use what we found
7042 echo "$ac_t""pre-installed" 1>&6
7043 fi
be01d343
PB
7044else
7045 ok=yes
7046 case " ${configdirs} " in
7047 *" gcc "*) ;;
7048 *) ok=no ;;
7049 esac
7050 case ,${enable_languages}, in
7051 *,java,*) ;;
7052 *) ok=no ;;
7053 esac
7054 if test $ok = yes; then
7055 # An in-tree tool is available and we can use it
7056 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7057 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7058 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7059 # We already found the complete path
7060 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
be01d343
PB
7061 elif test "x$target" = "x$host"; then
7062 # We can use an host tool
7063 GCJ_FOR_TARGET='$(GCJ)'
7064 echo "$ac_t""host tool" 1>&6
7065 else
7066 # We need a cross tool
7067 echo "$ac_t""pre-installed" 1>&6
7068 fi
7069fi
7070echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
f86e35b8 7071echo "configure:7072: checking where to find the target gfortran" >&5
be01d343 7072if test "x${build}" != "x${host}" ; then
2429c060
PB
7073 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7074 # We already found the complete path
7075 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7076 else
7077 # Canadian cross, just use what we found
7078 echo "$ac_t""pre-installed" 1>&6
7079 fi
be01d343
PB
7080else
7081 ok=yes
7082 case " ${configdirs} " in
7083 *" gcc "*) ;;
7084 *) ok=no ;;
7085 esac
7086 case ,${enable_languages}, in
7087 *,fortran,*) ;;
7088 *) ok=no ;;
7089 esac
7090 if test $ok = yes; then
7091 # An in-tree tool is available and we can use it
7092 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7093 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7094 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7095 # We already found the complete path
7096 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
be01d343
PB
7097 elif test "x$target" = "x$host"; then
7098 # We can use an host tool
7099 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7100 echo "$ac_t""host tool" 1>&6
7101 else
7102 # We need a cross tool
7103 echo "$ac_t""pre-installed" 1>&6
7104 fi
7105fi
7106echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
f86e35b8 7107echo "configure:7108: checking where to find the target ld" >&5
be01d343 7108if test "x${build}" != "x${host}" ; then
2429c060
PB
7109 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7110 # We already found the complete path
7111 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7112 else
7113 # Canadian cross, just use what we found
7114 echo "$ac_t""pre-installed" 1>&6
7115 fi
be01d343
PB
7116else
7117 ok=yes
7118 case " ${configdirs} " in
7119 *" ld "*) ;;
7120 *) ok=no ;;
7121 esac
7122
7123 if test $ok = yes; then
7124 # An in-tree tool is available and we can use it
7125 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7126 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7127 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7128 # We already found the complete path
7129 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
be01d343
PB
7130 elif test "x$target" = "x$host"; then
7131 # We can use an host tool
7132 LD_FOR_TARGET='$(LD)'
7133 echo "$ac_t""host tool" 1>&6
7134 else
7135 # We need a cross tool
7136 echo "$ac_t""pre-installed" 1>&6
7137 fi
7138fi
7139echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
f86e35b8 7140echo "configure:7141: checking where to find the target lipo" >&5
be01d343 7141if test "x${build}" != "x${host}" ; then
2429c060
PB
7142 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7143 # We already found the complete path
7144 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7145 else
7146 # Canadian cross, just use what we found
7147 echo "$ac_t""pre-installed" 1>&6
7148 fi
be01d343 7149else
2429c060
PB
7150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7151 # We already found the complete path
7152 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7153 elif test "x$target" = "x$host"; then
be01d343
PB
7154 # We can use an host tool
7155 LIPO_FOR_TARGET='$(LIPO)'
7156 echo "$ac_t""host tool" 1>&6
7157 else
7158 # We need a cross tool
7159 echo "$ac_t""pre-installed" 1>&6
7160 fi
7161fi
7162echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
f86e35b8 7163echo "configure:7164: checking where to find the target nm" >&5
be01d343 7164if test "x${build}" != "x${host}" ; then
2429c060
PB
7165 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7166 # We already found the complete path
7167 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7168 else
7169 # Canadian cross, just use what we found
7170 echo "$ac_t""pre-installed" 1>&6
7171 fi
be01d343
PB
7172else
7173 ok=yes
7174 case " ${configdirs} " in
7175 *" binutils "*) ;;
7176 *) ok=no ;;
7177 esac
7178
7179 if test $ok = yes; then
7180 # An in-tree tool is available and we can use it
7181 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7182 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7183 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7184 # We already found the complete path
7185 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
be01d343
PB
7186 elif test "x$target" = "x$host"; then
7187 # We can use an host tool
7188 NM_FOR_TARGET='$(NM)'
7189 echo "$ac_t""host tool" 1>&6
7190 else
7191 # We need a cross tool
7192 echo "$ac_t""pre-installed" 1>&6
7193 fi
7194fi
7195echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
f86e35b8 7196echo "configure:7197: checking where to find the target objdump" >&5
be01d343 7197if test "x${build}" != "x${host}" ; then
2429c060
PB
7198 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7199 # We already found the complete path
7200 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7201 else
7202 # Canadian cross, just use what we found
7203 echo "$ac_t""pre-installed" 1>&6
7204 fi
be01d343
PB
7205else
7206 ok=yes
7207 case " ${configdirs} " in
7208 *" binutils "*) ;;
7209 *) ok=no ;;
7210 esac
7211
7212 if test $ok = yes; then
7213 # An in-tree tool is available and we can use it
7214 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7215 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7216 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7217 # We already found the complete path
7218 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
be01d343
PB
7219 elif test "x$target" = "x$host"; then
7220 # We can use an host tool
7221 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7222 echo "$ac_t""host tool" 1>&6
7223 else
7224 # We need a cross tool
7225 echo "$ac_t""pre-installed" 1>&6
7226 fi
7227fi
7228echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
f86e35b8 7229echo "configure:7230: checking where to find the target ranlib" >&5
be01d343 7230if test "x${build}" != "x${host}" ; then
2429c060
PB
7231 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7232 # We already found the complete path
7233 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7234 else
7235 # Canadian cross, just use what we found
7236 echo "$ac_t""pre-installed" 1>&6
7237 fi
be01d343
PB
7238else
7239 ok=yes
7240 case " ${configdirs} " in
7241 *" binutils "*) ;;
7242 *) ok=no ;;
7243 esac
7244
7245 if test $ok = yes; then
7246 # An in-tree tool is available and we can use it
7247 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7248 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7249 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7250 # We already found the complete path
7251 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
be01d343
PB
7252 elif test "x$target" = "x$host"; then
7253 # We can use an host tool
7254 RANLIB_FOR_TARGET='$(RANLIB)'
7255 echo "$ac_t""host tool" 1>&6
7256 else
7257 # We need a cross tool
7258 echo "$ac_t""pre-installed" 1>&6
7259 fi
7260fi
7261echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
f86e35b8 7262echo "configure:7263: checking where to find the target strip" >&5
be01d343 7263if test "x${build}" != "x${host}" ; then
2429c060
PB
7264 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7265 # We already found the complete path
7266 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7267 else
7268 # Canadian cross, just use what we found
7269 echo "$ac_t""pre-installed" 1>&6
7270 fi
be01d343
PB
7271else
7272 ok=yes
7273 case " ${configdirs} " in
7274 *" binutils "*) ;;
7275 *) ok=no ;;
7276 esac
7277
7278 if test $ok = yes; then
7279 # An in-tree tool is available and we can use it
7280 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7281 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7282 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7283 # We already found the complete path
7284 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
be01d343
PB
7285 elif test "x$target" = "x$host"; then
7286 # We can use an host tool
7287 STRIP_FOR_TARGET='$(STRIP)'
7288 echo "$ac_t""host tool" 1>&6
7289 else
7290 # We need a cross tool
7291 echo "$ac_t""pre-installed" 1>&6
7292 fi
7293fi
7294echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
f86e35b8 7295echo "configure:7296: checking where to find the target windres" >&5
be01d343 7296if test "x${build}" != "x${host}" ; then
2429c060
PB
7297 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7298 # We already found the complete path
7299 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7300 else
7301 # Canadian cross, just use what we found
7302 echo "$ac_t""pre-installed" 1>&6
7303 fi
be01d343
PB
7304else
7305 ok=yes
7306 case " ${configdirs} " in
7307 *" binutils "*) ;;
7308 *) ok=no ;;
7309 esac
7310
7311 if test $ok = yes; then
7312 # An in-tree tool is available and we can use it
7313 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7314 echo "$ac_t""just compiled" 1>&6
2429c060
PB
7315 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7316 # We already found the complete path
7317 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
be01d343
PB
7318 elif test "x$target" = "x$host"; then
7319 # We can use an host tool
7320 WINDRES_FOR_TARGET='$(WINDRES)'
7321 echo "$ac_t""host tool" 1>&6
7322 else
7323 # We need a cross tool
7324 echo "$ac_t""pre-installed" 1>&6
7325 fi
a0da8069 7326fi
54752a6b
NN
7327
7328
7329
be01d343 7330
a0da8069
NN
7331# Certain tools may need extra flags.
7332AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7333RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7334NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7335
be01d343
PB
7336# When building target libraries, except in a Canadian cross, we use
7337# the same toolchain as the compiler we just built.
7338COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7339COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7340COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7341if test $host = $build; then
7342 case " $configdirs " in
7343 *" gcc "*)
7344 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7345 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7346 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7347 ;;
7348 esac
7349fi
7350
7351
7352
7353
7354
cac3d6c4 7355echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
f86e35b8 7356echo "configure:7357: checking whether to enable maintainer-specific portions of Makefiles" >&5
3d5e36ae
AO
7357# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7358if test "${enable_maintainer_mode+set}" = set; then
7359 enableval="$enable_maintainer_mode"
7360 USE_MAINTAINER_MODE=$enableval
7361else
7362 USE_MAINTAINER_MODE=no
cac3d6c4
CM
7363fi
7364
7365echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3d5e36ae
AO
7366
7367
7368if test "$USE_MAINTAINER_MODE" = yes; then
7369 MAINTAINER_MODE_TRUE=
7370 MAINTAINER_MODE_FALSE='#'
7371else
7372 MAINTAINER_MODE_TRUE='#'
7373 MAINTAINER_MODE_FALSE=
cac3d6c4 7374fi
3d5e36ae
AO
7375MAINT=$MAINTAINER_MODE_TRUE
7376
1d39f329
NN
7377# ---------------------
7378# GCC bootstrap support
7379# ---------------------
7380
7381# Stage specific cflags for build.
7382stage1_cflags="-g"
7383case $build in
7384 vax-*-*)
7385 case ${GCC} in
7386 yes) stage1_cflags="-g -Wa,-J" ;;
7387 *) stage1_cflags="-g -J" ;;
7388 esac ;;
1d39f329
NN
7389esac
7390
1d89b610
PB
7391# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7392if test "$GCC" = yes; then
7393 saved_CFLAGS="$CFLAGS"
7394
7395 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7396 CFLAGS="$CFLAGS -fkeep-inline-functions"
7397 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
f86e35b8 7398echo "configure:7399: checking whether -fkeep-inline-functions is supported" >&5
1d89b610 7399 cat > conftest.$ac_ext <<EOF
f86e35b8 7400#line 7401 "configure"
1d89b610
PB
7401#include "confdefs.h"
7402
7403int main() {
7404
7405; return 0; }
7406EOF
f86e35b8 7407if { (eval echo configure:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1d89b610
PB
7408 rm -rf conftest*
7409 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7410else
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 rm -rf conftest*
7414 echo "$ac_t""no" 1>&6
7415fi
7416rm -f conftest*
7417
7418 CFLAGS="$saved_CFLAGS"
7419fi
7420
7421
1d39f329 7422
8a0d8a5c
PB
7423# Enable --enable-checking in stage1 of the compiler.
7424# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7425if test "${enable_stage1_checking+set}" = set; then
7426 enableval="$enable_stage1_checking"
7427 stage1_checking=--enable-checking=${enable_stage1_checking}
7428else
7429 if test "x$enable_checking" = xno; then
7430 stage1_checking=--enable-checking
7431else
7432 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
7433fi
7434fi
7435
7436
7437
1d39f329 7438# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
7439# Check whether --enable-werror or --disable-werror was given.
7440if test "${enable_werror+set}" = set; then
7441 enableval="$enable_werror"
cac3d6c4 7442 :
1d39f329 7443else
79fcd0ec 7444 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 7445 enable_werror=yes
79fcd0ec
PB
7446else
7447 enable_werror=no
7448fi
cac3d6c4
CM
7449fi
7450
1a6f2dc7
NN
7451case ${enable_werror} in
7452 yes) stage2_werror_flag="--enable-werror-always" ;;
7453 *) stage2_werror_flag="" ;;
1d39f329
NN
7454esac
7455
7456
108a6f8e
CD
7457# Flags needed to enable html installing and building
7458# Check whether --with-datarootdir or --without-datarootdir was given.
7459if test "${with_datarootdir+set}" = set; then
7460 withval="$with_datarootdir"
7461 datarootdir="\${prefix}/${withval}"
7462else
7463 datarootdir="\${prefix}/share"
7464fi
7465
7466
7467# Check whether --with-docdir or --without-docdir was given.
7468if test "${with_docdir+set}" = set; then
7469 withval="$with_docdir"
7470 docdir="\${prefix}/${withval}"
7471else
7472 docdir="\${datarootdir}/doc"
7473fi
7474
7475
7476# Check whether --with-htmldir or --without-htmldir was given.
7477if test "${with_htmldir+set}" = set; then
7478 withval="$with_htmldir"
7479 htmldir="\${prefix}/${withval}"
7480else
7481 htmldir="\${docdir}"
7482fi
7483
7484
7485
7486
7487
7488
cac3d6c4
CM
7489trap '' 1 2 15
7490cat > confcache <<\EOF
a0da8069
NN
7491# This file is a shell script that caches the results of configure
7492# tests run on this system so they can be shared between configure
cac3d6c4
CM
7493# scripts and configure runs. It is not useful on other systems.
7494# If it contains results you don't want to keep, you may remove or edit it.
a0da8069 7495#
cac3d6c4
CM
7496# By default, configure uses ./config.cache as the cache file,
7497# creating it if it does not exist already. You can give configure
7498# the --cache-file=FILE option to use a different cache file; that is
7499# what configure does when it calls configure scripts in
7500# subdirectories, so they share the cache.
7501# Giving --cache-file=/dev/null disables caching, for debugging configure.
7502# config.status only pays attention to the cache file if you give it the
7503# --recheck option to rerun configure.
a0da8069 7504#
cac3d6c4 7505EOF
a0da8069
NN
7506# The following way of writing the cache mishandles newlines in values,
7507# but we know of no workaround that is simple, portable, and efficient.
7508# So, don't put newlines in cache variables' values.
7509# Ultrix sh set writes to stderr and can't be redirected directly,
7510# and sets the high bit in the cache file unless we assign to the vars.
cac3d6c4
CM
7511(set) 2>&1 |
7512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7513 *ac_space=\ *)
7514 # `set' does not quote correctly, so add quotes (double-quote substitution
7515 # turns \\\\ into \\, and sed turns \\ into \).
7516 sed -n \
7517 -e "s/'/'\\\\''/g" \
7518 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7519 ;;
7520 *)
7521 # `set' quotes correctly as required by POSIX, so do not add quotes.
7522 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7523 ;;
7524 esac >> confcache
7525if cmp -s $cache_file confcache; then
7526 :
7527else
a0da8069 7528 if test -w $cache_file; then
cac3d6c4
CM
7529 echo "updating cache $cache_file"
7530 cat confcache > $cache_file
a0da8069
NN
7531 else
7532 echo "not updating unwritable cache $cache_file"
7533 fi
852e5f18 7534fi
a0da8069 7535rm -f confcache
852e5f18 7536
cac3d6c4
CM
7537trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7538
a0da8069
NN
7539test "x$prefix" = xNONE && prefix=$ac_default_prefix
7540# Let make expand exec_prefix.
7541test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 7542
cac3d6c4
CM
7543# Any assignment to VPATH causes Sun make to only execute
7544# the first set of double-colon rules, so remove it if not needed.
7545# If there is a colon in the path, we need to keep it.
a0da8069 7546if test "x$srcdir" = x.; then
cac3d6c4 7547 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
a0da8069 7548fi
252b5132 7549
cac3d6c4
CM
7550trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7551
a0da8069
NN
7552# Transform confdefs.h into DEFS.
7553# Protect against shell expansion while executing Makefile rules.
7554# Protect against Makefile macro expansion.
9b134994
PB
7555cat > conftest.defs <<\EOF
7556s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7557s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7558s%\[%\\&%g
7559s%\]%\\&%g
7560s%\$%$$%g
7561EOF
7562DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7563rm -f conftest.defs
852e5f18 7564
376a0e54 7565
cac3d6c4 7566# Without the "./", some shells look in PATH for config.status.
376a0e54 7567: ${CONFIG_STATUS=./config.status}
cac3d6c4
CM
7568
7569echo creating $CONFIG_STATUS
7570rm -f $CONFIG_STATUS
7571cat > $CONFIG_STATUS <<EOF
7572#! /bin/sh
7573# Generated automatically by configure.
a0da8069 7574# Run this file to recreate the current configuration.
cac3d6c4
CM
7575# This directory was configured as follows,
7576# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7577#
7578# $0 $ac_configure_args
7579#
a0da8069 7580# Compiler output produced by configure, useful for debugging
cac3d6c4 7581# configure, is in ./config.log if it exists.
376a0e54 7582
cac3d6c4
CM
7583ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7584for ac_option
a0da8069 7585do
cac3d6c4 7586 case "\$ac_option" in
a0da8069 7587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
cac3d6c4
CM
7588 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7589 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7590 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7591 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7592 exit 0 ;;
7593 -help | --help | --hel | --he | --h)
7594 echo "\$ac_cs_usage"; exit 0 ;;
7595 *) echo "\$ac_cs_usage"; exit 1 ;;
376a0e54
CM
7596 esac
7597done
7598
cac3d6c4
CM
7599ac_given_srcdir=$srcdir
7600ac_given_INSTALL="$INSTALL"
376a0e54 7601
cac3d6c4
CM
7602trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7603EOF
7604cat >> $CONFIG_STATUS <<EOF
376a0e54 7605
cac3d6c4
CM
7606# Protect against being on the right side of a sed subst in config.status.
7607sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7608 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7609$ac_vpsub
7610$extrasub
7611s%@SHELL@%$SHELL%g
7612s%@CFLAGS@%$CFLAGS%g
7613s%@CPPFLAGS@%$CPPFLAGS%g
7614s%@CXXFLAGS@%$CXXFLAGS%g
7615s%@FFLAGS@%$FFLAGS%g
7616s%@DEFS@%$DEFS%g
7617s%@LDFLAGS@%$LDFLAGS%g
7618s%@LIBS@%$LIBS%g
7619s%@exec_prefix@%$exec_prefix%g
7620s%@prefix@%$prefix%g
7621s%@program_transform_name@%$program_transform_name%g
7622s%@bindir@%$bindir%g
7623s%@sbindir@%$sbindir%g
7624s%@libexecdir@%$libexecdir%g
7625s%@datadir@%$datadir%g
7626s%@sysconfdir@%$sysconfdir%g
7627s%@sharedstatedir@%$sharedstatedir%g
7628s%@localstatedir@%$localstatedir%g
7629s%@libdir@%$libdir%g
7630s%@includedir@%$includedir%g
7631s%@oldincludedir@%$oldincludedir%g
7632s%@infodir@%$infodir%g
7633s%@mandir@%$mandir%g
7634s%@host@%$host%g
7635s%@host_alias@%$host_alias%g
7636s%@host_cpu@%$host_cpu%g
7637s%@host_vendor@%$host_vendor%g
7638s%@host_os@%$host_os%g
7639s%@target@%$target%g
7640s%@target_alias@%$target_alias%g
7641s%@target_cpu@%$target_cpu%g
7642s%@target_vendor@%$target_vendor%g
7643s%@target_os@%$target_os%g
7644s%@build@%$build%g
7645s%@build_alias@%$build_alias%g
7646s%@build_cpu@%$build_cpu%g
7647s%@build_vendor@%$build_vendor%g
7648s%@build_os@%$build_os%g
7649s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7650s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7651s%@INSTALL_DATA@%$INSTALL_DATA%g
7652s%@LN@%$LN%g
7653s%@LN_S@%$LN_S%g
7654s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
66a79c16 7655s%@build_libsubdir@%$build_libsubdir%g
cac3d6c4
CM
7656s%@build_subdir@%$build_subdir%g
7657s%@host_subdir@%$host_subdir%g
7658s%@target_subdir@%$target_subdir%g
7659s%@CC@%$CC%g
7660s%@GNATBIND@%$GNATBIND%g
7661s%@do_compare@%$do_compare%g
7662s%@gmplibs@%$gmplibs%g
7663s%@gmpinc@%$gmpinc%g
7664s%@stage1_languages@%$stage1_languages%g
7665s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
a0da8069 7666/@serialization_dependencies@/r $serialization_dependencies
cac3d6c4 7667s%@serialization_dependencies@%%g
a0da8069 7668/@host_makefile_frag@/r $host_makefile_frag
cac3d6c4 7669s%@host_makefile_frag@%%g
a0da8069 7670/@target_makefile_frag@/r $target_makefile_frag
cac3d6c4 7671s%@target_makefile_frag@%%g
a0da8069 7672/@alphaieee_frag@/r $alphaieee_frag
cac3d6c4 7673s%@alphaieee_frag@%%g
a0da8069 7674/@ospace_frag@/r $ospace_frag
cac3d6c4
CM
7675s%@ospace_frag@%%g
7676s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
cac3d6c4
CM
7677s%@tooldir@%$tooldir%g
7678s%@build_tooldir@%$build_tooldir%g
907be67c 7679s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
cac3d6c4 7680s%@GDB_TK@%$GDB_TK%g
907be67c 7681s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
cac3d6c4
CM
7682s%@build_configargs@%$build_configargs%g
7683s%@build_configdirs@%$build_configdirs%g
7684s%@host_configargs@%$host_configargs%g
7685s%@configdirs@%$configdirs%g
7686s%@target_configargs@%$target_configargs%g
cac3d6c4
CM
7687s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7688s%@config_shell@%$config_shell%g
be01d343
PB
7689s%@YACC@%$YACC%g
7690s%@BISON@%$BISON%g
7691s%@M4@%$M4%g
7692s%@LEX@%$LEX%g
7693s%@FLEX@%$FLEX%g
7694s%@MAKEINFO@%$MAKEINFO%g
7695s%@EXPECT@%$EXPECT%g
7696s%@RUNTEST@%$RUNTEST%g
cac3d6c4
CM
7697s%@AR@%$AR%g
7698s%@AS@%$AS%g
7699s%@DLLTOOL@%$DLLTOOL%g
7700s%@LD@%$LD%g
be01d343 7701s%@LIPO@%$LIPO%g
cac3d6c4
CM
7702s%@NM@%$NM%g
7703s%@RANLIB@%$RANLIB%g
be01d343 7704s%@STRIP@%$STRIP%g
cac3d6c4
CM
7705s%@WINDRES@%$WINDRES%g
7706s%@OBJCOPY@%$OBJCOPY%g
7707s%@OBJDUMP@%$OBJDUMP%g
7708s%@CXX@%$CXX%g
7709s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
cac3d6c4
CM
7710s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7711s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
cac3d6c4
CM
7712s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7713s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7714s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
2429c060
PB
7715s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7716s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7717s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
cac3d6c4
CM
7718s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7719s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7720s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5ae72758 7721s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
cac3d6c4
CM
7722s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7723s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7724s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
8cf39b1b 7725s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
2d1e8239 7726s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
be01d343
PB
7727s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7728s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7729s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
cac3d6c4
CM
7730s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7731s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7732s%@MAINT@%$MAINT%g
7733s%@stage1_cflags@%$stage1_cflags%g
8a0d8a5c 7734s%@stage1_checking@%$stage1_checking%g
cac3d6c4 7735s%@stage2_werror_flag@%$stage2_werror_flag%g
108a6f8e
CD
7736s%@datarootdir@%$datarootdir%g
7737s%@docdir@%$docdir%g
7738s%@htmldir@%$htmldir%g
cac3d6c4 7739
a0da8069 7740CEOF
cac3d6c4 7741EOF
252b5132 7742
cac3d6c4
CM
7743cat >> $CONFIG_STATUS <<\EOF
7744
7745# Split the substitutions into bite-sized pieces for seds with
7746# small command number limits, like on Digital OSF/1 and HP-UX.
7747ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7748ac_file=1 # Number of current file.
7749ac_beg=1 # First line for current file.
7750ac_end=$ac_max_sed_cmds # Line after last line for current file.
7751ac_more_lines=:
7752ac_sed_cmds=""
7753while $ac_more_lines; do
7754 if test $ac_beg -gt 1; then
7755 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7756 else
7757 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7758 fi
7759 if test ! -s conftest.s$ac_file; then
7760 ac_more_lines=false
7761 rm -f conftest.s$ac_file
7762 else
7763 if test -z "$ac_sed_cmds"; then
7764 ac_sed_cmds="sed -f conftest.s$ac_file"
a0da8069 7765 else
cac3d6c4 7766 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
a0da8069 7767 fi
cac3d6c4
CM
7768 ac_file=`expr $ac_file + 1`
7769 ac_beg=$ac_end
7770 ac_end=`expr $ac_end + $ac_max_sed_cmds`
852e5f18 7771 fi
cac3d6c4
CM
7772done
7773if test -z "$ac_sed_cmds"; then
7774 ac_sed_cmds=cat
7775fi
7776EOF
7777
7778cat >> $CONFIG_STATUS <<EOF
252b5132 7779
cac3d6c4
CM
7780CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7781EOF
7782cat >> $CONFIG_STATUS <<\EOF
7783for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
a0da8069 7784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
cac3d6c4
CM
7785 case "$ac_file" in
7786 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7787 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7788 *) ac_file_in="${ac_file}.in" ;;
a0da8069 7789 esac
252b5132 7790
cac3d6c4 7791 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
376a0e54 7792
cac3d6c4
CM
7793 # Remove last slash and all that follows it. Not all systems have dirname.
7794 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7795 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7796 # The file is in a subdirectory.
7797 test ! -d "$ac_dir" && mkdir "$ac_dir"
7798 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7799 # A "../" for each directory in $ac_dir_suffix.
7800 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7801 else
7802 ac_dir_suffix= ac_dots=
7803 fi
252b5132 7804
cac3d6c4
CM
7805 case "$ac_given_srcdir" in
7806 .) srcdir=.
7807 if test -z "$ac_dots"; then top_srcdir=.
7808 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7809 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
a0da8069 7810 *) # Relative path.
cac3d6c4
CM
7811 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7812 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7813 esac
252b5132 7814
cac3d6c4
CM
7815 case "$ac_given_INSTALL" in
7816 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7817 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7818 esac
252b5132 7819
cac3d6c4
CM
7820 echo creating "$ac_file"
7821 rm -f "$ac_file"
7822 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7823 case "$ac_file" in
7824 *Makefile*) ac_comsub="1i\\
7825# $configure_input" ;;
7826 *) ac_comsub= ;;
a0da8069 7827 esac
252b5132 7828
cac3d6c4
CM
7829 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7830 sed -e "$ac_comsub
7831s%@configure_input@%$configure_input%g
7832s%@srcdir@%$srcdir%g
7833s%@top_srcdir@%$top_srcdir%g
7834s%@INSTALL@%$INSTALL%g
7835" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7836fi; done
7837rm -f conftest.s*
c148b4cb 7838
cac3d6c4
CM
7839EOF
7840cat >> $CONFIG_STATUS <<EOF
c148b4cb 7841
cac3d6c4
CM
7842EOF
7843cat >> $CONFIG_STATUS <<\EOF
c148b4cb 7844
cac3d6c4
CM
7845exit 0
7846EOF
c148b4cb 7847chmod +x $CONFIG_STATUS
cac3d6c4
CM
7848rm -fr confdefs* $ac_clean_files
7849test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c148b4cb 7850
This page took 0.789831 seconds and 4 git commands to generate.