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