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