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