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