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