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