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