Lower __builtin_flt_rounds into LLVM intrinsic
[llvm-gcc-4.2.git] / configure
blob0905c619e59d829232746ac8ec9b27f8614923a6
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.
1182 # Disable it by default everywhere else.
1183 noconfigdirs="$noconfigdirs target-libmudflap"
1185 esac
1188 # Disable libgomp on non POSIX hosted systems.
1189 if test x$enable_libgomp = x ; then
1190 # Enable libgomp by default on hosted POSIX systems.
1191 case "${target}" in
1192 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1194 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1196 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1198 *-*-darwin* | *-*-aix*)
1201 noconfigdirs="$noconfigdirs target-libgomp"
1203 esac
1207 case "${target}" in
1208 *-*-chorusos)
1209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1211 # APPLE LOCAL begin ARM darwin target
1212 arm-*-darwin*)
1213 noconfigdirs="$noconfigdirs target-libgomp target-libobjc"
1214 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libssp"
1215 # LLVM LOCAL begin
1216 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1217 noconfigdirs="$noconfigdirs target-libgfortran target-libjava"
1218 noconfigdirs="$noconfigdirs target-libmudflap target-zlib"
1219 # LLVM LOCAL end
1221 # APPLE LOCAL end ARM darwin target
1222 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1223 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1224 noconfigdirs="$noconfigdirs sim target-rda"
1225 # LLVM LOCAL begin
1226 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1227 noconfigdirs="$noconfigdirs target-libgfortran target-libjava"
1228 noconfigdirs="$noconfigdirs target-libmudflap target-libobjc"
1229 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1230 # LLVM LOCAL end
1232 *-*-darwin*)
1233 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1234 noconfigdirs="$noconfigdirs sim target-rda"
1235 noconfigdirs="$noconfigdirs ${libgcj}"
1236 # LLVM LOCAL begin
1237 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1238 noconfigdirs="$noconfigdirs target-libgfortran target-libjava"
1239 noconfigdirs="$noconfigdirs target-libmudflap target-libobjc"
1240 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1241 # LLVM LOCAL end
1243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1246 *-*-freebsd*)
1247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1249 && test -f /usr/local/include/gmp.h; then
1250 with_gmp=/usr/local
1253 # Skip some stuff that's unsupported on some FreeBSD configurations.
1254 case "${target}" in
1255 i*86-*-*) ;;
1256 alpha*-*-*) ;;
1258 noconfigdirs="$noconfigdirs ${libgcj}"
1260 esac
1262 *-*-kaos*)
1263 # Remove unsupported stuff on all kaOS configurations.
1264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1267 noconfigdirs="$noconfigdirs target-libgloss"
1269 *-*-netbsd*)
1270 # Skip some stuff on all NetBSD configurations.
1271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1273 # Skip some stuff that's unsupported on some NetBSD configurations.
1274 case "${target}" in
1275 i*86-*-netbsdelf*) ;;
1276 arm*-*-netbsdelf*) ;;
1278 noconfigdirs="$noconfigdirs ${libgcj}"
1280 esac
1282 *-*-netware*)
1283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1285 *-*-rtems*)
1286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1288 # The tpf target doesn't support gdb yet.
1289 *-*-tpf*)
1290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1292 *-*-uclinux*)
1293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1295 *-*-vxworks*)
1296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1298 alpha*-dec-osf*)
1299 # ld works, but does not support shared libraries.
1300 # newlib is not 64 bit ready. I'm not sure about fileutils.
1301 # gas doesn't generate exception information.
1302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1304 alpha*-*-*vms*)
1305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1307 alpha*-*-linux*)
1308 # newlib is not 64 bit ready
1309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1311 alpha*-*-*)
1312 # newlib is not 64 bit ready
1313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1315 am33_2.0-*-linux*)
1316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1318 sh-*-linux*)
1319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1322 noconfigdirs="$noconfigdirs ${libgcj}"
1323 noconfigdirs="$noconfigdirs target-examples"
1324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1326 noconfigdirs="$noconfigdirs expect dejagnu"
1327 # the C++ libraries don't build on top of CE's C libraries
1328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1329 noconfigdirs="$noconfigdirs target-newlib"
1330 case "${host}" in
1331 *-*-cygwin*) ;; # keep gdb and readline
1332 *) noconfigdirs="$noconfigdirs gdb readline"
1334 esac
1336 arc-*-*)
1337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1339 arm-semi-aof )
1341 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1342 noconfigdirs="$noconfigdirs ${libgcj}"
1344 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1345 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1347 arm*-*-linux-gnueabi)
1348 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1349 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1351 arm*-*-symbianelf*)
1352 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1354 arm-*-pe*)
1355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1357 thumb-*-coff)
1358 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1360 thumb-*-elf)
1361 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1363 thumb-*-pe)
1364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1366 arm-*-riscix*)
1367 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1369 avr-*-*)
1370 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1372 bfin-*-*)
1373 noconfigdirs="$noconfigdirs gdb"
1374 if test x${is_cross_compiler} != xno ; then
1375 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1378 c4x-*-* | tic4x-*-*)
1379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381 c54x*-*-* | tic54x-*-*)
1382 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1384 cris-*-* | crisv32-*-*)
1385 unsupported_languages="$unsupported_languages java"
1386 case "${target}" in
1387 *-*-aout)
1388 unsupported_languages="$unsupported_languages fortran"
1389 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1390 *-*-elf)
1391 unsupported_languages="$unsupported_languages fortran"
1392 noconfigdirs="$noconfigdirs target-boehm-gc";;
1393 *-*-linux*)
1394 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1396 unsupported_languages="$unsupported_languages fortran"
1397 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1398 esac
1400 crx-*-*)
1401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1403 d10v-*-*)
1404 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1406 d30v-*-*)
1407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1409 fr30-*-elf*)
1410 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1412 frv-*-*)
1413 noconfigdirs="$noconfigdirs ${libgcj}"
1415 h8300*-*-*)
1416 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1418 h8500-*-*)
1419 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1421 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1423 hppa*64*-*-linux* | parisc*64*-*-linux*)
1424 # In this case, it's because the hppa64-linux target is for
1425 # the kernel only at this point and has no libc, and thus no
1426 # headers, crt*.o, etc., all of which are needed by these.
1427 noconfigdirs="$noconfigdirs target-zlib"
1429 parisc*-*-linux* | hppa*-*-linux*)
1431 hppa*-*-*elf* | \
1432 hppa*-*-lites* | \
1433 hppa*-*-openbsd* | \
1434 hppa*64*-*-*)
1435 noconfigdirs="$noconfigdirs ${libgcj}"
1437 hppa*-hp-hpux11*)
1438 noconfigdirs="$noconfigdirs ld shellutils"
1440 hppa*-*-*)
1441 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1442 # build on HP-UX 10.20.
1443 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1445 i960-*-*)
1446 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1448 ia64*-*-elf*)
1449 # No gdb support yet.
1450 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1452 ia64*-**-hpux*)
1453 # No gdb or ld support yet.
1454 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1456 i370-*-opened*)
1458 i[3456789]86-*-coff | i[3456789]86-*-elf)
1459 noconfigdirs="$noconfigdirs ${libgcj}"
1461 i[3456789]86-*-linux*)
1462 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1463 # not build java stuff by default.
1464 case "${target}" in
1465 *-*-*libc1*)
1466 noconfigdirs="$noconfigdirs ${libgcj}";;
1467 esac
1469 # This section makes it possible to build newlib natively on linux.
1470 # If we are using a cross compiler then don't configure newlib.
1471 if test x${is_cross_compiler} != xno ; then
1472 noconfigdirs="$noconfigdirs target-newlib"
1474 noconfigdirs="$noconfigdirs target-libgloss"
1475 # If we are not using a cross compiler, do configure newlib.
1476 # Note however, that newlib will only be configured in this situation
1477 # if the --with-newlib option has been given, because otherwise
1478 # 'target-newlib' will appear in skipdirs.
1480 i[3456789]86-*-mingw32*)
1481 target_configdirs="$target_configdirs target-winsup"
1482 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1484 *-*-cygwin*)
1485 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1486 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1487 # always build newlib if winsup directory is present.
1488 if test -d "$srcdir/winsup/cygwin"; then
1489 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1490 elif test -d "$srcdir/newlib"; then
1491 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1494 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1495 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1497 i[3456789]86-*-pe)
1498 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1500 i[3456789]86-*-sco3.2v5*)
1501 # The linker does not yet know about weak symbols in COFF,
1502 # and is not configured to handle mixed ELF and COFF.
1503 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1505 i[3456789]86-*-sco*)
1506 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1508 i[3456789]86-*-solaris2*)
1509 noconfigdirs="$noconfigdirs target-libgloss"
1511 i[3456789]86-*-sysv4*)
1512 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1514 i[3456789]86-*-beos*)
1515 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1517 i[3456789]86-*-rdos*)
1518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1520 m32r-*-*)
1521 noconfigdirs="$noconfigdirs ${libgcj}"
1523 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1524 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1526 m68k-*-elf*)
1527 noconfigdirs="$noconfigdirs ${libgcj}"
1529 m68k-*-coff*)
1530 noconfigdirs="$noconfigdirs ${libgcj}"
1532 mcore-*-pe*)
1533 # The EPOC C++ environment does not support exceptions or rtti,
1534 # and so building libstdc++-v3 tends not to always work.
1535 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1537 mmix-*-*)
1538 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1539 unsupported_languages="$unsupported_languages fortran java"
1541 mn10200-*-*)
1542 noconfigdirs="$noconfigdirs ${libgcj}"
1544 mn10300-*-*)
1545 noconfigdirs="$noconfigdirs ${libgcj}"
1547 mt-*-*)
1548 noconfigdirs="$noconfigdirs sim"
1550 powerpc-*-aix*)
1551 # copied from rs6000-*-* entry
1552 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1554 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1555 target_configdirs="$target_configdirs target-winsup"
1556 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1557 # always build newlib.
1558 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1560 # This is temporary until we can link against shared libraries
1561 powerpcle-*-solaris*)
1562 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1564 powerpc-*-beos*)
1565 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1567 powerpc-*-eabi)
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1570 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1572 rs6000-*-lynxos*)
1573 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1575 rs6000-*-aix*)
1576 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1578 rs6000-*-*)
1579 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1581 m68k-apollo-*)
1582 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1584 mips*-*-irix5*)
1585 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1587 mips*-*-irix6*)
1588 # Linking libjava exceeds command-line length limits on at least
1589 # IRIX 6.2, but not on IRIX 6.5.
1590 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1591 # <oldham@codesourcery.com>
1592 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1594 mips*-*-bsd*)
1595 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1597 mips64*-*-linux*)
1598 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1600 mips*-*-linux*)
1601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1603 mips*-*-*)
1604 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1606 romp-*-*)
1607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1609 sh-*-* | sh64-*-*)
1610 case "${host}" in
1611 i[3456789]86-*-vsta) ;; # don't add gprof back in
1612 i[3456789]86-*-go32*) ;; # don't add gprof back in
1613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1615 esac
1616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1618 sparc-*-elf*)
1619 noconfigdirs="$noconfigdirs ${libgcj}"
1621 sparc64-*-elf*)
1622 noconfigdirs="$noconfigdirs ${libgcj}"
1624 sparclite-*-*)
1625 noconfigdirs="$noconfigdirs ${libgcj}"
1627 sparc-*-sunos4*)
1628 noconfigdirs="$noconfigdirs ${libgcj}"
1629 if test x${is_cross_compiler} != xno ; then
1630 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1631 else
1632 use_gnu_ld=no
1635 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1636 noconfigdirs="$noconfigdirs ${libgcj}"
1638 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1640 spu-*-*)
1641 skipdirs="target-libiberty target-libssp"
1643 v810-*-*)
1644 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1646 v850-*-*)
1647 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1649 v850e-*-*)
1650 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1652 v850ea-*-*)
1653 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1655 vax-*-vms)
1656 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1658 vax-*-*)
1659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1661 xtensa-*-*)
1662 noconfigdirs="$noconfigdirs ${libgcj}"
1664 ip2k-*-*)
1665 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1667 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1670 *-*-lynxos*)
1671 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1673 *-*-*)
1674 noconfigdirs="$noconfigdirs ${libgcj}"
1676 esac
1678 # If we aren't building newlib, then don't build libgloss, since libgloss
1679 # depends upon some newlib header files.
1680 case "${noconfigdirs}" in
1681 *target-libgloss*) ;;
1682 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1683 esac
1685 # Work in distributions that contain no compiler tools, like Autoconf.
1686 tentative_cc=""
1687 host_makefile_frag=/dev/null
1688 if test -d ${srcdir}/config ; then
1689 case "${host}" in
1690 m68k-hp-hpux*)
1691 # Avoid "too much defining" errors from HPUX compiler.
1692 tentative_cc="cc -Wp,-H256000"
1693 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1694 # If it's HP/UX ar, this should be harmless.
1695 RANLIB="ar ts"
1697 m68k-apollo-sysv*)
1698 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1700 m68k-apollo-bsd*)
1701 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1702 # chokes on bfd, the compiler won't let you assign integers to enums, and
1703 # other problems. Defining CC to gcc is a questionable way to say "don't use
1704 # the apollo compiler" (the preferred version of GCC could be called cc,
1705 # or whatever), but I'm not sure leaving CC as cc is any better...
1706 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1707 # Used to have BISON=yacc.
1708 tentative_cc=gcc
1710 m88k-dg-dgux*)
1711 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1713 m88k-harris-cxux*)
1714 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1715 tentative_cc="cc -Xa"
1716 host_makefile_frag="config/mh-cxux"
1718 m88k-motorola-sysv*)
1720 mips*-dec-ultrix*)
1721 tentative_cc="cc -Wf,-XNg1000"
1722 host_makefile_frag="config/mh-decstation"
1724 mips*-nec-sysv4*)
1725 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1726 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1727 host_makefile_frag="config/mh-necv4"
1729 mips*-sgi-irix4*)
1730 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1731 # environment. Also bump switch table size so that cp-parse will
1732 # compile. Bump string length limit so linker builds.
1733 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1735 mips*-*-sysv4*)
1736 host_makefile_frag="config/mh-sysv4"
1738 mips*-*-sysv*)
1739 # This is for a MIPS running RISC/os 4.52C.
1741 # This is needed for GDB, but needs to be in the top-level make because
1742 # if a library is compiled with the bsd headers and gets linked with the
1743 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1744 # a different size).
1745 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1746 # known except to select the sysv environment. Could we use /proc instead?
1747 # These "sysv environments" and "bsd environments" often end up being a pain.
1749 # This is not part of CFLAGS because perhaps not all C compilers have this
1750 # option.
1751 tentative_cc="cc -systype sysv"
1753 i370-ibm-opened*)
1754 tentative_cc="c89"
1756 i[3456789]86-*-sysv5*)
1757 host_makefile_frag="config/mh-sysv5"
1759 i[3456789]86-*-dgux*)
1760 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1761 host_makefile_frag="config/mh-dgux386"
1763 i[3456789]86-ncr-sysv4.3*)
1764 # The MetaWare compiler will generate a copyright message unless you
1765 # turn it off by adding the -Hnocopyr flag.
1766 tentative_cc="cc -Hnocopyr"
1768 i[3456789]86-ncr-sysv4*)
1769 # for an NCR 3000 (i486/SVR4) system.
1770 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1771 # This compiler not only emits obnoxious copyright messages every time
1772 # you run it, but it chokes and dies on a whole bunch of GNU source
1773 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1774 tentative_cc="/usr/ccs/ATT/cc"
1775 host_makefile_frag="config/mh-ncr3000"
1777 i[3456789]86-*-sco3.2v5*)
1779 i[3456789]86-*-sco*)
1780 # The native C compiler botches some simple uses of const. Unfortunately,
1781 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1782 tentative_cc="cc -Dconst="
1783 host_makefile_frag="config/mh-sco"
1785 i[3456789]86-*-udk*)
1786 host_makefile_frag="config/mh-sysv5"
1788 i[3456789]86-*-solaris2*)
1789 host_makefile_frag="config/mh-sysv4"
1791 i[3456789]86-*-msdosdjgpp*)
1792 host_makefile_frag="config/mh-djgpp"
1794 *-cygwin*)
1795 host_makefile_frag="config/mh-cygwin"
1797 *-mingw32*)
1799 *-interix*)
1800 host_makefile_frag="config/mh-interix"
1802 vax-*-ultrix2*)
1803 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1804 tentative_cc=gcc
1806 *-*-solaris2*)
1807 host_makefile_frag="config/mh-solaris"
1809 m68k-sun-sunos*)
1810 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1811 # without overflowing the jump tables (-J says to use a 32 bit table)
1812 tentative_cc="cc -J"
1814 *-hp-hpux*)
1815 tentative_cc="cc -Wp,-H256000"
1817 *-*-hiux*)
1818 tentative_cc="cc -Wp,-H256000"
1820 rs6000-*-lynxos*)
1821 # /bin/cc is less than useful for our purposes. Always use GCC
1822 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1823 host_makefile_frag="config/mh-lynxrs6k"
1825 powerpc-*-darwin*)
1826 host_makefile_frag="config/mh-ppc-darwin"
1828 # APPLE LOCAL begin dynamic-no-pic
1829 i[3456789]86-*-darwin*)
1830 host_makefile_frag="config/mh-x86-darwin"
1832 # APPLE LOCAL end dynamic-no-pic
1833 powerpc-*-aix*)
1834 host_makefile_frag="config/mh-ppc-aix"
1836 rs6000-*-aix*)
1837 host_makefile_frag="config/mh-ppc-aix"
1839 *-*-lynxos*)
1840 # /bin/cc is less than useful for our purposes. Always use GCC
1841 tentative_cc="/bin/gcc"
1843 *-*-sysv4*)
1844 host_makefile_frag="config/mh-sysv4"
1846 # This is placed last to prevent interfering with the cases above.
1847 i[3456789]86-*-*)
1848 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1849 host_makefile_frag="config/mh-x86omitfp"
1851 esac
1854 # If we aren't going to be using gcc, see if we can extract a definition
1855 # of CC from the fragment.
1856 # Actually, use the 'pre-extracted' version above.
1857 if test -z "${CC}" && test "${build}" = "${host}" ; then
1858 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1859 found=
1860 for dir in $PATH; do
1861 test -z "$dir" && dir=.
1862 if test -f $dir/gcc; then
1863 found=yes
1864 break
1866 done
1867 IFS="$save_ifs"
1868 if test -z "${found}" && test -n "${tentative_cc}" ; then
1869 CC=$tentative_cc
1873 if test "${build}" != "${host}" ; then
1874 # If we are doing a Canadian Cross, in which the host and build systems
1875 # are not the same, we set reasonable default values for the tools.
1877 CC=${CC-${host_alias}-gcc}
1878 CFLAGS=${CFLAGS-"-g -O2"}
1879 CXX=${CXX-${host_alias}-c++}
1880 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1881 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1883 else
1884 # Set reasonable default values for some tools even if not Canadian.
1885 # Of course, these are different reasonable default values, originally
1886 # specified directly in the Makefile.
1887 # We don't export, so that autoconf can do its job.
1888 # Note that all these settings are above the fragment inclusion point
1889 # in Makefile.in, so can still be overridden by fragments.
1890 # This is all going to change when we autoconfiscate...
1892 CC_FOR_BUILD="\$(CC)"
1893 # Extract the first word of "gcc", so it can be a program name with args.
1894 set dummy gcc; ac_word=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1871: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1899 else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1904 ac_dummy="$PATH"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_CC="gcc"
1909 break
1911 done
1912 IFS="$ac_save_ifs"
1915 CC="$ac_cv_prog_CC"
1916 if test -n "$CC"; then
1917 echo "$ac_t""$CC" 1>&6
1918 else
1919 echo "$ac_t""no" 1>&6
1922 if test -z "$CC"; then
1923 # Extract the first word of "cc", so it can be a program name with args.
1924 set dummy cc; ac_word=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1901: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1934 ac_prog_rejected=no
1935 ac_dummy="$PATH"
1936 for ac_dir in $ac_dummy; do
1937 test -z "$ac_dir" && ac_dir=.
1938 if test -f $ac_dir/$ac_word; then
1939 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1941 continue
1943 ac_cv_prog_CC="cc"
1944 break
1946 done
1947 IFS="$ac_save_ifs"
1948 if test $ac_prog_rejected = yes; then
1949 # We found a bogon in the path, so make sure we never use it.
1950 set dummy $ac_cv_prog_CC
1951 shift
1952 if test $# -gt 0; then
1953 # We chose a different compiler from the bogus one.
1954 # However, it has the same basename, so the bogon will be chosen
1955 # first if we set CC to just the basename; use the full file name.
1956 shift
1957 set dummy "$ac_dir/$ac_word" "$@"
1958 shift
1959 ac_cv_prog_CC="$@"
1964 CC="$ac_cv_prog_CC"
1965 if test -n "$CC"; then
1966 echo "$ac_t""$CC" 1>&6
1967 else
1968 echo "$ac_t""no" 1>&6
1971 if test -z "$CC"; then
1972 case "`uname -s`" in
1973 *win32* | *WIN32*)
1974 # Extract the first word of "cl", so it can be a program name with args.
1975 set dummy cl; ac_word=$2
1976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1977 echo "configure:1952: checking for $ac_word" >&5
1978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 else
1984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1985 ac_dummy="$PATH"
1986 for ac_dir in $ac_dummy; do
1987 test -z "$ac_dir" && ac_dir=.
1988 if test -f $ac_dir/$ac_word; then
1989 ac_cv_prog_CC="cl"
1990 break
1992 done
1993 IFS="$ac_save_ifs"
1996 CC="$ac_cv_prog_CC"
1997 if test -n "$CC"; then
1998 echo "$ac_t""$CC" 1>&6
1999 else
2000 echo "$ac_t""no" 1>&6
2003 esac
2005 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2008 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2009 echo "configure:1984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2011 ac_ext=c
2012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2016 cross_compiling=$ac_cv_prog_cc_cross
2018 cat > conftest.$ac_ext << EOF
2020 #line 1995 "configure"
2021 #include "confdefs.h"
2023 main(){return(0);}
2025 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2026 ac_cv_prog_cc_works=yes
2027 # If we can't run a trivial program, we are probably using a cross compiler.
2028 if (./conftest; exit) 2>/dev/null; then
2029 ac_cv_prog_cc_cross=no
2030 else
2031 ac_cv_prog_cc_cross=yes
2033 else
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 ac_cv_prog_cc_works=no
2038 rm -fr conftest*
2039 ac_ext=c
2040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2044 cross_compiling=$ac_cv_prog_cc_cross
2046 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2047 if test $ac_cv_prog_cc_works = no; then
2048 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2050 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2051 echo "configure:2026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2052 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2053 cross_compiling=$ac_cv_prog_cc_cross
2055 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2056 echo "configure:2031: checking whether we are using GNU C" >&5
2057 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 cat > conftest.c <<EOF
2061 #ifdef __GNUC__
2062 yes;
2063 #endif
2065 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2066 ac_cv_prog_gcc=yes
2067 else
2068 ac_cv_prog_gcc=no
2072 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2074 if test $ac_cv_prog_gcc = yes; then
2075 GCC=yes
2076 else
2077 GCC=
2080 ac_test_CFLAGS="${CFLAGS+set}"
2081 ac_save_CFLAGS="$CFLAGS"
2082 CFLAGS=
2083 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2084 echo "configure:2059: checking whether ${CC-cc} accepts -g" >&5
2085 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087 else
2088 echo 'void f(){}' > conftest.c
2089 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2090 ac_cv_prog_cc_g=yes
2091 else
2092 ac_cv_prog_cc_g=no
2094 rm -f conftest*
2098 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2099 if test "$ac_test_CFLAGS" = set; then
2100 CFLAGS="$ac_save_CFLAGS"
2101 elif test $ac_cv_prog_cc_g = yes; then
2102 if test "$GCC" = yes; then
2103 CFLAGS="-g -O2"
2104 else
2105 CFLAGS="-g"
2107 else
2108 if test "$GCC" = yes; then
2109 CFLAGS="-O2"
2110 else
2111 CFLAGS=
2116 # We must set the default linker to the linker used by gcc for the correct
2117 # operation of libtool. If LD is not defined and we are using gcc, try to
2118 # set the LD default to the ld used by gcc.
2119 if test -z "$LD"; then
2120 if test "$GCC" = yes; then
2121 case $build in
2122 *-*-mingw*)
2123 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2125 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2126 esac
2127 case $gcc_prog_ld in
2128 # Accept absolute paths.
2129 [\\/]* | [A-Za-z]:[\\/]*)
2130 LD="$gcc_prog_ld" ;;
2131 esac
2135 CXX=${CXX-"c++"}
2136 CFLAGS=${CFLAGS-"-g"}
2137 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2140 if test $host != $build; then
2141 ac_tool_prefix=${host_alias}-
2142 else
2143 ac_tool_prefix=
2148 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2151 echo "configure:2126: checking for $ac_word" >&5
2152 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155 if test -n "$GNATBIND"; then
2156 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2157 else
2158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2159 ac_dummy="$PATH"
2160 for ac_dir in $ac_dummy; do
2161 test -z "$ac_dir" && ac_dir=.
2162 if test -f $ac_dir/$ac_word; then
2163 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2164 break
2166 done
2167 IFS="$ac_save_ifs"
2170 GNATBIND="$ac_cv_prog_GNATBIND"
2171 if test -n "$GNATBIND"; then
2172 echo "$ac_t""$GNATBIND" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2178 if test -z "$ac_cv_prog_GNATBIND"; then
2179 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "gnatbind", so it can be a program name with args.
2181 set dummy gnatbind; ac_word=$2
2182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2183 echo "configure:2158: checking for $ac_word" >&5
2184 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187 if test -n "$GNATBIND"; then
2188 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2189 else
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 ac_dummy="$PATH"
2192 for ac_dir in $ac_dummy; do
2193 test -z "$ac_dir" && ac_dir=.
2194 if test -f $ac_dir/$ac_word; then
2195 ac_cv_prog_GNATBIND="gnatbind"
2196 break
2198 done
2199 IFS="$ac_save_ifs"
2200 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2203 GNATBIND="$ac_cv_prog_GNATBIND"
2204 if test -n "$GNATBIND"; then
2205 echo "$ac_t""$GNATBIND" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2210 else
2211 GNATBIND="no"
2215 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2216 echo "configure:2191: checking whether compiler driver understands Ada" >&5
2217 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220 cat >conftest.adb <<EOF
2221 procedure conftest is begin null; end conftest;
2223 acx_cv_cc_gcc_supports_ada=no
2224 # There is a bug in old released versions of GCC which causes the
2225 # driver to exit successfully when the appropriate language module
2226 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2227 # Therefore we must check for the error message as well as an
2228 # unsuccessful exit.
2229 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2230 # given a .adb file, but produce no object file. So we must check
2231 # if an object file was really produced to guard against this.
2232 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2233 if test x"$errors" = x && test -f conftest.$ac_objext; then
2234 acx_cv_cc_gcc_supports_ada=yes
2236 rm -f conftest.*
2239 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2241 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2242 have_gnat=yes
2243 else
2244 have_gnat=no
2247 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2248 echo "configure:2223: checking how to compare bootstrapped objects" >&5
2249 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252 echo abfoo >t1
2253 echo cdfoo >t2
2254 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2255 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2256 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2258 else
2259 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2262 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2263 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2265 else
2266 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2269 rm t1 t2
2273 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2274 do_compare="$gcc_cv_prog_cmp_skip"
2278 # Check for GMP and MPFR
2279 gmplibs="-lmpfr"
2280 gmpinc=
2281 have_gmp=yes
2282 # Specify a location for mpfr
2283 # check for this first so it ends up on the link line before gmp.
2284 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2285 if test "${with_mpfr_dir+set}" = set; then
2286 withval="$with_mpfr_dir"
2287 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2288 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2292 # Check whether --with-mpfr or --without-mpfr was given.
2293 if test "${with_mpfr+set}" = set; then
2294 withval="$with_mpfr"
2298 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2299 if test "${with_mpfr_include+set}" = set; then
2300 withval="$with_mpfr_include"
2304 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2305 if test "${with_mpfr_lib+set}" = set; then
2306 withval="$with_mpfr_lib"
2311 if test "x$with_mpfr" != x; then
2312 gmplibs="-L$with_mpfr/lib $gmplibs"
2313 gmpinc="-I$with_mpfr/include"
2315 if test "x$with_mpfr_include" != x; then
2316 gmpinc="-I$with_mpfr_include"
2318 if test "x$with_mpfr_lib" != x; then
2319 gmplibs="-L$with_mpfr_lib $gmplibs"
2322 # Specify a location for gmp
2323 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2324 if test "${with_gmp_dir+set}" = set; then
2325 withval="$with_gmp_dir"
2326 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2327 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2331 gmplibs="$gmplibs -lgmp"
2333 # Check whether --with-gmp or --without-gmp was given.
2334 if test "${with_gmp+set}" = set; then
2335 withval="$with_gmp"
2339 # Check whether --with-gmp_include or --without-gmp_include was given.
2340 if test "${with_gmp_include+set}" = set; then
2341 withval="$with_gmp_include"
2345 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2346 if test "${with_gmp_lib+set}" = set; then
2347 withval="$with_gmp_lib"
2353 if test "x$with_gmp" != x; then
2354 gmplibs="-L$with_gmp/lib $gmplibs"
2355 gmpinc="-I$with_gmp/include $gmpinc"
2357 if test "x$with_gmp_include" != x; then
2358 gmpinc="-I$with_gmp_include $gmpinc"
2360 if test "x$with_gmp_lib" != x; then
2361 gmplibs="-L$with_gmp_lib $gmplibs"
2364 saved_CFLAGS="$CFLAGS"
2365 CFLAGS="$CFLAGS $gmpinc"
2366 # Check GMP actually works
2367 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2368 echo "configure:2343: checking for correct version of gmp.h" >&5
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2345 "configure"
2371 #include "confdefs.h"
2372 #include "gmp.h"
2373 int main() {
2375 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2376 choke me
2377 #endif
2379 ; return 0; }
2381 if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 rm -rf conftest*
2383 echo "$ac_t""yes" 1>&6
2384 else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 echo "$ac_t""no" 1>&6; have_gmp=no
2390 rm -f conftest*
2392 if test x"$have_gmp" = xyes; then
2393 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2394 echo "configure:2369: checking for correct version of mpfr.h" >&5
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2371 "configure"
2397 #include "confdefs.h"
2398 #include "gmp.h"
2399 #include <mpfr.h>
2400 int main() {
2402 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2403 choke me
2404 #endif
2406 ; return 0; }
2408 if { (eval echo configure:2383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2409 rm -rf conftest*
2410 echo "$ac_t""yes" 1>&6
2411 else
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 echo "$ac_t""buggy version of MPFR detected" 1>&6
2417 rm -f conftest*
2419 saved_LIBS="$LIBS"
2420 LIBS="$LIBS $gmplibs"
2421 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2422 echo "configure:2397: checking for any version of mpfr.h" >&5
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2399 "configure"
2425 #include "confdefs.h"
2426 #include <gmp.h>
2427 #include <mpfr.h>
2428 int main() {
2429 mpfr_t n; mpfr_init(n);
2430 ; return 0; }
2432 if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433 rm -rf conftest*
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 rm -rf conftest*
2439 echo "$ac_t""no" 1>&6; have_gmp=no
2441 rm -f conftest*
2442 LIBS="$saved_LIBS"
2444 CFLAGS="$saved_CFLAGS"
2446 # Flags needed for both GMP and/or MPFR
2450 # By default, C is the only stage 1 language.
2451 stage1_languages=c
2454 # Figure out what language subdirectories are present.
2455 # Look if the user specified --enable-languages="..."; if not, use
2456 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2457 # go away some day.
2458 # NB: embedded tabs in this IF block -- do not untabify
2459 if test -d ${srcdir}/gcc; then
2460 if test x"${enable_languages+set}" != xset; then
2461 if test x"${LANGUAGES+set}" = xset; then
2462 enable_languages="${LANGUAGES}"
2463 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2464 else
2465 enable_languages=all
2467 else
2468 if test x"${enable_languages}" = x ||
2469 test x"${enable_languages}" = xyes;
2470 then
2471 echo configure.in: --enable-languages needs at least one language argument 1>&2
2472 exit 1
2475 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2477 # 'f95' is the old name for the 'fortran' language. We issue a warning
2478 # and make the substitution.
2479 case ,${enable_languages}, in
2480 *,f95,*)
2481 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2482 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2484 esac
2486 # First scan to see if an enabled language requires some other language.
2487 # We assume that a given config-lang.in will list all the language
2488 # front ends it requires, even if some are required indirectly.
2489 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2490 case ${lang_frag} in
2491 ..) ;;
2492 # The odd quoting in the next line works around
2493 # an apparent bug in bash 1.12 on linux.
2494 ${srcdir}/gcc/[*]/config-lang.in) ;;
2496 # From the config-lang.in, get $language, $lang_requires
2497 language=
2498 lang_requires=
2499 . ${lang_frag}
2500 for other in ${lang_requires} ; do
2501 case ,${enable_languages}, in
2502 *,$other,*) ;;
2503 *,all,*) ;;
2504 *,$language,*)
2505 echo " \`$other' language required by \`$language'; enabling" 1>&2
2506 enable_languages="${enable_languages},${other}"
2508 esac
2509 done
2511 esac
2512 done
2514 new_enable_languages=c
2515 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2516 potential_languages=c
2518 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2519 case ${lang_frag} in
2520 ..) ;;
2521 # The odd quoting in the next line works around
2522 # an apparent bug in bash 1.12 on linux.
2523 ${srcdir}/gcc/[*]/config-lang.in) ;;
2525 # From the config-lang.in, get $language, $target_libs,
2526 # $lang_dirs, $boot_language, and $build_by_default
2527 language=
2528 target_libs=
2529 lang_dirs=
2530 subdir_requires=
2531 boot_language=
2532 build_by_default=
2533 need_gmp=
2534 . ${lang_frag}
2535 potential_languages="${potential_languages},${language}"
2536 # This is quite sensitive to the ordering of the case statement arms.
2537 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2538 *::*:*)
2539 echo "${lang_frag} doesn't set \$language." 1>&2
2540 exit 1
2542 *:ada:no:*)
2543 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2544 add_this_lang=no
2546 *,${language},*:*:*:*)
2547 # Language was explicitly selected; include it.
2548 add_this_lang=yes
2550 *,all,*:*:*:no)
2551 # 'all' was selected, but this is not a default language
2552 # so do not include it.
2553 add_this_lang=no
2555 *,all,*:*:*:*)
2556 # 'all' was selected and this is a default language; include it.
2557 add_this_lang=yes
2560 add_this_lang=no
2562 esac
2564 # Disable languages that need other directories if these aren't available.
2565 for i in $subdir_requires; do
2566 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2567 case ,${enable_languages}, in
2568 *,${language},*)
2569 # Specifically requested language; tell them.
2570 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2573 # Silently disable.
2574 add_this_lang=no
2576 esac
2577 done
2579 # Disable languages that need GMP if it isn't available.
2580 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2581 *,${language},*:no:yes)
2582 # Specifically requested language; tell them.
2583 { echo "configure: error: GMP 4.1 and MPFR 2.2.1 or newer versions required by $language" 1>&2; exit 1; }
2585 *:no:yes)
2586 # Silently disable.
2587 add_this_lang=no
2589 esac
2591 # Disable a language that is unsupported by the target.
2592 case " $unsupported_languages " in
2593 *" $language "*)
2594 add_this_lang=no
2596 esac
2598 case $add_this_lang in
2600 # Remove language-dependent dirs.
2601 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2604 new_enable_languages="$new_enable_languages,$language"
2605 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2606 case ${boot_language} in
2607 yes)
2608 # Add to (comma-separated) list of stage 1 languages.
2609 stage1_languages="${stage1_languages},${language}"
2611 esac
2613 esac
2615 esac
2616 done
2618 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2619 if test "x$missing_languages" != x; then
2620 { echo "configure: error:
2621 The following requested languages could not be built: ${missing_languages}
2622 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2625 if test "x$new_enable_languages" != "x$enable_languages"; then
2626 echo The following languages will be built: ${new_enable_languages}
2628 enable_languages="$new_enable_languages"
2629 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2632 # Handle --disable-<component> generically.
2633 for dir in $configdirs $build_configdirs $target_configdirs ; do
2634 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2635 if eval test x\${enable_${dirname}} "=" xno ; then
2636 noconfigdirs="$noconfigdirs $dir"
2638 done
2640 # Check for Boehm's garbage collector
2641 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2642 if test "${enable_objc_gc+set}" = set; then
2643 enableval="$enable_objc_gc"
2644 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2645 *,objc,*:*:yes:*target-boehm-gc*)
2646 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2648 esac
2652 # Make sure we only build Boehm's garbage collector if required.
2653 case ,${enable_languages},:${enable_objc_gc} in
2654 *,objc,*:yes)
2655 # Keep target-boehm-gc if requested for Objective-C.
2658 # Otherwise remove target-boehm-gc depending on target-libjava.
2659 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2660 noconfigdirs="$noconfigdirs target-boehm-gc"
2663 esac
2665 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2666 # $build_configdirs and $target_configdirs.
2667 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2669 notsupp=""
2670 for dir in . $skipdirs $noconfigdirs ; do
2671 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2672 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2673 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2674 if test -r $srcdir/$dirname/configure ; then
2675 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2676 true
2677 else
2678 notsupp="$notsupp $dir"
2682 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2683 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2684 if test -r $srcdir/$dirname/configure ; then
2685 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2686 true
2687 else
2688 notsupp="$notsupp $dir"
2692 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2693 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2694 if test -r $srcdir/$dirname/configure ; then
2695 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2696 true
2697 else
2698 notsupp="$notsupp $dir"
2702 done
2704 # Sometimes the tools are distributed with libiberty but with no other
2705 # libraries. In that case, we don't want to build target-libiberty.
2706 if test -n "${target_configdirs}" ; then
2707 others=
2708 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2709 if test "$i" != "libiberty" ; then
2710 if test -r $srcdir/$i/configure ; then
2711 others=yes;
2712 break;
2715 done
2716 if test -z "${others}" ; then
2717 target_configdirs=
2721 # Quietly strip out all directories which aren't configurable in this tree.
2722 # This relies on all configurable subdirectories being autoconfiscated, which
2723 # is now the case.
2724 build_configdirs_all="$build_configdirs"
2725 build_configdirs=
2726 for i in ${build_configdirs_all} ; do
2727 j=`echo $i | sed -e s/build-//g`
2728 if test -f ${srcdir}/$j/configure ; then
2729 build_configdirs="${build_configdirs} $i"
2731 done
2733 configdirs_all="$configdirs"
2734 configdirs=
2735 for i in ${configdirs_all} ; do
2736 if test -f ${srcdir}/$i/configure ; then
2737 configdirs="${configdirs} $i"
2739 done
2741 target_configdirs_all="$target_configdirs"
2742 target_configdirs=
2743 for i in ${target_configdirs_all} ; do
2744 j=`echo $i | sed -e s/target-//g`
2745 if test -f ${srcdir}/$j/configure ; then
2746 target_configdirs="${target_configdirs} $i"
2748 done
2750 # Produce a warning message for the subdirs we can't configure.
2751 # This isn't especially interesting in the Cygnus tree, but in the individual
2752 # FSF releases, it's important to let people know when their machine isn't
2753 # supported by the one or two programs in a package.
2755 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2756 # If $appdirs is non-empty, at least one of those directories must still
2757 # be configured, or we error out. (E.g., if the gas release supports a
2758 # specified target in some subdirs but not the gas subdir, we shouldn't
2759 # pretend that all is well.)
2760 if test -n "$appdirs" ; then
2761 for dir in $appdirs ; do
2762 if test -r $dir/Makefile.in ; then
2763 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2764 appdirs=""
2765 break
2767 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2768 appdirs=""
2769 break
2772 done
2773 if test -n "$appdirs" ; then
2774 echo "*** This configuration is not supported by this package." 1>&2
2775 exit 1
2778 # Okay, some application will build, or we don't care to check. Still
2779 # notify of subdirs not getting built.
2780 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2781 echo " ${notsupp}" 1>&2
2782 echo " (Any other directories should still work fine.)" 1>&2
2785 case "$host" in
2786 *msdosdjgpp*)
2787 enable_gdbtk=no ;;
2788 esac
2790 copy_dirs=
2792 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2793 if test "${with_build_sysroot+set}" = set; then
2794 withval="$with_build_sysroot"
2795 if test x"$withval" != x ; then
2796 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2798 else
2799 SYSROOT_CFLAGS_FOR_TARGET=
2804 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2805 # the named directory are copied to $(tooldir)/sys-include.
2806 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2807 if test x${is_cross_compiler} = xno ; then
2808 echo 1>&2 '***' --with-headers is only supported when cross compiling
2809 exit 1
2811 if test x"${with_headers}" != xyes ; then
2812 case "${exec_prefixoption}" in
2813 "") x=${prefix} ;;
2814 *) x=${exec_prefix} ;;
2815 esac
2816 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2820 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2821 # the name directories are copied to $(tooldir)/lib. Multiple directories
2822 # are permitted.
2823 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2824 if test x${is_cross_compiler} = xno ; then
2825 echo 1>&2 '***' --with-libs is only supported when cross compiling
2826 exit 1
2828 if test x"${with_libs}" != xyes ; then
2829 # Copy the libraries in reverse order, so that files in the first named
2830 # library override files in subsequent libraries.
2831 case "${exec_prefixoption}" in
2832 "") x=${prefix} ;;
2833 *) x=${exec_prefix} ;;
2834 esac
2835 for l in ${with_libs}; do
2836 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2837 done
2841 # Set with_gnu_as and with_gnu_ld as appropriate.
2843 # This is done by determining whether or not the appropriate directory
2844 # is available, and by checking whether or not specific configurations
2845 # have requested that this magic not happen.
2847 # The command line options always override the explicit settings in
2848 # configure.in, and the settings in configure.in override this magic.
2850 # If the default for a toolchain is to use GNU as and ld, and you don't
2851 # want to do that, then you should use the --without-gnu-as and
2852 # --without-gnu-ld options for the configure script.
2854 if test x${use_gnu_as} = x &&
2855 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2856 with_gnu_as=yes
2857 extra_host_args="$extra_host_args --with-gnu-as"
2860 if test x${use_gnu_ld} = x &&
2861 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2862 with_gnu_ld=yes
2863 extra_host_args="$extra_host_args --with-gnu-ld"
2866 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2867 # can detect this case.
2869 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2870 with_newlib=yes
2871 extra_host_args="$extra_host_args --with-newlib"
2874 # Handle ${copy_dirs}
2875 set fnord ${copy_dirs}
2876 shift
2877 while test $# != 0 ; do
2878 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2880 else
2881 echo Copying $1 to $2
2883 # Use the install script to create the directory and all required
2884 # parent directories.
2885 if test -d $2 ; then
2887 else
2888 echo >config.temp
2889 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2892 # Copy the directory, assuming we have tar.
2893 # FIXME: Should we use B in the second tar? Not all systems support it.
2894 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2896 # It is the responsibility of the user to correctly adjust all
2897 # symlinks. If somebody can figure out how to handle them correctly
2898 # here, feel free to add the code.
2900 echo $1 > $2/COPIED
2902 shift; shift
2903 done
2905 # Determine a target-dependent exec_prefix that the installed
2906 # gcc will search in. Keep this list sorted by triplet, with
2907 # the *-*-osname triplets last.
2908 md_exec_prefix=
2909 case "${target}" in
2910 alpha*-*-*vms*)
2911 md_exec_prefix=/gnu/lib/gcc-lib
2913 i3456786-pc-msdosdjgpp*)
2914 md_exec_prefix=/dev/env/DJDIR/bin
2916 i3456786-*-sco3.2v5*)
2917 if test $with_gnu_as = yes; then
2918 md_exec_prefix=/usr/gnu/bin
2919 else
2920 md_exec_prefix=/usr/ccs/bin/elf
2924 mn10300-*-* | \
2925 powerpc-*-chorusos* | \
2926 powerpc*-*-eabi* | \
2927 powerpc*-*-sysv* | \
2928 powerpc*-*-kaos* | \
2929 s390x-ibm-tpf*)
2930 md_exec_prefix=/usr/ccs/bin
2932 sparc64-*-elf*)
2934 v850*-*-*)
2935 md_exec_prefix=/usr/ccs/bin
2937 xtensa-*-elf*)
2940 *-*-beos* | \
2941 *-*-elf* | \
2942 *-*-hpux* | \
2943 *-*-netware* | \
2944 *-*-nto-qnx* | \
2945 *-*-rtems* | \
2946 *-*-solaris2* | \
2947 *-*-sysv45* | \
2948 *-*-vxworks* | \
2949 *-wrs-windiss)
2950 md_exec_prefix=/usr/ccs/bin
2952 esac
2954 extra_arflags_for_target=
2955 extra_nmflags_for_target=
2956 extra_ranlibflags_for_target=
2957 target_makefile_frag=/dev/null
2958 case "${target}" in
2959 *-*-netware*)
2960 target_makefile_frag="config/mt-netware"
2962 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2963 target_makefile_frag="config/mt-gnu"
2965 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2966 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2967 # commands to handle both 32-bit and 64-bit objects. These flags are
2968 # harmless if we're using GNU nm or ar.
2969 extra_arflags_for_target=" -X32_64"
2970 extra_nmflags_for_target=" -B -X32_64"
2972 *-*-darwin*)
2973 # ranlib from Darwin requires the -c flag to look at common symbols.
2974 extra_ranlibflags_for_target=" -c"
2976 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2977 target_makefile_frag="config/mt-wince"
2979 esac
2981 alphaieee_frag=/dev/null
2982 case $target in
2983 alpha*-*-*)
2984 # This just makes sure to use the -mieee option to build target libs.
2985 # This should probably be set individually by each library.
2986 alphaieee_frag="config/mt-alphaieee"
2988 esac
2990 # If --enable-target-optspace always use -Os instead of -O2 to build
2991 # the target libraries, similarly if it is not specified, use -Os
2992 # on selected platforms.
2993 ospace_frag=/dev/null
2994 case "${enable_target_optspace}:${target}" in
2995 yes:*)
2996 ospace_frag="config/mt-ospace"
2998 :d30v-*)
2999 ospace_frag="config/mt-d30v"
3001 :m32r-* | :d10v-* | :fr30-*)
3002 ospace_frag="config/mt-ospace"
3004 no:* | :*)
3007 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3009 esac
3011 # Default to using --with-stabs for certain targets.
3012 if test x${with_stabs} = x ; then
3013 case "${target}" in
3014 mips*-*-irix[56]*)
3016 mips*-*-* | alpha*-*-osf*)
3017 with_stabs=yes;
3018 extra_host_args="${extra_host_args} --with-stabs"
3020 esac
3023 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3024 # them automatically.
3025 case "${host}" in
3026 hppa*64*-*-hpux11*)
3027 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3029 esac
3031 # Some systems (e.g., one of the i386-aix systems the gas testers are
3032 # using) don't handle "\$" correctly, so don't use it here.
3033 tooldir='${exec_prefix}'/${target_alias}
3034 build_tooldir=${tooldir}
3036 # Create a .gdbinit file which runs the one in srcdir
3037 # and tells GDB to look there for source files.
3039 if test -r ${srcdir}/.gdbinit ; then
3040 case ${srcdir} in
3041 .) ;;
3042 *) cat > ./.gdbinit <<EOF
3043 # ${NO_EDIT}
3044 dir ${srcdir}
3045 dir .
3046 source ${srcdir}/.gdbinit
3049 esac
3052 # Make sure that the compiler is able to generate an executable. If it
3053 # can't, we are probably in trouble. We don't care whether we can run the
3054 # executable--we might be using a cross compiler--we only care whether it
3055 # can be created. At this point the main configure script has set CC.
3056 we_are_ok=no
3057 echo "int main () { return 0; }" > conftest.c
3058 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3059 if test $? = 0 ; then
3060 if test -s conftest || test -s conftest.exe ; then
3061 we_are_ok=yes
3064 case $we_are_ok in
3066 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3067 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3068 rm -f conftest*
3069 exit 1
3071 esac
3072 rm -f conftest*
3074 # The Solaris /usr/ucb/cc compiler does not appear to work.
3075 case "${host}" in
3076 sparc-sun-solaris2*)
3077 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3078 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3079 could_use=
3080 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3081 if test -d /opt/cygnus/bin ; then
3082 if test "$could_use" = "" ; then
3083 could_use="/opt/cygnus/bin"
3084 else
3085 could_use="$could_use or /opt/cygnus/bin"
3088 if test "$could_use" = "" ; then
3089 echo "Warning: compilation may fail because you're using"
3090 echo "/usr/ucb/cc. You should change your PATH or CC "
3091 echo "variable and rerun configure."
3092 else
3093 echo "Warning: compilation may fail because you're using"
3094 echo "/usr/ucb/cc, when you should use the C compiler from"
3095 echo "$could_use. You should change your"
3096 echo "PATH or CC variable and rerun configure."
3100 esac
3102 case "${host}" in
3103 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3104 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3105 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3106 esac
3108 # Record target_configdirs and the configure arguments for target and
3109 # build configuration in Makefile.
3110 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3111 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3113 # Determine whether gdb needs tk/tcl or not.
3114 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3115 # and in that case we want gdb to be built without tk. Ugh!
3116 # In fact I believe gdb is the *only* package directly dependent on tk,
3117 # so we should be able to put the 'maybe's in unconditionally and
3118 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3119 # 100% sure that that's safe though.
3121 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3122 case "$enable_gdbtk" in
3124 GDB_TK="" ;;
3125 yes)
3126 GDB_TK="${gdb_tk}" ;;
3128 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3129 # distro. Eventually someone will fix this and move Insight, nee
3130 # gdbtk to a separate directory.
3131 if test -d ${srcdir}/gdb/gdbtk ; then
3132 GDB_TK="${gdb_tk}"
3133 else
3134 GDB_TK=""
3137 esac
3138 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3139 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3141 # Strip out unwanted targets.
3143 # While at that, we remove Makefiles if we were started for recursive
3144 # configuration, so that the top-level Makefile reconfigures them,
3145 # like we used to do when configure itself was recursive.
3147 # Loop over modules. $extrasub must be used with care, limiting as
3148 # much as possible the usage of range addresses. That's because autoconf
3149 # splits the sed script to overcome limits in the number of commands,
3150 # and relying on carefully-timed sed passes may turn out to be very hard
3151 # to maintain later. In this particular case, you just have to be careful
3152 # not to nest @if/@endif pairs, because configure will not warn you at all.
3154 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3155 if test "${enable_bootstrap+set}" = set; then
3156 enableval="$enable_bootstrap"
3158 else
3159 enable_bootstrap=default
3163 # Issue errors and warnings for invalid/strange bootstrap combinations.
3164 case "$configdirs" in
3165 *gcc*) have_compiler=yes ;;
3166 *) have_compiler=no ;;
3167 esac
3169 case "$have_compiler:$host:$target:$enable_bootstrap" in
3170 *:*:*:no) ;;
3172 # Default behavior. Enable bootstrap if we have a compiler
3173 # and we are in a native configuration.
3174 yes:$build:$build:default)
3175 enable_bootstrap=yes ;;
3177 *:*:*:default)
3178 enable_bootstrap=no ;;
3180 # We have a compiler and we are in a native configuration, bootstrap is ok
3181 yes:$build:$build:yes)
3184 # Other configurations, but we have a compiler. Assume the user knows
3185 # what he's doing.
3186 yes:*:*:yes)
3187 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3190 # No compiler: if they passed --enable-bootstrap explicitly, fail
3191 no:*:*:yes)
3192 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3194 # Fail if wrong command line
3196 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3198 esac
3200 # Adjust the toplevel makefile according to whether bootstrap was selected.
3201 case "$enable_bootstrap" in
3202 yes)
3203 bootstrap_suffix=bootstrap ;;
3205 bootstrap_suffix=no-bootstrap ;;
3206 esac
3208 for module in ${build_configdirs} ; do
3209 if test -z "${no_recursion}" \
3210 && test -f ${build_subdir}/${module}/Makefile; then
3211 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3212 rm -f ${build_subdir}/${module}/Makefile
3214 extrasub="$extrasub
3215 /^@if build-$module\$/d
3216 /^@endif build-$module\$/d
3217 /^@if build-$module-$bootstrap_suffix\$/d
3218 /^@endif build-$module-$bootstrap_suffix\$/d"
3219 done
3220 for module in ${configdirs} ; do
3221 if test -z "${no_recursion}"; then
3222 for file in stage*-${module}/Makefile ${module}/Makefile; do
3223 if test -f ${file}; then
3224 echo 1>&2 "*** removing ${file} to force reconfigure"
3225 rm -f ${file}
3227 done
3229 extrasub="$extrasub
3230 /^@if $module\$/d
3231 /^@endif $module\$/d
3232 /^@if $module-$bootstrap_suffix\$/d
3233 /^@endif $module-$bootstrap_suffix\$/d"
3234 done
3235 for module in ${target_configdirs} ; do
3236 if test -z "${no_recursion}" \
3237 && test -f ${target_subdir}/${module}/Makefile; then
3238 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3239 rm -f ${target_subdir}/${module}/Makefile
3241 extrasub="$extrasub
3242 /^@if target-$module\$/d
3243 /^@endif target-$module\$/d
3244 /^@if target-$module-$bootstrap_suffix\$/d
3245 /^@endif target-$module-$bootstrap_suffix\$/d"
3246 done
3248 extrasub="$extrasub
3249 /^@if /,/^@endif /d"
3251 # Create the serialization dependencies. This uses a temporary file.
3253 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3254 if test "${enable_serial_configure+set}" = set; then
3255 enableval="$enable_serial_configure"
3260 case ${enable_serial_configure} in
3261 yes)
3262 enable_serial_build_configure=yes
3263 enable_serial_host_configure=yes
3264 enable_serial_target_configure=yes
3266 esac
3268 # These force 'configure's to be done one at a time, to avoid problems
3269 # with contention over a shared config.cache.
3270 rm -f serdep.tmp
3271 echo '# serdep.tmp' > serdep.tmp
3272 olditem=
3273 test "x${enable_serial_build_configure}" = xyes &&
3274 for item in ${build_configdirs} ; do
3275 case ${olditem} in
3276 "") ;;
3277 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3278 esac
3279 olditem=${item}
3280 done
3281 olditem=
3282 test "x${enable_serial_host_configure}" = xyes &&
3283 for item in ${configdirs} ; do
3284 case ${olditem} in
3285 "") ;;
3286 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3287 esac
3288 olditem=${item}
3289 done
3290 olditem=
3291 test "x${enable_serial_target_configure}" = xyes &&
3292 for item in ${target_configdirs} ; do
3293 case ${olditem} in
3294 "") ;;
3295 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3296 esac
3297 olditem=${item}
3298 done
3299 serialization_dependencies=serdep.tmp
3302 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3303 # target and nonopt. These are the ones we might not want to pass
3304 # down to subconfigures. Also strip program-prefix, program-suffix,
3305 # and program-transform-name, so that we can pass down a consistent
3306 # program-transform-name. If autoconf has put single quotes around
3307 # any of these arguments (because they contain shell metacharacters)
3308 # then this will fail; in practice this only happens for
3309 # --program-transform-name, so be sure to override --program-transform-name
3310 # at the end of the argument list.
3311 # These will be expanded by make, so quote '$'.
3312 cat <<\EOF_SED > conftestsed
3313 s/ --no[^ ]*/ /g
3314 s/ --c[a-z-]*[= ][^ ]*//g
3315 s/ --sr[a-z-]*[= ][^ ]*//g
3316 s/ --ho[a-z-]*[= ][^ ]*//g
3317 s/ --bu[a-z-]*[= ][^ ]*//g
3318 s/ --t[a-z-]*[= ][^ ]*//g
3319 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3320 s/ -cache-file[= ][^ ]*//g
3321 s/ -srcdir[= ][^ ]*//g
3322 s/ -host[= ][^ ]*//g
3323 s/ -build[= ][^ ]*//g
3324 s/ -target[= ][^ ]*//g
3325 s/ -program-prefix[= ][^ ]*//g
3326 s/ -program-suffix[= ][^ ]*//g
3327 s/ -program-transform-name[= ][^ ]*//g
3328 s/ [^' -][^ ]* / /
3329 s/^ *//;s/ *$//
3330 s,\$,$$,g
3331 EOF_SED
3332 sed -f conftestsed <<EOF_SED > conftestsed.out
3333 ${ac_configure_args}
3334 EOF_SED
3335 baseargs=`cat conftestsed.out`
3336 rm -f conftestsed conftestsed.out
3338 # Add in --program-transform-name, after --program-prefix and
3339 # --program-suffix have been applied to it. Autoconf has already
3340 # doubled dollar signs and backslashes in program_transform_name; we want
3341 # the backslashes un-doubled, and then the entire thing wrapped in single
3342 # quotes, because this will be expanded first by make and then by the shell.
3343 # Also, because we want to override the logic in subdir configure scripts to
3344 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3345 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3346 ${program_transform_name}
3347 EOF_SED
3348 gcc_transform_name=`cat conftestsed.out`
3349 rm -f conftestsed.out
3350 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3352 # For the build-side libraries, we just need to pretend we're native,
3353 # and not use the same cache file. Multilibs are neither needed nor
3354 # desired.
3355 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3357 # For host modules, accept cache file option, or specification as blank.
3358 case "${cache_file}" in
3359 "") # empty
3360 cache_file_option="" ;;
3361 /* | [A-Za-z]:[\\/]* ) # absolute path
3362 cache_file_option="--cache-file=${cache_file}" ;;
3363 *) # relative path
3364 cache_file_option="--cache-file=../${cache_file}" ;;
3365 esac
3367 # Host dirs don't like to share a cache file either, horribly enough.
3368 # This seems to be due to autoconf 2.5x stupidity.
3369 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3371 target_configargs=${baseargs}
3373 # Passing a --with-cross-host argument lets the target libraries know
3374 # whether they are being built with a cross-compiler or being built
3375 # native. However, it would be better to use other mechanisms to make the
3376 # sorts of decisions they want to make on this basis. Please consider
3377 # this option to be deprecated. FIXME.
3378 if test x${is_cross_compiler} = xyes ; then
3379 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3382 # Default to --enable-multilib.
3383 if test x${enable_multilib} = x ; then
3384 target_configargs="--enable-multilib ${target_configargs}"
3387 # Pass --with-newlib if appropriate. Note that target_configdirs has
3388 # changed from the earlier setting of with_newlib.
3389 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3390 target_configargs="--with-newlib ${target_configargs}"
3393 # Different target subdirs use different values of certain variables
3394 # (notably CXX). Worse, multilibs use *lots* of different values.
3395 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3396 # it doesn't automatically accept command-line overrides of them.
3397 # This means it's not safe for target subdirs to share a cache file,
3398 # which is disgusting, but there you have it. Hopefully this can be
3399 # fixed in future. It's still worthwhile to use a cache file for each
3400 # directory. I think.
3402 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3403 # We need to pass --target, as newer autoconf's requires consistency
3404 # for target_alias and gcc doesn't manage it consistently.
3405 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3407 FLAGS_FOR_TARGET=
3408 case " $target_configdirs " in
3409 *" newlib "*)
3410 case " $target_configargs " in
3411 *" --with-newlib "*)
3412 case "$target" in
3413 *-cygwin*)
3414 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' ;;
3415 esac
3417 # If we're not building GCC, don't discard standard headers.
3418 if test -d ${srcdir}/gcc; then
3419 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3421 if test "${build}" != "${host}"; then
3422 # On Canadian crosses, CC_FOR_TARGET will have already been set
3423 # by `configure', so we won't have an opportunity to add -Bgcc/
3424 # to it. This is right: we don't want to search that directory
3425 # for binaries, but we want the header files in there, so add
3426 # them explicitly.
3427 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3429 # Someone might think of using the pre-installed headers on
3430 # Canadian crosses, in case the installed compiler is not fully
3431 # compatible with the compiler being built. In this case, it
3432 # would be better to flag an error than risking having
3433 # incompatible object files being constructed. We can't
3434 # guarantee that an error will be flagged, but let's hope the
3435 # compiler will do it, when presented with incompatible header
3436 # files.
3440 case "${target}-${is_cross_compiler}" in
3441 i[3456789]86-*-linux*-no)
3442 # Here host == target, so we don't need to build gcc,
3443 # so we don't want to discard standard headers.
3444 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3447 # If we're building newlib, use its generic headers last, but search
3448 # for any libc-related directories first (so make it the last -B
3449 # switch).
3450 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3452 esac
3454 esac
3456 esac
3457 case "$target" in
3458 *-mingw*)
3459 # Can't be handled as Cygwin above since Mingw does not use newlib.
3460 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' ;;
3461 esac
3463 # Allow the user to override the flags for
3464 # our build compiler if desired.
3465 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3467 # On Canadian crosses, we'll be searching the right directories for
3468 # the previously-installed cross compiler, so don't bother to add
3469 # flags for directories within the install tree of the compiler
3470 # being built; programs in there won't even run.
3471 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3472 # Search for pre-installed headers if nothing else fits.
3473 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3476 if test "x${use_gnu_ld}" = x &&
3477 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3478 # Arrange for us to find uninstalled linker scripts.
3479 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3482 # Search for other target-specific linker scripts and such.
3483 case "${target}" in
3484 m32c-*-* )
3485 if test -d ${srcdir}/libgloss/m32c; then
3486 # This is for crt0.o
3487 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3488 # This is for r8c.ld
3489 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3490 # This is for libnosys.a
3491 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3494 esac
3496 # Makefile fragments.
3497 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3499 eval fragval=\$$frag
3500 if test $fragval != /dev/null; then
3501 eval $frag=${srcdir}/$fragval
3503 done
3509 # Miscellanea: directories, flags, etc.
3517 # Build module lists & subconfigure args.
3521 # Host module lists & subconfigure args.
3525 # Target module lists & subconfigure args.
3529 # Build tools.
3533 # Generate default definitions for YACC, M4, LEX and other programs that run
3534 # on the build machine. These are used if the Makefile can't locate these
3535 # programs in objdir.
3536 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3538 for ac_prog in 'bison -y' byacc yacc
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3543 echo "configure:3518: checking for $ac_word" >&5
3544 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3546 else
3547 if test -n "$YACC"; then
3548 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3549 else
3550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3551 ac_dummy="$PATH"
3552 for ac_dir in $ac_dummy; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if test -f $ac_dir/$ac_word; then
3555 ac_cv_prog_YACC="$ac_prog"
3556 break
3558 done
3559 IFS="$ac_save_ifs"
3562 YACC="$ac_cv_prog_YACC"
3563 if test -n "$YACC"; then
3564 echo "$ac_t""$YACC" 1>&6
3565 else
3566 echo "$ac_t""no" 1>&6
3569 test -n "$YACC" && break
3570 done
3571 test -n "$YACC" || YACC="$MISSING bison -y"
3573 case " $build_configdirs " in
3574 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3575 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3576 esac
3578 for ac_prog in bison
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3583 echo "configure:3558: checking for $ac_word" >&5
3584 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586 else
3587 if test -n "$BISON"; then
3588 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3589 else
3590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3591 ac_dummy="$PATH"
3592 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 if test -f $ac_dir/$ac_word; then
3595 ac_cv_prog_BISON="$ac_prog"
3596 break
3598 done
3599 IFS="$ac_save_ifs"
3602 BISON="$ac_cv_prog_BISON"
3603 if test -n "$BISON"; then
3604 echo "$ac_t""$BISON" 1>&6
3605 else
3606 echo "$ac_t""no" 1>&6
3609 test -n "$BISON" && break
3610 done
3611 test -n "$BISON" || BISON="$MISSING bison"
3613 case " $build_configdirs " in
3614 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3615 esac
3617 for ac_prog in gm4 gnum4 m4
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3622 echo "configure:3597: checking for $ac_word" >&5
3623 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3625 else
3626 if test -n "$M4"; then
3627 ac_cv_prog_M4="$M4" # Let the user override the test.
3628 else
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3630 ac_dummy="$PATH"
3631 for ac_dir in $ac_dummy; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f $ac_dir/$ac_word; then
3634 ac_cv_prog_M4="$ac_prog"
3635 break
3637 done
3638 IFS="$ac_save_ifs"
3641 M4="$ac_cv_prog_M4"
3642 if test -n "$M4"; then
3643 echo "$ac_t""$M4" 1>&6
3644 else
3645 echo "$ac_t""no" 1>&6
3648 test -n "$M4" && break
3649 done
3650 test -n "$M4" || M4="$MISSING m4"
3652 case " $build_configdirs " in
3653 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3654 esac
3656 for ac_prog in flex lex
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3636: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 if test -n "$LEX"; then
3666 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3667 else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_LEX="$ac_prog"
3674 break
3676 done
3677 IFS="$ac_save_ifs"
3680 LEX="$ac_cv_prog_LEX"
3681 if test -n "$LEX"; then
3682 echo "$ac_t""$LEX" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3687 test -n "$LEX" && break
3688 done
3689 test -n "$LEX" || LEX="$MISSING flex"
3691 case " $build_configdirs " in
3692 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3693 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3694 esac
3696 for ac_prog in flex
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3701 echo "configure:3676: checking for $ac_word" >&5
3702 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 if test -n "$FLEX"; then
3706 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3707 else
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3709 ac_dummy="$PATH"
3710 for ac_dir in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir=.
3712 if test -f $ac_dir/$ac_word; then
3713 ac_cv_prog_FLEX="$ac_prog"
3714 break
3716 done
3717 IFS="$ac_save_ifs"
3720 FLEX="$ac_cv_prog_FLEX"
3721 if test -n "$FLEX"; then
3722 echo "$ac_t""$FLEX" 1>&6
3723 else
3724 echo "$ac_t""no" 1>&6
3727 test -n "$FLEX" && break
3728 done
3729 test -n "$FLEX" || FLEX="$MISSING flex"
3731 case " $build_configdirs " in
3732 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3733 esac
3735 for ac_prog in makeinfo
3737 # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3715: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744 if test -n "$MAKEINFO"; then
3745 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3746 else
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_MAKEINFO="$ac_prog"
3753 break
3755 done
3756 IFS="$ac_save_ifs"
3759 MAKEINFO="$ac_cv_prog_MAKEINFO"
3760 if test -n "$MAKEINFO"; then
3761 echo "$ac_t""$MAKEINFO" 1>&6
3762 else
3763 echo "$ac_t""no" 1>&6
3766 test -n "$MAKEINFO" && break
3767 done
3768 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3770 case " $build_configdirs " in
3771 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3774 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3775 # higher, else we use the "missing" dummy.
3776 if ${MAKEINFO} --version \
3777 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3779 else
3780 MAKEINFO="$MISSING makeinfo"
3784 esac
3786 # FIXME: expect and dejagnu may become build tools?
3788 for ac_prog in expect
3790 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy $ac_prog; ac_word=$2
3792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3793 echo "configure:3768: checking for $ac_word" >&5
3794 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3796 else
3797 if test -n "$EXPECT"; then
3798 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3799 else
3800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3801 ac_dummy="$PATH"
3802 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_prog_EXPECT="$ac_prog"
3806 break
3808 done
3809 IFS="$ac_save_ifs"
3812 EXPECT="$ac_cv_prog_EXPECT"
3813 if test -n "$EXPECT"; then
3814 echo "$ac_t""$EXPECT" 1>&6
3815 else
3816 echo "$ac_t""no" 1>&6
3819 test -n "$EXPECT" && break
3820 done
3821 test -n "$EXPECT" || EXPECT="expect"
3823 case " $configdirs " in
3824 *" expect "*)
3825 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3827 esac
3829 for ac_prog in runtest
3831 # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3834 echo "configure:3809: checking for $ac_word" >&5
3835 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 if test -n "$RUNTEST"; then
3839 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3840 else
3841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3842 ac_dummy="$PATH"
3843 for ac_dir in $ac_dummy; do
3844 test -z "$ac_dir" && ac_dir=.
3845 if test -f $ac_dir/$ac_word; then
3846 ac_cv_prog_RUNTEST="$ac_prog"
3847 break
3849 done
3850 IFS="$ac_save_ifs"
3853 RUNTEST="$ac_cv_prog_RUNTEST"
3854 if test -n "$RUNTEST"; then
3855 echo "$ac_t""$RUNTEST" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3860 test -n "$RUNTEST" && break
3861 done
3862 test -n "$RUNTEST" || RUNTEST="runtest"
3864 case " $configdirs " in
3865 *" dejagnu "*)
3866 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3868 esac
3871 # Host tools.
3872 ncn_tool_prefix=
3873 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3874 ncn_target_tool_prefix=
3875 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3877 for ncn_progname in ar; do
3878 if test -n "$ncn_tool_prefix"; then
3879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3880 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3882 echo "configure:3857: checking for $ac_word" >&5
3883 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3886 if test -n "$AR"; then
3887 ac_cv_prog_AR="$AR" # Let the user override the test.
3888 else
3889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3890 ac_dummy="$PATH"
3891 for ac_dir in $ac_dummy; do
3892 test -z "$ac_dir" && ac_dir=.
3893 if test -f $ac_dir/$ac_word; then
3894 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3895 break
3897 done
3898 IFS="$ac_save_ifs"
3901 AR="$ac_cv_prog_AR"
3902 if test -n "$AR"; then
3903 echo "$ac_t""$AR" 1>&6
3904 else
3905 echo "$ac_t""no" 1>&6
3909 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3911 set dummy ${ncn_progname}; ac_word=$2
3912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3913 echo "configure:3888: checking for $ac_word" >&5
3914 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3916 else
3917 if test -n "$AR"; then
3918 ac_cv_prog_AR="$AR" # Let the user override the test.
3919 else
3920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3921 ac_dummy="$PATH"
3922 for ac_dir in $ac_dummy; do
3923 test -z "$ac_dir" && ac_dir=.
3924 if test -f $ac_dir/$ac_word; then
3925 ac_cv_prog_AR="${ncn_progname}"
3926 break
3928 done
3929 IFS="$ac_save_ifs"
3932 AR="$ac_cv_prog_AR"
3933 if test -n "$AR"; then
3934 echo "$ac_t""$AR" 1>&6
3935 else
3936 echo "$ac_t""no" 1>&6
3940 test -n "$ac_cv_prog_AR" && break
3941 done
3943 if test -z "$ac_cv_prog_AR" ; then
3944 set dummy ar
3945 if test $build = $host ; then
3946 AR="$2"
3947 else
3948 AR="${ncn_tool_prefix}$2"
3952 for ncn_progname in as; do
3953 if test -n "$ncn_tool_prefix"; then
3954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3955 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957 echo "configure:3932: checking for $ac_word" >&5
3958 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960 else
3961 if test -n "$AS"; then
3962 ac_cv_prog_AS="$AS" # Let the user override the test.
3963 else
3964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3965 ac_dummy="$PATH"
3966 for ac_dir in $ac_dummy; do
3967 test -z "$ac_dir" && ac_dir=.
3968 if test -f $ac_dir/$ac_word; then
3969 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3970 break
3972 done
3973 IFS="$ac_save_ifs"
3976 AS="$ac_cv_prog_AS"
3977 if test -n "$AS"; then
3978 echo "$ac_t""$AS" 1>&6
3979 else
3980 echo "$ac_t""no" 1>&6
3984 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3986 set dummy ${ncn_progname}; ac_word=$2
3987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3988 echo "configure:3963: checking for $ac_word" >&5
3989 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3991 else
3992 if test -n "$AS"; then
3993 ac_cv_prog_AS="$AS" # Let the user override the test.
3994 else
3995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3996 ac_dummy="$PATH"
3997 for ac_dir in $ac_dummy; do
3998 test -z "$ac_dir" && ac_dir=.
3999 if test -f $ac_dir/$ac_word; then
4000 ac_cv_prog_AS="${ncn_progname}"
4001 break
4003 done
4004 IFS="$ac_save_ifs"
4007 AS="$ac_cv_prog_AS"
4008 if test -n "$AS"; then
4009 echo "$ac_t""$AS" 1>&6
4010 else
4011 echo "$ac_t""no" 1>&6
4015 test -n "$ac_cv_prog_AS" && break
4016 done
4018 if test -z "$ac_cv_prog_AS" ; then
4019 set dummy as
4020 if test $build = $host ; then
4021 AS="$2"
4022 else
4023 AS="${ncn_tool_prefix}$2"
4027 for ncn_progname in dlltool; do
4028 if test -n "$ncn_tool_prefix"; then
4029 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4030 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4032 echo "configure:4007: checking for $ac_word" >&5
4033 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 if test -n "$DLLTOOL"; then
4037 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4038 else
4039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4040 ac_dummy="$PATH"
4041 for ac_dir in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir=.
4043 if test -f $ac_dir/$ac_word; then
4044 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4045 break
4047 done
4048 IFS="$ac_save_ifs"
4051 DLLTOOL="$ac_cv_prog_DLLTOOL"
4052 if test -n "$DLLTOOL"; then
4053 echo "$ac_t""$DLLTOOL" 1>&6
4054 else
4055 echo "$ac_t""no" 1>&6
4059 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4061 set dummy ${ncn_progname}; ac_word=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4038: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4066 else
4067 if test -n "$DLLTOOL"; then
4068 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4069 else
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4071 ac_dummy="$PATH"
4072 for ac_dir in $ac_dummy; do
4073 test -z "$ac_dir" && ac_dir=.
4074 if test -f $ac_dir/$ac_word; then
4075 ac_cv_prog_DLLTOOL="${ncn_progname}"
4076 break
4078 done
4079 IFS="$ac_save_ifs"
4082 DLLTOOL="$ac_cv_prog_DLLTOOL"
4083 if test -n "$DLLTOOL"; then
4084 echo "$ac_t""$DLLTOOL" 1>&6
4085 else
4086 echo "$ac_t""no" 1>&6
4090 test -n "$ac_cv_prog_DLLTOOL" && break
4091 done
4093 if test -z "$ac_cv_prog_DLLTOOL" ; then
4094 set dummy dlltool
4095 if test $build = $host ; then
4096 DLLTOOL="$2"
4097 else
4098 DLLTOOL="${ncn_tool_prefix}$2"
4102 for ncn_progname in ld; do
4103 if test -n "$ncn_tool_prefix"; then
4104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4105 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4107 echo "configure:4082: checking for $ac_word" >&5
4108 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 if test -n "$LD"; then
4112 ac_cv_prog_LD="$LD" # Let the user override the test.
4113 else
4114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4115 ac_dummy="$PATH"
4116 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f $ac_dir/$ac_word; then
4119 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4120 break
4122 done
4123 IFS="$ac_save_ifs"
4126 LD="$ac_cv_prog_LD"
4127 if test -n "$LD"; then
4128 echo "$ac_t""$LD" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4134 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4136 set dummy ${ncn_progname}; ac_word=$2
4137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4138 echo "configure:4113: checking for $ac_word" >&5
4139 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4141 else
4142 if test -n "$LD"; then
4143 ac_cv_prog_LD="$LD" # Let the user override the test.
4144 else
4145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4146 ac_dummy="$PATH"
4147 for ac_dir in $ac_dummy; do
4148 test -z "$ac_dir" && ac_dir=.
4149 if test -f $ac_dir/$ac_word; then
4150 ac_cv_prog_LD="${ncn_progname}"
4151 break
4153 done
4154 IFS="$ac_save_ifs"
4157 LD="$ac_cv_prog_LD"
4158 if test -n "$LD"; then
4159 echo "$ac_t""$LD" 1>&6
4160 else
4161 echo "$ac_t""no" 1>&6
4165 test -n "$ac_cv_prog_LD" && break
4166 done
4168 if test -z "$ac_cv_prog_LD" ; then
4169 set dummy ld
4170 if test $build = $host ; then
4171 LD="$2"
4172 else
4173 LD="${ncn_tool_prefix}$2"
4177 for ncn_progname in lipo; do
4178 if test -n "$ncn_tool_prefix"; then
4179 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4180 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4182 echo "configure:4157: checking for $ac_word" >&5
4183 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 if test -n "$LIPO"; then
4187 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4188 else
4189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4190 ac_dummy="$PATH"
4191 for ac_dir in $ac_dummy; do
4192 test -z "$ac_dir" && ac_dir=.
4193 if test -f $ac_dir/$ac_word; then
4194 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4195 break
4197 done
4198 IFS="$ac_save_ifs"
4201 LIPO="$ac_cv_prog_LIPO"
4202 if test -n "$LIPO"; then
4203 echo "$ac_t""$LIPO" 1>&6
4204 else
4205 echo "$ac_t""no" 1>&6
4209 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4211 set dummy ${ncn_progname}; ac_word=$2
4212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4213 echo "configure:4188: checking for $ac_word" >&5
4214 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 if test -n "$LIPO"; then
4218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4219 else
4220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4221 ac_dummy="$PATH"
4222 for ac_dir in $ac_dummy; do
4223 test -z "$ac_dir" && ac_dir=.
4224 if test -f $ac_dir/$ac_word; then
4225 ac_cv_prog_LIPO="${ncn_progname}"
4226 break
4228 done
4229 IFS="$ac_save_ifs"
4232 LIPO="$ac_cv_prog_LIPO"
4233 if test -n "$LIPO"; then
4234 echo "$ac_t""$LIPO" 1>&6
4235 else
4236 echo "$ac_t""no" 1>&6
4240 test -n "$ac_cv_prog_LIPO" && break
4241 done
4243 if test -z "$ac_cv_prog_LIPO" ; then
4244 set dummy lipo
4245 if test $build = $host ; then
4246 LIPO="$2"
4247 else
4248 LIPO="${ncn_tool_prefix}$2"
4252 for ncn_progname in nm; do
4253 if test -n "$ncn_tool_prefix"; then
4254 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4255 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4257 echo "configure:4232: checking for $ac_word" >&5
4258 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 if test -n "$NM"; then
4262 ac_cv_prog_NM="$NM" # Let the user override the test.
4263 else
4264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 ac_dummy="$PATH"
4266 for ac_dir in $ac_dummy; do
4267 test -z "$ac_dir" && ac_dir=.
4268 if test -f $ac_dir/$ac_word; then
4269 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4270 break
4272 done
4273 IFS="$ac_save_ifs"
4276 NM="$ac_cv_prog_NM"
4277 if test -n "$NM"; then
4278 echo "$ac_t""$NM" 1>&6
4279 else
4280 echo "$ac_t""no" 1>&6
4284 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4286 set dummy ${ncn_progname}; ac_word=$2
4287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4288 echo "configure:4263: checking for $ac_word" >&5
4289 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4291 else
4292 if test -n "$NM"; then
4293 ac_cv_prog_NM="$NM" # Let the user override the test.
4294 else
4295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4296 ac_dummy="$PATH"
4297 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/$ac_word; then
4300 ac_cv_prog_NM="${ncn_progname}"
4301 break
4303 done
4304 IFS="$ac_save_ifs"
4307 NM="$ac_cv_prog_NM"
4308 if test -n "$NM"; then
4309 echo "$ac_t""$NM" 1>&6
4310 else
4311 echo "$ac_t""no" 1>&6
4315 test -n "$ac_cv_prog_NM" && break
4316 done
4318 if test -z "$ac_cv_prog_NM" ; then
4319 set dummy nm
4320 if test $build = $host ; then
4321 NM="$2"
4322 else
4323 NM="${ncn_tool_prefix}$2"
4327 for ncn_progname in ranlib; do
4328 if test -n "$ncn_tool_prefix"; then
4329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4330 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4332 echo "configure:4307: checking for $ac_word" >&5
4333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4335 else
4336 if test -n "$RANLIB"; then
4337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4338 else
4339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4340 ac_dummy="$PATH"
4341 for ac_dir in $ac_dummy; do
4342 test -z "$ac_dir" && ac_dir=.
4343 if test -f $ac_dir/$ac_word; then
4344 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4345 break
4347 done
4348 IFS="$ac_save_ifs"
4351 RANLIB="$ac_cv_prog_RANLIB"
4352 if test -n "$RANLIB"; then
4353 echo "$ac_t""$RANLIB" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4359 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4361 set dummy ${ncn_progname}; ac_word=$2
4362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4363 echo "configure:4338: checking for $ac_word" >&5
4364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4366 else
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4369 else
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4371 ac_dummy="$PATH"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
4375 ac_cv_prog_RANLIB="${ncn_progname}"
4376 break
4378 done
4379 IFS="$ac_save_ifs"
4382 RANLIB="$ac_cv_prog_RANLIB"
4383 if test -n "$RANLIB"; then
4384 echo "$ac_t""$RANLIB" 1>&6
4385 else
4386 echo "$ac_t""no" 1>&6
4390 test -n "$ac_cv_prog_RANLIB" && break
4391 done
4393 if test -z "$ac_cv_prog_RANLIB" ; then
4394 RANLIB=":"
4397 for ncn_progname in strip; do
4398 if test -n "$ncn_tool_prefix"; then
4399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4400 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4402 echo "configure:4377: checking for $ac_word" >&5
4403 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 if test -n "$STRIP"; then
4407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4408 else
4409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4410 ac_dummy="$PATH"
4411 for ac_dir in $ac_dummy; do
4412 test -z "$ac_dir" && ac_dir=.
4413 if test -f $ac_dir/$ac_word; then
4414 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4415 break
4417 done
4418 IFS="$ac_save_ifs"
4421 STRIP="$ac_cv_prog_STRIP"
4422 if test -n "$STRIP"; then
4423 echo "$ac_t""$STRIP" 1>&6
4424 else
4425 echo "$ac_t""no" 1>&6
4429 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4431 set dummy ${ncn_progname}; ac_word=$2
4432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4433 echo "configure:4408: checking for $ac_word" >&5
4434 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4436 else
4437 if test -n "$STRIP"; then
4438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4439 else
4440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4441 ac_dummy="$PATH"
4442 for ac_dir in $ac_dummy; do
4443 test -z "$ac_dir" && ac_dir=.
4444 if test -f $ac_dir/$ac_word; then
4445 ac_cv_prog_STRIP="${ncn_progname}"
4446 break
4448 done
4449 IFS="$ac_save_ifs"
4452 STRIP="$ac_cv_prog_STRIP"
4453 if test -n "$STRIP"; then
4454 echo "$ac_t""$STRIP" 1>&6
4455 else
4456 echo "$ac_t""no" 1>&6
4460 test -n "$ac_cv_prog_STRIP" && break
4461 done
4463 if test -z "$ac_cv_prog_STRIP" ; then
4464 STRIP=":"
4467 for ncn_progname in windres; do
4468 if test -n "$ncn_tool_prefix"; then
4469 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4470 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4472 echo "configure:4447: checking for $ac_word" >&5
4473 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4475 else
4476 if test -n "$WINDRES"; then
4477 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4478 else
4479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4480 ac_dummy="$PATH"
4481 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 if test -f $ac_dir/$ac_word; then
4484 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4485 break
4487 done
4488 IFS="$ac_save_ifs"
4491 WINDRES="$ac_cv_prog_WINDRES"
4492 if test -n "$WINDRES"; then
4493 echo "$ac_t""$WINDRES" 1>&6
4494 else
4495 echo "$ac_t""no" 1>&6
4499 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4501 set dummy ${ncn_progname}; ac_word=$2
4502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4503 echo "configure:4478: checking for $ac_word" >&5
4504 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507 if test -n "$WINDRES"; then
4508 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4509 else
4510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4511 ac_dummy="$PATH"
4512 for ac_dir in $ac_dummy; do
4513 test -z "$ac_dir" && ac_dir=.
4514 if test -f $ac_dir/$ac_word; then
4515 ac_cv_prog_WINDRES="${ncn_progname}"
4516 break
4518 done
4519 IFS="$ac_save_ifs"
4522 WINDRES="$ac_cv_prog_WINDRES"
4523 if test -n "$WINDRES"; then
4524 echo "$ac_t""$WINDRES" 1>&6
4525 else
4526 echo "$ac_t""no" 1>&6
4530 test -n "$ac_cv_prog_WINDRES" && break
4531 done
4533 if test -z "$ac_cv_prog_WINDRES" ; then
4534 set dummy windres
4535 if test $build = $host ; then
4536 WINDRES="$2"
4537 else
4538 WINDRES="${ncn_tool_prefix}$2"
4542 for ncn_progname in objcopy; do
4543 if test -n "$ncn_tool_prefix"; then
4544 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4545 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4547 echo "configure:4522: checking for $ac_word" >&5
4548 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4550 else
4551 if test -n "$OBJCOPY"; then
4552 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4553 else
4554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4555 ac_dummy="$PATH"
4556 for ac_dir in $ac_dummy; do
4557 test -z "$ac_dir" && ac_dir=.
4558 if test -f $ac_dir/$ac_word; then
4559 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4560 break
4562 done
4563 IFS="$ac_save_ifs"
4566 OBJCOPY="$ac_cv_prog_OBJCOPY"
4567 if test -n "$OBJCOPY"; then
4568 echo "$ac_t""$OBJCOPY" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4574 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4576 set dummy ${ncn_progname}; ac_word=$2
4577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4578 echo "configure:4553: checking for $ac_word" >&5
4579 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581 else
4582 if test -n "$OBJCOPY"; then
4583 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4584 else
4585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4586 ac_dummy="$PATH"
4587 for ac_dir in $ac_dummy; do
4588 test -z "$ac_dir" && ac_dir=.
4589 if test -f $ac_dir/$ac_word; then
4590 ac_cv_prog_OBJCOPY="${ncn_progname}"
4591 break
4593 done
4594 IFS="$ac_save_ifs"
4597 OBJCOPY="$ac_cv_prog_OBJCOPY"
4598 if test -n "$OBJCOPY"; then
4599 echo "$ac_t""$OBJCOPY" 1>&6
4600 else
4601 echo "$ac_t""no" 1>&6
4605 test -n "$ac_cv_prog_OBJCOPY" && break
4606 done
4608 if test -z "$ac_cv_prog_OBJCOPY" ; then
4609 set dummy objcopy
4610 if test $build = $host ; then
4611 OBJCOPY="$2"
4612 else
4613 OBJCOPY="${ncn_tool_prefix}$2"
4617 for ncn_progname in objdump; do
4618 if test -n "$ncn_tool_prefix"; then
4619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4620 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4622 echo "configure:4597: checking for $ac_word" >&5
4623 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625 else
4626 if test -n "$OBJDUMP"; then
4627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4628 else
4629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4630 ac_dummy="$PATH"
4631 for ac_dir in $ac_dummy; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4634 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4635 break
4637 done
4638 IFS="$ac_save_ifs"
4641 OBJDUMP="$ac_cv_prog_OBJDUMP"
4642 if test -n "$OBJDUMP"; then
4643 echo "$ac_t""$OBJDUMP" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4649 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4651 set dummy ${ncn_progname}; ac_word=$2
4652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4653 echo "configure:4628: checking for $ac_word" >&5
4654 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4656 else
4657 if test -n "$OBJDUMP"; then
4658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4659 else
4660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4661 ac_dummy="$PATH"
4662 for ac_dir in $ac_dummy; do
4663 test -z "$ac_dir" && ac_dir=.
4664 if test -f $ac_dir/$ac_word; then
4665 ac_cv_prog_OBJDUMP="${ncn_progname}"
4666 break
4668 done
4669 IFS="$ac_save_ifs"
4672 OBJDUMP="$ac_cv_prog_OBJDUMP"
4673 if test -n "$OBJDUMP"; then
4674 echo "$ac_t""$OBJDUMP" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4680 test -n "$ac_cv_prog_OBJDUMP" && break
4681 done
4683 if test -z "$ac_cv_prog_OBJDUMP" ; then
4684 set dummy objdump
4685 if test $build = $host ; then
4686 OBJDUMP="$2"
4687 else
4688 OBJDUMP="${ncn_tool_prefix}$2"
4698 # Target tools.
4699 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4700 if test "${with_build_time_tools+set}" = set; then
4701 withval="$with_build_time_tools"
4702 case x"$withval" in
4703 x/*) ;;
4705 with_build_time_tools=
4706 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4708 esac
4709 else
4710 with_build_time_tools=
4714 if test -n "$with_build_time_tools"; then
4715 for ncn_progname in cc gcc; do
4716 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4717 echo "configure:4692: checking for ${ncn_progname} in $with_build_time_tools" >&5
4718 if test -x $with_build_time_tools/${ncn_progname}; then
4719 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4720 echo "$ac_t""yes" 1>&6
4721 break
4722 else
4723 echo "$ac_t""no" 1>&6
4725 done
4728 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4729 for ncn_progname in cc gcc; do
4730 if test -n "$ncn_target_tool_prefix"; then
4731 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4734 echo "configure:4709: checking for $ac_word" >&5
4735 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 if test -n "$CC_FOR_TARGET"; then
4739 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4740 else
4741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4742 ac_dummy="$PATH"
4743 for ac_dir in $ac_dummy; do
4744 test -z "$ac_dir" && ac_dir=.
4745 if test -f $ac_dir/$ac_word; then
4746 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4747 break
4749 done
4750 IFS="$ac_save_ifs"
4753 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4754 if test -n "$CC_FOR_TARGET"; then
4755 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4756 else
4757 echo "$ac_t""no" 1>&6
4761 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4763 set dummy ${ncn_progname}; ac_word=$2
4764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4765 echo "configure:4740: checking for $ac_word" >&5
4766 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4768 else
4769 if test -n "$CC_FOR_TARGET"; then
4770 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4771 else
4772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4773 ac_dummy="$PATH"
4774 for ac_dir in $ac_dummy; do
4775 test -z "$ac_dir" && ac_dir=.
4776 if test -f $ac_dir/$ac_word; then
4777 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4778 break
4780 done
4781 IFS="$ac_save_ifs"
4784 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4785 if test -n "$CC_FOR_TARGET"; then
4786 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4787 else
4788 echo "$ac_t""no" 1>&6
4792 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4793 done
4796 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4797 set dummy cc gcc
4798 if test $build = $target ; then
4799 CC_FOR_TARGET="$2"
4800 else
4801 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4803 else
4804 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4807 if test -n "$with_build_time_tools"; then
4808 for ncn_progname in c++ g++ cxx gxx; do
4809 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4810 echo "configure:4785: checking for ${ncn_progname} in $with_build_time_tools" >&5
4811 if test -x $with_build_time_tools/${ncn_progname}; then
4812 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4813 echo "$ac_t""yes" 1>&6
4814 break
4815 else
4816 echo "$ac_t""no" 1>&6
4818 done
4821 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4822 for ncn_progname in c++ g++ cxx gxx; do
4823 if test -n "$ncn_target_tool_prefix"; then
4824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4827 echo "configure:4802: checking for $ac_word" >&5
4828 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4830 else
4831 if test -n "$CXX_FOR_TARGET"; then
4832 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4833 else
4834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4835 ac_dummy="$PATH"
4836 for ac_dir in $ac_dummy; do
4837 test -z "$ac_dir" && ac_dir=.
4838 if test -f $ac_dir/$ac_word; then
4839 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4840 break
4842 done
4843 IFS="$ac_save_ifs"
4846 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4847 if test -n "$CXX_FOR_TARGET"; then
4848 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4849 else
4850 echo "$ac_t""no" 1>&6
4854 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4856 set dummy ${ncn_progname}; ac_word=$2
4857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4858 echo "configure:4833: checking for $ac_word" >&5
4859 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4861 else
4862 if test -n "$CXX_FOR_TARGET"; then
4863 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4864 else
4865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4866 ac_dummy="$PATH"
4867 for ac_dir in $ac_dummy; do
4868 test -z "$ac_dir" && ac_dir=.
4869 if test -f $ac_dir/$ac_word; then
4870 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4871 break
4873 done
4874 IFS="$ac_save_ifs"
4877 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4878 if test -n "$CXX_FOR_TARGET"; then
4879 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4880 else
4881 echo "$ac_t""no" 1>&6
4885 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4886 done
4889 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4890 set dummy c++ g++ cxx gxx
4891 if test $build = $target ; then
4892 CXX_FOR_TARGET="$2"
4893 else
4894 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4896 else
4897 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4900 if test -n "$with_build_time_tools"; then
4901 for ncn_progname in gcc; do
4902 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4903 echo "configure:4878: checking for ${ncn_progname} in $with_build_time_tools" >&5
4904 if test -x $with_build_time_tools/${ncn_progname}; then
4905 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4906 echo "$ac_t""yes" 1>&6
4907 break
4908 else
4909 echo "$ac_t""no" 1>&6
4911 done
4914 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4915 for ncn_progname in gcc; do
4916 if test -n "$ncn_target_tool_prefix"; then
4917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4920 echo "configure:4895: checking for $ac_word" >&5
4921 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 if test -n "$GCC_FOR_TARGET"; then
4925 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4926 else
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4928 ac_dummy="$PATH"
4929 for ac_dir in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4933 break
4935 done
4936 IFS="$ac_save_ifs"
4939 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4940 if test -n "$GCC_FOR_TARGET"; then
4941 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4942 else
4943 echo "$ac_t""no" 1>&6
4947 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4949 set dummy ${ncn_progname}; ac_word=$2
4950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951 echo "configure:4926: checking for $ac_word" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 if test -n "$GCC_FOR_TARGET"; then
4956 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4957 else
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4964 break
4966 done
4967 IFS="$ac_save_ifs"
4970 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4971 if test -n "$GCC_FOR_TARGET"; then
4972 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4978 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4979 done
4982 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4983 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4984 else
4985 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4988 if test -n "$with_build_time_tools"; then
4989 for ncn_progname in gcj; do
4990 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4991 echo "configure:4966: checking for ${ncn_progname} in $with_build_time_tools" >&5
4992 if test -x $with_build_time_tools/${ncn_progname}; then
4993 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4994 echo "$ac_t""yes" 1>&6
4995 break
4996 else
4997 echo "$ac_t""no" 1>&6
4999 done
5002 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5003 for ncn_progname in gcj; do
5004 if test -n "$ncn_target_tool_prefix"; then
5005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5006 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5008 echo "configure:4983: checking for $ac_word" >&5
5009 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5011 else
5012 if test -n "$GCJ_FOR_TARGET"; then
5013 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5014 else
5015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5016 ac_dummy="$PATH"
5017 for ac_dir in $ac_dummy; do
5018 test -z "$ac_dir" && ac_dir=.
5019 if test -f $ac_dir/$ac_word; then
5020 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5021 break
5023 done
5024 IFS="$ac_save_ifs"
5027 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5028 if test -n "$GCJ_FOR_TARGET"; then
5029 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5030 else
5031 echo "$ac_t""no" 1>&6
5035 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5037 set dummy ${ncn_progname}; ac_word=$2
5038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5039 echo "configure:5014: checking for $ac_word" >&5
5040 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5042 else
5043 if test -n "$GCJ_FOR_TARGET"; then
5044 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5045 else
5046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5047 ac_dummy="$PATH"
5048 for ac_dir in $ac_dummy; do
5049 test -z "$ac_dir" && ac_dir=.
5050 if test -f $ac_dir/$ac_word; then
5051 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5052 break
5054 done
5055 IFS="$ac_save_ifs"
5058 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5059 if test -n "$GCJ_FOR_TARGET"; then
5060 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5061 else
5062 echo "$ac_t""no" 1>&6
5066 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5067 done
5070 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5071 set dummy gcj
5072 if test $build = $target ; then
5073 GCJ_FOR_TARGET="$2"
5074 else
5075 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5077 else
5078 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5081 if test -n "$with_build_time_tools"; then
5082 for ncn_progname in gfortran; do
5083 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5084 echo "configure:5059: checking for ${ncn_progname} in $with_build_time_tools" >&5
5085 if test -x $with_build_time_tools/${ncn_progname}; then
5086 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5087 echo "$ac_t""yes" 1>&6
5088 break
5089 else
5090 echo "$ac_t""no" 1>&6
5092 done
5095 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5096 for ncn_progname in gfortran; do
5097 if test -n "$ncn_target_tool_prefix"; then
5098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5101 echo "configure:5076: checking for $ac_word" >&5
5102 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105 if test -n "$GFORTRAN_FOR_TARGET"; then
5106 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5107 else
5108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5109 ac_dummy="$PATH"
5110 for ac_dir in $ac_dummy; do
5111 test -z "$ac_dir" && ac_dir=.
5112 if test -f $ac_dir/$ac_word; then
5113 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5114 break
5116 done
5117 IFS="$ac_save_ifs"
5120 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5121 if test -n "$GFORTRAN_FOR_TARGET"; then
5122 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5123 else
5124 echo "$ac_t""no" 1>&6
5128 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5130 set dummy ${ncn_progname}; ac_word=$2
5131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5132 echo "configure:5107: checking for $ac_word" >&5
5133 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5135 else
5136 if test -n "$GFORTRAN_FOR_TARGET"; then
5137 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5138 else
5139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5140 ac_dummy="$PATH"
5141 for ac_dir in $ac_dummy; do
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f $ac_dir/$ac_word; then
5144 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5145 break
5147 done
5148 IFS="$ac_save_ifs"
5151 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5152 if test -n "$GFORTRAN_FOR_TARGET"; then
5153 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5159 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5160 done
5163 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5164 set dummy gfortran
5165 if test $build = $target ; then
5166 GFORTRAN_FOR_TARGET="$2"
5167 else
5168 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5170 else
5171 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178 echo "#! /bin/sh" >conf$$.sh
5179 echo "exit 0" >>conf$$.sh
5180 chmod +x conf$$.sh
5181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182 PATH_SEPARATOR=';'
5183 else
5184 PATH_SEPARATOR=:
5186 rm -f conf$$.sh
5191 if test "x$exec_prefix" = xNONE; then
5192 if test "x$prefix" = xNONE; then
5193 gcc_cv_tool_prefix=$ac_default_prefix
5194 else
5195 gcc_cv_tool_prefix=$prefix
5197 else
5198 gcc_cv_tool_prefix=$exec_prefix
5201 # If there is no compiler in the tree, use the PATH only. In any
5202 # case, if there is no compiler in the tree nobody should use
5203 # AS_FOR_TARGET and LD_FOR_TARGET.
5204 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5205 gcc_version=`cat $srcdir/gcc/BASE-VER`
5206 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5207 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5208 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5209 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5210 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5211 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5212 else
5213 gcc_cv_tool_dirs=
5216 if test x$build = x$target && test -n "$md_exec_prefix"; then
5217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5222 cat > conftest.c << \EOF
5223 #ifdef __GNUC__
5224 gcc_yay;
5225 #endif
5227 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5228 have_gcc_for_target=yes
5229 else
5230 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5231 have_gcc_for_target=no
5233 rm conftest.c
5238 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5239 if test -n "$with_build_time_tools"; then
5240 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5241 echo "configure:5216: checking for ar in $with_build_time_tools" >&5
5242 if test -x $with_build_time_tools/ar; then
5243 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5244 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5245 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5249 elif test $build != $host && test $have_gcc_for_target = yes; then
5250 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5251 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5252 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5255 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5256 # Extract the first word of "ar", so it can be a program name with args.
5257 set dummy ar; ac_word=$2
5258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5259 echo "configure:5234: checking for $ac_word" >&5
5260 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263 case "$AR_FOR_TARGET" in
5265 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5267 ?:/*)
5268 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5272 ac_dummy="$gcc_cv_tool_dirs"
5273 for ac_dir in $ac_dummy; do
5274 test -z "$ac_dir" && ac_dir=.
5275 if test -f $ac_dir/$ac_word; then
5276 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5277 break
5279 done
5280 IFS="$ac_save_ifs"
5282 esac
5284 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5285 if test -n "$AR_FOR_TARGET"; then
5286 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5287 else
5288 echo "$ac_t""no" 1>&6
5292 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5293 if test -n "$with_build_time_tools"; then
5294 for ncn_progname in ar; do
5295 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5296 echo "configure:5271: checking for ${ncn_progname} in $with_build_time_tools" >&5
5297 if test -x $with_build_time_tools/${ncn_progname}; then
5298 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5299 echo "$ac_t""yes" 1>&6
5300 break
5301 else
5302 echo "$ac_t""no" 1>&6
5304 done
5307 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5308 for ncn_progname in ar; do
5309 if test -n "$ncn_target_tool_prefix"; then
5310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5313 echo "configure:5288: checking for $ac_word" >&5
5314 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5316 else
5317 if test -n "$AR_FOR_TARGET"; then
5318 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5319 else
5320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5321 ac_dummy="$PATH"
5322 for ac_dir in $ac_dummy; do
5323 test -z "$ac_dir" && ac_dir=.
5324 if test -f $ac_dir/$ac_word; then
5325 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5326 break
5328 done
5329 IFS="$ac_save_ifs"
5332 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5333 if test -n "$AR_FOR_TARGET"; then
5334 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5340 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5342 set dummy ${ncn_progname}; ac_word=$2
5343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5344 echo "configure:5319: checking for $ac_word" >&5
5345 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5347 else
5348 if test -n "$AR_FOR_TARGET"; then
5349 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5350 else
5351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5352 ac_dummy="$PATH"
5353 for ac_dir in $ac_dummy; do
5354 test -z "$ac_dir" && ac_dir=.
5355 if test -f $ac_dir/$ac_word; then
5356 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5357 break
5359 done
5360 IFS="$ac_save_ifs"
5363 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5364 if test -n "$AR_FOR_TARGET"; then
5365 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5371 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5372 done
5375 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5376 set dummy ar
5377 if test $build = $target ; then
5378 AR_FOR_TARGET="$2"
5379 else
5380 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5382 else
5383 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5386 else
5387 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5393 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5394 if test -n "$with_build_time_tools"; then
5395 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5396 echo "configure:5371: checking for as in $with_build_time_tools" >&5
5397 if test -x $with_build_time_tools/as; then
5398 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5399 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5400 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5401 else
5402 echo "$ac_t""no" 1>&6
5404 elif test $build != $host && test $have_gcc_for_target = yes; then
5405 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5406 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5407 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5410 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5411 # Extract the first word of "as", so it can be a program name with args.
5412 set dummy as; ac_word=$2
5413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5414 echo "configure:5389: checking for $ac_word" >&5
5415 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5417 else
5418 case "$AS_FOR_TARGET" in
5420 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5422 ?:/*)
5423 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5427 ac_dummy="$gcc_cv_tool_dirs"
5428 for ac_dir in $ac_dummy; do
5429 test -z "$ac_dir" && ac_dir=.
5430 if test -f $ac_dir/$ac_word; then
5431 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5432 break
5434 done
5435 IFS="$ac_save_ifs"
5437 esac
5439 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5440 if test -n "$AS_FOR_TARGET"; then
5441 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5447 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5448 if test -n "$with_build_time_tools"; then
5449 for ncn_progname in as; do
5450 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5451 echo "configure:5426: checking for ${ncn_progname} in $with_build_time_tools" >&5
5452 if test -x $with_build_time_tools/${ncn_progname}; then
5453 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5454 echo "$ac_t""yes" 1>&6
5455 break
5456 else
5457 echo "$ac_t""no" 1>&6
5459 done
5462 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5463 for ncn_progname in as; do
5464 if test -n "$ncn_target_tool_prefix"; then
5465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5466 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5468 echo "configure:5443: checking for $ac_word" >&5
5469 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5471 else
5472 if test -n "$AS_FOR_TARGET"; then
5473 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5474 else
5475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5476 ac_dummy="$PATH"
5477 for ac_dir in $ac_dummy; do
5478 test -z "$ac_dir" && ac_dir=.
5479 if test -f $ac_dir/$ac_word; then
5480 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5481 break
5483 done
5484 IFS="$ac_save_ifs"
5487 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5488 if test -n "$AS_FOR_TARGET"; then
5489 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5490 else
5491 echo "$ac_t""no" 1>&6
5495 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5497 set dummy ${ncn_progname}; ac_word=$2
5498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5499 echo "configure:5474: checking for $ac_word" >&5
5500 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5502 else
5503 if test -n "$AS_FOR_TARGET"; then
5504 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5505 else
5506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5507 ac_dummy="$PATH"
5508 for ac_dir in $ac_dummy; do
5509 test -z "$ac_dir" && ac_dir=.
5510 if test -f $ac_dir/$ac_word; then
5511 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5512 break
5514 done
5515 IFS="$ac_save_ifs"
5518 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5519 if test -n "$AS_FOR_TARGET"; then
5520 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5526 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5527 done
5530 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5531 set dummy as
5532 if test $build = $target ; then
5533 AS_FOR_TARGET="$2"
5534 else
5535 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5537 else
5538 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5541 else
5542 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5548 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5549 if test -n "$with_build_time_tools"; then
5550 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5551 echo "configure:5526: checking for dlltool in $with_build_time_tools" >&5
5552 if test -x $with_build_time_tools/dlltool; then
5553 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5554 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5555 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5559 elif test $build != $host && test $have_gcc_for_target = yes; then
5560 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5561 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5562 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5565 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5566 # Extract the first word of "dlltool", so it can be a program name with args.
5567 set dummy dlltool; ac_word=$2
5568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5569 echo "configure:5544: checking for $ac_word" >&5
5570 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5572 else
5573 case "$DLLTOOL_FOR_TARGET" in
5575 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5577 ?:/*)
5578 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5582 ac_dummy="$gcc_cv_tool_dirs"
5583 for ac_dir in $ac_dummy; do
5584 test -z "$ac_dir" && ac_dir=.
5585 if test -f $ac_dir/$ac_word; then
5586 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5587 break
5589 done
5590 IFS="$ac_save_ifs"
5592 esac
5594 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5595 if test -n "$DLLTOOL_FOR_TARGET"; then
5596 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5602 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5603 if test -n "$with_build_time_tools"; then
5604 for ncn_progname in dlltool; do
5605 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5606 echo "configure:5581: checking for ${ncn_progname} in $with_build_time_tools" >&5
5607 if test -x $with_build_time_tools/${ncn_progname}; then
5608 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5609 echo "$ac_t""yes" 1>&6
5610 break
5611 else
5612 echo "$ac_t""no" 1>&6
5614 done
5617 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5618 for ncn_progname in dlltool; do
5619 if test -n "$ncn_target_tool_prefix"; then
5620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5623 echo "configure:5598: checking for $ac_word" >&5
5624 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5626 else
5627 if test -n "$DLLTOOL_FOR_TARGET"; then
5628 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5629 else
5630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5631 ac_dummy="$PATH"
5632 for ac_dir in $ac_dummy; do
5633 test -z "$ac_dir" && ac_dir=.
5634 if test -f $ac_dir/$ac_word; then
5635 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5636 break
5638 done
5639 IFS="$ac_save_ifs"
5642 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5643 if test -n "$DLLTOOL_FOR_TARGET"; then
5644 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5645 else
5646 echo "$ac_t""no" 1>&6
5650 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5652 set dummy ${ncn_progname}; ac_word=$2
5653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5654 echo "configure:5629: checking for $ac_word" >&5
5655 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658 if test -n "$DLLTOOL_FOR_TARGET"; then
5659 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5660 else
5661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5662 ac_dummy="$PATH"
5663 for ac_dir in $ac_dummy; do
5664 test -z "$ac_dir" && ac_dir=.
5665 if test -f $ac_dir/$ac_word; then
5666 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5667 break
5669 done
5670 IFS="$ac_save_ifs"
5673 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5674 if test -n "$DLLTOOL_FOR_TARGET"; then
5675 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5676 else
5677 echo "$ac_t""no" 1>&6
5681 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5682 done
5685 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5686 set dummy dlltool
5687 if test $build = $target ; then
5688 DLLTOOL_FOR_TARGET="$2"
5689 else
5690 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5692 else
5693 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5696 else
5697 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5703 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5704 if test -n "$with_build_time_tools"; then
5705 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5706 echo "configure:5681: checking for ld in $with_build_time_tools" >&5
5707 if test -x $with_build_time_tools/ld; then
5708 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5709 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5710 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5711 else
5712 echo "$ac_t""no" 1>&6
5714 elif test $build != $host && test $have_gcc_for_target = yes; then
5715 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5716 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5717 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5720 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5721 # Extract the first word of "ld", so it can be a program name with args.
5722 set dummy ld; ac_word=$2
5723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5724 echo "configure:5699: checking for $ac_word" >&5
5725 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727 else
5728 case "$LD_FOR_TARGET" in
5730 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5732 ?:/*)
5733 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5737 ac_dummy="$gcc_cv_tool_dirs"
5738 for ac_dir in $ac_dummy; do
5739 test -z "$ac_dir" && ac_dir=.
5740 if test -f $ac_dir/$ac_word; then
5741 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5742 break
5744 done
5745 IFS="$ac_save_ifs"
5747 esac
5749 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5750 if test -n "$LD_FOR_TARGET"; then
5751 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5757 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5758 if test -n "$with_build_time_tools"; then
5759 for ncn_progname in ld; do
5760 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5761 echo "configure:5736: checking for ${ncn_progname} in $with_build_time_tools" >&5
5762 if test -x $with_build_time_tools/${ncn_progname}; then
5763 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5764 echo "$ac_t""yes" 1>&6
5765 break
5766 else
5767 echo "$ac_t""no" 1>&6
5769 done
5772 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5773 for ncn_progname in ld; do
5774 if test -n "$ncn_target_tool_prefix"; then
5775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5778 echo "configure:5753: checking for $ac_word" >&5
5779 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5781 else
5782 if test -n "$LD_FOR_TARGET"; then
5783 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5784 else
5785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5786 ac_dummy="$PATH"
5787 for ac_dir in $ac_dummy; do
5788 test -z "$ac_dir" && ac_dir=.
5789 if test -f $ac_dir/$ac_word; then
5790 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5791 break
5793 done
5794 IFS="$ac_save_ifs"
5797 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5798 if test -n "$LD_FOR_TARGET"; then
5799 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5800 else
5801 echo "$ac_t""no" 1>&6
5805 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5807 set dummy ${ncn_progname}; ac_word=$2
5808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5809 echo "configure:5784: checking for $ac_word" >&5
5810 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813 if test -n "$LD_FOR_TARGET"; then
5814 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5815 else
5816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5817 ac_dummy="$PATH"
5818 for ac_dir in $ac_dummy; do
5819 test -z "$ac_dir" && ac_dir=.
5820 if test -f $ac_dir/$ac_word; then
5821 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5822 break
5824 done
5825 IFS="$ac_save_ifs"
5828 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5829 if test -n "$LD_FOR_TARGET"; then
5830 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5831 else
5832 echo "$ac_t""no" 1>&6
5836 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5837 done
5840 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5841 set dummy ld
5842 if test $build = $target ; then
5843 LD_FOR_TARGET="$2"
5844 else
5845 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5847 else
5848 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5851 else
5852 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5858 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5859 if test -n "$with_build_time_tools"; then
5860 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5861 echo "configure:5836: checking for lipo in $with_build_time_tools" >&5
5862 if test -x $with_build_time_tools/lipo; then
5863 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5864 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5865 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5866 else
5867 echo "$ac_t""no" 1>&6
5869 elif test $build != $host && test $have_gcc_for_target = yes; then
5870 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5871 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5872 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5875 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5876 # Extract the first word of "lipo", so it can be a program name with args.
5877 set dummy lipo; ac_word=$2
5878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5879 echo "configure:5854: checking for $ac_word" >&5
5880 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 case "$LIPO_FOR_TARGET" in
5885 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5887 ?:/*)
5888 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5892 ac_dummy="$gcc_cv_tool_dirs"
5893 for ac_dir in $ac_dummy; do
5894 test -z "$ac_dir" && ac_dir=.
5895 if test -f $ac_dir/$ac_word; then
5896 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5897 break
5899 done
5900 IFS="$ac_save_ifs"
5902 esac
5904 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5905 if test -n "$LIPO_FOR_TARGET"; then
5906 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5907 else
5908 echo "$ac_t""no" 1>&6
5912 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5913 if test -n "$with_build_time_tools"; then
5914 for ncn_progname in lipo; do
5915 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5916 echo "configure:5891: checking for ${ncn_progname} in $with_build_time_tools" >&5
5917 if test -x $with_build_time_tools/${ncn_progname}; then
5918 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5919 echo "$ac_t""yes" 1>&6
5920 break
5921 else
5922 echo "$ac_t""no" 1>&6
5924 done
5927 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5928 for ncn_progname in lipo; do
5929 if test -n "$ncn_target_tool_prefix"; then
5930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5933 echo "configure:5908: checking for $ac_word" >&5
5934 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937 if test -n "$LIPO_FOR_TARGET"; then
5938 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5939 else
5940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5941 ac_dummy="$PATH"
5942 for ac_dir in $ac_dummy; do
5943 test -z "$ac_dir" && ac_dir=.
5944 if test -f $ac_dir/$ac_word; then
5945 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5946 break
5948 done
5949 IFS="$ac_save_ifs"
5952 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5953 if test -n "$LIPO_FOR_TARGET"; then
5954 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5955 else
5956 echo "$ac_t""no" 1>&6
5960 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5962 set dummy ${ncn_progname}; ac_word=$2
5963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5964 echo "configure:5939: checking for $ac_word" >&5
5965 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5967 else
5968 if test -n "$LIPO_FOR_TARGET"; then
5969 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5970 else
5971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5972 ac_dummy="$PATH"
5973 for ac_dir in $ac_dummy; do
5974 test -z "$ac_dir" && ac_dir=.
5975 if test -f $ac_dir/$ac_word; then
5976 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5977 break
5979 done
5980 IFS="$ac_save_ifs"
5983 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5984 if test -n "$LIPO_FOR_TARGET"; then
5985 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5986 else
5987 echo "$ac_t""no" 1>&6
5991 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5992 done
5995 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5996 set dummy lipo
5997 if test $build = $target ; then
5998 LIPO_FOR_TARGET="$2"
5999 else
6000 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
6002 else
6003 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
6006 else
6007 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
6013 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6014 if test -n "$with_build_time_tools"; then
6015 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
6016 echo "configure:5991: checking for nm in $with_build_time_tools" >&5
6017 if test -x $with_build_time_tools/nm; then
6018 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
6019 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6020 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6021 else
6022 echo "$ac_t""no" 1>&6
6024 elif test $build != $host && test $have_gcc_for_target = yes; then
6025 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
6026 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
6027 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6030 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6031 # Extract the first word of "nm", so it can be a program name with args.
6032 set dummy nm; ac_word=$2
6033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6034 echo "configure:6009: checking for $ac_word" >&5
6035 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6037 else
6038 case "$NM_FOR_TARGET" in
6040 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
6042 ?:/*)
6043 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6047 ac_dummy="$gcc_cv_tool_dirs"
6048 for ac_dir in $ac_dummy; do
6049 test -z "$ac_dir" && ac_dir=.
6050 if test -f $ac_dir/$ac_word; then
6051 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
6052 break
6054 done
6055 IFS="$ac_save_ifs"
6057 esac
6059 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6060 if test -n "$NM_FOR_TARGET"; then
6061 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6062 else
6063 echo "$ac_t""no" 1>&6
6067 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6068 if test -n "$with_build_time_tools"; then
6069 for ncn_progname in nm; do
6070 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6071 echo "configure:6046: checking for ${ncn_progname} in $with_build_time_tools" >&5
6072 if test -x $with_build_time_tools/${ncn_progname}; then
6073 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6074 echo "$ac_t""yes" 1>&6
6075 break
6076 else
6077 echo "$ac_t""no" 1>&6
6079 done
6082 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6083 for ncn_progname in nm; do
6084 if test -n "$ncn_target_tool_prefix"; then
6085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6086 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6088 echo "configure:6063: checking for $ac_word" >&5
6089 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6091 else
6092 if test -n "$NM_FOR_TARGET"; then
6093 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6094 else
6095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6096 ac_dummy="$PATH"
6097 for ac_dir in $ac_dummy; do
6098 test -z "$ac_dir" && ac_dir=.
6099 if test -f $ac_dir/$ac_word; then
6100 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6101 break
6103 done
6104 IFS="$ac_save_ifs"
6107 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6108 if test -n "$NM_FOR_TARGET"; then
6109 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6110 else
6111 echo "$ac_t""no" 1>&6
6115 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6117 set dummy ${ncn_progname}; ac_word=$2
6118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6119 echo "configure:6094: checking for $ac_word" >&5
6120 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6122 else
6123 if test -n "$NM_FOR_TARGET"; then
6124 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6125 else
6126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6127 ac_dummy="$PATH"
6128 for ac_dir in $ac_dummy; do
6129 test -z "$ac_dir" && ac_dir=.
6130 if test -f $ac_dir/$ac_word; then
6131 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6132 break
6134 done
6135 IFS="$ac_save_ifs"
6138 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6139 if test -n "$NM_FOR_TARGET"; then
6140 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6141 else
6142 echo "$ac_t""no" 1>&6
6146 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6147 done
6150 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6151 set dummy nm
6152 if test $build = $target ; then
6153 NM_FOR_TARGET="$2"
6154 else
6155 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6157 else
6158 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6161 else
6162 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6168 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6169 if test -n "$with_build_time_tools"; then
6170 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6171 echo "configure:6146: checking for objdump in $with_build_time_tools" >&5
6172 if test -x $with_build_time_tools/objdump; then
6173 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6174 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6175 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6176 else
6177 echo "$ac_t""no" 1>&6
6179 elif test $build != $host && test $have_gcc_for_target = yes; then
6180 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6181 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6182 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6185 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6186 # Extract the first word of "objdump", so it can be a program name with args.
6187 set dummy objdump; ac_word=$2
6188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6189 echo "configure:6164: checking for $ac_word" >&5
6190 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6192 else
6193 case "$OBJDUMP_FOR_TARGET" in
6195 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6197 ?:/*)
6198 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6202 ac_dummy="$gcc_cv_tool_dirs"
6203 for ac_dir in $ac_dummy; do
6204 test -z "$ac_dir" && ac_dir=.
6205 if test -f $ac_dir/$ac_word; then
6206 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6207 break
6209 done
6210 IFS="$ac_save_ifs"
6212 esac
6214 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6215 if test -n "$OBJDUMP_FOR_TARGET"; then
6216 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6217 else
6218 echo "$ac_t""no" 1>&6
6222 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6223 if test -n "$with_build_time_tools"; then
6224 for ncn_progname in objdump; do
6225 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6226 echo "configure:6201: checking for ${ncn_progname} in $with_build_time_tools" >&5
6227 if test -x $with_build_time_tools/${ncn_progname}; then
6228 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6229 echo "$ac_t""yes" 1>&6
6230 break
6231 else
6232 echo "$ac_t""no" 1>&6
6234 done
6237 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6238 for ncn_progname in objdump; do
6239 if test -n "$ncn_target_tool_prefix"; then
6240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6243 echo "configure:6218: checking for $ac_word" >&5
6244 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6246 else
6247 if test -n "$OBJDUMP_FOR_TARGET"; then
6248 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6249 else
6250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6251 ac_dummy="$PATH"
6252 for ac_dir in $ac_dummy; do
6253 test -z "$ac_dir" && ac_dir=.
6254 if test -f $ac_dir/$ac_word; then
6255 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6256 break
6258 done
6259 IFS="$ac_save_ifs"
6262 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6263 if test -n "$OBJDUMP_FOR_TARGET"; then
6264 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6265 else
6266 echo "$ac_t""no" 1>&6
6270 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6272 set dummy ${ncn_progname}; ac_word=$2
6273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6274 echo "configure:6249: checking for $ac_word" >&5
6275 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277 else
6278 if test -n "$OBJDUMP_FOR_TARGET"; then
6279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6280 else
6281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6282 ac_dummy="$PATH"
6283 for ac_dir in $ac_dummy; do
6284 test -z "$ac_dir" && ac_dir=.
6285 if test -f $ac_dir/$ac_word; then
6286 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6287 break
6289 done
6290 IFS="$ac_save_ifs"
6293 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6294 if test -n "$OBJDUMP_FOR_TARGET"; then
6295 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6301 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6302 done
6305 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6306 set dummy objdump
6307 if test $build = $target ; then
6308 OBJDUMP_FOR_TARGET="$2"
6309 else
6310 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6312 else
6313 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6316 else
6317 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6323 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6324 if test -n "$with_build_time_tools"; then
6325 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6326 echo "configure:6301: checking for ranlib in $with_build_time_tools" >&5
6327 if test -x $with_build_time_tools/ranlib; then
6328 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6329 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6330 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6334 elif test $build != $host && test $have_gcc_for_target = yes; then
6335 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6336 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6337 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6340 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6341 # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6344 echo "configure:6319: checking for $ac_word" >&5
6345 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6347 else
6348 case "$RANLIB_FOR_TARGET" in
6350 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6352 ?:/*)
6353 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6357 ac_dummy="$gcc_cv_tool_dirs"
6358 for ac_dir in $ac_dummy; do
6359 test -z "$ac_dir" && ac_dir=.
6360 if test -f $ac_dir/$ac_word; then
6361 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6362 break
6364 done
6365 IFS="$ac_save_ifs"
6367 esac
6369 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6370 if test -n "$RANLIB_FOR_TARGET"; then
6371 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6377 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6378 if test -n "$with_build_time_tools"; then
6379 for ncn_progname in ranlib; do
6380 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6381 echo "configure:6356: checking for ${ncn_progname} in $with_build_time_tools" >&5
6382 if test -x $with_build_time_tools/${ncn_progname}; then
6383 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6384 echo "$ac_t""yes" 1>&6
6385 break
6386 else
6387 echo "$ac_t""no" 1>&6
6389 done
6392 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6393 for ncn_progname in ranlib; do
6394 if test -n "$ncn_target_tool_prefix"; then
6395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6398 echo "configure:6373: checking for $ac_word" >&5
6399 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6401 else
6402 if test -n "$RANLIB_FOR_TARGET"; then
6403 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6404 else
6405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6406 ac_dummy="$PATH"
6407 for ac_dir in $ac_dummy; do
6408 test -z "$ac_dir" && ac_dir=.
6409 if test -f $ac_dir/$ac_word; then
6410 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6411 break
6413 done
6414 IFS="$ac_save_ifs"
6417 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6418 if test -n "$RANLIB_FOR_TARGET"; then
6419 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6420 else
6421 echo "$ac_t""no" 1>&6
6425 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6427 set dummy ${ncn_progname}; ac_word=$2
6428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6429 echo "configure:6404: checking for $ac_word" >&5
6430 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 if test -n "$RANLIB_FOR_TARGET"; then
6434 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6435 else
6436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6437 ac_dummy="$PATH"
6438 for ac_dir in $ac_dummy; do
6439 test -z "$ac_dir" && ac_dir=.
6440 if test -f $ac_dir/$ac_word; then
6441 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6442 break
6444 done
6445 IFS="$ac_save_ifs"
6448 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6449 if test -n "$RANLIB_FOR_TARGET"; then
6450 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6456 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6457 done
6460 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6461 set dummy ranlib
6462 if test $build = $target ; then
6463 RANLIB_FOR_TARGET="$2"
6464 else
6465 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6467 else
6468 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6471 else
6472 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6478 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6479 if test -n "$with_build_time_tools"; then
6480 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6481 echo "configure:6456: checking for strip in $with_build_time_tools" >&5
6482 if test -x $with_build_time_tools/strip; then
6483 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6484 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6485 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6486 else
6487 echo "$ac_t""no" 1>&6
6489 elif test $build != $host && test $have_gcc_for_target = yes; then
6490 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6491 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6492 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6495 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6496 # Extract the first word of "strip", so it can be a program name with args.
6497 set dummy strip; ac_word=$2
6498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6499 echo "configure:6474: checking for $ac_word" >&5
6500 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6502 else
6503 case "$STRIP_FOR_TARGET" in
6505 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6507 ?:/*)
6508 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6512 ac_dummy="$gcc_cv_tool_dirs"
6513 for ac_dir in $ac_dummy; do
6514 test -z "$ac_dir" && ac_dir=.
6515 if test -f $ac_dir/$ac_word; then
6516 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6517 break
6519 done
6520 IFS="$ac_save_ifs"
6522 esac
6524 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6525 if test -n "$STRIP_FOR_TARGET"; then
6526 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6527 else
6528 echo "$ac_t""no" 1>&6
6532 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6533 if test -n "$with_build_time_tools"; then
6534 for ncn_progname in strip; do
6535 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6536 echo "configure:6511: checking for ${ncn_progname} in $with_build_time_tools" >&5
6537 if test -x $with_build_time_tools/${ncn_progname}; then
6538 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6539 echo "$ac_t""yes" 1>&6
6540 break
6541 else
6542 echo "$ac_t""no" 1>&6
6544 done
6547 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6548 for ncn_progname in strip; do
6549 if test -n "$ncn_target_tool_prefix"; then
6550 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6553 echo "configure:6528: checking for $ac_word" >&5
6554 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6556 else
6557 if test -n "$STRIP_FOR_TARGET"; then
6558 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6559 else
6560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6561 ac_dummy="$PATH"
6562 for ac_dir in $ac_dummy; do
6563 test -z "$ac_dir" && ac_dir=.
6564 if test -f $ac_dir/$ac_word; then
6565 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6566 break
6568 done
6569 IFS="$ac_save_ifs"
6572 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6573 if test -n "$STRIP_FOR_TARGET"; then
6574 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6575 else
6576 echo "$ac_t""no" 1>&6
6580 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6582 set dummy ${ncn_progname}; ac_word=$2
6583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6584 echo "configure:6559: checking for $ac_word" >&5
6585 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6587 else
6588 if test -n "$STRIP_FOR_TARGET"; then
6589 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6590 else
6591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6592 ac_dummy="$PATH"
6593 for ac_dir in $ac_dummy; do
6594 test -z "$ac_dir" && ac_dir=.
6595 if test -f $ac_dir/$ac_word; then
6596 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6597 break
6599 done
6600 IFS="$ac_save_ifs"
6603 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6604 if test -n "$STRIP_FOR_TARGET"; then
6605 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6606 else
6607 echo "$ac_t""no" 1>&6
6611 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6612 done
6615 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6616 set dummy strip
6617 if test $build = $target ; then
6618 STRIP_FOR_TARGET="$2"
6619 else
6620 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6622 else
6623 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6626 else
6627 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6633 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6634 if test -n "$with_build_time_tools"; then
6635 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6636 echo "configure:6611: checking for windres in $with_build_time_tools" >&5
6637 if test -x $with_build_time_tools/windres; then
6638 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6639 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6640 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6641 else
6642 echo "$ac_t""no" 1>&6
6644 elif test $build != $host && test $have_gcc_for_target = yes; then
6645 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6646 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6647 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6650 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6651 # Extract the first word of "windres", so it can be a program name with args.
6652 set dummy windres; ac_word=$2
6653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6654 echo "configure:6629: checking for $ac_word" >&5
6655 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657 else
6658 case "$WINDRES_FOR_TARGET" in
6660 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6662 ?:/*)
6663 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6667 ac_dummy="$gcc_cv_tool_dirs"
6668 for ac_dir in $ac_dummy; do
6669 test -z "$ac_dir" && ac_dir=.
6670 if test -f $ac_dir/$ac_word; then
6671 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6672 break
6674 done
6675 IFS="$ac_save_ifs"
6677 esac
6679 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6680 if test -n "$WINDRES_FOR_TARGET"; then
6681 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6687 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6688 if test -n "$with_build_time_tools"; then
6689 for ncn_progname in windres; do
6690 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6691 echo "configure:6666: checking for ${ncn_progname} in $with_build_time_tools" >&5
6692 if test -x $with_build_time_tools/${ncn_progname}; then
6693 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6694 echo "$ac_t""yes" 1>&6
6695 break
6696 else
6697 echo "$ac_t""no" 1>&6
6699 done
6702 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6703 for ncn_progname in windres; do
6704 if test -n "$ncn_target_tool_prefix"; then
6705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6708 echo "configure:6683: checking for $ac_word" >&5
6709 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6711 else
6712 if test -n "$WINDRES_FOR_TARGET"; then
6713 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6714 else
6715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6716 ac_dummy="$PATH"
6717 for ac_dir in $ac_dummy; do
6718 test -z "$ac_dir" && ac_dir=.
6719 if test -f $ac_dir/$ac_word; then
6720 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6721 break
6723 done
6724 IFS="$ac_save_ifs"
6727 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6728 if test -n "$WINDRES_FOR_TARGET"; then
6729 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6730 else
6731 echo "$ac_t""no" 1>&6
6735 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6737 set dummy ${ncn_progname}; ac_word=$2
6738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6739 echo "configure:6714: checking for $ac_word" >&5
6740 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6742 else
6743 if test -n "$WINDRES_FOR_TARGET"; then
6744 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6745 else
6746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6747 ac_dummy="$PATH"
6748 for ac_dir in $ac_dummy; do
6749 test -z "$ac_dir" && ac_dir=.
6750 if test -f $ac_dir/$ac_word; then
6751 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6752 break
6754 done
6755 IFS="$ac_save_ifs"
6758 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6759 if test -n "$WINDRES_FOR_TARGET"; then
6760 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6761 else
6762 echo "$ac_t""no" 1>&6
6766 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6767 done
6770 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6771 set dummy windres
6772 if test $build = $target ; then
6773 WINDRES_FOR_TARGET="$2"
6774 else
6775 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6777 else
6778 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6781 else
6782 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6786 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6788 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6789 echo "configure:6764: checking where to find the target ar" >&5
6790 if test "x${build}" != "x${host}" ; then
6791 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6792 # We already found the complete path
6793 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6794 else
6795 # Canadian cross, just use what we found
6796 echo "$ac_t""pre-installed" 1>&6
6798 else
6799 ok=yes
6800 case " ${configdirs} " in
6801 *" binutils "*) ;;
6802 *) ok=no ;;
6803 esac
6805 if test $ok = yes; then
6806 # An in-tree tool is available and we can use it
6807 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6808 echo "$ac_t""just compiled" 1>&6
6809 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6810 # We already found the complete path
6811 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6812 elif test "x$target" = "x$host"; then
6813 # We can use an host tool
6814 AR_FOR_TARGET='$(AR)'
6815 echo "$ac_t""host tool" 1>&6
6816 else
6817 # We need a cross tool
6818 echo "$ac_t""pre-installed" 1>&6
6821 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6822 echo "configure:6797: checking where to find the target as" >&5
6823 if test "x${build}" != "x${host}" ; then
6824 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6825 # We already found the complete path
6826 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6827 else
6828 # Canadian cross, just use what we found
6829 echo "$ac_t""pre-installed" 1>&6
6831 else
6832 ok=yes
6833 case " ${configdirs} " in
6834 *" gas "*) ;;
6835 *) ok=no ;;
6836 esac
6838 if test $ok = yes; then
6839 # An in-tree tool is available and we can use it
6840 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6841 echo "$ac_t""just compiled" 1>&6
6842 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6843 # We already found the complete path
6844 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6845 elif test "x$target" = "x$host"; then
6846 # We can use an host tool
6847 AS_FOR_TARGET='$(AS)'
6848 echo "$ac_t""host tool" 1>&6
6849 else
6850 # We need a cross tool
6851 echo "$ac_t""pre-installed" 1>&6
6854 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6855 echo "configure:6830: checking where to find the target cc" >&5
6856 if test "x${build}" != "x${host}" ; then
6857 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6858 # We already found the complete path
6859 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6860 else
6861 # Canadian cross, just use what we found
6862 echo "$ac_t""pre-installed" 1>&6
6864 else
6865 ok=yes
6866 case " ${configdirs} " in
6867 *" gcc "*) ;;
6868 *) ok=no ;;
6869 esac
6871 if test $ok = yes; then
6872 # An in-tree tool is available and we can use it
6873 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6874 echo "$ac_t""just compiled" 1>&6
6875 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6876 # We already found the complete path
6877 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6878 elif test "x$target" = "x$host"; then
6879 # We can use an host tool
6880 CC_FOR_TARGET='$(CC)'
6881 echo "$ac_t""host tool" 1>&6
6882 else
6883 # We need a cross tool
6884 echo "$ac_t""pre-installed" 1>&6
6887 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6888 echo "configure:6863: checking where to find the target c++" >&5
6889 if test "x${build}" != "x${host}" ; then
6890 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6891 # We already found the complete path
6892 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6893 else
6894 # Canadian cross, just use what we found
6895 echo "$ac_t""pre-installed" 1>&6
6897 else
6898 ok=yes
6899 case " ${configdirs} " in
6900 *" gcc "*) ;;
6901 *) ok=no ;;
6902 esac
6903 case ,${enable_languages}, in
6904 *,c++,*) ;;
6905 *) ok=no ;;
6906 esac
6907 if test $ok = yes; then
6908 # An in-tree tool is available and we can use it
6909 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'
6910 echo "$ac_t""just compiled" 1>&6
6911 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6912 # We already found the complete path
6913 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6914 elif test "x$target" = "x$host"; then
6915 # We can use an host tool
6916 CXX_FOR_TARGET='$(CXX)'
6917 echo "$ac_t""host tool" 1>&6
6918 else
6919 # We need a cross tool
6920 echo "$ac_t""pre-installed" 1>&6
6923 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6924 echo "configure:6899: checking where to find the target c++ for libstdc++" >&5
6925 if test "x${build}" != "x${host}" ; then
6926 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6927 # We already found the complete path
6928 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6929 else
6930 # Canadian cross, just use what we found
6931 echo "$ac_t""pre-installed" 1>&6
6933 else
6934 ok=yes
6935 case " ${configdirs} " in
6936 *" gcc "*) ;;
6937 *) ok=no ;;
6938 esac
6939 case ,${enable_languages}, in
6940 *,c++,*) ;;
6941 *) ok=no ;;
6942 esac
6943 if test $ok = yes; then
6944 # An in-tree tool is available and we can use it
6945 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6946 echo "$ac_t""just compiled" 1>&6
6947 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6948 # We already found the complete path
6949 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6950 elif test "x$target" = "x$host"; then
6951 # We can use an host tool
6952 RAW_CXX_FOR_TARGET='$(CXX)'
6953 echo "$ac_t""host tool" 1>&6
6954 else
6955 # We need a cross tool
6956 echo "$ac_t""pre-installed" 1>&6
6959 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6960 echo "configure:6935: checking where to find the target dlltool" >&5
6961 if test "x${build}" != "x${host}" ; then
6962 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6963 # We already found the complete path
6964 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6965 else
6966 # Canadian cross, just use what we found
6967 echo "$ac_t""pre-installed" 1>&6
6969 else
6970 ok=yes
6971 case " ${configdirs} " in
6972 *" binutils "*) ;;
6973 *) ok=no ;;
6974 esac
6976 if test $ok = yes; then
6977 # An in-tree tool is available and we can use it
6978 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6979 echo "$ac_t""just compiled" 1>&6
6980 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6981 # We already found the complete path
6982 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6983 elif test "x$target" = "x$host"; then
6984 # We can use an host tool
6985 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6986 echo "$ac_t""host tool" 1>&6
6987 else
6988 # We need a cross tool
6989 echo "$ac_t""pre-installed" 1>&6
6992 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6993 echo "configure:6968: checking where to find the target gcc" >&5
6994 if test "x${build}" != "x${host}" ; then
6995 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6996 # We already found the complete path
6997 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6998 else
6999 # Canadian cross, just use what we found
7000 echo "$ac_t""pre-installed" 1>&6
7002 else
7003 ok=yes
7004 case " ${configdirs} " in
7005 *" gcc "*) ;;
7006 *) ok=no ;;
7007 esac
7009 if test $ok = yes; then
7010 # An in-tree tool is available and we can use it
7011 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7012 echo "$ac_t""just compiled" 1>&6
7013 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7014 # We already found the complete path
7015 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7016 elif test "x$target" = "x$host"; then
7017 # We can use an host tool
7018 GCC_FOR_TARGET='$()'
7019 echo "$ac_t""host tool" 1>&6
7020 else
7021 # We need a cross tool
7022 echo "$ac_t""pre-installed" 1>&6
7025 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
7026 echo "configure:7001: checking where to find the target gcj" >&5
7027 if test "x${build}" != "x${host}" ; then
7028 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7029 # We already found the complete path
7030 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7031 else
7032 # Canadian cross, just use what we found
7033 echo "$ac_t""pre-installed" 1>&6
7035 else
7036 ok=yes
7037 case " ${configdirs} " in
7038 *" gcc "*) ;;
7039 *) ok=no ;;
7040 esac
7041 case ,${enable_languages}, in
7042 *,java,*) ;;
7043 *) ok=no ;;
7044 esac
7045 if test $ok = yes; then
7046 # An in-tree tool is available and we can use it
7047 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7048 echo "$ac_t""just compiled" 1>&6
7049 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7050 # We already found the complete path
7051 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7052 elif test "x$target" = "x$host"; then
7053 # We can use an host tool
7054 GCJ_FOR_TARGET='$(GCJ)'
7055 echo "$ac_t""host tool" 1>&6
7056 else
7057 # We need a cross tool
7058 echo "$ac_t""pre-installed" 1>&6
7061 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7062 echo "configure:7037: checking where to find the target gfortran" >&5
7063 if test "x${build}" != "x${host}" ; then
7064 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7065 # We already found the complete path
7066 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7067 else
7068 # Canadian cross, just use what we found
7069 echo "$ac_t""pre-installed" 1>&6
7071 else
7072 ok=yes
7073 case " ${configdirs} " in
7074 *" gcc "*) ;;
7075 *) ok=no ;;
7076 esac
7077 case ,${enable_languages}, in
7078 *,fortran,*) ;;
7079 *) ok=no ;;
7080 esac
7081 if test $ok = yes; then
7082 # An in-tree tool is available and we can use it
7083 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7084 echo "$ac_t""just compiled" 1>&6
7085 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7088 elif test "x$target" = "x$host"; then
7089 # We can use an host tool
7090 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7091 echo "$ac_t""host tool" 1>&6
7092 else
7093 # We need a cross tool
7094 echo "$ac_t""pre-installed" 1>&6
7097 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7098 echo "configure:7073: checking where to find the target ld" >&5
7099 if test "x${build}" != "x${host}" ; then
7100 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7101 # We already found the complete path
7102 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7103 else
7104 # Canadian cross, just use what we found
7105 echo "$ac_t""pre-installed" 1>&6
7107 else
7108 ok=yes
7109 case " ${configdirs} " in
7110 *" ld "*) ;;
7111 *) ok=no ;;
7112 esac
7114 if test $ok = yes; then
7115 # An in-tree tool is available and we can use it
7116 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7117 echo "$ac_t""just compiled" 1>&6
7118 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7119 # We already found the complete path
7120 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7121 elif test "x$target" = "x$host"; then
7122 # We can use an host tool
7123 LD_FOR_TARGET='$(LD)'
7124 echo "$ac_t""host tool" 1>&6
7125 else
7126 # We need a cross tool
7127 echo "$ac_t""pre-installed" 1>&6
7130 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7131 echo "configure:7106: checking where to find the target lipo" >&5
7132 if test "x${build}" != "x${host}" ; then
7133 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7134 # We already found the complete path
7135 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7136 else
7137 # Canadian cross, just use what we found
7138 echo "$ac_t""pre-installed" 1>&6
7140 else
7141 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7142 # We already found the complete path
7143 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7144 elif test "x$target" = "x$host"; then
7145 # We can use an host tool
7146 LIPO_FOR_TARGET='$(LIPO)'
7147 echo "$ac_t""host tool" 1>&6
7148 else
7149 # We need a cross tool
7150 echo "$ac_t""pre-installed" 1>&6
7153 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7154 echo "configure:7129: checking where to find the target nm" >&5
7155 if test "x${build}" != "x${host}" ; then
7156 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7157 # We already found the complete path
7158 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7159 else
7160 # Canadian cross, just use what we found
7161 echo "$ac_t""pre-installed" 1>&6
7163 else
7164 ok=yes
7165 case " ${configdirs} " in
7166 *" binutils "*) ;;
7167 *) ok=no ;;
7168 esac
7170 if test $ok = yes; then
7171 # An in-tree tool is available and we can use it
7172 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7173 echo "$ac_t""just compiled" 1>&6
7174 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7175 # We already found the complete path
7176 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7177 elif test "x$target" = "x$host"; then
7178 # We can use an host tool
7179 NM_FOR_TARGET='$(NM)'
7180 echo "$ac_t""host tool" 1>&6
7181 else
7182 # We need a cross tool
7183 echo "$ac_t""pre-installed" 1>&6
7186 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7187 echo "configure:7162: checking where to find the target objdump" >&5
7188 if test "x${build}" != "x${host}" ; then
7189 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7190 # We already found the complete path
7191 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7192 else
7193 # Canadian cross, just use what we found
7194 echo "$ac_t""pre-installed" 1>&6
7196 else
7197 ok=yes
7198 case " ${configdirs} " in
7199 *" binutils "*) ;;
7200 *) ok=no ;;
7201 esac
7203 if test $ok = yes; then
7204 # An in-tree tool is available and we can use it
7205 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7206 echo "$ac_t""just compiled" 1>&6
7207 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7208 # We already found the complete path
7209 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7210 elif test "x$target" = "x$host"; then
7211 # We can use an host tool
7212 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7213 echo "$ac_t""host tool" 1>&6
7214 else
7215 # We need a cross tool
7216 echo "$ac_t""pre-installed" 1>&6
7219 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7220 echo "configure:7195: checking where to find the target ranlib" >&5
7221 if test "x${build}" != "x${host}" ; then
7222 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7223 # We already found the complete path
7224 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7225 else
7226 # Canadian cross, just use what we found
7227 echo "$ac_t""pre-installed" 1>&6
7229 else
7230 ok=yes
7231 case " ${configdirs} " in
7232 *" binutils "*) ;;
7233 *) ok=no ;;
7234 esac
7236 if test $ok = yes; then
7237 # An in-tree tool is available and we can use it
7238 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7239 echo "$ac_t""just compiled" 1>&6
7240 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7241 # We already found the complete path
7242 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7243 elif test "x$target" = "x$host"; then
7244 # We can use an host tool
7245 RANLIB_FOR_TARGET='$(RANLIB)'
7246 echo "$ac_t""host tool" 1>&6
7247 else
7248 # We need a cross tool
7249 echo "$ac_t""pre-installed" 1>&6
7252 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7253 echo "configure:7228: checking where to find the target strip" >&5
7254 if test "x${build}" != "x${host}" ; then
7255 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7256 # We already found the complete path
7257 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7258 else
7259 # Canadian cross, just use what we found
7260 echo "$ac_t""pre-installed" 1>&6
7262 else
7263 ok=yes
7264 case " ${configdirs} " in
7265 *" binutils "*) ;;
7266 *) ok=no ;;
7267 esac
7269 if test $ok = yes; then
7270 # An in-tree tool is available and we can use it
7271 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7272 echo "$ac_t""just compiled" 1>&6
7273 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7274 # We already found the complete path
7275 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7276 elif test "x$target" = "x$host"; then
7277 # We can use an host tool
7278 STRIP_FOR_TARGET='$(STRIP)'
7279 echo "$ac_t""host tool" 1>&6
7280 else
7281 # We need a cross tool
7282 echo "$ac_t""pre-installed" 1>&6
7285 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7286 echo "configure:7261: checking where to find the target windres" >&5
7287 if test "x${build}" != "x${host}" ; then
7288 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7289 # We already found the complete path
7290 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7291 else
7292 # Canadian cross, just use what we found
7293 echo "$ac_t""pre-installed" 1>&6
7295 else
7296 ok=yes
7297 case " ${configdirs} " in
7298 *" binutils "*) ;;
7299 *) ok=no ;;
7300 esac
7302 if test $ok = yes; then
7303 # An in-tree tool is available and we can use it
7304 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7305 echo "$ac_t""just compiled" 1>&6
7306 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7307 # We already found the complete path
7308 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7309 elif test "x$target" = "x$host"; then
7310 # We can use an host tool
7311 WINDRES_FOR_TARGET='$(WINDRES)'
7312 echo "$ac_t""host tool" 1>&6
7313 else
7314 # We need a cross tool
7315 echo "$ac_t""pre-installed" 1>&6
7322 # Certain tools may need extra flags.
7323 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7324 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7325 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7327 # When building target libraries, except in a Canadian cross, we use
7328 # the same toolchain as the compiler we just built.
7329 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7330 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7331 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7332 if test $host = $build; then
7333 case " $configdirs " in
7334 *" gcc "*)
7335 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7336 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7337 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7339 esac
7346 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7347 echo "configure:7322: checking whether to enable maintainer-specific portions of Makefiles" >&5
7348 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7349 if test "${enable_maintainer_mode+set}" = set; then
7350 enableval="$enable_maintainer_mode"
7351 USE_MAINTAINER_MODE=$enableval
7352 else
7353 USE_MAINTAINER_MODE=no
7356 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7359 if test "$USE_MAINTAINER_MODE" = yes; then
7360 MAINTAINER_MODE_TRUE=
7361 MAINTAINER_MODE_FALSE='#'
7362 else
7363 MAINTAINER_MODE_TRUE='#'
7364 MAINTAINER_MODE_FALSE=
7366 MAINT=$MAINTAINER_MODE_TRUE
7368 # ---------------------
7369 # GCC bootstrap support
7370 # ---------------------
7372 # Stage specific cflags for build.
7373 stage1_cflags="-g"
7374 case $build in
7375 vax-*-*)
7376 case ${GCC} in
7377 yes) stage1_cflags="-g -Wa,-J" ;;
7378 *) stage1_cflags="-g -J" ;;
7379 esac ;;
7380 powerpc-*-darwin*)
7381 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7382 # sources; use -no-cpp-precomp to get to GNU cpp.
7383 # Apple's GCC has bugs in designated initializer handling, so disable
7384 # that too.
7385 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7387 esac
7389 # LLVM LOCAL begin - LLVM uses inlined functions
7390 if false ; then
7391 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7392 if test "$GCC" = yes; then
7393 saved_CFLAGS="$CFLAGS"
7395 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7396 CFLAGS="$CFLAGS -fkeep-inline-functions"
7397 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7398 echo "configure:7371: checking whether -fkeep-inline-functions is supported" >&5
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7373 "configure"
7401 #include "confdefs.h"
7403 #if (__GNUC__ < 3) \
7404 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
7405 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
7406 #error http://gcc.gnu.org/PR29382
7407 #endif
7409 int main() {
7411 ; return 0; }
7413 if { (eval echo configure:7386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7414 rm -rf conftest*
7415 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7416 else
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 rm -rf conftest*
7420 echo "$ac_t""no" 1>&6
7422 rm -f conftest*
7424 CFLAGS="$saved_CFLAGS"
7427 # LLVM LOCAL end - LLVM uses inlined functions.
7431 # Enable --enable-checking in stage1 of the compiler.
7432 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7433 if test "${enable_stage1_checking+set}" = set; then
7434 enableval="$enable_stage1_checking"
7435 stage1_checking=--enable-checking=${enable_stage1_checking}
7436 else
7437 if test "x$enable_checking" = xno; then
7438 stage1_checking=--enable-checking
7439 else
7440 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
7446 # Enable -Werror in bootstrap stage2 and later.
7447 # Check whether --enable-werror or --disable-werror was given.
7448 if test "${enable_werror+set}" = set; then
7449 enableval="$enable_werror"
7451 else
7452 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
7453 enable_werror=yes
7454 else
7455 enable_werror=no
7459 case ${enable_werror} in
7460 yes) stage2_werror_flag="--enable-werror-always" ;;
7461 *) stage2_werror_flag="" ;;
7462 esac
7465 # Flags needed to enable html installing and building
7466 # Check whether --with-datarootdir or --without-datarootdir was given.
7467 if test "${with_datarootdir+set}" = set; then
7468 withval="$with_datarootdir"
7469 datarootdir="\${prefix}/${withval}"
7470 else
7471 datarootdir="\${prefix}/share"
7475 # Check whether --with-docdir or --without-docdir was given.
7476 if test "${with_docdir+set}" = set; then
7477 withval="$with_docdir"
7478 docdir="\${prefix}/${withval}"
7479 else
7480 docdir="\${datarootdir}/doc"
7484 # Check whether --with-htmldir or --without-htmldir was given.
7485 if test "${with_htmldir+set}" = set; then
7486 withval="$with_htmldir"
7487 htmldir="\${prefix}/${withval}"
7488 else
7489 htmldir="\${docdir}"
7497 trap '' 1 2 15
7498 cat > confcache <<\EOF
7499 # This file is a shell script that caches the results of configure
7500 # tests run on this system so they can be shared between configure
7501 # scripts and configure runs. It is not useful on other systems.
7502 # If it contains results you don't want to keep, you may remove or edit it.
7504 # By default, configure uses ./config.cache as the cache file,
7505 # creating it if it does not exist already. You can give configure
7506 # the --cache-file=FILE option to use a different cache file; that is
7507 # what configure does when it calls configure scripts in
7508 # subdirectories, so they share the cache.
7509 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7510 # config.status only pays attention to the cache file if you give it the
7511 # --recheck option to rerun configure.
7514 # The following way of writing the cache mishandles newlines in values,
7515 # but we know of no workaround that is simple, portable, and efficient.
7516 # So, don't put newlines in cache variables' values.
7517 # Ultrix sh set writes to stderr and can't be redirected directly,
7518 # and sets the high bit in the cache file unless we assign to the vars.
7519 (set) 2>&1 |
7520 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7521 *ac_space=\ *)
7522 # `set' does not quote correctly, so add quotes (double-quote substitution
7523 # turns \\\\ into \\, and sed turns \\ into \).
7524 sed -n \
7525 -e "s/'/'\\\\''/g" \
7526 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7529 # `set' quotes correctly as required by POSIX, so do not add quotes.
7530 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7532 esac >> confcache
7533 if cmp -s $cache_file confcache; then
7535 else
7536 if test -w $cache_file; then
7537 echo "updating cache $cache_file"
7538 cat confcache > $cache_file
7539 else
7540 echo "not updating unwritable cache $cache_file"
7543 rm -f confcache
7545 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7548 # Let make expand exec_prefix.
7549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7551 # Any assignment to VPATH causes Sun make to only execute
7552 # the first set of double-colon rules, so remove it if not needed.
7553 # If there is a colon in the path, we need to keep it.
7554 if test "x$srcdir" = x.; then
7555 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7558 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7560 # Transform confdefs.h into DEFS.
7561 # Protect against shell expansion while executing Makefile rules.
7562 # Protect against Makefile macro expansion.
7563 cat > conftest.defs <<\EOF
7564 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7565 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7566 s%\[%\\&%g
7567 s%\]%\\&%g
7568 s%\$%$$%g
7570 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7571 rm -f conftest.defs
7574 # Without the "./", some shells look in PATH for config.status.
7575 : ${CONFIG_STATUS=./config.status}
7577 echo creating $CONFIG_STATUS
7578 rm -f $CONFIG_STATUS
7579 cat > $CONFIG_STATUS <<EOF
7580 #! /bin/sh
7581 # Generated automatically by configure.
7582 # Run this file to recreate the current configuration.
7583 # This directory was configured as follows,
7584 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7586 # $0 $ac_configure_args
7588 # Compiler output produced by configure, useful for debugging
7589 # configure, is in ./config.log if it exists.
7591 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7592 for ac_option
7594 case "\$ac_option" in
7595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7596 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7597 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7598 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7599 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7600 exit 0 ;;
7601 -help | --help | --hel | --he | --h)
7602 echo "\$ac_cs_usage"; exit 0 ;;
7603 *) echo "\$ac_cs_usage"; exit 1 ;;
7604 esac
7605 done
7607 ac_given_srcdir=$srcdir
7608 ac_given_INSTALL="$INSTALL"
7610 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7612 cat >> $CONFIG_STATUS <<EOF
7614 # Protect against being on the right side of a sed subst in config.status.
7615 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7616 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7617 $ac_vpsub
7618 $extrasub
7619 s%@SHELL@%$SHELL%g
7620 s%@CFLAGS@%$CFLAGS%g
7621 s%@CPPFLAGS@%$CPPFLAGS%g
7622 s%@CXXFLAGS@%$CXXFLAGS%g
7623 s%@FFLAGS@%$FFLAGS%g
7624 s%@DEFS@%$DEFS%g
7625 s%@LDFLAGS@%$LDFLAGS%g
7626 s%@LIBS@%$LIBS%g
7627 s%@exec_prefix@%$exec_prefix%g
7628 s%@prefix@%$prefix%g
7629 s%@program_transform_name@%$program_transform_name%g
7630 s%@bindir@%$bindir%g
7631 s%@sbindir@%$sbindir%g
7632 s%@libexecdir@%$libexecdir%g
7633 s%@datadir@%$datadir%g
7634 s%@sysconfdir@%$sysconfdir%g
7635 s%@sharedstatedir@%$sharedstatedir%g
7636 s%@localstatedir@%$localstatedir%g
7637 s%@libdir@%$libdir%g
7638 s%@includedir@%$includedir%g
7639 s%@oldincludedir@%$oldincludedir%g
7640 s%@infodir@%$infodir%g
7641 s%@mandir@%$mandir%g
7642 s%@host@%$host%g
7643 s%@host_alias@%$host_alias%g
7644 s%@host_cpu@%$host_cpu%g
7645 s%@host_vendor@%$host_vendor%g
7646 s%@host_os@%$host_os%g
7647 s%@target@%$target%g
7648 s%@target_alias@%$target_alias%g
7649 s%@target_cpu@%$target_cpu%g
7650 s%@target_vendor@%$target_vendor%g
7651 s%@target_os@%$target_os%g
7652 s%@build@%$build%g
7653 s%@build_alias@%$build_alias%g
7654 s%@build_cpu@%$build_cpu%g
7655 s%@build_vendor@%$build_vendor%g
7656 s%@build_os@%$build_os%g
7657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7658 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7659 s%@INSTALL_DATA@%$INSTALL_DATA%g
7660 s%@LN@%$LN%g
7661 s%@LN_S@%$LN_S%g
7662 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7663 s%@build_libsubdir@%$build_libsubdir%g
7664 s%@build_subdir@%$build_subdir%g
7665 s%@host_subdir@%$host_subdir%g
7666 s%@target_subdir@%$target_subdir%g
7667 s%@CC@%$CC%g
7668 s%@GNATBIND@%$GNATBIND%g
7669 s%@do_compare@%$do_compare%g
7670 s%@gmplibs@%$gmplibs%g
7671 s%@gmpinc@%$gmpinc%g
7672 s%@stage1_languages@%$stage1_languages%g
7673 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7674 /@serialization_dependencies@/r $serialization_dependencies
7675 s%@serialization_dependencies@%%g
7676 /@host_makefile_frag@/r $host_makefile_frag
7677 s%@host_makefile_frag@%%g
7678 /@target_makefile_frag@/r $target_makefile_frag
7679 s%@target_makefile_frag@%%g
7680 /@alphaieee_frag@/r $alphaieee_frag
7681 s%@alphaieee_frag@%%g
7682 /@ospace_frag@/r $ospace_frag
7683 s%@ospace_frag@%%g
7684 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7685 s%@tooldir@%$tooldir%g
7686 s%@build_tooldir@%$build_tooldir%g
7687 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7688 s%@GDB_TK@%$GDB_TK%g
7689 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7690 s%@build_configargs@%$build_configargs%g
7691 s%@build_configdirs@%$build_configdirs%g
7692 s%@host_configargs@%$host_configargs%g
7693 s%@configdirs@%$configdirs%g
7694 s%@target_configargs@%$target_configargs%g
7695 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7696 s%@config_shell@%$config_shell%g
7697 s%@YACC@%$YACC%g
7698 s%@BISON@%$BISON%g
7699 s%@M4@%$M4%g
7700 s%@LEX@%$LEX%g
7701 s%@FLEX@%$FLEX%g
7702 s%@MAKEINFO@%$MAKEINFO%g
7703 s%@EXPECT@%$EXPECT%g
7704 s%@RUNTEST@%$RUNTEST%g
7705 s%@AR@%$AR%g
7706 s%@AS@%$AS%g
7707 s%@DLLTOOL@%$DLLTOOL%g
7708 s%@LD@%$LD%g
7709 s%@LIPO@%$LIPO%g
7710 s%@NM@%$NM%g
7711 s%@RANLIB@%$RANLIB%g
7712 s%@STRIP@%$STRIP%g
7713 s%@WINDRES@%$WINDRES%g
7714 s%@OBJCOPY@%$OBJCOPY%g
7715 s%@OBJDUMP@%$OBJDUMP%g
7716 s%@CXX@%$CXX%g
7717 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7718 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7719 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7720 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7721 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7722 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7723 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7724 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7725 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7726 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7727 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7728 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7729 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7730 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7731 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7732 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7733 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7734 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7735 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7736 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7737 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7738 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7739 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7740 s%@MAINT@%$MAINT%g
7741 s%@stage1_cflags@%$stage1_cflags%g
7742 s%@stage1_checking@%$stage1_checking%g
7743 s%@stage2_werror_flag@%$stage2_werror_flag%g
7744 s%@datarootdir@%$datarootdir%g
7745 s%@docdir@%$docdir%g
7746 s%@htmldir@%$htmldir%g
7748 CEOF
7751 cat >> $CONFIG_STATUS <<\EOF
7753 # Split the substitutions into bite-sized pieces for seds with
7754 # small command number limits, like on Digital OSF/1 and HP-UX.
7755 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7756 ac_file=1 # Number of current file.
7757 ac_beg=1 # First line for current file.
7758 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7759 ac_more_lines=:
7760 ac_sed_cmds=""
7761 while $ac_more_lines; do
7762 if test $ac_beg -gt 1; then
7763 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7764 else
7765 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7767 if test ! -s conftest.s$ac_file; then
7768 ac_more_lines=false
7769 rm -f conftest.s$ac_file
7770 else
7771 if test -z "$ac_sed_cmds"; then
7772 ac_sed_cmds="sed -f conftest.s$ac_file"
7773 else
7774 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7776 ac_file=`expr $ac_file + 1`
7777 ac_beg=$ac_end
7778 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7780 done
7781 if test -z "$ac_sed_cmds"; then
7782 ac_sed_cmds=cat
7786 cat >> $CONFIG_STATUS <<EOF
7788 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7790 cat >> $CONFIG_STATUS <<\EOF
7791 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7793 case "$ac_file" in
7794 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7795 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7796 *) ac_file_in="${ac_file}.in" ;;
7797 esac
7799 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7801 # Remove last slash and all that follows it. Not all systems have dirname.
7802 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7803 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7804 # The file is in a subdirectory.
7805 test ! -d "$ac_dir" && mkdir "$ac_dir"
7806 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7807 # A "../" for each directory in $ac_dir_suffix.
7808 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7809 else
7810 ac_dir_suffix= ac_dots=
7813 case "$ac_given_srcdir" in
7814 .) srcdir=.
7815 if test -z "$ac_dots"; then top_srcdir=.
7816 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7817 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7818 *) # Relative path.
7819 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7820 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7821 esac
7823 case "$ac_given_INSTALL" in
7824 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7825 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7826 esac
7828 echo creating "$ac_file"
7829 rm -f "$ac_file"
7830 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7831 case "$ac_file" in
7832 *Makefile*) ac_comsub="1i\\
7833 # $configure_input" ;;
7834 *) ac_comsub= ;;
7835 esac
7837 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7838 sed -e "$ac_comsub
7839 s%@configure_input@%$configure_input%g
7840 s%@srcdir@%$srcdir%g
7841 s%@top_srcdir@%$top_srcdir%g
7842 s%@INSTALL@%$INSTALL%g
7843 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7844 fi; done
7845 rm -f conftest.s*
7848 cat >> $CONFIG_STATUS <<EOF
7851 cat >> $CONFIG_STATUS <<\EOF
7853 exit 0
7855 chmod +x $CONFIG_STATUS
7856 rm -fr confdefs* $ac_clean_files
7857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1