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