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