* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
[official-gcc.git] / configure
bloba47758b0bcb49d7855ab6863301eef10da5be6dc
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 --enable-libada Builds libada directory"
16 ac_help="$ac_help
17 --enable-libssp Builds libssp directory"
18 ac_help="$ac_help
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
20 ac_help="$ac_help
21 --with-mpfr=PATH Specify directory for installed MPFR library"
22 ac_help="$ac_help
23 --with-gmp-dir=PATH Specify source directory for GMP library"
24 ac_help="$ac_help
25 --with-gmp=PATH Specify directory for installed GMP library"
26 ac_help="$ac_help
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
29 ac_help="$ac_help
30 --enable-bootstrap[=lean] Enable bootstrapping [no]"
31 ac_help="$ac_help
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-werror enable -Werror in bootstrap stage2 and later"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
45 build=NONE
46 cache_file=./config.cache
47 exec_prefix=NONE
48 host=NONE
49 no_create=
50 nonopt=NONE
51 no_recursion=
52 prefix=NONE
53 program_prefix=NONE
54 program_suffix=NONE
55 program_transform_name=s,x,x,
56 silent=
57 site=
58 srcdir=
59 target=NONE
60 verbose=
61 x_includes=NONE
62 x_libraries=NONE
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
77 subdirs=
78 MFLAGS= MAKEFLAGS=
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
81 ac_max_here_lines=12
83 ac_prev=
84 for ac_option
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
90 ac_prev=
91 continue
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
99 # Accept the important Cygnus configure options, so we can diagnose typos.
101 case "$ac_option" in
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
109 ac_prev=build ;;
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 ac_prev=datadir ;;
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 | --da=*)
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 case "$ac_option" in
143 *=*) ;;
144 *) ac_optarg=yes ;;
145 esac
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
164 cat << EOF
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
167 Configuration:
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 [same as prefix]
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
198 cat << EOF
199 Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
214 exit 0 ;;
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
364 exit 0 ;;
366 -with-* | --with-*)
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 case "$ac_option" in
374 *=*) ;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 nonopt="$ac_option"
419 esac
420 done
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
429 # 0 standard input
430 # 1 file creation
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
437 exec 6>/dev/null
438 else
439 exec 6>&1
441 exec 5>./config.log
443 echo "\
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
446 " 1>&5
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
450 ac_configure_args=
451 for ac_arg
453 case "$ac_arg" in
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 esac
462 done
464 # NLS nuisances.
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 echo > confdefs.h
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=move-if-change
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
487 ac_prog=$0
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 srcdir=$ac_confdir
491 if test ! -r $srcdir/$ac_unique_file; then
492 srcdir=..
494 else
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 else
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 else
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
517 . "$ac_site_file"
519 done
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524 else
525 echo "creating cache $cache_file"
526 > $cache_file
529 ac_ext=c
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
536 ac_exeext=
537 ac_objext=o
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='
542 ' ac_t=' '
543 else
544 ac_n=-n ac_c= ac_t=
546 else
547 ac_n= ac_c='\c' ac_t=
552 ac_aux_dir=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install-sh -c"
557 break
558 elif test -f $ac_dir/install.sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install.sh -c"
561 break
563 done
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
573 # The inputs are:
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # The rules are:
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # same time.
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---*---* | *---NONE---* | *---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 esac
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
601 host_alias=$host
602 case "$host_alias" in
603 NONE)
604 case $nonopt in
605 NONE)
606 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 fi ;;
609 *) host_alias=$nonopt ;;
610 esac ;;
611 esac
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
622 target_alias=$target
623 case "$target_alias" in
624 NONE)
625 case $nonopt in
626 NONE) target_alias=$host_alias ;;
627 *) target_alias=$nonopt ;;
628 esac ;;
629 esac
631 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
640 build_alias=$build
641 case "$build_alias" in
642 NONE)
643 case $nonopt in
644 NONE) build_alias=$host_alias ;;
645 *) build_alias=$nonopt ;;
646 esac ;;
647 esac
649 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
657 NONENONEs,x,x, &&
658 program_prefix=${target_alias}-
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
662 else
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
666 EOF_SED
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 rm -f conftestsed
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 # Get 'install' or 'install-sh' and its variants.
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
686 # IRIX /sbin/install
687 # AIX /bin/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
699 for ac_dir in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
701 case "$ac_dir/" in
702 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
706 # by default.
707 for ac_prog in ginstall scoinst install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
711 # AIX install. It has an incompatible calling convention.
713 else
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
715 break 2
718 done
720 esac
721 done
722 IFS="$ac_save_IFS"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL="$ac_cv_path_install"
727 else
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
745 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
746 echo "configure:747: checking whether ln works" >&5
747 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 rm -f conftestdata_t
751 echo >conftestdata_f
752 if ln conftestdata_f conftestdata_t 2>/dev/null
753 then
754 acx_cv_prog_LN=ln
755 else
756 acx_cv_prog_LN=no
758 rm -f conftestdata_f conftestdata_t
761 if test $acx_cv_prog_LN = no; then
762 LN="cp"
763 echo "$ac_t""no, using $LN" 1>&6
764 else
765 LN="$acx_cv_prog_LN"
766 echo "$ac_t""yes" 1>&6
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
773 else
774 rm -f conftestdata
775 if ln -s X conftestdata 2>/dev/null
776 then
777 rm -f conftestdata
778 ac_cv_prog_LN_S="ln -s"
779 else
780 ac_cv_prog_LN_S=ln
783 LN_S="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
786 else
787 echo "$ac_t""no" 1>&6
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
796 case "${OSTYPE}" in
797 *win32*)
798 if test x${CONFIG_SHELL} = x ; then
799 if test ! -f /bin/sh ; then
800 if test x${SHELL} != x && test -f ${SHELL} ; then
801 CONFIG_SHELL=${SHELL}
802 export CONFIG_SHELL
803 else
804 for prog in sh sh.exe bash bash.exe; do
805 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
806 for dir in $PATH; do
807 test -z "$dir" && dir=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL=$dir/$prog
810 export CONFIG_SHELL
811 break
813 done
814 IFS="$save_ifs"
815 test -n "${CONFIG_SHELL}" && break
816 done
821 esac
823 config_shell=${CONFIG_SHELL-/bin/sh}
825 progname=$0
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
831 tmp="$progname $@"
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
833 $tmp
834 EOF_SED
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
844 # a relative path.
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
851 pwd=`${PWDCMD-pwd}`
852 if test "${pwd}" = "${srcpwd}" ; then
853 srcdir=.
856 topsrcdir=$srcpwd
858 extra_host_args=
860 ### To add a new directory to the tree, first choose whether it is a target
861 ### or a host dependent tool. Then put it into the appropriate list
862 ### (library or tools, host or target), doing a dependency sort.
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
867 # Dependency sorting is only needed when *configuration* must be done in
868 # a particular order. In all cases a dependency should be specified in
869 # the Makefile, whether or not it's implicitly specified here.
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
874 # these library is used by various programs built for the build
875 # environment
877 build_libs="build-libiberty"
879 # these tools are built for the build environment
880 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
882 # these libraries are used by various programs built for the host environment
884 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
886 # these tools are built for the host environment
887 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
888 # know that we are building the simulator.
889 # binutils, gas and ld appear in that order because it makes sense to run
890 # "make check" in that particular order.
891 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"
893 # libgcj represents the runtime libraries only used by gcj.
894 libgcj="target-libffi \
895 target-boehm-gc \
896 target-zlib \
897 target-qthreads \
898 target-libjava"
900 # these libraries are built for the target environment, and are built after
901 # the host libraries and the host tools (which may be a cross compiler)
903 target_libraries="target-libiberty \
904 target-libgloss \
905 target-newlib \
906 target-libstdc++-v3 \
907 target-libmudflap \
908 target-libssp \
909 target-libgfortran \
910 ${libgcj} \
911 target-libobjc \
912 target-libada"
914 # these tools are built using the target libraries, and are intended to
915 # run only in the target environment
917 # note: any program that *uses* libraries that are in the "target_libraries"
918 # list belongs in this list. those programs are also very likely
919 # candidates for the "native_only" list which follows
921 target_tools="target-examples target-groff target-gperf target-rda"
923 ################################################################################
925 ## All tools belong in one of the four categories, and are assigned above
926 ## We assign ${configdirs} this way to remove all embedded newlines. This
927 ## is important because configure will choke if they ever get through.
928 ## ${configdirs} is directories we build using the host tools.
929 ## ${target_configdirs} is directories we build using the target tools.
930 configdirs=`echo ${host_libs} ${host_tools}`
931 target_configdirs=`echo ${target_libraries} ${target_tools}`
932 build_configdirs=`echo ${build_libs} ${build_tools}`
934 ################################################################################
936 srcname="gnu development package"
938 # This gets set non-empty for some net releases of packages.
939 appdirs=""
941 # Define is_cross_compiler to save on calls to 'test'.
942 is_cross_compiler=
943 if test x"${host}" = x"${target}" ; then
944 is_cross_compiler=no
945 else
946 is_cross_compiler=yes
949 # Find the build and target subdir names.
950 case ${build_alias} in
951 "") build_noncanonical=${build} ;;
952 *) build_noncanonical=${build_alias} ;;
953 esac
955 case ${host_alias} in
956 "") host_noncanonical=${build_noncanonical} ;;
957 *) host_noncanonical=${host_alias} ;;
958 esac
960 case ${target_alias} in
961 "") target_noncanonical=${host_noncanonical} ;;
962 *) target_noncanonical=${target_alias} ;;
963 esac
965 # Prefix 'build-' so this never conflicts with target_subdir.
966 build_subdir="build-${build_noncanonical}"
967 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
968 if ( test $srcdir = . && test -d gcc ) \
969 || test -d $srcdir/../host-${host_noncanonical}; then
970 host_subdir="host-${host_noncanonical}"
971 else
972 host_subdir=.
974 # No prefix.
975 target_subdir=${target_noncanonical}
978 # Skipdirs are removed silently.
979 skipdirs=
980 # Noconfigdirs are removed loudly.
981 noconfigdirs=""
983 use_gnu_ld=
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x$with_gnu_ld = xno ; then
986 use_gnu_ld=no
987 noconfigdirs="$noconfigdirs ld"
990 use_gnu_as=
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x$with_gnu_as = xno ; then
993 use_gnu_as=no
994 noconfigdirs="$noconfigdirs gas"
997 # some tools are so dependent upon X11 that if we're not building with X,
998 # it's not even worth trying to configure, much less build, that tool.
1000 case ${with_x} in
1001 yes | "") ;; # the default value for this tree is that X11 is available
1003 skipdirs="${skipdirs} tk itcl libgui"
1004 # We won't be able to build gdbtk without X.
1005 enable_gdbtk=no
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1008 esac
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only="target-libgloss target-newlib target-opcodes"
1018 case $is_cross_compiler in
1019 no) skipdirs="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs="${skipdirs} ${native_only}" ;;
1021 esac
1023 # If both --with-headers and --with-libs are specified, default to
1024 # --without-newlib.
1025 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1026 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1027 if test x"${with_newlib}" = x ; then
1028 with_newlib=no
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no) skipdirs="${skipdirs} target-newlib" ;;
1035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1036 esac
1038 # Configure extra directories which are host specific
1040 case "${host}" in
1041 *-cygwin*)
1042 configdirs="$configdirs libtermcap" ;;
1043 esac
1045 # A target can indicate whether a language isn't supported for some reason.
1046 # Only spaces may be used in this macro; not newlines or tabs.
1047 unsupported_languages=
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1051 # exist yet.
1053 case "${host}" in
1054 hppa*64*-*-*)
1055 noconfigdirs="$noconfigdirs byacc"
1057 i[3456789]86-*-vsta)
1058 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1060 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1063 i[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1065 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1067 i[3456789]86-*-beos*)
1068 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1070 *-*-cygwin*)
1071 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1073 *-*-netbsd*)
1074 noconfigdirs="$noconfigdirs rcs"
1076 ppc*-*-pe)
1077 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1079 powerpc-*-beos*)
1080 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1082 esac
1085 # Check whether --enable-libada or --disable-libada was given.
1086 if test "${enable_libada+set}" = set; then
1087 enableval="$enable_libada"
1088 ENABLE_LIBADA=$enableval
1089 else
1090 ENABLE_LIBADA=yes
1093 if test "${ENABLE_LIBADA}" != "yes" ; then
1094 noconfigdirs="$noconfigdirs target-libada"
1095 noconfigdirs="$noconfigdirs gnattools"
1098 # Check whether --enable-libssp or --disable-libssp was given.
1099 if test "${enable_libssp+set}" = set; then
1100 enableval="$enable_libssp"
1101 ENABLE_LIBSSP=$enableval
1102 else
1103 ENABLE_LIBSSP=yes
1106 if test "${ENABLE_LIBSSP}" != "yes" ; then
1107 noconfigdirs="$noconfigdirs target-libssp"
1110 # Save it here so that, even in case of --enable-libgcj, if the Java
1111 # front-end isn't enabled, we still get libgcj disabled.
1112 libgcj_saved=$libgcj
1113 case $enable_libgcj in
1114 yes)
1115 # If we reset it here, it won't get added to noconfigdirs in the
1116 # target-specific build rules, so it will be forcibly enabled
1117 # (unless the Java language itself isn't enabled).
1118 libgcj=
1121 # Make sure we get it printed in the list of not supported target libs.
1122 noconfigdirs="$noconfigdirs ${libgcj}"
1124 esac
1127 # Allow --disable-libmudflap to exclude target-libmudflap
1128 case $enable_libmudflap in
1129 yes)
1132 noconfigdirs="$noconfigdirs target-libmudflap"
1135 case "${target}" in
1136 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1137 # Enable libmudflap by default in GNU and friends.
1139 *-*-freebsd*)
1140 # Enable libmudflap by default in FreeBSD.
1143 # Disable it by default everywhere else.
1144 noconfigdirs="$noconfigdirs target-libmudflap"
1146 esac
1147 esac
1150 case "${target}" in
1151 *-*-chorusos)
1152 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1154 powerpc-*-darwin*)
1155 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1156 noconfigdirs="$noconfigdirs sim target-rda"
1158 *-*-darwin*)
1159 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1160 noconfigdirs="$noconfigdirs sim target-rda"
1161 noconfigdirs="$noconfigdirs ${libgcj}"
1163 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1164 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1166 *-*-freebsd*)
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1168 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1169 && test -f /usr/local/include/gmp.h; then
1170 with_gmp=/usr/local
1173 # Skip some stuff that's unsupported on some FreeBSD configurations.
1174 case "${target}" in
1175 i*86-*-*) ;;
1176 alpha*-*-*) ;;
1178 noconfigdirs="$noconfigdirs ${libgcj}"
1180 esac
1182 *-*-kaos*)
1183 # Remove unsupported stuff on all kaOS configurations.
1184 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1185 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1186 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1187 noconfigdirs="$noconfigdirs target-libgloss"
1189 *-*-netbsd*)
1190 # Skip some stuff on all NetBSD configurations.
1191 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1193 # Skip some stuff that's unsupported on some NetBSD configurations.
1194 case "${target}" in
1195 i*86-*-netbsdelf*) ;;
1196 arm*-*-netbsdelf*) ;;
1198 noconfigdirs="$noconfigdirs ${libgcj}"
1200 esac
1202 *-*-netware*)
1203 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1205 *-*-rtems*)
1206 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1208 # The tpf target doesn't support gdb yet.
1209 *-*-tpf*)
1210 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1212 *-*-uclinux*)
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1215 *-*-vxworks*)
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1218 m32c-*-*)
1219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1221 alpha*-dec-osf*)
1222 # ld works, but does not support shared libraries.
1223 # newlib is not 64 bit ready. I'm not sure about fileutils.
1224 # gas doesn't generate exception information.
1225 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1227 alpha*-*-*vms*)
1228 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1230 alpha*-*-linux*)
1231 # newlib is not 64 bit ready
1232 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1234 alpha*-*-*)
1235 # newlib is not 64 bit ready
1236 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1238 am33_2.0-*-linux*)
1239 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 sh-*-linux*)
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1245 noconfigdirs="$noconfigdirs ${libgcj}"
1246 noconfigdirs="$noconfigdirs target-examples"
1247 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1248 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1249 noconfigdirs="$noconfigdirs expect dejagnu"
1250 # the C++ libraries don't build on top of CE's C libraries
1251 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1252 noconfigdirs="$noconfigdirs target-newlib"
1253 case "${host}" in
1254 *-*-cygwin*) ;; # keep gdb and readline
1255 *) noconfigdirs="$noconfigdirs gdb readline"
1257 esac
1259 arc-*-*)
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 arm-semi-aof )
1264 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1265 noconfigdirs="$noconfigdirs ${libgcj}"
1267 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1268 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1270 arm*-*-linux-gnueabi)
1271 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1272 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1274 arm*-*-symbianelf*)
1275 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1277 arm-*-pe*)
1278 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1280 thumb-*-coff)
1281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1283 thumb-*-elf)
1284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1286 thumb-*-pe)
1287 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1289 arm-*-riscix*)
1290 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1292 avr-*-*)
1293 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1295 bfin-*-*)
1296 noconfigdirs="$noconfigdirs target-libgloss gdb"
1297 if test x${is_cross_compiler} != xno ; then
1298 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1301 c4x-*-* | tic4x-*-*)
1302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1304 c54x*-*-* | tic54x-*-*)
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1307 cris-*-* | crisv32-*-*)
1308 unsupported_languages="$unsupported_languages java"
1309 case "${target}" in
1310 *-*-aout)
1311 unsupported_languages="$unsupported_languages fortran"
1312 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1313 *-*-elf)
1314 unsupported_languages="$unsupported_languages fortran"
1315 noconfigdirs="$noconfigdirs target-boehm-gc";;
1316 *-*-linux*)
1317 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1319 unsupported_languages="$unsupported_languages fortran"
1320 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1321 esac
1323 crx-*-*)
1324 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1326 d10v-*-*)
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1329 d30v-*-*)
1330 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1332 fr30-*-elf*)
1333 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1335 frv-*-*)
1336 noconfigdirs="$noconfigdirs ${libgcj}"
1338 h8300*-*-*)
1339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1341 h8500-*-*)
1342 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1344 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1346 hppa*64*-*-linux* | parisc*64*-*-linux*)
1347 # In this case, it's because the hppa64-linux target is for
1348 # the kernel only at this point and has no libc, and thus no
1349 # headers, crt*.o, etc., all of which are needed by these.
1350 noconfigdirs="$noconfigdirs target-zlib"
1352 parisc*-*-linux* | hppa*-*-linux*)
1354 hppa*-*-*elf* | \
1355 hppa*-*-lites* | \
1356 hppa*-*-openbsd* | \
1357 hppa*64*-*-*)
1358 noconfigdirs="$noconfigdirs ${libgcj}"
1360 hppa*-*-*)
1361 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1362 # build on HP-UX 10.20.
1363 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1365 i960-*-*)
1366 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1368 ia64*-*-elf*)
1369 # No gdb support yet.
1370 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1372 ia64*-**-hpux*)
1373 # No gdb or ld support yet.
1374 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1376 i370-*-opened*)
1378 i[3456789]86-*-coff | i[3456789]86-*-elf)
1379 noconfigdirs="$noconfigdirs ${libgcj}"
1381 i[3456789]86-*-linux*)
1382 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1383 # not build java stuff by default.
1384 case "${target}" in
1385 *-*-*libc1*)
1386 noconfigdirs="$noconfigdirs ${libgcj}";;
1387 esac
1389 # This section makes it possible to build newlib natively on linux.
1390 # If we are using a cross compiler then don't configure newlib.
1391 if test x${is_cross_compiler} != xno ; then
1392 noconfigdirs="$noconfigdirs target-newlib"
1394 noconfigdirs="$noconfigdirs target-libgloss"
1395 # If we are not using a cross compiler, do configure newlib.
1396 # Note however, that newlib will only be configured in this situation
1397 # if the --with-newlib option has been given, because otherwise
1398 # 'target-newlib' will appear in skipdirs.
1400 i[3456789]86-*-mingw32*)
1401 target_configdirs="$target_configdirs target-mingw"
1402 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1404 # Can't build gdb for mingw32 if not native.
1405 case "${host}" in
1406 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1407 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1409 esac
1411 *-*-cygwin*)
1412 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1413 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1414 # always build newlib if winsup directory is present.
1415 if test -d "$srcdir/winsup"; then
1416 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1417 elif test -d "$srcdir/newlib"; then
1418 echo "Warning: winsup is missing so newlib can't be built."
1421 # Can't build gdb for Cygwin if not native.
1422 case "${host}" in
1423 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1424 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1426 esac
1428 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1429 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1431 i[3456789]86-*-pe)
1432 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1434 i[3456789]86-*-sco3.2v5*)
1435 # The linker does not yet know about weak symbols in COFF,
1436 # and is not configured to handle mixed ELF and COFF.
1437 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1439 i[3456789]86-*-sco*)
1440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1442 i[3456789]86-*-solaris2*)
1443 noconfigdirs="$noconfigdirs target-libgloss"
1445 i[3456789]86-*-sysv4*)
1446 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1448 i[3456789]86-*-beos*)
1449 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1451 m32r-*-*)
1452 noconfigdirs="$noconfigdirs ${libgcj}"
1454 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1455 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1457 m68k-*-elf*)
1458 noconfigdirs="$noconfigdirs ${libgcj}"
1460 m68k-*-coff*)
1461 noconfigdirs="$noconfigdirs ${libgcj}"
1463 mcore-*-pe*)
1464 # The EPOC C++ environment does not support exceptions or rtti,
1465 # and so building libstdc++-v3 tends not to always work.
1466 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1468 mmix-*-*)
1469 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1470 unsupported_languages="$unsupported_languages fortran java"
1472 mn10200-*-*)
1473 noconfigdirs="$noconfigdirs ${libgcj}"
1475 mn10300-*-*)
1476 noconfigdirs="$noconfigdirs ${libgcj}"
1478 ms1-*-*)
1479 noconfigdirs="$noconfigdirs sim"
1481 powerpc-*-aix*)
1482 # copied from rs6000-*-* entry
1483 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1485 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1486 target_configdirs="$target_configdirs target-winsup"
1487 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1488 # always build newlib.
1489 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1491 # This is temporary until we can link against shared libraries
1492 powerpcle-*-solaris*)
1493 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1495 powerpc-*-beos*)
1496 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1498 powerpc-*-eabi)
1499 noconfigdirs="$noconfigdirs ${libgcj}"
1501 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1503 rs6000-*-lynxos*)
1504 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1506 rs6000-*-aix*)
1507 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1509 rs6000-*-*)
1510 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1512 m68k-apollo-*)
1513 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1515 mips*-*-irix5*)
1516 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1518 mips*-*-irix6*)
1519 # Linking libjava exceeds command-line length limits on at least
1520 # IRIX 6.2, but not on IRIX 6.5.
1521 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1522 # <oldham@codesourcery.com>
1523 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1525 mips*-dec-bsd*)
1526 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1528 mips*-*-bsd*)
1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1531 mipstx39-*-*)
1532 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1534 mips64*-*-linux*)
1535 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1537 mips*-*-linux*)
1538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1540 mips*-*-*)
1541 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1543 romp-*-*)
1544 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1546 sh-*-* | sh64-*-*)
1547 case "${host}" in
1548 i[3456789]86-*-vsta) ;; # don't add gprof back in
1549 i[3456789]86-*-go32*) ;; # don't add gprof back in
1550 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1551 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1552 esac
1553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1555 sparc-*-elf*)
1556 noconfigdirs="$noconfigdirs ${libgcj}"
1558 sparc64-*-elf*)
1559 noconfigdirs="$noconfigdirs ${libgcj}"
1561 sparclite-*-*)
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1564 sparc-*-sunos4*)
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1566 if test x${is_cross_compiler} != xno ; then
1567 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1568 else
1569 use_gnu_ld=no
1572 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1573 noconfigdirs="$noconfigdirs ${libgcj}"
1575 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1577 v810-*-*)
1578 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1580 v850-*-*)
1581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1583 v850e-*-*)
1584 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1586 v850ea-*-*)
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1589 vax-*-vms)
1590 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1592 vax-*-*)
1593 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1595 xtensa-*-*)
1596 noconfigdirs="$noconfigdirs ${libgcj}"
1598 ip2k-*-*)
1599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1601 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1604 *-*-lynxos*)
1605 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1607 *-*-*)
1608 noconfigdirs="$noconfigdirs ${libgcj}"
1610 esac
1612 # If we aren't building newlib, then don't build libgloss, since libgloss
1613 # depends upon some newlib header files.
1614 case "${noconfigdirs}" in
1615 *target-libgloss*) ;;
1616 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1617 esac
1619 # Work in distributions that contain no compiler tools, like Autoconf.
1620 tentative_cc=""
1621 host_makefile_frag=/dev/null
1622 if test -d ${srcdir}/config ; then
1623 case "${host}" in
1624 m68k-hp-hpux*)
1625 # Avoid "too much defining" errors from HPUX compiler.
1626 tentative_cc="cc -Wp,-H256000"
1627 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1628 # If it's HP/UX ar, this should be harmless.
1629 RANLIB="ar ts"
1631 m68k-apollo-sysv*)
1632 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1634 m68k-apollo-bsd*)
1635 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1636 # chokes on bfd, the compiler won't let you assign integers to enums, and
1637 # other problems. Defining CC to gcc is a questionable way to say "don't use
1638 # the apollo compiler" (the preferred version of GCC could be called cc,
1639 # or whatever), but I'm not sure leaving CC as cc is any better...
1640 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1641 # Used to have BISON=yacc.
1642 tentative_cc=gcc
1644 m88k-dg-dgux*)
1645 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1647 m88k-harris-cxux*)
1648 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1649 tentative_cc="cc -Xa"
1650 host_makefile_frag="config/mh-cxux"
1652 m88k-motorola-sysv*)
1654 mips*-dec-ultrix*)
1655 tentative_cc="cc -Wf,-XNg1000"
1656 host_makefile_frag="config/mh-decstation"
1658 mips*-nec-sysv4*)
1659 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1660 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1661 host_makefile_frag="config/mh-necv4"
1663 mips*-sgi-irix4*)
1664 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1665 # environment. Also bump switch table size so that cp-parse will
1666 # compile. Bump string length limit so linker builds.
1667 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1669 mips*-*-sysv4*)
1670 host_makefile_frag="config/mh-sysv4"
1672 mips*-*-sysv*)
1673 # This is for a MIPS running RISC/os 4.52C.
1675 # This is needed for GDB, but needs to be in the top-level make because
1676 # if a library is compiled with the bsd headers and gets linked with the
1677 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1678 # a different size).
1679 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1680 # known except to select the sysv environment. Could we use /proc instead?
1681 # These "sysv environments" and "bsd environments" often end up being a pain.
1683 # This is not part of CFLAGS because perhaps not all C compilers have this
1684 # option.
1685 tentative_cc="cc -systype sysv"
1687 i370-ibm-opened*)
1688 tentative_cc="c89"
1690 i[3456789]86-*-sysv5*)
1691 host_makefile_frag="config/mh-sysv5"
1693 i[3456789]86-*-dgux*)
1694 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1695 host_makefile_frag="config/mh-dgux386"
1697 i[3456789]86-ncr-sysv4.3*)
1698 # The MetaWare compiler will generate a copyright message unless you
1699 # turn it off by adding the -Hnocopyr flag.
1700 tentative_cc="cc -Hnocopyr"
1702 i[3456789]86-ncr-sysv4*)
1703 # for an NCR 3000 (i486/SVR4) system.
1704 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1705 # This compiler not only emits obnoxious copyright messages every time
1706 # you run it, but it chokes and dies on a whole bunch of GNU source
1707 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1708 tentative_cc="/usr/ccs/ATT/cc"
1709 host_makefile_frag="config/mh-ncr3000"
1711 i[3456789]86-*-sco3.2v5*)
1713 i[3456789]86-*-sco*)
1714 # The native C compiler botches some simple uses of const. Unfortunately,
1715 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1716 tentative_cc="cc -Dconst="
1717 host_makefile_frag="config/mh-sco"
1719 i[3456789]86-*-udk*)
1720 host_makefile_frag="config/mh-sysv5"
1722 i[3456789]86-*-solaris2*)
1723 host_makefile_frag="config/mh-sysv4"
1725 i[3456789]86-*-msdosdjgpp*)
1726 host_makefile_frag="config/mh-djgpp"
1728 *-cygwin*)
1729 host_makefile_frag="config/mh-cygwin"
1731 *-mingw32*)
1733 *-interix*)
1734 host_makefile_frag="config/mh-interix"
1736 vax-*-ultrix2*)
1737 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1738 tentative_cc=gcc
1740 *-*-solaris2*)
1741 host_makefile_frag="config/mh-solaris"
1743 m68k-sun-sunos*)
1744 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1745 # without overflowing the jump tables (-J says to use a 32 bit table)
1746 tentative_cc="cc -J"
1748 *-hp-hpux*)
1749 tentative_cc="cc -Wp,-H256000"
1751 *-*-hiux*)
1752 tentative_cc="cc -Wp,-H256000"
1754 rs6000-*-lynxos*)
1755 # /bin/cc is less than useful for our purposes. Always use GCC
1756 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1757 host_makefile_frag="config/mh-lynxrs6k"
1759 powerpc-*-darwin*)
1760 host_makefile_frag="config/mh-ppc-darwin"
1762 *-*-lynxos*)
1763 # /bin/cc is less than useful for our purposes. Always use GCC
1764 tentative_cc="/bin/gcc"
1766 *-*-sysv4*)
1767 host_makefile_frag="config/mh-sysv4"
1769 # This is placed last to prevent interfering with the cases above.
1770 i[3456789]86-*-*)
1771 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1772 host_makefile_frag="config/mh-x86omitfp"
1774 esac
1777 # If we aren't going to be using gcc, see if we can extract a definition
1778 # of CC from the fragment.
1779 # Actually, use the 'pre-extracted' version above.
1780 if test -z "${CC}" && test "${build}" = "${host}" ; then
1781 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1782 found=
1783 for dir in $PATH; do
1784 test -z "$dir" && dir=.
1785 if test -f $dir/gcc; then
1786 found=yes
1787 break
1789 done
1790 IFS="$save_ifs"
1791 if test -z "${found}" && test -n "${tentative_cc}" ; then
1792 CC=$tentative_cc
1796 if test "${build}" != "${host}" ; then
1797 # If we are doing a Canadian Cross, in which the host and build systems
1798 # are not the same, we set reasonable default values for the tools.
1800 CC=${CC-${host_alias}-gcc}
1801 CFLAGS=${CFLAGS-"-g -O2"}
1802 CXX=${CXX-${host_alias}-c++}
1803 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1804 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1805 BUILD_PREFIX=${build_alias}-
1806 BUILD_PREFIX_1=${build_alias}-
1808 else
1809 # Set reasonable default values for some tools even if not Canadian.
1810 # Of course, these are different reasonable default values, originally
1811 # specified directly in the Makefile.
1812 # We don't export, so that autoconf can do its job.
1813 # Note that all these settings are above the fragment inclusion point
1814 # in Makefile.in, so can still be overridden by fragments.
1815 # This is all going to change when we autoconfiscate...
1817 CC_FOR_BUILD="\$(CC)"
1818 BUILD_PREFIX=
1819 BUILD_PREFIX_1=loser-
1821 # Extract the first word of "gcc", so it can be a program name with args.
1822 set dummy gcc; ac_word=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_dummy="$PATH"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_CC="gcc"
1837 break
1839 done
1840 IFS="$ac_save_ifs"
1843 CC="$ac_cv_prog_CC"
1844 if test -n "$CC"; then
1845 echo "$ac_t""$CC" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1850 if test -z "$CC"; then
1851 # Extract the first word of "cc", so it can be a program name with args.
1852 set dummy cc; ac_word=$2
1853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_word" >&5
1855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 else
1861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 ac_prog_rejected=no
1863 ac_dummy="$PATH"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1868 ac_prog_rejected=yes
1869 continue
1871 ac_cv_prog_CC="cc"
1872 break
1874 done
1875 IFS="$ac_save_ifs"
1876 if test $ac_prog_rejected = yes; then
1877 # We found a bogon in the path, so make sure we never use it.
1878 set dummy $ac_cv_prog_CC
1879 shift
1880 if test $# -gt 0; then
1881 # We chose a different compiler from the bogus one.
1882 # However, it has the same basename, so the bogon will be chosen
1883 # first if we set CC to just the basename; use the full file name.
1884 shift
1885 set dummy "$ac_dir/$ac_word" "$@"
1886 shift
1887 ac_cv_prog_CC="$@"
1892 CC="$ac_cv_prog_CC"
1893 if test -n "$CC"; then
1894 echo "$ac_t""$CC" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1899 if test -z "$CC"; then
1900 case "`uname -s`" in
1901 *win32* | *WIN32*)
1902 # Extract the first word of "cl", so it can be a program name with args.
1903 set dummy cl; ac_word=$2
1904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1905 echo "configure:1906: checking for $ac_word" >&5
1906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1913 ac_dummy="$PATH"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1917 ac_cv_prog_CC="cl"
1918 break
1920 done
1921 IFS="$ac_save_ifs"
1924 CC="$ac_cv_prog_CC"
1925 if test -n "$CC"; then
1926 echo "$ac_t""$CC" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1931 esac
1933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1937 echo "configure:1938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1939 ac_ext=c
1940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1944 cross_compiling=$ac_cv_prog_cc_cross
1946 cat > conftest.$ac_ext << EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1951 main(){return(0);}
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954 ac_cv_prog_cc_works=yes
1955 # If we can't run a trivial program, we are probably using a cross compiler.
1956 if (./conftest; exit) 2>/dev/null; then
1957 ac_cv_prog_cc_cross=no
1958 else
1959 ac_cv_prog_cc_cross=yes
1961 else
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1964 ac_cv_prog_cc_works=no
1966 rm -fr conftest*
1967 ac_ext=c
1968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1972 cross_compiling=$ac_cv_prog_cc_cross
1974 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1975 if test $ac_cv_prog_cc_works = no; then
1976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1980 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1981 cross_compiling=$ac_cv_prog_cc_cross
1983 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether we are using GNU C" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987 else
1988 cat > conftest.c <<EOF
1989 #ifdef __GNUC__
1990 yes;
1991 #endif
1993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1994 ac_cv_prog_gcc=yes
1995 else
1996 ac_cv_prog_gcc=no
2000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2002 if test $ac_cv_prog_gcc = yes; then
2003 GCC=yes
2004 else
2005 GCC=
2008 ac_test_CFLAGS="${CFLAGS+set}"
2009 ac_save_CFLAGS="$CFLAGS"
2010 CFLAGS=
2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5
2013 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 echo 'void f(){}' > conftest.c
2017 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2018 ac_cv_prog_cc_g=yes
2019 else
2020 ac_cv_prog_cc_g=no
2022 rm -f conftest*
2026 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2027 if test "$ac_test_CFLAGS" = set; then
2028 CFLAGS="$ac_save_CFLAGS"
2029 elif test $ac_cv_prog_cc_g = yes; then
2030 if test "$GCC" = yes; then
2031 CFLAGS="-g -O2"
2032 else
2033 CFLAGS="-g"
2035 else
2036 if test "$GCC" = yes; then
2037 CFLAGS="-O2"
2038 else
2039 CFLAGS=
2044 # We must set the default linker to the linker used by gcc for the correct
2045 # operation of libtool. If LD is not defined and we are using gcc, try to
2046 # set the LD default to the ld used by gcc.
2047 if test -z "$LD"; then
2048 if test "$GCC" = yes; then
2049 case $build in
2050 *-*-mingw*)
2051 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2053 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2054 esac
2055 case $gcc_prog_ld in
2056 # Accept absolute paths.
2057 [\\/]* | [A-Za-z]:[\\/]*)
2058 LD="$gcc_prog_ld" ;;
2059 esac
2063 CXX=${CXX-"c++"}
2064 CFLAGS=${CFLAGS-"-g"}
2065 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2068 if test $host != $build; then
2069 ac_tool_prefix=${host_alias}-
2070 else
2071 ac_tool_prefix=
2076 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_word" >&5
2080 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2082 else
2083 if test -n "$GNATBIND"; then
2084 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2085 else
2086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2087 ac_dummy="$PATH"
2088 for ac_dir in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir=.
2090 if test -f $ac_dir/$ac_word; then
2091 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2092 break
2094 done
2095 IFS="$ac_save_ifs"
2098 GNATBIND="$ac_cv_prog_GNATBIND"
2099 if test -n "$GNATBIND"; then
2100 echo "$ac_t""$GNATBIND" 1>&6
2101 else
2102 echo "$ac_t""no" 1>&6
2106 if test -z "$ac_cv_prog_GNATBIND"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "gnatbind", so it can be a program name with args.
2109 set dummy gnatbind; ac_word=$2
2110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_word" >&5
2112 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 if test -n "$GNATBIND"; then
2116 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2117 else
2118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2119 ac_dummy="$PATH"
2120 for ac_dir in $ac_dummy; do
2121 test -z "$ac_dir" && ac_dir=.
2122 if test -f $ac_dir/$ac_word; then
2123 ac_cv_prog_GNATBIND="gnatbind"
2124 break
2126 done
2127 IFS="$ac_save_ifs"
2128 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2131 GNATBIND="$ac_cv_prog_GNATBIND"
2132 if test -n "$GNATBIND"; then
2133 echo "$ac_t""$GNATBIND" 1>&6
2134 else
2135 echo "$ac_t""no" 1>&6
2138 else
2139 GNATBIND="no"
2143 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether compiler driver understands Ada" >&5
2145 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 cat >conftest.adb <<EOF
2149 procedure conftest is begin null; end conftest;
2151 acx_cv_cc_gcc_supports_ada=no
2152 # There is a bug in old released versions of GCC which causes the
2153 # driver to exit successfully when the appropriate language module
2154 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2155 # Therefore we must check for the error message as well as an
2156 # unsuccessful exit.
2157 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2158 # given a .adb file, but produce no object file. So we must check
2159 # if an object file was really produced to guard against this.
2160 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2161 if test x"$errors" = x && test -f conftest.$ac_objext; then
2162 acx_cv_cc_gcc_supports_ada=yes
2164 rm -f conftest.*
2167 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2169 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2170 have_gnat=yes
2171 else
2172 have_gnat=no
2175 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2176 echo "configure:2177: checking how to compare bootstrapped objects" >&5
2177 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 echo abfoo >t1
2181 echo cdfoo >t2
2182 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2183 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2184 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2186 else
2187 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2190 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2191 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2193 else
2194 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2197 rm t1 t2
2201 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2202 do_compare="$gcc_cv_prog_cmp_skip"
2206 # Check for GMP and MPFR
2207 gmplibs=
2208 gmpinc=
2209 have_gmp=yes
2210 # Specify a location for mpfr
2211 # check for this first so it ends up on the link line before gmp.
2212 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2213 if test "${with_mpfr_dir+set}" = set; then
2214 withval="$with_mpfr_dir"
2219 if test "x$with_mpfr_dir" != x; then
2220 gmpinc="-I$with_mpfr_dir"
2221 gmplibs="$with_mpfr_dir/libmpfr.a"
2222 else
2223 gmplibs="-lmpfr"
2226 # Check whether --with-mpfr or --without-mpfr was given.
2227 if test "${with_mpfr+set}" = set; then
2228 withval="$with_mpfr"
2233 if test "x$with_mpfr" != x; then
2234 gmplibs="-L$with_mpfr/lib $gmplibs"
2235 gmpinc="-I$with_mpfr/include"
2238 # Specify a location for gmp
2239 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2240 if test "${with_gmp_dir+set}" = set; then
2241 withval="$with_gmp_dir"
2246 if test "x$with_gmp_dir" != x; then
2247 gmpinc="$gmpinc -I$with_gmp_dir"
2248 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2249 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2250 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2251 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2253 # One of the later tests will catch the error if neither library is present.
2254 else
2255 gmplibs="$gmplibs -lgmp"
2258 # Check whether --with-gmp or --without-gmp was given.
2259 if test "${with_gmp+set}" = set; then
2260 withval="$with_gmp"
2265 if test "x$with_gmp" != x; then
2266 gmplibs="-L$with_gmp/lib $gmplibs"
2267 gmpinc="-I$with_gmp/include $gmpinc"
2270 saved_CFLAGS="$CFLAGS"
2271 CFLAGS="$CFLAGS $gmpinc"
2272 # Check GMP actually works
2273 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2274 echo "configure:2275: checking for correct version of gmp.h" >&5
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 #include "gmp.h"
2279 int main() {
2281 #if __GNU_MP_VERSION < 3
2282 choke me
2283 #endif
2285 ; return 0; }
2287 if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2288 rm -rf conftest*
2289 echo "$ac_t""yes" 1>&6
2290 else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 echo "$ac_t""no" 1>&6; have_gmp=no
2296 rm -f conftest*
2298 if test x"$have_gmp" = xyes; then
2299 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2300 echo "configure:2301: checking for MPFR" >&5
2302 saved_LIBS="$LIBS"
2303 LIBS="$LIBS $gmplibs"
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <gmp.h>
2308 #include <mpfr.h>
2309 int main() {
2310 mpfr_t n; mpfr_init(n);
2311 ; return 0; }
2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2314 rm -rf conftest*
2315 echo "$ac_t""yes" 1>&6
2316 else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 echo "$ac_t""no" 1>&6; have_gmp=no
2322 rm -f conftest*
2323 LIBS="$saved_LIBS"
2324 CFLAGS="$saved_CFLAGS"
2327 # Flags needed for both GMP and/or MPFR
2331 # By default, C is the only stage 1 language.
2332 stage1_languages=c
2335 # Figure out what language subdirectories are present.
2336 # Look if the user specified --enable-languages="..."; if not, use
2337 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2338 # go away some day.
2339 # NB: embedded tabs in this IF block -- do not untabify
2340 if test -d ${srcdir}/gcc; then
2341 if test x"${enable_languages+set}" != xset; then
2342 if test x"${LANGUAGES+set}" = xset; then
2343 enable_languages="${LANGUAGES}"
2344 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2345 else
2346 enable_languages=all
2348 else
2349 if test x"${enable_languages}" = x ||
2350 test x"${enable_languages}" = xyes;
2351 then
2352 echo configure.in: --enable-languages needs at least one language argument 1>&2
2353 exit 1
2356 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2358 # 'f95' is the old name for the 'fortran' language. We issue a warning
2359 # and make the substitution.
2360 case ,${enable_languages}, in
2361 *,f95,*)
2362 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2363 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2365 esac
2367 # First scan to see if an enabled language requires some other language.
2368 # We assume that a given config-lang.in will list all the language
2369 # front ends it requires, even if some are required indirectly.
2370 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2371 case ${lang_frag} in
2372 ..) ;;
2373 # The odd quoting in the next line works around
2374 # an apparent bug in bash 1.12 on linux.
2375 ${srcdir}/gcc/[*]/config-lang.in) ;;
2377 # From the config-lang.in, get $language, $lang_requires
2378 language=
2379 lang_requires=
2380 . ${lang_frag}
2381 for other in ${lang_requires} ; do
2382 case ,${enable_languages}, in
2383 *,$other,*) ;;
2384 *,all,*) ;;
2385 *,$language,*)
2386 echo " \`$other' language required by \`$language'; enabling" 1>&2
2387 enable_languages="${enable_languages},${other}"
2389 esac
2390 done
2392 esac
2393 done
2395 new_enable_languages=c
2396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2397 potential_languages=c
2399 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2400 case ${lang_frag} in
2401 ..) ;;
2402 # The odd quoting in the next line works around
2403 # an apparent bug in bash 1.12 on linux.
2404 ${srcdir}/gcc/[*]/config-lang.in) ;;
2406 # From the config-lang.in, get $language, $target_libs,
2407 # $lang_dirs, $boot_language, and $build_by_default
2408 language=
2409 target_libs=
2410 lang_dirs=
2411 boot_language=
2412 build_by_default=
2413 need_gmp=
2414 . ${lang_frag}
2415 potential_languages="${potential_languages},${language}"
2416 # This is quite sensitive to the ordering of the case statement arms.
2417 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2418 *::*:*)
2419 echo "${lang_frag} doesn't set \$language." 1>&2
2420 exit 1
2422 *:ada:no:*)
2423 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2424 add_this_lang=no
2426 *,${language},*:*:*:*)
2427 # Language was explicitly selected; include it.
2428 add_this_lang=yes
2430 *,all,*:*:*:no)
2431 # 'all' was selected, but this is not a default language
2432 # so do not include it.
2433 add_this_lang=no
2435 *,all,*:*:*:*)
2436 # 'all' was selected and this is a default language; include it.
2437 add_this_lang=yes
2440 add_this_lang=no
2442 esac
2444 # Disable languages that need GMP if it isn't available.
2445 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2446 *,${language},*:no:yes)
2447 # Specifically requested language; tell them.
2448 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2450 *:no:yes)
2451 # Silently disable.
2452 add_this_lang=no
2454 esac
2456 # Disable a language that is unsupported by the target.
2457 case " $unsupported_languages " in
2458 *" $language "*)
2459 add_this_lang=no
2461 esac
2463 case $add_this_lang in
2465 # Remove language-dependent dirs.
2466 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2469 new_enable_languages="$new_enable_languages,$language"
2470 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2471 case ${boot_language} in
2472 yes)
2473 # Add to (comma-separated) list of stage 1 languages.
2474 stage1_languages="${stage1_languages},${language}"
2476 esac
2478 esac
2480 esac
2481 done
2483 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2484 if test "x$missing_languages" != x; then
2485 { echo "configure: error:
2486 The following requested languages could not be built: ${missing_languages}
2487 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2490 if test "x$new_enable_languages" != "x$enable_languages"; then
2491 echo The following languages will be built: ${new_enable_languages}
2493 enable_languages="$new_enable_languages"
2494 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2497 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2498 # $build_configdirs and $target_configdirs.
2499 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2501 notsupp=""
2502 for dir in . $skipdirs $noconfigdirs ; do
2503 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2504 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2505 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2506 if test -r $srcdir/$dirname/configure ; then
2507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2508 true
2509 else
2510 notsupp="$notsupp $dir"
2514 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2515 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2516 if test -r $srcdir/$dirname/configure ; then
2517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2518 true
2519 else
2520 notsupp="$notsupp $dir"
2524 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2525 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2526 if test -r $srcdir/$dirname/configure ; then
2527 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2528 true
2529 else
2530 notsupp="$notsupp $dir"
2534 done
2536 # Sometimes the tools are distributed with libiberty but with no other
2537 # libraries. In that case, we don't want to build target-libiberty.
2538 if test -n "${target_configdirs}" ; then
2539 others=
2540 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2541 if test "$i" != "libiberty" ; then
2542 if test -r $srcdir/$i/configure ; then
2543 others=yes;
2544 break;
2547 done
2548 if test -z "${others}" ; then
2549 target_configdirs=
2553 # Quietly strip out all directories which aren't configurable in this tree.
2554 # This relies on all configurable subdirectories being autoconfiscated, which
2555 # is now the case.
2556 build_configdirs_all="$build_configdirs"
2557 build_configdirs=
2558 for i in ${build_configdirs_all} ; do
2559 j=`echo $i | sed -e s/build-//g`
2560 if test -f ${srcdir}/$j/configure ; then
2561 build_configdirs="${build_configdirs} $i"
2563 done
2565 configdirs_all="$configdirs"
2566 configdirs=
2567 for i in ${configdirs_all} ; do
2568 if test -f ${srcdir}/$i/configure ; then
2569 configdirs="${configdirs} $i"
2571 done
2573 target_configdirs_all="$target_configdirs"
2574 target_configdirs=
2575 for i in ${target_configdirs_all} ; do
2576 j=`echo $i | sed -e s/target-//g`
2577 if test -f ${srcdir}/$j/configure ; then
2578 target_configdirs="${target_configdirs} $i"
2580 done
2582 # Produce a warning message for the subdirs we can't configure.
2583 # This isn't especially interesting in the Cygnus tree, but in the individual
2584 # FSF releases, it's important to let people know when their machine isn't
2585 # supported by the one or two programs in a package.
2587 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2588 # If $appdirs is non-empty, at least one of those directories must still
2589 # be configured, or we error out. (E.g., if the gas release supports a
2590 # specified target in some subdirs but not the gas subdir, we shouldn't
2591 # pretend that all is well.)
2592 if test -n "$appdirs" ; then
2593 for dir in $appdirs ; do
2594 if test -r $dir/Makefile.in ; then
2595 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2596 appdirs=""
2597 break
2599 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2600 appdirs=""
2601 break
2604 done
2605 if test -n "$appdirs" ; then
2606 echo "*** This configuration is not supported by this package." 1>&2
2607 exit 1
2610 # Okay, some application will build, or we don't care to check. Still
2611 # notify of subdirs not getting built.
2612 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2613 echo " ${notsupp}" 1>&2
2614 echo " (Any other directories should still work fine.)" 1>&2
2617 case "$host" in
2618 *msdosdjgpp*)
2619 enable_gdbtk=no ;;
2620 esac
2622 copy_dirs=
2624 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2625 if test "${with_build_sysroot+set}" = set; then
2626 withval="$with_build_sysroot"
2627 if test x"$withval" != x ; then
2628 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2630 else
2631 SYSROOT_CFLAGS_FOR_TARGET=
2636 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2637 # the named directory are copied to $(tooldir)/sys-include.
2638 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2639 if test x${is_cross_compiler} = xno ; then
2640 echo 1>&2 '***' --with-headers is only supported when cross compiling
2641 exit 1
2643 if test x"${with_headers}" != xyes ; then
2644 case "${exec_prefixoption}" in
2645 "") x=${prefix} ;;
2646 *) x=${exec_prefix} ;;
2647 esac
2648 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2652 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2653 # the name directories are copied to $(tooldir)/lib. Multiple directories
2654 # are permitted.
2655 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2656 if test x${is_cross_compiler} = xno ; then
2657 echo 1>&2 '***' --with-libs is only supported when cross compiling
2658 exit 1
2660 if test x"${with_libs}" != xyes ; then
2661 # Copy the libraries in reverse order, so that files in the first named
2662 # library override files in subsequent libraries.
2663 case "${exec_prefixoption}" in
2664 "") x=${prefix} ;;
2665 *) x=${exec_prefix} ;;
2666 esac
2667 for l in ${with_libs}; do
2668 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2669 done
2673 # Handle ${copy_dirs}
2674 set fnord ${copy_dirs}
2675 shift
2676 while test $# != 0 ; do
2677 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2679 else
2680 echo Copying $1 to $2
2682 # Use the install script to create the directory and all required
2683 # parent directories.
2684 if test -d $2 ; then
2686 else
2687 echo >config.temp
2688 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2691 # Copy the directory, assuming we have tar.
2692 # FIXME: Should we use B in the second tar? Not all systems support it.
2693 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2695 # It is the responsibility of the user to correctly adjust all
2696 # symlinks. If somebody can figure out how to handle them correctly
2697 # here, feel free to add the code.
2699 echo $1 > $2/COPIED
2701 shift; shift
2702 done
2704 extra_arflags_for_target=
2705 extra_nmflags_for_target=
2706 extra_ranlibflags_for_target=
2707 target_makefile_frag=/dev/null
2708 case "${target}" in
2709 *-*-netware*)
2710 target_makefile_frag="config/mt-netware"
2712 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2713 target_makefile_frag="config/mt-gnu"
2715 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2716 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2717 # commands to handle both 32-bit and 64-bit objects. These flags are
2718 # harmless if we're using GNU nm or ar.
2719 extra_arflags_for_target=" -X32_64"
2720 extra_nmflags_for_target=" -B -X32_64"
2722 *-*-darwin*)
2723 # ranlib from Darwin requires the -c flag to look at common symbols.
2724 extra_ranlibflags_for_target=" -c"
2726 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2727 target_makefile_frag="config/mt-wince"
2729 esac
2731 alphaieee_frag=/dev/null
2732 case $target in
2733 alpha*-*-*)
2734 # This just makes sure to use the -mieee option to build target libs.
2735 # This should probably be set individually by each library.
2736 alphaieee_frag="config/mt-alphaieee"
2738 esac
2740 # If --enable-target-optspace always use -Os instead of -O2 to build
2741 # the target libraries, similarly if it is not specified, use -Os
2742 # on selected platforms.
2743 ospace_frag=/dev/null
2744 case "${enable_target_optspace}:${target}" in
2745 yes:*)
2746 ospace_frag="config/mt-ospace"
2748 :d30v-*)
2749 ospace_frag="config/mt-d30v"
2751 :m32r-* | :d10v-* | :fr30-*)
2752 ospace_frag="config/mt-ospace"
2754 no:* | :*)
2757 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2759 esac
2761 # Set with_gnu_as and with_gnu_ld as appropriate.
2763 # This is done by determining whether or not the appropriate directory
2764 # is available, and by checking whether or not specific configurations
2765 # have requested that this magic not happen.
2767 # The command line options always override the explicit settings in
2768 # configure.in, and the settings in configure.in override this magic.
2770 # If the default for a toolchain is to use GNU as and ld, and you don't
2771 # want to do that, then you should use the --without-gnu-as and
2772 # --without-gnu-ld options for the configure script.
2774 if test x${use_gnu_as} = x &&
2775 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2776 with_gnu_as=yes
2777 extra_host_args="$extra_host_args --with-gnu-as"
2780 if test x${use_gnu_ld} = x &&
2781 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2782 with_gnu_ld=yes
2783 extra_host_args="$extra_host_args --with-gnu-ld"
2786 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2787 # can detect this case.
2789 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2790 with_newlib=yes
2791 extra_host_args="$extra_host_args --with-newlib"
2794 # Default to using --with-stabs for certain targets.
2795 if test x${with_stabs} = x ; then
2796 case "${target}" in
2797 mips*-*-irix[56]*)
2799 mips*-*-* | alpha*-*-osf*)
2800 with_stabs=yes;
2801 extra_host_args="${extra_host_args} --with-stabs"
2803 esac
2806 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2807 # them automatically.
2808 case "${host}" in
2809 hppa*64*-*-hpux11*)
2810 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2812 esac
2814 # Some systems (e.g., one of the i386-aix systems the gas testers are
2815 # using) don't handle "\$" correctly, so don't use it here.
2816 tooldir='${exec_prefix}'/${target_alias}
2817 build_tooldir=${tooldir}
2819 # Generate default definitions for YACC, M4, LEX and other programs that run
2820 # on the build machine. These are used if the Makefile can't locate these
2821 # programs in objdir.
2822 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2823 for ac_prog in bison
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832 if test -n "$CONFIGURED_BISON"; then
2833 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2834 else
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 ac_dummy="$PATH"
2837 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if test -f $ac_dir/$ac_word; then
2840 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2841 break
2843 done
2844 IFS="$ac_save_ifs"
2847 CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2848 if test -n "$CONFIGURED_BISON"; then
2849 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2850 else
2851 echo "$ac_t""no" 1>&6
2854 test -n "$CONFIGURED_BISON" && break
2855 done
2856 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2858 for ac_prog in 'bison -y' byacc yacc
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2863 echo "configure:2864: checking for $ac_word" >&5
2864 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2866 else
2867 if test -n "$CONFIGURED_YACC"; then
2868 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
2869 else
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2871 ac_dummy="$PATH"
2872 for ac_dir in $ac_dummy; do
2873 test -z "$ac_dir" && ac_dir=.
2874 if test -f $ac_dir/$ac_word; then
2875 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
2876 break
2878 done
2879 IFS="$ac_save_ifs"
2882 CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2883 if test -n "$CONFIGURED_YACC"; then
2884 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2889 test -n "$CONFIGURED_YACC" && break
2890 done
2891 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
2893 for ac_prog in gm4 gnum4 m4
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_word" >&5
2899 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901 else
2902 if test -n "$CONFIGURED_M4"; then
2903 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2904 else
2905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2906 ac_dummy="$PATH"
2907 for ac_dir in $ac_dummy; do
2908 test -z "$ac_dir" && ac_dir=.
2909 if test -f $ac_dir/$ac_word; then
2910 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2911 break
2913 done
2914 IFS="$ac_save_ifs"
2917 CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2918 if test -n "$CONFIGURED_M4"; then
2919 echo "$ac_t""$CONFIGURED_M4" 1>&6
2920 else
2921 echo "$ac_t""no" 1>&6
2924 test -n "$CONFIGURED_M4" && break
2925 done
2926 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2928 for ac_prog in flex
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2933 echo "configure:2934: checking for $ac_word" >&5
2934 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936 else
2937 if test -n "$CONFIGURED_FLEX"; then
2938 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
2939 else
2940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2941 ac_dummy="$PATH"
2942 for ac_dir in $ac_dummy; do
2943 test -z "$ac_dir" && ac_dir=.
2944 if test -f $ac_dir/$ac_word; then
2945 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
2946 break
2948 done
2949 IFS="$ac_save_ifs"
2952 CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2953 if test -n "$CONFIGURED_FLEX"; then
2954 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2955 else
2956 echo "$ac_t""no" 1>&6
2959 test -n "$CONFIGURED_FLEX" && break
2960 done
2961 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
2963 for ac_prog in flex lex
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_word" >&5
2969 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971 else
2972 if test -n "$CONFIGURED_LEX"; then
2973 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
2974 else
2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2976 ac_dummy="$PATH"
2977 for ac_dir in $ac_dummy; do
2978 test -z "$ac_dir" && ac_dir=.
2979 if test -f $ac_dir/$ac_word; then
2980 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
2981 break
2983 done
2984 IFS="$ac_save_ifs"
2987 CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
2988 if test -n "$CONFIGURED_LEX"; then
2989 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2994 test -n "$CONFIGURED_LEX" && break
2995 done
2996 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
2998 for ac_prog in makeinfo
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_word" >&5
3004 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3006 else
3007 if test -n "$CONFIGURED_MAKEINFO"; then
3008 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
3009 else
3010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3011 ac_dummy="$PATH"
3012 for ac_dir in $ac_dummy; do
3013 test -z "$ac_dir" && ac_dir=.
3014 if test -f $ac_dir/$ac_word; then
3015 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
3016 break
3018 done
3019 IFS="$ac_save_ifs"
3022 CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
3023 if test -n "$CONFIGURED_MAKEINFO"; then
3024 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3025 else
3026 echo "$ac_t""no" 1>&6
3029 test -n "$CONFIGURED_MAKEINFO" && break
3030 done
3031 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
3034 # Create a .gdbinit file which runs the one in srcdir
3035 # and tells GDB to look there for source files.
3037 if test -r ${srcdir}/.gdbinit ; then
3038 case ${srcdir} in
3039 .) ;;
3040 *) cat > ./.gdbinit <<EOF
3041 # ${NO_EDIT}
3042 dir ${srcdir}
3043 dir .
3044 source ${srcdir}/.gdbinit
3047 esac
3050 # Make sure that the compiler is able to generate an executable. If it
3051 # can't, we are probably in trouble. We don't care whether we can run the
3052 # executable--we might be using a cross compiler--we only care whether it
3053 # can be created. At this point the main configure script has set CC.
3054 we_are_ok=no
3055 echo "int main () { return 0; }" > conftest.c
3056 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3057 if test $? = 0 ; then
3058 if test -s conftest || test -s conftest.exe ; then
3059 we_are_ok=yes
3062 case $we_are_ok in
3064 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3065 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3066 rm -f conftest*
3067 exit 1
3069 esac
3070 rm -f conftest*
3072 # The Solaris /usr/ucb/cc compiler does not appear to work.
3073 case "${host}" in
3074 sparc-sun-solaris2*)
3075 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3076 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3077 could_use=
3078 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3079 if test -d /opt/cygnus/bin ; then
3080 if test "$could_use" = "" ; then
3081 could_use="/opt/cygnus/bin"
3082 else
3083 could_use="$could_use or /opt/cygnus/bin"
3086 if test "$could_use" = "" ; then
3087 echo "Warning: compilation may fail because you're using"
3088 echo "/usr/ucb/cc. You should change your PATH or CC "
3089 echo "variable and rerun configure."
3090 else
3091 echo "Warning: compilation may fail because you're using"
3092 echo "/usr/ucb/cc, when you should use the C compiler from"
3093 echo "$could_use. You should change your"
3094 echo "PATH or CC variable and rerun configure."
3098 esac
3100 case "${host}" in
3101 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3102 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3103 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3104 esac
3106 # Record target_configdirs and the configure arguments for target and
3107 # build configuration in Makefile.
3108 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3109 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3111 # Determine whether gdb needs tk/tcl or not.
3112 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3113 # and in that case we want gdb to be built without tk. Ugh!
3114 # In fact I believe gdb is the *only* package directly dependent on tk,
3115 # so we should be able to put the 'maybe's in unconditionally and
3116 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3117 # 100% sure that that's safe though.
3119 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3120 case "$enable_gdbtk" in
3122 GDB_TK="" ;;
3123 yes)
3124 GDB_TK="${gdb_tk}" ;;
3126 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3127 # distro. Eventually someone will fix this and move Insight, nee
3128 # gdbtk to a separate directory.
3129 if test -d ${srcdir}/gdb/gdbtk ; then
3130 GDB_TK="${gdb_tk}"
3131 else
3132 GDB_TK=""
3135 esac
3136 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3137 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3139 # Strip out unwanted targets.
3141 # While at that, we remove Makefiles if we were started for recursive
3142 # configuration, so that the top-level Makefile reconfigures them,
3143 # like we used to do when configure itself was recursive.
3145 # Loop over modules. $extrasub must be used with care, limiting as
3146 # much as possible the usage of range addresses. That's because autoconf
3147 # splits the sed script to overcome limits in the number of commands,
3148 # and relying on carefully-timed sed passes may turn out to be very hard
3149 # to maintain later. In this particular case, you just have to be careful
3150 # not to nest @if/@endif pairs, because configure will not warn you at all.
3152 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3153 if test "${enable_bootstrap+set}" = set; then
3154 enableval="$enable_bootstrap"
3156 else
3157 enable_bootstrap=default
3161 # Issue errors and warnings for invalid/strange bootstrap combinations.
3162 case "$configdirs" in
3163 *gcc*) have_compiler=yes ;;
3164 *) have_compiler=no ;;
3165 esac
3167 case "$have_compiler:$host:$target:$enable_bootstrap" in
3168 *:*:*:no) ;;
3170 # Default behavior. (We'll) enable bootstrap if we have a compiler
3171 # and we are in a native configuration.
3172 yes:$build:$build:default)
3173 # This will become 'yes'
3174 enable_bootstrap=no ;;
3176 *:*:*:default)
3177 enable_bootstrap=no ;;
3179 # We have a compiler and we are in a native configuration, bootstrap is ok
3180 yes:$build:$build:yes | yes:$build:$build:lean)
3183 # Other configurations, but we have a compiler. Assume the user knows
3184 # what he's doing.
3185 yes:*:*:yes | yes:*:*:lean)
3186 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3189 # No compiler: if they passed --enable-bootstrap explicitly, fail
3190 no:*:*:yes | no:*:*:lean)
3191 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3193 # Fail if wrong command line
3195 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3197 esac
3199 # Adjust the toplevel makefile according to whether bootstrap was selected.
3200 case "$enable_bootstrap" in
3201 yes)
3202 bootstrap_lean='#'
3203 bootstrap_suffix=bootstrap ;;
3204 lean)
3205 bootstrap_lean=''
3206 bootstrap_suffix=bootstrap ;;
3208 bootstrap_suffix=no-bootstrap ;;
3209 esac
3212 for module in ${build_configdirs} ; do
3213 if test -z "${no_recursion}" \
3214 && test -f ${build_subdir}/${module}/Makefile; then
3215 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3216 rm -f ${build_subdir}/${module}/Makefile
3218 extrasub="$extrasub
3219 /^@if build-$module\$/d
3220 /^@endif build-$module\$/d
3221 /^@if build-$module-$bootstrap_suffix\$/d
3222 /^@endif build-$module-$bootstrap_suffix\$/d"
3223 done
3224 for module in ${configdirs} ; do
3225 if test -z "${no_recursion}" \
3226 && test -f ${module}/Makefile; then
3227 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3228 rm -f ${module}/Makefile
3230 extrasub="$extrasub
3231 /^@if $module\$/d
3232 /^@endif $module\$/d
3233 /^@if $module-$bootstrap_suffix\$/d
3234 /^@endif $module-$bootstrap_suffix\$/d"
3235 done
3236 for module in ${target_configdirs} ; do
3237 if test -z "${no_recursion}" \
3238 && test -f ${target_subdir}/${module}/Makefile; then
3239 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3240 rm -f ${target_subdir}/${module}/Makefile
3242 extrasub="$extrasub
3243 /^@if target-$module\$/d
3244 /^@endif target-$module\$/d
3245 /^@if target-$module-$bootstrap_suffix\$/d
3246 /^@endif target-$module-$bootstrap_suffix\$/d"
3247 done
3249 extrasub="$extrasub
3250 /^@if /,/^@endif /d"
3252 # Create the serialization dependencies. This uses a temporary file.
3254 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3255 if test "${enable_serial_configure+set}" = set; then
3256 enableval="$enable_serial_configure"
3261 case ${enable_serial_configure} in
3262 yes)
3263 enable_serial_build_configure=yes
3264 enable_serial_host_configure=yes
3265 enable_serial_target_configure=yes
3267 esac
3269 # These force 'configure's to be done one at a time, to avoid problems
3270 # with contention over a shared config.cache.
3271 rm -f serdep.tmp
3272 echo '# serdep.tmp' > serdep.tmp
3273 olditem=
3274 test "x${enable_serial_build_configure}" = xyes &&
3275 for item in ${build_configdirs} ; do
3276 case ${olditem} in
3277 "") ;;
3278 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3279 esac
3280 olditem=${item}
3281 done
3282 olditem=
3283 test "x${enable_serial_host_configure}" = xyes &&
3284 for item in ${configdirs} ; do
3285 case ${olditem} in
3286 "") ;;
3287 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3288 esac
3289 olditem=${item}
3290 done
3291 olditem=
3292 test "x${enable_serial_target_configure}" = xyes &&
3293 for item in ${target_configdirs} ; do
3294 case ${olditem} in
3295 "") ;;
3296 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3297 esac
3298 olditem=${item}
3299 done
3300 serialization_dependencies=serdep.tmp
3303 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3304 # target and nonopt. These are the ones we might not want to pass
3305 # down to subconfigures. Also strip program-prefix, program-suffix,
3306 # and program-transform-name, so that we can pass down a consistent
3307 # program-transform-name. If autoconf has put single quotes around
3308 # any of these arguments (because they contain shell metacharacters)
3309 # then this will fail; in practice this only happens for
3310 # --program-transform-name, so be sure to override --program-transform-name
3311 # at the end of the argument list.
3312 # These will be expanded by make, so quote '$'.
3313 cat <<\EOF_SED > conftestsed
3314 s/ --no[^ ]*/ /g
3315 s/ --c[a-z-]*[= ][^ ]*//g
3316 s/ --sr[a-z-]*[= ][^ ]*//g
3317 s/ --ho[a-z-]*[= ][^ ]*//g
3318 s/ --bu[a-z-]*[= ][^ ]*//g
3319 s/ --t[a-z-]*[= ][^ ]*//g
3320 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3321 s/ -cache-file[= ][^ ]*//g
3322 s/ -srcdir[= ][^ ]*//g
3323 s/ -host[= ][^ ]*//g
3324 s/ -build[= ][^ ]*//g
3325 s/ -target[= ][^ ]*//g
3326 s/ -program-prefix[= ][^ ]*//g
3327 s/ -program-suffix[= ][^ ]*//g
3328 s/ -program-transform-name[= ][^ ]*//g
3329 s/ [^' -][^ ]* / /
3330 s/^ *//;s/ *$//
3331 s,\$,$$,g
3332 EOF_SED
3333 sed -f conftestsed <<EOF_SED > conftestsed.out
3334 ${ac_configure_args}
3335 EOF_SED
3336 baseargs=`cat conftestsed.out`
3337 rm -f conftestsed conftestsed.out
3339 # Add in --program-transform-name, after --program-prefix and
3340 # --program-suffix have been applied to it. Autoconf has already
3341 # doubled dollar signs and backslashes in program_transform_name; we want
3342 # the backslashes un-doubled, and then the entire thing wrapped in single
3343 # quotes, because this will be expanded first by make and then by the shell.
3344 # Also, because we want to override the logic in subdir configure scripts to
3345 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3346 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3347 ${program_transform_name}
3348 EOF_SED
3349 gcc_transform_name=`cat conftestsed.out`
3350 rm -f conftestsed.out
3351 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3353 # For the build-side libraries, we just need to pretend we're native,
3354 # and not use the same cache file. Multilibs are neither needed nor
3355 # desired.
3356 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3358 # For host modules, accept cache file option, or specification as blank.
3359 case "${cache_file}" in
3360 "") # empty
3361 cache_file_option="" ;;
3362 /* | [A-Za-z]:[\\/]* ) # absolute path
3363 cache_file_option="--cache-file=${cache_file}" ;;
3364 *) # relative path
3365 cache_file_option="--cache-file=../${cache_file}" ;;
3366 esac
3368 # Host dirs don't like to share a cache file either, horribly enough.
3369 # This seems to be due to autoconf 2.5x stupidity.
3370 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3372 target_configargs=${baseargs}
3374 # Passing a --with-cross-host argument lets the target libraries know
3375 # whether they are being built with a cross-compiler or being built
3376 # native. However, it would be better to use other mechanisms to make the
3377 # sorts of decisions they want to make on this basis. Please consider
3378 # this option to be deprecated. FIXME.
3379 if test x${is_cross_compiler} = xyes ; then
3380 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3383 # Default to --enable-multilib.
3384 if test x${enable_multilib} = x ; then
3385 target_configargs="--enable-multilib ${target_configargs}"
3388 # Pass --with-newlib if appropriate. Note that target_configdirs has
3389 # changed from the earlier setting of with_newlib.
3390 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3391 target_configargs="--with-newlib ${target_configargs}"
3394 # Different target subdirs use different values of certain variables
3395 # (notably CXX). Worse, multilibs use *lots* of different values.
3396 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3397 # it doesn't automatically accept command-line overrides of them.
3398 # This means it's not safe for target subdirs to share a cache file,
3399 # which is disgusting, but there you have it. Hopefully this can be
3400 # fixed in future. It's still worthwhile to use a cache file for each
3401 # directory. I think.
3403 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3404 # We need to pass --target, as newer autoconf's requires consistency
3405 # for target_alias and gcc doesn't manage it consistently.
3406 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3408 FLAGS_FOR_TARGET=
3409 case " $target_configdirs " in
3410 *" newlib "*)
3411 case " $target_configargs " in
3412 *" --with-newlib "*)
3413 case "$target" in
3414 *-cygwin*)
3415 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' ;;
3416 esac
3418 # If we're not building GCC, don't discard standard headers.
3419 if test -d ${srcdir}/gcc; then
3420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3422 if test "${build}" != "${host}"; then
3423 # On Canadian crosses, CC_FOR_TARGET will have already been set
3424 # by `configure', so we won't have an opportunity to add -Bgcc/
3425 # to it. This is right: we don't want to search that directory
3426 # for binaries, but we want the header files in there, so add
3427 # them explicitly.
3428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3430 # Someone might think of using the pre-installed headers on
3431 # Canadian crosses, in case the installed compiler is not fully
3432 # compatible with the compiler being built. In this case, it
3433 # would be better to flag an error than risking having
3434 # incompatible object files being constructed. We can't
3435 # guarantee that an error will be flagged, but let's hope the
3436 # compiler will do it, when presented with incompatible header
3437 # files.
3441 case "${target}-${is_cross_compiler}" in
3442 i[3456789]86-*-linux*-no)
3443 # Here host == target, so we don't need to build gcc,
3444 # so we don't want to discard standard headers.
3445 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3448 # If we're building newlib, use its generic headers last, but search
3449 # for any libc-related directories first (so make it the last -B
3450 # switch).
3451 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3453 esac
3455 esac
3457 esac
3459 # Allow the user to override the flags for
3460 # our build compiler if desired.
3461 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3463 # On Canadian crosses, we'll be searching the right directories for
3464 # the previously-installed cross compiler, so don't bother to add
3465 # flags for directories within the install tree of the compiler
3466 # being built; programs in there won't even run.
3467 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3468 # Search for pre-installed headers if nothing else fits.
3469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3472 if test "x${use_gnu_ld}" = x &&
3473 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3474 # Arrange for us to find uninstalled linker scripts.
3475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3478 # Makefile fragments.
3479 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3481 eval fragval=\$$frag
3482 if test $fragval != /dev/null; then
3483 eval $frag=${srcdir}/$fragval
3485 done
3491 # Miscellanea: directories, flags, etc.
3501 # Build module lists & subconfigure args.
3505 # Host module lists & subconfigure args.
3509 # Target module lists & subconfigure args.
3513 # Build tools.
3517 # Host tools.
3518 ncn_tool_prefix=
3519 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3520 ncn_target_tool_prefix=
3521 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3523 for ncn_progname in ar; do
3524 if test -n "$ncn_tool_prefix"; then
3525 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3526 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_word" >&5
3529 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532 if test -n "$AR"; then
3533 ac_cv_prog_AR="$AR" # Let the user override the test.
3534 else
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3536 ac_dummy="$PATH"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3541 break
3543 done
3544 IFS="$ac_save_ifs"
3547 AR="$ac_cv_prog_AR"
3548 if test -n "$AR"; then
3549 echo "$ac_t""$AR" 1>&6
3550 else
3551 echo "$ac_t""no" 1>&6
3555 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3557 set dummy ${ncn_progname}; ac_word=$2
3558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3559 echo "configure:3560: checking for $ac_word" >&5
3560 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3562 else
3563 if test -n "$AR"; then
3564 ac_cv_prog_AR="$AR" # Let the user override the test.
3565 else
3566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3567 ac_dummy="$PATH"
3568 for ac_dir in $ac_dummy; do
3569 test -z "$ac_dir" && ac_dir=.
3570 if test -f $ac_dir/$ac_word; then
3571 ac_cv_prog_AR="${ncn_progname}"
3572 break
3574 done
3575 IFS="$ac_save_ifs"
3578 AR="$ac_cv_prog_AR"
3579 if test -n "$AR"; then
3580 echo "$ac_t""$AR" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3586 test -n "$ac_cv_prog_AR" && break
3587 done
3589 if test -z "$ac_cv_prog_AR" ; then
3590 set dummy ar
3591 if test $build = $host ; then
3592 AR="$2"
3593 else
3594 AR="${ncn_tool_prefix}$2"
3598 for ncn_progname in as; do
3599 if test -n "$ncn_tool_prefix"; then
3600 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3601 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3603 echo "configure:3604: checking for $ac_word" >&5
3604 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606 else
3607 if test -n "$AS"; then
3608 ac_cv_prog_AS="$AS" # Let the user override the test.
3609 else
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 ac_dummy="$PATH"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3616 break
3618 done
3619 IFS="$ac_save_ifs"
3622 AS="$ac_cv_prog_AS"
3623 if test -n "$AS"; then
3624 echo "$ac_t""$AS" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3630 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3632 set dummy ${ncn_progname}; ac_word=$2
3633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3634 echo "configure:3635: checking for $ac_word" >&5
3635 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 if test -n "$AS"; then
3639 ac_cv_prog_AS="$AS" # Let the user override the test.
3640 else
3641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3642 ac_dummy="$PATH"
3643 for ac_dir in $ac_dummy; do
3644 test -z "$ac_dir" && ac_dir=.
3645 if test -f $ac_dir/$ac_word; then
3646 ac_cv_prog_AS="${ncn_progname}"
3647 break
3649 done
3650 IFS="$ac_save_ifs"
3653 AS="$ac_cv_prog_AS"
3654 if test -n "$AS"; then
3655 echo "$ac_t""$AS" 1>&6
3656 else
3657 echo "$ac_t""no" 1>&6
3661 test -n "$ac_cv_prog_AS" && break
3662 done
3664 if test -z "$ac_cv_prog_AS" ; then
3665 set dummy as
3666 if test $build = $host ; then
3667 AS="$2"
3668 else
3669 AS="${ncn_tool_prefix}$2"
3673 for ncn_progname in dlltool; do
3674 if test -n "$ncn_tool_prefix"; then
3675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3678 echo "configure:3679: checking for $ac_word" >&5
3679 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3681 else
3682 if test -n "$DLLTOOL"; then
3683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3684 else
3685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3686 ac_dummy="$PATH"
3687 for ac_dir in $ac_dummy; do
3688 test -z "$ac_dir" && ac_dir=.
3689 if test -f $ac_dir/$ac_word; then
3690 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3691 break
3693 done
3694 IFS="$ac_save_ifs"
3697 DLLTOOL="$ac_cv_prog_DLLTOOL"
3698 if test -n "$DLLTOOL"; then
3699 echo "$ac_t""$DLLTOOL" 1>&6
3700 else
3701 echo "$ac_t""no" 1>&6
3705 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3707 set dummy ${ncn_progname}; 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_DLLTOOL'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 if test -n "$DLLTOOL"; then
3714 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ncn_progname}"
3722 break
3724 done
3725 IFS="$ac_save_ifs"
3728 DLLTOOL="$ac_cv_prog_DLLTOOL"
3729 if test -n "$DLLTOOL"; then
3730 echo "$ac_t""$DLLTOOL" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3736 test -n "$ac_cv_prog_DLLTOOL" && break
3737 done
3739 if test -z "$ac_cv_prog_DLLTOOL" ; then
3740 set dummy dlltool
3741 if test $build = $host ; then
3742 DLLTOOL="$2"
3743 else
3744 DLLTOOL="${ncn_tool_prefix}$2"
3748 for ncn_progname in ld; do
3749 if test -n "$ncn_tool_prefix"; then
3750 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_word" >&5
3754 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3756 else
3757 if test -n "$LD"; then
3758 ac_cv_prog_LD="$LD" # Let the user override the test.
3759 else
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3761 ac_dummy="$PATH"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3766 break
3768 done
3769 IFS="$ac_save_ifs"
3772 LD="$ac_cv_prog_LD"
3773 if test -n "$LD"; then
3774 echo "$ac_t""$LD" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3780 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3782 set dummy ${ncn_progname}; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 if test -n "$LD"; then
3789 ac_cv_prog_LD="$LD" # Let the user override the test.
3790 else
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3792 ac_dummy="$PATH"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_LD="${ncn_progname}"
3797 break
3799 done
3800 IFS="$ac_save_ifs"
3803 LD="$ac_cv_prog_LD"
3804 if test -n "$LD"; then
3805 echo "$ac_t""$LD" 1>&6
3806 else
3807 echo "$ac_t""no" 1>&6
3811 test -n "$ac_cv_prog_LD" && break
3812 done
3814 if test -z "$ac_cv_prog_LD" ; then
3815 set dummy ld
3816 if test $build = $host ; then
3817 LD="$2"
3818 else
3819 LD="${ncn_tool_prefix}$2"
3823 for ncn_progname in nm; do
3824 if test -n "$ncn_tool_prefix"; then
3825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3826 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3828 echo "configure:3829: checking for $ac_word" >&5
3829 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832 if test -n "$NM"; then
3833 ac_cv_prog_NM="$NM" # Let the user override the test.
3834 else
3835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3836 ac_dummy="$PATH"
3837 for ac_dir in $ac_dummy; do
3838 test -z "$ac_dir" && ac_dir=.
3839 if test -f $ac_dir/$ac_word; then
3840 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3841 break
3843 done
3844 IFS="$ac_save_ifs"
3847 NM="$ac_cv_prog_NM"
3848 if test -n "$NM"; then
3849 echo "$ac_t""$NM" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3855 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3857 set dummy ${ncn_progname}; ac_word=$2
3858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_word" >&5
3860 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 if test -n "$NM"; then
3864 ac_cv_prog_NM="$NM" # Let the user override the test.
3865 else
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 ac_dummy="$PATH"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_prog_NM="${ncn_progname}"
3872 break
3874 done
3875 IFS="$ac_save_ifs"
3878 NM="$ac_cv_prog_NM"
3879 if test -n "$NM"; then
3880 echo "$ac_t""$NM" 1>&6
3881 else
3882 echo "$ac_t""no" 1>&6
3886 test -n "$ac_cv_prog_NM" && break
3887 done
3889 if test -z "$ac_cv_prog_NM" ; then
3890 set dummy nm
3891 if test $build = $host ; then
3892 NM="$2"
3893 else
3894 NM="${ncn_tool_prefix}$2"
3898 for ncn_progname in ranlib; do
3899 if test -n "$ncn_tool_prefix"; then
3900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3903 echo "configure:3904: checking for $ac_word" >&5
3904 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3906 else
3907 if test -n "$RANLIB"; then
3908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3909 else
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3911 ac_dummy="$PATH"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3916 break
3918 done
3919 IFS="$ac_save_ifs"
3922 RANLIB="$ac_cv_prog_RANLIB"
3923 if test -n "$RANLIB"; then
3924 echo "$ac_t""$RANLIB" 1>&6
3925 else
3926 echo "$ac_t""no" 1>&6
3930 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 if test -n "$RANLIB"; then
3939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3940 else
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_RANLIB="${ncn_progname}"
3947 break
3949 done
3950 IFS="$ac_save_ifs"
3953 RANLIB="$ac_cv_prog_RANLIB"
3954 if test -n "$RANLIB"; then
3955 echo "$ac_t""$RANLIB" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3961 test -n "$ac_cv_prog_RANLIB" && break
3962 done
3964 if test -z "$ac_cv_prog_RANLIB" ; then
3965 RANLIB=":"
3968 for ncn_progname in windres; do
3969 if test -n "$ncn_tool_prefix"; then
3970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_word" >&5
3974 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976 else
3977 if test -n "$WINDRES"; then
3978 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3979 else
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3981 ac_dummy="$PATH"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/$ac_word; then
3985 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
3986 break
3988 done
3989 IFS="$ac_save_ifs"
3992 WINDRES="$ac_cv_prog_WINDRES"
3993 if test -n "$WINDRES"; then
3994 echo "$ac_t""$WINDRES" 1>&6
3995 else
3996 echo "$ac_t""no" 1>&6
4000 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4002 set dummy ${ncn_progname}; ac_word=$2
4003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_word" >&5
4005 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 if test -n "$WINDRES"; then
4009 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4010 else
4011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4012 ac_dummy="$PATH"
4013 for ac_dir in $ac_dummy; do
4014 test -z "$ac_dir" && ac_dir=.
4015 if test -f $ac_dir/$ac_word; then
4016 ac_cv_prog_WINDRES="${ncn_progname}"
4017 break
4019 done
4020 IFS="$ac_save_ifs"
4023 WINDRES="$ac_cv_prog_WINDRES"
4024 if test -n "$WINDRES"; then
4025 echo "$ac_t""$WINDRES" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4031 test -n "$ac_cv_prog_WINDRES" && break
4032 done
4034 if test -z "$ac_cv_prog_WINDRES" ; then
4035 set dummy windres
4036 if test $build = $host ; then
4037 WINDRES="$2"
4038 else
4039 WINDRES="${ncn_tool_prefix}$2"
4043 for ncn_progname in objcopy; do
4044 if test -n "$ncn_tool_prefix"; then
4045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4046 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_word" >&5
4049 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051 else
4052 if test -n "$OBJCOPY"; then
4053 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4054 else
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4056 ac_dummy="$PATH"
4057 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 if test -f $ac_dir/$ac_word; then
4060 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4061 break
4063 done
4064 IFS="$ac_save_ifs"
4067 OBJCOPY="$ac_cv_prog_OBJCOPY"
4068 if test -n "$OBJCOPY"; then
4069 echo "$ac_t""$OBJCOPY" 1>&6
4070 else
4071 echo "$ac_t""no" 1>&6
4075 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4077 set dummy ${ncn_progname}; ac_word=$2
4078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4079 echo "configure:4080: checking for $ac_word" >&5
4080 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4082 else
4083 if test -n "$OBJCOPY"; then
4084 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4085 else
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4087 ac_dummy="$PATH"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/$ac_word; then
4091 ac_cv_prog_OBJCOPY="${ncn_progname}"
4092 break
4094 done
4095 IFS="$ac_save_ifs"
4098 OBJCOPY="$ac_cv_prog_OBJCOPY"
4099 if test -n "$OBJCOPY"; then
4100 echo "$ac_t""$OBJCOPY" 1>&6
4101 else
4102 echo "$ac_t""no" 1>&6
4106 test -n "$ac_cv_prog_OBJCOPY" && break
4107 done
4109 if test -z "$ac_cv_prog_OBJCOPY" ; then
4110 set dummy objcopy
4111 if test $build = $host ; then
4112 OBJCOPY="$2"
4113 else
4114 OBJCOPY="${ncn_tool_prefix}$2"
4118 for ncn_progname in objdump; do
4119 if test -n "$ncn_tool_prefix"; then
4120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4121 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_word" >&5
4124 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4127 if test -n "$OBJDUMP"; then
4128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4129 else
4130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4131 ac_dummy="$PATH"
4132 for ac_dir in $ac_dummy; do
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f $ac_dir/$ac_word; then
4135 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4136 break
4138 done
4139 IFS="$ac_save_ifs"
4142 OBJDUMP="$ac_cv_prog_OBJDUMP"
4143 if test -n "$OBJDUMP"; then
4144 echo "$ac_t""$OBJDUMP" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4150 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4152 set dummy ${ncn_progname}; ac_word=$2
4153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4154 echo "configure:4155: checking for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4157 else
4158 if test -n "$OBJDUMP"; then
4159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4160 else
4161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4162 ac_dummy="$PATH"
4163 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f $ac_dir/$ac_word; then
4166 ac_cv_prog_OBJDUMP="${ncn_progname}"
4167 break
4169 done
4170 IFS="$ac_save_ifs"
4173 OBJDUMP="$ac_cv_prog_OBJDUMP"
4174 if test -n "$OBJDUMP"; then
4175 echo "$ac_t""$OBJDUMP" 1>&6
4176 else
4177 echo "$ac_t""no" 1>&6
4181 test -n "$ac_cv_prog_OBJDUMP" && break
4182 done
4184 if test -z "$ac_cv_prog_OBJDUMP" ; then
4185 set dummy objdump
4186 if test $build = $host ; then
4187 OBJDUMP="$2"
4188 else
4189 OBJDUMP="${ncn_tool_prefix}$2"
4199 # Target tools. Do the tests using the names they may have passed in
4200 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4201 for ncn_progname in ar; do
4202 if test -n "$ncn_target_tool_prefix"; then
4203 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4204 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_word" >&5
4207 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4209 else
4210 if test -n "$AR_FOR_TARGET"; then
4211 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4212 else
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4214 ac_dummy="$PATH"
4215 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/$ac_word; then
4218 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4219 break
4221 done
4222 IFS="$ac_save_ifs"
4225 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4226 if test -n "$AR_FOR_TARGET"; then
4227 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4228 else
4229 echo "$ac_t""no" 1>&6
4233 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4235 set dummy ${ncn_progname}; ac_word=$2
4236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4237 echo "configure:4238: checking for $ac_word" >&5
4238 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4241 if test -n "$AR_FOR_TARGET"; then
4242 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4243 else
4244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4245 ac_dummy="$PATH"
4246 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f $ac_dir/$ac_word; then
4249 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4250 break
4252 done
4253 IFS="$ac_save_ifs"
4256 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4257 if test -n "$AR_FOR_TARGET"; then
4258 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4264 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4265 done
4267 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4268 set dummy ar
4269 if test $build = $target ; then
4270 AR_FOR_TARGET="$2"
4271 else
4272 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4276 for ncn_progname in as; do
4277 if test -n "$ncn_target_tool_prefix"; then
4278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4281 echo "configure:4282: checking for $ac_word" >&5
4282 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4284 else
4285 if test -n "$AS_FOR_TARGET"; then
4286 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4287 else
4288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4289 ac_dummy="$PATH"
4290 for ac_dir in $ac_dummy; do
4291 test -z "$ac_dir" && ac_dir=.
4292 if test -f $ac_dir/$ac_word; then
4293 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4294 break
4296 done
4297 IFS="$ac_save_ifs"
4300 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4301 if test -n "$AS_FOR_TARGET"; then
4302 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4303 else
4304 echo "$ac_t""no" 1>&6
4308 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4310 set dummy ${ncn_progname}; ac_word=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4315 else
4316 if test -n "$AS_FOR_TARGET"; then
4317 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4318 else
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 ac_dummy="$PATH"
4321 for ac_dir in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4325 break
4327 done
4328 IFS="$ac_save_ifs"
4331 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4332 if test -n "$AS_FOR_TARGET"; then
4333 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4339 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4340 done
4342 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4343 set dummy as
4344 if test $build = $target ; then
4345 AS_FOR_TARGET="$2"
4346 else
4347 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4351 for ncn_progname in cc gcc; do
4352 if test -n "$ncn_target_tool_prefix"; then
4353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4354 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4356 echo "configure:4357: checking for $ac_word" >&5
4357 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359 else
4360 if test -n "$CC_FOR_TARGET"; then
4361 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4362 else
4363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4364 ac_dummy="$PATH"
4365 for ac_dir in $ac_dummy; do
4366 test -z "$ac_dir" && ac_dir=.
4367 if test -f $ac_dir/$ac_word; then
4368 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4369 break
4371 done
4372 IFS="$ac_save_ifs"
4375 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4376 if test -n "$CC_FOR_TARGET"; then
4377 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4383 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4385 set dummy ${ncn_progname}; ac_word=$2
4386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4387 echo "configure:4388: checking for $ac_word" >&5
4388 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4390 else
4391 if test -n "$CC_FOR_TARGET"; then
4392 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4393 else
4394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4395 ac_dummy="$PATH"
4396 for ac_dir in $ac_dummy; do
4397 test -z "$ac_dir" && ac_dir=.
4398 if test -f $ac_dir/$ac_word; then
4399 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4400 break
4402 done
4403 IFS="$ac_save_ifs"
4406 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4407 if test -n "$CC_FOR_TARGET"; then
4408 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4414 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4415 done
4417 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4418 set dummy cc gcc
4419 if test $build = $target ; then
4420 CC_FOR_TARGET="$2"
4421 else
4422 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4426 for ncn_progname in c++ g++ cxx gxx; do
4427 if test -n "$ncn_target_tool_prefix"; then
4428 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4429 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_word" >&5
4432 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 if test -n "$CXX_FOR_TARGET"; then
4436 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4437 else
4438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4439 ac_dummy="$PATH"
4440 for ac_dir in $ac_dummy; do
4441 test -z "$ac_dir" && ac_dir=.
4442 if test -f $ac_dir/$ac_word; then
4443 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4444 break
4446 done
4447 IFS="$ac_save_ifs"
4450 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4451 if test -n "$CXX_FOR_TARGET"; then
4452 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4453 else
4454 echo "$ac_t""no" 1>&6
4458 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4460 set dummy ${ncn_progname}; ac_word=$2
4461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_word" >&5
4463 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4465 else
4466 if test -n "$CXX_FOR_TARGET"; then
4467 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4468 else
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4470 ac_dummy="$PATH"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/$ac_word; then
4474 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4475 break
4477 done
4478 IFS="$ac_save_ifs"
4481 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4482 if test -n "$CXX_FOR_TARGET"; then
4483 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4489 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4490 done
4492 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4493 set dummy c++ g++ cxx gxx
4494 if test $build = $target ; then
4495 CXX_FOR_TARGET="$2"
4496 else
4497 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4501 for ncn_progname in dlltool; do
4502 if test -n "$ncn_target_tool_prefix"; then
4503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4504 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_word" >&5
4507 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 if test -n "$DLLTOOL_FOR_TARGET"; then
4511 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4512 else
4513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4514 ac_dummy="$PATH"
4515 for ac_dir in $ac_dummy; do
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f $ac_dir/$ac_word; then
4518 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4519 break
4521 done
4522 IFS="$ac_save_ifs"
4525 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4526 if test -n "$DLLTOOL_FOR_TARGET"; then
4527 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4528 else
4529 echo "$ac_t""no" 1>&6
4533 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4535 set dummy ${ncn_progname}; ac_word=$2
4536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_word" >&5
4538 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4540 else
4541 if test -n "$DLLTOOL_FOR_TARGET"; then
4542 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4543 else
4544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4545 ac_dummy="$PATH"
4546 for ac_dir in $ac_dummy; do
4547 test -z "$ac_dir" && ac_dir=.
4548 if test -f $ac_dir/$ac_word; then
4549 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4550 break
4552 done
4553 IFS="$ac_save_ifs"
4556 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4557 if test -n "$DLLTOOL_FOR_TARGET"; then
4558 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4559 else
4560 echo "$ac_t""no" 1>&6
4564 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4565 done
4567 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4568 set dummy dlltool
4569 if test $build = $target ; then
4570 DLLTOOL_FOR_TARGET="$2"
4571 else
4572 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4576 for ncn_progname in gcc; do
4577 if test -n "$ncn_target_tool_prefix"; then
4578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4581 echo "configure:4582: checking for $ac_word" >&5
4582 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4584 else
4585 if test -n "$GCC_FOR_TARGET"; then
4586 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4587 else
4588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4589 ac_dummy="$PATH"
4590 for ac_dir in $ac_dummy; do
4591 test -z "$ac_dir" && ac_dir=.
4592 if test -f $ac_dir/$ac_word; then
4593 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4594 break
4596 done
4597 IFS="$ac_save_ifs"
4600 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4601 if test -n "$GCC_FOR_TARGET"; then
4602 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4603 else
4604 echo "$ac_t""no" 1>&6
4608 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4610 set dummy ${ncn_progname}; ac_word=$2
4611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4612 echo "configure:4613: checking for $ac_word" >&5
4613 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616 if test -n "$GCC_FOR_TARGET"; then
4617 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4618 else
4619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4620 ac_dummy="$PATH"
4621 for ac_dir in $ac_dummy; do
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f $ac_dir/$ac_word; then
4624 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4625 break
4627 done
4628 IFS="$ac_save_ifs"
4631 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4632 if test -n "$GCC_FOR_TARGET"; then
4633 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4634 else
4635 echo "$ac_t""no" 1>&6
4639 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4640 done
4642 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4643 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4646 for ncn_progname in gcj; do
4647 if test -n "$ncn_target_tool_prefix"; then
4648 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4649 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4651 echo "configure:4652: checking for $ac_word" >&5
4652 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654 else
4655 if test -n "$GCJ_FOR_TARGET"; then
4656 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4657 else
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 ac_dummy="$PATH"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/$ac_word; then
4663 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4664 break
4666 done
4667 IFS="$ac_save_ifs"
4670 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4671 if test -n "$GCJ_FOR_TARGET"; then
4672 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4673 else
4674 echo "$ac_t""no" 1>&6
4678 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4680 set dummy ${ncn_progname}; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4685 else
4686 if test -n "$GCJ_FOR_TARGET"; then
4687 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4688 else
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4690 ac_dummy="$PATH"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4694 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4695 break
4697 done
4698 IFS="$ac_save_ifs"
4701 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4702 if test -n "$GCJ_FOR_TARGET"; then
4703 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4704 else
4705 echo "$ac_t""no" 1>&6
4709 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4710 done
4712 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4713 set dummy gcj
4714 if test $build = $target ; then
4715 GCJ_FOR_TARGET="$2"
4716 else
4717 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4721 for ncn_progname in gfortran; do
4722 if test -n "$ncn_target_tool_prefix"; then
4723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_word" >&5
4727 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4729 else
4730 if test -n "$GFORTRAN_FOR_TARGET"; then
4731 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4732 else
4733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4734 ac_dummy="$PATH"
4735 for ac_dir in $ac_dummy; do
4736 test -z "$ac_dir" && ac_dir=.
4737 if test -f $ac_dir/$ac_word; then
4738 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4739 break
4741 done
4742 IFS="$ac_save_ifs"
4745 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4746 if test -n "$GFORTRAN_FOR_TARGET"; then
4747 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4753 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4755 set dummy ${ncn_progname}; ac_word=$2
4756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_word" >&5
4758 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 if test -n "$GFORTRAN_FOR_TARGET"; then
4762 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4763 else
4764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4765 ac_dummy="$PATH"
4766 for ac_dir in $ac_dummy; do
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f $ac_dir/$ac_word; then
4769 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4770 break
4772 done
4773 IFS="$ac_save_ifs"
4776 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4777 if test -n "$GFORTRAN_FOR_TARGET"; then
4778 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4779 else
4780 echo "$ac_t""no" 1>&6
4784 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4785 done
4787 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4788 set dummy gfortran
4789 if test $build = $target ; then
4790 GFORTRAN_FOR_TARGET="$2"
4791 else
4792 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4796 for ncn_progname in ld; do
4797 if test -n "$ncn_target_tool_prefix"; then
4798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4799 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4801 echo "configure:4802: checking for $ac_word" >&5
4802 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805 if test -n "$LD_FOR_TARGET"; then
4806 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4807 else
4808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4809 ac_dummy="$PATH"
4810 for ac_dir in $ac_dummy; do
4811 test -z "$ac_dir" && ac_dir=.
4812 if test -f $ac_dir/$ac_word; then
4813 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4814 break
4816 done
4817 IFS="$ac_save_ifs"
4820 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4821 if test -n "$LD_FOR_TARGET"; then
4822 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4823 else
4824 echo "$ac_t""no" 1>&6
4828 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4830 set dummy ${ncn_progname}; ac_word=$2
4831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_word" >&5
4833 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4835 else
4836 if test -n "$LD_FOR_TARGET"; then
4837 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4838 else
4839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4840 ac_dummy="$PATH"
4841 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 if test -f $ac_dir/$ac_word; then
4844 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4845 break
4847 done
4848 IFS="$ac_save_ifs"
4851 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4852 if test -n "$LD_FOR_TARGET"; then
4853 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4854 else
4855 echo "$ac_t""no" 1>&6
4859 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4860 done
4862 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4863 set dummy ld
4864 if test $build = $target ; then
4865 LD_FOR_TARGET="$2"
4866 else
4867 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4871 for ncn_progname in lipo; do
4872 if test -n "$ncn_target_tool_prefix"; then
4873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4876 echo "configure:4877: checking for $ac_word" >&5
4877 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4879 else
4880 if test -n "$LIPO_FOR_TARGET"; then
4881 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4882 else
4883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4884 ac_dummy="$PATH"
4885 for ac_dir in $ac_dummy; do
4886 test -z "$ac_dir" && ac_dir=.
4887 if test -f $ac_dir/$ac_word; then
4888 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4889 break
4891 done
4892 IFS="$ac_save_ifs"
4895 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4896 if test -n "$LIPO_FOR_TARGET"; then
4897 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4898 else
4899 echo "$ac_t""no" 1>&6
4903 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4905 set dummy ${ncn_progname}; ac_word=$2
4906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_word" >&5
4908 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4910 else
4911 if test -n "$LIPO_FOR_TARGET"; then
4912 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4913 else
4914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4915 ac_dummy="$PATH"
4916 for ac_dir in $ac_dummy; do
4917 test -z "$ac_dir" && ac_dir=.
4918 if test -f $ac_dir/$ac_word; then
4919 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4920 break
4922 done
4923 IFS="$ac_save_ifs"
4926 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4927 if test -n "$LIPO_FOR_TARGET"; then
4928 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4934 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4935 done
4937 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4938 set dummy lipo
4939 if test $build = $target ; then
4940 LIPO_FOR_TARGET="$2"
4941 else
4942 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4946 for ncn_progname in nm; do
4947 if test -n "$ncn_target_tool_prefix"; then
4948 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4949 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951 echo "configure:4952: checking for $ac_word" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 if test -n "$NM_FOR_TARGET"; then
4956 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4957 else
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4964 break
4966 done
4967 IFS="$ac_save_ifs"
4970 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4971 if test -n "$NM_FOR_TARGET"; then
4972 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4978 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
4979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4980 set dummy ${ncn_progname}; ac_word=$2
4981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4982 echo "configure:4983: checking for $ac_word" >&5
4983 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4985 else
4986 if test -n "$NM_FOR_TARGET"; then
4987 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4988 else
4989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4990 ac_dummy="$PATH"
4991 for ac_dir in $ac_dummy; do
4992 test -z "$ac_dir" && ac_dir=.
4993 if test -f $ac_dir/$ac_word; then
4994 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
4995 break
4997 done
4998 IFS="$ac_save_ifs"
5001 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5002 if test -n "$NM_FOR_TARGET"; then
5003 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5009 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5010 done
5012 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5013 set dummy nm
5014 if test $build = $target ; then
5015 NM_FOR_TARGET="$2"
5016 else
5017 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5021 for ncn_progname in objdump; do
5022 if test -n "$ncn_target_tool_prefix"; then
5023 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5024 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5026 echo "configure:5027: checking for $ac_word" >&5
5027 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5029 else
5030 if test -n "$OBJDUMP_FOR_TARGET"; then
5031 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5032 else
5033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5034 ac_dummy="$PATH"
5035 for ac_dir in $ac_dummy; do
5036 test -z "$ac_dir" && ac_dir=.
5037 if test -f $ac_dir/$ac_word; then
5038 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5039 break
5041 done
5042 IFS="$ac_save_ifs"
5045 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5046 if test -n "$OBJDUMP_FOR_TARGET"; then
5047 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5048 else
5049 echo "$ac_t""no" 1>&6
5053 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5055 set dummy ${ncn_progname}; ac_word=$2
5056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5057 echo "configure:5058: checking for $ac_word" >&5
5058 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5060 else
5061 if test -n "$OBJDUMP_FOR_TARGET"; then
5062 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5063 else
5064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5065 ac_dummy="$PATH"
5066 for ac_dir in $ac_dummy; do
5067 test -z "$ac_dir" && ac_dir=.
5068 if test -f $ac_dir/$ac_word; then
5069 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5070 break
5072 done
5073 IFS="$ac_save_ifs"
5076 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5077 if test -n "$OBJDUMP_FOR_TARGET"; then
5078 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5084 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5085 done
5087 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5088 set dummy objdump
5089 if test $build = $target ; then
5090 OBJDUMP_FOR_TARGET="$2"
5091 else
5092 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5096 for ncn_progname in ranlib; do
5097 if test -n "$ncn_target_tool_prefix"; then
5098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5099 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5101 echo "configure:5102: checking for $ac_word" >&5
5102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105 if test -n "$RANLIB_FOR_TARGET"; then
5106 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_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_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5114 break
5116 done
5117 IFS="$ac_save_ifs"
5120 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5121 if test -n "$RANLIB_FOR_TARGET"; then
5122 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5123 else
5124 echo "$ac_t""no" 1>&6
5128 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5130 set dummy ${ncn_progname}; ac_word=$2
5131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5132 echo "configure:5133: checking for $ac_word" >&5
5133 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5135 else
5136 if test -n "$RANLIB_FOR_TARGET"; then
5137 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5138 else
5139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5140 ac_dummy="$PATH"
5141 for ac_dir in $ac_dummy; do
5142 test -z "$ac_dir" && ac_dir=.
5143 if test -f $ac_dir/$ac_word; then
5144 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5145 break
5147 done
5148 IFS="$ac_save_ifs"
5151 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5152 if test -n "$RANLIB_FOR_TARGET"; then
5153 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5159 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5160 done
5162 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5163 RANLIB_FOR_TARGET=":"
5166 for ncn_progname in strip; do
5167 if test -n "$ncn_target_tool_prefix"; then
5168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_word" >&5
5172 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5174 else
5175 if test -n "$STRIP_FOR_TARGET"; then
5176 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5177 else
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5179 ac_dummy="$PATH"
5180 for ac_dir in $ac_dummy; do
5181 test -z "$ac_dir" && ac_dir=.
5182 if test -f $ac_dir/$ac_word; then
5183 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5184 break
5186 done
5187 IFS="$ac_save_ifs"
5190 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5191 if test -n "$STRIP_FOR_TARGET"; then
5192 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5198 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5200 set dummy ${ncn_progname}; ac_word=$2
5201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_word" >&5
5203 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 if test -n "$STRIP_FOR_TARGET"; then
5207 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5208 else
5209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5210 ac_dummy="$PATH"
5211 for ac_dir in $ac_dummy; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f $ac_dir/$ac_word; then
5214 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5215 break
5217 done
5218 IFS="$ac_save_ifs"
5221 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5222 if test -n "$STRIP_FOR_TARGET"; then
5223 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5229 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5230 done
5232 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5233 set dummy strip
5234 if test $build = $target ; then
5235 STRIP_FOR_TARGET="$2"
5236 else
5237 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5241 for ncn_progname in windres; do
5242 if test -n "$ncn_target_tool_prefix"; then
5243 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5244 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5246 echo "configure:5247: checking for $ac_word" >&5
5247 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 if test -n "$WINDRES_FOR_TARGET"; then
5251 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5252 else
5253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5254 ac_dummy="$PATH"
5255 for ac_dir in $ac_dummy; do
5256 test -z "$ac_dir" && ac_dir=.
5257 if test -f $ac_dir/$ac_word; then
5258 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5259 break
5261 done
5262 IFS="$ac_save_ifs"
5265 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5266 if test -n "$WINDRES_FOR_TARGET"; then
5267 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5273 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5275 set dummy ${ncn_progname}; ac_word=$2
5276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_word" >&5
5278 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5280 else
5281 if test -n "$WINDRES_FOR_TARGET"; then
5282 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5283 else
5284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5285 ac_dummy="$PATH"
5286 for ac_dir in $ac_dummy; do
5287 test -z "$ac_dir" && ac_dir=.
5288 if test -f $ac_dir/$ac_word; then
5289 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5290 break
5292 done
5293 IFS="$ac_save_ifs"
5296 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5297 if test -n "$WINDRES_FOR_TARGET"; then
5298 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5299 else
5300 echo "$ac_t""no" 1>&6
5304 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5305 done
5307 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5308 set dummy windres
5309 if test $build = $target ; then
5310 WINDRES_FOR_TARGET="$2"
5311 else
5312 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5317 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5318 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5319 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5320 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5321 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5322 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5323 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5324 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5325 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5326 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5327 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5328 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5329 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5330 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5331 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5335 # Fix up target tools.
5336 if test "x${build}" = "x${host}" ; then
5337 # In this case, the newly built tools can and should be used,
5338 # so we override the results of the autoconf tests.
5339 # This should really only happen when the tools are actually being built,
5340 # but that's a further refinement. The new build scheme, where
5341 # tools are built into a structure paralleling where they're installed,
5342 # should also eliminate all of this cleanly.
5343 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
5344 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
5345 CC_FOR_TARGET="\$(USUAL_CC_FOR_TARGET)"
5346 CXX_FOR_TARGET="\$(USUAL_CXX_FOR_TARGET)"
5347 RAW_CXX_FOR_TARGET="\$(USUAL_RAW_CXX_FOR_TARGET)"
5348 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
5349 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
5350 GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)"
5351 GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)"
5352 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
5353 LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)"
5354 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
5355 OBJDUMP_FOR_TARGET="\$(USUAL_OBJDUMP_FOR_TARGET)"
5356 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
5357 STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)"
5358 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
5359 else
5360 # Just use the ones we found.
5361 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
5362 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
5363 CC_FOR_TARGET="\$(CONFIGURED_CC_FOR_TARGET)"
5364 CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5365 RAW_CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5366 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
5367 GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)"
5368 GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)"
5369 GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)"
5370 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
5371 LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)"
5372 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
5373 OBJDUMP_FOR_TARGET="\$(CONFIGURED_OBJDUMP_FOR_TARGET)"
5374 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
5375 STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)"
5376 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
5381 # Certain tools may need extra flags.
5382 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5383 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5384 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5386 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5387 echo "configure:5388: checking whether to enable maintainer-specific portions of Makefiles" >&5
5388 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5389 if test "${enable_maintainer_mode+set}" = set; then
5390 enableval="$enable_maintainer_mode"
5391 USE_MAINTAINER_MODE=$enableval
5392 else
5393 USE_MAINTAINER_MODE=no
5396 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5399 if test "$USE_MAINTAINER_MODE" = yes; then
5400 MAINTAINER_MODE_TRUE=
5401 MAINTAINER_MODE_FALSE='#'
5402 else
5403 MAINTAINER_MODE_TRUE='#'
5404 MAINTAINER_MODE_FALSE=
5406 MAINT=$MAINTAINER_MODE_TRUE
5408 # ---------------------
5409 # GCC bootstrap support
5410 # ---------------------
5412 # Stage specific cflags for build.
5413 stage1_cflags="-g"
5414 case $build in
5415 vax-*-*)
5416 case ${GCC} in
5417 yes) stage1_cflags="-g -Wa,-J" ;;
5418 *) stage1_cflags="-g -J" ;;
5419 esac ;;
5420 powerpc-*-darwin*)
5421 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5422 # sources; use -no-cpp-precomp to get to GNU cpp.
5423 # Apple's GCC has bugs in designated initializer handling, so disable
5424 # that too.
5425 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5427 esac
5430 # It makes debugging easier if we create as symlinks the stage directories
5431 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5432 # possible, however, we can resort to mv.
5433 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
5434 echo "configure:5435: checking if symbolic links between directories work" >&5
5435 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438 if test "${LN_S}" = "ln -s" \
5439 && mkdir confdir.s1 \
5440 && ln -s confdir.s1 confdir.s2 \
5441 && echo timestamp1 > confdir.s1/conftest.1 \
5442 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5443 && echo timestamp2 > confdir.s2/conftest.2 \
5444 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5445 && rm -f confdir.s2; then
5446 gcc_cv_prog_ln_s_dir=yes
5447 else
5448 gcc_cv_prog_ln_s_dir=no
5450 rm -rf confdir.s1 confdir.s2
5453 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5455 case ${gcc_cv_prog_ln_s_dir} in
5456 yes)
5457 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5458 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5460 CREATE_LINK_TO_DIR='mv $$1 $$2'
5461 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5462 esac
5466 # Enable -Werror in bootstrap stage2 and later.
5467 # Change the default to "no" on release branches.
5468 # Check whether --enable-werror or --disable-werror was given.
5469 if test "${enable_werror+set}" = set; then
5470 enableval="$enable_werror"
5472 else
5473 enable_werror=yes
5476 case ${enable_werror} in
5477 yes) stage2_werror_flag="--enable-werror-always" ;;
5478 *) stage2_werror_flag="" ;;
5479 esac
5482 trap '' 1 2 15
5483 cat > confcache <<\EOF
5484 # This file is a shell script that caches the results of configure
5485 # tests run on this system so they can be shared between configure
5486 # scripts and configure runs. It is not useful on other systems.
5487 # If it contains results you don't want to keep, you may remove or edit it.
5489 # By default, configure uses ./config.cache as the cache file,
5490 # creating it if it does not exist already. You can give configure
5491 # the --cache-file=FILE option to use a different cache file; that is
5492 # what configure does when it calls configure scripts in
5493 # subdirectories, so they share the cache.
5494 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5495 # config.status only pays attention to the cache file if you give it the
5496 # --recheck option to rerun configure.
5499 # The following way of writing the cache mishandles newlines in values,
5500 # but we know of no workaround that is simple, portable, and efficient.
5501 # So, don't put newlines in cache variables' values.
5502 # Ultrix sh set writes to stderr and can't be redirected directly,
5503 # and sets the high bit in the cache file unless we assign to the vars.
5504 (set) 2>&1 |
5505 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5506 *ac_space=\ *)
5507 # `set' does not quote correctly, so add quotes (double-quote substitution
5508 # turns \\\\ into \\, and sed turns \\ into \).
5509 sed -n \
5510 -e "s/'/'\\\\''/g" \
5511 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5514 # `set' quotes correctly as required by POSIX, so do not add quotes.
5515 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5517 esac >> confcache
5518 if cmp -s $cache_file confcache; then
5520 else
5521 if test -w $cache_file; then
5522 echo "updating cache $cache_file"
5523 cat confcache > $cache_file
5524 else
5525 echo "not updating unwritable cache $cache_file"
5528 rm -f confcache
5530 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5533 # Let make expand exec_prefix.
5534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5536 # Any assignment to VPATH causes Sun make to only execute
5537 # the first set of double-colon rules, so remove it if not needed.
5538 # If there is a colon in the path, we need to keep it.
5539 if test "x$srcdir" = x.; then
5540 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5543 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5545 # Transform confdefs.h into DEFS.
5546 # Protect against shell expansion while executing Makefile rules.
5547 # Protect against Makefile macro expansion.
5548 cat > conftest.defs <<\EOF
5549 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5550 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5551 s%\[%\\&%g
5552 s%\]%\\&%g
5553 s%\$%$$%g
5555 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5556 rm -f conftest.defs
5559 # Without the "./", some shells look in PATH for config.status.
5560 : ${CONFIG_STATUS=./config.status}
5562 echo creating $CONFIG_STATUS
5563 rm -f $CONFIG_STATUS
5564 cat > $CONFIG_STATUS <<EOF
5565 #! /bin/sh
5566 # Generated automatically by configure.
5567 # Run this file to recreate the current configuration.
5568 # This directory was configured as follows,
5569 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5571 # $0 $ac_configure_args
5573 # Compiler output produced by configure, useful for debugging
5574 # configure, is in ./config.log if it exists.
5576 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5577 for ac_option
5579 case "\$ac_option" in
5580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5581 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5582 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5583 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5584 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5585 exit 0 ;;
5586 -help | --help | --hel | --he | --h)
5587 echo "\$ac_cs_usage"; exit 0 ;;
5588 *) echo "\$ac_cs_usage"; exit 1 ;;
5589 esac
5590 done
5592 ac_given_srcdir=$srcdir
5593 ac_given_INSTALL="$INSTALL"
5595 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5597 cat >> $CONFIG_STATUS <<EOF
5599 # Protect against being on the right side of a sed subst in config.status.
5600 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5601 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5602 $ac_vpsub
5603 $extrasub
5604 s%@SHELL@%$SHELL%g
5605 s%@CFLAGS@%$CFLAGS%g
5606 s%@CPPFLAGS@%$CPPFLAGS%g
5607 s%@CXXFLAGS@%$CXXFLAGS%g
5608 s%@FFLAGS@%$FFLAGS%g
5609 s%@DEFS@%$DEFS%g
5610 s%@LDFLAGS@%$LDFLAGS%g
5611 s%@LIBS@%$LIBS%g
5612 s%@exec_prefix@%$exec_prefix%g
5613 s%@prefix@%$prefix%g
5614 s%@program_transform_name@%$program_transform_name%g
5615 s%@bindir@%$bindir%g
5616 s%@sbindir@%$sbindir%g
5617 s%@libexecdir@%$libexecdir%g
5618 s%@datadir@%$datadir%g
5619 s%@sysconfdir@%$sysconfdir%g
5620 s%@sharedstatedir@%$sharedstatedir%g
5621 s%@localstatedir@%$localstatedir%g
5622 s%@libdir@%$libdir%g
5623 s%@includedir@%$includedir%g
5624 s%@oldincludedir@%$oldincludedir%g
5625 s%@infodir@%$infodir%g
5626 s%@mandir@%$mandir%g
5627 s%@host@%$host%g
5628 s%@host_alias@%$host_alias%g
5629 s%@host_cpu@%$host_cpu%g
5630 s%@host_vendor@%$host_vendor%g
5631 s%@host_os@%$host_os%g
5632 s%@target@%$target%g
5633 s%@target_alias@%$target_alias%g
5634 s%@target_cpu@%$target_cpu%g
5635 s%@target_vendor@%$target_vendor%g
5636 s%@target_os@%$target_os%g
5637 s%@build@%$build%g
5638 s%@build_alias@%$build_alias%g
5639 s%@build_cpu@%$build_cpu%g
5640 s%@build_vendor@%$build_vendor%g
5641 s%@build_os@%$build_os%g
5642 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5643 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5644 s%@INSTALL_DATA@%$INSTALL_DATA%g
5645 s%@LN@%$LN%g
5646 s%@LN_S@%$LN_S%g
5647 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5648 s%@build_subdir@%$build_subdir%g
5649 s%@host_subdir@%$host_subdir%g
5650 s%@target_subdir@%$target_subdir%g
5651 s%@CC@%$CC%g
5652 s%@GNATBIND@%$GNATBIND%g
5653 s%@do_compare@%$do_compare%g
5654 s%@gmplibs@%$gmplibs%g
5655 s%@gmpinc@%$gmpinc%g
5656 s%@stage1_languages@%$stage1_languages%g
5657 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5658 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5659 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5660 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5661 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5662 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5663 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5664 s%@bootstrap_lean@%$bootstrap_lean%g
5665 /@serialization_dependencies@/r $serialization_dependencies
5666 s%@serialization_dependencies@%%g
5667 /@host_makefile_frag@/r $host_makefile_frag
5668 s%@host_makefile_frag@%%g
5669 /@target_makefile_frag@/r $target_makefile_frag
5670 s%@target_makefile_frag@%%g
5671 /@alphaieee_frag@/r $alphaieee_frag
5672 s%@alphaieee_frag@%%g
5673 /@ospace_frag@/r $ospace_frag
5674 s%@ospace_frag@%%g
5675 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5676 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5677 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5678 s%@tooldir@%$tooldir%g
5679 s%@build_tooldir@%$build_tooldir%g
5680 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
5681 s%@GDB_TK@%$GDB_TK%g
5682 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
5683 s%@build_configargs@%$build_configargs%g
5684 s%@build_configdirs@%$build_configdirs%g
5685 s%@host_configargs@%$host_configargs%g
5686 s%@configdirs@%$configdirs%g
5687 s%@target_configargs@%$target_configargs%g
5688 s%@target_configdirs@%$target_configdirs%g
5689 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5690 s%@config_shell@%$config_shell%g
5691 s%@AR@%$AR%g
5692 s%@AS@%$AS%g
5693 s%@DLLTOOL@%$DLLTOOL%g
5694 s%@LD@%$LD%g
5695 s%@NM@%$NM%g
5696 s%@RANLIB@%$RANLIB%g
5697 s%@WINDRES@%$WINDRES%g
5698 s%@OBJCOPY@%$OBJCOPY%g
5699 s%@OBJDUMP@%$OBJDUMP%g
5700 s%@CXX@%$CXX%g
5701 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5702 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5703 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5704 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5705 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5706 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5707 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5708 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5709 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5710 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5711 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5712 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5713 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5714 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5715 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5716 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5717 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5718 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5719 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5720 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5721 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5722 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5723 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5724 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5725 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5726 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5727 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5728 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5729 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5730 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5731 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5732 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5733 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5734 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5735 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5736 s%@MAINT@%$MAINT%g
5737 s%@stage1_cflags@%$stage1_cflags%g
5738 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5739 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5740 s%@stage2_werror_flag@%$stage2_werror_flag%g
5742 CEOF
5745 cat >> $CONFIG_STATUS <<\EOF
5747 # Split the substitutions into bite-sized pieces for seds with
5748 # small command number limits, like on Digital OSF/1 and HP-UX.
5749 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5750 ac_file=1 # Number of current file.
5751 ac_beg=1 # First line for current file.
5752 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5753 ac_more_lines=:
5754 ac_sed_cmds=""
5755 while $ac_more_lines; do
5756 if test $ac_beg -gt 1; then
5757 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5758 else
5759 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5761 if test ! -s conftest.s$ac_file; then
5762 ac_more_lines=false
5763 rm -f conftest.s$ac_file
5764 else
5765 if test -z "$ac_sed_cmds"; then
5766 ac_sed_cmds="sed -f conftest.s$ac_file"
5767 else
5768 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5770 ac_file=`expr $ac_file + 1`
5771 ac_beg=$ac_end
5772 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5774 done
5775 if test -z "$ac_sed_cmds"; then
5776 ac_sed_cmds=cat
5780 cat >> $CONFIG_STATUS <<EOF
5782 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5784 cat >> $CONFIG_STATUS <<\EOF
5785 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5787 case "$ac_file" in
5788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5790 *) ac_file_in="${ac_file}.in" ;;
5791 esac
5793 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5795 # Remove last slash and all that follows it. Not all systems have dirname.
5796 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5797 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5798 # The file is in a subdirectory.
5799 test ! -d "$ac_dir" && mkdir "$ac_dir"
5800 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5801 # A "../" for each directory in $ac_dir_suffix.
5802 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5803 else
5804 ac_dir_suffix= ac_dots=
5807 case "$ac_given_srcdir" in
5808 .) srcdir=.
5809 if test -z "$ac_dots"; then top_srcdir=.
5810 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5811 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5812 *) # Relative path.
5813 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5814 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5815 esac
5817 case "$ac_given_INSTALL" in
5818 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5819 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5820 esac
5822 echo creating "$ac_file"
5823 rm -f "$ac_file"
5824 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5825 case "$ac_file" in
5826 *Makefile*) ac_comsub="1i\\
5827 # $configure_input" ;;
5828 *) ac_comsub= ;;
5829 esac
5831 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5832 sed -e "$ac_comsub
5833 s%@configure_input@%$configure_input%g
5834 s%@srcdir@%$srcdir%g
5835 s%@top_srcdir@%$top_srcdir%g
5836 s%@INSTALL@%$INSTALL%g
5837 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5838 fi; done
5839 rm -f conftest.s*
5842 cat >> $CONFIG_STATUS <<EOF
5845 cat >> $CONFIG_STATUS <<\EOF
5847 exit 0
5849 chmod +x $CONFIG_STATUS
5850 rm -fr confdefs* $ac_clean_files
5851 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1