Fix typo. Name of fourth arg is 'fndecl' not 'indirect'. Update comment
[official-gcc.git] / configure
blob58910e06b68591f4a1773afcb05eb626fc35058b
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --disable-serial-[{host,target,build}-]configure
16 Don't force sequential configuration of
17 sub-packages for the host, target or build
18 machine, or of any sub-packages at all"
19 ac_help="$ac_help
20 --enable-maintainer-mode enable make rules and dependencies not useful
21 (and sometimes confusing) to the casual installer"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
26 build=NONE
27 cache_file=./config.cache
28 exec_prefix=NONE
29 host=NONE
30 no_create=
31 nonopt=NONE
32 no_recursion=
33 prefix=NONE
34 program_prefix=NONE
35 program_suffix=NONE
36 program_transform_name=s,x,x,
37 silent=
38 site=
39 sitefile=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
65 ac_prev=
66 for ac_option
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
72 ac_prev=
73 continue
76 case "$ac_option" in
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 *) ac_optarg= ;;
79 esac
81 # Accept the important Cygnus configure options, so we can diagnose typos.
83 case "$ac_option" in
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
86 ac_prev=bindir ;;
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
91 ac_prev=build ;;
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 build="$ac_optarg" ;;
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97 ac_prev=cache_file ;;
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103 ac_prev=datadir ;;
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105 | --da=*)
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 case "$ac_option" in
125 *=*) ;;
126 *) ac_optarg=yes ;;
127 esac
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
141 with_gas=yes ;;
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
146 cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --site-file=FILE use FILE as the site file
155 --version print the version of autoconf that created configure
156 Directory 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
181 cat << EOF
182 Host 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]
186 Features 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
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
197 exit 0 ;;
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
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" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
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" ;;
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" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
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 ;;
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" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 ac_prev=prefix ;;
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
301 silent=yes ;;
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" ;;
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" ;;
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
325 -site-file | --site-file | --site-fil | --site-fi | --site-f)
326 ac_prev=sitefile ;;
327 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
328 sitefile="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 nonopt="$ac_option"
407 esac
408 done
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
429 exec 5>./config.log
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=move-if-change
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
482 else
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$sitefile"; then
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 else
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 else
504 CONFIG_SITE="$sitefile"
506 for ac_site_file in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
509 . "$ac_site_file"
511 done
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
515 . $cache_file
516 else
517 echo "creating cache $cache_file"
518 > $cache_file
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
528 ac_exeext=
529 ac_objext=o
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534 ' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
538 else
539 ac_n= ac_c='\c' ac_t=
544 ac_aux_dir=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install-sh -c"
549 break
550 elif test -f $ac_dir/install.sh; then
551 ac_aux_dir=$ac_dir
552 ac_install_sh="$ac_aux_dir/install.sh -c"
553 break
555 done
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
565 # The inputs are:
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # The rules are:
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # same time.
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---*---* | *---NONE---* | *---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
582 esac
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
593 host_alias=$host
594 case "$host_alias" in
595 NONE)
596 case $nonopt in
597 NONE)
598 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 fi ;;
601 *) host_alias=$nonopt ;;
602 esac ;;
603 esac
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
614 target_alias=$target
615 case "$target_alias" in
616 NONE)
617 case $nonopt in
618 NONE) target_alias=$host_alias ;;
619 *) target_alias=$nonopt ;;
620 esac ;;
621 esac
623 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
632 build_alias=$build
633 case "$build_alias" in
634 NONE)
635 case $nonopt in
636 NONE) build_alias=$host_alias ;;
637 *) build_alias=$nonopt ;;
638 esac ;;
639 esac
641 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
649 NONENONEs,x,x, &&
650 program_prefix=${target_alias}-
652 if test "$program_transform_name" = s,x,x,; then
653 program_transform_name=
654 else
655 # Double any \ or $. echo might interpret backslashes.
656 cat <<\EOF_SED > conftestsed
657 s,\\,\\\\,g; s,\$,$$,g
658 EOF_SED
659 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
660 rm -f conftestsed
662 test "$program_prefix" != NONE &&
663 program_transform_name="s,^,${program_prefix},; $program_transform_name"
664 # Use a double $ so make ignores it.
665 test "$program_suffix" != NONE &&
666 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
668 # sed with no file args requires a program.
669 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
672 # Autoconf M4 include file defining utility macros for complex Canadian
673 # cross builds.
675 ####
676 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
677 # or AC_INIT.
678 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
680 ####
681 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
682 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
683 # Code is pretty much lifted from autoconf2.53.
687 ####
688 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
689 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
693 ####
694 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
695 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
699 # clear some things potentially inherited from environment.
701 enable_threads=no
702 enable_shared=no
703 enable_libstdcxx_v3=yes
704 floating_point=default
705 gas=default
706 x11=default
708 ### we might need to use some other shell than /bin/sh for running subshells
709 ### If we are on Windows, search for the shell. This will permit people
710 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
711 ### without also having to set CONFIG_SHELL. This code will work when
712 ### using bash, which sets OSTYPE.
713 case "${OSTYPE}" in
714 *win32*)
715 if test x${CONFIG_SHELL} = x ; then
716 if test ! -f /bin/sh ; then
717 if test x${SHELL} != x && test -f ${SHELL} ; then
718 CONFIG_SHELL=${SHELL}
719 export CONFIG_SHELL
720 else
721 for prog in sh sh.exe bash bash.exe; do
722 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
723 for dir in $PATH; do
724 test -z "$dir" && dir=.
725 if test -f $dir/$prog; then
726 CONFIG_SHELL=$dir/$prog
727 export CONFIG_SHELL
728 break
730 done
731 IFS="$save_ifs"
732 test -n "${CONFIG_SHELL}" && break
733 done
738 esac
740 config_shell=${CONFIG_SHELL-/bin/sh}
742 ## this is a little touchy and won't always work, but...
744 ## if the argv[[0]] starts with a slash then it is an absolute name that can (and
745 ## must) be used as is.
747 ## otherwise, if argv[[0]] has no slash in it, we can assume that it is on the
748 ## path. Since PATH might include "." we also add `pwd` to the end of PATH.
751 progname=$0
752 # if PWD already has a value, it is probably wrong.
753 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
755 # Export original configure arguments for use by sub-configures.
756 TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@"
759 moveifchange=${srcdir}/move-if-change
761 # Set srcdir to "." if that's what it is.
762 # This is important for multilib support.
763 pwd=`${PWDCMD-pwd}`
764 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
765 if test "${pwd}" = "${srcpwd}" ; then
766 srcdir=.
769 topsrcdir=$srcpwd
771 extra_host_args=
772 # Define the trigger file to make sure configure will re-run whenever
773 # the gcc version number changes.
774 if test "${with_gcc_version_trigger+set}" = set ; then
775 gcc_version_trigger="$with_gcc_version_trigger"
776 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
777 else
778 # If gcc's sources are available, define the trigger file.
779 if test -f ${topsrcdir}/gcc/version.c ; then
780 gcc_version_trigger=${topsrcdir}/gcc/version.c
781 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
782 case "$ac_configure_args" in
783 *--with-gcc-version-trigger=$gcc_version_trigger* )
786 # Add to all subconfigure arguments: build, host, and target.
787 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
789 esac
793 ### To add a new directory to the tree, first choose whether it is a target
794 ### or a host dependent tool. Then put it into the appropriate list
795 ### (library or tools, host or target), doing a dependency sort.
797 # Subdirs will be configured in the order listed in build_configdirs,
798 # configdirs, or target_configdirs; see the serialization section below.
800 # Dependency sorting is only needed when *configuration* must be done in
801 # a particular order. In all cases a dependency should be specified in
802 # the Makefile, whether or not it's implicitly specified here.
804 # Double entries in build_configdirs, configdirs, or target_configdirs may
805 # cause circular dependencies and break everything horribly.
807 # these libraries are used by various programs built for the host environment
809 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
811 libstdcxx_version="target-libstdc++-v3"
813 # these tools are built for the host environment
814 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
815 # know that we are building the simulator.
816 # binutils, gas and ld appear in that order because it makes sense to run
817 # "make check" in that particular order.
818 host_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"
820 # libgcj represents the runtime libraries only used by gcj.
821 libgcj="target-libffi \
822 target-boehm-gc \
823 target-zlib \
824 target-qthreads \
825 target-libjava"
827 # these libraries are built for the target environment, and are built after
828 # the host libraries and the host tools (which may be a cross compiler)
830 target_libs="target-libiberty \
831 target-libgloss \
832 target-newlib \
833 ${libstdcxx_version} \
834 target-libf2c \
835 ${libgcj} \
836 target-libobjc"
838 # these tools are built using the target libs, and are intended to run only
839 # in the target environment
841 # note: any program that *uses* libraries that are in the "target_libs"
842 # list belongs in this list. those programs are also very likely
843 # candidates for the "native_only" list which follows
845 target_tools="target-examples target-groff target-gperf target-rda"
847 ################################################################################
849 ## All tools belong in one of the four categories, and are assigned above
850 ## We assign ${configdirs} this way to remove all embedded newlines. This
851 ## is important because configure will choke if they ever get through.
852 ## ${configdirs} is directories we build using the host tools.
853 ## ${target_configdirs} is directories we build using the target tools.
855 configdirs=`echo ${host_libs} ${host_tools}`
856 target_configdirs=`echo ${target_libs} ${target_tools}`
858 ################################################################################
860 srcname="gnu development package"
862 # This gets set non-empty for some net releases of packages.
863 appdirs=""
865 # Define is_cross_compiler to save on calls to 'test'.
866 is_cross_compiler=
867 if test x"${host}" = x"${target}" ; then
868 is_cross_compiler=no
869 else
870 is_cross_compiler=yes
873 # We always want to use the same name for this directory, so that dejagnu
874 # can reliably find it.
875 target_subdir=${target_alias}
877 if test ! -d ${target_subdir} ; then
878 if mkdir ${target_subdir} ; then true
879 else
880 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${target_subdir}" 1>&2
881 exit 1
885 build_prefix=build-
886 build_subdir=${build_prefix}${build_alias}
888 if test x"${build_alias}" != x"${host}" ; then
889 if test ! -d ${build_subdir} ; then
890 if mkdir ${build_subdir} ; then true
891 else
892 echo "'*** could not make ${PWD=`${PWDCMD-pwd}`}/${build_subdir}" 1>&2
893 exit 1
898 # Skipdirs are removed silently.
899 skipdirs=
900 # Noconfigdirs are removed loudly.
901 noconfigdirs=""
903 use_gnu_ld=
904 # Make sure we don't let GNU ld be added if we didn't want it.
905 if test x$with_gnu_ld = xno ; then
906 use_gnu_ld=no
907 noconfigdirs="$noconfigdirs ld"
910 use_gnu_as=
911 # Make sure we don't let GNU as be added if we didn't want it.
912 if test x$with_gnu_as = xno ; then
913 use_gnu_as=no
914 noconfigdirs="$noconfigdirs gas"
917 # some tools are so dependent upon X11 that if we're not building with X,
918 # it's not even worth trying to configure, much less build, that tool.
920 case ${with_x} in
921 yes | "") ;; # the default value for this tree is that X11 is available
923 skipdirs="${skipdirs} tk tix itcl libgui"
924 # We won't be able to build gdbtk without X.
925 enable_gdbtk=no
927 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
928 esac
930 # Some tools are only suitable for building in a "native" situation.
931 # Remove these if host!=target.
932 native_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"
934 # Similarly, some are only suitable for cross toolchains.
935 # Remove these if host=target.
936 cross_only="target-libgloss target-newlib target-opcodes"
938 case $is_cross_compiler in
939 no) skipdirs="${skipdirs} ${cross_only}" ;;
940 yes) skipdirs="${skipdirs} ${native_only}" ;;
941 esac
943 # If both --with-headers and --with-libs are specified, default to
944 # --without-newlib.
945 if test x"${with_headers}" != x && test x"${with_libs}" != x ; then
946 if test x"${with_newlib}" = x ; then
947 with_newlib=no
951 # Recognize --with-newlib/--without-newlib.
952 case ${with_newlib} in
953 no) skipdirs="${skipdirs} target-newlib" ;;
954 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
955 esac
957 # Configure extra directories which are host specific
959 case "${host}" in
960 *-cygwin*)
961 configdirs="$configdirs libtermcap" ;;
962 esac
964 # Remove more programs from consideration, based on the host or
965 # target this usually means that a port of the program doesn't
966 # exist yet.
968 case "${host}" in
969 hppa*64*-*-*)
970 noconfigdirs="$noconfigdirs byacc"
972 i[3456]86-*-vsta)
973 noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
975 i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
976 noconfigdirs="tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
978 i[3456]86-*-mingw32*)
979 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
980 noconfigdirs="expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
982 i[3456]86-*-beos*)
983 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
985 *-*-cygwin*)
986 noconfigdirs="autoconf automake send-pr rcs guile perl"
988 *-*-netbsd*)
989 noconfigdirs="rcs"
991 ppc*-*-pe)
992 noconfigdirs="patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
994 powerpc-*-beos*)
995 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
997 *-*-darwin*)
998 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1000 esac
1002 # Save it here so that, even in case of --enable-libgcj, if the Java
1003 # front-end isn't enabled, we still get libgcj disabled.
1004 libgcj_saved=$libgcj
1005 case $enable_libgcj in
1006 yes)
1007 # If we reset it here, it won't get added to noconfigdirs in the
1008 # target-specific build rules, so it will be forcibly enabled
1009 # (unless the Java language itself isn't enabled).
1010 libgcj=
1013 # Make sure we get it printed in the list of not supported target libs.
1014 noconfigdirs="$noconfigdirs ${libgcj}"
1016 esac
1018 case "${target}" in
1019 *-*-chorusos)
1020 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1022 *-*-darwin*)
1023 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1024 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1026 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1027 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1029 *-*-kaos*)
1030 # Remove unsupported stuff on all kaOS configurations.
1031 skipdirs="target-libiberty ${libgcj} ${libstdcxx_version} target-libf2c target-librx"
1032 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1033 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1034 noconfigdirs="$noconfigdirs target-libgloss"
1036 *-*-netbsd*)
1037 # Skip some stuff on all NetBSD configurations.
1038 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1040 # Skip some stuff that's unsupported on some NetBSD configurations.
1041 case "${target}" in
1042 i*86-*-netbsdelf*) ;;
1044 noconfigdirs="$noconfigdirs ${libgcj}"
1046 esac
1048 *-*-netware)
1049 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss ${libgcj}"
1051 *-*-rtems*)
1052 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1053 case ${target} in
1054 h8300*-*-* | h8500-*-*)
1055 noconfigdirs="$noconfigdirs target-libf2c"
1057 *) ;;
1058 esac
1060 *-*-vxworks*)
1061 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1063 alpha*-dec-osf*)
1064 # ld works, but does not support shared libraries.
1065 # newlib is not 64 bit ready. I'm not sure about fileutils.
1066 # gas doesn't generate exception information.
1067 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1069 alpha*-*-*vms*)
1070 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1072 alpha*-*-linux*)
1073 # newlib is not 64 bit ready
1074 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1076 alpha*-*-freebsd*)
1077 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1079 alpha*-*-*)
1080 # newlib is not 64 bit ready
1081 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1083 sh-*-linux*)
1084 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1086 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1087 noconfigdirs="$noconfigdirs ${libgcj}"
1088 noconfigdirs="$noconfigdirs target-examples"
1089 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1090 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1091 noconfigdirs="$noconfigdirs expect dejagnu"
1092 # the C++ libraries don't build on top of CE's C libraries
1093 noconfigdirs="$noconfigdirs ${libstdcxx_version}"
1094 noconfigdirs="$noconfigdirs target-newlib"
1095 case "${host}" in
1096 *-*-cygwin*) ;; # keep gdb and readline
1097 *) noconfigdirs="$noconfigdirs gdb readline ${libstdcxx_version}"
1099 esac
1101 arc-*-*)
1102 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1104 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1105 noconfigdirs="$noconfigdirs ${libgcj}"
1107 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1108 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1110 arm-*-pe*)
1111 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1113 arm-*-oabi*)
1114 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1116 thumb-*-coff)
1117 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1119 thumb-*-elf)
1120 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1122 thumb-*-oabi)
1123 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1125 thumb-*-pe)
1126 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1128 arm-*-riscix*)
1129 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1131 avr-*-*)
1132 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1134 c4x-*-* | tic4x-*-*)
1135 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1137 c54x*-*-* | tic54x-*-*)
1138 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} gcc gdb newlib"
1140 cris-*-*)
1141 noconfigdirs="$noconfigdirs ${libgcj}"
1143 d10v-*-*)
1144 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1146 d30v-*-*)
1147 noconfigdirs="$noconfigdirs ${libgcj}"
1149 fr30-*-elf*)
1150 noconfigdirs="$noconfigdirs ${libgcj}"
1152 frv-*-*)
1153 noconfigdirs="$noconfigdirs ${libgcj}"
1155 h8300*-*-*)
1156 noconfigdirs="$noconfigdirs target-libgloss"
1158 h8500-*-*)
1159 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj} target-libf2c"
1161 hppa*64*-*-linux* | parisc*64*-*-linux*)
1162 # In this case, it's because the hppa64-linux target is for
1163 # the kernel only at this point and has no libc, and thus no
1164 # headers, crt*.o, etc., all of which are needed by these.
1165 noconfigdirs="$noconfigdirs target-zlib"
1167 hppa*-*-*elf* | \
1168 parisc*-*-linux* | hppa*-*-linux* | \
1169 hppa*-*-lites* | \
1170 hppa*-*-openbsd* | \
1171 hppa*64*-*-*)
1172 noconfigdirs="$noconfigdirs ${libgcj}"
1173 # Do configure ld/binutils/gas for this case.
1175 hppa*-*-*)
1176 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1177 # build on HP-UX 10.20.
1178 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1180 ia64*-*-elf*)
1181 # No gdb support yet.
1182 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1184 ia64*-**-hpux*)
1185 # No gdb or ld support yet.
1186 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb ld"
1188 i[3456]86-*-coff | i[3456]86-*-elf)
1189 noconfigdirs="$noconfigdirs ${libgcj}"
1191 i[34567]86-*-freebsd*)
1192 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1194 i[3456]86-*-linux*)
1195 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1196 # not build java stuff by default.
1197 case "${target}" in
1198 *-*-*libc1*)
1199 noconfigdirs="$noconfigdirs ${libgcj}";;
1200 esac
1202 # This section makes it possible to build newlib natively on linux.
1203 # If we are using a cross compiler then don't configure newlib.
1204 if test x${is_cross_compiler} != xno ; then
1205 noconfigdirs="$noconfigdirs target-newlib"
1207 noconfigdirs="$noconfigdirs target-libgloss"
1208 # If we are not using a cross compiler, do configure newlib.
1209 # Note however, that newlib will only be configured in this situation
1210 # if the --with-newlib option has been given, because otherwise
1211 # 'target-newlib' will appear in skipdirs.
1213 i[3456]86-*-mingw32*)
1214 target_configdirs="$target_configdirs target-mingw"
1215 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1217 # Can't build gdb for mingw32 if not native.
1218 case "${host}" in
1219 i[3456]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1220 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1222 esac
1224 *-*-cygwin*)
1225 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1226 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1227 # always build newlib.
1228 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1230 # Can't build gdb for Cygwin if not native.
1231 case "${host}" in
1232 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1233 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1235 esac
1237 i[3456]86-*-pe)
1238 noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss ${libgcj}"
1240 i[3456]86-*-sco3.2v5*)
1241 # The linker does not yet know about weak symbols in COFF,
1242 # and is not configured to handle mixed ELF and COFF.
1243 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1245 i[3456]86-*-sco*)
1246 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1248 i[3456]86-*-solaris2*)
1249 noconfigdirs="$noconfigdirs target-libgloss"
1251 i[3456]86-*-sysv4*)
1252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1254 i[3456]86-*-beos*)
1255 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1257 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1258 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1260 m68k-*-elf*)
1261 noconfigdirs="$noconfigdirs ${libgcj}"
1263 m68k-*-coff*)
1264 noconfigdirs="$noconfigdirs ${libgcj}"
1266 mcore-*-pe*)
1267 # The EPOC C++ environment does not support exceptions or rtti,
1268 # and so building libstdc++-v3 tends not to always work.
1269 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1271 mmix-*-*)
1272 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1274 mn10200-*-*)
1275 noconfigdirs="$noconfigdirs ${libgcj}"
1277 mn10300-*-*)
1278 noconfigdirs="$noconfigdirs ${libgcj}"
1280 powerpc-*-aix*)
1281 # copied from rs6000-*-* entry
1282 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1284 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1285 target_configdirs="$target_configdirs target-winsup"
1286 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1287 # always build newlib.
1288 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1290 # This is temporary until we can link against shared libraries
1291 powerpcle-*-solaris*)
1292 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1294 powerpc-*-beos*)
1295 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1297 powerpc-*-eabi)
1298 noconfigdirs="$noconfigdirs ${libgcj}"
1300 powerpc64*-*-linux*)
1301 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1302 # not yet ported.
1303 noconfigdirs="$noconfigdirs target-libffi"
1305 rs6000-*-lynxos*)
1306 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1308 rs6000-*-aix*)
1309 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1311 rs6000-*-*)
1312 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1314 m68k-apollo-*)
1315 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1317 mips*-*-irix5*)
1318 # The GNU linker does not support shared libraries.
1319 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1321 mips*-*-irix6*)
1322 # Linking libjava exceeds command-line length limits on at least
1323 # IRIX 6.2, but not on IRIX 6.5.
1324 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1325 # <oldham@codesourcery.com>
1326 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1328 mips*-dec-bsd*)
1329 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1331 mips*-*-bsd*)
1332 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1334 mipstx39-*-*)
1335 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1337 mips*-*-linux*)
1338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1340 mips*-*-*)
1341 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1343 romp-*-*)
1344 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1346 sh-*-*)
1347 case "${host}" in
1348 i[3456]86-*-vsta) ;; # don't add gprof back in
1349 i[3456]86-*-go32*) ;; # don't add gprof back in
1350 i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in
1351 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1352 esac
1353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1355 sh64-*-*)
1356 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1358 sparc-*-elf*)
1359 noconfigdirs="$noconfigdirs ${libgcj}"
1361 sparc64-*-elf*)
1362 noconfigdirs="$noconfigdirs ${libgcj}"
1364 sparclite-*-*)
1365 noconfigdirs="$noconfigdirs ${libgcj}"
1367 sparc-*-sunos4*)
1368 noconfigdirs="$noconfigdirs ${libgcj}"
1369 if test x${is_cross_compiler} != xno ; then
1370 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1371 else
1372 use_gnu_ld=no
1375 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1377 v810-*-*)
1378 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld ${libstdcxx_version} opcodes target-libgloss ${libgcj}"
1380 v850-*-*)
1381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1383 v850e-*-*)
1384 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1386 v850ea-*-*)
1387 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1389 vax-*-vms)
1390 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1392 vax-*-*)
1393 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1395 ip2k-*-*)
1396 noconfigdirs="$noconfigdirs target-libiberty ${libstdcxx_version} ${libgcj}"
1398 *-*-linux*)
1399 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1401 *-*-lynxos*)
1402 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1404 *-*-*)
1405 noconfigdirs="$noconfigdirs ${libgcj}"
1407 esac
1409 # If we aren't building newlib, then don't build libgloss, since libgloss
1410 # depends upon some newlib header files.
1411 case "${noconfigdirs}" in
1412 *target-libgloss*) ;;
1413 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1414 esac
1416 # Figure out what language subdirectories are present.
1417 # Look if the user specified --enable-languages="..."; if not, use
1418 # the environment variable $LANGUAGES if defined. $LANGUAGES might
1419 # go away some day.
1420 # NB: embedded tabs in this IF block -- do not untabify
1421 if test x"${enable_languages+set}" != xset; then
1422 if test x"${LANGUAGES+set}" = xset; then
1423 enable_languages="${LANGUAGES}"
1424 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
1425 else
1426 enable_languages=all
1428 else
1429 if test x"${enable_languages}" = x ||
1430 test x"${enable_languages}" = xyes;
1431 then
1432 echo configure.in: --enable-languages needs at least one language argument 1>&2
1433 exit 1
1436 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
1438 # First scan to see if an enabled language requires some other language.
1439 # We assume that a given config-lang.in will list all the language
1440 # front ends it requires, even if some are required indirectly.
1441 for lang in ${srcdir}/gcc/*/config-lang.in ..
1443 case $lang in
1446 # The odd quoting in the next line works around
1447 # an apparent bug in bash 1.12 on linux.
1448 ${srcdir}/gcc/[*]/config-lang.in)
1451 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
1452 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
1453 for other in $this_lang_requires
1455 case ,${enable_languages}, in
1456 *,$other,*)
1458 *,all,*)
1460 *,$lang_alias,*)
1461 echo " \`$other' language required by \`$lang_alias'; enabling" 1>&2
1462 enable_languages="$enable_languages,$other"
1464 esac
1465 done
1467 esac
1468 done
1470 subdirs=
1471 for lang in ${srcdir}/gcc/*/config-lang.in ..
1473 case $lang in
1474 ..) ;;
1475 # The odd quoting in the next line works around
1476 # an apparent bug in bash 1.12 on linux.
1477 ${srcdir}/gcc/[*]/config-lang.in) ;;
1479 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
1480 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
1481 this_lang_dirs=`sed -n -e 's,^lang_dirs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_dirs=\([^ ]*\).*$,\1,p' $lang`
1482 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
1483 if test "x$lang_alias" = x
1484 then
1485 echo "$lang doesn't set \$language." 1>&2
1486 exit 1
1488 case ${build_by_default},${enable_languages}, in
1489 *,$lang_alias,*) add_this_lang=yes ;;
1490 no,*) add_this_lang=no ;;
1491 *,all,*) add_this_lang=yes ;;
1492 *) add_this_lang=no ;;
1493 esac
1494 if test x"${add_this_lang}" = xyes; then
1495 eval target_libs='"$target_libs "'\"$this_lang_libs\"
1496 else
1497 eval noconfigdirs='"$noconfigdirs "'\"$this_lang_libs $this_lang_dirs\"
1500 esac
1501 done
1503 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
1504 # $target_configdirs.
1505 # If we have the source for $noconfigdirs entries, add them to $notsupp.
1507 notsupp=""
1508 for dir in . $skipdirs $noconfigdirs ; do
1509 dirname=`echo $dir | sed -e s/target-//g`
1510 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1511 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
1512 if test -r $srcdir/$dirname/configure ; then
1513 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1514 true
1515 else
1516 notsupp="$notsupp $dir"
1520 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1521 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
1522 if test -r $srcdir/$dirname/configure ; then
1523 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1524 true
1525 else
1526 notsupp="$notsupp $dir"
1530 done
1532 # Sometimes the tools are distributed with libiberty but with no other
1533 # libraries. In that case, we don't want to build target-libiberty.
1534 if test -n "${target_configdirs}" ; then
1535 others=
1536 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
1537 if test "$i" != "libiberty" ; then
1538 if test -r $srcdir/$i/configure ; then
1539 others=yes;
1540 break;
1543 done
1544 if test -z "${others}" ; then
1545 target_configdirs=
1549 # Quietly strip out all directories which aren't configurable in this tree.
1550 # This relies on all configurable subdirectories being autoconfiscated, which
1551 # is now the case.
1552 configdirs_all="$configdirs"
1553 configdirs=
1554 for i in ${configdirs_all} ; do
1555 if test -f ${srcdir}/$i/configure ; then
1556 configdirs="${configdirs} $i"
1558 done
1559 target_configdirs_all="$target_configdirs"
1560 target_configdirs=
1561 for i in ${target_configdirs_all} ; do
1562 j=`echo $i | sed -e s/target-//g`
1563 if test -f ${srcdir}/$j/configure ; then
1564 target_configdirs="${target_configdirs} $i"
1566 done
1568 # Produce a warning message for the subdirs we can't configure.
1569 # This isn't especially interesting in the Cygnus tree, but in the individual
1570 # FSF releases, it's important to let people know when their machine isn't
1571 # supported by the one or two programs in a package.
1573 if test -n "${notsupp}" && test -z "${norecursion}" ; then
1574 # If $appdirs is non-empty, at least one of those directories must still
1575 # be configured, or we error out. (E.g., if the gas release supports a
1576 # specified target in some subdirs but not the gas subdir, we shouldn't
1577 # pretend that all is well.)
1578 if test -n "$appdirs" ; then
1579 for dir in $appdirs ; do
1580 if test -r $dir/Makefile.in ; then
1581 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1582 appdirs=""
1583 break
1585 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
1586 appdirs=""
1587 break
1590 done
1591 if test -n "$appdirs" ; then
1592 echo "*** This configuration is not supported by this package." 1>&2
1593 exit 1
1596 # Okay, some application will build, or we don't care to check. Still
1597 # notify of subdirs not getting built.
1598 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
1599 echo " ${notsupp}" 1>&2
1600 echo " (Any other directories should still work fine.)" 1>&2
1603 case "$host" in
1604 *msdosdjgpp*)
1605 enable_gdbtk=no ;;
1606 esac
1608 copy_dirs=
1610 # Handle --with-headers=XXX. If the value is not "yes", the contents of
1611 # the named directory are copied to $(tooldir)/sys-include.
1612 if test x"${with_headers}" != x ; then
1613 if test x${is_cross_compiler} = xno ; then
1614 echo 1>&2 '***' --with-headers is only supported when cross compiling
1615 exit 1
1617 if test x"${with_headers}" != xyes ; then
1618 case "${exec_prefixoption}" in
1619 "") x=${prefix} ;;
1620 *) x=${exec_prefix} ;;
1621 esac
1622 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
1626 # Handle --with-libs=XXX. If the value is not "yes", the contents of
1627 # the name directories are copied to $(tooldir)/lib. Multiple directories
1628 # are permitted.
1629 if test x"${with_libs}" != x ; then
1630 if test x${is_cross_compiler} = xno ; then
1631 echo 1>&2 '***' --with-libs is only supported when cross compiling
1632 exit 1
1634 if test x"${with_libs}" != xyes ; then
1635 # Copy the libraries in reverse order, so that files in the first named
1636 # library override files in subsequent libraries.
1637 case "${exec_prefixoption}" in
1638 "") x=${prefix} ;;
1639 *) x=${exec_prefix} ;;
1640 esac
1641 for l in ${with_libs}; do
1642 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
1643 done
1647 # Handle ${copy_dirs}
1648 set fnord ${copy_dirs}
1649 shift
1650 while test $# != 0 ; do
1651 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
1653 else
1654 echo Copying $1 to $2
1656 # Use the install script to create the directory and all required
1657 # parent directories.
1658 if test -d $2 ; then
1660 else
1661 echo >config.temp
1662 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
1665 # Copy the directory, assuming we have tar.
1666 # FIXME: Should we use B in the second tar? Not all systems support it.
1667 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
1669 # It is the responsibility of the user to correctly adjust all
1670 # symlinks. If somebody can figure out how to handle them correctly
1671 # here, feel free to add the code.
1673 echo $1 > $2/COPIED
1675 shift; shift
1676 done
1678 # Work in distributions that contain no compiler tools, like Autoconf.
1679 tentative_cc=""
1680 host_makefile_frag=/dev/null
1681 if test -d ${srcdir}/config ; then
1682 case "${host}" in
1683 m68k-hp-hpux*)
1684 # Avoid "too much defining" errors from HPUX compiler.
1685 tentative_cc="cc -Wp,-H256000"
1686 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1687 # If it's HP/UX ar, this should be harmless.
1688 RANLIB="ar ts"
1690 m68k-apollo-sysv*)
1691 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1693 m68k-apollo-bsd*)
1694 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1695 # chokes on bfd, the compiler won't let you assign integers to enums, and
1696 # other problems. Defining CC to gcc is a questionable way to say "don't use
1697 # the apollo compiler" (the preferred version of GCC could be called cc,
1698 # or whatever), but I'm not sure leaving CC as cc is any better...
1699 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1700 # Used to have BISON=yacc.
1701 tentative_cc=gcc
1703 m88k-dg-dgux*)
1704 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1705 host_makefile_frag="config/mh-dgux"
1707 m88k-harris-cxux*)
1708 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1709 tentative_cc="cc -Xa"
1710 host_makefile_frag="config/mh-cxux"
1712 m88k-motorola-sysv*)
1714 mips*-dec-ultrix*)
1715 tentative_cc="cc -Wf,-XNg1000"
1716 host_makefile_frag="config/mh-decstation"
1718 mips*-nec-sysv4*)
1719 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1720 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1721 host_makefile_frag="config/mh-necv4"
1723 mips*-sgi-irix4*)
1724 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1725 # environment. Also bump switch table size so that cp-parse will
1726 # compile. Bump string length limit so linker builds.
1727 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1729 mips*-*-sysv4*)
1730 host_makefile_frag="config/mh-sysv4"
1732 mips*-*-sysv*)
1733 # This is for a MIPS running RISC/os 4.52C.
1735 # This is needed for GDB, but needs to be in the top-level make because
1736 # if a library is compiled with the bsd headers and gets linked with the
1737 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1738 # a different size).
1739 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1740 # known except to select the sysv environment. Could we use /proc instead?
1741 # These "sysv environments" and "bsd environments" often end up being a pain.
1743 # This is not part of CFLAGS because perhaps not all C compilers have this
1744 # option.
1745 tentative_cc="cc -systype sysv"
1747 i370-ibm-opened*)
1748 tentative_cc="c89"
1750 i[3456]86-*-sysv5*)
1751 host_makefile_frag="config/mh-sysv5"
1753 i[3456]86-*-dgux*)
1754 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1755 host_makefile_frag="config/mh-dgux386"
1757 i[3456]86-ncr-sysv4.3*)
1758 # The MetaWare compiler will generate a copyright message unless you
1759 # turn it off by adding the -Hnocopyr flag.
1760 tentative_cc="cc -Hnocopyr"
1762 i[3456]86-ncr-sysv4*)
1763 # for an NCR 3000 (i486/SVR4) system.
1764 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1765 # This compiler not only emits obnoxious copyright messages every time
1766 # you run it, but it chokes and dies on a whole bunch of GNU source
1767 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1768 tentative_cc="/usr/ccs/ATT/cc"
1769 host_makefile_frag="config/mh-ncr3000"
1771 i[3456]86-*-sco3.2v5*)
1773 i[3456]86-*-sco*)
1774 # The native C compiler botches some simple uses of const. Unfortunately,
1775 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1776 tentative_cc="cc -Dconst="
1777 host_makefile_frag="config/mh-sco"
1779 i[3456]86-*-udk*)
1780 host_makefile_frag="config/mh-sysv5"
1782 i[3456]86-*-solaris2*)
1783 host_makefile_frag="config/mh-sysv4"
1785 i[3456]86-*-msdosdjgpp*)
1786 host_makefile_frag="config/mh-djgpp"
1788 *-cygwin*)
1789 host_makefile_frag="config/mh-cygwin"
1791 *-mingw32*)
1792 host_makefile_frag="config/mh-mingw32"
1794 *-interix*)
1795 host_makefile_frag="config/mh-interix"
1797 vax-*-ultrix2*)
1798 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1799 tentative_cc=gcc
1801 *-*-solaris2*)
1802 host_makefile_frag="config/mh-solaris"
1804 m68k-sun-sunos*)
1805 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1806 # without overflowing the jump tables (-J says to use a 32 bit table)
1807 tentative_cc="cc -J"
1809 *-hp-hpux*)
1810 tentative_cc="cc -Wp,-H256000"
1812 *-*-hiux*)
1813 tentative_cc="cc -Wp,-H256000"
1815 rs6000-*-lynxos*)
1816 # /bin/cc is less than useful for our purposes. Always use GCC
1817 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1818 host_makefile_frag="config/mh-lynxrs6k"
1820 *-*-lynxos*)
1821 # /bin/cc is less than useful for our purposes. Always use GCC
1822 tentative_cc="/bin/gcc"
1824 *-*-sysv4*)
1825 host_makefile_frag="config/mh-sysv4"
1827 esac
1830 extra_arflags_for_target=
1831 extra_nmflags_for_target=
1832 extra_ranlibflags_for_target=
1833 target_makefile_frag=/dev/null
1834 case "${target}" in
1835 i[3456]86-*-netware*)
1836 target_makefile_frag="config/mt-netware"
1838 powerpc-*-netware*)
1839 target_makefile_frag="config/mt-netware"
1841 *-*-linux*)
1842 target_makefile_frag="config/mt-linux"
1844 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1845 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
1846 # commands to handle both 32-bit and 64-bit objects. These flags are
1847 # harmless if we're using GNU nm or ar.
1848 extra_arflags_for_target=" -X32_64"
1849 extra_nmflags_for_target=" -B -X32_64"
1851 *-*-darwin*)
1852 # ranlib from Darwin requires the -c flag to look at common symbols.
1853 extra_ranlibflags_for_target=" -c"
1855 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
1856 target_makefile_frag="config/mt-wince"
1858 esac
1860 alphaieee_frag=/dev/null
1861 case $target in
1862 alpha*-*-*)
1863 # This just makes sure to use the -mieee option to build target libs.
1864 # This should probably be set individually by each library.
1865 alphaieee_frag="config/mt-alphaieee"
1867 esac
1869 # If --enable-target-optspace always use -Os instead of -O2 to build
1870 # the target libraries, similarly if it is not specified, use -Os
1871 # on selected platforms.
1872 ospace_frag=/dev/null
1873 case "${enable_target_optspace}:${target}" in
1874 yes:*)
1875 ospace_frag="config/mt-ospace"
1877 :d30v-*)
1878 ospace_frag="config/mt-d30v"
1880 :m32r-* | :d10v-* | :fr30-*)
1881 ospace_frag="config/mt-ospace"
1883 no:* | :*)
1886 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
1888 esac
1890 # Set with_gnu_as and with_gnu_ld as appropriate.
1892 # This is done by determining whether or not the appropriate directory
1893 # is available, and by checking whether or not specific configurations
1894 # have requested that this magic not happen.
1896 # The command line options always override the explicit settings in
1897 # configure.in, and the settings in configure.in override this magic.
1899 # If the default for a toolchain is to use GNU as and ld, and you don't
1900 # want to do that, then you should use the --without-gnu-as and
1901 # --without-gnu-ld options for the configure script.
1903 if test x${use_gnu_as} = x &&
1904 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
1905 with_gnu_as=yes
1906 extra_host_args="$extra_host_args --with-gnu-as"
1909 if test x${use_gnu_ld} = x &&
1910 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
1911 with_gnu_ld=yes
1912 extra_host_args="$extra_host_args --with-gnu-ld"
1915 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
1916 # can detect this case.
1918 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
1919 with_newlib=yes
1920 extra_host_args="$extra_host_args --with-newlib"
1923 # We default to --with-shared on platforms where -fpic is meaningless.
1924 # Well, we don't yet, but we will.
1925 if false && test "${host}" = "${target}" && test x${enable_shared} = x ; then
1926 case "${target}" in
1927 alpha*-dec-osf*) enable_shared=yes ;;
1928 alpha*-*-linux*) enable_shared=yes ;;
1929 mips-sgi-irix5*) enable_shared=yes ;;
1930 *) enable_shared=no ;;
1931 esac
1934 case "${enable_shared}" in
1935 yes) shared=yes ;;
1936 no) shared=no ;;
1937 "") shared=no ;;
1938 *) shared=yes ;;
1939 esac
1942 # Default to using --with-stabs for certain targets.
1943 if test x${with_stabs} = x ; then
1944 case "${target}" in
1945 mips*-*-irix6*o32)
1946 with_stabs=yes;
1947 extra_host_args="${extra_host_args} --with-stabs"
1949 mips*-*-irix6*)
1951 mips*-*-* | alpha*-*-osf*)
1952 with_stabs=yes;
1953 extra_host_args="${extra_host_args} --with-stabs"
1955 esac
1958 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
1959 # them automatically.
1960 case "${host}" in
1961 hppa*64*-*-hpux11*)
1962 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
1964 esac
1966 # If we aren't going to be using gcc, see if we can extract a definition
1967 # of CC from the fragment.
1968 # Actually, use the 'pre-extracted' version above.
1969 if test -z "${CC}" && test "${build}" = "${host}" ; then
1970 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1971 found=
1972 for dir in $PATH; do
1973 test -z "$dir" && dir=.
1974 if test -f $dir/gcc; then
1975 found=yes
1976 break
1978 done
1979 IFS="$save_ifs"
1980 if test -z "${found}" && test -n "${tentative_cc}" ; then
1981 CC=$tentative_cc
1985 # Some systems (e.g., one of the i386-aix systems the gas testers are
1986 # using) don't handle "\$" correctly, so don't use it here.
1987 tooldir='$(exec_prefix)'/${target_alias}
1988 build_tooldir=${tooldir}
1990 # Generate a default definition for YACC. This is used if the makefile can't
1991 # locate bison or byacc in objdir.
1993 for prog in 'bison -y' byacc yacc
1995 set dummy $prog; tmp=$2
1996 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1997 for dir in $PATH; do
1998 test -z "$dir" && dir=.
1999 if test -f $dir/$tmp; then
2000 DEFAULT_YACC="$prog"
2001 break
2003 done
2004 IFS="$save_ifs"
2006 test -n "$DEFAULT_YACC" && break
2007 done
2009 # Generate a default definition for M4. This is used if the makefile can't
2010 # locate m4 in objdir.
2012 for prog in gm4 gnum4 m4
2014 set dummy $prog; tmp=$2
2015 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2016 for dir in $PATH; do
2017 test -z "$dir" && dir=.
2018 if test -f $dir/$tmp; then
2019 DEFAULT_M4="$prog"
2020 break
2022 done
2023 IFS="$save_ifs"
2025 test -n "$DEFAULT_M4" && break
2026 done
2028 # Generate a default definition for LEX. This is used if the makefile can't
2029 # locate flex in objdir.
2031 for prog in flex lex
2033 set dummy $prog; tmp=$2
2034 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2035 for dir in $PATH; do
2036 test -z "$dir" && dir=.
2037 if test -f $dir/$tmp; then
2038 DEFAULT_LEX="$prog"
2039 break
2041 done
2042 IFS="$save_ifs"
2044 test -n "$DEFAULT_LEX" && break
2045 done
2047 if test "${build}" != "${host}" ; then
2048 # If we are doing a Canadian Cross, in which the host and build systems
2049 # are not the same, we set reasonable default values for the tools.
2051 BISON=${BISON-bison}
2052 CC=${CC-${host_alias}-gcc}
2053 CFLAGS=${CFLAGS-"-g -O2"}
2054 CXX=${CXX-${host_alias}-c++}
2055 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2056 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2057 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
2058 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
2059 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
2060 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
2061 BUILD_PREFIX=${build_alias}-
2062 BUILD_PREFIX_1=${build_alias}-
2063 MAKEINFO=${MAKEINFO-makeinfo}
2065 if test -z "${YACC}" ; then
2066 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2067 for dir in $PATH; do
2068 test -z "$dir" && dir=.
2069 if test -f $dir/bison; then
2070 YACC="bison -y"
2071 break
2073 if test -f $dir/byacc; then
2074 YACC=byacc
2075 break
2077 if test -f $dir/yacc; then
2078 YACC=yacc
2079 break
2081 done
2082 IFS="$save_ifs"
2083 if test -z "${YACC}" ; then
2084 YACC="bison -y"
2088 if test -z "${LEX}" ; then
2089 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2090 for dir in $PATH; do
2091 test -z "$dir" && dir=.
2092 if test -f $dir/flex; then
2093 LEX=flex
2094 break
2096 if test -f $dir/lex; then
2097 LEX=lex
2098 break
2100 done
2101 IFS="$save_ifs"
2102 LEX=${LEX-flex}
2105 else
2106 # Set reasonable default values for some tools even if not Canadian.
2107 # Of course, these are different reasonable default values, originally
2108 # specified directly in the Makefile.
2109 # We don't export, so that autoconf can do its job.
2110 # Note that all these settings are above the fragment inclusion point
2111 # in Makefile.in, so can still be overridden by fragments.
2112 # This is all going to change when we autoconfiscate...
2114 BISON="\$(USUAL_BISON)"
2115 CC_FOR_BUILD="\$(CC)"
2116 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
2117 BUILD_PREFIX=
2118 BUILD_PREFIX_1=loser-
2119 MAKEINFO="\$(USUAL_MAKEINFO)"
2120 LEX="\$(USUAL_LEX)"
2121 YACC="\$(USUAL_YACC)"
2123 # If CC is still not set, try to get gcc.
2124 cc_prog_is_gcc=
2125 if test -z "${CC}" ; then
2126 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2127 for dir in $PATH; do
2128 test -z "$dir" && dir=.
2129 if test -f $dir/gcc; then
2130 CC="gcc"
2131 cc_prog_is_gcc=yes
2132 echo 'void f(){}' > conftest.c
2133 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2134 CFLAGS=${CFLAGS-"-g -O2"}
2135 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2136 else
2137 CFLAGS=${CFLAGS-"-O2"}
2138 CXXFLAGS=${CXXFLAGS-"-O2"}
2140 rm -f conftest*
2141 break
2143 done
2144 IFS="$save_ifs"
2145 CC=${CC-cc}
2146 else
2147 # Determine if we are using gcc.
2148 cat > conftest.c <<EOF
2149 #ifdef __GNUC__
2150 yes;
2151 #endif
2153 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
2154 cc_prog_is_gcc=yes
2156 rm -f conftest.c
2157 if test -z "${CFLAGS}"; then
2158 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
2159 # is set to a version of gcc.
2160 if test "$cc_prog_is_gcc" = yes; then
2161 echo 'void f(){}' > conftest.c
2162 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
2163 CFLAGS=${CFLAGS-"-g -O2"}
2164 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2165 else
2166 CFLAGS=${CFLAGS-"-O2"}
2167 CXXFLAGS=${CXXFLAGS-"-O2"}
2169 rm -f conftest*
2174 # We must set the default linker to the linker used by gcc for the correct
2175 # operation of libtool. If LD is not defined and we are using gcc, try to
2176 # set the LD default to the ld used by gcc.
2177 if test -z "$LD"; then
2178 if test "$cc_prog_is_gcc" = yes; then
2179 case $build in
2180 *-*-mingw*)
2181 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2183 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2184 esac
2185 case $gcc_prog_ld in
2186 # Accept absolute paths.
2187 [\\/]* | [A-Za-z]:[\\/]*)
2188 LD="$gcc_prog_ld" ;;
2189 esac
2193 CXX=${CXX-"c++"}
2194 CFLAGS=${CFLAGS-"-g"}
2195 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2198 # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
2199 # Set up the list of links to be made.
2200 # ${links} is the list of link names, and ${files} is the list of names to link to.
2202 # Make the links.
2203 configlinks="${links}"
2204 if test -r ./config.status ; then
2205 mv -f ./config.status ./config.back
2207 while test -n "${files}" ; do
2208 # set file to car of files, files to cdr of files
2209 set ${files}; file=$1; shift; files=$*
2210 set ${links}; link=$1; shift; links=$*
2212 if test ! -r ${srcdir}/${file} ; then
2213 if test ! -r ${file} ; then
2214 echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
2215 echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
2216 exit 1
2217 else
2218 srcfile=${file}
2220 else
2221 srcfile=${srcdir}/${file}
2224 ${remove} -f ${link}
2225 # Make a symlink if possible, otherwise try a hard link
2226 if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
2227 true
2228 else
2229 # We need to re-remove the file because Lynx leaves a
2230 # very strange directory there when it fails an NFS symlink.
2231 ${remove} -r -f ${link}
2232 ${hard_link} ${srcfile} ${link}
2234 if test ! -r ${link} ; then
2235 echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
2236 exit 1
2239 echo "Linked \"${link}\" to \"${srcfile}\"."
2240 done
2242 # Create a .gdbinit file which runs the one in srcdir
2243 # and tells GDB to look there for source files.
2245 if test -r ${srcdir}/.gdbinit ; then
2246 case ${srcdir} in
2247 .) ;;
2248 *) cat > ./.gdbinit <<EOF
2249 # ${NO_EDIT}
2250 dir ${srcdir}
2251 dir .
2252 source ${srcdir}/.gdbinit
2255 esac
2258 # record if we want runtime library stuff installed in libsubdir.
2259 # Blank means no.
2260 if test -z "${enable_version_specific_runtime_libs}"; then
2261 enable_version_specific_runtime_libs=no
2264 # Make sure that the compiler is able to generate an executable. If it
2265 # can't, we are probably in trouble. We don't care whether we can run the
2266 # executable--we might be using a cross compiler--we only care whether it
2267 # can be created. At this point the main configure script has set CC.
2268 we_are_ok=no
2269 echo "int main () { return 0; }" > conftest.c
2270 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2271 if test $? = 0 ; then
2272 if test -s conftest || test -s conftest.exe ; then
2273 we_are_ok=yes
2276 case $we_are_ok in
2278 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2279 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2280 rm -f conftest*
2281 exit 1
2283 esac
2284 rm -f conftest*
2286 # The Solaris /usr/ucb/cc compiler does not appear to work.
2287 case "${host}" in
2288 sparc-sun-solaris2*)
2289 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2290 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2291 could_use=
2292 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2293 if test -d /opt/cygnus/bin ; then
2294 if test "$could_use" = "" ; then
2295 could_use="/opt/cygnus/bin"
2296 else
2297 could_use="$could_use or /opt/cygnus/bin"
2300 if test "$could_use" = "" ; then
2301 echo "Warning: compilation may fail because you're using"
2302 echo "/usr/ucb/cc. You should change your PATH or CC "
2303 echo "variable and rerun configure."
2304 else
2305 echo "Warning: compilation may fail because you're using"
2306 echo "/usr/ucb/cc, when you should use the C compiler from"
2307 echo "$could_use. You should change your"
2308 echo "PATH or CC variable and rerun configure."
2312 esac
2314 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2315 # binutils tools will find libbfd.so.
2316 if test "${shared}" = "yes" ; then
2317 SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)"
2318 else
2319 SET_LIB_PATH=
2323 case "${host}" in
2324 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2325 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2326 esac
2328 # Record target_configdirs and the configure arguments for target and
2329 # build configuration in Makefile.
2330 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2332 # This is the final value for target_configdirs. configdirs already
2333 # has its final value. It's time to create some lists of valid targets.
2335 # While at that, we remove Makefiles if we were started for recursive
2336 # configuration, such that the top-level Makefile reconfigures them,
2337 # like we used to do when configure itself was recursive.
2339 all_build_modules=
2340 configure_build_modules=
2341 # Only make build modules if build != host.
2342 # This should be done more generally, but at the moment it doesn't matter.
2343 if test ${host_alias} != ${build_alias} ; then
2344 for module in libiberty ; do
2345 all_build_modules=all-build-${module}
2346 configure_build_modules=configure-build-${module}
2347 if test -z "${no_recursion}" \
2348 && test -f ${build_subdir}/${module}/Makefile; then
2349 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2350 rm -f ${build_subdir}/${module}/Makefile
2352 done
2355 all_host_modules=
2356 check_host_modules=
2357 install_host_modules=
2358 configure_host_modules=
2359 for module in ${configdirs} ; do
2360 all_host_modules="${all_host_modules} all-${module}"
2361 check_host_modules="${check_host_modules} check-${module}"
2362 install_host_modules="${install_host_modules} install-${module}"
2363 configure_host_modules="${configure_host_modules} configure-${module}"
2364 if test -z "${no_recursion}" \
2365 && test -f ${module}/Makefile; then
2366 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2367 rm -f ${module}/Makefile
2369 done
2370 install_host_modules_nogcc=`echo "${install_host_modules}" | sed -e 's/install-gcc//g'`
2372 all_target_modules=
2373 check_target_modules=
2374 install_target_modules=
2375 configure_target_modules=
2376 for module in ${target_configdirs} ; do
2377 all_target_modules="${all_target_modules} all-target-${module}"
2378 check_target_modules="${check_target_modules} check-target-${module}"
2379 install_target_modules="${install_target_modules} install-target-${module}"
2380 configure_target_modules="${configure_target_modules} configure-target-${module}"
2381 if test -z "${no_recursion}" \
2382 && test -f ${target_subdir}/${module}/Makefile; then
2383 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2384 rm -f ${target_subdir}/${module}/Makefile
2386 done
2388 # Determine whether gdb needs tk/tcl or not.
2389 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2390 # and in that case we want gdb to be built without tk. Ugh!
2391 # In fact I believe gdb is the *only* package directly dependent on tk,
2392 # so we should be able to put the 'maybe's in unconditionally and
2393 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2394 # 100% sure that that's safe though.
2396 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2397 case "$enable_gdbtk" in
2399 GDB_TK="" ;;
2400 yes)
2401 GDB_TK="${gdb_tk}" ;;
2403 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2404 # distro. Eventually someone will fix this and move Insight, nee
2405 # gdbtk to a separate directory.
2406 if test -d ${srcdir}/gdb/gdbtk ; then
2407 GDB_TK="${gdb_tk}"
2408 else
2409 GDB_TK=""
2412 esac
2414 # Create the 'maybe dependencies'. This uses a temporary file.
2415 rm -f maybedep.tmp
2416 echo '# maybedep.tmp' > maybedep.tmp
2417 for item in ${all_build_modules} ${all_host_modules} ${all_target_modules} \
2418 ${install_host_modules} ${install_target_modules} \
2419 ${configure_build_modules} ${configure_host_modules} ${configure_target_modules} \
2420 ; do
2421 echo "maybe-${item}: ${item}" >> maybedep.tmp
2422 done
2423 maybe_dependencies=maybedep.tmp
2426 # Create the serialization dependencies. This uses a temporary file.
2428 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2429 if test "${enable_serial_configure+set}" = set; then
2430 enableval="$enable_serial_configure"
2435 # These force 'configure's to be done one at a time, to avoid problems
2436 # with contention over a shared config.cache.
2437 rm -f serdep.tmp
2438 echo '# serdep.tmp' > serdep.tmp
2439 olditem=
2440 test "x${enable_serial_configure}" = xno ||
2441 test "x${enable_serial_build_configure}" = xno ||
2442 for item in ${build_configdirs} ; do
2443 case ${olditem} in
2444 "") ;;
2445 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2446 esac
2447 olditem=${item}
2448 done
2449 olditem=
2450 test "x${enable_serial_configure}" = xno ||
2451 test "x${enable_serial_host_configure}" = xno ||
2452 for item in ${configdirs} ; do
2453 case ${olditem} in
2454 "") ;;
2455 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2456 esac
2457 olditem=${item}
2458 done
2459 olditem=
2460 test "x${enable_serial_configure}" = xno ||
2461 test "x${enable_serial_target_configure}" = xno ||
2462 for item in ${target_configdirs} ; do
2463 case ${olditem} in
2464 "") ;;
2465 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2466 esac
2467 olditem=${item}
2468 done
2469 serialization_dependencies=serdep.tmp
2472 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2473 # target and nonopt. These are the ones we might not want to pass
2474 # down to subconfigures.
2475 baseargs=`echo " ${ac_configure_args} " | \
2476 sed -e 's/ --no[^ ]* / /' \
2477 -e 's/ --c[a-z-]*[= ][^ ]* / /' \
2478 -e 's/ --sr[a-z-]*[= ][^ ]* / /' \
2479 -e 's/ --ho[a-z-]*[= ][^ ]* / /' \
2480 -e 's/ --bu[a-z-]*[= ][^ ]* / /' \
2481 -e 's/ --t[a-z-]*[= ][^ ]* / /' \
2482 -e 's/ -cache-file[= ][^ ]* / /' \
2483 -e 's/ -srcdir[= ][^ ]* / /' \
2484 -e 's/ -host[= ][^ ]* / /' \
2485 -e 's/ -build[= ][^ ]* / /' \
2486 -e 's/ -target[= ][^ ]* / /' \
2487 -e 's/ [^ -][^ ]* / /' \
2488 -e 's/^ *//;s/ *$//'`
2490 # For the build-side libraries, we just need to pretend we're native,
2491 # and not use the same cache file. Multilibs are neither needed nor
2492 # desired.
2493 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2495 # For host modules, accept cache file option, or specification as blank.
2496 case "${cache_file}" in
2497 "") # empty
2498 cache_file_option="" ;;
2499 /* | [A-Za-z]:[\\/]* ) # absolute path
2500 cache_file_option="--cache-file=${cache_file}" ;;
2501 *) # relative path
2502 cache_file_option="--cache-file=../${cache_file}" ;;
2503 esac
2505 host_configargs="${cache_file_option} --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2507 target_configargs=${baseargs}
2509 # Passing a --with-cross-host argument lets the target libraries know
2510 # whether they are being built with a cross-compiler or being built
2511 # native. However, it would be better to use other mechanisms to make the
2512 # sorts of decisions they want to make on this basis. Please consider
2513 # this option to be deprecated. FIXME.
2514 if test x${is_cross_compiler} = xyes ; then
2515 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
2518 # Default to --enable-multilib.
2519 if test x${enable_multilib} = x ; then
2520 target_configargs="--enable-multilib ${target_configargs}"
2523 # Pass --with-newlib if appropriate. Note that target_configdirs has
2524 # changed from the earlier setting of with_newlib.
2525 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
2526 target_configargs="--with-newlib ${target_configargs}"
2529 # Pass the appropriate --host, --build, and --cache-file arguments.
2530 target_configargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
2532 # provide a proper gxx_include_dir.
2533 # Note, if you change the default, make sure to fix both here and in
2534 # the gcc and libstdc++-v3 subdirectories.
2535 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
2536 gxx_include_dir=
2537 if test -n "${with_gxx_include_dir}"; then
2538 case "${with_gxx_include_dir}" in
2539 yes )
2540 echo "configure.in: error: bad value ${withval} given for g++ include directory" 1>&2
2541 exit 1
2543 no )
2546 gxx_include_dir=${with_gxx_include_dir}
2548 esac
2550 if test x${gxx_include_dir} = x; then
2551 if test x${enable_version_specific_runtime_libs} = xyes; then
2552 gxx_include_dir='${libsubdir}/include/c++'
2553 else
2554 . ${srcdir}/config.if
2555 gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
2557 else
2558 gxx_include_dir=${gxx_include_dir}
2561 FLAGS_FOR_TARGET=
2562 case " $target_configdirs " in
2563 *" newlib "*)
2564 case " $target_configargs " in
2565 *" --with-newlib "*)
2566 case "$target" in
2567 *-cygwin*)
2568 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 -isystem $$s/newlib/libc/sys/cygwin -isystem $$s/newlib/libc/sys/cygwin32' ;;
2569 esac
2571 # If we're not building GCC, don't discard standard headers.
2572 if test -d ${srcdir}/gcc; then
2573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
2575 if test "${build}" != "${host}"; then
2576 # On Canadian crosses, CC_FOR_TARGET will have already been set
2577 # by `configure', so we won't have an opportunity to add -Bgcc/
2578 # to it. This is right: we don't want to search that directory
2579 # for binaries, but we want the header files in there, so add
2580 # them explicitly.
2581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
2583 # Someone might think of using the pre-installed headers on
2584 # Canadian crosses, in case the installed compiler is not fully
2585 # compatible with the compiler being built. In this case, it
2586 # would be better to flag an error than risking having
2587 # incompatible object files being constructed. We can't
2588 # guarantee that an error will be flagged, but let's hope the
2589 # compiler will do it, when presented with incompatible header
2590 # files.
2594 case "${target}-${is_cross_compiler}" in
2595 i[3456]86-*-linux*-no)
2596 # Here host == target, so we don't need to build gcc,
2597 # so we don't want to discard standard headers.
2598 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
2601 # If we're building newlib, use its generic headers last, but search
2602 # for any libc-related directories first (so make it the last -B
2603 # switch).
2604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
2606 esac
2608 esac
2610 esac
2612 # On Canadian crosses, we'll be searching the right directories for
2613 # the previously-installed cross compiler, so don't bother to add
2614 # flags for directories within the install tree of the compiler
2615 # being built; programs in there won't even run.
2616 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
2617 # Search for pre-installed headers if nothing else fits.
2618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
2621 if test "x${use_gnu_ld}" = x &&
2622 echo " ${configdirs} " | grep " ld " > /dev/null ; then
2623 # Arrange for us to find uninstalled linker scripts.
2624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
2627 if test "x${CC_FOR_TARGET+set}" = xset; then
2629 elif test -d ${srcdir}/gcc; then
2630 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
2631 elif test "$host" = "$target"; then
2632 CC_FOR_TARGET='$(CC)'
2633 else
2634 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
2636 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2638 if test "x${GCJ_FOR_TARGET+set}" = xset; then
2640 elif test -d ${srcdir}/gcc; then
2641 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
2642 elif test "$host" = "$target"; then
2643 GCJ_FOR_TARGET='gcj'
2644 else
2645 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
2647 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2649 # Don't use libstdc++-v3's flags to configure/build itself.
2650 libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2651 raw_libstdcxx_flags=' -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
2653 if test "x${CXX_FOR_TARGET+set}" = xset; then
2655 elif test -d ${srcdir}/gcc; then
2656 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
2657 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
2658 # default whereas gcc does not.
2659 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
2660 # all other cases.
2661 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
2662 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
2663 elif test "$host" = "$target"; then
2664 CXX_FOR_TARGET='$(CXX)'
2665 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2666 else
2667 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
2668 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
2670 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2671 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
2673 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2674 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
2676 # We want to defer the evaluation of `cmd`s and shell variables in
2677 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
2678 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
2679 # quotes, but we still have to duplicate `$'s so that shell variables
2680 # can be expanded by the nested make as shell variables, not as make
2681 # macros.
2682 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2683 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
2685 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
2686 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
2687 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
2688 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
2689 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
2690 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
2691 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
2693 # Makefile fragments.
2694 host_makefile_frag=${srcdir}/${host_makefile_frag}
2695 target_makefile_frag=${srcdir}/${target_makefile_frag}
2696 alphaieee_frag=${srcdir}/${alphaieee_frag}
2697 ospace_frag=${srcdir}/${ospace_frag}
2703 # Miscellanea: directories, flags, etc.
2720 # Build module lists & subconfigure args.
2726 # Host module lists & subconfigure args.
2735 # Target module lists & subconfigure args.
2744 # Build tools.
2752 # Host tools.
2753 ncn_tool_prefix=
2754 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
2755 ncn_target_tool_prefix=
2756 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
2758 if test -n "$ncn_tool_prefix"; then
2759 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
2760 set dummy ${ncn_tool_prefix}ar; ac_word=$2
2761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2762 echo "configure:2763: checking for $ac_word" >&5
2763 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2765 else
2766 if test -n "$AR"; then
2767 ac_cv_prog_AR="$AR" # Let the user override the test.
2768 else
2769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2770 ac_dummy="$PATH"
2771 for ac_dir in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_prog_AR="${ncn_tool_prefix}ar"
2775 break
2777 done
2778 IFS="$ac_save_ifs"
2781 AR="$ac_cv_prog_AR"
2782 if test -n "$AR"; then
2783 echo "$ac_t""$AR" 1>&6
2784 else
2785 echo "$ac_t""no" 1>&6
2789 if test -z "$ac_cv_prog_AR" ; then
2790 if test $build = $host ; then
2791 ncn_cv_AR=$AR
2792 # Extract the first word of "ar", so it can be a program name with args.
2793 set dummy ar; ac_word=$2
2794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_word" >&5
2796 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2798 else
2799 if test -n "$ncn_cv_AR"; then
2800 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
2801 else
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2803 ac_dummy="$PATH"
2804 for ac_dir in $ac_dummy; do
2805 test -z "$ac_dir" && ac_dir=.
2806 if test -f $ac_dir/$ac_word; then
2807 ac_cv_prog_ncn_cv_AR="ar"
2808 break
2810 done
2811 IFS="$ac_save_ifs"
2812 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
2815 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
2816 if test -n "$ncn_cv_AR"; then
2817 echo "$ac_t""$ncn_cv_AR" 1>&6
2818 else
2819 echo "$ac_t""no" 1>&6
2822 AR=$ncn_cv_AR
2823 else
2824 AR="${ncn_tool_prefix}ar"
2826 else
2827 AR="$ac_cv_prog_AR"
2830 if test -n "$ncn_tool_prefix"; then
2831 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
2832 set dummy ${ncn_tool_prefix}as; ac_word=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838 if test -n "$AS"; then
2839 ac_cv_prog_AS="$AS" # Let the user override the test.
2840 else
2841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2842 ac_dummy="$PATH"
2843 for ac_dir in $ac_dummy; do
2844 test -z "$ac_dir" && ac_dir=.
2845 if test -f $ac_dir/$ac_word; then
2846 ac_cv_prog_AS="${ncn_tool_prefix}as"
2847 break
2849 done
2850 IFS="$ac_save_ifs"
2853 AS="$ac_cv_prog_AS"
2854 if test -n "$AS"; then
2855 echo "$ac_t""$AS" 1>&6
2856 else
2857 echo "$ac_t""no" 1>&6
2861 if test -z "$ac_cv_prog_AS" ; then
2862 if test $build = $host ; then
2863 ncn_cv_AS=$AS
2864 # Extract the first word of "as", so it can be a program name with args.
2865 set dummy as; ac_word=$2
2866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_word" >&5
2868 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 if test -n "$ncn_cv_AS"; then
2872 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
2873 else
2874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2875 ac_dummy="$PATH"
2876 for ac_dir in $ac_dummy; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f $ac_dir/$ac_word; then
2879 ac_cv_prog_ncn_cv_AS="as"
2880 break
2882 done
2883 IFS="$ac_save_ifs"
2884 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
2887 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
2888 if test -n "$ncn_cv_AS"; then
2889 echo "$ac_t""$ncn_cv_AS" 1>&6
2890 else
2891 echo "$ac_t""no" 1>&6
2894 AS=$ncn_cv_AS
2895 else
2896 AS="${ncn_tool_prefix}as"
2898 else
2899 AS="$ac_cv_prog_AS"
2902 if test -n "$ncn_tool_prefix"; then
2903 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
2904 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_word" >&5
2907 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910 if test -n "$DLLTOOL"; then
2911 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2912 else
2913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 ac_dummy="$PATH"
2915 for ac_dir in $ac_dummy; do
2916 test -z "$ac_dir" && ac_dir=.
2917 if test -f $ac_dir/$ac_word; then
2918 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
2919 break
2921 done
2922 IFS="$ac_save_ifs"
2925 DLLTOOL="$ac_cv_prog_DLLTOOL"
2926 if test -n "$DLLTOOL"; then
2927 echo "$ac_t""$DLLTOOL" 1>&6
2928 else
2929 echo "$ac_t""no" 1>&6
2933 if test -z "$ac_cv_prog_DLLTOOL" ; then
2934 if test $build = $host ; then
2935 ncn_cv_DLLTOOL=$DLLTOOL
2936 # Extract the first word of "dlltool", so it can be a program name with args.
2937 set dummy dlltool; ac_word=$2
2938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_word" >&5
2940 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943 if test -n "$ncn_cv_DLLTOOL"; then
2944 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
2945 else
2946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2947 ac_dummy="$PATH"
2948 for ac_dir in $ac_dummy; do
2949 test -z "$ac_dir" && ac_dir=.
2950 if test -f $ac_dir/$ac_word; then
2951 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2952 break
2954 done
2955 IFS="$ac_save_ifs"
2956 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
2959 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
2960 if test -n "$ncn_cv_DLLTOOL"; then
2961 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
2962 else
2963 echo "$ac_t""no" 1>&6
2966 DLLTOOL=$ncn_cv_DLLTOOL
2967 else
2968 DLLTOOL="${ncn_tool_prefix}dlltool"
2970 else
2971 DLLTOOL="$ac_cv_prog_DLLTOOL"
2974 if test -n "$ncn_tool_prefix"; then
2975 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
2976 set dummy ${ncn_tool_prefix}ld; ac_word=$2
2977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2978 echo "configure:2979: checking for $ac_word" >&5
2979 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 if test -n "$LD"; then
2983 ac_cv_prog_LD="$LD" # Let the user override the test.
2984 else
2985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2986 ac_dummy="$PATH"
2987 for ac_dir in $ac_dummy; do
2988 test -z "$ac_dir" && ac_dir=.
2989 if test -f $ac_dir/$ac_word; then
2990 ac_cv_prog_LD="${ncn_tool_prefix}ld"
2991 break
2993 done
2994 IFS="$ac_save_ifs"
2997 LD="$ac_cv_prog_LD"
2998 if test -n "$LD"; then
2999 echo "$ac_t""$LD" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3005 if test -z "$ac_cv_prog_LD" ; then
3006 if test $build = $host ; then
3007 ncn_cv_LD=$LD
3008 # Extract the first word of "ld", so it can be a program name with args.
3009 set dummy ld; ac_word=$2
3010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_word" >&5
3012 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3014 else
3015 if test -n "$ncn_cv_LD"; then
3016 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3017 else
3018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3019 ac_dummy="$PATH"
3020 for ac_dir in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir=.
3022 if test -f $ac_dir/$ac_word; then
3023 ac_cv_prog_ncn_cv_LD="ld"
3024 break
3026 done
3027 IFS="$ac_save_ifs"
3028 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3031 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3032 if test -n "$ncn_cv_LD"; then
3033 echo "$ac_t""$ncn_cv_LD" 1>&6
3034 else
3035 echo "$ac_t""no" 1>&6
3038 LD=$ncn_cv_LD
3039 else
3040 LD="${ncn_tool_prefix}ld"
3042 else
3043 LD="$ac_cv_prog_LD"
3046 if test -n "$ncn_tool_prefix"; then
3047 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3048 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3053 else
3054 if test -n "$NM"; then
3055 ac_cv_prog_NM="$NM" # Let the user override the test.
3056 else
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3058 ac_dummy="$PATH"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3062 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3063 break
3065 done
3066 IFS="$ac_save_ifs"
3069 NM="$ac_cv_prog_NM"
3070 if test -n "$NM"; then
3071 echo "$ac_t""$NM" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3077 if test -z "$ac_cv_prog_NM" ; then
3078 if test $build = $host ; then
3079 ncn_cv_NM=$NM
3080 # Extract the first word of "nm", so it can be a program name with args.
3081 set dummy nm; ac_word=$2
3082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_word" >&5
3084 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 if test -n "$ncn_cv_NM"; then
3088 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3089 else
3090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 ac_dummy="$PATH"
3092 for ac_dir in $ac_dummy; do
3093 test -z "$ac_dir" && ac_dir=.
3094 if test -f $ac_dir/$ac_word; then
3095 ac_cv_prog_ncn_cv_NM="nm"
3096 break
3098 done
3099 IFS="$ac_save_ifs"
3100 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3103 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3104 if test -n "$ncn_cv_NM"; then
3105 echo "$ac_t""$ncn_cv_NM" 1>&6
3106 else
3107 echo "$ac_t""no" 1>&6
3110 NM=$ncn_cv_NM
3111 else
3112 NM="${ncn_tool_prefix}nm"
3114 else
3115 NM="$ac_cv_prog_NM"
3118 if test -n "$ncn_tool_prefix"; then
3119 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3120 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 if test -n "$RANLIB"; then
3127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3128 else
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 ac_dummy="$PATH"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3135 break
3137 done
3138 IFS="$ac_save_ifs"
3141 RANLIB="$ac_cv_prog_RANLIB"
3142 if test -n "$RANLIB"; then
3143 echo "$ac_t""$RANLIB" 1>&6
3144 else
3145 echo "$ac_t""no" 1>&6
3149 if test -z "$ac_cv_prog_RANLIB" ; then
3150 if test $build = $host ; then
3151 ncn_cv_RANLIB=$RANLIB
3152 # Extract the first word of "ranlib", so it can be a program name with args.
3153 set dummy ranlib; ac_word=$2
3154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_word" >&5
3156 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3158 else
3159 if test -n "$ncn_cv_RANLIB"; then
3160 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3161 else
3162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3163 ac_dummy="$PATH"
3164 for ac_dir in $ac_dummy; do
3165 test -z "$ac_dir" && ac_dir=.
3166 if test -f $ac_dir/$ac_word; then
3167 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3168 break
3170 done
3171 IFS="$ac_save_ifs"
3172 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3175 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3176 if test -n "$ncn_cv_RANLIB"; then
3177 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3178 else
3179 echo "$ac_t""no" 1>&6
3182 RANLIB=$ncn_cv_RANLIB
3183 else
3184 RANLIB=":"
3186 else
3187 RANLIB="$ac_cv_prog_RANLIB"
3190 if test -n "$ncn_tool_prefix"; then
3191 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3192 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3194 echo "configure:3195: checking for $ac_word" >&5
3195 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3197 else
3198 if test -n "$WINDRES"; then
3199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3200 else
3201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3202 ac_dummy="$PATH"
3203 for ac_dir in $ac_dummy; do
3204 test -z "$ac_dir" && ac_dir=.
3205 if test -f $ac_dir/$ac_word; then
3206 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3207 break
3209 done
3210 IFS="$ac_save_ifs"
3213 WINDRES="$ac_cv_prog_WINDRES"
3214 if test -n "$WINDRES"; then
3215 echo "$ac_t""$WINDRES" 1>&6
3216 else
3217 echo "$ac_t""no" 1>&6
3221 if test -z "$ac_cv_prog_WINDRES" ; then
3222 if test $build = $host ; then
3223 ncn_cv_WINDRES=$WINDRES
3224 # Extract the first word of "windres", so it can be a program name with args.
3225 set dummy windres; ac_word=$2
3226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_word" >&5
3228 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231 if test -n "$ncn_cv_WINDRES"; then
3232 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3233 else
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 ac_dummy="$PATH"
3236 for ac_dir in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_prog_ncn_cv_WINDRES="windres"
3240 break
3242 done
3243 IFS="$ac_save_ifs"
3244 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3247 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3248 if test -n "$ncn_cv_WINDRES"; then
3249 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3250 else
3251 echo "$ac_t""no" 1>&6
3254 WINDRES=$ncn_cv_WINDRES
3255 else
3256 WINDRES="${ncn_tool_prefix}windres"
3258 else
3259 WINDRES="$ac_cv_prog_WINDRES"
3262 if test -n "$ncn_tool_prefix"; then
3263 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3264 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 if test -n "$OBJCOPY"; then
3271 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3272 else
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3274 ac_dummy="$PATH"
3275 for ac_dir in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir=.
3277 if test -f $ac_dir/$ac_word; then
3278 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3279 break
3281 done
3282 IFS="$ac_save_ifs"
3285 OBJCOPY="$ac_cv_prog_OBJCOPY"
3286 if test -n "$OBJCOPY"; then
3287 echo "$ac_t""$OBJCOPY" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3293 if test -z "$ac_cv_prog_OBJCOPY" ; then
3294 if test $build = $host ; then
3295 ncn_cv_OBJCOPY=$OBJCOPY
3296 # Extract the first word of "objcopy", so it can be a program name with args.
3297 set dummy objcopy; ac_word=$2
3298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_word" >&5
3300 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3302 else
3303 if test -n "$ncn_cv_OBJCOPY"; then
3304 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3305 else
3306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3307 ac_dummy="$PATH"
3308 for ac_dir in $ac_dummy; do
3309 test -z "$ac_dir" && ac_dir=.
3310 if test -f $ac_dir/$ac_word; then
3311 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3312 break
3314 done
3315 IFS="$ac_save_ifs"
3316 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3319 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3320 if test -n "$ncn_cv_OBJCOPY"; then
3321 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3322 else
3323 echo "$ac_t""no" 1>&6
3326 OBJCOPY=$ncn_cv_OBJCOPY
3327 else
3328 OBJCOPY="${ncn_tool_prefix}objcopy"
3330 else
3331 OBJCOPY="$ac_cv_prog_OBJCOPY"
3334 if test -n "$ncn_tool_prefix"; then
3335 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3336 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_word" >&5
3339 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3341 else
3342 if test -n "$OBJDUMP"; then
3343 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3344 else
3345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 ac_dummy="$PATH"
3347 for ac_dir in $ac_dummy; do
3348 test -z "$ac_dir" && ac_dir=.
3349 if test -f $ac_dir/$ac_word; then
3350 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3351 break
3353 done
3354 IFS="$ac_save_ifs"
3357 OBJDUMP="$ac_cv_prog_OBJDUMP"
3358 if test -n "$OBJDUMP"; then
3359 echo "$ac_t""$OBJDUMP" 1>&6
3360 else
3361 echo "$ac_t""no" 1>&6
3365 if test -z "$ac_cv_prog_OBJDUMP" ; then
3366 if test $build = $host ; then
3367 ncn_cv_OBJDUMP=$OBJDUMP
3368 # Extract the first word of "objdump", so it can be a program name with args.
3369 set dummy objdump; ac_word=$2
3370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3371 echo "configure:3372: checking for $ac_word" >&5
3372 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 if test -n "$ncn_cv_OBJDUMP"; then
3376 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3377 else
3378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3379 ac_dummy="$PATH"
3380 for ac_dir in $ac_dummy; do
3381 test -z "$ac_dir" && ac_dir=.
3382 if test -f $ac_dir/$ac_word; then
3383 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3384 break
3386 done
3387 IFS="$ac_save_ifs"
3388 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3391 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3392 if test -n "$ncn_cv_OBJDUMP"; then
3393 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3394 else
3395 echo "$ac_t""no" 1>&6
3398 OBJDUMP=$ncn_cv_OBJDUMP
3399 else
3400 OBJDUMP="${ncn_tool_prefix}objdump"
3402 else
3403 OBJDUMP="$ac_cv_prog_OBJDUMP"
3414 # Target tools.
3415 if test -n "$ncn_target_tool_prefix"; then
3416 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3417 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_word" >&5
3420 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 if test -n "$AR_FOR_TARGET"; then
3424 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
3425 else
3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 ac_dummy="$PATH"
3428 for ac_dir in $ac_dummy; do
3429 test -z "$ac_dir" && ac_dir=.
3430 if test -f $ac_dir/$ac_word; then
3431 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3432 break
3434 done
3435 IFS="$ac_save_ifs"
3438 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3439 if test -n "$AR_FOR_TARGET"; then
3440 echo "$ac_t""$AR_FOR_TARGET" 1>&6
3441 else
3442 echo "$ac_t""no" 1>&6
3446 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
3447 if test $build = $target ; then
3448 ncn_cv_AR_FOR_TARGET=$AR_FOR_TARGET
3449 # Extract the first word of "ar", so it can be a program name with args.
3450 set dummy ar; ac_word=$2
3451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_word" >&5
3453 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR_FOR_TARGET'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3455 else
3456 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3457 ac_cv_prog_ncn_cv_AR_FOR_TARGET="$ncn_cv_AR_FOR_TARGET" # Let the user override the test.
3458 else
3459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3460 ac_dummy="$PATH"
3461 for ac_dir in $ac_dummy; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if test -f $ac_dir/$ac_word; then
3464 ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3465 break
3467 done
3468 IFS="$ac_save_ifs"
3469 test -z "$ac_cv_prog_ncn_cv_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_AR_FOR_TARGET="ar"
3472 ncn_cv_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_AR_FOR_TARGET"
3473 if test -n "$ncn_cv_AR_FOR_TARGET"; then
3474 echo "$ac_t""$ncn_cv_AR_FOR_TARGET" 1>&6
3475 else
3476 echo "$ac_t""no" 1>&6
3479 AR_FOR_TARGET=$ncn_cv_AR_FOR_TARGET
3480 else
3481 AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3483 else
3484 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
3487 if test -n "$ncn_target_tool_prefix"; then
3488 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3489 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3491 echo "configure:3492: checking for $ac_word" >&5
3492 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3494 else
3495 if test -n "$AS_FOR_TARGET"; then
3496 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
3497 else
3498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3499 ac_dummy="$PATH"
3500 for ac_dir in $ac_dummy; do
3501 test -z "$ac_dir" && ac_dir=.
3502 if test -f $ac_dir/$ac_word; then
3503 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3504 break
3506 done
3507 IFS="$ac_save_ifs"
3510 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3511 if test -n "$AS_FOR_TARGET"; then
3512 echo "$ac_t""$AS_FOR_TARGET" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3518 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
3519 if test $build = $target ; then
3520 ncn_cv_AS_FOR_TARGET=$AS_FOR_TARGET
3521 # Extract the first word of "as", so it can be a program name with args.
3522 set dummy as; ac_word=$2
3523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_word" >&5
3525 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS_FOR_TARGET'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3527 else
3528 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3529 ac_cv_prog_ncn_cv_AS_FOR_TARGET="$ncn_cv_AS_FOR_TARGET" # Let the user override the test.
3530 else
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 ac_dummy="$PATH"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3537 break
3539 done
3540 IFS="$ac_save_ifs"
3541 test -z "$ac_cv_prog_ncn_cv_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_AS_FOR_TARGET="as"
3544 ncn_cv_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_AS_FOR_TARGET"
3545 if test -n "$ncn_cv_AS_FOR_TARGET"; then
3546 echo "$ac_t""$ncn_cv_AS_FOR_TARGET" 1>&6
3547 else
3548 echo "$ac_t""no" 1>&6
3551 AS_FOR_TARGET=$ncn_cv_AS_FOR_TARGET
3552 else
3553 AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3555 else
3556 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
3559 if test -n "$ncn_target_tool_prefix"; then
3560 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
3561 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
3562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3563 echo "configure:3564: checking for $ac_word" >&5
3564 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3566 else
3567 if test -n "$DLLTOOL_FOR_TARGET"; then
3568 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
3569 else
3570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3571 ac_dummy="$PATH"
3572 for ac_dir in $ac_dummy; do
3573 test -z "$ac_dir" && ac_dir=.
3574 if test -f $ac_dir/$ac_word; then
3575 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3576 break
3578 done
3579 IFS="$ac_save_ifs"
3582 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3583 if test -n "$DLLTOOL_FOR_TARGET"; then
3584 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3590 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
3591 if test $build = $target ; then
3592 ncn_cv_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
3593 # Extract the first word of "dlltool", so it can be a program name with args.
3594 set dummy dlltool; ac_word=$2
3595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_word" >&5
3597 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3599 else
3600 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3601 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="$ncn_cv_DLLTOOL_FOR_TARGET" # Let the user override the test.
3602 else
3603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3604 ac_dummy="$PATH"
3605 for ac_dir in $ac_dummy; do
3606 test -z "$ac_dir" && ac_dir=.
3607 if test -f $ac_dir/$ac_word; then
3608 ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3609 break
3611 done
3612 IFS="$ac_save_ifs"
3613 test -z "$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET="dlltool"
3616 ncn_cv_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_DLLTOOL_FOR_TARGET"
3617 if test -n "$ncn_cv_DLLTOOL_FOR_TARGET"; then
3618 echo "$ac_t""$ncn_cv_DLLTOOL_FOR_TARGET" 1>&6
3619 else
3620 echo "$ac_t""no" 1>&6
3623 DLLTOOL_FOR_TARGET=$ncn_cv_DLLTOOL_FOR_TARGET
3624 else
3625 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
3627 else
3628 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
3631 if test -n "$ncn_target_tool_prefix"; then
3632 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
3633 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
3634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3635 echo "configure:3636: checking for $ac_word" >&5
3636 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3639 if test -n "$LD_FOR_TARGET"; then
3640 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
3641 else
3642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3643 ac_dummy="$PATH"
3644 for ac_dir in $ac_dummy; do
3645 test -z "$ac_dir" && ac_dir=.
3646 if test -f $ac_dir/$ac_word; then
3647 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3648 break
3650 done
3651 IFS="$ac_save_ifs"
3654 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3655 if test -n "$LD_FOR_TARGET"; then
3656 echo "$ac_t""$LD_FOR_TARGET" 1>&6
3657 else
3658 echo "$ac_t""no" 1>&6
3662 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
3663 if test $build = $target ; then
3664 ncn_cv_LD_FOR_TARGET=$LD_FOR_TARGET
3665 # Extract the first word of "ld", so it can be a program name with args.
3666 set dummy ld; ac_word=$2
3667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3668 echo "configure:3669: checking for $ac_word" >&5
3669 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD_FOR_TARGET'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671 else
3672 if test -n "$ncn_cv_LD_FOR_TARGET"; then
3673 ac_cv_prog_ncn_cv_LD_FOR_TARGET="$ncn_cv_LD_FOR_TARGET" # Let the user override the test.
3674 else
3675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3676 ac_dummy="$PATH"
3677 for ac_dir in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3681 break
3683 done
3684 IFS="$ac_save_ifs"
3685 test -z "$ac_cv_prog_ncn_cv_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_LD_FOR_TARGET="ld"
3688 ncn_cv_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_LD_FOR_TARGET"
3689 if test -n "$ncn_cv_LD_FOR_TARGET"; then
3690 echo "$ac_t""$ncn_cv_LD_FOR_TARGET" 1>&6
3691 else
3692 echo "$ac_t""no" 1>&6
3695 LD_FOR_TARGET=$ncn_cv_LD_FOR_TARGET
3696 else
3697 LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
3699 else
3700 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
3703 if test -n "$ncn_target_tool_prefix"; then
3704 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
3705 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
3706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3707 echo "configure:3708: checking for $ac_word" >&5
3708 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3710 else
3711 if test -n "$NM_FOR_TARGET"; then
3712 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
3713 else
3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3715 ac_dummy="$PATH"
3716 for ac_dir in $ac_dummy; do
3717 test -z "$ac_dir" && ac_dir=.
3718 if test -f $ac_dir/$ac_word; then
3719 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3720 break
3722 done
3723 IFS="$ac_save_ifs"
3726 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3727 if test -n "$NM_FOR_TARGET"; then
3728 echo "$ac_t""$NM_FOR_TARGET" 1>&6
3729 else
3730 echo "$ac_t""no" 1>&6
3734 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
3735 if test $build = $target ; then
3736 ncn_cv_NM_FOR_TARGET=$NM_FOR_TARGET
3737 # Extract the first word of "nm", so it can be a program name with args.
3738 set dummy nm; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM_FOR_TARGET'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744 if test -n "$ncn_cv_NM_FOR_TARGET"; then
3745 ac_cv_prog_ncn_cv_NM_FOR_TARGET="$ncn_cv_NM_FOR_TARGET" # Let the user override the test.
3746 else
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3753 break
3755 done
3756 IFS="$ac_save_ifs"
3757 test -z "$ac_cv_prog_ncn_cv_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_NM_FOR_TARGET="nm"
3760 ncn_cv_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_NM_FOR_TARGET"
3761 if test -n "$ncn_cv_NM_FOR_TARGET"; then
3762 echo "$ac_t""$ncn_cv_NM_FOR_TARGET" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3767 NM_FOR_TARGET=$ncn_cv_NM_FOR_TARGET
3768 else
3769 NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
3771 else
3772 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
3775 if test -n "$ncn_target_tool_prefix"; then
3776 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
3778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3779 echo "configure:3780: checking for $ac_word" >&5
3780 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782 else
3783 if test -n "$RANLIB_FOR_TARGET"; then
3784 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
3785 else
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 ac_dummy="$PATH"
3788 for ac_dir in $ac_dummy; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f $ac_dir/$ac_word; then
3791 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
3792 break
3794 done
3795 IFS="$ac_save_ifs"
3798 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3799 if test -n "$RANLIB_FOR_TARGET"; then
3800 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
3801 else
3802 echo "$ac_t""no" 1>&6
3806 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
3807 if test $build = $target ; then
3808 ncn_cv_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
3809 # Extract the first word of "ranlib", so it can be a program name with args.
3810 set dummy ranlib; ac_word=$2
3811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_word" >&5
3813 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3815 else
3816 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3817 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="$ncn_cv_RANLIB_FOR_TARGET" # Let the user override the test.
3818 else
3819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3820 ac_dummy="$PATH"
3821 for ac_dir in $ac_dummy; do
3822 test -z "$ac_dir" && ac_dir=.
3823 if test -f $ac_dir/$ac_word; then
3824 ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET="ranlib"
3825 break
3827 done
3828 IFS="$ac_save_ifs"
3829 test -z "$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET=":"
3832 ncn_cv_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_RANLIB_FOR_TARGET"
3833 if test -n "$ncn_cv_RANLIB_FOR_TARGET"; then
3834 echo "$ac_t""$ncn_cv_RANLIB_FOR_TARGET" 1>&6
3835 else
3836 echo "$ac_t""no" 1>&6
3839 RANLIB_FOR_TARGET=$ncn_cv_RANLIB_FOR_TARGET
3840 else
3841 RANLIB_FOR_TARGET=":"
3843 else
3844 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
3847 if test -n "$ncn_target_tool_prefix"; then
3848 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
3849 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
3850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_word" >&5
3852 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 if test -n "$WINDRES_FOR_TARGET"; then
3856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
3857 else
3858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3859 ac_dummy="$PATH"
3860 for ac_dir in $ac_dummy; do
3861 test -z "$ac_dir" && ac_dir=.
3862 if test -f $ac_dir/$ac_word; then
3863 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3864 break
3866 done
3867 IFS="$ac_save_ifs"
3870 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3871 if test -n "$WINDRES_FOR_TARGET"; then
3872 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
3873 else
3874 echo "$ac_t""no" 1>&6
3878 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
3879 if test $build = $target ; then
3880 ncn_cv_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
3881 # Extract the first word of "windres", so it can be a program name with args.
3882 set dummy windres; ac_word=$2
3883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_word" >&5
3885 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3889 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="$ncn_cv_WINDRES_FOR_TARGET" # Let the user override the test.
3890 else
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="$PATH"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/$ac_word; then
3896 ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3897 break
3899 done
3900 IFS="$ac_save_ifs"
3901 test -z "$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET="windres"
3904 ncn_cv_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_WINDRES_FOR_TARGET"
3905 if test -n "$ncn_cv_WINDRES_FOR_TARGET"; then
3906 echo "$ac_t""$ncn_cv_WINDRES_FOR_TARGET" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3911 WINDRES_FOR_TARGET=$ncn_cv_WINDRES_FOR_TARGET
3912 else
3913 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
3915 else
3916 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
3929 # Fix up target tools.
3930 if test "x${build}" = "x${host}" ; then
3931 # In this case, the newly built tools can and should be used,
3932 # so we override the results of the autoconf tests.
3933 # This should really only happen when the tools are actually being built,
3934 # but that's a further refinement. The new build scheme, where
3935 # tools are built into a structure paralleling where they're installed,
3936 # should also eliminate all of this cleanly.
3937 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
3938 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
3939 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
3940 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
3941 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
3942 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
3943 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
3945 # Certain tools may need extra flags.
3946 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
3947 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
3948 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
3950 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3951 echo "configure:3952: checking whether to enable maintainer-specific portions of Makefiles" >&5
3952 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3953 if test "${enable_maintainer_mode+set}" = set; then
3954 enableval="$enable_maintainer_mode"
3955 USE_MAINTAINER_MODE=$enableval
3956 else
3957 USE_MAINTAINER_MODE=no
3960 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
3963 if test "$USE_MAINTAINER_MODE" = yes; then
3964 MAINTAINER_MODE_TRUE=
3965 MAINTAINER_MODE_FALSE='#'
3966 else
3967 MAINTAINER_MODE_TRUE='#'
3968 MAINTAINER_MODE_FALSE=
3970 MAINT=$MAINTAINER_MODE_TRUE
3972 trap '' 1 2 15
3973 cat > confcache <<\EOF
3974 # This file is a shell script that caches the results of configure
3975 # tests run on this system so they can be shared between configure
3976 # scripts and configure runs. It is not useful on other systems.
3977 # If it contains results you don't want to keep, you may remove or edit it.
3979 # By default, configure uses ./config.cache as the cache file,
3980 # creating it if it does not exist already. You can give configure
3981 # the --cache-file=FILE option to use a different cache file; that is
3982 # what configure does when it calls configure scripts in
3983 # subdirectories, so they share the cache.
3984 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3985 # config.status only pays attention to the cache file if you give it the
3986 # --recheck option to rerun configure.
3989 # The following way of writing the cache mishandles newlines in values,
3990 # but we know of no workaround that is simple, portable, and efficient.
3991 # So, don't put newlines in cache variables' values.
3992 # Ultrix sh set writes to stderr and can't be redirected directly,
3993 # and sets the high bit in the cache file unless we assign to the vars.
3994 (set) 2>&1 |
3995 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3996 *ac_space=\ *)
3997 # `set' does not quote correctly, so add quotes (double-quote substitution
3998 # turns \\\\ into \\, and sed turns \\ into \).
3999 sed -n \
4000 -e "s/'/'\\\\''/g" \
4001 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4004 # `set' quotes correctly as required by POSIX, so do not add quotes.
4005 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4007 esac >> confcache
4008 if cmp -s $cache_file confcache; then
4010 else
4011 if test -w $cache_file; then
4012 echo "updating cache $cache_file"
4013 cat confcache > $cache_file
4014 else
4015 echo "not updating unwritable cache $cache_file"
4018 rm -f confcache
4020 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4023 # Let make expand exec_prefix.
4024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4026 # Any assignment to VPATH causes Sun make to only execute
4027 # the first set of double-colon rules, so remove it if not needed.
4028 # If there is a colon in the path, we need to keep it.
4029 if test "x$srcdir" = x.; then
4030 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4033 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4035 # Transform confdefs.h into DEFS.
4036 # Protect against shell expansion while executing Makefile rules.
4037 # Protect against Makefile macro expansion.
4038 cat > conftest.defs <<\EOF
4039 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4040 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4041 s%\[%\\&%g
4042 s%\]%\\&%g
4043 s%\$%$$%g
4045 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4046 rm -f conftest.defs
4049 # Without the "./", some shells look in PATH for config.status.
4050 : ${CONFIG_STATUS=./config.status}
4052 echo creating $CONFIG_STATUS
4053 rm -f $CONFIG_STATUS
4054 cat > $CONFIG_STATUS <<EOF
4055 #! /bin/sh
4056 # Generated automatically by configure.
4057 # Run this file to recreate the current configuration.
4058 # This directory was configured as follows,
4059 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4061 # $0 $ac_configure_args
4063 # Compiler output produced by configure, useful for debugging
4064 # configure, is in ./config.log if it exists.
4066 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4067 for ac_option
4069 case "\$ac_option" in
4070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4071 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4072 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4073 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4074 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4075 exit 0 ;;
4076 -help | --help | --hel | --he | --h)
4077 echo "\$ac_cs_usage"; exit 0 ;;
4078 *) echo "\$ac_cs_usage"; exit 1 ;;
4079 esac
4080 done
4082 ac_given_srcdir=$srcdir
4084 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4086 cat >> $CONFIG_STATUS <<EOF
4088 # Protect against being on the right side of a sed subst in config.status.
4089 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4090 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4091 $ac_vpsub
4092 $extrasub
4093 s%@SHELL@%$SHELL%g
4094 s%@CFLAGS@%$CFLAGS%g
4095 s%@CPPFLAGS@%$CPPFLAGS%g
4096 s%@CXXFLAGS@%$CXXFLAGS%g
4097 s%@FFLAGS@%$FFLAGS%g
4098 s%@DEFS@%$DEFS%g
4099 s%@LDFLAGS@%$LDFLAGS%g
4100 s%@LIBS@%$LIBS%g
4101 s%@exec_prefix@%$exec_prefix%g
4102 s%@prefix@%$prefix%g
4103 s%@program_transform_name@%$program_transform_name%g
4104 s%@bindir@%$bindir%g
4105 s%@sbindir@%$sbindir%g
4106 s%@libexecdir@%$libexecdir%g
4107 s%@datadir@%$datadir%g
4108 s%@sysconfdir@%$sysconfdir%g
4109 s%@sharedstatedir@%$sharedstatedir%g
4110 s%@localstatedir@%$localstatedir%g
4111 s%@libdir@%$libdir%g
4112 s%@includedir@%$includedir%g
4113 s%@oldincludedir@%$oldincludedir%g
4114 s%@infodir@%$infodir%g
4115 s%@mandir@%$mandir%g
4116 s%@host@%$host%g
4117 s%@host_alias@%$host_alias%g
4118 s%@host_cpu@%$host_cpu%g
4119 s%@host_vendor@%$host_vendor%g
4120 s%@host_os@%$host_os%g
4121 s%@target@%$target%g
4122 s%@target_alias@%$target_alias%g
4123 s%@target_cpu@%$target_cpu%g
4124 s%@target_vendor@%$target_vendor%g
4125 s%@target_os@%$target_os%g
4126 s%@build@%$build%g
4127 s%@build_alias@%$build_alias%g
4128 s%@build_cpu@%$build_cpu%g
4129 s%@build_vendor@%$build_vendor%g
4130 s%@build_os@%$build_os%g
4131 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4132 /@maybe_dependencies@/r $maybe_dependencies
4133 s%@maybe_dependencies@%%g
4134 /@serialization_dependencies@/r $serialization_dependencies
4135 s%@serialization_dependencies@%%g
4136 /@host_makefile_frag@/r $host_makefile_frag
4137 s%@host_makefile_frag@%%g
4138 /@target_makefile_frag@/r $target_makefile_frag
4139 s%@target_makefile_frag@%%g
4140 /@alphaieee_frag@/r $alphaieee_frag
4141 s%@alphaieee_frag@%%g
4142 /@ospace_frag@/r $ospace_frag
4143 s%@ospace_frag@%%g
4144 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4145 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4146 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4147 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4148 s%@configlinks@%$configlinks%g
4149 s%@enable_shared@%$enable_shared%g
4150 s%@enable_threads@%$enable_threads%g
4151 s%@enable_version_specific_runtime_libs@%$enable_version_specific_runtime_libs%g
4152 s%@gcc_version_trigger@%$gcc_version_trigger%g
4153 s%@gcc_version@%$gcc_version%g
4154 s%@tooldir@%$tooldir%g
4155 s%@build_tooldir@%$build_tooldir%g
4156 s%@GDB_TK@%$GDB_TK%g
4157 s%@gxx_include_dir@%$gxx_include_dir%g
4158 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4159 s%@build_subdir@%$build_subdir%g
4160 s%@build_configargs@%$build_configargs%g
4161 s%@configure_build_modules@%$configure_build_modules%g
4162 s%@all_build_modules@%$all_build_modules%g
4163 s%@host_configargs@%$host_configargs%g
4164 s%@configdirs@%$configdirs%g
4165 s%@configure_host_modules@%$configure_host_modules%g
4166 s%@all_host_modules@%$all_host_modules%g
4167 s%@check_host_modules@%$check_host_modules%g
4168 s%@install_host_modules@%$install_host_modules%g
4169 s%@install_host_modules_nogcc@%$install_host_modules_nogcc%g
4170 s%@target_subdir@%$target_subdir%g
4171 s%@target_configargs@%$target_configargs%g
4172 s%@target_configdirs@%$target_configdirs%g
4173 s%@configure_target_modules@%$configure_target_modules%g
4174 s%@all_target_modules@%$all_target_modules%g
4175 s%@check_target_modules@%$check_target_modules%g
4176 s%@install_target_modules@%$install_target_modules%g
4177 s%@BISON@%$BISON%g
4178 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4179 s%@LEX@%$LEX%g
4180 s%@MAKEINFO@%$MAKEINFO%g
4181 s%@YACC@%$YACC%g
4182 s%@config_shell@%$config_shell%g
4183 s%@AR@%$AR%g
4184 s%@ncn_cv_AR@%$ncn_cv_AR%g
4185 s%@AS@%$AS%g
4186 s%@ncn_cv_AS@%$ncn_cv_AS%g
4187 s%@DLLTOOL@%$DLLTOOL%g
4188 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4189 s%@LD@%$LD%g
4190 s%@ncn_cv_LD@%$ncn_cv_LD%g
4191 s%@NM@%$NM%g
4192 s%@ncn_cv_NM@%$ncn_cv_NM%g
4193 s%@RANLIB@%$RANLIB%g
4194 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4195 s%@WINDRES@%$WINDRES%g
4196 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4197 s%@OBJCOPY@%$OBJCOPY%g
4198 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4199 s%@OBJDUMP@%$OBJDUMP%g
4200 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4201 s%@CC@%$CC%g
4202 s%@CXX@%$CXX%g
4203 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4204 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4205 s%@DEFAULT_M4@%$DEFAULT_M4%g
4206 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4207 s%@ncn_cv_AR_FOR_TARGET@%$ncn_cv_AR_FOR_TARGET%g
4208 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4209 s%@ncn_cv_AS_FOR_TARGET@%$ncn_cv_AS_FOR_TARGET%g
4210 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4211 s%@ncn_cv_DLLTOOL_FOR_TARGET@%$ncn_cv_DLLTOOL_FOR_TARGET%g
4212 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4213 s%@ncn_cv_LD_FOR_TARGET@%$ncn_cv_LD_FOR_TARGET%g
4214 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4215 s%@ncn_cv_NM_FOR_TARGET@%$ncn_cv_NM_FOR_TARGET%g
4216 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4217 s%@ncn_cv_RANLIB_FOR_TARGET@%$ncn_cv_RANLIB_FOR_TARGET%g
4218 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4219 s%@ncn_cv_WINDRES_FOR_TARGET@%$ncn_cv_WINDRES_FOR_TARGET%g
4220 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4221 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4222 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4223 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4224 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4225 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4226 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4227 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4228 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4229 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4230 s%@MAINT@%$MAINT%g
4232 CEOF
4235 cat >> $CONFIG_STATUS <<\EOF
4237 # Split the substitutions into bite-sized pieces for seds with
4238 # small command number limits, like on Digital OSF/1 and HP-UX.
4239 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4240 ac_file=1 # Number of current file.
4241 ac_beg=1 # First line for current file.
4242 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4243 ac_more_lines=:
4244 ac_sed_cmds=""
4245 while $ac_more_lines; do
4246 if test $ac_beg -gt 1; then
4247 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4248 else
4249 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4251 if test ! -s conftest.s$ac_file; then
4252 ac_more_lines=false
4253 rm -f conftest.s$ac_file
4254 else
4255 if test -z "$ac_sed_cmds"; then
4256 ac_sed_cmds="sed -f conftest.s$ac_file"
4257 else
4258 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4260 ac_file=`expr $ac_file + 1`
4261 ac_beg=$ac_end
4262 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4264 done
4265 if test -z "$ac_sed_cmds"; then
4266 ac_sed_cmds=cat
4270 cat >> $CONFIG_STATUS <<EOF
4272 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4274 cat >> $CONFIG_STATUS <<\EOF
4275 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4277 case "$ac_file" in
4278 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4279 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4280 *) ac_file_in="${ac_file}.in" ;;
4281 esac
4283 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4285 # Remove last slash and all that follows it. Not all systems have dirname.
4286 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4287 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4288 # The file is in a subdirectory.
4289 test ! -d "$ac_dir" && mkdir "$ac_dir"
4290 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4291 # A "../" for each directory in $ac_dir_suffix.
4292 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4293 else
4294 ac_dir_suffix= ac_dots=
4297 case "$ac_given_srcdir" in
4298 .) srcdir=.
4299 if test -z "$ac_dots"; then top_srcdir=.
4300 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4301 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4302 *) # Relative path.
4303 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4304 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4305 esac
4308 echo creating "$ac_file"
4309 rm -f "$ac_file"
4310 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4311 case "$ac_file" in
4312 *Makefile*) ac_comsub="1i\\
4313 # $configure_input" ;;
4314 *) ac_comsub= ;;
4315 esac
4317 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4318 sed -e "$ac_comsub
4319 s%@configure_input@%$configure_input%g
4320 s%@srcdir@%$srcdir%g
4321 s%@top_srcdir@%$top_srcdir%g
4322 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4323 fi; done
4324 rm -f conftest.s*
4327 cat >> $CONFIG_STATUS <<EOF
4330 cat >> $CONFIG_STATUS <<\EOF
4332 exit 0
4334 chmod +x $CONFIG_STATUS
4335 rm -fr confdefs* $ac_clean_files
4336 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1