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