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