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