2004-08-17 Michael Chastain <mec.gnu@mindspring.com>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
252b5132 2
a0da8069
NN
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
4b1cb4fe
DD
14ac_help="$ac_help
15 --without-libbanshee Don't build with libbanshee"
a2592b1b
DD
16ac_help="$ac_help
17 --enable-libada Builds libada directory"
11b04d1f
DD
18ac_help="$ac_help
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
20ac_help="$ac_help
21 --with-mpfr=PATH Specify directory for installed MPFR library"
4b1cb4fe
DD
22ac_help="$ac_help
23 --with-gmp-dir=PATH Specify source directory for GMP library"
24ac_help="$ac_help
25 --with-gmp=PATH Specify directory for installed GMP library"
319cab08
PB
26ac_help="$ac_help
27 --enable-bootstrap Enable bootstrapping [no]"
e6bfb94a 28ac_help="$ac_help
1047cb91
DD
29 --enable-serial-[{host,target,build}-]configure
30 Force sequential configuration of
e6bfb94a 31 sub-packages for the host, target or build
1047cb91 32 machine, or all sub-packages"
3d5e36ae
AO
33ac_help="$ac_help
34 --enable-maintainer-mode enable make rules and dependencies not useful
35 (and sometimes confusing) to the casual installer"
1d39f329
NN
36ac_help="$ac_help
37 --enable-werror enable -Werror in bootstrap stage2 and later"
a0da8069
NN
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
55srcdir=
56target=NONE
57verbose=
58x_includes=NONE
59x_libraries=NONE
60bindir='${exec_prefix}/bin'
61sbindir='${exec_prefix}/sbin'
62libexecdir='${exec_prefix}/libexec'
63datadir='${prefix}/share'
64sysconfdir='${prefix}/etc'
65sharedstatedir='${prefix}/com'
66localstatedir='${prefix}/var'
67libdir='${exec_prefix}/lib'
68includedir='${prefix}/include'
69oldincludedir='/usr/include'
70infodir='${prefix}/info'
71mandir='${prefix}/man'
252b5132 72
a0da8069
NN
73# Initialize some other variables.
74subdirs=
75MFLAGS= MAKEFLAGS=
76SHELL=${CONFIG_SHELL-/bin/sh}
77# Maximum number of lines to put in a shell here document.
78ac_max_here_lines=12
252b5132 79
a0da8069
NN
80ac_prev=
81for ac_option
82do
252b5132 83
a0da8069
NN
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
89 fi
252b5132 90
a0da8069
NN
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
95
96 # Accept the important Cygnus configure options, so we can diagnose typos.
97
98 case "$ac_option" in
99
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
104
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
109
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
116
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
122
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
131
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 fi
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
144
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
153
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
157
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162Usage: configure [options] [host]
163Options: [defaults in brackets after descriptions]
164Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
194EOF
195 cat << EOF
196Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
207EOF
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
210 fi
211 exit 0 ;;
212
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
217
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
224
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
229
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
234
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
241
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
250
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
255
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
259
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
263
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
267
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
276
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
281
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
288
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
295
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
312
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
316
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
322
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
333
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
338
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
343
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
350
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
355
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
358
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
362
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 fi
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
375
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 fi
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
384
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
388
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
395
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
402
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 ;;
405
406 *)
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 fi
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 fi
413 nonopt="$ac_option"
414 ;;
415
416 esac
417done
418
419if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421fi
422
423trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424
425# File descriptor usage:
426# 0 standard input
427# 1 file creation
428# 2 errors and warnings
429# 3 some systems may open it to /dev/tty
430# 4 used on the Kubota Titan
431# 6 checking for... messages and results
432# 5 compiler messages saved in config.log
433if test "$silent" = yes; then
434 exec 6>/dev/null
435else
436 exec 6>&1
437fi
438exec 5>./config.log
439
440echo "\
441This file contains any messages produced by compilers while
442running configure, to aid debugging if configure makes a mistake.
443" 1>&5
444
445# Strip out --no-create and --no-recursion so they do not pile up.
446# Also quote any args containing shell metacharacters.
447ac_configure_args=
448for ac_arg
449do
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459done
460
461# NLS nuisances.
462# Only set these to C if already set. These must not be set unconditionally
463# because not all systems understand e.g. LANG=C (notably SCO).
464# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465# Non-C LC_CTYPE values break the ctype check.
466if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470
471# confdefs.h avoids OS command line length limits that DEFS can exceed.
472rm -rf conftest* confdefs.h
473# AIX cpp loses on an empty file, so make sure it contains at least a newline.
474echo > confdefs.h
475
476# A filename unique to this package, relative to the directory that
477# configure is in, which we can look for to find out if srcdir is correct.
478ac_unique_file=move-if-change
479
480# Find the source files, if location was not specified.
481if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
490 fi
491else
492 ac_srcdir_defaulted=no
493fi
494if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 fi
500fi
501srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502
503# Prefer explicitly selected file to automatically selected ones.
3e707e94
PB
504if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
509 fi
510fi
511for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
515 fi
516done
517
518if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521else
522 echo "creating cache $cache_file"
523 > $cache_file
524fi
525
526ac_ext=c
527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528ac_cpp='$CPP $CPPFLAGS'
529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531cross_compiling=$ac_cv_prog_cc_cross
532
533ac_exeext=
534ac_objext=o
535if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
542 fi
543else
544 ac_n= ac_c='\c' ac_t=
545fi
546
547
75778ec4 548
a0da8069
NN
549ac_aux_dir=
550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551 if test -f $ac_dir/install-sh; then
552 ac_aux_dir=$ac_dir
553 ac_install_sh="$ac_aux_dir/install-sh -c"
554 break
555 elif test -f $ac_dir/install.sh; then
556 ac_aux_dir=$ac_dir
557 ac_install_sh="$ac_aux_dir/install.sh -c"
558 break
559 fi
560done
561if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563fi
564ac_config_guess=$ac_aux_dir/config.guess
565ac_config_sub=$ac_aux_dir/config.sub
566ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567
568
569# Do some error checking and defaulting for the host and target type.
570# The inputs are:
571# configure --host=HOST --target=TARGET --build=BUILD NONOPT
252b5132 572#
a0da8069
NN
573# The rules are:
574# 1. You are not allowed to specify --host, --target, and nonopt at the
575# same time.
576# 2. Host defaults to nonopt.
577# 3. If nonopt is not specified, then host defaults to the current host,
578# as determined by config.guess.
579# 4. Target and build default to nonopt.
580# 5. If nonopt is not specified, then target and build default to host.
581
582# The aliases save the names the user supplied, while $host etc.
583# will get canonicalized.
584case $host---$target---$nonopt in
585NONE---*---* | *---NONE---* | *---*---NONE) ;;
586*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587esac
588
589
590# Make sure we can run config.sub.
591if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
592else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
593fi
594
595echo $ac_n "checking host system type""... $ac_c" 1>&6
11b04d1f 596echo "configure:597: checking host system type" >&5
a0da8069
NN
597
598host_alias=$host
599case "$host_alias" in
600NONE)
601 case $nonopt in
602 NONE)
603 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
604 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 fi ;;
606 *) host_alias=$nonopt ;;
607 esac ;;
608esac
609
610host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
611host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614echo "$ac_t""$host" 1>&6
615
616echo $ac_n "checking target system type""... $ac_c" 1>&6
11b04d1f 617echo "configure:618: checking target system type" >&5
a0da8069
NN
618
619target_alias=$target
620case "$target_alias" in
621NONE)
622 case $nonopt in
623 NONE) target_alias=$host_alias ;;
624 *) target_alias=$nonopt ;;
625 esac ;;
626esac
627
628target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
629target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632echo "$ac_t""$target" 1>&6
633
634echo $ac_n "checking build system type""... $ac_c" 1>&6
11b04d1f 635echo "configure:636: checking build system type" >&5
a0da8069
NN
636
637build_alias=$build
638case "$build_alias" in
639NONE)
640 case $nonopt in
641 NONE) build_alias=$host_alias ;;
642 *) build_alias=$nonopt ;;
643 esac ;;
644esac
645
646build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
647build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650echo "$ac_t""$build" 1>&6
651
652test "$host_alias" != "$target_alias" &&
653 test "$program_prefix$program_suffix$program_transform_name" = \
654 NONENONEs,x,x, &&
655 program_prefix=${target_alias}-
656
657if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
659else
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662s,\\,\\\\,g; s,\$,$$,g
663EOF_SED
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665 rm -f conftestsed
666fi
667test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669# Use a double $ so make ignores it.
670test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673# sed with no file args requires a program.
674test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676
e5c3f801
NN
677# Get 'install' or 'install-sh' and its variants.
678# Find a good install program. We prefer a C program (faster),
679# so one script is as good as another. But avoid the broken or
680# incompatible versions:
681# SysV /etc/install, /usr/sbin/install
682# SunOS /usr/etc/install
683# IRIX /sbin/install
684# AIX /bin/install
685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
688# ./install, which can be erroneously created by make from ./install.sh.
689echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
11b04d1f 690echo "configure:691: checking for a BSD compatible install" >&5
e5c3f801
NN
691if test -z "$INSTALL"; then
692if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694else
695 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
696 for ac_dir in $PATH; do
697 # Account for people who put trailing slashes in PATH elements.
698 case "$ac_dir/" in
699 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
700 *)
701 # OSF1 and SCO ODT 3.0 have their own names for install.
702 # Don't use installbsd from OSF since it installs stuff as root
703 # by default.
704 for ac_prog in ginstall scoinst install; do
705 if test -f $ac_dir/$ac_prog; then
706 if test $ac_prog = install &&
707 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
708 # AIX install. It has an incompatible calling convention.
709 :
710 else
711 ac_cv_path_install="$ac_dir/$ac_prog -c"
712 break 2
713 fi
714 fi
715 done
716 ;;
717 esac
718 done
719 IFS="$ac_save_IFS"
720
721fi
722 if test "${ac_cv_path_install+set}" = set; then
723 INSTALL="$ac_cv_path_install"
724 else
725 # As a last resort, use the slow shell script. We don't cache a
726 # path for INSTALL within a source directory, because that will
727 # break other packages using the cache if that directory is
728 # removed, or if the path is relative.
729 INSTALL="$ac_install_sh"
730 fi
731fi
732echo "$ac_t""$INSTALL" 1>&6
733
734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
735# It thinks the first close brace ends the variable substitution.
736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
737
738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
739
740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
741
656fdd47 742echo $ac_n "checking whether ln works""... $ac_c" 1>&6
11b04d1f 743echo "configure:744: checking whether ln works" >&5
656fdd47
PB
744if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 rm -f conftestdata_t
748echo >conftestdata_f
749if ln conftestdata_f conftestdata_t 2>/dev/null
750then
751 acx_cv_prog_LN=ln
752else
753 acx_cv_prog_LN=no
754fi
755rm -f conftestdata_f conftestdata_t
756
757fi
758if test $acx_cv_prog_LN = no; then
759 LN="cp"
760 echo "$ac_t""no, using $LN" 1>&6
761else
762 LN="$acx_cv_prog_LN"
763 echo "$ac_t""yes" 1>&6
764fi
765
dfdffa2c 766echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
11b04d1f 767echo "configure:768: checking whether ln -s works" >&5
dfdffa2c
PB
768if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770else
771 rm -f conftestdata
772if ln -s X conftestdata 2>/dev/null
773then
774 rm -f conftestdata
775 ac_cv_prog_LN_S="ln -s"
776else
777 ac_cv_prog_LN_S=ln
778fi
779fi
780LN_S="$ac_cv_prog_LN_S"
781if test "$ac_cv_prog_LN_S" = "ln -s"; then
782 echo "$ac_t""yes" 1>&6
783else
784 echo "$ac_t""no" 1>&6
785fi
786
e5c3f801 787
252b5132 788### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
789### If we are on Windows, search for the shell. This will permit people
790### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
791### without also having to set CONFIG_SHELL. This code will work when
792### using bash, which sets OSTYPE.
793case "${OSTYPE}" in
794*win32*)
a0da8069
NN
795 if test x${CONFIG_SHELL} = x ; then
796 if test ! -f /bin/sh ; then
797 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
798 CONFIG_SHELL=${SHELL}
799 export CONFIG_SHELL
800 else
801 for prog in sh sh.exe bash bash.exe; do
802 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
803 for dir in $PATH; do
804 test -z "$dir" && dir=.
805 if test -f $dir/$prog; then
806 CONFIG_SHELL=$dir/$prog
807 export CONFIG_SHELL
808 break
809 fi
810 done
811 IFS="$save_ifs"
812 test -n "${CONFIG_SHELL}" && break
813 done
814 fi
815 fi
816 fi
817 ;;
818esac
819
820config_shell=${CONFIG_SHELL-/bin/sh}
821
252b5132
RH
822progname=$0
823# if PWD already has a value, it is probably wrong.
a0da8069 824if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 825
d2cc0e0d 826# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
827# will be expanded by make, so quote '$'.
828tmp="$progname $@"
829sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
830$tmp
d2cc0e0d 831EOF_SED
8ff944f6
DJ
832TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
833rm -f conftestsed.out
586c0873 834
75205f78 835
a0da8069 836moveifchange=${srcdir}/move-if-change
252b5132 837
a0da8069
NN
838# Set srcdir to "." if that's what it is.
839# This is important for multilib support.
840pwd=`${PWDCMD-pwd}`
841srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
842if test "${pwd}" = "${srcpwd}" ; then
843 srcdir=.
252b5132
RH
844fi
845
a0da8069 846topsrcdir=$srcpwd
252b5132 847
a0da8069
NN
848extra_host_args=
849# Define the trigger file to make sure configure will re-run whenever
850# the gcc version number changes.
851if test "${with_gcc_version_trigger+set}" = set ; then
852 gcc_version_trigger="$with_gcc_version_trigger"
853 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
252b5132 854else
a0da8069
NN
855 # If gcc's sources are available, define the trigger file.
856 if test -f ${topsrcdir}/gcc/version.c ; then
857 gcc_version_trigger=${topsrcdir}/gcc/version.c
858 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
859 case "$ac_configure_args" in
860 *--with-gcc-version-trigger=$gcc_version_trigger* )
861 ;;
862 * )
863 # Add to all subconfigure arguments: build, host, and target.
e6bfb94a 864 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
a0da8069
NN
865 ;;
866 esac
867 fi
252b5132
RH
868fi
869
a0da8069
NN
870### To add a new directory to the tree, first choose whether it is a target
871### or a host dependent tool. Then put it into the appropriate list
872### (library or tools, host or target), doing a dependency sort.
252b5132 873
a0da8069
NN
874# Subdirs will be configured in the order listed in build_configdirs,
875# configdirs, or target_configdirs; see the serialization section below.
252b5132 876
a0da8069
NN
877# Dependency sorting is only needed when *configuration* must be done in
878# a particular order. In all cases a dependency should be specified in
879# the Makefile, whether or not it's implicitly specified here.
252b5132 880
a0da8069
NN
881# Double entries in build_configdirs, configdirs, or target_configdirs may
882# cause circular dependencies and break everything horribly.
252b5132 883
6a9cf61e
PB
884# these library is used by various programs built for the build
885# environment
886#
887build_libs="build-libiberty"
888
889# these tools are built for the build environment
890build_tools="build-texinfo build-byacc build-flex build-bison build-m4"
891
a0da8069
NN
892# these libraries are used by various programs built for the host environment
893#
675c6968 894host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libbanshee libcpp"
a0da8069 895
a0da8069
NN
896# these tools are built for the host environment
897# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
898# know that we are building the simulator.
899# binutils, gas and ld appear in that order because it makes sense to run
900# "make check" in that particular order.
91f0e695 901host_tools="texinfo byacc flex bison binutils gas ld 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"
a0da8069
NN
902
903# libgcj represents the runtime libraries only used by gcj.
904libgcj="target-libffi \
905 target-boehm-gc \
906 target-zlib \
907 target-qthreads \
908 target-libjava"
909
910# these libraries are built for the target environment, and are built after
911# the host libraries and the host tools (which may be a cross compiler)
912#
9c14acb8 913target_libraries="target-libiberty \
a0da8069
NN
914 target-libgloss \
915 target-newlib \
b9459e83 916 target-libstdc++-v3 \
4b1cb4fe 917 target-libmudflap \
4b1cb4fe 918 target-libgfortran \
83326456 919 ${libgcj} \
a2592b1b
DD
920 target-libobjc \
921 target-libada"
a0da8069 922
9c14acb8
NN
923# these tools are built using the target libraries, and are intended to
924# run only in the target environment
a0da8069 925#
9c14acb8 926# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
927# list belongs in this list. those programs are also very likely
928# candidates for the "native_only" list which follows
929#
a3dd767d 930target_tools="target-examples target-groff target-gperf target-rda"
252b5132 931
a0da8069 932################################################################################
252b5132 933
a0da8069
NN
934## All tools belong in one of the four categories, and are assigned above
935## We assign ${configdirs} this way to remove all embedded newlines. This
936## is important because configure will choke if they ever get through.
937## ${configdirs} is directories we build using the host tools.
938## ${target_configdirs} is directories we build using the target tools.
a0da8069 939configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 940target_configdirs=`echo ${target_libraries} ${target_tools}`
252b5132 941
dd12c3a8 942# Only make build modules if build != host.
dd12c3a8 943if test ${host_alias} != ${build_alias} ; then
6a9cf61e 944 build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8
NN
945fi
946
a0da8069 947################################################################################
252b5132 948
a0da8069 949srcname="gnu development package"
252b5132 950
a0da8069
NN
951# This gets set non-empty for some net releases of packages.
952appdirs=""
252b5132 953
a0da8069
NN
954# Define is_cross_compiler to save on calls to 'test'.
955is_cross_compiler=
956if test x"${host}" = x"${target}" ; then
957 is_cross_compiler=no
252b5132 958else
a0da8069
NN
959 is_cross_compiler=yes
960fi
252b5132 961
9175bfc0 962# Find the build and target subdir names.
dd12c3a8
NN
963 case ${build_alias} in
964 "") build_noncanonical=${build} ;;
965 *) build_noncanonical=${build_alias} ;;
966esac
967
968 case ${host_alias} in
969 "") host_noncanonical=${build_noncanonical} ;;
970 *) host_noncanonical=${host_alias} ;;
971esac
972
973 case ${target_alias} in
974 "") target_noncanonical=${host_noncanonical} ;;
975 *) target_noncanonical=${target_alias} ;;
976esac
977
978 # Prefix 'build-' so this never conflicts with target_subdir.
979build_subdir="build-${build_noncanonical}"
980# Not really a subdirectory, but here for completeness.
981host_subdir=.
982# No prefix.
983target_subdir=${target_noncanonical}
984
252b5132 985
a0da8069
NN
986# Skipdirs are removed silently.
987skipdirs=
988# Noconfigdirs are removed loudly.
989noconfigdirs=""
252b5132 990
a0da8069
NN
991use_gnu_ld=
992# Make sure we don't let GNU ld be added if we didn't want it.
993if test x$with_gnu_ld = xno ; then
994 use_gnu_ld=no
995 noconfigdirs="$noconfigdirs ld"
252b5132
RH
996fi
997
a0da8069
NN
998use_gnu_as=
999# Make sure we don't let GNU as be added if we didn't want it.
1000if test x$with_gnu_as = xno ; then
1001 use_gnu_as=no
1002 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1003fi
1004
a0da8069
NN
1005# some tools are so dependent upon X11 that if we're not building with X,
1006# it's not even worth trying to configure, much less build, that tool.
252b5132 1007
a0da8069
NN
1008case ${with_x} in
1009 yes | "") ;; # the default value for this tree is that X11 is available
1010 no)
675c6968 1011 skipdirs="${skipdirs} tk itcl libgui"
a0da8069
NN
1012 # We won't be able to build gdbtk without X.
1013 enable_gdbtk=no
1014 ;;
1015 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1016esac
252b5132 1017
a0da8069
NN
1018# Some tools are only suitable for building in a "native" situation.
1019# Remove these if host!=target.
91f0e695 1020native_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"
252b5132 1021
a0da8069
NN
1022# Similarly, some are only suitable for cross toolchains.
1023# Remove these if host=target.
1024cross_only="target-libgloss target-newlib target-opcodes"
1025
1026case $is_cross_compiler in
1027 no) skipdirs="${skipdirs} ${cross_only}" ;;
1028 yes) skipdirs="${skipdirs} ${native_only}" ;;
1029esac
252b5132 1030
a0da8069
NN
1031# If both --with-headers and --with-libs are specified, default to
1032# --without-newlib.
630fa213
GK
1033if test x"${with_headers}" != x && test x"${with_headers} != xno \
1034 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
a0da8069
NN
1035 if test x"${with_newlib}" = x ; then
1036 with_newlib=no
1037 fi
252b5132
RH
1038fi
1039
a0da8069
NN
1040# Recognize --with-newlib/--without-newlib.
1041case ${with_newlib} in
1042 no) skipdirs="${skipdirs} target-newlib" ;;
1043 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1044esac
252b5132 1045
a0da8069 1046# Configure extra directories which are host specific
252b5132 1047
a0da8069
NN
1048case "${host}" in
1049 *-cygwin*)
1050 configdirs="$configdirs libtermcap" ;;
1051esac
252b5132 1052
a0da8069
NN
1053# Remove more programs from consideration, based on the host or
1054# target this usually means that a port of the program doesn't
1055# exist yet.
252b5132 1056
a0da8069
NN
1057case "${host}" in
1058 hppa*64*-*-*)
1059 noconfigdirs="$noconfigdirs byacc"
1060 ;;
ec11bdc6 1061 i[3456789]86-*-vsta)
675c6968 1062 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1063 ;;
ec11bdc6 1064 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1065 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1066 ;;
ec11bdc6 1067 i[3456789]86-*-mingw32*)
675c6968 1068 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
a92834c8 1069 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
bba45b8b 1070 ;;
ec11bdc6 1071 i[3456789]86-*-beos*)
675c6968 1072 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1073 ;;
a0da8069 1074 *-*-cygwin*)
a92834c8 1075 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1076 ;;
1077 *-*-netbsd*)
a92834c8 1078 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1079 ;;
1080 ppc*-*-pe)
675c6968 1081 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1082 ;;
1083 powerpc-*-beos*)
675c6968 1084 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069
NN
1085 ;;
1086 *-*-darwin*)
675c6968 1087 noconfigdirs="$noconfigdirs tk itcl libgui"
a0da8069
NN
1088 ;;
1089esac
252b5132 1090
4b1cb4fe
DD
1091# Check whether --with-libbanshee or --without-libbanshee was given.
1092if test "${with_libbanshee+set}" = set; then
1093 withval="$with_libbanshee"
1094 :
1095fi
1096
1097case ${with_libbanshee} in
1098 no)
1099 noconfigdirs="$noconfigdirs libbanshee" ;;
1100 yes|"")
1101 with_libbanshee=yes
1102 ;;
1103 *)
1104 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; }
1105esac
1106
a2592b1b
DD
1107# Check whether --enable-libada or --disable-libada was given.
1108if test "${enable_libada+set}" = set; then
1109 enableval="$enable_libada"
1110 ENABLE_LIBADA=$enableval
1111else
1112 ENABLE_LIBADA=yes
1113fi
1114
a2592b1b
DD
1115if test "${ENABLE_LIBADA}" != "yes" ; then
1116 noconfigdirs="$noconfigdirs target-libada"
1117fi
1118
a0da8069
NN
1119# Save it here so that, even in case of --enable-libgcj, if the Java
1120# front-end isn't enabled, we still get libgcj disabled.
1121libgcj_saved=$libgcj
1122case $enable_libgcj in
1123yes)
1124 # If we reset it here, it won't get added to noconfigdirs in the
1125 # target-specific build rules, so it will be forcibly enabled
1126 # (unless the Java language itself isn't enabled).
1127 libgcj=
1128 ;;
1129no)
1130 # Make sure we get it printed in the list of not supported target libs.
1131 noconfigdirs="$noconfigdirs ${libgcj}"
1132 ;;
1133esac
252b5132 1134
4b1cb4fe
DD
1135
1136# Allow --disable-libmudflap to exclude target-libmudflap
1137case $enable_libmudflap in
3e707e94 1138yes)
4b1cb4fe
DD
1139 ;;
1140no)
1141 noconfigdirs="$noconfigdirs target-libmudflap"
1142 ;;
3e707e94
PB
1143"")
1144 case "${target}" in
3d6dfe0f
NN
1145 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1146 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1147 ;;
1148 *-*-freebsd*)
1149 # Enable libmudflap by default in FreeBSD.
1150 ;;
1151 *)
1152 # Disable it by default everywhere else.
1153 noconfigdirs="$noconfigdirs target-libmudflap"
1154 ;;
1155 esac
4b1cb4fe
DD
1156esac
1157
1158
a0da8069
NN
1159case "${target}" in
1160 *-*-chorusos)
1161 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1162 ;;
04d1ab34 1163 powerpc-*-darwin*)
b3f16a9b 1164 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
b2884a0c 1165 noconfigdirs="$noconfigdirs target-libobjc"
b3f16a9b 1166 ;;
04d1ab34
GK
1167 *-*-darwin*)
1168 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1169 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1170 ;;
a0da8069
NN
1171 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1172 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1173 ;;
4b1cb4fe
DD
1174 *-*-freebsd* | *-*-kfreebsd*-gnu)
1175 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1176 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1177 && test -f /usr/local/include/gmp.h; then
1178 with_gmp=/usr/local
1179 fi
1180
1181 # Skip some stuff that's unsupported on some FreeBSD configurations.
1182 case "${target}" in
1183 i*86-*-*) ;;
1184 alpha*-*-*) ;;
1185 *)
1186 noconfigdirs="$noconfigdirs ${libgcj}"
1187 ;;
1188 esac
1189 ;;
f8a495c8
NC
1190 *-*-kaos*)
1191 # Remove unsupported stuff on all kaOS configurations.
80b200a1 1192 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1193 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1194 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1195 noconfigdirs="$noconfigdirs target-libgloss"
1196 ;;
a0da8069
NN
1197 *-*-netbsd*)
1198 # Skip some stuff on all NetBSD configurations.
1199 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1200
1201 # Skip some stuff that's unsupported on some NetBSD configurations.
1202 case "${target}" in
1203 i*86-*-netbsdelf*) ;;
5b474aa8 1204 arm*-*-netbsdelf*) ;;
a0da8069
NN
1205 *)
1206 noconfigdirs="$noconfigdirs ${libgcj}"
1207 ;;
1208 esac
1209 ;;
1210 *-*-netware)
b9459e83 1211 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
a0da8069
NN
1212 ;;
1213 *-*-rtems*)
1214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 1215 ;;
c1968181
DD
1216 *-*-uclinux*)
1217 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1218 ;;
a0da8069 1219 *-*-vxworks*)
3a48a978 1220 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
a0da8069
NN
1221 ;;
1222 alpha*-dec-osf*)
1223 # ld works, but does not support shared libraries.
1224 # newlib is not 64 bit ready. I'm not sure about fileutils.
1225 # gas doesn't generate exception information.
1226 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1227 ;;
1228 alpha*-*-*vms*)
1229 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1230 ;;
1231 alpha*-*-linux*)
1232 # newlib is not 64 bit ready
1233 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1234 ;;
a0da8069
NN
1235 alpha*-*-*)
1236 # newlib is not 64 bit ready
1237 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1238 ;;
4a18bd6b
AO
1239 am33_2.0-*-linux*)
1240 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 ;;
a0da8069
NN
1242 sh-*-linux*)
1243 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 ;;
1245 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1246 noconfigdirs="$noconfigdirs ${libgcj}"
1247 noconfigdirs="$noconfigdirs target-examples"
1248 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 1249 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
1250 noconfigdirs="$noconfigdirs expect dejagnu"
1251 # the C++ libraries don't build on top of CE's C libraries
b9459e83 1252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
1253 noconfigdirs="$noconfigdirs target-newlib"
1254 case "${host}" in
1255 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 1256 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
1257 ;;
1258 esac
1259 ;;
1260 arc-*-*)
1261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 ;;
1263 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1264 noconfigdirs="$noconfigdirs ${libgcj}"
1265 ;;
11b04d1f 1266 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
1267 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1268 ;;
df4a6958
MM
1269 arm*-*-symbianelf*)
1270 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1271 ;;
a0da8069
NN
1272 arm-*-pe*)
1273 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1274 ;;
1275 arm-*-oabi*)
1276 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1277 ;;
1278 thumb-*-coff)
1279 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1280 ;;
1281 thumb-*-elf)
1282 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1283 ;;
1284 thumb-*-oabi)
1285 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1286 ;;
1287 thumb-*-pe)
1288 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1289 ;;
1290 arm-*-riscix*)
1291 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1292 ;;
1293 avr-*-*)
b9459e83 1294 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1295 ;;
1296 c4x-*-* | tic4x-*-*)
b9459e83 1297 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1298 ;;
1299 c54x*-*-* | tic54x-*-*)
b9459e83 1300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069
NN
1301 ;;
1302 cris-*-*)
b07c2aad 1303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
a0da8069 1304 ;;
3e707e94
PB
1305 crx-*-*)
1306 noconfigdirs="$noconfigdirs target-libgloss target-libstdc++-v3 target-mudflap ${libgcj}"
1307 ;;
a0da8069 1308 d10v-*-*)
b9459e83 1309 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1310 ;;
1311 d30v-*-*)
b07c2aad 1312 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1313 ;;
1314 fr30-*-elf*)
b07c2aad 1315 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
1316 ;;
1317 frv-*-*)
1318 noconfigdirs="$noconfigdirs ${libgcj}"
1319 ;;
1320 h8300*-*-*)
80b200a1 1321 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
1322 ;;
1323 h8500-*-*)
80b200a1 1324 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
1325 ;;
1326 hppa*64*-*-linux* | parisc*64*-*-linux*)
1327 # In this case, it's because the hppa64-linux target is for
1328 # the kernel only at this point and has no libc, and thus no
1329 # headers, crt*.o, etc., all of which are needed by these.
1330 noconfigdirs="$noconfigdirs target-zlib"
1331 ;;
1332 hppa*-*-*elf* | \
1333 parisc*-*-linux* | hppa*-*-linux* | \
1334 hppa*-*-lites* | \
1335 hppa*-*-openbsd* | \
1336 hppa*64*-*-*)
1337 noconfigdirs="$noconfigdirs ${libgcj}"
1338 # Do configure ld/binutils/gas for this case.
1339 ;;
1340 hppa*-*-*)
1341 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1342 # build on HP-UX 10.20.
1343 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1344 ;;
b07c2aad
HPN
1345 i960-*-*)
1346 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1347 ;;
a0da8069
NN
1348 ia64*-*-elf*)
1349 # No gdb support yet.
675c6968 1350 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
1351 ;;
1352 ia64*-**-hpux*)
1353 # No gdb or ld support yet.
675c6968 1354 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 1355 ;;
ec11bdc6 1356 i[3456789]86-*-coff | i[3456789]86-*-elf)
a0da8069
NN
1357 noconfigdirs="$noconfigdirs ${libgcj}"
1358 ;;
ec11bdc6 1359 i[3456789]86-*-linux*)
a0da8069
NN
1360 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1361 # not build java stuff by default.
1362 case "${target}" in
1363 *-*-*libc1*)
1364 noconfigdirs="$noconfigdirs ${libgcj}";;
1365 esac
1366
1367 # This section makes it possible to build newlib natively on linux.
1368 # If we are using a cross compiler then don't configure newlib.
1369 if test x${is_cross_compiler} != xno ; then
bba45b8b 1370 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
1371 fi
1372 noconfigdirs="$noconfigdirs target-libgloss"
1373 # If we are not using a cross compiler, do configure newlib.
1374 # Note however, that newlib will only be configured in this situation
1375 # if the --with-newlib option has been given, because otherwise
1376 # 'target-newlib' will appear in skipdirs.
1377 ;;
ec11bdc6 1378 i[3456789]86-*-mingw32*)
a0da8069
NN
1379 target_configdirs="$target_configdirs target-mingw"
1380 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1381
1382 # Can't build gdb for mingw32 if not native.
1383 case "${host}" in
ec11bdc6 1384 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
675c6968 1385 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
a0da8069
NN
1386 ;;
1387 esac
1388 ;;
1389 *-*-cygwin*)
1390 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1391 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 1392 # always build newlib if winsup directory is present.
929ba6e7 1393 if test -d "$srcdir/winsup"
b76d7de0
CV
1394 then
1395 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1396 else
1397 echo "Warning: winsup is missing so newlib can't be built."
1398 fi
a0da8069
NN
1399
1400 # Can't build gdb for Cygwin if not native.
1401 case "${host}" in
1402 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
675c6968 1403 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
a0da8069
NN
1404 ;;
1405 esac
1406 ;;
ec11bdc6 1407 i[3456789]86-*-pe)
b9459e83 1408 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 1409 ;;
ec11bdc6 1410 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
1411 # The linker does not yet know about weak symbols in COFF,
1412 # and is not configured to handle mixed ELF and COFF.
1413 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1414 ;;
ec11bdc6 1415 i[3456789]86-*-sco*)
a0da8069
NN
1416 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1417 ;;
ec11bdc6 1418 i[3456789]86-*-solaris2*)
a0da8069
NN
1419 noconfigdirs="$noconfigdirs target-libgloss"
1420 ;;
ec11bdc6 1421 i[3456789]86-*-sysv4*)
a0da8069
NN
1422 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1423 ;;
ec11bdc6 1424 i[3456789]86-*-beos*)
bba45b8b
NN
1425 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1426 ;;
b07c2aad 1427 m32r-*-*)
970f29af 1428 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 1429 ;;
a0da8069 1430 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
b9459e83 1431 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1432 ;;
1433 m68k-*-elf*)
1434 noconfigdirs="$noconfigdirs ${libgcj}"
1435 ;;
1436 m68k-*-coff*)
1437 noconfigdirs="$noconfigdirs ${libgcj}"
1438 ;;
1439 mcore-*-pe*)
1440 # The EPOC C++ environment does not support exceptions or rtti,
1441 # and so building libstdc++-v3 tends not to always work.
1442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1443 ;;
1444 mmix-*-*)
1445 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1446 ;;
1447 mn10200-*-*)
1448 noconfigdirs="$noconfigdirs ${libgcj}"
1449 ;;
1450 mn10300-*-*)
1451 noconfigdirs="$noconfigdirs ${libgcj}"
1452 ;;
1453 powerpc-*-aix*)
1454 # copied from rs6000-*-* entry
54752a6b 1455 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1456 ;;
1457 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1458 target_configdirs="$target_configdirs target-winsup"
675c6968 1459 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
1460 # always build newlib.
1461 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1462 ;;
1463 # This is temporary until we can link against shared libraries
1464 powerpcle-*-solaris*)
675c6968 1465 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
1466 ;;
1467 powerpc-*-beos*)
1468 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1469 ;;
a0da8069
NN
1470 powerpc-*-eabi)
1471 noconfigdirs="$noconfigdirs ${libgcj}"
1472 ;;
a0da8069
NN
1473 rs6000-*-lynxos*)
1474 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1475 ;;
1476 rs6000-*-aix*)
54752a6b 1477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1478 ;;
1479 rs6000-*-*)
1480 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1481 ;;
1482 m68k-apollo-*)
1483 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1484 ;;
1485 mips*-*-irix5*)
0f260896 1486 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1487 ;;
1488 mips*-*-irix6*)
a0da8069
NN
1489 # Linking libjava exceeds command-line length limits on at least
1490 # IRIX 6.2, but not on IRIX 6.5.
1491 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1492 # <oldham@codesourcery.com>
aa236487 1493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
1494 ;;
1495 mips*-dec-bsd*)
1496 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1497 ;;
1498 mips*-*-bsd*)
1499 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1500 ;;
1501 mipstx39-*-*)
1502 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
bba45b8b 1503 ;;
1712ab83
RS
1504 mips64*-*-linux*)
1505 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1506 ;;
a0da8069
NN
1507 mips*-*-linux*)
1508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1509 ;;
1510 mips*-*-*)
1511 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1512 ;;
1513 romp-*-*)
1514 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1515 ;;
1516 sh-*-*)
1517 case "${host}" in
ec11bdc6
DD
1518 i[3456789]86-*-vsta) ;; # don't add gprof back in
1519 i[3456789]86-*-go32*) ;; # don't add gprof back in
1520 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
1521 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1522 esac
1523 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1524 ;;
1525 sh64-*-*)
1526 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1527 ;;
1528 sparc-*-elf*)
1529 noconfigdirs="$noconfigdirs ${libgcj}"
1530 ;;
1531 sparc64-*-elf*)
1532 noconfigdirs="$noconfigdirs ${libgcj}"
1533 ;;
1534 sparclite-*-*)
1535 noconfigdirs="$noconfigdirs ${libgcj}"
1536 ;;
1537 sparc-*-sunos4*)
1538 noconfigdirs="$noconfigdirs ${libgcj}"
1539 if test x${is_cross_compiler} != xno ; then
1540 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1541 else
1542 use_gnu_ld=no
1543 fi
1544 ;;
1545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1546 ;;
1547 v810-*-*)
b9459e83 1548 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
1549 ;;
1550 v850-*-*)
1551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1552 ;;
1553 v850e-*-*)
1554 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1555 ;;
1556 v850ea-*-*)
1557 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1558 ;;
1559 vax-*-vms)
1560 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1561 ;;
1562 vax-*-*)
1563 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1564 ;;
fbd1054d
BW
1565 xtensa-*-*)
1566 noconfigdirs="$noconfigdirs ${libgcj}"
1567 ;;
a0da8069 1568 ip2k-*-*)
b9459e83 1569 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
1570 ;;
1571 *-*-linux*)
1572 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1573 ;;
1574 *-*-lynxos*)
1575 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1576 ;;
1577 *-*-*)
1578 noconfigdirs="$noconfigdirs ${libgcj}"
1579 ;;
1580esac
252b5132 1581
a0da8069
NN
1582# If we aren't building newlib, then don't build libgloss, since libgloss
1583# depends upon some newlib header files.
1584case "${noconfigdirs}" in
1585 *target-libgloss*) ;;
1586 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1587esac
1588
a0da8069
NN
1589# Work in distributions that contain no compiler tools, like Autoconf.
1590tentative_cc=""
1591host_makefile_frag=/dev/null
1592if test -d ${srcdir}/config ; then
1593case "${host}" in
1594 m68k-hp-hpux*)
1595 # Avoid "too much defining" errors from HPUX compiler.
1596 tentative_cc="cc -Wp,-H256000"
1597 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1598 # If it's HP/UX ar, this should be harmless.
1599 RANLIB="ar ts"
1600 ;;
1601 m68k-apollo-sysv*)
1602 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1603 ;;
1604 m68k-apollo-bsd*)
1605 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1606 # chokes on bfd, the compiler won't let you assign integers to enums, and
1607 # other problems. Defining CC to gcc is a questionable way to say "don't use
1608 # the apollo compiler" (the preferred version of GCC could be called cc,
1609 # or whatever), but I'm not sure leaving CC as cc is any better...
1610 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1611 # Used to have BISON=yacc.
1612 tentative_cc=gcc
1613 ;;
1614 m88k-dg-dgux*)
1615 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
1616 ;;
1617 m88k-harris-cxux*)
1618 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1619 tentative_cc="cc -Xa"
1620 host_makefile_frag="config/mh-cxux"
1621 ;;
1622 m88k-motorola-sysv*)
1623 ;;
1624 mips*-dec-ultrix*)
1625 tentative_cc="cc -Wf,-XNg1000"
1626 host_makefile_frag="config/mh-decstation"
1627 ;;
1628 mips*-nec-sysv4*)
1629 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1630 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1631 host_makefile_frag="config/mh-necv4"
1632 ;;
1633 mips*-sgi-irix4*)
1634 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1635 # environment. Also bump switch table size so that cp-parse will
1636 # compile. Bump string length limit so linker builds.
1637 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1638 ;;
1639 mips*-*-sysv4*)
1640 host_makefile_frag="config/mh-sysv4"
1641 ;;
1642 mips*-*-sysv*)
1643 # This is for a MIPS running RISC/os 4.52C.
1644
1645 # This is needed for GDB, but needs to be in the top-level make because
1646 # if a library is compiled with the bsd headers and gets linked with the
1647 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1648 # a different size).
1649 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1650 # known except to select the sysv environment. Could we use /proc instead?
1651 # These "sysv environments" and "bsd environments" often end up being a pain.
1652 #
1653 # This is not part of CFLAGS because perhaps not all C compilers have this
1654 # option.
1655 tentative_cc="cc -systype sysv"
1656 ;;
1657 i370-ibm-opened*)
1658 tentative_cc="c89"
1659 ;;
ec11bdc6 1660 i[3456789]86-*-sysv5*)
a0da8069
NN
1661 host_makefile_frag="config/mh-sysv5"
1662 ;;
ec11bdc6 1663 i[3456789]86-*-dgux*)
a0da8069
NN
1664 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1665 host_makefile_frag="config/mh-dgux386"
1666 ;;
ec11bdc6 1667 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
1668 # The MetaWare compiler will generate a copyright message unless you
1669 # turn it off by adding the -Hnocopyr flag.
1670 tentative_cc="cc -Hnocopyr"
1671 ;;
ec11bdc6 1672 i[3456789]86-ncr-sysv4*)
a0da8069
NN
1673 # for an NCR 3000 (i486/SVR4) system.
1674 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1675 # This compiler not only emits obnoxious copyright messages every time
1676 # you run it, but it chokes and dies on a whole bunch of GNU source
1677 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1678 tentative_cc="/usr/ccs/ATT/cc"
1679 host_makefile_frag="config/mh-ncr3000"
1680 ;;
ec11bdc6 1681 i[3456789]86-*-sco3.2v5*)
a0da8069 1682 ;;
ec11bdc6 1683 i[3456789]86-*-sco*)
a0da8069
NN
1684 # The native C compiler botches some simple uses of const. Unfortunately,
1685 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1686 tentative_cc="cc -Dconst="
1687 host_makefile_frag="config/mh-sco"
1688 ;;
ec11bdc6 1689 i[3456789]86-*-udk*)
a0da8069
NN
1690 host_makefile_frag="config/mh-sysv5"
1691 ;;
ec11bdc6 1692 i[3456789]86-*-solaris2*)
a0da8069
NN
1693 host_makefile_frag="config/mh-sysv4"
1694 ;;
ec11bdc6 1695 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
1696 host_makefile_frag="config/mh-djgpp"
1697 ;;
1698 *-cygwin*)
1699 host_makefile_frag="config/mh-cygwin"
1700 ;;
1701 *-mingw32*)
1702 host_makefile_frag="config/mh-mingw32"
1703 ;;
1704 *-interix*)
1705 host_makefile_frag="config/mh-interix"
1706 ;;
1707 vax-*-ultrix2*)
1708 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1709 tentative_cc=gcc
1710 ;;
1711 *-*-solaris2*)
1712 host_makefile_frag="config/mh-solaris"
1713 ;;
1714 m68k-sun-sunos*)
1715 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1716 # without overflowing the jump tables (-J says to use a 32 bit table)
1717 tentative_cc="cc -J"
1718 ;;
1719 *-hp-hpux*)
1720 tentative_cc="cc -Wp,-H256000"
1721 ;;
1722 *-*-hiux*)
1723 tentative_cc="cc -Wp,-H256000"
1724 ;;
1725 rs6000-*-lynxos*)
1726 # /bin/cc is less than useful for our purposes. Always use GCC
1727 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1728 host_makefile_frag="config/mh-lynxrs6k"
1729 ;;
1730 *-*-lynxos*)
1731 # /bin/cc is less than useful for our purposes. Always use GCC
1732 tentative_cc="/bin/gcc"
1733 ;;
1734 *-*-sysv4*)
1735 host_makefile_frag="config/mh-sysv4"
1736 ;;
1737esac
1738fi
1739
9e07f89d
NN
1740# If we aren't going to be using gcc, see if we can extract a definition
1741# of CC from the fragment.
1742# Actually, use the 'pre-extracted' version above.
1743if test -z "${CC}" && test "${build}" = "${host}" ; then
1744 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1745 found=
1746 for dir in $PATH; do
1747 test -z "$dir" && dir=.
1748 if test -f $dir/gcc; then
1749 found=yes
1750 break
1751 fi
1752 done
1753 IFS="$save_ifs"
1754 if test -z "${found}" && test -n "${tentative_cc}" ; then
1755 CC=$tentative_cc
1756 fi
1757fi
1758
1759if test "${build}" != "${host}" ; then
1760 # If we are doing a Canadian Cross, in which the host and build systems
1761 # are not the same, we set reasonable default values for the tools.
1762
9e07f89d
NN
1763 CC=${CC-${host_alias}-gcc}
1764 CFLAGS=${CFLAGS-"-g -O2"}
1765 CXX=${CXX-${host_alias}-c++}
1766 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1767 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1768 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1769 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1770 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1771 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
6a9cf61e 1772 BUILD_DIR_PREFIX=${build_subdir}
9e07f89d
NN
1773 BUILD_PREFIX=${build_alias}-
1774 BUILD_PREFIX_1=${build_alias}-
9e07f89d
NN
1775
1776else
1777 # Set reasonable default values for some tools even if not Canadian.
1778 # Of course, these are different reasonable default values, originally
1779 # specified directly in the Makefile.
1780 # We don't export, so that autoconf can do its job.
1781 # Note that all these settings are above the fragment inclusion point
1782 # in Makefile.in, so can still be overridden by fragments.
1783 # This is all going to change when we autoconfiscate...
1784
9e07f89d
NN
1785 CC_FOR_BUILD="\$(CC)"
1786 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
6a9cf61e 1787 BUILD_DIR_PREFIX=
9e07f89d
NN
1788 BUILD_PREFIX=
1789 BUILD_PREFIX_1=loser-
9e07f89d 1790
6a9cf61e 1791 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d
NN
1792set dummy gcc; ac_word=$2
1793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 1794echo "configure:1795: checking for $ac_word" >&5
9e07f89d
NN
1795if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797else
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1800else
1801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1802 ac_dummy="$PATH"
1803 for ac_dir in $ac_dummy; do
1804 test -z "$ac_dir" && ac_dir=.
1805 if test -f $ac_dir/$ac_word; then
1806 ac_cv_prog_CC="gcc"
1807 break
1808 fi
1809 done
1810 IFS="$ac_save_ifs"
1811fi
1812fi
1813CC="$ac_cv_prog_CC"
1814if test -n "$CC"; then
1815 echo "$ac_t""$CC" 1>&6
1816else
1817 echo "$ac_t""no" 1>&6
1818fi
1819
1820if test -z "$CC"; then
1821 # Extract the first word of "cc", so it can be a program name with args.
1822set dummy cc; ac_word=$2
1823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 1824echo "configure:1825: checking for $ac_word" >&5
9e07f89d
NN
1825if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 ac_prog_rejected=no
1833 ac_dummy="$PATH"
1834 for ac_dir in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f $ac_dir/$ac_word; then
1837 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1838 ac_prog_rejected=yes
1839 continue
1840 fi
1841 ac_cv_prog_CC="cc"
1842 break
1843 fi
1844 done
1845 IFS="$ac_save_ifs"
1846if test $ac_prog_rejected = yes; then
1847 # We found a bogon in the path, so make sure we never use it.
1848 set dummy $ac_cv_prog_CC
1849 shift
1850 if test $# -gt 0; then
1851 # We chose a different compiler from the bogus one.
1852 # However, it has the same basename, so the bogon will be chosen
1853 # first if we set CC to just the basename; use the full file name.
1854 shift
1855 set dummy "$ac_dir/$ac_word" "$@"
1856 shift
1857 ac_cv_prog_CC="$@"
1858 fi
1859fi
1860fi
1861fi
1862CC="$ac_cv_prog_CC"
1863if test -n "$CC"; then
1864 echo "$ac_t""$CC" 1>&6
1865else
1866 echo "$ac_t""no" 1>&6
1867fi
1868
1869 if test -z "$CC"; then
1870 case "`uname -s`" in
1871 *win32* | *WIN32*)
1872 # Extract the first word of "cl", so it can be a program name with args.
1873set dummy cl; ac_word=$2
1874echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 1875echo "configure:1876: checking for $ac_word" >&5
9e07f89d
NN
1876if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881else
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 ac_dummy="$PATH"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_prog_CC="cl"
1888 break
1889 fi
1890 done
1891 IFS="$ac_save_ifs"
1892fi
1893fi
1894CC="$ac_cv_prog_CC"
1895if test -n "$CC"; then
1896 echo "$ac_t""$CC" 1>&6
1897else
1898 echo "$ac_t""no" 1>&6
1899fi
1900 ;;
1901 esac
1902 fi
1903 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1904fi
1905
1906echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
11b04d1f 1907echo "configure:1908: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9e07f89d
NN
1908
1909ac_ext=c
1910# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1911ac_cpp='$CPP $CPPFLAGS'
1912ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1913ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1914cross_compiling=$ac_cv_prog_cc_cross
1915
1916cat > conftest.$ac_ext << EOF
1917
11b04d1f 1918#line 1919 "configure"
9e07f89d
NN
1919#include "confdefs.h"
1920
1921main(){return(0);}
1922EOF
11b04d1f 1923if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9e07f89d
NN
1924 ac_cv_prog_cc_works=yes
1925 # If we can't run a trivial program, we are probably using a cross compiler.
1926 if (./conftest; exit) 2>/dev/null; then
1927 ac_cv_prog_cc_cross=no
1928 else
1929 ac_cv_prog_cc_cross=yes
1930 fi
1931else
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1934 ac_cv_prog_cc_works=no
1935fi
1936rm -fr conftest*
1937ac_ext=c
1938# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1939ac_cpp='$CPP $CPPFLAGS'
1940ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1941ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1942cross_compiling=$ac_cv_prog_cc_cross
1943
1944echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1945if test $ac_cv_prog_cc_works = no; then
1946 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1947fi
1948echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
11b04d1f 1949echo "configure:1950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9e07f89d
NN
1950echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1951cross_compiling=$ac_cv_prog_cc_cross
1952
1953echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
11b04d1f 1954echo "configure:1955: checking whether we are using GNU C" >&5
9e07f89d
NN
1955if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1957else
1958 cat > conftest.c <<EOF
1959#ifdef __GNUC__
1960 yes;
1961#endif
1962EOF
11b04d1f 1963if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9e07f89d
NN
1964 ac_cv_prog_gcc=yes
1965else
1966 ac_cv_prog_gcc=no
1967fi
1968fi
1969
1970echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1971
1972if test $ac_cv_prog_gcc = yes; then
1973 GCC=yes
1974else
1975 GCC=
1976fi
1977
1978ac_test_CFLAGS="${CFLAGS+set}"
1979ac_save_CFLAGS="$CFLAGS"
1980CFLAGS=
1981echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
11b04d1f 1982echo "configure:1983: checking whether ${CC-cc} accepts -g" >&5
9e07f89d
NN
1983if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985else
1986 echo 'void f(){}' > conftest.c
1987if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1988 ac_cv_prog_cc_g=yes
1989else
1990 ac_cv_prog_cc_g=no
1991fi
1992rm -f conftest*
1993
1994fi
1995
1996echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1997if test "$ac_test_CFLAGS" = set; then
1998 CFLAGS="$ac_save_CFLAGS"
1999elif test $ac_cv_prog_cc_g = yes; then
2000 if test "$GCC" = yes; then
2001 CFLAGS="-g -O2"
2002 else
2003 CFLAGS="-g"
2004 fi
2005else
2006 if test "$GCC" = yes; then
2007 CFLAGS="-O2"
2008 else
2009 CFLAGS=
2010 fi
2011fi
2012
2013
6a9cf61e
PB
2014 # We must set the default linker to the linker used by gcc for the correct
2015 # operation of libtool. If LD is not defined and we are using gcc, try to
2016 # set the LD default to the ld used by gcc.
2017 if test -z "$LD"; then
2018 if test "$GCC" = yes; then
2019 case $build in
2020 *-*-mingw*)
2021 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2022 *)
2023 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2024 esac
2025 case $gcc_prog_ld in
2026 # Accept absolute paths.
2027 [\\/]* | [A-Za-z]:[\\/]*)
2028 LD="$gcc_prog_ld" ;;
2029 esac
2030 fi
2031 fi
2032
2033 CXX=${CXX-"c++"}
2034 CFLAGS=${CFLAGS-"-g"}
2035 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2036fi
2037
2038if test $host != $build; then
2039 ac_tool_prefix=${host_alias}-
2040else
2041 ac_tool_prefix=
2042fi
2043
2044
9e07f89d
NN
2045
2046# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2048echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2049echo "configure:2050: checking for $ac_word" >&5
9e07f89d
NN
2050if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052else
2053 if test -n "$GNATBIND"; then
2054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2055else
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2057 ac_dummy="$PATH"
2058 for ac_dir in $ac_dummy; do
2059 test -z "$ac_dir" && ac_dir=.
2060 if test -f $ac_dir/$ac_word; then
2061 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2062 break
2063 fi
2064 done
2065 IFS="$ac_save_ifs"
2066fi
2067fi
2068GNATBIND="$ac_cv_prog_GNATBIND"
2069if test -n "$GNATBIND"; then
2070 echo "$ac_t""$GNATBIND" 1>&6
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074
2075
2076if test -z "$ac_cv_prog_GNATBIND"; then
2077if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "gnatbind", so it can be a program name with args.
2079set dummy gnatbind; ac_word=$2
2080echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2081echo "configure:2082: checking for $ac_word" >&5
9e07f89d
NN
2082if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084else
2085 if test -n "$GNATBIND"; then
2086 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2087else
2088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2089 ac_dummy="$PATH"
2090 for ac_dir in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir=.
2092 if test -f $ac_dir/$ac_word; then
2093 ac_cv_prog_GNATBIND="gnatbind"
2094 break
2095 fi
2096 done
2097 IFS="$ac_save_ifs"
2098 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2099fi
2100fi
2101GNATBIND="$ac_cv_prog_GNATBIND"
2102if test -n "$GNATBIND"; then
2103 echo "$ac_t""$GNATBIND" 1>&6
2104else
2105 echo "$ac_t""no" 1>&6
2106fi
2107
2108else
2109 GNATBIND="no"
2110fi
2111fi
2112
2113echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
11b04d1f 2114echo "configure:2115: checking whether compiler driver understands Ada" >&5
9e07f89d
NN
2115if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2117else
2118 cat >conftest.adb <<EOF
2119procedure conftest is begin null; end conftest;
2120EOF
2121acx_cv_cc_gcc_supports_ada=no
2122# There is a bug in old released versions of GCC which causes the
2123# driver to exit successfully when the appropriate language module
2124# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2125# Therefore we must check for the error message as well as an
2126# unsuccessful exit.
b8908782
DD
2127# Other compilers, like HP Tru64 UNIX cc, exit successfully when
2128# given a .adb file, but produce no object file. So we must check
2129# if an object file was really produced to guard against this.
9e07f89d 2130errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 2131if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d
NN
2132 acx_cv_cc_gcc_supports_ada=yes
2133 break
2134fi
2135rm -f conftest.*
2136fi
2137
2138echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2139
b8908782 2140if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
2141 have_gnat=yes
2142else
2143 have_gnat=no
2144fi
2145
b8908782 2146echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
11b04d1f 2147echo "configure:2148: checking how to compare bootstrapped objects" >&5
b8908782
DD
2148if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150else
2151 echo abfoo >t1
2152 echo cdfoo >t2
2153 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
2154 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2155 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2156 :
2157 else
2158 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2159 fi
2160 fi
b8908782
DD
2161 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2162 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 2163 :
b8908782
DD
2164 else
2165 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2166 fi
2167 fi
2168 rm t1 t2
2169
2170fi
2171
2172echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2173do_compare="$gcc_cv_prog_cmp_skip"
2174
2175
9e07f89d 2176
11b04d1f 2177# Check for GMP and MPFR
4b1cb4fe
DD
2178gmplibs=
2179gmpinc=
2180have_gmp=yes
11b04d1f
DD
2181# Specify a location for mpfr
2182# check for this first so it ends up on the link line before gmp.
2183# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2184if test "${with_mpfr_dir+set}" = set; then
2185 withval="$with_mpfr_dir"
2186 :
2187fi
2188
2189
2190if test "x$with_mpfr_dir" != x; then
2191 gmpinc="-I$with_mpfr_dir/mpfr"
2192 gmplibs="$with_mpfr_dir/libmpfr.a"
2193else
2194 gmplibs="-lmpfr"
2195fi
2196
2197# Check whether --with-mpfr or --without-mpfr was given.
2198if test "${with_mpfr+set}" = set; then
2199 withval="$with_mpfr"
2200 :
2201fi
2202
2203
2204if test "x$with_mpfr" != x; then
2205 gmplibs="-L$with_mpfr/lib $gmplibs"
2206 gmpinc="-I$with_mpfr/include"
2207fi
2208
4b1cb4fe
DD
2209# Specify a location for gmp
2210# Check whether --with-gmp-dir or --without-gmp-dir was given.
2211if test "${with_gmp_dir+set}" = set; then
2212 withval="$with_gmp_dir"
2213 :
2214fi
2215
2216
11b04d1f
DD
2217if test "x$with_gmp_dir" != x; then
2218 gmpinc="$gmpinc -I$with_gmp_dir"
4b1cb4fe 2219 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
11b04d1f 2220 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
4b1cb4fe 2221 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
11b04d1f 2222 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
4b1cb4fe
DD
2223 fi
2224 # One of the later tests will catch the error if neither library is present.
11b04d1f
DD
2225else
2226 gmplibs="$gmplibs -lgmp"
4b1cb4fe
DD
2227fi
2228
2229# Check whether --with-gmp or --without-gmp was given.
2230if test "${with_gmp+set}" = set; then
2231 withval="$with_gmp"
2232 :
2233fi
2234
2235
11b04d1f
DD
2236if test "x$with_gmp" != x; then
2237 gmplibs="-L$with_gmp/lib $gmplibs"
2238 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe
DD
2239fi
2240
2241saved_CFLAGS="$CFLAGS"
2242CFLAGS="$CFLAGS $gmpinc"
2243# Check GMP actually works
2244echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
11b04d1f 2245echo "configure:2246: checking for correct version of gmp.h" >&5
4b1cb4fe 2246cat > conftest.$ac_ext <<EOF
11b04d1f 2247#line 2248 "configure"
4b1cb4fe
DD
2248#include "confdefs.h"
2249#include "gmp.h"
2250int main() {
2251
2252#if __GNU_MP_VERSION < 3
2253choke me
2254#endif
2255
2256; return 0; }
2257EOF
11b04d1f 2258if { (eval echo configure:2259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4b1cb4fe
DD
2259 rm -rf conftest*
2260 echo "$ac_t""yes" 1>&6
2261else
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 rm -rf conftest*
2265 echo "$ac_t""no" 1>&6; have_gmp=no
2266fi
2267rm -f conftest*
2268
2269if test x"$have_gmp" = xyes; then
11b04d1f
DD
2270 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2271echo "configure:2272: checking for MPFR" >&5
4b1cb4fe
DD
2272
2273 saved_LIBS="$LIBS"
2274 LIBS="$LIBS $gmplibs"
2275 cat > conftest.$ac_ext <<EOF
11b04d1f 2276#line 2277 "configure"
4b1cb4fe
DD
2277#include "confdefs.h"
2278#include <gmp.h>
11b04d1f 2279#include <mpfr.h>
4b1cb4fe 2280int main() {
11b04d1f 2281mpfr_t n; mpfr_init(n);
4b1cb4fe
DD
2282; return 0; }
2283EOF
11b04d1f 2284if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4b1cb4fe
DD
2285 rm -rf conftest*
2286 echo "$ac_t""yes" 1>&6
2287else
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 rm -rf conftest*
2291 echo "$ac_t""no" 1>&6; have_gmp=no
2292fi
2293rm -f conftest*
2294 LIBS="$saved_LIBS"
2295 CFLAGS="$saved_CFLAGS"
2296fi
2297
11b04d1f 2298# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
2299
2300
2301
947f426e 2302# By default, C is the only stage 1 language.
1d39f329
NN
2303stage1_languages=c
2304
2305
9e07f89d
NN
2306# Figure out what language subdirectories are present.
2307# Look if the user specified --enable-languages="..."; if not, use
2308# the environment variable $LANGUAGES if defined. $LANGUAGES might
2309# go away some day.
2310# NB: embedded tabs in this IF block -- do not untabify
2311if test -d ${srcdir}/gcc; then
2312 if test x"${enable_languages+set}" != xset; then
2313 if test x"${LANGUAGES+set}" = xset; then
2314 enable_languages="${LANGUAGES}"
2315 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2316 else
2317 enable_languages=all
2318 fi
2319 else
2320 if test x"${enable_languages}" = x ||
2321 test x"${enable_languages}" = xyes;
2322 then
2323 echo configure.in: --enable-languages needs at least one language argument 1>&2
2324 exit 1
2325 fi
2326 fi
2327 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2328
2329 # First scan to see if an enabled language requires some other language.
2330 # We assume that a given config-lang.in will list all the language
2331 # front ends it requires, even if some are required indirectly.
2332 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2333 case ${lang_frag} in
2334 ..) ;;
2335 # The odd quoting in the next line works around
2336 # an apparent bug in bash 1.12 on linux.
2337 ${srcdir}/gcc/[*]/config-lang.in) ;;
2338 *)
2339 # From the config-lang.in, get $language, $lang_requires
2340 language=
2341 lang_requires=
2342 . ${lang_frag}
2343 for other in ${lang_requires} ; do
2344 case ,${enable_languages}, in
2345 *,$other,*) ;;
2346 *,all,*) ;;
2347 *,$language,*)
2348 echo " \`$other' language required by \`$language'; enabling" 1>&2
2349 enable_languages="${enable_languages},${other}"
2350 ;;
2351 esac
2352 done
2353 ;;
2354 esac
2355 done
2356
2357 new_enable_languages=c
2358 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2359
2360 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2361 case ${lang_frag} in
2362 ..) ;;
2363 # The odd quoting in the next line works around
2364 # an apparent bug in bash 1.12 on linux.
2365 ${srcdir}/gcc/[*]/config-lang.in) ;;
2366 *)
2367 # From the config-lang.in, get $language, $target_libs,
1d39f329 2368 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
2369 language=
2370 target_libs=
2371 lang_dirs=
1d39f329 2372 boot_language=
9e07f89d 2373 build_by_default=
4b1cb4fe 2374 need_gmp=
9e07f89d
NN
2375 . ${lang_frag}
2376 # This is quite sensitive to the ordering of the case statement arms.
2377 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2378 *::*:*)
2379 echo "${lang_frag} doesn't set \$language." 1>&2
2380 exit 1
2381 ;;
2382 *:ada:no:*)
2383 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2384 add_this_lang=no
2385 ;;
2386 *,${language},*:*:*:*)
2387 # Language was explicitly selected; include it.
2388 add_this_lang=yes
2389 ;;
2390 *,all,*:*:*:no)
2391 # 'all' was selected, but this is not a default language
2392 # so do not include it.
2393 add_this_lang=no
2394 ;;
2395 *,all,*:*:*:*)
2396 # 'all' was selected and this is a default language; include it.
2397 add_this_lang=yes
2398 ;;
2399 *)
2400 add_this_lang=no
2401 ;;
2402 esac
4b1cb4fe
DD
2403
2404 # Disable language that need GMP if it isn't available.
2405 if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then
2406 add_this_lang=no
2407 fi
2408
2409 case $add_this_lang in
9e07f89d
NN
2410 no)
2411 # Remove language-dependent dirs.
1d39f329
NN
2412 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2413 ;;
9e07f89d
NN
2414 *)
2415 new_enable_languages="$new_enable_languages,$language"
1d39f329
NN
2416 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2417 case ${boot_language} in
2418 yes)
4fa63067
NN
2419 # Add to (comma-separated) list of stage 1 languages.
2420 stage1_languages="${stage1_languages},${language}"
1d39f329
NN
2421 ;;
2422 esac
2423 ;;
9e07f89d
NN
2424 esac
2425 ;;
2426 esac
2427 done
2428
4b0ac75d 2429 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9e07f89d
NN
2430 if test "x$missing_languages" != x; then
2431 { echo "configure: error:
2432The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2433 fi
2434
2435 if test "x$new_enable_languages" != "x$enable_languages"; then
2436 echo The following languages will be built: ${new_enable_languages}
2437 fi
2438 enable_languages="$new_enable_languages"
2e70b094 2439 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
2440fi
2441
2442# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2443# $target_configdirs.
2444# If we have the source for $noconfigdirs entries, add them to $notsupp.
2445
2446notsupp=""
2447for dir in . $skipdirs $noconfigdirs ; do
2448 dirname=`echo $dir | sed -e s/target-//g`
2449 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2450 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2451 if test -r $srcdir/$dirname/configure ; then
2452 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2453 true
2454 else
2455 notsupp="$notsupp $dir"
2456 fi
2457 fi
2458 fi
2459 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2460 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2461 if test -r $srcdir/$dirname/configure ; then
2462 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2463 true
2464 else
2465 notsupp="$notsupp $dir"
2466 fi
2467 fi
2468 fi
2469done
2470
2471# Sometimes the tools are distributed with libiberty but with no other
2472# libraries. In that case, we don't want to build target-libiberty.
2473if test -n "${target_configdirs}" ; then
2474 others=
2475 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2476 if test "$i" != "libiberty" ; then
2477 if test -r $srcdir/$i/configure ; then
2478 others=yes;
2479 break;
2480 fi
2481 fi
2482 done
2483 if test -z "${others}" ; then
2484 target_configdirs=
2485 fi
2486fi
2487
2488# Quietly strip out all directories which aren't configurable in this tree.
2489# This relies on all configurable subdirectories being autoconfiscated, which
2490# is now the case.
6a9cf61e
PB
2491build_configdirs_all="$build_configdirs"
2492build_configdirs=
2493for i in ${build_configdirs_all} ; do
2494 j=`echo $i | sed -e s/build-//g`
2495 if test -f ${srcdir}/$j/configure ; then
2496 build_configdirs="${build_configdirs} $i"
2497 fi
2498done
2499
9e07f89d
NN
2500configdirs_all="$configdirs"
2501configdirs=
2502for i in ${configdirs_all} ; do
2503 if test -f ${srcdir}/$i/configure ; then
2504 configdirs="${configdirs} $i"
2505 fi
2506done
6a9cf61e 2507
9e07f89d
NN
2508target_configdirs_all="$target_configdirs"
2509target_configdirs=
2510for i in ${target_configdirs_all} ; do
2511 j=`echo $i | sed -e s/target-//g`
2512 if test -f ${srcdir}/$j/configure ; then
2513 target_configdirs="${target_configdirs} $i"
2514 fi
2515done
2516
2517# Produce a warning message for the subdirs we can't configure.
2518# This isn't especially interesting in the Cygnus tree, but in the individual
2519# FSF releases, it's important to let people know when their machine isn't
2520# supported by the one or two programs in a package.
2521
2522if test -n "${notsupp}" && test -z "${norecursion}" ; then
2523 # If $appdirs is non-empty, at least one of those directories must still
2524 # be configured, or we error out. (E.g., if the gas release supports a
2525 # specified target in some subdirs but not the gas subdir, we shouldn't
2526 # pretend that all is well.)
2527 if test -n "$appdirs" ; then
2528 for dir in $appdirs ; do
2529 if test -r $dir/Makefile.in ; then
2530 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2531 appdirs=""
2532 break
2533 fi
6a9cf61e 2534 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
2535 appdirs=""
2536 break
2537 fi
2538 fi
2539 done
2540 if test -n "$appdirs" ; then
2541 echo "*** This configuration is not supported by this package." 1>&2
2542 exit 1
2543 fi
2544 fi
2545 # Okay, some application will build, or we don't care to check. Still
2546 # notify of subdirs not getting built.
2547 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2548 echo " ${notsupp}" 1>&2
2549 echo " (Any other directories should still work fine.)" 1>&2
2550fi
2551
2552case "$host" in
2553 *msdosdjgpp*)
2554 enable_gdbtk=no ;;
2555esac
2556
2557copy_dirs=
2558
2559# Handle --with-headers=XXX. If the value is not "yes", the contents of
2560# the named directory are copied to $(tooldir)/sys-include.
2561if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2562 if test x${is_cross_compiler} = xno ; then
2563 echo 1>&2 '***' --with-headers is only supported when cross compiling
2564 exit 1
2565 fi
2566 if test x"${with_headers}" != xyes ; then
2567 case "${exec_prefixoption}" in
2568 "") x=${prefix} ;;
2569 *) x=${exec_prefix} ;;
2570 esac
2571 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2572 fi
2573fi
2574
2575# Handle --with-libs=XXX. If the value is not "yes", the contents of
2576# the name directories are copied to $(tooldir)/lib. Multiple directories
2577# are permitted.
2578if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2579 if test x${is_cross_compiler} = xno ; then
2580 echo 1>&2 '***' --with-libs is only supported when cross compiling
2581 exit 1
2582 fi
2583 if test x"${with_libs}" != xyes ; then
2584 # Copy the libraries in reverse order, so that files in the first named
2585 # library override files in subsequent libraries.
2586 case "${exec_prefixoption}" in
2587 "") x=${prefix} ;;
2588 *) x=${exec_prefix} ;;
2589 esac
2590 for l in ${with_libs}; do
2591 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2592 done
2593 fi
2594fi
2595
2596# Handle ${copy_dirs}
2597set fnord ${copy_dirs}
2598shift
2599while test $# != 0 ; do
2600 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2601 :
2602 else
2603 echo Copying $1 to $2
2604
2605 # Use the install script to create the directory and all required
2606 # parent directories.
2607 if test -d $2 ; then
2608 :
2609 else
2610 echo >config.temp
2611 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2612 fi
2613
2614 # Copy the directory, assuming we have tar.
2615 # FIXME: Should we use B in the second tar? Not all systems support it.
2616 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2617
2618 # It is the responsibility of the user to correctly adjust all
2619 # symlinks. If somebody can figure out how to handle them correctly
2620 # here, feel free to add the code.
2621
2622 echo $1 > $2/COPIED
2623 fi
2624 shift; shift
2625done
2626
a0da8069
NN
2627extra_arflags_for_target=
2628extra_nmflags_for_target=
2629extra_ranlibflags_for_target=
2630target_makefile_frag=/dev/null
2631case "${target}" in
ec11bdc6 2632 i[3456789]86-*-netware*)
a0da8069
NN
2633 target_makefile_frag="config/mt-netware"
2634 ;;
2635 powerpc-*-netware*)
2636 target_makefile_frag="config/mt-netware"
2637 ;;
3d6dfe0f
NN
2638 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2639 target_makefile_frag="config/mt-gnu"
a0da8069
NN
2640 ;;
2641 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2642 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2643 # commands to handle both 32-bit and 64-bit objects. These flags are
2644 # harmless if we're using GNU nm or ar.
2645 extra_arflags_for_target=" -X32_64"
2646 extra_nmflags_for_target=" -B -X32_64"
2647 ;;
2648 *-*-darwin*)
2649 # ranlib from Darwin requires the -c flag to look at common symbols.
2650 extra_ranlibflags_for_target=" -c"
2651 ;;
2652 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2653 target_makefile_frag="config/mt-wince"
2654 ;;
2655esac
2656
2657alphaieee_frag=/dev/null
2658case $target in
2659 alpha*-*-*)
2660 # This just makes sure to use the -mieee option to build target libs.
2661 # This should probably be set individually by each library.
2662 alphaieee_frag="config/mt-alphaieee"
2663 ;;
2664esac
2665
2666# If --enable-target-optspace always use -Os instead of -O2 to build
2667# the target libraries, similarly if it is not specified, use -Os
2668# on selected platforms.
2669ospace_frag=/dev/null
2670case "${enable_target_optspace}:${target}" in
2671 yes:*)
2672 ospace_frag="config/mt-ospace"
2673 ;;
2674 :d30v-*)
2675 ospace_frag="config/mt-d30v"
2676 ;;
2677 :m32r-* | :d10v-* | :fr30-*)
2678 ospace_frag="config/mt-ospace"
2679 ;;
2680 no:* | :*)
2681 ;;
2682 *)
2683 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2684 ;;
2685esac
2686
2687# Set with_gnu_as and with_gnu_ld as appropriate.
2688#
2689# This is done by determining whether or not the appropriate directory
2690# is available, and by checking whether or not specific configurations
2691# have requested that this magic not happen.
2692#
2693# The command line options always override the explicit settings in
2694# configure.in, and the settings in configure.in override this magic.
2695#
2696# If the default for a toolchain is to use GNU as and ld, and you don't
2697# want to do that, then you should use the --without-gnu-as and
2698# --without-gnu-ld options for the configure script.
2699
2700if test x${use_gnu_as} = x &&
2701 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2702 with_gnu_as=yes
2703 extra_host_args="$extra_host_args --with-gnu-as"
2704fi
2705
2706if test x${use_gnu_ld} = x &&
2707 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2708 with_gnu_ld=yes
2709 extra_host_args="$extra_host_args --with-gnu-ld"
2710fi
2711
2712# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2713# can detect this case.
2714
2715if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2716 with_newlib=yes
2717 extra_host_args="$extra_host_args --with-newlib"
2718fi
2719
4b1cb4fe
DD
2720if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then
2721 extra_host_args="$extra_host_args --with-libbanshee"
2722fi
a0da8069
NN
2723
2724# Default to using --with-stabs for certain targets.
2725if test x${with_stabs} = x ; then
2726 case "${target}" in
e31d1ea3 2727 mips*-*-irix[56]*)
a0da8069
NN
2728 ;;
2729 mips*-*-* | alpha*-*-osf*)
2730 with_stabs=yes;
2731 extra_host_args="${extra_host_args} --with-stabs"
2732 ;;
2733 esac
2734fi
2735
2736# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2737# them automatically.
2738case "${host}" in
2739 hppa*64*-*-hpux11*)
2740 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2741 ;;
2742esac
2743
a0da8069
NN
2744# Some systems (e.g., one of the i386-aix systems the gas testers are
2745# using) don't handle "\$" correctly, so don't use it here.
61fa5f72 2746tooldir='${exec_prefix}'/${target_alias}
a0da8069
NN
2747build_tooldir=${tooldir}
2748
6a9cf61e
PB
2749# Generate default definitions for YACC, M4, LEX and other programs that run
2750# on the build machine. These are used if the Makefile can't locate these
2751# programs in objdir.
947f426e 2752MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6a9cf61e
PB
2753for ac_prog in bison
2754do
2755# Extract the first word of "$ac_prog", so it can be a program name with args.
2756set dummy $ac_prog; ac_word=$2
2757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2758echo "configure:2759: checking for $ac_word" >&5
6a9cf61e
PB
2759if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2761else
2762 if test -n "$CONFIGURED_BISON"; then
2763 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2764else
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2766 ac_dummy="$PATH"
2767 for ac_dir in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2771 break
2772 fi
2773 done
2774 IFS="$ac_save_ifs"
2775fi
2776fi
2777CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2778if test -n "$CONFIGURED_BISON"; then
2779 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2780else
2781 echo "$ac_t""no" 1>&6
2782fi
2783
2784test -n "$CONFIGURED_BISON" && break
2785done
2786test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2787
947f426e 2788for ac_prog in 'bison -y' byacc yacc
a0da8069 2789do
947f426e
NN
2790# Extract the first word of "$ac_prog", so it can be a program name with args.
2791set dummy $ac_prog; ac_word=$2
2792echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2793echo "configure:2794: checking for $ac_word" >&5
6a9cf61e 2794if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
947f426e
NN
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796else
6a9cf61e
PB
2797 if test -n "$CONFIGURED_YACC"; then
2798 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
947f426e
NN
2799else
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2801 ac_dummy="$PATH"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
6a9cf61e 2805 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
a0da8069
NN
2806 break
2807 fi
2808 done
947f426e
NN
2809 IFS="$ac_save_ifs"
2810fi
2811fi
6a9cf61e
PB
2812CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2813if test -n "$CONFIGURED_YACC"; then
2814 echo "$ac_t""$CONFIGURED_YACC" 1>&6
947f426e
NN
2815else
2816 echo "$ac_t""no" 1>&6
2817fi
a0da8069 2818
6a9cf61e 2819test -n "$CONFIGURED_YACC" && break
a0da8069 2820done
6a9cf61e 2821test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
a0da8069 2822
947f426e 2823for ac_prog in gm4 gnum4 m4
a0da8069 2824do
947f426e
NN
2825# Extract the first word of "$ac_prog", so it can be a program name with args.
2826set dummy $ac_prog; ac_word=$2
2827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2828echo "configure:2829: checking for $ac_word" >&5
6a9cf61e
PB
2829if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831else
2832 if test -n "$CONFIGURED_M4"; then
2833 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2834else
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2836 ac_dummy="$PATH"
2837 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if test -f $ac_dir/$ac_word; then
2840 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2841 break
2842 fi
2843 done
2844 IFS="$ac_save_ifs"
2845fi
2846fi
2847CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2848if test -n "$CONFIGURED_M4"; then
2849 echo "$ac_t""$CONFIGURED_M4" 1>&6
2850else
2851 echo "$ac_t""no" 1>&6
2852fi
2853
2854test -n "$CONFIGURED_M4" && break
2855done
2856test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2857
2858for ac_prog in flex
2859do
2860# Extract the first word of "$ac_prog", so it can be a program name with args.
2861set dummy $ac_prog; ac_word=$2
2862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2863echo "configure:2864: checking for $ac_word" >&5
6a9cf61e 2864if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
947f426e
NN
2865 echo $ac_n "(cached) $ac_c" 1>&6
2866else
6a9cf61e
PB
2867 if test -n "$CONFIGURED_FLEX"; then
2868 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
947f426e
NN
2869else
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2871 ac_dummy="$PATH"
2872 for ac_dir in $ac_dummy; do
2873 test -z "$ac_dir" && ac_dir=.
2874 if test -f $ac_dir/$ac_word; then
6a9cf61e 2875 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
a0da8069
NN
2876 break
2877 fi
2878 done
947f426e
NN
2879 IFS="$ac_save_ifs"
2880fi
2881fi
6a9cf61e
PB
2882CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2883if test -n "$CONFIGURED_FLEX"; then
2884 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
947f426e
NN
2885else
2886 echo "$ac_t""no" 1>&6
2887fi
a0da8069 2888
6a9cf61e 2889test -n "$CONFIGURED_FLEX" && break
a0da8069 2890done
6a9cf61e 2891test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
a0da8069 2892
947f426e 2893for ac_prog in flex lex
a0da8069 2894do
947f426e
NN
2895# Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
2897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2898echo "configure:2899: checking for $ac_word" >&5
6a9cf61e 2899if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
947f426e
NN
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901else
6a9cf61e
PB
2902 if test -n "$CONFIGURED_LEX"; then
2903 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
947f426e
NN
2904else
2905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2906 ac_dummy="$PATH"
2907 for ac_dir in $ac_dummy; do
2908 test -z "$ac_dir" && ac_dir=.
2909 if test -f $ac_dir/$ac_word; then
6a9cf61e 2910 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
a0da8069
NN
2911 break
2912 fi
2913 done
947f426e
NN
2914 IFS="$ac_save_ifs"
2915fi
2916fi
6a9cf61e
PB
2917CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
2918if test -n "$CONFIGURED_LEX"; then
2919 echo "$ac_t""$CONFIGURED_LEX" 1>&6
947f426e
NN
2920else
2921 echo "$ac_t""no" 1>&6
2922fi
a0da8069 2923
6a9cf61e 2924test -n "$CONFIGURED_LEX" && break
a0da8069 2925done
6a9cf61e
PB
2926test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
2927
2928for ac_prog in makeinfo
2929do
2930# Extract the first word of "$ac_prog", so it can be a program name with args.
2931set dummy $ac_prog; ac_word=$2
2932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 2933echo "configure:2934: checking for $ac_word" >&5
6a9cf61e
PB
2934if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936else
2937 if test -n "$CONFIGURED_MAKEINFO"; then
2938 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
2939else
2940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2941 ac_dummy="$PATH"
2942 for ac_dir in $ac_dummy; do
2943 test -z "$ac_dir" && ac_dir=.
2944 if test -f $ac_dir/$ac_word; then
2945 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
2946 break
2947 fi
2948 done
2949 IFS="$ac_save_ifs"
2950fi
2951fi
2952CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
2953if test -n "$CONFIGURED_MAKEINFO"; then
2954 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2955else
2956 echo "$ac_t""no" 1>&6
2957fi
2958
2959test -n "$CONFIGURED_MAKEINFO" && break
2960done
2961test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
947f426e 2962
a0da8069 2963
a0da8069
NN
2964# Create a .gdbinit file which runs the one in srcdir
2965# and tells GDB to look there for source files.
2966
2967if test -r ${srcdir}/.gdbinit ; then
2968 case ${srcdir} in
2969 .) ;;
2970 *) cat > ./.gdbinit <<EOF
2971# ${NO_EDIT}
2972dir ${srcdir}
2973dir .
2974source ${srcdir}/.gdbinit
2975EOF
2976 ;;
2977 esac
2978fi
2979
a0da8069
NN
2980# Make sure that the compiler is able to generate an executable. If it
2981# can't, we are probably in trouble. We don't care whether we can run the
2982# executable--we might be using a cross compiler--we only care whether it
2983# can be created. At this point the main configure script has set CC.
2984we_are_ok=no
2985echo "int main () { return 0; }" > conftest.c
2986${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2987if test $? = 0 ; then
2988 if test -s conftest || test -s conftest.exe ; then
2989 we_are_ok=yes
2990 fi
2991fi
2992case $we_are_ok in
2993 no)
2994 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2995 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2996 rm -f conftest*
2997 exit 1
2998 ;;
2999esac
3000rm -f conftest*
3001
3002# The Solaris /usr/ucb/cc compiler does not appear to work.
3003case "${host}" in
3004 sparc-sun-solaris2*)
3005 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3006 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3007 could_use=
3008 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3009 if test -d /opt/cygnus/bin ; then
3010 if test "$could_use" = "" ; then
3011 could_use="/opt/cygnus/bin"
3012 else
3013 could_use="$could_use or /opt/cygnus/bin"
3014 fi
3015 fi
3016 if test "$could_use" = "" ; then
3017 echo "Warning: compilation may fail because you're using"
3018 echo "/usr/ucb/cc. You should change your PATH or CC "
3019 echo "variable and rerun configure."
3020 else
3021 echo "Warning: compilation may fail because you're using"
3022 echo "/usr/ucb/cc, when you should use the C compiler from"
3023 echo "$could_use. You should change your"
3024 echo "PATH or CC variable and rerun configure."
3025 fi
3026 fi
3027 ;;
3028esac
3029
3030# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
3031# binutils tools will find libbfd.so.
b9459e83
NN
3032case "${enable_shared}" in
3033 no | "") SET_LIB_PATH= ;;
3034 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
3035esac
a0da8069
NN
3036
3037case "${host}" in
3038 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3039 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3040esac
3041
3042# Record target_configdirs and the configure arguments for target and
3043# build configuration in Makefile.
3044target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 3045build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 3046
a0da8069
NN
3047# Determine whether gdb needs tk/tcl or not.
3048# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3049# and in that case we want gdb to be built without tk. Ugh!
3050# In fact I believe gdb is the *only* package directly dependent on tk,
3051# so we should be able to put the 'maybe's in unconditionally and
3052# leave out the maybe dependencies when enable_gdbtk is false. I'm not
3053# 100% sure that that's safe though.
c180f501 3054
675c6968 3055gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
3056case "$enable_gdbtk" in
3057 no)
3058 GDB_TK="" ;;
c180f501
AC
3059 yes)
3060 GDB_TK="${gdb_tk}" ;;
a0da8069 3061 *)
c180f501
AC
3062 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3063 # distro. Eventually someone will fix this and move Insight, nee
3064 # gdbtk to a separate directory.
3065 if test -d ${srcdir}/gdb/gdbtk ; then
3066 GDB_TK="${gdb_tk}"
3067 else
3068 GDB_TK=""
3069 fi
3070 ;;
a0da8069
NN
3071esac
3072
6bd3dfaa 3073# Strip out unwanted targets.
dd12c3a8
NN
3074
3075# While at that, we remove Makefiles if we were started for recursive
3076# configuration, so that the top-level Makefile reconfigures them,
3077# like we used to do when configure itself was recursive.
dd12c3a8 3078
6bd3dfaa
PB
3079# Loop over modules. $extrasub must be used with care, limiting as
3080# much as possible the usage of range addresses. That's because autoconf
3081# splits the sed script to overcome limits in the number of commands,
3082# and relying on carefully-timed sed passes may turn out to be very hard
3083# to maintain later. In this particular case, you just have to be careful
3084# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 3085
319cab08
PB
3086# Check whether --enable-bootstrap or --disable-bootstrap was given.
3087if test "${enable_bootstrap+set}" = set; then
3088 enableval="$enable_bootstrap"
3089 :
3090else
3091 enable_bootstrap=no
3092fi
3093
3094if test -d ${srcdir}/gcc; then
3095 case "$host:$target:$enable_bootstrap" in
3096 $build:$build:yes | *:no) ;;
3097 *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;;
3098 *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;;
3099 esac
3100else
3101 if test $enable_bootstrap = yes; then
3102 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; }
3103 fi
3104fi
3105
3106case "$enable_bootstrap" in
3107 yes)
f5f8a794 3108 default_target=bootstrap
498d4a71 3109 bootstrap_suffix=bootstrap ;;
319cab08
PB
3110 no)
3111 default_target=all
498d4a71 3112 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
3113esac
3114
3115
6a9cf61e 3116for module in ${build_configdirs} ; do
498d4a71
CF
3117 if test -z "${no_recursion}" \
3118 && test -f ${build_subdir}/${module}/Makefile; then
3119 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3120 rm -f ${build_subdir}/${module}/Makefile
3121 fi
3122 extrasub="$extrasub
3123/^@if build-$module\$/d
3124/^@endif build-$module\$/d
3125/^@if build-$module-$bootstrap_suffix\$/d
3126/^@endif build-$module-$bootstrap_suffix\$/d"
3127done
3128for module in ${configdirs} ; do
3129 if test -z "${no_recursion}" \
3130 && test -f ${module}/Makefile; then
3131 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3132 rm -f ${module}/Makefile
3133 fi
3134 extrasub="$extrasub
3135/^@if $module\$/d
3136/^@endif $module\$/d
3137/^@if $module-$bootstrap_suffix\$/d
3138/^@endif $module-$bootstrap_suffix\$/d"
3139done
3140for module in ${target_configdirs} ; do
3141 if test -z "${no_recursion}" \
3142 && test -f ${target_subdir}/${module}/Makefile; then
3143 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3144 rm -f ${target_subdir}/${module}/Makefile
3145 fi
3146 extrasub="$extrasub
3147/^@if target-$module\$/d
3148/^@endif target-$module\$/d
3149/^@if target-$module-$bootstrap_suffix\$/d
3150/^@endif target-$module-$bootstrap_suffix\$/d"
3151done
3152
6bd3dfaa
PB
3153extrasub="$extrasub
3154/^@if /,/^@endif /d"
a0da8069
NN
3155
3156# Create the serialization dependencies. This uses a temporary file.
3157
e6bfb94a
AO
3158# Check whether --enable-serial-configure or --disable-serial-configure was given.
3159if test "${enable_serial_configure+set}" = set; then
3160 enableval="$enable_serial_configure"
3161 :
3162fi
3163
3164
1047cb91
DD
3165case ${enable_serial_configure} in
3166 yes)
3167 enable_serial_build_configure=yes
3168 enable_serial_host_configure=yes
3169 enable_serial_target_configure=yes
3170 ;;
3171esac
3172
a0da8069
NN
3173# These force 'configure's to be done one at a time, to avoid problems
3174# with contention over a shared config.cache.
3175rm -f serdep.tmp
e6bfb94a 3176echo '# serdep.tmp' > serdep.tmp
a0da8069 3177olditem=
1047cb91 3178test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
3179for item in ${build_configdirs} ; do
3180 case ${olditem} in
3181 "") ;;
e6bfb94a 3182 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3183 esac
3184 olditem=${item}
3185done
3186olditem=
1047cb91 3187test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
3188for item in ${configdirs} ; do
3189 case ${olditem} in
3190 "") ;;
e6bfb94a 3191 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3192 esac
3193 olditem=${item}
3194done
3195olditem=
1047cb91 3196test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
3197for item in ${target_configdirs} ; do
3198 case ${olditem} in
3199 "") ;;
e6bfb94a 3200 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
3201 esac
3202 olditem=${item}
3203done
3204serialization_dependencies=serdep.tmp
3205
3206
e6bfb94a
AO
3207# Base args. Strip norecursion, cache-file, srcdir, host, build,
3208# target and nonopt. These are the ones we might not want to pass
f27d4f92
DJ
3209# down to subconfigures. Also strip program-prefix, program-suffix,
3210# and program-transform-name, so that we can pass down a consistent
3211# program-transform-name. If autoconf has put single quotes around
3212# any of these arguments (because they contain shell metacharacters)
3213# then this will fail; in practice this only happens for
3214# --program-transform-name, so be sure to override --program-transform-name
3215# at the end of the argument list.
3216# These will be expanded by make, so quote '$'.
d2cc0e0d 3217cat <<\EOF_SED > conftestsed
54752a6b
NN
3218s/ --no[^ ]*/ /g
3219s/ --c[a-z-]*[= ][^ ]*//g
3220s/ --sr[a-z-]*[= ][^ ]*//g
3221s/ --ho[a-z-]*[= ][^ ]*//g
3222s/ --bu[a-z-]*[= ][^ ]*//g
3223s/ --t[a-z-]*[= ][^ ]*//g
3224s/ --program-[pst][a-z-]*[= ][^ ]*//g
3225s/ -cache-file[= ][^ ]*//g
3226s/ -srcdir[= ][^ ]*//g
3227s/ -host[= ][^ ]*//g
3228s/ -build[= ][^ ]*//g
3229s/ -target[= ][^ ]*//g
3230s/ -program-prefix[= ][^ ]*//g
3231s/ -program-suffix[= ][^ ]*//g
3232s/ -program-transform-name[= ][^ ]*//g
d2cc0e0d
GK
3233s/ [^' -][^ ]* / /
3234s/^ *//;s/ *$//
8ff944f6
DJ
3235s,\$,$$,g
3236EOF_SED
3237sed -f conftestsed <<EOF_SED > conftestsed.out
3238 ${ac_configure_args}
d2cc0e0d 3239EOF_SED
8ff944f6
DJ
3240baseargs=`cat conftestsed.out`
3241rm -f conftestsed conftestsed.out
a0da8069 3242
f27d4f92
DJ
3243# Add in --program-transform-name, after --program-prefix and
3244# --program-suffix have been applied to it. Autoconf has already
3245# doubled dollar signs and backslashes in program_transform_name; we want
3246# the backslashes un-doubled, and then the entire thing wrapped in single
3247# quotes, because this will be expanded first by make and then by the shell.
3248# Also, because we want to override the logic in subdir configure scripts to
3249# choose program_transform_name, replace any s,x,x, with s,y,y,.
3250sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3251${program_transform_name}
3252EOF_SED
3253gcc_transform_name=`cat conftestsed.out`
3254rm -f conftestsed.out
3255baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3256
a0da8069
NN
3257# For the build-side libraries, we just need to pretend we're native,
3258# and not use the same cache file. Multilibs are neither needed nor
3259# desired.
3260build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3261
3262# For host modules, accept cache file option, or specification as blank.
3263case "${cache_file}" in
3264"") # empty
3265 cache_file_option="" ;;
3266/* | [A-Za-z]:[\\/]* ) # absolute path
3267 cache_file_option="--cache-file=${cache_file}" ;;
3268*) # relative path
3269 cache_file_option="--cache-file=../${cache_file}" ;;
3270esac
3271
82252c06
NN
3272# Host dirs don't like to share a cache file either, horribly enough.
3273# This seems to be due to autoconf 2.5x stupidity.
bb5dca17 3274host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
a0da8069
NN
3275
3276target_configargs=${baseargs}
3277
3278# Passing a --with-cross-host argument lets the target libraries know
3279# whether they are being built with a cross-compiler or being built
3280# native. However, it would be better to use other mechanisms to make the
3281# sorts of decisions they want to make on this basis. Please consider
3282# this option to be deprecated. FIXME.
3283if test x${is_cross_compiler} = xyes ; then
3284 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3285fi
3286
3287# Default to --enable-multilib.
3288if test x${enable_multilib} = x ; then
3289 target_configargs="--enable-multilib ${target_configargs}"
3290fi
3291
3292# Pass --with-newlib if appropriate. Note that target_configdirs has
3293# changed from the earlier setting of with_newlib.
3294if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3295 target_configargs="--with-newlib ${target_configargs}"
3296fi
3297
95036d20
NN
3298# Different target subdirs use different values of certain variables
3299# (notably CXX). Worse, multilibs use *lots* of different values.
3300# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3301# it doesn't automatically accept command-line overrides of them.
3302# This means it's not safe for target subdirs to share a cache file,
3303# which is disgusting, but there you have it. Hopefully this can be
3304# fixed in future. It's still worthwhile to use a cache file for each
3305# directory. I think.
3306
a0da8069 3307# Pass the appropriate --host, --build, and --cache-file arguments.
bb5dca17 3308target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
a0da8069
NN
3309
3310# provide a proper gxx_include_dir.
3311# Note, if you change the default, make sure to fix both here and in
3312# the gcc and libstdc++-v3 subdirectories.
3313# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3db0a37f
NN
3314case "${with_gxx_include_dir}" in
3315 yes)
3316 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3317 ;;
3318 no | "")
3319 case "${enable_version_specific_runtime_libs}" in
3320 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3321 *)
3322 . ${srcdir}/config.if
3323 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3324 esac ;;
3325 *) gxx_include_dir=${with_gxx_include_dir} ;;
3326esac
a0da8069
NN
3327
3328FLAGS_FOR_TARGET=
3329case " $target_configdirs " in
3330 *" newlib "*)
3331 case " $target_configargs " in
3332 *" --with-newlib "*)
3333 case "$target" in
3334 *-cygwin*)
564b43e5 3335 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' ;;
a0da8069
NN
3336 esac
3337
3338 # If we're not building GCC, don't discard standard headers.
3339 if test -d ${srcdir}/gcc; then
3340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3341
3342 if test "${build}" != "${host}"; then
3343 # On Canadian crosses, CC_FOR_TARGET will have already been set
3344 # by `configure', so we won't have an opportunity to add -Bgcc/
3345 # to it. This is right: we don't want to search that directory
3346 # for binaries, but we want the header files in there, so add
3347 # them explicitly.
3348 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3349
3350 # Someone might think of using the pre-installed headers on
3351 # Canadian crosses, in case the installed compiler is not fully
3352 # compatible with the compiler being built. In this case, it
3353 # would be better to flag an error than risking having
3354 # incompatible object files being constructed. We can't
3355 # guarantee that an error will be flagged, but let's hope the
3356 # compiler will do it, when presented with incompatible header
3357 # files.
3358 fi
3359 fi
3360
3361 case "${target}-${is_cross_compiler}" in
ec11bdc6 3362 i[3456789]86-*-linux*-no)
a0da8069
NN
3363 # Here host == target, so we don't need to build gcc,
3364 # so we don't want to discard standard headers.
3365 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3366 ;;
3367 *)
3368 # If we're building newlib, use its generic headers last, but search
3369 # for any libc-related directories first (so make it the last -B
3370 # switch).
3371 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3372 ;;
3373 esac
3374 ;;
3375 esac
3376 ;;
3377esac
3378
5fbad20a
DD
3379# Allow the user to override the flags for
3380# our build compiler if desired.
3381CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3382
a0da8069
NN
3383# On Canadian crosses, we'll be searching the right directories for
3384# the previously-installed cross compiler, so don't bother to add
3385# flags for directories within the install tree of the compiler
3386# being built; programs in there won't even run.
3387if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3388 # Search for pre-installed headers if nothing else fits.
bba45b8b 3389 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
3390fi
3391
3392if test "x${use_gnu_ld}" = x &&
3393 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3394 # Arrange for us to find uninstalled linker scripts.
3395 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3396fi
3397
3398if test "x${CC_FOR_TARGET+set}" = xset; then
3399 :
3400elif test -d ${srcdir}/gcc; then
3401 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3402elif test "$host" = "$target"; then
3403 CC_FOR_TARGET='$(CC)'
3404else
e78b5cfe 3405 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
a0da8069
NN
3406fi
3407CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3408
3409if test "x${GCJ_FOR_TARGET+set}" = xset; then
3410 :
3411elif test -d ${srcdir}/gcc; then
3412 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3413elif test "$host" = "$target"; then
3414 GCJ_FOR_TARGET='gcj'
3415else
e78b5cfe 3416 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
a0da8069
NN
3417fi
3418GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3419
4b1cb4fe
DD
3420if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
3421 :
3422elif test -d ${srcdir}/gcc; then
3423 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3424elif test "$host" = "$target"; then
3425 GFORTRAN_FOR_TARGET='gfortran'
3426else
88f64edc 3427 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
4b1cb4fe
DD
3428fi
3429case $GFORTRAN_FOR_TARGET in
3430*' $(FLAGS_FOR_TARGET)') ;;
3431*) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3432esac
3433
a0da8069 3434# Don't use libstdc++-v3's flags to configure/build itself.
56f25033 3435libstdcxx_flags='`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'
f2ab5990 3436raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
a0da8069
NN
3437
3438if test "x${CXX_FOR_TARGET+set}" = xset; then
75addda2
DJ
3439 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3440 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3441 fi
a0da8069
NN
3442elif test -d ${srcdir}/gcc; then
3443 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3444 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3445 # default whereas gcc does not.
3446 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3447 # all other cases.
3448 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3449 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3450elif test "$host" = "$target"; then
3451 CXX_FOR_TARGET='$(CXX)'
3452 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3453else
e78b5cfe 3454 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
a0da8069
NN
3455 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3456fi
3457CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3458RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3459
3460qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3461qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3462
3463# We want to defer the evaluation of `cmd`s and shell variables in
3464# CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3465# bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3466# quotes, but we still have to duplicate `$'s so that shell variables
3467# can be expanded by the nested make as shell variables, not as make
3468# macros.
3469qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3470qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3471
3472# Wrap CC_FOR_TARGET and friends, for certain types of builds.
3473CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3474GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
4b1cb4fe 3475GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
a0da8069
NN
3476CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3477RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3478CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3479RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3480
3481# Makefile fragments.
3e707e94
PB
3482for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3483do
3484 eval fragval=\$$frag
3485 if test $fragval != /dev/null; then
3486 eval $frag=${srcdir}/$fragval
3487 fi
3488done
a0da8069
NN
3489
3490
3491
3492
3493
3494# Miscellanea: directories, flags, etc.
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
a0da8069 3507
6a9cf61e 3508# Build module lists & subconfigure args.
a0da8069
NN
3509
3510
3511
a0da8069
NN
3512# Host module lists & subconfigure args.
3513
3514
3515
a0da8069
NN
3516# Target module lists & subconfigure args.
3517
3518
3519
a0da8069
NN
3520# Build tools.
3521
3522
3523
a0da8069 3524# Host tools.
859789af
AC
3525ncn_tool_prefix=
3526test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3527ncn_target_tool_prefix=
3528test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3529
3530 if test -n "$ncn_tool_prefix"; then
3531 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3532set dummy ${ncn_tool_prefix}ar; ac_word=$2
3533echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3534echo "configure:3535: checking for $ac_word" >&5
859789af
AC
3535if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537else
3538 if test -n "$AR"; then
3539 ac_cv_prog_AR="$AR" # Let the user override the test.
3540else
3541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 ac_dummy="$PATH"
3543 for ac_dir in $ac_dummy; do
3544 test -z "$ac_dir" && ac_dir=.
3545 if test -f $ac_dir/$ac_word; then
3546 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3547 break
3548 fi
3549 done
3550 IFS="$ac_save_ifs"
3551fi
3552fi
3553AR="$ac_cv_prog_AR"
3554if test -n "$AR"; then
3555 echo "$ac_t""$AR" 1>&6
3556else
3557 echo "$ac_t""no" 1>&6
3558fi
3559
3560fi
3561if test -z "$ac_cv_prog_AR" ; then
3562 if test $build = $host ; then
3563 ncn_cv_AR=$AR
3564 # Extract the first word of "ar", so it can be a program name with args.
3565set dummy ar; ac_word=$2
3566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3567echo "configure:3568: checking for $ac_word" >&5
859789af
AC
3568if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570else
3571 if test -n "$ncn_cv_AR"; then
3572 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3573else
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 ac_dummy="$PATH"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_prog_ncn_cv_AR="ar"
3580 break
3581 fi
3582 done
3583 IFS="$ac_save_ifs"
3584 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3585fi
3586fi
3587ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3588if test -n "$ncn_cv_AR"; then
3589 echo "$ac_t""$ncn_cv_AR" 1>&6
3590else
3591 echo "$ac_t""no" 1>&6
3592fi
3593
3594 AR=$ncn_cv_AR
3595 else
3596 AR="${ncn_tool_prefix}ar"
3597 fi
3598else
3599 AR="$ac_cv_prog_AR"
3600fi
3601
3602 if test -n "$ncn_tool_prefix"; then
3603 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3604set dummy ${ncn_tool_prefix}as; ac_word=$2
3605echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3606echo "configure:3607: checking for $ac_word" >&5
859789af
AC
3607if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3609else
3610 if test -n "$AS"; then
3611 ac_cv_prog_AS="$AS" # Let the user override the test.
3612else
3613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3614 ac_dummy="$PATH"
3615 for ac_dir in $ac_dummy; do
3616 test -z "$ac_dir" && ac_dir=.
3617 if test -f $ac_dir/$ac_word; then
3618 ac_cv_prog_AS="${ncn_tool_prefix}as"
3619 break
3620 fi
3621 done
3622 IFS="$ac_save_ifs"
3623fi
3624fi
3625AS="$ac_cv_prog_AS"
3626if test -n "$AS"; then
3627 echo "$ac_t""$AS" 1>&6
3628else
3629 echo "$ac_t""no" 1>&6
3630fi
3631
3632fi
3633if test -z "$ac_cv_prog_AS" ; then
3634 if test $build = $host ; then
3635 ncn_cv_AS=$AS
3636 # Extract the first word of "as", so it can be a program name with args.
3637set dummy as; ac_word=$2
3638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3639echo "configure:3640: checking for $ac_word" >&5
859789af
AC
3640if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3642else
3643 if test -n "$ncn_cv_AS"; then
3644 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3645else
3646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3647 ac_dummy="$PATH"
3648 for ac_dir in $ac_dummy; do
3649 test -z "$ac_dir" && ac_dir=.
3650 if test -f $ac_dir/$ac_word; then
3651 ac_cv_prog_ncn_cv_AS="as"
3652 break
3653 fi
3654 done
3655 IFS="$ac_save_ifs"
3656 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3657fi
3658fi
3659ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3660if test -n "$ncn_cv_AS"; then
3661 echo "$ac_t""$ncn_cv_AS" 1>&6
3662else
3663 echo "$ac_t""no" 1>&6
3664fi
3665
3666 AS=$ncn_cv_AS
3667 else
3668 AS="${ncn_tool_prefix}as"
3669 fi
3670else
3671 AS="$ac_cv_prog_AS"
3672fi
3673
3674 if test -n "$ncn_tool_prefix"; then
3675 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3676set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3678echo "configure:3679: checking for $ac_word" >&5
859789af
AC
3679if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3681else
3682 if test -n "$DLLTOOL"; then
3683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3684else
3685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3686 ac_dummy="$PATH"
3687 for ac_dir in $ac_dummy; do
3688 test -z "$ac_dir" && ac_dir=.
3689 if test -f $ac_dir/$ac_word; then
3690 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3691 break
3692 fi
3693 done
3694 IFS="$ac_save_ifs"
3695fi
3696fi
3697DLLTOOL="$ac_cv_prog_DLLTOOL"
3698if test -n "$DLLTOOL"; then
3699 echo "$ac_t""$DLLTOOL" 1>&6
3700else
3701 echo "$ac_t""no" 1>&6
3702fi
3703
3704fi
3705if test -z "$ac_cv_prog_DLLTOOL" ; then
3706 if test $build = $host ; then
3707 ncn_cv_DLLTOOL=$DLLTOOL
3708 # Extract the first word of "dlltool", so it can be a program name with args.
3709set dummy dlltool; ac_word=$2
3710echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3711echo "configure:3712: checking for $ac_word" >&5
859789af
AC
3712if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714else
3715 if test -n "$ncn_cv_DLLTOOL"; then
3716 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3717else
3718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3719 ac_dummy="$PATH"
3720 for ac_dir in $ac_dummy; do
3721 test -z "$ac_dir" && ac_dir=.
3722 if test -f $ac_dir/$ac_word; then
3723 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3724 break
3725 fi
3726 done
3727 IFS="$ac_save_ifs"
3728 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3729fi
3730fi
3731ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3732if test -n "$ncn_cv_DLLTOOL"; then
3733 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3734else
3735 echo "$ac_t""no" 1>&6
3736fi
3737
3738 DLLTOOL=$ncn_cv_DLLTOOL
3739 else
3740 DLLTOOL="${ncn_tool_prefix}dlltool"
3741 fi
3742else
3743 DLLTOOL="$ac_cv_prog_DLLTOOL"
3744fi
3745
3746 if test -n "$ncn_tool_prefix"; then
3747 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3748set dummy ${ncn_tool_prefix}ld; ac_word=$2
3749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3750echo "configure:3751: checking for $ac_word" >&5
859789af
AC
3751if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753else
3754 if test -n "$LD"; then
3755 ac_cv_prog_LD="$LD" # Let the user override the test.
3756else
3757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3758 ac_dummy="$PATH"
3759 for ac_dir in $ac_dummy; do
3760 test -z "$ac_dir" && ac_dir=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3763 break
3764 fi
3765 done
3766 IFS="$ac_save_ifs"
3767fi
3768fi
3769LD="$ac_cv_prog_LD"
3770if test -n "$LD"; then
3771 echo "$ac_t""$LD" 1>&6
3772else
3773 echo "$ac_t""no" 1>&6
3774fi
3775
3776fi
3777if test -z "$ac_cv_prog_LD" ; then
3778 if test $build = $host ; then
3779 ncn_cv_LD=$LD
3780 # Extract the first word of "ld", so it can be a program name with args.
3781set dummy ld; ac_word=$2
3782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3783echo "configure:3784: checking for $ac_word" >&5
859789af
AC
3784if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786else
3787 if test -n "$ncn_cv_LD"; then
3788 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3789else
3790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3791 ac_dummy="$PATH"
3792 for ac_dir in $ac_dummy; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f $ac_dir/$ac_word; then
3795 ac_cv_prog_ncn_cv_LD="ld"
3796 break
3797 fi
3798 done
3799 IFS="$ac_save_ifs"
3800 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3801fi
3802fi
3803ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3804if test -n "$ncn_cv_LD"; then
3805 echo "$ac_t""$ncn_cv_LD" 1>&6
3806else
3807 echo "$ac_t""no" 1>&6
3808fi
3809
3810 LD=$ncn_cv_LD
3811 else
3812 LD="${ncn_tool_prefix}ld"
3813 fi
3814else
3815 LD="$ac_cv_prog_LD"
3816fi
3817
3818 if test -n "$ncn_tool_prefix"; then
3819 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3820set dummy ${ncn_tool_prefix}nm; ac_word=$2
3821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3822echo "configure:3823: checking for $ac_word" >&5
859789af
AC
3823if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825else
3826 if test -n "$NM"; then
3827 ac_cv_prog_NM="$NM" # Let the user override the test.
3828else
3829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3830 ac_dummy="$PATH"
3831 for ac_dir in $ac_dummy; do
3832 test -z "$ac_dir" && ac_dir=.
3833 if test -f $ac_dir/$ac_word; then
3834 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3835 break
3836 fi
3837 done
3838 IFS="$ac_save_ifs"
3839fi
3840fi
3841NM="$ac_cv_prog_NM"
3842if test -n "$NM"; then
3843 echo "$ac_t""$NM" 1>&6
3844else
3845 echo "$ac_t""no" 1>&6
3846fi
3847
3848fi
3849if test -z "$ac_cv_prog_NM" ; then
3850 if test $build = $host ; then
3851 ncn_cv_NM=$NM
3852 # Extract the first word of "nm", so it can be a program name with args.
3853set dummy nm; ac_word=$2
3854echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3855echo "configure:3856: checking for $ac_word" >&5
859789af
AC
3856if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858else
3859 if test -n "$ncn_cv_NM"; then
3860 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3861else
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3863 ac_dummy="$PATH"
3864 for ac_dir in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f $ac_dir/$ac_word; then
3867 ac_cv_prog_ncn_cv_NM="nm"
3868 break
3869 fi
3870 done
3871 IFS="$ac_save_ifs"
3872 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3873fi
3874fi
3875ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3876if test -n "$ncn_cv_NM"; then
3877 echo "$ac_t""$ncn_cv_NM" 1>&6
3878else
3879 echo "$ac_t""no" 1>&6
3880fi
3881
3882 NM=$ncn_cv_NM
3883 else
3884 NM="${ncn_tool_prefix}nm"
3885 fi
3886else
3887 NM="$ac_cv_prog_NM"
3888fi
3889
3890 if test -n "$ncn_tool_prefix"; then
3891 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3892set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3894echo "configure:3895: checking for $ac_word" >&5
859789af
AC
3895if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3897else
3898 if test -n "$RANLIB"; then
3899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3900else
3901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3902 ac_dummy="$PATH"
3903 for ac_dir in $ac_dummy; do
3904 test -z "$ac_dir" && ac_dir=.
3905 if test -f $ac_dir/$ac_word; then
3906 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3907 break
3908 fi
3909 done
3910 IFS="$ac_save_ifs"
3911fi
3912fi
3913RANLIB="$ac_cv_prog_RANLIB"
3914if test -n "$RANLIB"; then
3915 echo "$ac_t""$RANLIB" 1>&6
3916else
3917 echo "$ac_t""no" 1>&6
3918fi
3919
3920fi
3921if test -z "$ac_cv_prog_RANLIB" ; then
3922 if test $build = $host ; then
3923 ncn_cv_RANLIB=$RANLIB
3924 # Extract the first word of "ranlib", so it can be a program name with args.
3925set dummy ranlib; ac_word=$2
3926echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3927echo "configure:3928: checking for $ac_word" >&5
859789af
AC
3928if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3930else
3931 if test -n "$ncn_cv_RANLIB"; then
3932 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3933else
3934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3935 ac_dummy="$PATH"
3936 for ac_dir in $ac_dummy; do
3937 test -z "$ac_dir" && ac_dir=.
3938 if test -f $ac_dir/$ac_word; then
3939 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3940 break
3941 fi
3942 done
3943 IFS="$ac_save_ifs"
3944 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3945fi
3946fi
3947ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3948if test -n "$ncn_cv_RANLIB"; then
3949 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3950else
3951 echo "$ac_t""no" 1>&6
3952fi
3953
3954 RANLIB=$ncn_cv_RANLIB
3955 else
3956 RANLIB=":"
3957 fi
3958else
3959 RANLIB="$ac_cv_prog_RANLIB"
3960fi
3961
3962 if test -n "$ncn_tool_prefix"; then
3963 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3964set dummy ${ncn_tool_prefix}windres; ac_word=$2
3965echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3966echo "configure:3967: checking for $ac_word" >&5
859789af
AC
3967if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969else
3970 if test -n "$WINDRES"; then
3971 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3972else
3973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3974 ac_dummy="$PATH"
3975 for ac_dir in $ac_dummy; do
3976 test -z "$ac_dir" && ac_dir=.
3977 if test -f $ac_dir/$ac_word; then
3978 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3979 break
3980 fi
3981 done
3982 IFS="$ac_save_ifs"
3983fi
3984fi
3985WINDRES="$ac_cv_prog_WINDRES"
3986if test -n "$WINDRES"; then
3987 echo "$ac_t""$WINDRES" 1>&6
3988else
3989 echo "$ac_t""no" 1>&6
3990fi
3991
3992fi
3993if test -z "$ac_cv_prog_WINDRES" ; then
3994 if test $build = $host ; then
3995 ncn_cv_WINDRES=$WINDRES
3996 # Extract the first word of "windres", so it can be a program name with args.
3997set dummy windres; ac_word=$2
3998echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 3999echo "configure:4000: checking for $ac_word" >&5
859789af
AC
4000if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4002else
4003 if test -n "$ncn_cv_WINDRES"; then
4004 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
4005else
4006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4007 ac_dummy="$PATH"
4008 for ac_dir in $ac_dummy; do
4009 test -z "$ac_dir" && ac_dir=.
4010 if test -f $ac_dir/$ac_word; then
4011 ac_cv_prog_ncn_cv_WINDRES="windres"
4012 break
4013 fi
4014 done
4015 IFS="$ac_save_ifs"
4016 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
4017fi
4018fi
4019ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
4020if test -n "$ncn_cv_WINDRES"; then
4021 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
4022else
4023 echo "$ac_t""no" 1>&6
4024fi
4025
4026 WINDRES=$ncn_cv_WINDRES
4027 else
4028 WINDRES="${ncn_tool_prefix}windres"
4029 fi
4030else
4031 WINDRES="$ac_cv_prog_WINDRES"
4032fi
4033
4034 if test -n "$ncn_tool_prefix"; then
4035 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
4036set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4037echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4038echo "configure:4039: checking for $ac_word" >&5
859789af
AC
4039if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4041else
4042 if test -n "$OBJCOPY"; then
4043 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4044else
4045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4046 ac_dummy="$PATH"
4047 for ac_dir in $ac_dummy; do
4048 test -z "$ac_dir" && ac_dir=.
4049 if test -f $ac_dir/$ac_word; then
4050 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
4051 break
4052 fi
4053 done
4054 IFS="$ac_save_ifs"
4055fi
4056fi
4057OBJCOPY="$ac_cv_prog_OBJCOPY"
4058if test -n "$OBJCOPY"; then
4059 echo "$ac_t""$OBJCOPY" 1>&6
4060else
4061 echo "$ac_t""no" 1>&6
4062fi
4063
4064fi
4065if test -z "$ac_cv_prog_OBJCOPY" ; then
4066 if test $build = $host ; then
4067 ncn_cv_OBJCOPY=$OBJCOPY
4068 # Extract the first word of "objcopy", so it can be a program name with args.
4069set dummy objcopy; ac_word=$2
4070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4071echo "configure:4072: checking for $ac_word" >&5
859789af
AC
4072if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074else
4075 if test -n "$ncn_cv_OBJCOPY"; then
4076 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4077else
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4079 ac_dummy="$PATH"
4080 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f $ac_dir/$ac_word; then
4083 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4084 break
4085 fi
4086 done
4087 IFS="$ac_save_ifs"
4088 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4089fi
4090fi
4091ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4092if test -n "$ncn_cv_OBJCOPY"; then
4093 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4094else
4095 echo "$ac_t""no" 1>&6
4096fi
4097
4098 OBJCOPY=$ncn_cv_OBJCOPY
4099 else
4100 OBJCOPY="${ncn_tool_prefix}objcopy"
4101 fi
4102else
4103 OBJCOPY="$ac_cv_prog_OBJCOPY"
4104fi
4105
4106 if test -n "$ncn_tool_prefix"; then
4107 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
4108set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4109echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4110echo "configure:4111: checking for $ac_word" >&5
859789af
AC
4111if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4113else
4114 if test -n "$OBJDUMP"; then
4115 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4116else
4117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4118 ac_dummy="$PATH"
4119 for ac_dir in $ac_dummy; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f $ac_dir/$ac_word; then
4122 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
4123 break
4124 fi
4125 done
4126 IFS="$ac_save_ifs"
4127fi
4128fi
4129OBJDUMP="$ac_cv_prog_OBJDUMP"
4130if test -n "$OBJDUMP"; then
4131 echo "$ac_t""$OBJDUMP" 1>&6
4132else
4133 echo "$ac_t""no" 1>&6
4134fi
4135
4136fi
4137if test -z "$ac_cv_prog_OBJDUMP" ; then
4138 if test $build = $host ; then
4139 ncn_cv_OBJDUMP=$OBJDUMP
4140 # Extract the first word of "objdump", so it can be a program name with args.
4141set dummy objdump; ac_word=$2
4142echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4143echo "configure:4144: checking for $ac_word" >&5
859789af
AC
4144if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4146else
4147 if test -n "$ncn_cv_OBJDUMP"; then
4148 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4149else
4150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4151 ac_dummy="$PATH"
4152 for ac_dir in $ac_dummy; do
4153 test -z "$ac_dir" && ac_dir=.
4154 if test -f $ac_dir/$ac_word; then
4155 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4156 break
4157 fi
4158 done
4159 IFS="$ac_save_ifs"
4160 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4161fi
4162fi
4163ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4164if test -n "$ncn_cv_OBJDUMP"; then
4165 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4166else
4167 echo "$ac_t""no" 1>&6
4168fi
4169
4170 OBJDUMP=$ncn_cv_OBJDUMP
4171 else
4172 OBJDUMP="${ncn_tool_prefix}objdump"
4173 fi
4174else
4175 OBJDUMP="$ac_cv_prog_OBJDUMP"
4176fi
4177
a0da8069
NN
4178
4179
4180
4181
4182
4183
a0da8069 4184# Target tools.
859789af
AC
4185 if test -n "$ncn_target_tool_prefix"; then
4186 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4187set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4188echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4189echo "configure:4190: checking for $ac_word" >&5
54752a6b 4190if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
54752a6b
NN
4193 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4194 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
859789af
AC
4195else
4196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4197 ac_dummy="$PATH"
4198 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 if test -f $ac_dir/$ac_word; then
54752a6b 4201 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
859789af
AC
4202 break
4203 fi
4204 done
4205 IFS="$ac_save_ifs"
4206fi
4207fi
54752a6b
NN
4208CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4209if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4210 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
859789af
AC
4211else
4212 echo "$ac_t""no" 1>&6
4213fi
4214
4215fi
54752a6b 4216if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
859789af 4217 if test $build = $target ; then
54752a6b 4218 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
859789af
AC
4219 # Extract the first word of "ar", so it can be a program name with args.
4220set dummy ar; ac_word=$2
4221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4222echo "configure:4223: checking for $ac_word" >&5
54752a6b 4223if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225else
54752a6b
NN
4226 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4227 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
859789af
AC
4228else
4229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4230 ac_dummy="$PATH"
4231 for ac_dir in $ac_dummy; do
4232 test -z "$ac_dir" && ac_dir=.
4233 if test -f $ac_dir/$ac_word; then
54752a6b 4234 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
859789af
AC
4235 break
4236 fi
4237 done
4238 IFS="$ac_save_ifs"
54752a6b 4239 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
859789af
AC
4240fi
4241fi
54752a6b
NN
4242ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4243if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4244 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
859789af
AC
4245else
4246 echo "$ac_t""no" 1>&6
4247fi
4248
54752a6b 4249 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
859789af 4250 else
54752a6b 4251 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
859789af
AC
4252 fi
4253else
54752a6b 4254 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
859789af
AC
4255fi
4256
4257 if test -n "$ncn_target_tool_prefix"; then
4258 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4259set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4260echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4261echo "configure:4262: checking for $ac_word" >&5
54752a6b 4262if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264else
54752a6b
NN
4265 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4266 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
859789af
AC
4267else
4268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4269 ac_dummy="$PATH"
4270 for ac_dir in $ac_dummy; do
4271 test -z "$ac_dir" && ac_dir=.
4272 if test -f $ac_dir/$ac_word; then
54752a6b 4273 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
859789af
AC
4274 break
4275 fi
4276 done
4277 IFS="$ac_save_ifs"
4278fi
4279fi
54752a6b
NN
4280CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4281if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4282 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
859789af
AC
4283else
4284 echo "$ac_t""no" 1>&6
4285fi
4286
4287fi
54752a6b 4288if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
859789af 4289 if test $build = $target ; then
54752a6b 4290 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
859789af
AC
4291 # Extract the first word of "as", so it can be a program name with args.
4292set dummy as; ac_word=$2
4293echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4294echo "configure:4295: checking for $ac_word" >&5
54752a6b 4295if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4296 echo $ac_n "(cached) $ac_c" 1>&6
4297else
54752a6b
NN
4298 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4299 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
859789af
AC
4300else
4301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4302 ac_dummy="$PATH"
4303 for ac_dir in $ac_dummy; do
4304 test -z "$ac_dir" && ac_dir=.
4305 if test -f $ac_dir/$ac_word; then
54752a6b 4306 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
859789af
AC
4307 break
4308 fi
4309 done
4310 IFS="$ac_save_ifs"
54752a6b 4311 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
859789af
AC
4312fi
4313fi
54752a6b
NN
4314ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4315if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4316 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
859789af
AC
4317else
4318 echo "$ac_t""no" 1>&6
4319fi
4320
54752a6b 4321 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
859789af 4322 else
54752a6b 4323 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
859789af
AC
4324 fi
4325else
54752a6b 4326 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
859789af
AC
4327fi
4328
4329 if test -n "$ncn_target_tool_prefix"; then
4330 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4331set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4332echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4333echo "configure:4334: checking for $ac_word" >&5
54752a6b 4334if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336else
54752a6b
NN
4337 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4338 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
859789af
AC
4339else
4340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4341 ac_dummy="$PATH"
4342 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f $ac_dir/$ac_word; then
54752a6b 4345 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
859789af
AC
4346 break
4347 fi
4348 done
4349 IFS="$ac_save_ifs"
4350fi
4351fi
54752a6b
NN
4352CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4353if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4354 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
859789af
AC
4355else
4356 echo "$ac_t""no" 1>&6
4357fi
4358
4359fi
54752a6b 4360if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
859789af 4361 if test $build = $target ; then
54752a6b 4362 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
859789af
AC
4363 # Extract the first word of "dlltool", so it can be a program name with args.
4364set dummy dlltool; ac_word=$2
4365echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4366echo "configure:4367: checking for $ac_word" >&5
54752a6b 4367if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369else
54752a6b
NN
4370 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4371 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
859789af
AC
4372else
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
54752a6b 4378 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
859789af
AC
4379 break
4380 fi
4381 done
4382 IFS="$ac_save_ifs"
54752a6b 4383 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
859789af
AC
4384fi
4385fi
54752a6b
NN
4386ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4387if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4388 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
859789af
AC
4389else
4390 echo "$ac_t""no" 1>&6
4391fi
4392
54752a6b 4393 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
859789af 4394 else
54752a6b 4395 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
859789af
AC
4396 fi
4397else
54752a6b 4398 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
859789af
AC
4399fi
4400
4401 if test -n "$ncn_target_tool_prefix"; then
4402 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4403set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4405echo "configure:4406: checking for $ac_word" >&5
54752a6b 4406if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408else
54752a6b
NN
4409 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4410 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
859789af
AC
4411else
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 ac_dummy="$PATH"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
54752a6b 4417 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
859789af
AC
4418 break
4419 fi
4420 done
4421 IFS="$ac_save_ifs"
4422fi
4423fi
54752a6b
NN
4424CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4425if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4426 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
859789af
AC
4427else
4428 echo "$ac_t""no" 1>&6
4429fi
4430
4431fi
54752a6b 4432if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
859789af 4433 if test $build = $target ; then
54752a6b 4434 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
859789af
AC
4435 # Extract the first word of "ld", so it can be a program name with args.
4436set dummy ld; ac_word=$2
4437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4438echo "configure:4439: checking for $ac_word" >&5
54752a6b 4439if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4440 echo $ac_n "(cached) $ac_c" 1>&6
4441else
54752a6b
NN
4442 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4443 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
859789af
AC
4444else
4445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4446 ac_dummy="$PATH"
4447 for ac_dir in $ac_dummy; do
4448 test -z "$ac_dir" && ac_dir=.
4449 if test -f $ac_dir/$ac_word; then
54752a6b 4450 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
859789af
AC
4451 break
4452 fi
4453 done
4454 IFS="$ac_save_ifs"
54752a6b 4455 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
859789af
AC
4456fi
4457fi
54752a6b
NN
4458ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4459if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4460 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
859789af
AC
4461else
4462 echo "$ac_t""no" 1>&6
4463fi
4464
54752a6b 4465 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
859789af 4466 else
54752a6b 4467 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
859789af
AC
4468 fi
4469else
54752a6b 4470 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
859789af
AC
4471fi
4472
4473 if test -n "$ncn_target_tool_prefix"; then
4474 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4475set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4477echo "configure:4478: checking for $ac_word" >&5
54752a6b 4478if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4479 echo $ac_n "(cached) $ac_c" 1>&6
4480else
54752a6b
NN
4481 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4482 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
859789af
AC
4483else
4484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4485 ac_dummy="$PATH"
4486 for ac_dir in $ac_dummy; do
4487 test -z "$ac_dir" && ac_dir=.
4488 if test -f $ac_dir/$ac_word; then
54752a6b 4489 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
859789af
AC
4490 break
4491 fi
4492 done
4493 IFS="$ac_save_ifs"
4494fi
4495fi
54752a6b
NN
4496CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4497if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4498 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
859789af
AC
4499else
4500 echo "$ac_t""no" 1>&6
4501fi
4502
4503fi
54752a6b 4504if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
859789af 4505 if test $build = $target ; then
54752a6b 4506 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
859789af
AC
4507 # Extract the first word of "nm", so it can be a program name with args.
4508set dummy nm; ac_word=$2
4509echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4510echo "configure:4511: checking for $ac_word" >&5
54752a6b 4511if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4512 echo $ac_n "(cached) $ac_c" 1>&6
4513else
54752a6b
NN
4514 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4515 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
859789af
AC
4516else
4517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4518 ac_dummy="$PATH"
4519 for ac_dir in $ac_dummy; do
4520 test -z "$ac_dir" && ac_dir=.
4521 if test -f $ac_dir/$ac_word; then
54752a6b 4522 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
859789af
AC
4523 break
4524 fi
4525 done
4526 IFS="$ac_save_ifs"
54752a6b 4527 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
859789af
AC
4528fi
4529fi
54752a6b
NN
4530ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4531if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4532 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
859789af
AC
4533else
4534 echo "$ac_t""no" 1>&6
4535fi
4536
54752a6b 4537 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
859789af 4538 else
54752a6b 4539 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
859789af
AC
4540 fi
4541else
54752a6b 4542 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
859789af
AC
4543fi
4544
4545 if test -n "$ncn_target_tool_prefix"; then
4546 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4547set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4549echo "configure:4550: checking for $ac_word" >&5
54752a6b 4550if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4551 echo $ac_n "(cached) $ac_c" 1>&6
4552else
54752a6b
NN
4553 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4554 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
859789af
AC
4555else
4556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4557 ac_dummy="$PATH"
4558 for ac_dir in $ac_dummy; do
4559 test -z "$ac_dir" && ac_dir=.
4560 if test -f $ac_dir/$ac_word; then
54752a6b 4561 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
859789af
AC
4562 break
4563 fi
4564 done
4565 IFS="$ac_save_ifs"
4566fi
4567fi
54752a6b
NN
4568CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4569if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4570 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
859789af
AC
4571else
4572 echo "$ac_t""no" 1>&6
4573fi
4574
4575fi
54752a6b 4576if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
859789af 4577 if test $build = $target ; then
54752a6b 4578 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
859789af
AC
4579 # Extract the first word of "ranlib", so it can be a program name with args.
4580set dummy ranlib; ac_word=$2
4581echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4582echo "configure:4583: checking for $ac_word" >&5
54752a6b 4583if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4584 echo $ac_n "(cached) $ac_c" 1>&6
4585else
54752a6b
NN
4586 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4587 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
859789af
AC
4588else
4589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4590 ac_dummy="$PATH"
4591 for ac_dir in $ac_dummy; do
4592 test -z "$ac_dir" && ac_dir=.
4593 if test -f $ac_dir/$ac_word; then
54752a6b 4594 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
859789af
AC
4595 break
4596 fi
4597 done
4598 IFS="$ac_save_ifs"
54752a6b 4599 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
859789af
AC
4600fi
4601fi
54752a6b
NN
4602ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4603if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4604 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
859789af
AC
4605else
4606 echo "$ac_t""no" 1>&6
4607fi
4608
54752a6b 4609 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
859789af 4610 else
54752a6b 4611 CONFIGURED_RANLIB_FOR_TARGET=":"
859789af
AC
4612 fi
4613else
54752a6b 4614 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
859789af
AC
4615fi
4616
4617 if test -n "$ncn_target_tool_prefix"; then
4618 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4619set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4621echo "configure:4622: checking for $ac_word" >&5
54752a6b 4622if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4623 echo $ac_n "(cached) $ac_c" 1>&6
4624else
54752a6b
NN
4625 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4626 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
859789af
AC
4627else
4628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4629 ac_dummy="$PATH"
4630 for ac_dir in $ac_dummy; do
4631 test -z "$ac_dir" && ac_dir=.
4632 if test -f $ac_dir/$ac_word; then
54752a6b 4633 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
859789af
AC
4634 break
4635 fi
4636 done
4637 IFS="$ac_save_ifs"
4638fi
4639fi
54752a6b
NN
4640CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4641if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4642 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
859789af
AC
4643else
4644 echo "$ac_t""no" 1>&6
4645fi
4646
4647fi
54752a6b 4648if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
859789af 4649 if test $build = $target ; then
54752a6b 4650 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
859789af
AC
4651 # Extract the first word of "windres", so it can be a program name with args.
4652set dummy windres; ac_word=$2
4653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11b04d1f 4654echo "configure:4655: checking for $ac_word" >&5
54752a6b 4655if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
859789af
AC
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657else
54752a6b
NN
4658 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4659 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
859789af
AC
4660else
4661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4662 ac_dummy="$PATH"
4663 for ac_dir in $ac_dummy; do
4664 test -z "$ac_dir" && ac_dir=.
4665 if test -f $ac_dir/$ac_word; then
54752a6b 4666 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
859789af
AC
4667 break
4668 fi
4669 done
4670 IFS="$ac_save_ifs"
54752a6b 4671 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
859789af
AC
4672fi
4673fi
54752a6b
NN
4674ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4675if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4676 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
859789af
AC
4677else
4678 echo "$ac_t""no" 1>&6
4679fi
4680
54752a6b 4681 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
859789af 4682 else
54752a6b 4683 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
859789af
AC
4684 fi
4685else
54752a6b 4686 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
859789af
AC
4687fi
4688
852e5f18 4689
252b5132 4690
252b5132 4691
c11e16a9 4692
852e5f18 4693
c11e16a9 4694
252b5132 4695
252b5132 4696
252b5132 4697
a0da8069 4698
4b1cb4fe 4699
a0da8069
NN
4700# Fix up target tools.
4701if test "x${build}" = "x${host}" ; then
4702 # In this case, the newly built tools can and should be used,
4703 # so we override the results of the autoconf tests.
4704 # This should really only happen when the tools are actually being built,
4705 # but that's a further refinement. The new build scheme, where
4706 # tools are built into a structure paralleling where they're installed,
4707 # should also eliminate all of this cleanly.
4708 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4709 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4710 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4711 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4712 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4713 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4714 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
54752a6b
NN
4715else
4716 # Just use the ones we found.
4717 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4718 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4719 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4720 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4721 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4722 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4723 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
a0da8069 4724fi
54752a6b
NN
4725
4726
4727
4728
4729
4730
4731
4732
a0da8069
NN
4733# Certain tools may need extra flags.
4734AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4735RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4736NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4737
3d5e36ae 4738echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
11b04d1f 4739echo "configure:4740: checking whether to enable maintainer-specific portions of Makefiles" >&5
3d5e36ae
AO
4740# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4741if test "${enable_maintainer_mode+set}" = set; then
4742 enableval="$enable_maintainer_mode"
4743 USE_MAINTAINER_MODE=$enableval
4744else
4745 USE_MAINTAINER_MODE=no
4746fi
4747
4748echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4749
4750
4751if test "$USE_MAINTAINER_MODE" = yes; then
4752 MAINTAINER_MODE_TRUE=
4753 MAINTAINER_MODE_FALSE='#'
4754else
4755 MAINTAINER_MODE_TRUE='#'
4756 MAINTAINER_MODE_FALSE=
4757fi
4758MAINT=$MAINTAINER_MODE_TRUE
4759
1d39f329
NN
4760# ---------------------
4761# GCC bootstrap support
4762# ---------------------
4763
4764# Stage specific cflags for build.
4765stage1_cflags="-g"
4766case $build in
4767 vax-*-*)
4768 case ${GCC} in
4769 yes) stage1_cflags="-g -Wa,-J" ;;
4770 *) stage1_cflags="-g -J" ;;
4771 esac ;;
4772 powerpc-*-darwin*)
4773 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4774 # sources; use -no-cpp-precomp to get to GNU cpp.
4775 # Apple's GCC has bugs in designated initializer handling, so disable
4776 # that too.
4777 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4778 ;;
4779esac
4780
4781
dfdffa2c
PB
4782# It makes debugging easier if we create as symlinks the stage directories
4783# gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
4784# possible, however, we can resort to mv.
4785echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
11b04d1f 4786echo "configure:4787: checking if symbolic links between directories work" >&5
dfdffa2c
PB
4787if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789else
4790 if test "${LN_S}" = "ln -s" \
4791 && mkdir confdir.s1 \
4792 && ln -s confdir.s1 confdir.s2 \
4793 && echo timestamp1 > confdir.s1/conftest.1 \
4794 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4795 && echo timestamp2 > confdir.s2/conftest.2 \
4796 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4797 && rm -f confdir.s2; then
4798 gcc_cv_prog_ln_s_dir=yes
4799else
4800 gcc_cv_prog_ln_s_dir=yes
4801fi
4802rm -rf confdir.s1 confdir.s2
4803fi
4804
4805echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4806
4807case ${gcc_cv_prog_ln_s_dir} in
4808 yes)
4809 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4810 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4811 *)
4812 CREATE_LINK_TO_DIR='mv $$1 $$2'
4813 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4814esac
4815
4816
4817
1d39f329
NN
4818# Enable -Werror in bootstrap stage2 and later.
4819# Change the default to "no" on release branches.
4820# Check whether --enable-werror or --disable-werror was given.
4821if test "${enable_werror+set}" = set; then
4822 enableval="$enable_werror"
4823 :
4824else
4825 enable_werror=yes
4826fi
4827
1a6f2dc7
NN
4828case ${enable_werror} in
4829 yes) stage2_werror_flag="--enable-werror-always" ;;
4830 *) stage2_werror_flag="" ;;
1d39f329
NN
4831esac
4832
4833
a0da8069
NN
4834trap '' 1 2 15
4835cat > confcache <<\EOF
4836# This file is a shell script that caches the results of configure
4837# tests run on this system so they can be shared between configure
4838# scripts and configure runs. It is not useful on other systems.
4839# If it contains results you don't want to keep, you may remove or edit it.
4840#
4841# By default, configure uses ./config.cache as the cache file,
4842# creating it if it does not exist already. You can give configure
4843# the --cache-file=FILE option to use a different cache file; that is
4844# what configure does when it calls configure scripts in
4845# subdirectories, so they share the cache.
4846# Giving --cache-file=/dev/null disables caching, for debugging configure.
4847# config.status only pays attention to the cache file if you give it the
4848# --recheck option to rerun configure.
4849#
252b5132 4850EOF
a0da8069
NN
4851# The following way of writing the cache mishandles newlines in values,
4852# but we know of no workaround that is simple, portable, and efficient.
4853# So, don't put newlines in cache variables' values.
4854# Ultrix sh set writes to stderr and can't be redirected directly,
4855# and sets the high bit in the cache file unless we assign to the vars.
4856(set) 2>&1 |
4857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4858 *ac_space=\ *)
4859 # `set' does not quote correctly, so add quotes (double-quote substitution
4860 # turns \\\\ into \\, and sed turns \\ into \).
4861 sed -n \
4862 -e "s/'/'\\\\''/g" \
4863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
852e5f18 4864 ;;
a0da8069
NN
4865 *)
4866 # `set' quotes correctly as required by POSIX, so do not add quotes.
4867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4868 ;;
4869 esac >> confcache
4870if cmp -s $cache_file confcache; then
4871 :
4872else
4873 if test -w $cache_file; then
4874 echo "updating cache $cache_file"
4875 cat confcache > $cache_file
4876 else
4877 echo "not updating unwritable cache $cache_file"
4878 fi
852e5f18 4879fi
a0da8069 4880rm -f confcache
852e5f18 4881
a0da8069 4882trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
852e5f18 4883
a0da8069
NN
4884test "x$prefix" = xNONE && prefix=$ac_default_prefix
4885# Let make expand exec_prefix.
4886test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 4887
a0da8069
NN
4888# Any assignment to VPATH causes Sun make to only execute
4889# the first set of double-colon rules, so remove it if not needed.
4890# If there is a colon in the path, we need to keep it.
4891if test "x$srcdir" = x.; then
4892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4893fi
252b5132 4894
a0da8069
NN
4895trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4896
4897# Transform confdefs.h into DEFS.
4898# Protect against shell expansion while executing Makefile rules.
4899# Protect against Makefile macro expansion.
675c6968
NN
4900cat > conftest.defs <<\EOF
4901s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4902s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4903s%\[%\\&%g
4904s%\]%\\&%g
4905s%\$%$$%g
4906EOF
4907DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4908rm -f conftest.defs
852e5f18 4909
852e5f18 4910
a0da8069
NN
4911# Without the "./", some shells look in PATH for config.status.
4912: ${CONFIG_STATUS=./config.status}
852e5f18 4913
a0da8069
NN
4914echo creating $CONFIG_STATUS
4915rm -f $CONFIG_STATUS
4916cat > $CONFIG_STATUS <<EOF
4917#! /bin/sh
4918# Generated automatically by configure.
4919# Run this file to recreate the current configuration.
4920# This directory was configured as follows,
4921# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4922#
4923# $0 $ac_configure_args
4924#
4925# Compiler output produced by configure, useful for debugging
4926# configure, is in ./config.log if it exists.
852e5f18 4927
a0da8069
NN
4928ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4929for ac_option
4930do
4931 case "\$ac_option" in
4932 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4933 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4934 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4935 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4936 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4937 exit 0 ;;
4938 -help | --help | --hel | --he | --h)
4939 echo "\$ac_cs_usage"; exit 0 ;;
4940 *) echo "\$ac_cs_usage"; exit 1 ;;
852e5f18 4941 esac
a0da8069 4942done
852e5f18 4943
a0da8069 4944ac_given_srcdir=$srcdir
e5c3f801 4945ac_given_INSTALL="$INSTALL"
852e5f18 4946
a0da8069
NN
4947trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4948EOF
4949cat >> $CONFIG_STATUS <<EOF
4950
4951# Protect against being on the right side of a sed subst in config.status.
4952sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4953 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4954$ac_vpsub
4955$extrasub
4956s%@SHELL@%$SHELL%g
4957s%@CFLAGS@%$CFLAGS%g
4958s%@CPPFLAGS@%$CPPFLAGS%g
4959s%@CXXFLAGS@%$CXXFLAGS%g
4960s%@FFLAGS@%$FFLAGS%g
4961s%@DEFS@%$DEFS%g
4962s%@LDFLAGS@%$LDFLAGS%g
4963s%@LIBS@%$LIBS%g
4964s%@exec_prefix@%$exec_prefix%g
4965s%@prefix@%$prefix%g
4966s%@program_transform_name@%$program_transform_name%g
4967s%@bindir@%$bindir%g
4968s%@sbindir@%$sbindir%g
4969s%@libexecdir@%$libexecdir%g
4970s%@datadir@%$datadir%g
4971s%@sysconfdir@%$sysconfdir%g
4972s%@sharedstatedir@%$sharedstatedir%g
4973s%@localstatedir@%$localstatedir%g
4974s%@libdir@%$libdir%g
4975s%@includedir@%$includedir%g
4976s%@oldincludedir@%$oldincludedir%g
4977s%@infodir@%$infodir%g
4978s%@mandir@%$mandir%g
4979s%@host@%$host%g
4980s%@host_alias@%$host_alias%g
4981s%@host_cpu@%$host_cpu%g
4982s%@host_vendor@%$host_vendor%g
4983s%@host_os@%$host_os%g
4984s%@target@%$target%g
4985s%@target_alias@%$target_alias%g
4986s%@target_cpu@%$target_cpu%g
4987s%@target_vendor@%$target_vendor%g
4988s%@target_os@%$target_os%g
4989s%@build@%$build%g
4990s%@build_alias@%$build_alias%g
4991s%@build_cpu@%$build_cpu%g
4992s%@build_vendor@%$build_vendor%g
4993s%@build_os@%$build_os%g
e5c3f801
NN
4994s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4995s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4996s%@INSTALL_DATA@%$INSTALL_DATA%g
656fdd47 4997s%@LN@%$LN%g
dfdffa2c 4998s%@LN_S@%$LN_S%g
586c0873 4999s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
dd12c3a8
NN
5000s%@build_subdir@%$build_subdir%g
5001s%@host_subdir@%$host_subdir%g
5002s%@target_subdir@%$target_subdir%g
9e07f89d
NN
5003s%@CC@%$CC%g
5004s%@GNATBIND@%$GNATBIND%g
b8908782 5005s%@do_compare@%$do_compare%g
4b1cb4fe
DD
5006s%@gmplibs@%$gmplibs%g
5007s%@gmpinc@%$gmpinc%g
1d39f329 5008s%@stage1_languages@%$stage1_languages%g
6a9cf61e
PB
5009s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5010s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5011s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5012s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5013s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5014s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
319cab08 5015s%@default_target@%$default_target%g
a0da8069
NN
5016/@serialization_dependencies@/r $serialization_dependencies
5017s%@serialization_dependencies@%%g
5018/@host_makefile_frag@/r $host_makefile_frag
5019s%@host_makefile_frag@%%g
5020/@target_makefile_frag@/r $target_makefile_frag
5021s%@target_makefile_frag@%%g
5022/@alphaieee_frag@/r $alphaieee_frag
5023s%@alphaieee_frag@%%g
5024/@ospace_frag@/r $ospace_frag
5025s%@ospace_frag@%%g
5026s%@SET_LIB_PATH@%$SET_LIB_PATH%g
5027s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
6a9cf61e 5028s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g
a0da8069
NN
5029s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5030s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
a0da8069
NN
5031s%@gcc_version_trigger@%$gcc_version_trigger%g
5032s%@gcc_version@%$gcc_version%g
5033s%@tooldir@%$tooldir%g
5034s%@build_tooldir@%$build_tooldir%g
5035s%@GDB_TK@%$GDB_TK%g
5036s%@gxx_include_dir@%$gxx_include_dir%g
5037s%@libstdcxx_incdir@%$libstdcxx_incdir%g
a0da8069 5038s%@build_configargs@%$build_configargs%g
6a9cf61e 5039s%@build_configdirs@%$build_configdirs%g
a0da8069
NN
5040s%@host_configargs@%$host_configargs%g
5041s%@configdirs@%$configdirs%g
a0da8069
NN
5042s%@target_configargs@%$target_configargs%g
5043s%@target_configdirs@%$target_configdirs%g
a0da8069 5044s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
a0da8069 5045s%@config_shell@%$config_shell%g
859789af
AC
5046s%@AR@%$AR%g
5047s%@ncn_cv_AR@%$ncn_cv_AR%g
5048s%@AS@%$AS%g
5049s%@ncn_cv_AS@%$ncn_cv_AS%g
5050s%@DLLTOOL@%$DLLTOOL%g
5051s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5052s%@LD@%$LD%g
5053s%@ncn_cv_LD@%$ncn_cv_LD%g
5054s%@NM@%$NM%g
5055s%@ncn_cv_NM@%$ncn_cv_NM%g
5056s%@RANLIB@%$RANLIB%g
5057s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5058s%@WINDRES@%$WINDRES%g
5059s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5060s%@OBJCOPY@%$OBJCOPY%g
5061s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5062s%@OBJDUMP@%$OBJDUMP%g
5063s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
a0da8069 5064s%@CXX@%$CXX%g
5fbad20a 5065s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
54752a6b
NN
5066s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5067s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5068s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5069s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5070s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5071s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5072s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5073s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5074s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5075s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5076s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5077s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5078s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5079s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
a0da8069
NN
5080s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5081s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5082s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5083s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4b1cb4fe 5084s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
a0da8069
NN
5085s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5086s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5087s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5088s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
54752a6b
NN
5089s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5090s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5091s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5092s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5093s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5094s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5095s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
3d5e36ae
AO
5096s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5097s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5098s%@MAINT@%$MAINT%g
1d39f329 5099s%@stage1_cflags@%$stage1_cflags%g
dfdffa2c
PB
5100s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5101s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
1a6f2dc7 5102s%@stage2_werror_flag@%$stage2_werror_flag%g
a0da8069
NN
5103
5104CEOF
5105EOF
252b5132 5106
a0da8069
NN
5107cat >> $CONFIG_STATUS <<\EOF
5108
5109# Split the substitutions into bite-sized pieces for seds with
5110# small command number limits, like on Digital OSF/1 and HP-UX.
5111ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5112ac_file=1 # Number of current file.
5113ac_beg=1 # First line for current file.
5114ac_end=$ac_max_sed_cmds # Line after last line for current file.
5115ac_more_lines=:
5116ac_sed_cmds=""
5117while $ac_more_lines; do
5118 if test $ac_beg -gt 1; then
5119 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5120 else
5121 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
852e5f18 5122 fi
a0da8069
NN
5123 if test ! -s conftest.s$ac_file; then
5124 ac_more_lines=false
5125 rm -f conftest.s$ac_file
5126 else
5127 if test -z "$ac_sed_cmds"; then
5128 ac_sed_cmds="sed -f conftest.s$ac_file"
5129 else
5130 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5131 fi
5132 ac_file=`expr $ac_file + 1`
5133 ac_beg=$ac_end
5134 ac_end=`expr $ac_end + $ac_max_sed_cmds`
852e5f18 5135 fi
a0da8069
NN
5136done
5137if test -z "$ac_sed_cmds"; then
5138 ac_sed_cmds=cat
852e5f18 5139fi
a0da8069 5140EOF
252b5132 5141
a0da8069 5142cat >> $CONFIG_STATUS <<EOF
252b5132 5143
a0da8069
NN
5144CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5145EOF
5146cat >> $CONFIG_STATUS <<\EOF
5147for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5149 case "$ac_file" in
5150 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5151 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5152 *) ac_file_in="${ac_file}.in" ;;
5153 esac
252b5132 5154
a0da8069 5155 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
252b5132 5156
a0da8069
NN
5157 # Remove last slash and all that follows it. Not all systems have dirname.
5158 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5160 # The file is in a subdirectory.
5161 test ! -d "$ac_dir" && mkdir "$ac_dir"
5162 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5163 # A "../" for each directory in $ac_dir_suffix.
5164 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5165 else
5166 ac_dir_suffix= ac_dots=
5167 fi
252b5132 5168
a0da8069
NN
5169 case "$ac_given_srcdir" in
5170 .) srcdir=.
5171 if test -z "$ac_dots"; then top_srcdir=.
5172 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5173 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5174 *) # Relative path.
5175 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5176 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5177 esac
252b5132 5178
e5c3f801
NN
5179 case "$ac_given_INSTALL" in
5180 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5181 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5182 esac
252b5132 5183
a0da8069
NN
5184 echo creating "$ac_file"
5185 rm -f "$ac_file"
5186 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5187 case "$ac_file" in
5188 *Makefile*) ac_comsub="1i\\
5189# $configure_input" ;;
5190 *) ac_comsub= ;;
5191 esac
252b5132 5192
c148b4cb
CV
5193 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5194 sed -e "$ac_comsub
5195s%@configure_input@%$configure_input%g
5196s%@srcdir@%$srcdir%g
5197s%@top_srcdir@%$top_srcdir%g
5198s%@INSTALL@%$INSTALL%g
5199" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5200fi; done
5201rm -f conftest.s*
5202
5203EOF
5204cat >> $CONFIG_STATUS <<EOF
5205
5206EOF
5207cat >> $CONFIG_STATUS <<\EOF
5208
5209exit 0
5210EOF
5211chmod +x $CONFIG_STATUS
5212rm -fr confdefs* $ac_clean_files
5213test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5214
This page took 0.479402 seconds and 4 git commands to generate.