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