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