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