Radar 8710868: Build a separate version of libcc_kext.a for each ARM slice.
[llvm-gcc-4.2.git] / configure
blobc29276395f39aa103043a6eea75536776e6797ea
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-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-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-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 # LLVM LOCAL begin - TCE target
1644 tce-*-*)
1645 skipdirs="target-libssp target-libstdc++-v3"
1647 # LLVM LOCAL end - TCE target
1648 v810-*-*)
1649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1651 v850-*-*)
1652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1654 v850e-*-*)
1655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1657 v850ea-*-*)
1658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1660 vax-*-vms)
1661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1663 vax-*-*)
1664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1666 xtensa-*-*)
1667 noconfigdirs="$noconfigdirs ${libgcj}"
1669 ip2k-*-*)
1670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1675 *-*-lynxos*)
1676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1678 *-*-*)
1679 noconfigdirs="$noconfigdirs ${libgcj}"
1681 esac
1683 # If we aren't building newlib, then don't build libgloss, since libgloss
1684 # depends upon some newlib header files.
1685 case "${noconfigdirs}" in
1686 *target-libgloss*) ;;
1687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1688 esac
1690 # Work in distributions that contain no compiler tools, like Autoconf.
1691 tentative_cc=""
1692 host_makefile_frag=/dev/null
1693 if test -d ${srcdir}/config ; then
1694 case "${host}" in
1695 m68k-hp-hpux*)
1696 # Avoid "too much defining" errors from HPUX compiler.
1697 tentative_cc="cc -Wp,-H256000"
1698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1699 # If it's HP/UX ar, this should be harmless.
1700 RANLIB="ar ts"
1702 m68k-apollo-sysv*)
1703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1705 m68k-apollo-bsd*)
1706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1707 # chokes on bfd, the compiler won't let you assign integers to enums, and
1708 # other problems. Defining CC to gcc is a questionable way to say "don't use
1709 # the apollo compiler" (the preferred version of GCC could be called cc,
1710 # or whatever), but I'm not sure leaving CC as cc is any better...
1711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1712 # Used to have BISON=yacc.
1713 tentative_cc=gcc
1715 m88k-dg-dgux*)
1716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1718 m88k-harris-cxux*)
1719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1720 tentative_cc="cc -Xa"
1721 host_makefile_frag="config/mh-cxux"
1723 m88k-motorola-sysv*)
1725 mips*-dec-ultrix*)
1726 tentative_cc="cc -Wf,-XNg1000"
1727 host_makefile_frag="config/mh-decstation"
1729 mips*-nec-sysv4*)
1730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1732 host_makefile_frag="config/mh-necv4"
1734 mips*-sgi-irix4*)
1735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1736 # environment. Also bump switch table size so that cp-parse will
1737 # compile. Bump string length limit so linker builds.
1738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1740 mips*-*-sysv4*)
1741 host_makefile_frag="config/mh-sysv4"
1743 mips*-*-sysv*)
1744 # This is for a MIPS running RISC/os 4.52C.
1746 # This is needed for GDB, but needs to be in the top-level make because
1747 # if a library is compiled with the bsd headers and gets linked with the
1748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1749 # a different size).
1750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1751 # known except to select the sysv environment. Could we use /proc instead?
1752 # These "sysv environments" and "bsd environments" often end up being a pain.
1754 # This is not part of CFLAGS because perhaps not all C compilers have this
1755 # option.
1756 tentative_cc="cc -systype sysv"
1758 i370-ibm-opened*)
1759 tentative_cc="c89"
1761 i[3456789]86-*-sysv5*)
1762 host_makefile_frag="config/mh-sysv5"
1764 i[3456789]86-*-dgux*)
1765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1766 host_makefile_frag="config/mh-dgux386"
1768 i[3456789]86-ncr-sysv4.3*)
1769 # The MetaWare compiler will generate a copyright message unless you
1770 # turn it off by adding the -Hnocopyr flag.
1771 tentative_cc="cc -Hnocopyr"
1773 i[3456789]86-ncr-sysv4*)
1774 # for an NCR 3000 (i486/SVR4) system.
1775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1776 # This compiler not only emits obnoxious copyright messages every time
1777 # you run it, but it chokes and dies on a whole bunch of GNU source
1778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1779 tentative_cc="/usr/ccs/ATT/cc"
1780 host_makefile_frag="config/mh-ncr3000"
1782 i[3456789]86-*-sco3.2v5*)
1784 i[3456789]86-*-sco*)
1785 # The native C compiler botches some simple uses of const. Unfortunately,
1786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1787 tentative_cc="cc -Dconst="
1788 host_makefile_frag="config/mh-sco"
1790 i[3456789]86-*-udk*)
1791 host_makefile_frag="config/mh-sysv5"
1793 i[3456789]86-*-solaris2*)
1794 host_makefile_frag="config/mh-sysv4"
1796 i[3456789]86-*-msdosdjgpp*)
1797 host_makefile_frag="config/mh-djgpp"
1799 *-cygwin*)
1800 host_makefile_frag="config/mh-cygwin"
1802 *-mingw32*)
1804 *-interix*)
1805 host_makefile_frag="config/mh-interix"
1807 vax-*-ultrix2*)
1808 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1809 tentative_cc=gcc
1811 *-*-solaris2*)
1812 host_makefile_frag="config/mh-solaris"
1814 m68k-sun-sunos*)
1815 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1816 # without overflowing the jump tables (-J says to use a 32 bit table)
1817 tentative_cc="cc -J"
1819 *-hp-hpux*)
1820 tentative_cc="cc -Wp,-H256000"
1822 *-*-hiux*)
1823 tentative_cc="cc -Wp,-H256000"
1825 rs6000-*-lynxos*)
1826 # /bin/cc is less than useful for our purposes. Always use GCC
1827 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1828 host_makefile_frag="config/mh-lynxrs6k"
1830 powerpc-*-darwin*)
1831 host_makefile_frag="config/mh-ppc-darwin"
1833 # APPLE LOCAL begin dynamic-no-pic
1834 i[3456789]86-*-darwin*)
1835 host_makefile_frag="config/mh-x86-darwin"
1836 # gcc can default to x86_64 code generation, avoid that
1837 if test "${build}" = "${host}"; then
1838 CC="${CC-gcc} -m32"
1839 CXX="${CXX-g++} -m32"
1842 # APPLE LOCAL end dynamic-no-pic
1843 powerpc-*-aix*)
1844 host_makefile_frag="config/mh-ppc-aix"
1846 rs6000-*-aix*)
1847 host_makefile_frag="config/mh-ppc-aix"
1849 *-*-lynxos*)
1850 # /bin/cc is less than useful for our purposes. Always use GCC
1851 tentative_cc="/bin/gcc"
1853 *-*-sysv4*)
1854 host_makefile_frag="config/mh-sysv4"
1856 # LLVM LOCAL begin
1857 x86_64-*-darwin*)
1858 host_makefile_frag="config/mh-x86-darwin"
1860 # LLVM LOCAL end
1861 # This is placed last to prevent interfering with the cases above.
1862 i[3456789]86-*-*)
1863 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1864 host_makefile_frag="config/mh-x86omitfp"
1866 esac
1869 # If we aren't going to be using gcc, see if we can extract a definition
1870 # of CC from the fragment.
1871 # Actually, use the 'pre-extracted' version above.
1872 if test -z "${CC}" && test "${build}" = "${host}" ; then
1873 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1874 found=
1875 for dir in $PATH; do
1876 test -z "$dir" && dir=.
1877 if test -f $dir/gcc; then
1878 found=yes
1879 break
1881 done
1882 IFS="$save_ifs"
1883 if test -z "${found}" && test -n "${tentative_cc}" ; then
1884 CC=$tentative_cc
1888 if test "${build}" != "${host}" ; then
1889 # If we are doing a Canadian Cross, in which the host and build systems
1890 # are not the same, we set reasonable default values for the tools.
1892 CC=${CC-${host_alias}-gcc}
1893 CFLAGS=${CFLAGS-"-g -O2"}
1894 CXX=${CXX-${host_alias}-c++}
1895 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1896 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1898 else
1899 # Set reasonable default values for some tools even if not Canadian.
1900 # Of course, these are different reasonable default values, originally
1901 # specified directly in the Makefile.
1902 # We don't export, so that autoconf can do its job.
1903 # Note that all these settings are above the fragment inclusion point
1904 # in Makefile.in, so can still be overridden by fragments.
1905 # This is all going to change when we autoconfiscate...
1907 CC_FOR_BUILD="\$(CC)"
1908 # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_dummy="$PATH"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_CC="gcc"
1924 break
1926 done
1927 IFS="$ac_save_ifs"
1930 CC="$ac_cv_prog_CC"
1931 if test -n "$CC"; then
1932 echo "$ac_t""$CC" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1937 if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1949 ac_prog_rejected=no
1950 ac_dummy="$PATH"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1954 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1955 ac_prog_rejected=yes
1956 continue
1958 ac_cv_prog_CC="cc"
1959 break
1961 done
1962 IFS="$ac_save_ifs"
1963 if test $ac_prog_rejected = yes; then
1964 # We found a bogon in the path, so make sure we never use it.
1965 set dummy $ac_cv_prog_CC
1966 shift
1967 if test $# -gt 0; then
1968 # We chose a different compiler from the bogus one.
1969 # However, it has the same basename, so the bogon will be chosen
1970 # first if we set CC to just the basename; use the full file name.
1971 shift
1972 set dummy "$ac_dir/$ac_word" "$@"
1973 shift
1974 ac_cv_prog_CC="$@"
1979 CC="$ac_cv_prog_CC"
1980 if test -n "$CC"; then
1981 echo "$ac_t""$CC" 1>&6
1982 else
1983 echo "$ac_t""no" 1>&6
1986 if test -z "$CC"; then
1987 case "`uname -s`" in
1988 *win32* | *WIN32*)
1989 # Extract the first word of "cl", so it can be a program name with args.
1990 set dummy cl; ac_word=$2
1991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_word" >&5
1993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 ac_dummy="$PATH"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2004 ac_cv_prog_CC="cl"
2005 break
2007 done
2008 IFS="$ac_save_ifs"
2011 CC="$ac_cv_prog_CC"
2012 if test -n "$CC"; then
2013 echo "$ac_t""$CC" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2018 esac
2020 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2026 ac_ext=c
2027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2031 cross_compiling=$ac_cv_prog_cc_cross
2033 cat > conftest.$ac_ext << EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 main(){return(0);}
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2041 ac_cv_prog_cc_works=yes
2042 # If we can't run a trivial program, we are probably using a cross compiler.
2043 if (./conftest; exit) 2>/dev/null; then
2044 ac_cv_prog_cc_cross=no
2045 else
2046 ac_cv_prog_cc_cross=yes
2048 else
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 ac_cv_prog_cc_works=no
2053 rm -fr conftest*
2054 ac_ext=c
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling=$ac_cv_prog_cc_cross
2061 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2062 if test $ac_cv_prog_cc_works = no; then
2063 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2067 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2068 cross_compiling=$ac_cv_prog_cc_cross
2070 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether we are using GNU C" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 cat > conftest.c <<EOF
2076 #ifdef __GNUC__
2077 yes;
2078 #endif
2080 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2081 ac_cv_prog_gcc=yes
2082 else
2083 ac_cv_prog_gcc=no
2087 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2089 if test $ac_cv_prog_gcc = yes; then
2090 GCC=yes
2091 else
2092 GCC=
2095 ac_test_CFLAGS="${CFLAGS+set}"
2096 ac_save_CFLAGS="$CFLAGS"
2097 CFLAGS=
2098 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether ${CC-cc} accepts -g" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 echo 'void f(){}' > conftest.c
2104 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2105 ac_cv_prog_cc_g=yes
2106 else
2107 ac_cv_prog_cc_g=no
2109 rm -f conftest*
2113 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS="$ac_save_CFLAGS"
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2118 CFLAGS="-g -O2"
2119 else
2120 CFLAGS="-g"
2122 else
2123 if test "$GCC" = yes; then
2124 CFLAGS="-O2"
2125 else
2126 CFLAGS=
2131 # We must set the default linker to the linker used by gcc for the correct
2132 # operation of libtool. If LD is not defined and we are using gcc, try to
2133 # set the LD default to the ld used by gcc.
2134 if test -z "$LD"; then
2135 if test "$GCC" = yes; then
2136 case $build in
2137 *-*-mingw*)
2138 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2140 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2141 esac
2142 case $gcc_prog_ld in
2143 # Accept absolute paths.
2144 [\\/]* | [A-Za-z]:[\\/]*)
2145 LD="$gcc_prog_ld" ;;
2146 esac
2150 CXX=${CXX-"c++"}
2151 CFLAGS=${CFLAGS-"-g"}
2152 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2155 if test $host != $build; then
2156 ac_tool_prefix=${host_alias}-
2157 else
2158 ac_tool_prefix=
2163 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2164 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170 if test -n "$GNATBIND"; then
2171 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2172 else
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/$ac_word; then
2178 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2179 break
2181 done
2182 IFS="$ac_save_ifs"
2185 GNATBIND="$ac_cv_prog_GNATBIND"
2186 if test -n "$GNATBIND"; then
2187 echo "$ac_t""$GNATBIND" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2193 if test -z "$ac_cv_prog_GNATBIND"; then
2194 if test -n "$ac_tool_prefix"; then
2195 # Extract the first word of "gnatbind", so it can be a program name with args.
2196 set dummy gnatbind; ac_word=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 if test -n "$GNATBIND"; then
2203 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2204 else
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2206 ac_dummy="$PATH"
2207 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_GNATBIND="gnatbind"
2211 break
2213 done
2214 IFS="$ac_save_ifs"
2215 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2218 GNATBIND="$ac_cv_prog_GNATBIND"
2219 if test -n "$GNATBIND"; then
2220 echo "$ac_t""$GNATBIND" 1>&6
2221 else
2222 echo "$ac_t""no" 1>&6
2225 else
2226 GNATBIND="no"
2230 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether compiler driver understands Ada" >&5
2232 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 cat >conftest.adb <<EOF
2236 procedure conftest is begin null; end conftest;
2238 acx_cv_cc_gcc_supports_ada=no
2239 # There is a bug in old released versions of GCC which causes the
2240 # driver to exit successfully when the appropriate language module
2241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2242 # Therefore we must check for the error message as well as an
2243 # unsuccessful exit.
2244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2245 # given a .adb file, but produce no object file. So we must check
2246 # if an object file was really produced to guard against this.
2247 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2248 if test x"$errors" = x && test -f conftest.$ac_objext; then
2249 acx_cv_cc_gcc_supports_ada=yes
2251 rm -f conftest.*
2254 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2256 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2257 have_gnat=yes
2258 else
2259 have_gnat=no
2262 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2263 echo "configure:2264: checking how to compare bootstrapped objects" >&5
2264 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 echo abfoo >t1
2268 echo cdfoo >t2
2269 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2273 else
2274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2280 else
2281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2284 rm t1 t2
2288 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2289 do_compare="$gcc_cv_prog_cmp_skip"
2293 # Check for GMP and MPFR
2294 gmplibs="-lmpfr"
2295 gmpinc=
2296 have_gmp=yes
2297 # Specify a location for mpfr
2298 # check for this first so it ends up on the link line before gmp.
2299 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2300 if test "${with_mpfr_dir+set}" = set; then
2301 withval="$with_mpfr_dir"
2302 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2303 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2307 # Check whether --with-mpfr or --without-mpfr was given.
2308 if test "${with_mpfr+set}" = set; then
2309 withval="$with_mpfr"
2313 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2314 if test "${with_mpfr_include+set}" = set; then
2315 withval="$with_mpfr_include"
2319 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2320 if test "${with_mpfr_lib+set}" = set; then
2321 withval="$with_mpfr_lib"
2326 if test "x$with_mpfr" != x; then
2327 gmplibs="-L$with_mpfr/lib $gmplibs"
2328 gmpinc="-I$with_mpfr/include"
2330 if test "x$with_mpfr_include" != x; then
2331 gmpinc="-I$with_mpfr_include"
2333 if test "x$with_mpfr_lib" != x; then
2334 gmplibs="-L$with_mpfr_lib $gmplibs"
2337 # Specify a location for gmp
2338 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2339 if test "${with_gmp_dir+set}" = set; then
2340 withval="$with_gmp_dir"
2341 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2342 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2346 gmplibs="$gmplibs -lgmp"
2348 # Check whether --with-gmp or --without-gmp was given.
2349 if test "${with_gmp+set}" = set; then
2350 withval="$with_gmp"
2354 # Check whether --with-gmp_include or --without-gmp_include was given.
2355 if test "${with_gmp_include+set}" = set; then
2356 withval="$with_gmp_include"
2360 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2361 if test "${with_gmp_lib+set}" = set; then
2362 withval="$with_gmp_lib"
2368 if test "x$with_gmp" != x; then
2369 gmplibs="-L$with_gmp/lib $gmplibs"
2370 gmpinc="-I$with_gmp/include $gmpinc"
2372 if test "x$with_gmp_include" != x; then
2373 gmpinc="-I$with_gmp_include $gmpinc"
2375 if test "x$with_gmp_lib" != x; then
2376 gmplibs="-L$with_gmp_lib $gmplibs"
2379 saved_CFLAGS="$CFLAGS"
2380 CFLAGS="$CFLAGS $gmpinc"
2381 # Check GMP actually works
2382 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2383 echo "configure:2384: checking for correct version of gmp.h" >&5
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include "gmp.h"
2388 int main() {
2390 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2391 choke me
2392 #endif
2394 ; return 0; }
2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2397 rm -rf conftest*
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 echo "$ac_t""no" 1>&6; have_gmp=no
2405 rm -f conftest*
2407 if test x"$have_gmp" = xyes; then
2408 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2409 echo "configure:2410: checking for correct version of mpfr.h" >&5
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include "gmp.h"
2414 #include <mpfr.h>
2415 int main() {
2417 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2418 choke me
2419 #endif
2421 ; return 0; }
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 rm -rf conftest*
2425 echo "$ac_t""yes" 1>&6
2426 else
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 rm -rf conftest*
2430 echo "$ac_t""buggy version of MPFR detected" 1>&6
2432 rm -f conftest*
2434 saved_LIBS="$LIBS"
2435 LIBS="$LIBS $gmplibs"
2436 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2437 echo "configure:2438: checking for any version of mpfr.h" >&5
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <gmp.h>
2442 #include <mpfr.h>
2443 int main() {
2444 mpfr_t n; mpfr_init(n);
2445 ; return 0; }
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2448 rm -rf conftest*
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 rm -rf conftest*
2454 echo "$ac_t""no" 1>&6; have_gmp=no
2456 rm -f conftest*
2457 LIBS="$saved_LIBS"
2459 CFLAGS="$saved_CFLAGS"
2461 # Flags needed for both GMP and/or MPFR
2465 # By default, C is the only stage 1 language.
2466 stage1_languages=c
2469 # Figure out what language subdirectories are present.
2470 # Look if the user specified --enable-languages="..."; if not, use
2471 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2472 # go away some day.
2473 # NB: embedded tabs in this IF block -- do not untabify
2474 if test -d ${srcdir}/gcc; then
2475 if test x"${enable_languages+set}" != xset; then
2476 if test x"${LANGUAGES+set}" = xset; then
2477 enable_languages="${LANGUAGES}"
2478 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2479 else
2480 enable_languages=all
2482 else
2483 if test x"${enable_languages}" = x ||
2484 test x"${enable_languages}" = xyes;
2485 then
2486 echo configure.in: --enable-languages needs at least one language argument 1>&2
2487 exit 1
2490 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2492 # 'f95' is the old name for the 'fortran' language. We issue a warning
2493 # and make the substitution.
2494 case ,${enable_languages}, in
2495 *,f95,*)
2496 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2497 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2499 esac
2501 # First scan to see if an enabled language requires some other language.
2502 # We assume that a given config-lang.in will list all the language
2503 # front ends it requires, even if some are required indirectly.
2504 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2505 case ${lang_frag} in
2506 ..) ;;
2507 # The odd quoting in the next line works around
2508 # an apparent bug in bash 1.12 on linux.
2509 ${srcdir}/gcc/[*]/config-lang.in) ;;
2511 # From the config-lang.in, get $language, $lang_requires
2512 language=
2513 lang_requires=
2514 . ${lang_frag}
2515 for other in ${lang_requires} ; do
2516 case ,${enable_languages}, in
2517 *,$other,*) ;;
2518 *,all,*) ;;
2519 *,$language,*)
2520 echo " \`$other' language required by \`$language'; enabling" 1>&2
2521 enable_languages="${enable_languages},${other}"
2523 esac
2524 done
2526 esac
2527 done
2529 new_enable_languages=c
2530 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2531 potential_languages=c
2533 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2534 case ${lang_frag} in
2535 ..) ;;
2536 # The odd quoting in the next line works around
2537 # an apparent bug in bash 1.12 on linux.
2538 ${srcdir}/gcc/[*]/config-lang.in) ;;
2540 # From the config-lang.in, get $language, $target_libs,
2541 # $lang_dirs, $boot_language, and $build_by_default
2542 language=
2543 target_libs=
2544 lang_dirs=
2545 subdir_requires=
2546 boot_language=
2547 build_by_default=
2548 need_gmp=
2549 . ${lang_frag}
2550 potential_languages="${potential_languages},${language}"
2551 # This is quite sensitive to the ordering of the case statement arms.
2552 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2553 *::*:*)
2554 echo "${lang_frag} doesn't set \$language." 1>&2
2555 exit 1
2557 *:ada:no:*)
2558 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2559 add_this_lang=no
2561 *,${language},*:*:*:*)
2562 # Language was explicitly selected; include it.
2563 add_this_lang=yes
2565 *,all,*:*:*:no)
2566 # 'all' was selected, but this is not a default language
2567 # so do not include it.
2568 add_this_lang=no
2570 *,all,*:*:*:*)
2571 # 'all' was selected and this is a default language; include it.
2572 add_this_lang=yes
2575 add_this_lang=no
2577 esac
2579 # Disable languages that need other directories if these aren't available.
2580 for i in $subdir_requires; do
2581 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2582 case ,${enable_languages}, in
2583 *,${language},*)
2584 # Specifically requested language; tell them.
2585 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2588 # Silently disable.
2589 add_this_lang=no
2591 esac
2592 done
2594 # Disable languages that need GMP if it isn't available.
2595 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2596 *,${language},*:no:yes)
2597 # Specifically requested language; tell them.
2598 { echo "configure: error: GMP 4.1 and MPFR 2.2.1 or newer versions required by $language" 1>&2; exit 1; }
2600 *:no:yes)
2601 # Silently disable.
2602 add_this_lang=no
2604 esac
2606 # Disable a language that is unsupported by the target.
2607 case " $unsupported_languages " in
2608 *" $language "*)
2609 add_this_lang=no
2611 esac
2613 case $add_this_lang in
2615 # Remove language-dependent dirs.
2616 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2619 new_enable_languages="$new_enable_languages,$language"
2620 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2621 case ${boot_language} in
2622 yes)
2623 # Add to (comma-separated) list of stage 1 languages.
2624 stage1_languages="${stage1_languages},${language}"
2626 esac
2628 esac
2630 esac
2631 done
2633 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2634 if test "x$missing_languages" != x; then
2635 { echo "configure: error:
2636 The following requested languages could not be built: ${missing_languages}
2637 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2640 if test "x$new_enable_languages" != "x$enable_languages"; then
2641 echo The following languages will be built: ${new_enable_languages}
2643 enable_languages="$new_enable_languages"
2644 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2647 # Handle --disable-<component> generically.
2648 for dir in $configdirs $build_configdirs $target_configdirs ; do
2649 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2650 if eval test x\${enable_${dirname}} "=" xno ; then
2651 noconfigdirs="$noconfigdirs $dir"
2653 done
2655 # Check for Boehm's garbage collector
2656 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2657 if test "${enable_objc_gc+set}" = set; then
2658 enableval="$enable_objc_gc"
2659 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2660 *,objc,*:*:yes:*target-boehm-gc*)
2661 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2663 esac
2667 # Make sure we only build Boehm's garbage collector if required.
2668 case ,${enable_languages},:${enable_objc_gc} in
2669 *,objc,*:yes)
2670 # Keep target-boehm-gc if requested for Objective-C.
2673 # Otherwise remove target-boehm-gc depending on target-libjava.
2674 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2675 noconfigdirs="$noconfigdirs target-boehm-gc"
2678 esac
2680 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2681 # $build_configdirs and $target_configdirs.
2682 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2684 notsupp=""
2685 for dir in . $skipdirs $noconfigdirs ; do
2686 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2687 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2688 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2689 if test -r $srcdir/$dirname/configure ; then
2690 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2691 true
2692 else
2693 notsupp="$notsupp $dir"
2697 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2698 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2699 if test -r $srcdir/$dirname/configure ; then
2700 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2701 true
2702 else
2703 notsupp="$notsupp $dir"
2707 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2708 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2709 if test -r $srcdir/$dirname/configure ; then
2710 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2711 true
2712 else
2713 notsupp="$notsupp $dir"
2717 done
2719 # Sometimes the tools are distributed with libiberty but with no other
2720 # libraries. In that case, we don't want to build target-libiberty.
2721 if test -n "${target_configdirs}" ; then
2722 others=
2723 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2724 if test "$i" != "libiberty" ; then
2725 if test -r $srcdir/$i/configure ; then
2726 others=yes;
2727 break;
2730 done
2731 if test -z "${others}" ; then
2732 target_configdirs=
2736 # Quietly strip out all directories which aren't configurable in this tree.
2737 # This relies on all configurable subdirectories being autoconfiscated, which
2738 # is now the case.
2739 build_configdirs_all="$build_configdirs"
2740 build_configdirs=
2741 for i in ${build_configdirs_all} ; do
2742 j=`echo $i | sed -e s/build-//g`
2743 if test -f ${srcdir}/$j/configure ; then
2744 build_configdirs="${build_configdirs} $i"
2746 done
2748 configdirs_all="$configdirs"
2749 configdirs=
2750 for i in ${configdirs_all} ; do
2751 if test -f ${srcdir}/$i/configure ; then
2752 configdirs="${configdirs} $i"
2754 done
2756 target_configdirs_all="$target_configdirs"
2757 target_configdirs=
2758 for i in ${target_configdirs_all} ; do
2759 j=`echo $i | sed -e s/target-//g`
2760 if test -f ${srcdir}/$j/configure ; then
2761 target_configdirs="${target_configdirs} $i"
2763 done
2765 # Produce a warning message for the subdirs we can't configure.
2766 # This isn't especially interesting in the Cygnus tree, but in the individual
2767 # FSF releases, it's important to let people know when their machine isn't
2768 # supported by the one or two programs in a package.
2770 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2771 # If $appdirs is non-empty, at least one of those directories must still
2772 # be configured, or we error out. (E.g., if the gas release supports a
2773 # specified target in some subdirs but not the gas subdir, we shouldn't
2774 # pretend that all is well.)
2775 if test -n "$appdirs" ; then
2776 for dir in $appdirs ; do
2777 if test -r $dir/Makefile.in ; then
2778 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2779 appdirs=""
2780 break
2782 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2783 appdirs=""
2784 break
2787 done
2788 if test -n "$appdirs" ; then
2789 echo "*** This configuration is not supported by this package." 1>&2
2790 exit 1
2793 # Okay, some application will build, or we don't care to check. Still
2794 # notify of subdirs not getting built.
2795 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2796 echo " ${notsupp}" 1>&2
2797 echo " (Any other directories should still work fine.)" 1>&2
2800 case "$host" in
2801 *msdosdjgpp*)
2802 enable_gdbtk=no ;;
2803 esac
2805 copy_dirs=
2807 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2808 if test "${with_build_sysroot+set}" = set; then
2809 withval="$with_build_sysroot"
2810 if test x"$withval" != x ; then
2811 # LLVM LOCAL begin Keep original --sysroot usage for non-Darwin targets.
2812 case "${target}" in
2813 # APPLE LOCAL 7852964 Use -isysroot instead of --sysroot.
2814 *-*-darwin*) SYSROOT_CFLAGS_FOR_TARGET="-isysroot $withval" ;;
2815 *) SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" ;;
2816 esac
2817 # LLVM LOCAL end Keep original --sysroot usage for non-Darwin targets.
2819 else
2820 SYSROOT_CFLAGS_FOR_TARGET=
2825 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2826 # the named directory are copied to $(tooldir)/sys-include.
2827 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2828 if test x${is_cross_compiler} = xno ; then
2829 echo 1>&2 '***' --with-headers is only supported when cross compiling
2830 exit 1
2832 if test x"${with_headers}" != xyes ; then
2833 case "${exec_prefixoption}" in
2834 "") x=${prefix} ;;
2835 *) x=${exec_prefix} ;;
2836 esac
2837 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2841 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2842 # the name directories are copied to $(tooldir)/lib. Multiple directories
2843 # are permitted.
2844 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2845 if test x${is_cross_compiler} = xno ; then
2846 echo 1>&2 '***' --with-libs is only supported when cross compiling
2847 exit 1
2849 if test x"${with_libs}" != xyes ; then
2850 # Copy the libraries in reverse order, so that files in the first named
2851 # library override files in subsequent libraries.
2852 case "${exec_prefixoption}" in
2853 "") x=${prefix} ;;
2854 *) x=${exec_prefix} ;;
2855 esac
2856 for l in ${with_libs}; do
2857 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2858 done
2862 # Set with_gnu_as and with_gnu_ld as appropriate.
2864 # This is done by determining whether or not the appropriate directory
2865 # is available, and by checking whether or not specific configurations
2866 # have requested that this magic not happen.
2868 # The command line options always override the explicit settings in
2869 # configure.in, and the settings in configure.in override this magic.
2871 # If the default for a toolchain is to use GNU as and ld, and you don't
2872 # want to do that, then you should use the --without-gnu-as and
2873 # --without-gnu-ld options for the configure script.
2875 if test x${use_gnu_as} = x &&
2876 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2877 with_gnu_as=yes
2878 extra_host_args="$extra_host_args --with-gnu-as"
2881 if test x${use_gnu_ld} = x &&
2882 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2883 with_gnu_ld=yes
2884 extra_host_args="$extra_host_args --with-gnu-ld"
2887 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2888 # can detect this case.
2890 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2891 with_newlib=yes
2892 extra_host_args="$extra_host_args --with-newlib"
2895 # Handle ${copy_dirs}
2896 set fnord ${copy_dirs}
2897 shift
2898 while test $# != 0 ; do
2899 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2901 else
2902 echo Copying $1 to $2
2904 # Use the install script to create the directory and all required
2905 # parent directories.
2906 if test -d $2 ; then
2908 else
2909 echo >config.temp
2910 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2913 # Copy the directory, assuming we have tar.
2914 # FIXME: Should we use B in the second tar? Not all systems support it.
2915 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2917 # It is the responsibility of the user to correctly adjust all
2918 # symlinks. If somebody can figure out how to handle them correctly
2919 # here, feel free to add the code.
2921 echo $1 > $2/COPIED
2923 shift; shift
2924 done
2926 # Determine a target-dependent exec_prefix that the installed
2927 # gcc will search in. Keep this list sorted by triplet, with
2928 # the *-*-osname triplets last.
2929 md_exec_prefix=
2930 case "${target}" in
2931 alpha*-*-*vms*)
2932 md_exec_prefix=/gnu/lib/gcc-lib
2934 i3456786-pc-msdosdjgpp*)
2935 md_exec_prefix=/dev/env/DJDIR/bin
2937 i3456786-*-sco3.2v5*)
2938 if test $with_gnu_as = yes; then
2939 md_exec_prefix=/usr/gnu/bin
2940 else
2941 md_exec_prefix=/usr/ccs/bin/elf
2945 mn10300-*-* | \
2946 powerpc-*-chorusos* | \
2947 powerpc*-*-eabi* | \
2948 powerpc*-*-sysv* | \
2949 powerpc*-*-kaos* | \
2950 s390x-ibm-tpf*)
2951 md_exec_prefix=/usr/ccs/bin
2953 sparc64-*-elf*)
2955 v850*-*-*)
2956 md_exec_prefix=/usr/ccs/bin
2958 xtensa-*-elf*)
2961 *-*-beos* | \
2962 *-*-elf* | \
2963 *-*-hpux* | \
2964 *-*-netware* | \
2965 *-*-nto-qnx* | \
2966 *-*-rtems* | \
2967 *-*-solaris2* | \
2968 *-*-sysv45* | \
2969 *-*-vxworks* | \
2970 *-wrs-windiss)
2971 md_exec_prefix=/usr/ccs/bin
2973 esac
2975 extra_arflags_for_target=
2976 extra_nmflags_for_target=
2977 extra_ranlibflags_for_target=
2978 target_makefile_frag=/dev/null
2979 case "${target}" in
2980 *-*-netware*)
2981 target_makefile_frag="config/mt-netware"
2983 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2984 target_makefile_frag="config/mt-gnu"
2986 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2987 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2988 # commands to handle both 32-bit and 64-bit objects. These flags are
2989 # harmless if we're using GNU nm or ar.
2990 extra_arflags_for_target=" -X32_64"
2991 extra_nmflags_for_target=" -B -X32_64"
2993 *-*-darwin*)
2994 # ranlib from Darwin requires the -c flag to look at common symbols.
2995 extra_ranlibflags_for_target=" -c"
2997 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2998 target_makefile_frag="config/mt-wince"
3000 esac
3002 alphaieee_frag=/dev/null
3003 case $target in
3004 alpha*-*-*)
3005 # This just makes sure to use the -mieee option to build target libs.
3006 # This should probably be set individually by each library.
3007 alphaieee_frag="config/mt-alphaieee"
3009 esac
3011 # If --enable-target-optspace always use -Os instead of -O2 to build
3012 # the target libraries, similarly if it is not specified, use -Os
3013 # on selected platforms.
3014 ospace_frag=/dev/null
3015 case "${enable_target_optspace}:${target}" in
3016 yes:*)
3017 ospace_frag="config/mt-ospace"
3019 :d30v-*)
3020 ospace_frag="config/mt-d30v"
3022 :m32r-* | :d10v-* | :fr30-*)
3023 ospace_frag="config/mt-ospace"
3025 no:* | :*)
3028 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3030 esac
3032 # Default to using --with-stabs for certain targets.
3033 if test x${with_stabs} = x ; then
3034 case "${target}" in
3035 mips*-*-irix[56]*)
3037 mips*-*-* | alpha*-*-osf*)
3038 with_stabs=yes;
3039 extra_host_args="${extra_host_args} --with-stabs"
3041 esac
3044 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3045 # them automatically.
3046 case "${host}" in
3047 hppa*64*-*-hpux11*)
3048 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3050 esac
3052 # Some systems (e.g., one of the i386-aix systems the gas testers are
3053 # using) don't handle "\$" correctly, so don't use it here.
3054 tooldir='${exec_prefix}'/${target_alias}
3055 build_tooldir=${tooldir}
3057 # Create a .gdbinit file which runs the one in srcdir
3058 # and tells GDB to look there for source files.
3060 if test -r ${srcdir}/.gdbinit ; then
3061 case ${srcdir} in
3062 .) ;;
3063 *) cat > ./.gdbinit <<EOF
3064 # ${NO_EDIT}
3065 dir ${srcdir}
3066 dir .
3067 source ${srcdir}/.gdbinit
3070 esac
3073 # Make sure that the compiler is able to generate an executable. If it
3074 # can't, we are probably in trouble. We don't care whether we can run the
3075 # executable--we might be using a cross compiler--we only care whether it
3076 # can be created. At this point the main configure script has set CC.
3077 we_are_ok=no
3078 echo "int main () { return 0; }" > conftest.c
3079 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3080 if test $? = 0 ; then
3081 if test -s conftest || test -s conftest.exe ; then
3082 we_are_ok=yes
3085 case $we_are_ok in
3087 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3088 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3089 rm -f conftest*
3090 exit 1
3092 esac
3093 rm -f conftest*
3095 # The Solaris /usr/ucb/cc compiler does not appear to work.
3096 case "${host}" in
3097 sparc-sun-solaris2*)
3098 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3099 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3100 could_use=
3101 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3102 if test -d /opt/cygnus/bin ; then
3103 if test "$could_use" = "" ; then
3104 could_use="/opt/cygnus/bin"
3105 else
3106 could_use="$could_use or /opt/cygnus/bin"
3109 if test "$could_use" = "" ; then
3110 echo "Warning: compilation may fail because you're using"
3111 echo "/usr/ucb/cc. You should change your PATH or CC "
3112 echo "variable and rerun configure."
3113 else
3114 echo "Warning: compilation may fail because you're using"
3115 echo "/usr/ucb/cc, when you should use the C compiler from"
3116 echo "$could_use. You should change your"
3117 echo "PATH or CC variable and rerun configure."
3121 esac
3123 case "${host}" in
3124 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3125 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3126 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3127 esac
3129 # Record target_configdirs and the configure arguments for target and
3130 # build configuration in Makefile.
3131 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3132 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3134 # Determine whether gdb needs tk/tcl or not.
3135 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3136 # and in that case we want gdb to be built without tk. Ugh!
3137 # In fact I believe gdb is the *only* package directly dependent on tk,
3138 # so we should be able to put the 'maybe's in unconditionally and
3139 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3140 # 100% sure that that's safe though.
3142 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3143 case "$enable_gdbtk" in
3145 GDB_TK="" ;;
3146 yes)
3147 GDB_TK="${gdb_tk}" ;;
3149 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3150 # distro. Eventually someone will fix this and move Insight, nee
3151 # gdbtk to a separate directory.
3152 if test -d ${srcdir}/gdb/gdbtk ; then
3153 GDB_TK="${gdb_tk}"
3154 else
3155 GDB_TK=""
3158 esac
3159 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3160 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3162 # Strip out unwanted targets.
3164 # While at that, we remove Makefiles if we were started for recursive
3165 # configuration, so that the top-level Makefile reconfigures them,
3166 # like we used to do when configure itself was recursive.
3168 # Loop over modules. $extrasub must be used with care, limiting as
3169 # much as possible the usage of range addresses. That's because autoconf
3170 # splits the sed script to overcome limits in the number of commands,
3171 # and relying on carefully-timed sed passes may turn out to be very hard
3172 # to maintain later. In this particular case, you just have to be careful
3173 # not to nest @if/@endif pairs, because configure will not warn you at all.
3175 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3176 if test "${enable_bootstrap+set}" = set; then
3177 enableval="$enable_bootstrap"
3179 else
3180 enable_bootstrap=default
3184 # Issue errors and warnings for invalid/strange bootstrap combinations.
3185 case "$configdirs" in
3186 *gcc*) have_compiler=yes ;;
3187 *) have_compiler=no ;;
3188 esac
3190 case "$have_compiler:$host:$target:$enable_bootstrap" in
3191 *:*:*:no) ;;
3193 # Default behavior. Enable bootstrap if we have a compiler
3194 # and we are in a native configuration.
3195 yes:$build:$build:default)
3196 enable_bootstrap=yes ;;
3198 *:*:*:default)
3199 enable_bootstrap=no ;;
3201 # We have a compiler and we are in a native configuration, bootstrap is ok
3202 yes:$build:$build:yes)
3205 # Other configurations, but we have a compiler. Assume the user knows
3206 # what he's doing.
3207 yes:*:*:yes)
3208 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3211 # No compiler: if they passed --enable-bootstrap explicitly, fail
3212 no:*:*:yes)
3213 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3215 # Fail if wrong command line
3217 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3219 esac
3221 # Adjust the toplevel makefile according to whether bootstrap was selected.
3222 case "$enable_bootstrap" in
3223 yes)
3224 bootstrap_suffix=bootstrap ;;
3226 bootstrap_suffix=no-bootstrap ;;
3227 esac
3229 for module in ${build_configdirs} ; do
3230 if test -z "${no_recursion}" \
3231 && test -f ${build_subdir}/${module}/Makefile; then
3232 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3233 rm -f ${build_subdir}/${module}/Makefile
3235 extrasub="$extrasub
3236 /^@if build-$module\$/d
3237 /^@endif build-$module\$/d
3238 /^@if build-$module-$bootstrap_suffix\$/d
3239 /^@endif build-$module-$bootstrap_suffix\$/d"
3240 done
3241 for module in ${configdirs} ; do
3242 if test -z "${no_recursion}"; then
3243 for file in stage*-${module}/Makefile ${module}/Makefile; do
3244 if test -f ${file}; then
3245 echo 1>&2 "*** removing ${file} to force reconfigure"
3246 rm -f ${file}
3248 done
3250 extrasub="$extrasub
3251 /^@if $module\$/d
3252 /^@endif $module\$/d
3253 /^@if $module-$bootstrap_suffix\$/d
3254 /^@endif $module-$bootstrap_suffix\$/d"
3255 done
3256 for module in ${target_configdirs} ; do
3257 if test -z "${no_recursion}" \
3258 && test -f ${target_subdir}/${module}/Makefile; then
3259 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3260 rm -f ${target_subdir}/${module}/Makefile
3262 extrasub="$extrasub
3263 /^@if target-$module\$/d
3264 /^@endif target-$module\$/d
3265 /^@if target-$module-$bootstrap_suffix\$/d
3266 /^@endif target-$module-$bootstrap_suffix\$/d"
3267 done
3269 extrasub="$extrasub
3270 /^@if /,/^@endif /d"
3272 # Create the serialization dependencies. This uses a temporary file.
3274 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3275 if test "${enable_serial_configure+set}" = set; then
3276 enableval="$enable_serial_configure"
3281 case ${enable_serial_configure} in
3282 yes)
3283 enable_serial_build_configure=yes
3284 enable_serial_host_configure=yes
3285 enable_serial_target_configure=yes
3287 esac
3289 # These force 'configure's to be done one at a time, to avoid problems
3290 # with contention over a shared config.cache.
3291 rm -f serdep.tmp
3292 echo '# serdep.tmp' > serdep.tmp
3293 olditem=
3294 test "x${enable_serial_build_configure}" = xyes &&
3295 for item in ${build_configdirs} ; do
3296 case ${olditem} in
3297 "") ;;
3298 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3299 esac
3300 olditem=${item}
3301 done
3302 olditem=
3303 test "x${enable_serial_host_configure}" = xyes &&
3304 for item in ${configdirs} ; do
3305 case ${olditem} in
3306 "") ;;
3307 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3308 esac
3309 olditem=${item}
3310 done
3311 olditem=
3312 test "x${enable_serial_target_configure}" = xyes &&
3313 for item in ${target_configdirs} ; do
3314 case ${olditem} in
3315 "") ;;
3316 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3317 esac
3318 olditem=${item}
3319 done
3320 serialization_dependencies=serdep.tmp
3323 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3324 # target and nonopt. These are the ones we might not want to pass
3325 # down to subconfigures. Also strip program-prefix, program-suffix,
3326 # and program-transform-name, so that we can pass down a consistent
3327 # program-transform-name. If autoconf has put single quotes around
3328 # any of these arguments (because they contain shell metacharacters)
3329 # then this will fail; in practice this only happens for
3330 # --program-transform-name, so be sure to override --program-transform-name
3331 # at the end of the argument list.
3332 # These will be expanded by make, so quote '$'.
3333 cat <<\EOF_SED > conftestsed
3334 s/ --no[^ ]*/ /g
3335 s/ --c[a-z-]*[= ][^ ]*//g
3336 s/ --sr[a-z-]*[= ][^ ]*//g
3337 s/ --ho[a-z-]*[= ][^ ]*//g
3338 s/ --bu[a-z-]*[= ][^ ]*//g
3339 s/ --t[a-z-]*[= ][^ ]*//g
3340 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3341 s/ -cache-file[= ][^ ]*//g
3342 s/ -srcdir[= ][^ ]*//g
3343 s/ -host[= ][^ ]*//g
3344 s/ -build[= ][^ ]*//g
3345 s/ -target[= ][^ ]*//g
3346 s/ -program-prefix[= ][^ ]*//g
3347 s/ -program-suffix[= ][^ ]*//g
3348 s/ -program-transform-name[= ][^ ]*//g
3349 s/ [^' -][^ ]* / /
3350 s/^ *//;s/ *$//
3351 s,\$,$$,g
3352 EOF_SED
3353 sed -f conftestsed <<EOF_SED > conftestsed.out
3354 ${ac_configure_args}
3355 EOF_SED
3356 baseargs=`cat conftestsed.out`
3357 rm -f conftestsed conftestsed.out
3359 # Add in --program-transform-name, after --program-prefix and
3360 # --program-suffix have been applied to it. Autoconf has already
3361 # doubled dollar signs and backslashes in program_transform_name; we want
3362 # the backslashes un-doubled, and then the entire thing wrapped in single
3363 # quotes, because this will be expanded first by make and then by the shell.
3364 # Also, because we want to override the logic in subdir configure scripts to
3365 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3366 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3367 ${program_transform_name}
3368 EOF_SED
3369 gcc_transform_name=`cat conftestsed.out`
3370 rm -f conftestsed.out
3371 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3373 # For the build-side libraries, we just need to pretend we're native,
3374 # and not use the same cache file. Multilibs are neither needed nor
3375 # desired.
3376 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3378 # For host modules, accept cache file option, or specification as blank.
3379 case "${cache_file}" in
3380 "") # empty
3381 cache_file_option="" ;;
3382 /* | [A-Za-z]:[\\/]* ) # absolute path
3383 cache_file_option="--cache-file=${cache_file}" ;;
3384 *) # relative path
3385 cache_file_option="--cache-file=../${cache_file}" ;;
3386 esac
3388 # Host dirs don't like to share a cache file either, horribly enough.
3389 # This seems to be due to autoconf 2.5x stupidity.
3390 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3392 target_configargs=${baseargs}
3394 # Passing a --with-cross-host argument lets the target libraries know
3395 # whether they are being built with a cross-compiler or being built
3396 # native. However, it would be better to use other mechanisms to make the
3397 # sorts of decisions they want to make on this basis. Please consider
3398 # this option to be deprecated. FIXME.
3399 if test x${is_cross_compiler} = xyes ; then
3400 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3403 # Default to --enable-multilib.
3404 if test x${enable_multilib} = x ; then
3405 target_configargs="--enable-multilib ${target_configargs}"
3408 # Pass --with-newlib if appropriate. Note that target_configdirs has
3409 # changed from the earlier setting of with_newlib.
3410 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3411 target_configargs="--with-newlib ${target_configargs}"
3414 # Different target subdirs use different values of certain variables
3415 # (notably CXX). Worse, multilibs use *lots* of different values.
3416 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3417 # it doesn't automatically accept command-line overrides of them.
3418 # This means it's not safe for target subdirs to share a cache file,
3419 # which is disgusting, but there you have it. Hopefully this can be
3420 # fixed in future. It's still worthwhile to use a cache file for each
3421 # directory. I think.
3423 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3424 # We need to pass --target, as newer autoconf's requires consistency
3425 # for target_alias and gcc doesn't manage it consistently.
3426 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3428 FLAGS_FOR_TARGET=
3429 case " $target_configdirs " in
3430 *" newlib "*)
3431 case " $target_configargs " in
3432 *" --with-newlib "*)
3433 case "$target" in
3434 *-cygwin*)
3435 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' ;;
3436 esac
3438 # If we're not building GCC, don't discard standard headers.
3439 if test -d ${srcdir}/gcc; then
3440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3442 if test "${build}" != "${host}"; then
3443 # On Canadian crosses, CC_FOR_TARGET will have already been set
3444 # by `configure', so we won't have an opportunity to add -Bgcc/
3445 # to it. This is right: we don't want to search that directory
3446 # for binaries, but we want the header files in there, so add
3447 # them explicitly.
3448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3450 # Someone might think of using the pre-installed headers on
3451 # Canadian crosses, in case the installed compiler is not fully
3452 # compatible with the compiler being built. In this case, it
3453 # would be better to flag an error than risking having
3454 # incompatible object files being constructed. We can't
3455 # guarantee that an error will be flagged, but let's hope the
3456 # compiler will do it, when presented with incompatible header
3457 # files.
3461 case "${target}-${is_cross_compiler}" in
3462 i[3456789]86-*-linux*-no)
3463 # Here host == target, so we don't need to build gcc,
3464 # so we don't want to discard standard headers.
3465 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3468 # If we're building newlib, use its generic headers last, but search
3469 # for any libc-related directories first (so make it the last -B
3470 # switch).
3471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3473 esac
3475 esac
3477 esac
3478 case "$target" in
3479 *-mingw*)
3480 # Can't be handled as Cygwin above since Mingw does not use newlib.
3481 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' ;;
3482 esac
3484 # Allow the user to override the flags for
3485 # our build compiler if desired.
3486 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3488 # On Canadian crosses, we'll be searching the right directories for
3489 # the previously-installed cross compiler, so don't bother to add
3490 # flags for directories within the install tree of the compiler
3491 # being built; programs in there won't even run.
3492 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3493 # Search for pre-installed headers if nothing else fits.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3497 if test "x${use_gnu_ld}" = x &&
3498 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3499 # Arrange for us to find uninstalled linker scripts.
3500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3503 # Search for other target-specific linker scripts and such.
3504 case "${target}" in
3505 m32c-*-* )
3506 if test -d ${srcdir}/libgloss/m32c; then
3507 # This is for crt0.o
3508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3509 # This is for r8c.ld
3510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3511 # This is for libnosys.a
3512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3515 esac
3517 # Makefile fragments.
3518 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3520 eval fragval=\$$frag
3521 if test $fragval != /dev/null; then
3522 eval $frag=${srcdir}/$fragval
3524 done
3530 # Miscellanea: directories, flags, etc.
3538 # Build module lists & subconfigure args.
3542 # Host module lists & subconfigure args.
3546 # Target module lists & subconfigure args.
3550 # Build tools.
3554 # Generate default definitions for YACC, M4, LEX and other programs that run
3555 # on the build machine. These are used if the Makefile can't locate these
3556 # programs in objdir.
3557 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3559 for ac_prog in 'bison -y' byacc yacc
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_word" >&5
3565 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 if test -n "$YACC"; then
3569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3570 else
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3572 ac_dummy="$PATH"
3573 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 if test -f $ac_dir/$ac_word; then
3576 ac_cv_prog_YACC="$ac_prog"
3577 break
3579 done
3580 IFS="$ac_save_ifs"
3583 YACC="$ac_cv_prog_YACC"
3584 if test -n "$YACC"; then
3585 echo "$ac_t""$YACC" 1>&6
3586 else
3587 echo "$ac_t""no" 1>&6
3590 test -n "$YACC" && break
3591 done
3592 test -n "$YACC" || YACC="$MISSING bison -y"
3594 case " $build_configdirs " in
3595 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3596 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3597 esac
3599 for ac_prog in bison
3601 # Extract the first word of "$ac_prog", so it can be a program name with args.
3602 set dummy $ac_prog; ac_word=$2
3603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3604 echo "configure:3605: checking for $ac_word" >&5
3605 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3607 else
3608 if test -n "$BISON"; then
3609 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3610 else
3611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3612 ac_dummy="$PATH"
3613 for ac_dir in $ac_dummy; do
3614 test -z "$ac_dir" && ac_dir=.
3615 if test -f $ac_dir/$ac_word; then
3616 ac_cv_prog_BISON="$ac_prog"
3617 break
3619 done
3620 IFS="$ac_save_ifs"
3623 BISON="$ac_cv_prog_BISON"
3624 if test -n "$BISON"; then
3625 echo "$ac_t""$BISON" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3630 test -n "$BISON" && break
3631 done
3632 test -n "$BISON" || BISON="$MISSING bison"
3634 case " $build_configdirs " in
3635 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3636 esac
3638 for ac_prog in gm4 gnum4 m4
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3643 echo "configure:3644: checking for $ac_word" >&5
3644 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3646 else
3647 if test -n "$M4"; then
3648 ac_cv_prog_M4="$M4" # Let the user override the test.
3649 else
3650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3651 ac_dummy="$PATH"
3652 for ac_dir in $ac_dummy; do
3653 test -z "$ac_dir" && ac_dir=.
3654 if test -f $ac_dir/$ac_word; then
3655 ac_cv_prog_M4="$ac_prog"
3656 break
3658 done
3659 IFS="$ac_save_ifs"
3662 M4="$ac_cv_prog_M4"
3663 if test -n "$M4"; then
3664 echo "$ac_t""$M4" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3669 test -n "$M4" && break
3670 done
3671 test -n "$M4" || M4="$MISSING m4"
3673 case " $build_configdirs " in
3674 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3675 esac
3677 for ac_prog in flex lex
3679 # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3682 echo "configure:3683: checking for $ac_word" >&5
3683 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3685 else
3686 if test -n "$LEX"; then
3687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3688 else
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3690 ac_dummy="$PATH"
3691 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 if test -f $ac_dir/$ac_word; then
3694 ac_cv_prog_LEX="$ac_prog"
3695 break
3697 done
3698 IFS="$ac_save_ifs"
3701 LEX="$ac_cv_prog_LEX"
3702 if test -n "$LEX"; then
3703 echo "$ac_t""$LEX" 1>&6
3704 else
3705 echo "$ac_t""no" 1>&6
3708 test -n "$LEX" && break
3709 done
3710 test -n "$LEX" || LEX="$MISSING flex"
3712 case " $build_configdirs " in
3713 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3714 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3715 esac
3717 for ac_prog in flex
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725 else
3726 if test -n "$FLEX"; then
3727 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3728 else
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3730 ac_dummy="$PATH"
3731 for ac_dir in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir=.
3733 if test -f $ac_dir/$ac_word; then
3734 ac_cv_prog_FLEX="$ac_prog"
3735 break
3737 done
3738 IFS="$ac_save_ifs"
3741 FLEX="$ac_cv_prog_FLEX"
3742 if test -n "$FLEX"; then
3743 echo "$ac_t""$FLEX" 1>&6
3744 else
3745 echo "$ac_t""no" 1>&6
3748 test -n "$FLEX" && break
3749 done
3750 test -n "$FLEX" || FLEX="$MISSING flex"
3752 case " $build_configdirs " in
3753 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3754 esac
3756 for ac_prog in makeinfo
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy $ac_prog; ac_word=$2
3760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_word" >&5
3762 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3764 else
3765 if test -n "$MAKEINFO"; then
3766 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3767 else
3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3769 ac_dummy="$PATH"
3770 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 if test -f $ac_dir/$ac_word; then
3773 ac_cv_prog_MAKEINFO="$ac_prog"
3774 break
3776 done
3777 IFS="$ac_save_ifs"
3780 MAKEINFO="$ac_cv_prog_MAKEINFO"
3781 if test -n "$MAKEINFO"; then
3782 echo "$ac_t""$MAKEINFO" 1>&6
3783 else
3784 echo "$ac_t""no" 1>&6
3787 test -n "$MAKEINFO" && break
3788 done
3789 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3791 case " $build_configdirs " in
3792 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3795 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3796 # higher, else we use the "missing" dummy.
3797 if ${MAKEINFO} --version \
3798 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then
3800 else
3801 MAKEINFO="$MISSING makeinfo"
3805 esac
3807 # FIXME: expect and dejagnu may become build tools?
3809 for ac_prog in expect
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_word" >&5
3815 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3818 if test -n "$EXPECT"; then
3819 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3820 else
3821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3822 ac_dummy="$PATH"
3823 for ac_dir in $ac_dummy; do
3824 test -z "$ac_dir" && ac_dir=.
3825 if test -f $ac_dir/$ac_word; then
3826 ac_cv_prog_EXPECT="$ac_prog"
3827 break
3829 done
3830 IFS="$ac_save_ifs"
3833 EXPECT="$ac_cv_prog_EXPECT"
3834 if test -n "$EXPECT"; then
3835 echo "$ac_t""$EXPECT" 1>&6
3836 else
3837 echo "$ac_t""no" 1>&6
3840 test -n "$EXPECT" && break
3841 done
3842 test -n "$EXPECT" || EXPECT="expect"
3844 case " $configdirs " in
3845 *" expect "*)
3846 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3848 esac
3850 for ac_prog in runtest
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_word" >&5
3856 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858 else
3859 if test -n "$RUNTEST"; then
3860 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3861 else
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3863 ac_dummy="$PATH"
3864 for ac_dir in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f $ac_dir/$ac_word; then
3867 ac_cv_prog_RUNTEST="$ac_prog"
3868 break
3870 done
3871 IFS="$ac_save_ifs"
3874 RUNTEST="$ac_cv_prog_RUNTEST"
3875 if test -n "$RUNTEST"; then
3876 echo "$ac_t""$RUNTEST" 1>&6
3877 else
3878 echo "$ac_t""no" 1>&6
3881 test -n "$RUNTEST" && break
3882 done
3883 test -n "$RUNTEST" || RUNTEST="runtest"
3885 case " $configdirs " in
3886 *" dejagnu "*)
3887 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3889 esac
3892 # Host tools.
3893 ncn_tool_prefix=
3894 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3895 ncn_target_tool_prefix=
3896 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3898 for ncn_progname in ar; do
3899 if test -n "$ncn_tool_prefix"; then
3900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3903 echo "configure:3904: checking for $ac_word" >&5
3904 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3907 if test -n "$AR"; then
3908 ac_cv_prog_AR="$AR" # Let the user override the test.
3909 else
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3916 break
3918 done
3919 IFS="$ac_save_ifs"
3922 AR="$ac_cv_prog_AR"
3923 if test -n "$AR"; then
3924 echo "$ac_t""$AR" 1>&6
3925 else
3926 echo "$ac_t""no" 1>&6
3930 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 if test -n "$AR"; then
3939 ac_cv_prog_AR="$AR" # Let the user override the test.
3940 else
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_AR="${ncn_progname}"
3947 break
3949 done
3950 IFS="$ac_save_ifs"
3953 AR="$ac_cv_prog_AR"
3954 if test -n "$AR"; then
3955 echo "$ac_t""$AR" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3961 test -n "$ac_cv_prog_AR" && break
3962 done
3964 if test -z "$ac_cv_prog_AR" ; then
3965 set dummy ar
3966 if test $build = $host ; then
3967 AR="$2"
3968 else
3969 AR="${ncn_tool_prefix}$2"
3973 for ncn_progname in as; do
3974 if test -n "$ncn_tool_prefix"; then
3975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3978 echo "configure:3979: checking for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3982 if test -n "$AS"; then
3983 ac_cv_prog_AS="$AS" # Let the user override the test.
3984 else
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3986 ac_dummy="$PATH"
3987 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 if test -f $ac_dir/$ac_word; then
3990 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3991 break
3993 done
3994 IFS="$ac_save_ifs"
3997 AS="$ac_cv_prog_AS"
3998 if test -n "$AS"; then
3999 echo "$ac_t""$AS" 1>&6
4000 else
4001 echo "$ac_t""no" 1>&6
4005 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
4006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4007 set dummy ${ncn_progname}; ac_word=$2
4008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4009 echo "configure:4010: checking for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 if test -n "$AS"; then
4014 ac_cv_prog_AS="$AS" # Let the user override the test.
4015 else
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4017 ac_dummy="$PATH"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_AS="${ncn_progname}"
4022 break
4024 done
4025 IFS="$ac_save_ifs"
4028 AS="$ac_cv_prog_AS"
4029 if test -n "$AS"; then
4030 echo "$ac_t""$AS" 1>&6
4031 else
4032 echo "$ac_t""no" 1>&6
4036 test -n "$ac_cv_prog_AS" && break
4037 done
4039 if test -z "$ac_cv_prog_AS" ; then
4040 set dummy as
4041 if test $build = $host ; then
4042 AS="$2"
4043 else
4044 AS="${ncn_tool_prefix}$2"
4048 for ncn_progname in dlltool; do
4049 if test -n "$ncn_tool_prefix"; then
4050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4053 echo "configure:4054: checking for $ac_word" >&5
4054 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4057 if test -n "$DLLTOOL"; then
4058 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4059 else
4060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4061 ac_dummy="$PATH"
4062 for ac_dir in $ac_dummy; do
4063 test -z "$ac_dir" && ac_dir=.
4064 if test -f $ac_dir/$ac_word; then
4065 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4066 break
4068 done
4069 IFS="$ac_save_ifs"
4072 DLLTOOL="$ac_cv_prog_DLLTOOL"
4073 if test -n "$DLLTOOL"; then
4074 echo "$ac_t""$DLLTOOL" 1>&6
4075 else
4076 echo "$ac_t""no" 1>&6
4080 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4082 set dummy ${ncn_progname}; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 if test -n "$DLLTOOL"; then
4089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4090 else
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4092 ac_dummy="$PATH"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_DLLTOOL="${ncn_progname}"
4097 break
4099 done
4100 IFS="$ac_save_ifs"
4103 DLLTOOL="$ac_cv_prog_DLLTOOL"
4104 if test -n "$DLLTOOL"; then
4105 echo "$ac_t""$DLLTOOL" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4111 test -n "$ac_cv_prog_DLLTOOL" && break
4112 done
4114 if test -z "$ac_cv_prog_DLLTOOL" ; then
4115 set dummy dlltool
4116 if test $build = $host ; then
4117 DLLTOOL="$2"
4118 else
4119 DLLTOOL="${ncn_tool_prefix}$2"
4123 for ncn_progname in ld; do
4124 if test -n "$ncn_tool_prefix"; then
4125 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4126 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_word" >&5
4129 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4131 else
4132 if test -n "$LD"; then
4133 ac_cv_prog_LD="$LD" # Let the user override the test.
4134 else
4135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4136 ac_dummy="$PATH"
4137 for ac_dir in $ac_dummy; do
4138 test -z "$ac_dir" && ac_dir=.
4139 if test -f $ac_dir/$ac_word; then
4140 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4141 break
4143 done
4144 IFS="$ac_save_ifs"
4147 LD="$ac_cv_prog_LD"
4148 if test -n "$LD"; then
4149 echo "$ac_t""$LD" 1>&6
4150 else
4151 echo "$ac_t""no" 1>&6
4155 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4157 set dummy ${ncn_progname}; ac_word=$2
4158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 if test -n "$LD"; then
4164 ac_cv_prog_LD="$LD" # Let the user override the test.
4165 else
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_LD="${ncn_progname}"
4172 break
4174 done
4175 IFS="$ac_save_ifs"
4178 LD="$ac_cv_prog_LD"
4179 if test -n "$LD"; then
4180 echo "$ac_t""$LD" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4186 test -n "$ac_cv_prog_LD" && break
4187 done
4189 if test -z "$ac_cv_prog_LD" ; then
4190 set dummy ld
4191 if test $build = $host ; then
4192 LD="$2"
4193 else
4194 LD="${ncn_tool_prefix}$2"
4198 for ncn_progname in lipo; do
4199 if test -n "$ncn_tool_prefix"; then
4200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4201 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4203 echo "configure:4204: checking for $ac_word" >&5
4204 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4206 else
4207 if test -n "$LIPO"; then
4208 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4209 else
4210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4211 ac_dummy="$PATH"
4212 for ac_dir in $ac_dummy; do
4213 test -z "$ac_dir" && ac_dir=.
4214 if test -f $ac_dir/$ac_word; then
4215 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4216 break
4218 done
4219 IFS="$ac_save_ifs"
4222 LIPO="$ac_cv_prog_LIPO"
4223 if test -n "$LIPO"; then
4224 echo "$ac_t""$LIPO" 1>&6
4225 else
4226 echo "$ac_t""no" 1>&6
4230 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4232 set dummy ${ncn_progname}; ac_word=$2
4233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4234 echo "configure:4235: checking for $ac_word" >&5
4235 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238 if test -n "$LIPO"; then
4239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4240 else
4241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4242 ac_dummy="$PATH"
4243 for ac_dir in $ac_dummy; do
4244 test -z "$ac_dir" && ac_dir=.
4245 if test -f $ac_dir/$ac_word; then
4246 ac_cv_prog_LIPO="${ncn_progname}"
4247 break
4249 done
4250 IFS="$ac_save_ifs"
4253 LIPO="$ac_cv_prog_LIPO"
4254 if test -n "$LIPO"; then
4255 echo "$ac_t""$LIPO" 1>&6
4256 else
4257 echo "$ac_t""no" 1>&6
4261 test -n "$ac_cv_prog_LIPO" && break
4262 done
4264 if test -z "$ac_cv_prog_LIPO" ; then
4265 set dummy lipo
4266 if test $build = $host ; then
4267 LIPO="$2"
4268 else
4269 LIPO="${ncn_tool_prefix}$2"
4273 for ncn_progname in nm; do
4274 if test -n "$ncn_tool_prefix"; then
4275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_word" >&5
4279 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4282 if test -n "$NM"; then
4283 ac_cv_prog_NM="$NM" # Let the user override the test.
4284 else
4285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4286 ac_dummy="$PATH"
4287 for ac_dir in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir=.
4289 if test -f $ac_dir/$ac_word; then
4290 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4291 break
4293 done
4294 IFS="$ac_save_ifs"
4297 NM="$ac_cv_prog_NM"
4298 if test -n "$NM"; then
4299 echo "$ac_t""$NM" 1>&6
4300 else
4301 echo "$ac_t""no" 1>&6
4305 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4307 set dummy ${ncn_progname}; ac_word=$2
4308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4309 echo "configure:4310: checking for $ac_word" >&5
4310 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313 if test -n "$NM"; then
4314 ac_cv_prog_NM="$NM" # Let the user override the test.
4315 else
4316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4317 ac_dummy="$PATH"
4318 for ac_dir in $ac_dummy; do
4319 test -z "$ac_dir" && ac_dir=.
4320 if test -f $ac_dir/$ac_word; then
4321 ac_cv_prog_NM="${ncn_progname}"
4322 break
4324 done
4325 IFS="$ac_save_ifs"
4328 NM="$ac_cv_prog_NM"
4329 if test -n "$NM"; then
4330 echo "$ac_t""$NM" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4336 test -n "$ac_cv_prog_NM" && break
4337 done
4339 if test -z "$ac_cv_prog_NM" ; then
4340 set dummy nm
4341 if test $build = $host ; then
4342 NM="$2"
4343 else
4344 NM="${ncn_tool_prefix}$2"
4348 for ncn_progname in ranlib; do
4349 if test -n "$ncn_tool_prefix"; then
4350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_word" >&5
4354 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356 else
4357 if test -n "$RANLIB"; then
4358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4359 else
4360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4361 ac_dummy="$PATH"
4362 for ac_dir in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if test -f $ac_dir/$ac_word; then
4365 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4366 break
4368 done
4369 IFS="$ac_save_ifs"
4372 RANLIB="$ac_cv_prog_RANLIB"
4373 if test -n "$RANLIB"; then
4374 echo "$ac_t""$RANLIB" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4380 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4382 set dummy ${ncn_progname}; ac_word=$2
4383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_word" >&5
4385 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 if test -n "$RANLIB"; then
4389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4390 else
4391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 ac_dummy="$PATH"
4393 for ac_dir in $ac_dummy; do
4394 test -z "$ac_dir" && ac_dir=.
4395 if test -f $ac_dir/$ac_word; then
4396 ac_cv_prog_RANLIB="${ncn_progname}"
4397 break
4399 done
4400 IFS="$ac_save_ifs"
4403 RANLIB="$ac_cv_prog_RANLIB"
4404 if test -n "$RANLIB"; then
4405 echo "$ac_t""$RANLIB" 1>&6
4406 else
4407 echo "$ac_t""no" 1>&6
4411 test -n "$ac_cv_prog_RANLIB" && break
4412 done
4414 if test -z "$ac_cv_prog_RANLIB" ; then
4415 RANLIB=":"
4418 for ncn_progname in strip; do
4419 if test -n "$ncn_tool_prefix"; then
4420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_word" >&5
4424 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4426 else
4427 if test -n "$STRIP"; then
4428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4429 else
4430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4431 ac_dummy="$PATH"
4432 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 if test -f $ac_dir/$ac_word; then
4435 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4436 break
4438 done
4439 IFS="$ac_save_ifs"
4442 STRIP="$ac_cv_prog_STRIP"
4443 if test -n "$STRIP"; then
4444 echo "$ac_t""$STRIP" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4450 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4452 set dummy ${ncn_progname}; ac_word=$2
4453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_word" >&5
4455 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 if test -n "$STRIP"; then
4459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4460 else
4461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4462 ac_dummy="$PATH"
4463 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/$ac_word; then
4466 ac_cv_prog_STRIP="${ncn_progname}"
4467 break
4469 done
4470 IFS="$ac_save_ifs"
4473 STRIP="$ac_cv_prog_STRIP"
4474 if test -n "$STRIP"; then
4475 echo "$ac_t""$STRIP" 1>&6
4476 else
4477 echo "$ac_t""no" 1>&6
4481 test -n "$ac_cv_prog_STRIP" && break
4482 done
4484 if test -z "$ac_cv_prog_STRIP" ; then
4485 STRIP=":"
4488 for ncn_progname in windres; do
4489 if test -n "$ncn_tool_prefix"; then
4490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4491 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4493 echo "configure:4494: checking for $ac_word" >&5
4494 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4496 else
4497 if test -n "$WINDRES"; then
4498 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4499 else
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4501 ac_dummy="$PATH"
4502 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f $ac_dir/$ac_word; then
4505 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4506 break
4508 done
4509 IFS="$ac_save_ifs"
4512 WINDRES="$ac_cv_prog_WINDRES"
4513 if test -n "$WINDRES"; then
4514 echo "$ac_t""$WINDRES" 1>&6
4515 else
4516 echo "$ac_t""no" 1>&6
4520 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4522 set dummy ${ncn_progname}; ac_word=$2
4523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_word" >&5
4525 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4527 else
4528 if test -n "$WINDRES"; then
4529 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4530 else
4531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4532 ac_dummy="$PATH"
4533 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f $ac_dir/$ac_word; then
4536 ac_cv_prog_WINDRES="${ncn_progname}"
4537 break
4539 done
4540 IFS="$ac_save_ifs"
4543 WINDRES="$ac_cv_prog_WINDRES"
4544 if test -n "$WINDRES"; then
4545 echo "$ac_t""$WINDRES" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4551 test -n "$ac_cv_prog_WINDRES" && break
4552 done
4554 if test -z "$ac_cv_prog_WINDRES" ; then
4555 set dummy windres
4556 if test $build = $host ; then
4557 WINDRES="$2"
4558 else
4559 WINDRES="${ncn_tool_prefix}$2"
4563 for ncn_progname in objcopy; do
4564 if test -n "$ncn_tool_prefix"; then
4565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4566 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_word" >&5
4569 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4571 else
4572 if test -n "$OBJCOPY"; then
4573 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4574 else
4575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4576 ac_dummy="$PATH"
4577 for ac_dir in $ac_dummy; do
4578 test -z "$ac_dir" && ac_dir=.
4579 if test -f $ac_dir/$ac_word; then
4580 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4581 break
4583 done
4584 IFS="$ac_save_ifs"
4587 OBJCOPY="$ac_cv_prog_OBJCOPY"
4588 if test -n "$OBJCOPY"; then
4589 echo "$ac_t""$OBJCOPY" 1>&6
4590 else
4591 echo "$ac_t""no" 1>&6
4595 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4597 set dummy ${ncn_progname}; ac_word=$2
4598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_word" >&5
4600 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4602 else
4603 if test -n "$OBJCOPY"; then
4604 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4605 else
4606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4607 ac_dummy="$PATH"
4608 for ac_dir in $ac_dummy; do
4609 test -z "$ac_dir" && ac_dir=.
4610 if test -f $ac_dir/$ac_word; then
4611 ac_cv_prog_OBJCOPY="${ncn_progname}"
4612 break
4614 done
4615 IFS="$ac_save_ifs"
4618 OBJCOPY="$ac_cv_prog_OBJCOPY"
4619 if test -n "$OBJCOPY"; then
4620 echo "$ac_t""$OBJCOPY" 1>&6
4621 else
4622 echo "$ac_t""no" 1>&6
4626 test -n "$ac_cv_prog_OBJCOPY" && break
4627 done
4629 if test -z "$ac_cv_prog_OBJCOPY" ; then
4630 set dummy objcopy
4631 if test $build = $host ; then
4632 OBJCOPY="$2"
4633 else
4634 OBJCOPY="${ncn_tool_prefix}$2"
4638 for ncn_progname in objdump; do
4639 if test -n "$ncn_tool_prefix"; then
4640 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4643 echo "configure:4644: checking for $ac_word" >&5
4644 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4646 else
4647 if test -n "$OBJDUMP"; then
4648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4649 else
4650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4651 ac_dummy="$PATH"
4652 for ac_dir in $ac_dummy; do
4653 test -z "$ac_dir" && ac_dir=.
4654 if test -f $ac_dir/$ac_word; then
4655 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4656 break
4658 done
4659 IFS="$ac_save_ifs"
4662 OBJDUMP="$ac_cv_prog_OBJDUMP"
4663 if test -n "$OBJDUMP"; then
4664 echo "$ac_t""$OBJDUMP" 1>&6
4665 else
4666 echo "$ac_t""no" 1>&6
4670 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4672 set dummy ${ncn_progname}; ac_word=$2
4673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_word" >&5
4675 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678 if test -n "$OBJDUMP"; then
4679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4680 else
4681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4682 ac_dummy="$PATH"
4683 for ac_dir in $ac_dummy; do
4684 test -z "$ac_dir" && ac_dir=.
4685 if test -f $ac_dir/$ac_word; then
4686 ac_cv_prog_OBJDUMP="${ncn_progname}"
4687 break
4689 done
4690 IFS="$ac_save_ifs"
4693 OBJDUMP="$ac_cv_prog_OBJDUMP"
4694 if test -n "$OBJDUMP"; then
4695 echo "$ac_t""$OBJDUMP" 1>&6
4696 else
4697 echo "$ac_t""no" 1>&6
4701 test -n "$ac_cv_prog_OBJDUMP" && break
4702 done
4704 if test -z "$ac_cv_prog_OBJDUMP" ; then
4705 set dummy objdump
4706 if test $build = $host ; then
4707 OBJDUMP="$2"
4708 else
4709 OBJDUMP="${ncn_tool_prefix}$2"
4719 # Target tools.
4720 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4721 if test "${with_build_time_tools+set}" = set; then
4722 withval="$with_build_time_tools"
4723 case x"$withval" in
4724 x/*) ;;
4726 with_build_time_tools=
4727 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4729 esac
4730 else
4731 with_build_time_tools=
4735 if test -n "$with_build_time_tools"; then
4736 for ncn_progname in cc gcc; do
4737 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4738 echo "configure:4739: checking for ${ncn_progname} in $with_build_time_tools" >&5
4739 if test -x $with_build_time_tools/${ncn_progname}; then
4740 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4741 echo "$ac_t""yes" 1>&6
4742 break
4743 else
4744 echo "$ac_t""no" 1>&6
4746 done
4749 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4750 for ncn_progname in cc gcc; do
4751 if test -n "$ncn_target_tool_prefix"; then
4752 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4753 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_word" >&5
4756 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4758 else
4759 if test -n "$CC_FOR_TARGET"; then
4760 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4761 else
4762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4763 ac_dummy="$PATH"
4764 for ac_dir in $ac_dummy; do
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f $ac_dir/$ac_word; then
4767 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4768 break
4770 done
4771 IFS="$ac_save_ifs"
4774 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4775 if test -n "$CC_FOR_TARGET"; then
4776 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4777 else
4778 echo "$ac_t""no" 1>&6
4782 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4784 set dummy ${ncn_progname}; ac_word=$2
4785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_word" >&5
4787 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789 else
4790 if test -n "$CC_FOR_TARGET"; then
4791 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4792 else
4793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4794 ac_dummy="$PATH"
4795 for ac_dir in $ac_dummy; do
4796 test -z "$ac_dir" && ac_dir=.
4797 if test -f $ac_dir/$ac_word; then
4798 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4799 break
4801 done
4802 IFS="$ac_save_ifs"
4805 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4806 if test -n "$CC_FOR_TARGET"; then
4807 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4808 else
4809 echo "$ac_t""no" 1>&6
4813 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4814 done
4817 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4818 set dummy cc gcc
4819 if test $build = $target ; then
4820 CC_FOR_TARGET="$2"
4821 else
4822 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4824 else
4825 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4828 if test -n "$with_build_time_tools"; then
4829 for ncn_progname in c++ g++ cxx gxx; do
4830 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4831 echo "configure:4832: checking for ${ncn_progname} in $with_build_time_tools" >&5
4832 if test -x $with_build_time_tools/${ncn_progname}; then
4833 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4834 echo "$ac_t""yes" 1>&6
4835 break
4836 else
4837 echo "$ac_t""no" 1>&6
4839 done
4842 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4843 for ncn_progname in c++ g++ cxx gxx; do
4844 if test -n "$ncn_target_tool_prefix"; then
4845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4848 echo "configure:4849: checking for $ac_word" >&5
4849 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4851 else
4852 if test -n "$CXX_FOR_TARGET"; then
4853 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4854 else
4855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4856 ac_dummy="$PATH"
4857 for ac_dir in $ac_dummy; do
4858 test -z "$ac_dir" && ac_dir=.
4859 if test -f $ac_dir/$ac_word; then
4860 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4861 break
4863 done
4864 IFS="$ac_save_ifs"
4867 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4868 if test -n "$CXX_FOR_TARGET"; then
4869 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4870 else
4871 echo "$ac_t""no" 1>&6
4875 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4877 set dummy ${ncn_progname}; ac_word=$2
4878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4879 echo "configure:4880: checking for $ac_word" >&5
4880 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4882 else
4883 if test -n "$CXX_FOR_TARGET"; then
4884 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4885 else
4886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4887 ac_dummy="$PATH"
4888 for ac_dir in $ac_dummy; do
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f $ac_dir/$ac_word; then
4891 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4892 break
4894 done
4895 IFS="$ac_save_ifs"
4898 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4899 if test -n "$CXX_FOR_TARGET"; then
4900 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4901 else
4902 echo "$ac_t""no" 1>&6
4906 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4907 done
4910 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4911 set dummy c++ g++ cxx gxx
4912 if test $build = $target ; then
4913 CXX_FOR_TARGET="$2"
4914 else
4915 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4917 else
4918 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4921 if test -n "$with_build_time_tools"; then
4922 for ncn_progname in gcc; do
4923 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4924 echo "configure:4925: checking for ${ncn_progname} in $with_build_time_tools" >&5
4925 if test -x $with_build_time_tools/${ncn_progname}; then
4926 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4927 echo "$ac_t""yes" 1>&6
4928 break
4929 else
4930 echo "$ac_t""no" 1>&6
4932 done
4935 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4936 for ncn_progname in gcc; do
4937 if test -n "$ncn_target_tool_prefix"; then
4938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_word" >&5
4942 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 if test -n "$GCC_FOR_TARGET"; then
4946 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4947 else
4948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4949 ac_dummy="$PATH"
4950 for ac_dir in $ac_dummy; do
4951 test -z "$ac_dir" && ac_dir=.
4952 if test -f $ac_dir/$ac_word; then
4953 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4954 break
4956 done
4957 IFS="$ac_save_ifs"
4960 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4961 if test -n "$GCC_FOR_TARGET"; then
4962 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4963 else
4964 echo "$ac_t""no" 1>&6
4968 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4970 set dummy ${ncn_progname}; ac_word=$2
4971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_word" >&5
4973 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975 else
4976 if test -n "$GCC_FOR_TARGET"; then
4977 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4978 else
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4980 ac_dummy="$PATH"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4985 break
4987 done
4988 IFS="$ac_save_ifs"
4991 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4992 if test -n "$GCC_FOR_TARGET"; then
4993 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4999 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
5000 done
5003 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
5004 GCC_FOR_TARGET="${CC_FOR_TARGET}"
5005 else
5006 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5009 if test -n "$with_build_time_tools"; then
5010 for ncn_progname in gcj; do
5011 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5012 echo "configure:5013: checking for ${ncn_progname} in $with_build_time_tools" >&5
5013 if test -x $with_build_time_tools/${ncn_progname}; then
5014 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5015 echo "$ac_t""yes" 1>&6
5016 break
5017 else
5018 echo "$ac_t""no" 1>&6
5020 done
5023 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5024 for ncn_progname in gcj; do
5025 if test -n "$ncn_target_tool_prefix"; then
5026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5029 echo "configure:5030: checking for $ac_word" >&5
5030 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5032 else
5033 if test -n "$GCJ_FOR_TARGET"; then
5034 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5035 else
5036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5037 ac_dummy="$PATH"
5038 for ac_dir in $ac_dummy; do
5039 test -z "$ac_dir" && ac_dir=.
5040 if test -f $ac_dir/$ac_word; then
5041 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5042 break
5044 done
5045 IFS="$ac_save_ifs"
5048 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5049 if test -n "$GCJ_FOR_TARGET"; then
5050 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5056 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5058 set dummy ${ncn_progname}; ac_word=$2
5059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_word" >&5
5061 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064 if test -n "$GCJ_FOR_TARGET"; then
5065 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5066 else
5067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5068 ac_dummy="$PATH"
5069 for ac_dir in $ac_dummy; do
5070 test -z "$ac_dir" && ac_dir=.
5071 if test -f $ac_dir/$ac_word; then
5072 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5073 break
5075 done
5076 IFS="$ac_save_ifs"
5079 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5080 if test -n "$GCJ_FOR_TARGET"; then
5081 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5082 else
5083 echo "$ac_t""no" 1>&6
5087 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5088 done
5091 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5092 set dummy gcj
5093 if test $build = $target ; then
5094 GCJ_FOR_TARGET="$2"
5095 else
5096 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5098 else
5099 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5102 if test -n "$with_build_time_tools"; then
5103 for ncn_progname in gfortran; do
5104 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5105 echo "configure:5106: checking for ${ncn_progname} in $with_build_time_tools" >&5
5106 if test -x $with_build_time_tools/${ncn_progname}; then
5107 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5108 echo "$ac_t""yes" 1>&6
5109 break
5110 else
5111 echo "$ac_t""no" 1>&6
5113 done
5116 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5117 for ncn_progname in gfortran; do
5118 if test -n "$ncn_target_tool_prefix"; then
5119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5122 echo "configure:5123: checking for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125 else
5126 if test -n "$GFORTRAN_FOR_TARGET"; then
5127 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5128 else
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5130 ac_dummy="$PATH"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5135 break
5137 done
5138 IFS="$ac_save_ifs"
5141 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5142 if test -n "$GFORTRAN_FOR_TARGET"; then
5143 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5149 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5151 set dummy ${ncn_progname}; ac_word=$2
5152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5153 echo "configure:5154: checking for $ac_word" >&5
5154 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5157 if test -n "$GFORTRAN_FOR_TARGET"; then
5158 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5159 else
5160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5161 ac_dummy="$PATH"
5162 for ac_dir in $ac_dummy; do
5163 test -z "$ac_dir" && ac_dir=.
5164 if test -f $ac_dir/$ac_word; then
5165 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5166 break
5168 done
5169 IFS="$ac_save_ifs"
5172 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5173 if test -n "$GFORTRAN_FOR_TARGET"; then
5174 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5180 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5181 done
5184 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5185 set dummy gfortran
5186 if test $build = $target ; then
5187 GFORTRAN_FOR_TARGET="$2"
5188 else
5189 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5191 else
5192 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5197 # The user is always right.
5198 if test "${PATH_SEPARATOR+set}" != set; then
5199 echo "#! /bin/sh" >conf$$.sh
5200 echo "exit 0" >>conf$$.sh
5201 chmod +x conf$$.sh
5202 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5203 PATH_SEPARATOR=';'
5204 else
5205 PATH_SEPARATOR=:
5207 rm -f conf$$.sh
5212 if test "x$exec_prefix" = xNONE; then
5213 if test "x$prefix" = xNONE; then
5214 gcc_cv_tool_prefix=$ac_default_prefix
5215 else
5216 gcc_cv_tool_prefix=$prefix
5218 else
5219 gcc_cv_tool_prefix=$exec_prefix
5222 # If there is no compiler in the tree, use the PATH only. In any
5223 # case, if there is no compiler in the tree nobody should use
5224 # AS_FOR_TARGET and LD_FOR_TARGET.
5225 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5226 gcc_version=`cat $srcdir/gcc/BASE-VER`
5227 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5228 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5229 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5230 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5231 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5232 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5233 else
5234 gcc_cv_tool_dirs=
5237 if test x$build = x$target && test -n "$md_exec_prefix"; then
5238 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5243 cat > conftest.c << \EOF
5244 #ifdef __GNUC__
5245 gcc_yay;
5246 #endif
5248 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5249 have_gcc_for_target=yes
5250 else
5251 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5252 have_gcc_for_target=no
5254 rm conftest.c
5259 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5260 if test -n "$with_build_time_tools"; then
5261 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5262 echo "configure:5263: checking for ar in $with_build_time_tools" >&5
5263 if test -x $with_build_time_tools/ar; then
5264 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5265 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5266 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5270 elif test $build != $host && test $have_gcc_for_target = yes; then
5271 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5272 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5273 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5276 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5277 # Extract the first word of "ar", so it can be a program name with args.
5278 set dummy ar; ac_word=$2
5279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_word" >&5
5281 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5283 else
5284 case "$AR_FOR_TARGET" in
5286 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5288 ?:/*)
5289 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5293 ac_dummy="$gcc_cv_tool_dirs"
5294 for ac_dir in $ac_dummy; do
5295 test -z "$ac_dir" && ac_dir=.
5296 if test -f $ac_dir/$ac_word; then
5297 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5298 break
5300 done
5301 IFS="$ac_save_ifs"
5303 esac
5305 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5306 if test -n "$AR_FOR_TARGET"; then
5307 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5308 else
5309 echo "$ac_t""no" 1>&6
5313 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5314 if test -n "$with_build_time_tools"; then
5315 for ncn_progname in ar; do
5316 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5317 echo "configure:5318: checking for ${ncn_progname} in $with_build_time_tools" >&5
5318 if test -x $with_build_time_tools/${ncn_progname}; then
5319 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5320 echo "$ac_t""yes" 1>&6
5321 break
5322 else
5323 echo "$ac_t""no" 1>&6
5325 done
5328 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5329 for ncn_progname in ar; do
5330 if test -n "$ncn_target_tool_prefix"; then
5331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5332 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5334 echo "configure:5335: checking for $ac_word" >&5
5335 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338 if test -n "$AR_FOR_TARGET"; then
5339 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5340 else
5341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5342 ac_dummy="$PATH"
5343 for ac_dir in $ac_dummy; do
5344 test -z "$ac_dir" && ac_dir=.
5345 if test -f $ac_dir/$ac_word; then
5346 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5347 break
5349 done
5350 IFS="$ac_save_ifs"
5353 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5354 if test -n "$AR_FOR_TARGET"; then
5355 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5356 else
5357 echo "$ac_t""no" 1>&6
5361 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5363 set dummy ${ncn_progname}; ac_word=$2
5364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_word" >&5
5366 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5368 else
5369 if test -n "$AR_FOR_TARGET"; then
5370 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5371 else
5372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5373 ac_dummy="$PATH"
5374 for ac_dir in $ac_dummy; do
5375 test -z "$ac_dir" && ac_dir=.
5376 if test -f $ac_dir/$ac_word; then
5377 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5378 break
5380 done
5381 IFS="$ac_save_ifs"
5384 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5385 if test -n "$AR_FOR_TARGET"; then
5386 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5387 else
5388 echo "$ac_t""no" 1>&6
5392 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5393 done
5396 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5397 set dummy ar
5398 if test $build = $target ; then
5399 AR_FOR_TARGET="$2"
5400 else
5401 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5403 else
5404 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5407 else
5408 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5414 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5415 if test -n "$with_build_time_tools"; then
5416 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5417 echo "configure:5418: checking for as in $with_build_time_tools" >&5
5418 if test -x $with_build_time_tools/as; then
5419 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5420 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5421 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5422 else
5423 echo "$ac_t""no" 1>&6
5425 elif test $build != $host && test $have_gcc_for_target = yes; then
5426 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5427 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5428 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5431 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5432 # Extract the first word of "as", so it can be a program name with args.
5433 set dummy as; ac_word=$2
5434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5435 echo "configure:5436: checking for $ac_word" >&5
5436 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5438 else
5439 case "$AS_FOR_TARGET" in
5441 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5443 ?:/*)
5444 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5448 ac_dummy="$gcc_cv_tool_dirs"
5449 for ac_dir in $ac_dummy; do
5450 test -z "$ac_dir" && ac_dir=.
5451 if test -f $ac_dir/$ac_word; then
5452 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5453 break
5455 done
5456 IFS="$ac_save_ifs"
5458 esac
5460 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5461 if test -n "$AS_FOR_TARGET"; then
5462 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5463 else
5464 echo "$ac_t""no" 1>&6
5468 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5469 if test -n "$with_build_time_tools"; then
5470 for ncn_progname in as; do
5471 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5472 echo "configure:5473: checking for ${ncn_progname} in $with_build_time_tools" >&5
5473 if test -x $with_build_time_tools/${ncn_progname}; then
5474 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5475 echo "$ac_t""yes" 1>&6
5476 break
5477 else
5478 echo "$ac_t""no" 1>&6
5480 done
5483 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5484 for ncn_progname in as; do
5485 if test -n "$ncn_target_tool_prefix"; then
5486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_word" >&5
5490 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5492 else
5493 if test -n "$AS_FOR_TARGET"; then
5494 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5495 else
5496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5497 ac_dummy="$PATH"
5498 for ac_dir in $ac_dummy; do
5499 test -z "$ac_dir" && ac_dir=.
5500 if test -f $ac_dir/$ac_word; then
5501 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5502 break
5504 done
5505 IFS="$ac_save_ifs"
5508 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5509 if test -n "$AS_FOR_TARGET"; then
5510 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5511 else
5512 echo "$ac_t""no" 1>&6
5516 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5518 set dummy ${ncn_progname}; ac_word=$2
5519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_word" >&5
5521 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5523 else
5524 if test -n "$AS_FOR_TARGET"; then
5525 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5526 else
5527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5528 ac_dummy="$PATH"
5529 for ac_dir in $ac_dummy; do
5530 test -z "$ac_dir" && ac_dir=.
5531 if test -f $ac_dir/$ac_word; then
5532 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5533 break
5535 done
5536 IFS="$ac_save_ifs"
5539 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5540 if test -n "$AS_FOR_TARGET"; then
5541 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5542 else
5543 echo "$ac_t""no" 1>&6
5547 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5548 done
5551 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5552 set dummy as
5553 if test $build = $target ; then
5554 AS_FOR_TARGET="$2"
5555 else
5556 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5558 else
5559 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5562 else
5563 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5570 if test -n "$with_build_time_tools"; then
5571 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5572 echo "configure:5573: checking for dlltool in $with_build_time_tools" >&5
5573 if test -x $with_build_time_tools/dlltool; then
5574 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5575 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5576 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5577 else
5578 echo "$ac_t""no" 1>&6
5580 elif test $build != $host && test $have_gcc_for_target = yes; then
5581 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5582 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5583 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5586 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5587 # Extract the first word of "dlltool", so it can be a program name with args.
5588 set dummy dlltool; ac_word=$2
5589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_word" >&5
5591 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 case "$DLLTOOL_FOR_TARGET" in
5596 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5598 ?:/*)
5599 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5603 ac_dummy="$gcc_cv_tool_dirs"
5604 for ac_dir in $ac_dummy; do
5605 test -z "$ac_dir" && ac_dir=.
5606 if test -f $ac_dir/$ac_word; then
5607 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5608 break
5610 done
5611 IFS="$ac_save_ifs"
5613 esac
5615 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5616 if test -n "$DLLTOOL_FOR_TARGET"; then
5617 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5618 else
5619 echo "$ac_t""no" 1>&6
5623 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5624 if test -n "$with_build_time_tools"; then
5625 for ncn_progname in dlltool; do
5626 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5627 echo "configure:5628: checking for ${ncn_progname} in $with_build_time_tools" >&5
5628 if test -x $with_build_time_tools/${ncn_progname}; then
5629 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5630 echo "$ac_t""yes" 1>&6
5631 break
5632 else
5633 echo "$ac_t""no" 1>&6
5635 done
5638 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5639 for ncn_progname in dlltool; do
5640 if test -n "$ncn_target_tool_prefix"; then
5641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_word" >&5
5645 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648 if test -n "$DLLTOOL_FOR_TARGET"; then
5649 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5650 else
5651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5652 ac_dummy="$PATH"
5653 for ac_dir in $ac_dummy; do
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f $ac_dir/$ac_word; then
5656 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5657 break
5659 done
5660 IFS="$ac_save_ifs"
5663 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5664 if test -n "$DLLTOOL_FOR_TARGET"; then
5665 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5671 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5673 set dummy ${ncn_progname}; ac_word=$2
5674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5675 echo "configure:5676: checking for $ac_word" >&5
5676 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5678 else
5679 if test -n "$DLLTOOL_FOR_TARGET"; then
5680 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5681 else
5682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5683 ac_dummy="$PATH"
5684 for ac_dir in $ac_dummy; do
5685 test -z "$ac_dir" && ac_dir=.
5686 if test -f $ac_dir/$ac_word; then
5687 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5688 break
5690 done
5691 IFS="$ac_save_ifs"
5694 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5695 if test -n "$DLLTOOL_FOR_TARGET"; then
5696 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5697 else
5698 echo "$ac_t""no" 1>&6
5702 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5703 done
5706 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5707 set dummy dlltool
5708 if test $build = $target ; then
5709 DLLTOOL_FOR_TARGET="$2"
5710 else
5711 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5713 else
5714 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5717 else
5718 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5724 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5725 if test -n "$with_build_time_tools"; then
5726 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5727 echo "configure:5728: checking for ld in $with_build_time_tools" >&5
5728 if test -x $with_build_time_tools/ld; then
5729 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5730 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5731 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5732 else
5733 echo "$ac_t""no" 1>&6
5735 elif test $build != $host && test $have_gcc_for_target = yes; then
5736 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5737 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5738 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5741 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5742 # Extract the first word of "ld", so it can be a program name with args.
5743 set dummy ld; ac_word=$2
5744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_word" >&5
5746 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5748 else
5749 case "$LD_FOR_TARGET" in
5751 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5753 ?:/*)
5754 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5758 ac_dummy="$gcc_cv_tool_dirs"
5759 for ac_dir in $ac_dummy; do
5760 test -z "$ac_dir" && ac_dir=.
5761 if test -f $ac_dir/$ac_word; then
5762 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5763 break
5765 done
5766 IFS="$ac_save_ifs"
5768 esac
5770 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5771 if test -n "$LD_FOR_TARGET"; then
5772 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5773 else
5774 echo "$ac_t""no" 1>&6
5778 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5779 if test -n "$with_build_time_tools"; then
5780 for ncn_progname in ld; do
5781 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5782 echo "configure:5783: checking for ${ncn_progname} in $with_build_time_tools" >&5
5783 if test -x $with_build_time_tools/${ncn_progname}; then
5784 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5785 echo "$ac_t""yes" 1>&6
5786 break
5787 else
5788 echo "$ac_t""no" 1>&6
5790 done
5793 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5794 for ncn_progname in ld; do
5795 if test -n "$ncn_target_tool_prefix"; then
5796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5797 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5799 echo "configure:5800: checking for $ac_word" >&5
5800 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5802 else
5803 if test -n "$LD_FOR_TARGET"; then
5804 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5805 else
5806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5807 ac_dummy="$PATH"
5808 for ac_dir in $ac_dummy; do
5809 test -z "$ac_dir" && ac_dir=.
5810 if test -f $ac_dir/$ac_word; then
5811 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5812 break
5814 done
5815 IFS="$ac_save_ifs"
5818 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5819 if test -n "$LD_FOR_TARGET"; then
5820 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5826 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5828 set dummy ${ncn_progname}; ac_word=$2
5829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_word" >&5
5831 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834 if test -n "$LD_FOR_TARGET"; then
5835 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5836 else
5837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5838 ac_dummy="$PATH"
5839 for ac_dir in $ac_dummy; do
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f $ac_dir/$ac_word; then
5842 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5843 break
5845 done
5846 IFS="$ac_save_ifs"
5849 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5850 if test -n "$LD_FOR_TARGET"; then
5851 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5852 else
5853 echo "$ac_t""no" 1>&6
5857 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5858 done
5861 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5862 set dummy ld
5863 if test $build = $target ; then
5864 LD_FOR_TARGET="$2"
5865 else
5866 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5868 else
5869 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5872 else
5873 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5879 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5880 if test -n "$with_build_time_tools"; then
5881 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5882 echo "configure:5883: checking for lipo in $with_build_time_tools" >&5
5883 if test -x $with_build_time_tools/lipo; then
5884 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5885 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5886 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5887 else
5888 echo "$ac_t""no" 1>&6
5890 elif test $build != $host && test $have_gcc_for_target = yes; then
5891 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5892 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5893 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5896 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5897 # Extract the first word of "lipo", so it can be a program name with args.
5898 set dummy lipo; ac_word=$2
5899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_word" >&5
5901 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5903 else
5904 case "$LIPO_FOR_TARGET" in
5906 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5908 ?:/*)
5909 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5913 ac_dummy="$gcc_cv_tool_dirs"
5914 for ac_dir in $ac_dummy; do
5915 test -z "$ac_dir" && ac_dir=.
5916 if test -f $ac_dir/$ac_word; then
5917 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5918 break
5920 done
5921 IFS="$ac_save_ifs"
5923 esac
5925 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5926 if test -n "$LIPO_FOR_TARGET"; then
5927 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5928 else
5929 echo "$ac_t""no" 1>&6
5933 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5934 if test -n "$with_build_time_tools"; then
5935 for ncn_progname in lipo; do
5936 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5937 echo "configure:5938: checking for ${ncn_progname} in $with_build_time_tools" >&5
5938 if test -x $with_build_time_tools/${ncn_progname}; then
5939 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5940 echo "$ac_t""yes" 1>&6
5941 break
5942 else
5943 echo "$ac_t""no" 1>&6
5945 done
5948 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5949 for ncn_progname in lipo; do
5950 if test -n "$ncn_target_tool_prefix"; then
5951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5952 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5954 echo "configure:5955: checking for $ac_word" >&5
5955 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5957 else
5958 if test -n "$LIPO_FOR_TARGET"; then
5959 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5960 else
5961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5962 ac_dummy="$PATH"
5963 for ac_dir in $ac_dummy; do
5964 test -z "$ac_dir" && ac_dir=.
5965 if test -f $ac_dir/$ac_word; then
5966 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5967 break
5969 done
5970 IFS="$ac_save_ifs"
5973 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5974 if test -n "$LIPO_FOR_TARGET"; then
5975 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5976 else
5977 echo "$ac_t""no" 1>&6
5981 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5983 set dummy ${ncn_progname}; ac_word=$2
5984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_word" >&5
5986 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989 if test -n "$LIPO_FOR_TARGET"; then
5990 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5991 else
5992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5993 ac_dummy="$PATH"
5994 for ac_dir in $ac_dummy; do
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f $ac_dir/$ac_word; then
5997 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5998 break
6000 done
6001 IFS="$ac_save_ifs"
6004 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
6005 if test -n "$LIPO_FOR_TARGET"; then
6006 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6007 else
6008 echo "$ac_t""no" 1>&6
6012 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6013 done
6016 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6017 set dummy lipo
6018 if test $build = $target ; then
6019 LIPO_FOR_TARGET="$2"
6020 else
6021 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
6023 else
6024 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
6027 else
6028 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
6034 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6035 if test -n "$with_build_time_tools"; then
6036 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
6037 echo "configure:6038: checking for nm in $with_build_time_tools" >&5
6038 if test -x $with_build_time_tools/nm; then
6039 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
6040 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6041 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6042 else
6043 echo "$ac_t""no" 1>&6
6045 elif test $build != $host && test $have_gcc_for_target = yes; then
6046 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
6047 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
6048 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6051 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6052 # Extract the first word of "nm", so it can be a program name with args.
6053 set dummy nm; ac_word=$2
6054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_word" >&5
6056 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6058 else
6059 case "$NM_FOR_TARGET" in
6061 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
6063 ?:/*)
6064 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6068 ac_dummy="$gcc_cv_tool_dirs"
6069 for ac_dir in $ac_dummy; do
6070 test -z "$ac_dir" && ac_dir=.
6071 if test -f $ac_dir/$ac_word; then
6072 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
6073 break
6075 done
6076 IFS="$ac_save_ifs"
6078 esac
6080 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6081 if test -n "$NM_FOR_TARGET"; then
6082 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6088 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6089 if test -n "$with_build_time_tools"; then
6090 for ncn_progname in nm; do
6091 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6092 echo "configure:6093: checking for ${ncn_progname} in $with_build_time_tools" >&5
6093 if test -x $with_build_time_tools/${ncn_progname}; then
6094 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6095 echo "$ac_t""yes" 1>&6
6096 break
6097 else
6098 echo "$ac_t""no" 1>&6
6100 done
6103 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6104 for ncn_progname in nm; do
6105 if test -n "$ncn_target_tool_prefix"; then
6106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6107 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_word" >&5
6110 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6112 else
6113 if test -n "$NM_FOR_TARGET"; then
6114 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6115 else
6116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6117 ac_dummy="$PATH"
6118 for ac_dir in $ac_dummy; do
6119 test -z "$ac_dir" && ac_dir=.
6120 if test -f $ac_dir/$ac_word; then
6121 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6122 break
6124 done
6125 IFS="$ac_save_ifs"
6128 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6129 if test -n "$NM_FOR_TARGET"; then
6130 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6131 else
6132 echo "$ac_t""no" 1>&6
6136 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6138 set dummy ${ncn_progname}; ac_word=$2
6139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_word" >&5
6141 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143 else
6144 if test -n "$NM_FOR_TARGET"; then
6145 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6146 else
6147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6148 ac_dummy="$PATH"
6149 for ac_dir in $ac_dummy; do
6150 test -z "$ac_dir" && ac_dir=.
6151 if test -f $ac_dir/$ac_word; then
6152 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6153 break
6155 done
6156 IFS="$ac_save_ifs"
6159 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6160 if test -n "$NM_FOR_TARGET"; then
6161 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6162 else
6163 echo "$ac_t""no" 1>&6
6167 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6168 done
6171 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6172 set dummy nm
6173 if test $build = $target ; then
6174 NM_FOR_TARGET="$2"
6175 else
6176 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6178 else
6179 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6182 else
6183 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6189 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6190 if test -n "$with_build_time_tools"; then
6191 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6192 echo "configure:6193: checking for objdump in $with_build_time_tools" >&5
6193 if test -x $with_build_time_tools/objdump; then
6194 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6195 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6196 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6197 else
6198 echo "$ac_t""no" 1>&6
6200 elif test $build != $host && test $have_gcc_for_target = yes; then
6201 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6202 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6203 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6206 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6207 # Extract the first word of "objdump", so it can be a program name with args.
6208 set dummy objdump; ac_word=$2
6209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_word" >&5
6211 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6213 else
6214 case "$OBJDUMP_FOR_TARGET" in
6216 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6218 ?:/*)
6219 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6223 ac_dummy="$gcc_cv_tool_dirs"
6224 for ac_dir in $ac_dummy; do
6225 test -z "$ac_dir" && ac_dir=.
6226 if test -f $ac_dir/$ac_word; then
6227 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6228 break
6230 done
6231 IFS="$ac_save_ifs"
6233 esac
6235 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6236 if test -n "$OBJDUMP_FOR_TARGET"; then
6237 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6238 else
6239 echo "$ac_t""no" 1>&6
6243 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6244 if test -n "$with_build_time_tools"; then
6245 for ncn_progname in objdump; do
6246 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6247 echo "configure:6248: checking for ${ncn_progname} in $with_build_time_tools" >&5
6248 if test -x $with_build_time_tools/${ncn_progname}; then
6249 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6250 echo "$ac_t""yes" 1>&6
6251 break
6252 else
6253 echo "$ac_t""no" 1>&6
6255 done
6258 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6259 for ncn_progname in objdump; do
6260 if test -n "$ncn_target_tool_prefix"; then
6261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6262 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_word" >&5
6265 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6267 else
6268 if test -n "$OBJDUMP_FOR_TARGET"; then
6269 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6270 else
6271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6272 ac_dummy="$PATH"
6273 for ac_dir in $ac_dummy; do
6274 test -z "$ac_dir" && ac_dir=.
6275 if test -f $ac_dir/$ac_word; then
6276 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6277 break
6279 done
6280 IFS="$ac_save_ifs"
6283 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6284 if test -n "$OBJDUMP_FOR_TARGET"; then
6285 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6286 else
6287 echo "$ac_t""no" 1>&6
6291 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6293 set dummy ${ncn_progname}; ac_word=$2
6294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_word" >&5
6296 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6298 else
6299 if test -n "$OBJDUMP_FOR_TARGET"; then
6300 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6301 else
6302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6303 ac_dummy="$PATH"
6304 for ac_dir in $ac_dummy; do
6305 test -z "$ac_dir" && ac_dir=.
6306 if test -f $ac_dir/$ac_word; then
6307 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6308 break
6310 done
6311 IFS="$ac_save_ifs"
6314 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6315 if test -n "$OBJDUMP_FOR_TARGET"; then
6316 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6317 else
6318 echo "$ac_t""no" 1>&6
6322 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6323 done
6326 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6327 set dummy objdump
6328 if test $build = $target ; then
6329 OBJDUMP_FOR_TARGET="$2"
6330 else
6331 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6333 else
6334 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6337 else
6338 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6344 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6345 if test -n "$with_build_time_tools"; then
6346 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6347 echo "configure:6348: checking for ranlib in $with_build_time_tools" >&5
6348 if test -x $with_build_time_tools/ranlib; then
6349 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6350 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6351 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6352 else
6353 echo "$ac_t""no" 1>&6
6355 elif test $build != $host && test $have_gcc_for_target = yes; then
6356 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6357 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6358 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6361 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6362 # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib; ac_word=$2
6364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_word" >&5
6366 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369 case "$RANLIB_FOR_TARGET" in
6371 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6373 ?:/*)
6374 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6378 ac_dummy="$gcc_cv_tool_dirs"
6379 for ac_dir in $ac_dummy; do
6380 test -z "$ac_dir" && ac_dir=.
6381 if test -f $ac_dir/$ac_word; then
6382 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6383 break
6385 done
6386 IFS="$ac_save_ifs"
6388 esac
6390 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6391 if test -n "$RANLIB_FOR_TARGET"; then
6392 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6393 else
6394 echo "$ac_t""no" 1>&6
6398 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6399 if test -n "$with_build_time_tools"; then
6400 for ncn_progname in ranlib; do
6401 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6402 echo "configure:6403: checking for ${ncn_progname} in $with_build_time_tools" >&5
6403 if test -x $with_build_time_tools/${ncn_progname}; then
6404 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6405 echo "$ac_t""yes" 1>&6
6406 break
6407 else
6408 echo "$ac_t""no" 1>&6
6410 done
6413 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6414 for ncn_progname in ranlib; do
6415 if test -n "$ncn_target_tool_prefix"; then
6416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6419 echo "configure:6420: checking for $ac_word" >&5
6420 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6422 else
6423 if test -n "$RANLIB_FOR_TARGET"; then
6424 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6425 else
6426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6427 ac_dummy="$PATH"
6428 for ac_dir in $ac_dummy; do
6429 test -z "$ac_dir" && ac_dir=.
6430 if test -f $ac_dir/$ac_word; then
6431 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6432 break
6434 done
6435 IFS="$ac_save_ifs"
6438 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6439 if test -n "$RANLIB_FOR_TARGET"; then
6440 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6441 else
6442 echo "$ac_t""no" 1>&6
6446 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6448 set dummy ${ncn_progname}; ac_word=$2
6449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_word" >&5
6451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6453 else
6454 if test -n "$RANLIB_FOR_TARGET"; then
6455 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6456 else
6457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6458 ac_dummy="$PATH"
6459 for ac_dir in $ac_dummy; do
6460 test -z "$ac_dir" && ac_dir=.
6461 if test -f $ac_dir/$ac_word; then
6462 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6463 break
6465 done
6466 IFS="$ac_save_ifs"
6469 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6470 if test -n "$RANLIB_FOR_TARGET"; then
6471 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6472 else
6473 echo "$ac_t""no" 1>&6
6477 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6478 done
6481 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6482 set dummy ranlib
6483 if test $build = $target ; then
6484 RANLIB_FOR_TARGET="$2"
6485 else
6486 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6488 else
6489 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6492 else
6493 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6499 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6500 if test -n "$with_build_time_tools"; then
6501 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6502 echo "configure:6503: checking for strip in $with_build_time_tools" >&5
6503 if test -x $with_build_time_tools/strip; then
6504 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6505 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6506 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6507 else
6508 echo "$ac_t""no" 1>&6
6510 elif test $build != $host && test $have_gcc_for_target = yes; then
6511 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6512 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6513 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6516 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6517 # Extract the first word of "strip", so it can be a program name with args.
6518 set dummy strip; ac_word=$2
6519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_word" >&5
6521 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6523 else
6524 case "$STRIP_FOR_TARGET" in
6526 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6528 ?:/*)
6529 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6533 ac_dummy="$gcc_cv_tool_dirs"
6534 for ac_dir in $ac_dummy; do
6535 test -z "$ac_dir" && ac_dir=.
6536 if test -f $ac_dir/$ac_word; then
6537 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6538 break
6540 done
6541 IFS="$ac_save_ifs"
6543 esac
6545 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6546 if test -n "$STRIP_FOR_TARGET"; then
6547 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6548 else
6549 echo "$ac_t""no" 1>&6
6553 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6554 if test -n "$with_build_time_tools"; then
6555 for ncn_progname in strip; do
6556 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6557 echo "configure:6558: checking for ${ncn_progname} in $with_build_time_tools" >&5
6558 if test -x $with_build_time_tools/${ncn_progname}; then
6559 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6560 echo "$ac_t""yes" 1>&6
6561 break
6562 else
6563 echo "$ac_t""no" 1>&6
6565 done
6568 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6569 for ncn_progname in strip; do
6570 if test -n "$ncn_target_tool_prefix"; then
6571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_word" >&5
6575 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6577 else
6578 if test -n "$STRIP_FOR_TARGET"; then
6579 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6580 else
6581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6582 ac_dummy="$PATH"
6583 for ac_dir in $ac_dummy; do
6584 test -z "$ac_dir" && ac_dir=.
6585 if test -f $ac_dir/$ac_word; then
6586 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6587 break
6589 done
6590 IFS="$ac_save_ifs"
6593 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6594 if test -n "$STRIP_FOR_TARGET"; then
6595 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6596 else
6597 echo "$ac_t""no" 1>&6
6601 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6603 set dummy ${ncn_progname}; ac_word=$2
6604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_word" >&5
6606 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 if test -n "$STRIP_FOR_TARGET"; then
6610 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6611 else
6612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6613 ac_dummy="$PATH"
6614 for ac_dir in $ac_dummy; do
6615 test -z "$ac_dir" && ac_dir=.
6616 if test -f $ac_dir/$ac_word; then
6617 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6618 break
6620 done
6621 IFS="$ac_save_ifs"
6624 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6625 if test -n "$STRIP_FOR_TARGET"; then
6626 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6627 else
6628 echo "$ac_t""no" 1>&6
6632 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6633 done
6636 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6637 set dummy strip
6638 if test $build = $target ; then
6639 STRIP_FOR_TARGET="$2"
6640 else
6641 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6643 else
6644 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6647 else
6648 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6654 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6655 if test -n "$with_build_time_tools"; then
6656 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6657 echo "configure:6658: checking for windres in $with_build_time_tools" >&5
6658 if test -x $with_build_time_tools/windres; then
6659 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6660 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6661 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6662 else
6663 echo "$ac_t""no" 1>&6
6665 elif test $build != $host && test $have_gcc_for_target = yes; then
6666 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6667 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6668 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6671 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6672 # Extract the first word of "windres", so it can be a program name with args.
6673 set dummy windres; ac_word=$2
6674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6675 echo "configure:6676: checking for $ac_word" >&5
6676 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6678 else
6679 case "$WINDRES_FOR_TARGET" in
6681 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6683 ?:/*)
6684 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6688 ac_dummy="$gcc_cv_tool_dirs"
6689 for ac_dir in $ac_dummy; do
6690 test -z "$ac_dir" && ac_dir=.
6691 if test -f $ac_dir/$ac_word; then
6692 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6693 break
6695 done
6696 IFS="$ac_save_ifs"
6698 esac
6700 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6701 if test -n "$WINDRES_FOR_TARGET"; then
6702 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6703 else
6704 echo "$ac_t""no" 1>&6
6708 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6709 if test -n "$with_build_time_tools"; then
6710 for ncn_progname in windres; do
6711 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6712 echo "configure:6713: checking for ${ncn_progname} in $with_build_time_tools" >&5
6713 if test -x $with_build_time_tools/${ncn_progname}; then
6714 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6715 echo "$ac_t""yes" 1>&6
6716 break
6717 else
6718 echo "$ac_t""no" 1>&6
6720 done
6723 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6724 for ncn_progname in windres; do
6725 if test -n "$ncn_target_tool_prefix"; then
6726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_word" >&5
6730 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6732 else
6733 if test -n "$WINDRES_FOR_TARGET"; then
6734 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6735 else
6736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6737 ac_dummy="$PATH"
6738 for ac_dir in $ac_dummy; do
6739 test -z "$ac_dir" && ac_dir=.
6740 if test -f $ac_dir/$ac_word; then
6741 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6742 break
6744 done
6745 IFS="$ac_save_ifs"
6748 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6749 if test -n "$WINDRES_FOR_TARGET"; then
6750 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6751 else
6752 echo "$ac_t""no" 1>&6
6756 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6758 set dummy ${ncn_progname}; ac_word=$2
6759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_word" >&5
6761 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764 if test -n "$WINDRES_FOR_TARGET"; then
6765 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6766 else
6767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6768 ac_dummy="$PATH"
6769 for ac_dir in $ac_dummy; do
6770 test -z "$ac_dir" && ac_dir=.
6771 if test -f $ac_dir/$ac_word; then
6772 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6773 break
6775 done
6776 IFS="$ac_save_ifs"
6779 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6780 if test -n "$WINDRES_FOR_TARGET"; then
6781 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6782 else
6783 echo "$ac_t""no" 1>&6
6787 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6788 done
6791 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6792 set dummy windres
6793 if test $build = $target ; then
6794 WINDRES_FOR_TARGET="$2"
6795 else
6796 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6798 else
6799 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6802 else
6803 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6807 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6809 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6810 echo "configure:6811: checking where to find the target ar" >&5
6811 if test "x${build}" != "x${host}" ; then
6812 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6813 # We already found the complete path
6814 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6815 else
6816 # Canadian cross, just use what we found
6817 echo "$ac_t""pre-installed" 1>&6
6819 else
6820 ok=yes
6821 case " ${configdirs} " in
6822 *" binutils "*) ;;
6823 *) ok=no ;;
6824 esac
6826 if test $ok = yes; then
6827 # An in-tree tool is available and we can use it
6828 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6829 echo "$ac_t""just compiled" 1>&6
6830 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6831 # We already found the complete path
6832 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6833 elif test "x$target" = "x$host"; then
6834 # We can use an host tool
6835 AR_FOR_TARGET='$(AR)'
6836 echo "$ac_t""host tool" 1>&6
6837 else
6838 # We need a cross tool
6839 echo "$ac_t""pre-installed" 1>&6
6842 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6843 echo "configure:6844: checking where to find the target as" >&5
6844 if test "x${build}" != "x${host}" ; then
6845 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6846 # We already found the complete path
6847 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6848 else
6849 # Canadian cross, just use what we found
6850 echo "$ac_t""pre-installed" 1>&6
6852 else
6853 ok=yes
6854 case " ${configdirs} " in
6855 *" gas "*) ;;
6856 *) ok=no ;;
6857 esac
6859 if test $ok = yes; then
6860 # An in-tree tool is available and we can use it
6861 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6862 echo "$ac_t""just compiled" 1>&6
6863 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6864 # We already found the complete path
6865 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6866 elif test "x$target" = "x$host"; then
6867 # We can use an host tool
6868 AS_FOR_TARGET='$(AS)'
6869 echo "$ac_t""host tool" 1>&6
6870 else
6871 # We need a cross tool
6872 echo "$ac_t""pre-installed" 1>&6
6875 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6876 echo "configure:6877: checking where to find the target cc" >&5
6877 if test "x${build}" != "x${host}" ; then
6878 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6879 # We already found the complete path
6880 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6881 else
6882 # Canadian cross, just use what we found
6883 echo "$ac_t""pre-installed" 1>&6
6885 else
6886 ok=yes
6887 case " ${configdirs} " in
6888 *" gcc "*) ;;
6889 *) ok=no ;;
6890 esac
6892 if test $ok = yes; then
6893 # An in-tree tool is available and we can use it
6894 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6895 echo "$ac_t""just compiled" 1>&6
6896 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6897 # We already found the complete path
6898 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6899 elif test "x$target" = "x$host"; then
6900 # We can use an host tool
6901 CC_FOR_TARGET='$(CC)'
6902 echo "$ac_t""host tool" 1>&6
6903 else
6904 # We need a cross tool
6905 echo "$ac_t""pre-installed" 1>&6
6908 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6909 echo "configure:6910: checking where to find the target c++" >&5
6910 if test "x${build}" != "x${host}" ; then
6911 if 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 else
6915 # Canadian cross, just use what we found
6916 echo "$ac_t""pre-installed" 1>&6
6918 else
6919 ok=yes
6920 case " ${configdirs} " in
6921 *" gcc "*) ;;
6922 *) ok=no ;;
6923 esac
6924 case ,${enable_languages}, in
6925 *,c++,*) ;;
6926 *) ok=no ;;
6927 esac
6928 if test $ok = yes; then
6929 # An in-tree tool is available and we can use it
6930 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'
6931 echo "$ac_t""just compiled" 1>&6
6932 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6933 # We already found the complete path
6934 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6935 elif test "x$target" = "x$host"; then
6936 # We can use an host tool
6937 CXX_FOR_TARGET='$(CXX)'
6938 echo "$ac_t""host tool" 1>&6
6939 else
6940 # We need a cross tool
6941 echo "$ac_t""pre-installed" 1>&6
6944 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6945 echo "configure:6946: checking where to find the target c++ for libstdc++" >&5
6946 if test "x${build}" != "x${host}" ; then
6947 if 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 else
6951 # Canadian cross, just use what we found
6952 echo "$ac_t""pre-installed" 1>&6
6954 else
6955 ok=yes
6956 case " ${configdirs} " in
6957 *" gcc "*) ;;
6958 *) ok=no ;;
6959 esac
6960 case ,${enable_languages}, in
6961 *,c++,*) ;;
6962 *) ok=no ;;
6963 esac
6964 if test $ok = yes; then
6965 # An in-tree tool is available and we can use it
6966 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'
6967 echo "$ac_t""just compiled" 1>&6
6968 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6969 # We already found the complete path
6970 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6971 elif test "x$target" = "x$host"; then
6972 # We can use an host tool
6973 RAW_CXX_FOR_TARGET='$(CXX)'
6974 echo "$ac_t""host tool" 1>&6
6975 else
6976 # We need a cross tool
6977 echo "$ac_t""pre-installed" 1>&6
6980 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6981 echo "configure:6982: checking where to find the target dlltool" >&5
6982 if test "x${build}" != "x${host}" ; then
6983 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6984 # We already found the complete path
6985 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6986 else
6987 # Canadian cross, just use what we found
6988 echo "$ac_t""pre-installed" 1>&6
6990 else
6991 ok=yes
6992 case " ${configdirs} " in
6993 *" binutils "*) ;;
6994 *) ok=no ;;
6995 esac
6997 if test $ok = yes; then
6998 # An in-tree tool is available and we can use it
6999 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
7000 echo "$ac_t""just compiled" 1>&6
7001 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
7002 # We already found the complete path
7003 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
7004 elif test "x$target" = "x$host"; then
7005 # We can use an host tool
7006 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
7007 echo "$ac_t""host tool" 1>&6
7008 else
7009 # We need a cross tool
7010 echo "$ac_t""pre-installed" 1>&6
7013 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
7014 echo "configure:7015: checking where to find the target gcc" >&5
7015 if test "x${build}" != "x${host}" ; then
7016 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7017 # We already found the complete path
7018 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7019 else
7020 # Canadian cross, just use what we found
7021 echo "$ac_t""pre-installed" 1>&6
7023 else
7024 ok=yes
7025 case " ${configdirs} " in
7026 *" gcc "*) ;;
7027 *) ok=no ;;
7028 esac
7030 if test $ok = yes; then
7031 # An in-tree tool is available and we can use it
7032 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7033 echo "$ac_t""just compiled" 1>&6
7034 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7035 # We already found the complete path
7036 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7037 elif test "x$target" = "x$host"; then
7038 # We can use an host tool
7039 GCC_FOR_TARGET='$()'
7040 echo "$ac_t""host tool" 1>&6
7041 else
7042 # We need a cross tool
7043 echo "$ac_t""pre-installed" 1>&6
7046 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
7047 echo "configure:7048: checking where to find the target gcj" >&5
7048 if test "x${build}" != "x${host}" ; then
7049 if 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 else
7053 # Canadian cross, just use what we found
7054 echo "$ac_t""pre-installed" 1>&6
7056 else
7057 ok=yes
7058 case " ${configdirs} " in
7059 *" gcc "*) ;;
7060 *) ok=no ;;
7061 esac
7062 case ,${enable_languages}, in
7063 *,java,*) ;;
7064 *) ok=no ;;
7065 esac
7066 if test $ok = yes; then
7067 # An in-tree tool is available and we can use it
7068 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7069 echo "$ac_t""just compiled" 1>&6
7070 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7073 elif test "x$target" = "x$host"; then
7074 # We can use an host tool
7075 GCJ_FOR_TARGET='$(GCJ)'
7076 echo "$ac_t""host tool" 1>&6
7077 else
7078 # We need a cross tool
7079 echo "$ac_t""pre-installed" 1>&6
7082 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7083 echo "configure:7084: checking where to find the target gfortran" >&5
7084 if test "x${build}" != "x${host}" ; then
7085 if 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 else
7089 # Canadian cross, just use what we found
7090 echo "$ac_t""pre-installed" 1>&6
7092 else
7093 ok=yes
7094 case " ${configdirs} " in
7095 *" gcc "*) ;;
7096 *) ok=no ;;
7097 esac
7098 case ,${enable_languages}, in
7099 *,fortran,*) ;;
7100 *) ok=no ;;
7101 esac
7102 if test $ok = yes; then
7103 # An in-tree tool is available and we can use it
7104 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7105 echo "$ac_t""just compiled" 1>&6
7106 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7107 # We already found the complete path
7108 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7109 elif test "x$target" = "x$host"; then
7110 # We can use an host tool
7111 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7112 echo "$ac_t""host tool" 1>&6
7113 else
7114 # We need a cross tool
7115 echo "$ac_t""pre-installed" 1>&6
7118 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7119 echo "configure:7120: checking where to find the target ld" >&5
7120 if test "x${build}" != "x${host}" ; then
7121 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7122 # We already found the complete path
7123 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7124 else
7125 # Canadian cross, just use what we found
7126 echo "$ac_t""pre-installed" 1>&6
7128 else
7129 ok=yes
7130 case " ${configdirs} " in
7131 *" ld "*) ;;
7132 *) ok=no ;;
7133 esac
7135 if test $ok = yes; then
7136 # An in-tree tool is available and we can use it
7137 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7138 echo "$ac_t""just compiled" 1>&6
7139 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7140 # We already found the complete path
7141 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7142 elif test "x$target" = "x$host"; then
7143 # We can use an host tool
7144 LD_FOR_TARGET='$(LD)'
7145 echo "$ac_t""host tool" 1>&6
7146 else
7147 # We need a cross tool
7148 echo "$ac_t""pre-installed" 1>&6
7151 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7152 echo "configure:7153: checking where to find the target lipo" >&5
7153 if test "x${build}" != "x${host}" ; then
7154 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7155 # We already found the complete path
7156 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7157 else
7158 # Canadian cross, just use what we found
7159 echo "$ac_t""pre-installed" 1>&6
7161 else
7162 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7163 # We already found the complete path
7164 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7165 elif test "x$target" = "x$host"; then
7166 # We can use an host tool
7167 LIPO_FOR_TARGET='$(LIPO)'
7168 echo "$ac_t""host tool" 1>&6
7169 else
7170 # We need a cross tool
7171 echo "$ac_t""pre-installed" 1>&6
7174 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7175 echo "configure:7176: checking where to find the target nm" >&5
7176 if test "x${build}" != "x${host}" ; then
7177 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7178 # We already found the complete path
7179 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7180 else
7181 # Canadian cross, just use what we found
7182 echo "$ac_t""pre-installed" 1>&6
7184 else
7185 ok=yes
7186 case " ${configdirs} " in
7187 *" binutils "*) ;;
7188 *) ok=no ;;
7189 esac
7191 if test $ok = yes; then
7192 # An in-tree tool is available and we can use it
7193 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7194 echo "$ac_t""just compiled" 1>&6
7195 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7196 # We already found the complete path
7197 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7198 elif test "x$target" = "x$host"; then
7199 # We can use an host tool
7200 NM_FOR_TARGET='$(NM)'
7201 echo "$ac_t""host tool" 1>&6
7202 else
7203 # We need a cross tool
7204 echo "$ac_t""pre-installed" 1>&6
7207 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7208 echo "configure:7209: checking where to find the target objdump" >&5
7209 if test "x${build}" != "x${host}" ; then
7210 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7211 # We already found the complete path
7212 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7213 else
7214 # Canadian cross, just use what we found
7215 echo "$ac_t""pre-installed" 1>&6
7217 else
7218 ok=yes
7219 case " ${configdirs} " in
7220 *" binutils "*) ;;
7221 *) ok=no ;;
7222 esac
7224 if test $ok = yes; then
7225 # An in-tree tool is available and we can use it
7226 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7227 echo "$ac_t""just compiled" 1>&6
7228 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7229 # We already found the complete path
7230 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7231 elif test "x$target" = "x$host"; then
7232 # We can use an host tool
7233 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7234 echo "$ac_t""host tool" 1>&6
7235 else
7236 # We need a cross tool
7237 echo "$ac_t""pre-installed" 1>&6
7240 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7241 echo "configure:7242: checking where to find the target ranlib" >&5
7242 if test "x${build}" != "x${host}" ; then
7243 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7244 # We already found the complete path
7245 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7246 else
7247 # Canadian cross, just use what we found
7248 echo "$ac_t""pre-installed" 1>&6
7250 else
7251 ok=yes
7252 case " ${configdirs} " in
7253 *" binutils "*) ;;
7254 *) ok=no ;;
7255 esac
7257 if test $ok = yes; then
7258 # An in-tree tool is available and we can use it
7259 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7260 echo "$ac_t""just compiled" 1>&6
7261 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7262 # We already found the complete path
7263 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7264 elif test "x$target" = "x$host"; then
7265 # We can use an host tool
7266 RANLIB_FOR_TARGET='$(RANLIB)'
7267 echo "$ac_t""host tool" 1>&6
7268 else
7269 # We need a cross tool
7270 echo "$ac_t""pre-installed" 1>&6
7273 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7274 echo "configure:7275: checking where to find the target strip" >&5
7275 if test "x${build}" != "x${host}" ; then
7276 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7277 # We already found the complete path
7278 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7279 else
7280 # Canadian cross, just use what we found
7281 echo "$ac_t""pre-installed" 1>&6
7283 else
7284 ok=yes
7285 case " ${configdirs} " in
7286 *" binutils "*) ;;
7287 *) ok=no ;;
7288 esac
7290 if test $ok = yes; then
7291 # An in-tree tool is available and we can use it
7292 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7293 echo "$ac_t""just compiled" 1>&6
7294 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7295 # We already found the complete path
7296 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7297 elif test "x$target" = "x$host"; then
7298 # We can use an host tool
7299 STRIP_FOR_TARGET='$(STRIP)'
7300 echo "$ac_t""host tool" 1>&6
7301 else
7302 # We need a cross tool
7303 echo "$ac_t""pre-installed" 1>&6
7306 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7307 echo "configure:7308: checking where to find the target windres" >&5
7308 if test "x${build}" != "x${host}" ; then
7309 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7310 # We already found the complete path
7311 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7312 else
7313 # Canadian cross, just use what we found
7314 echo "$ac_t""pre-installed" 1>&6
7316 else
7317 ok=yes
7318 case " ${configdirs} " in
7319 *" binutils "*) ;;
7320 *) ok=no ;;
7321 esac
7323 if test $ok = yes; then
7324 # An in-tree tool is available and we can use it
7325 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7326 echo "$ac_t""just compiled" 1>&6
7327 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7328 # We already found the complete path
7329 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7330 elif test "x$target" = "x$host"; then
7331 # We can use an host tool
7332 WINDRES_FOR_TARGET='$(WINDRES)'
7333 echo "$ac_t""host tool" 1>&6
7334 else
7335 # We need a cross tool
7336 echo "$ac_t""pre-installed" 1>&6
7343 # Certain tools may need extra flags.
7344 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7345 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7346 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7348 # When building target libraries, except in a Canadian cross, we use
7349 # the same toolchain as the compiler we just built.
7350 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7351 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7352 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7353 if test $host = $build; then
7354 case " $configdirs " in
7355 *" gcc "*)
7356 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7357 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7358 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7360 esac
7367 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7368 echo "configure:7369: checking whether to enable maintainer-specific portions of Makefiles" >&5
7369 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7370 if test "${enable_maintainer_mode+set}" = set; then
7371 enableval="$enable_maintainer_mode"
7372 USE_MAINTAINER_MODE=$enableval
7373 else
7374 USE_MAINTAINER_MODE=no
7377 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7380 if test "$USE_MAINTAINER_MODE" = yes; then
7381 MAINTAINER_MODE_TRUE=
7382 MAINTAINER_MODE_FALSE='#'
7383 else
7384 MAINTAINER_MODE_TRUE='#'
7385 MAINTAINER_MODE_FALSE=
7387 MAINT=$MAINTAINER_MODE_TRUE
7389 # ---------------------
7390 # GCC bootstrap support
7391 # ---------------------
7393 # Stage specific cflags for build.
7394 stage1_cflags="-g"
7395 case $build in
7396 vax-*-*)
7397 case ${GCC} in
7398 yes) stage1_cflags="-g -Wa,-J" ;;
7399 *) stage1_cflags="-g -J" ;;
7400 esac ;;
7401 powerpc-*-darwin*)
7402 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7403 # sources; use -no-cpp-precomp to get to GNU cpp.
7404 # Apple's GCC has bugs in designated initializer handling, so disable
7405 # that too.
7406 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7408 esac
7410 # LLVM LOCAL begin - LLVM uses inlined functions
7411 if false ; then
7412 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7413 if test "$GCC" = yes; then
7414 saved_CFLAGS="$CFLAGS"
7416 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7417 CFLAGS="$CFLAGS -fkeep-inline-functions"
7418 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7419 echo "configure:7420: checking whether -fkeep-inline-functions is supported" >&5
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7424 #if (__GNUC__ < 3) \
7425 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
7426 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
7427 #error http://gcc.gnu.org/PR29382
7428 #endif
7430 int main() {
7432 ; return 0; }
7434 if { (eval echo configure:7435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7435 rm -rf conftest*
7436 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7437 else
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 rm -rf conftest*
7441 echo "$ac_t""no" 1>&6
7443 rm -f conftest*
7445 CFLAGS="$saved_CFLAGS"
7448 # LLVM LOCAL end - LLVM uses inlined functions.
7452 # Enable --enable-checking in stage1 of the compiler.
7453 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7454 if test "${enable_stage1_checking+set}" = set; then
7455 enableval="$enable_stage1_checking"
7456 stage1_checking=--enable-checking=${enable_stage1_checking}
7457 else
7458 if test "x$enable_checking" = xno; then
7459 # LLVM LOCAL begin - don't enable checking when we meant to disable it
7460 stage1_checking=--disable-checking
7461 # LLVM LOCAL end - don't enable checking when we meant to disable it
7462 else
7463 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
7469 # Enable -Werror in bootstrap stage2 and later.
7470 # Check whether --enable-werror or --disable-werror was given.
7471 if test "${enable_werror+set}" = set; then
7472 enableval="$enable_werror"
7474 else
7475 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
7476 enable_werror=yes
7477 else
7478 enable_werror=no
7482 case ${enable_werror} in
7483 yes) stage2_werror_flag="--enable-werror-always" ;;
7484 *) stage2_werror_flag="" ;;
7485 esac
7488 # Flags needed to enable html installing and building
7489 # Check whether --with-datarootdir or --without-datarootdir was given.
7490 if test "${with_datarootdir+set}" = set; then
7491 withval="$with_datarootdir"
7492 datarootdir="\${prefix}/${withval}"
7493 else
7494 datarootdir="\${prefix}/share"
7498 # Check whether --with-docdir or --without-docdir was given.
7499 if test "${with_docdir+set}" = set; then
7500 withval="$with_docdir"
7501 docdir="\${prefix}/${withval}"
7502 else
7503 docdir="\${datarootdir}/doc"
7507 # Check whether --with-htmldir or --without-htmldir was given.
7508 if test "${with_htmldir+set}" = set; then
7509 withval="$with_htmldir"
7510 htmldir="\${prefix}/${withval}"
7511 else
7512 htmldir="\${docdir}"
7520 trap '' 1 2 15
7521 cat > confcache <<\EOF
7522 # This file is a shell script that caches the results of configure
7523 # tests run on this system so they can be shared between configure
7524 # scripts and configure runs. It is not useful on other systems.
7525 # If it contains results you don't want to keep, you may remove or edit it.
7527 # By default, configure uses ./config.cache as the cache file,
7528 # creating it if it does not exist already. You can give configure
7529 # the --cache-file=FILE option to use a different cache file; that is
7530 # what configure does when it calls configure scripts in
7531 # subdirectories, so they share the cache.
7532 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7533 # config.status only pays attention to the cache file if you give it the
7534 # --recheck option to rerun configure.
7537 # The following way of writing the cache mishandles newlines in values,
7538 # but we know of no workaround that is simple, portable, and efficient.
7539 # So, don't put newlines in cache variables' values.
7540 # Ultrix sh set writes to stderr and can't be redirected directly,
7541 # and sets the high bit in the cache file unless we assign to the vars.
7542 (set) 2>&1 |
7543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7544 *ac_space=\ *)
7545 # `set' does not quote correctly, so add quotes (double-quote substitution
7546 # turns \\\\ into \\, and sed turns \\ into \).
7547 sed -n \
7548 -e "s/'/'\\\\''/g" \
7549 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7552 # `set' quotes correctly as required by POSIX, so do not add quotes.
7553 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7555 esac >> confcache
7556 if cmp -s $cache_file confcache; then
7558 else
7559 if test -w $cache_file; then
7560 echo "updating cache $cache_file"
7561 cat confcache > $cache_file
7562 else
7563 echo "not updating unwritable cache $cache_file"
7566 rm -f confcache
7568 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7571 # Let make expand exec_prefix.
7572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7574 # Any assignment to VPATH causes Sun make to only execute
7575 # the first set of double-colon rules, so remove it if not needed.
7576 # If there is a colon in the path, we need to keep it.
7577 if test "x$srcdir" = x.; then
7578 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7581 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7583 # Transform confdefs.h into DEFS.
7584 # Protect against shell expansion while executing Makefile rules.
7585 # Protect against Makefile macro expansion.
7586 cat > conftest.defs <<\EOF
7587 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7588 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7589 s%\[%\\&%g
7590 s%\]%\\&%g
7591 s%\$%$$%g
7593 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7594 rm -f conftest.defs
7597 # Without the "./", some shells look in PATH for config.status.
7598 : ${CONFIG_STATUS=./config.status}
7600 echo creating $CONFIG_STATUS
7601 rm -f $CONFIG_STATUS
7602 cat > $CONFIG_STATUS <<EOF
7603 #! /bin/sh
7604 # Generated automatically by configure.
7605 # Run this file to recreate the current configuration.
7606 # This directory was configured as follows,
7607 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7609 # $0 $ac_configure_args
7611 # Compiler output produced by configure, useful for debugging
7612 # configure, is in ./config.log if it exists.
7614 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7615 for ac_option
7617 case "\$ac_option" in
7618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7619 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7620 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7621 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7622 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7623 exit 0 ;;
7624 -help | --help | --hel | --he | --h)
7625 echo "\$ac_cs_usage"; exit 0 ;;
7626 *) echo "\$ac_cs_usage"; exit 1 ;;
7627 esac
7628 done
7630 ac_given_srcdir=$srcdir
7631 ac_given_INSTALL="$INSTALL"
7633 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7635 cat >> $CONFIG_STATUS <<EOF
7637 # Protect against being on the right side of a sed subst in config.status.
7638 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7640 $ac_vpsub
7641 $extrasub
7642 s%@SHELL@%$SHELL%g
7643 s%@CFLAGS@%$CFLAGS%g
7644 s%@CPPFLAGS@%$CPPFLAGS%g
7645 s%@CXXFLAGS@%$CXXFLAGS%g
7646 s%@FFLAGS@%$FFLAGS%g
7647 s%@DEFS@%$DEFS%g
7648 s%@LDFLAGS@%$LDFLAGS%g
7649 s%@LIBS@%$LIBS%g
7650 s%@exec_prefix@%$exec_prefix%g
7651 s%@prefix@%$prefix%g
7652 s%@program_transform_name@%$program_transform_name%g
7653 s%@bindir@%$bindir%g
7654 s%@sbindir@%$sbindir%g
7655 s%@libexecdir@%$libexecdir%g
7656 s%@datadir@%$datadir%g
7657 s%@sysconfdir@%$sysconfdir%g
7658 s%@sharedstatedir@%$sharedstatedir%g
7659 s%@localstatedir@%$localstatedir%g
7660 s%@libdir@%$libdir%g
7661 s%@includedir@%$includedir%g
7662 s%@oldincludedir@%$oldincludedir%g
7663 s%@infodir@%$infodir%g
7664 s%@mandir@%$mandir%g
7665 s%@host@%$host%g
7666 s%@host_alias@%$host_alias%g
7667 s%@host_cpu@%$host_cpu%g
7668 s%@host_vendor@%$host_vendor%g
7669 s%@host_os@%$host_os%g
7670 s%@target@%$target%g
7671 s%@target_alias@%$target_alias%g
7672 s%@target_cpu@%$target_cpu%g
7673 s%@target_vendor@%$target_vendor%g
7674 s%@target_os@%$target_os%g
7675 s%@build@%$build%g
7676 s%@build_alias@%$build_alias%g
7677 s%@build_cpu@%$build_cpu%g
7678 s%@build_vendor@%$build_vendor%g
7679 s%@build_os@%$build_os%g
7680 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7681 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7682 s%@INSTALL_DATA@%$INSTALL_DATA%g
7683 s%@LN@%$LN%g
7684 s%@LN_S@%$LN_S%g
7685 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7686 s%@build_libsubdir@%$build_libsubdir%g
7687 s%@build_subdir@%$build_subdir%g
7688 s%@host_subdir@%$host_subdir%g
7689 s%@target_subdir@%$target_subdir%g
7690 s%@CC@%$CC%g
7691 s%@GNATBIND@%$GNATBIND%g
7692 s%@do_compare@%$do_compare%g
7693 s%@gmplibs@%$gmplibs%g
7694 s%@gmpinc@%$gmpinc%g
7695 s%@stage1_languages@%$stage1_languages%g
7696 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7697 /@serialization_dependencies@/r $serialization_dependencies
7698 s%@serialization_dependencies@%%g
7699 /@host_makefile_frag@/r $host_makefile_frag
7700 s%@host_makefile_frag@%%g
7701 /@target_makefile_frag@/r $target_makefile_frag
7702 s%@target_makefile_frag@%%g
7703 /@alphaieee_frag@/r $alphaieee_frag
7704 s%@alphaieee_frag@%%g
7705 /@ospace_frag@/r $ospace_frag
7706 s%@ospace_frag@%%g
7707 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7708 s%@tooldir@%$tooldir%g
7709 s%@build_tooldir@%$build_tooldir%g
7710 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7711 s%@GDB_TK@%$GDB_TK%g
7712 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7713 s%@build_configargs@%$build_configargs%g
7714 s%@build_configdirs@%$build_configdirs%g
7715 s%@host_configargs@%$host_configargs%g
7716 s%@configdirs@%$configdirs%g
7717 s%@target_configargs@%$target_configargs%g
7718 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7719 s%@config_shell@%$config_shell%g
7720 s%@YACC@%$YACC%g
7721 s%@BISON@%$BISON%g
7722 s%@M4@%$M4%g
7723 s%@LEX@%$LEX%g
7724 s%@FLEX@%$FLEX%g
7725 s%@MAKEINFO@%$MAKEINFO%g
7726 s%@EXPECT@%$EXPECT%g
7727 s%@RUNTEST@%$RUNTEST%g
7728 s%@AR@%$AR%g
7729 s%@AS@%$AS%g
7730 s%@DLLTOOL@%$DLLTOOL%g
7731 s%@LD@%$LD%g
7732 s%@LIPO@%$LIPO%g
7733 s%@NM@%$NM%g
7734 s%@RANLIB@%$RANLIB%g
7735 s%@STRIP@%$STRIP%g
7736 s%@WINDRES@%$WINDRES%g
7737 s%@OBJCOPY@%$OBJCOPY%g
7738 s%@OBJDUMP@%$OBJDUMP%g
7739 s%@CXX@%$CXX%g
7740 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7741 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7742 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7743 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7744 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7745 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7746 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7747 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7748 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7749 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7750 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7751 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7752 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7753 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7754 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7755 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7756 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7757 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7758 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7759 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7760 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7761 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7762 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7763 s%@MAINT@%$MAINT%g
7764 s%@stage1_cflags@%$stage1_cflags%g
7765 s%@stage1_checking@%$stage1_checking%g
7766 s%@stage2_werror_flag@%$stage2_werror_flag%g
7767 s%@datarootdir@%$datarootdir%g
7768 s%@docdir@%$docdir%g
7769 s%@htmldir@%$htmldir%g
7771 CEOF
7774 cat >> $CONFIG_STATUS <<\EOF
7776 # Split the substitutions into bite-sized pieces for seds with
7777 # small command number limits, like on Digital OSF/1 and HP-UX.
7778 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7779 ac_file=1 # Number of current file.
7780 ac_beg=1 # First line for current file.
7781 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7782 ac_more_lines=:
7783 ac_sed_cmds=""
7784 while $ac_more_lines; do
7785 if test $ac_beg -gt 1; then
7786 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7787 else
7788 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7790 if test ! -s conftest.s$ac_file; then
7791 ac_more_lines=false
7792 rm -f conftest.s$ac_file
7793 else
7794 if test -z "$ac_sed_cmds"; then
7795 ac_sed_cmds="sed -f conftest.s$ac_file"
7796 else
7797 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7799 ac_file=`expr $ac_file + 1`
7800 ac_beg=$ac_end
7801 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7803 done
7804 if test -z "$ac_sed_cmds"; then
7805 ac_sed_cmds=cat
7809 cat >> $CONFIG_STATUS <<EOF
7811 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7813 cat >> $CONFIG_STATUS <<\EOF
7814 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7815 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7816 case "$ac_file" in
7817 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7818 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7819 *) ac_file_in="${ac_file}.in" ;;
7820 esac
7822 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7824 # Remove last slash and all that follows it. Not all systems have dirname.
7825 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7826 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7827 # The file is in a subdirectory.
7828 test ! -d "$ac_dir" && mkdir "$ac_dir"
7829 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7830 # A "../" for each directory in $ac_dir_suffix.
7831 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7832 else
7833 ac_dir_suffix= ac_dots=
7836 case "$ac_given_srcdir" in
7837 .) srcdir=.
7838 if test -z "$ac_dots"; then top_srcdir=.
7839 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7840 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7841 *) # Relative path.
7842 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7843 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7844 esac
7846 case "$ac_given_INSTALL" in
7847 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7848 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7849 esac
7851 echo creating "$ac_file"
7852 rm -f "$ac_file"
7853 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7854 case "$ac_file" in
7855 *Makefile*) ac_comsub="1i\\
7856 # $configure_input" ;;
7857 *) ac_comsub= ;;
7858 esac
7860 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7861 sed -e "$ac_comsub
7862 s%@configure_input@%$configure_input%g
7863 s%@srcdir@%$srcdir%g
7864 s%@top_srcdir@%$top_srcdir%g
7865 s%@INSTALL@%$INSTALL%g
7866 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7867 fi; done
7868 rm -f conftest.s*
7871 cat >> $CONFIG_STATUS <<EOF
7874 cat >> $CONFIG_STATUS <<\EOF
7876 exit 0
7878 chmod +x $CONFIG_STATUS
7879 rm -fr confdefs* $ac_clean_files
7880 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1