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