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