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