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