* configure.ac (target_libraries): Move libgcc before libiberty.
[binutils.git] / configure
blobace7014b5260f535c1a869ab8444bbb0d49edde0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
742 # Report the --help message.
744 if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
747 cat <<_ACEOF
748 \`configure' configures this package to adapt to many kinds of systems.
750 Usage: $0 [OPTION]... [VAR=VALUE]...
752 To assign environment variables (e.g., CC, CFLAGS...), specify them as
753 VAR=VALUE. See below for descriptions of some of the useful variables.
755 Defaults for the options are specified in brackets.
757 Configuration:
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768 _ACEOF
770 cat <<_ACEOF
771 Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
773 [$ac_default_prefix]
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
775 [PREFIX]
777 By default, \`make install' will install all the files in
778 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780 for instance \`--prefix=\$HOME'.
782 For better control, use the options below.
784 Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
797 _ACEOF
799 cat <<\_ACEOF
801 Program names:
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
806 System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810 _ACEOF
813 if test -n "$ac_init_help"; then
815 cat <<\_ACEOF
817 Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful for compiler development.
824 --enable-objc-gc enable the use of Boehm's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
834 of the compiler.
835 --enable-werror enable -Werror in bootstrap stage2 and later
837 Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 _ACEOF
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963 cd $ac_popdir
964 done
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 # Find the build, host, and target systems.
1313 ac_aux_dir=
1314 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1315 if test -f $ac_dir/install-sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install-sh -c"
1318 break
1319 elif test -f $ac_dir/install.sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install.sh -c"
1322 break
1323 elif test -f $ac_dir/shtool; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 break
1328 done
1329 if test -z "$ac_aux_dir"; then
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
1334 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338 # Make sure we can run config.sub.
1339 $ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1344 echo "$as_me:$LINENO: checking build system type" >&5
1345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346 if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349 ac_cv_build_alias=$build_alias
1350 test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352 test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363 echo "${ECHO_T}$ac_cv_build" >&6
1364 build=$ac_cv_build
1365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 case ${build_alias} in
1371 "") build_noncanonical=${build} ;;
1372 *) build_noncanonical=${build_alias} ;;
1373 esac
1377 case ${host_alias} in
1378 "") host_noncanonical=${build_noncanonical} ;;
1379 *) host_noncanonical=${host_alias} ;;
1380 esac
1384 case ${target_alias} in
1385 "") target_noncanonical=${host_noncanonical} ;;
1386 *) target_noncanonical=${target_alias} ;;
1387 esac
1392 test "$host_noncanonical" = "$target_noncanonical" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1395 program_transform_name=s,y,y,
1397 echo "$as_me:$LINENO: checking host system type" >&5
1398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399 if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_host_alias=$host_alias
1403 test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias=$ac_cv_build_alias
1405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412 echo "${ECHO_T}$ac_cv_host" >&6
1413 host=$ac_cv_host
1414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 echo "$as_me:$LINENO: checking target system type" >&5
1420 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421 if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_target_alias=$target_alias
1425 test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias=$ac_cv_host_alias
1427 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434 echo "${ECHO_T}$ac_cv_target" >&6
1435 target=$ac_cv_target
1436 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 # The aliases save the names the user supplied, while $host etc.
1442 # will get canonicalized.
1443 test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1445 NONENONEs,x,x, &&
1446 program_prefix=${target_alias}-
1447 test "$program_prefix" != NONE &&
1448 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE &&
1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452 # Double any \ or $. echo might interpret backslashes.
1453 # By default was `s,x,x', remove it if useless.
1454 cat <<\_ACEOF >conftest.sed
1455 s/[\\$]/&&/g;s/;s,x,x,$//
1456 _ACEOF
1457 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458 rm conftest.sed
1462 # Get 'install' or 'install-sh' and its variants.
1463 # Find a good install program. We prefer a C program (faster),
1464 # so one script is as good as another. But avoid the broken or
1465 # incompatible versions:
1466 # SysV /etc/install, /usr/sbin/install
1467 # SunOS /usr/etc/install
1468 # IRIX /sbin/install
1469 # AIX /bin/install
1470 # AmigaOS /C/install, which installs bootblocks on floppy discs
1471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1474 # OS/2's system install, which has a completely different semantic
1475 # ./install, which can be erroneously created by make from ./install.sh.
1476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1478 if test -z "$INSTALL"; then
1479 if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 # Account for people who put trailing slashes in PATH elements.
1488 case $as_dir/ in
1489 ./ | .// | /cC/* | \
1490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 /usr/ucb/* ) ;;
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1496 # by default.
1497 for ac_prog in ginstall scoinst install; do
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1500 if test $ac_prog = install &&
1501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1502 # AIX install. It has an incompatible calling convention.
1504 elif test $ac_prog = install &&
1505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1508 else
1509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510 break 3
1513 done
1514 done
1516 esac
1517 done
1521 if test "${ac_cv_path_install+set}" = set; then
1522 INSTALL=$ac_cv_path_install
1523 else
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
1528 INSTALL=$ac_install_sh
1531 echo "$as_me:$LINENO: result: $INSTALL" >&5
1532 echo "${ECHO_T}$INSTALL" >&6
1534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535 # It thinks the first close brace ends the variable substitution.
1536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1542 echo "$as_me:$LINENO: checking whether ln works" >&5
1543 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544 if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 rm -f conftestdata_t
1548 echo >conftestdata_f
1549 if ln conftestdata_f conftestdata_t 2>/dev/null
1550 then
1551 acx_cv_prog_LN=ln
1552 else
1553 acx_cv_prog_LN=no
1555 rm -f conftestdata_f conftestdata_t
1558 if test $acx_cv_prog_LN = no; then
1559 LN="cp"
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561 echo "${ECHO_T}no, using $LN" >&6
1562 else
1563 LN="$acx_cv_prog_LN"
1564 echo "$as_me:$LINENO: result: yes" >&5
1565 echo "${ECHO_T}yes" >&6
1568 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570 LN_S=$as_ln_s
1571 if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573 echo "${ECHO_T}yes" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576 echo "${ECHO_T}no, using $LN_S" >&6
1580 ### we might need to use some other shell than /bin/sh for running subshells
1581 ### If we are on Windows, search for the shell. This will permit people
1582 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583 ### without also having to set CONFIG_SHELL. This code will work when
1584 ### using bash, which sets OSTYPE.
1585 case "${OSTYPE}" in
1586 *win32*)
1587 if test x${CONFIG_SHELL} = x ; then
1588 if test ! -f /bin/sh ; then
1589 if test x${SHELL} != x && test -f ${SHELL} ; then
1590 CONFIG_SHELL=${SHELL}
1591 export CONFIG_SHELL
1592 else
1593 for prog in sh sh.exe bash bash.exe; do
1594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1595 for dir in $PATH; do
1596 test -z "$dir" && dir=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL=$dir/$prog
1599 export CONFIG_SHELL
1600 break
1602 done
1603 IFS="$save_ifs"
1604 test -n "${CONFIG_SHELL}" && break
1605 done
1610 esac
1612 config_shell=${CONFIG_SHELL-/bin/sh}
1614 progname=$0
1615 # if PWD already has a value, it is probably wrong.
1616 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1618 # Export original configure arguments for use by sub-configures. These
1619 # will be expanded by make, so quote '$'.
1620 tmp="$progname $@"
1621 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1622 $tmp
1623 EOF_SED
1624 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1625 rm -f conftestsed.out
1628 moveifchange=${srcdir}/move-if-change
1630 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1632 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1633 # a relative path.
1634 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1635 INSTALL="${srcpwd}/install-sh -c"
1638 # Set srcdir to "." if that's what it is.
1639 # This is important for multilib support.
1640 pwd=`${PWDCMD-pwd}`
1641 if test "${pwd}" = "${srcpwd}" ; then
1642 srcdir=.
1645 topsrcdir=$srcpwd
1647 extra_host_args=
1649 ### To add a new directory to the tree, first choose whether it is a target
1650 ### or a host dependent tool. Then put it into the appropriate list
1651 ### (library or tools, host or target), doing a dependency sort.
1653 # Subdirs will be configured in the order listed in build_configdirs,
1654 # configdirs, or target_configdirs; see the serialization section below.
1656 # Dependency sorting is only needed when *configuration* must be done in
1657 # a particular order. In all cases a dependency should be specified in
1658 # the Makefile, whether or not it's implicitly specified here.
1660 # Double entries in build_configdirs, configdirs, or target_configdirs may
1661 # cause circular dependencies and break everything horribly.
1663 # these library is used by various programs built for the build
1664 # environment
1666 build_libs="build-libiberty"
1668 # these tools are built for the build environment
1669 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1671 # these libraries are used by various programs built for the host environment
1673 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1675 # these tools are built for the host environment
1676 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1677 # know that we are building the simulator.
1678 # binutils, gas and ld appear in that order because it makes sense to run
1679 # "make check" in that particular order.
1680 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1682 # libgcj represents the runtime libraries only used by gcj.
1683 libgcj="target-libffi \
1684 target-zlib \
1685 target-qthreads \
1686 target-libjava"
1688 # these libraries are built for the target environment, and are built after
1689 # the host libraries and the host tools (which may be a cross compiler)
1691 target_libraries="target-libgcc \
1692 target-libiberty \
1693 target-libgloss \
1694 target-newlib \
1695 target-libstdc++-v3 \
1696 target-libmudflap \
1697 target-libssp \
1698 target-libgfortran \
1699 target-boehm-gc \
1700 ${libgcj} \
1701 target-libobjc \
1702 target-libada \
1703 target-libgomp"
1705 # these tools are built using the target libraries, and are intended to
1706 # run only in the target environment
1708 # note: any program that *uses* libraries that are in the "target_libraries"
1709 # list belongs in this list. those programs are also very likely
1710 # candidates for the "native_only" list which follows
1712 target_tools="target-examples target-groff target-gperf target-rda"
1714 ################################################################################
1716 ## All tools belong in one of the four categories, and are assigned above
1717 ## We assign ${configdirs} this way to remove all embedded newlines. This
1718 ## is important because configure will choke if they ever get through.
1719 ## ${configdirs} is directories we build using the host tools.
1720 ## ${target_configdirs} is directories we build using the target tools.
1721 configdirs=`echo ${host_libs} ${host_tools}`
1722 target_configdirs=`echo ${target_libraries} ${target_tools}`
1723 build_configdirs=`echo ${build_libs} ${build_tools}`
1725 ################################################################################
1727 srcname="gnu development package"
1729 # This gets set non-empty for some net releases of packages.
1730 appdirs=""
1732 # Define is_cross_compiler to save on calls to 'test'.
1733 is_cross_compiler=
1734 if test x"${host}" = x"${target}" ; then
1735 is_cross_compiler=no
1736 else
1737 is_cross_compiler=yes
1740 # Find the build and target subdir names.
1742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1743 # have matching libraries, they should use host libraries: Makefile.tpl
1744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1745 # However, they still use the build modules, because the corresponding
1746 # host modules (e.g. bison) are only built for the host when bootstrap
1747 # finishes. So:
1748 # - build_subdir is where we find build modules, and never changes.
1749 # - build_libsubdir is where we find build libraries, and can be overridden.
1751 # Prefix 'build-' so this never conflicts with target_subdir.
1752 build_subdir="build-${build_noncanonical}"
1754 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1755 if test "${with_build_libsubdir+set}" = set; then
1756 withval="$with_build_libsubdir"
1757 build_libsubdir="$withval"
1758 else
1759 build_libsubdir="$build_subdir"
1761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1762 if ( test $srcdir = . && test -d gcc ) \
1763 || test -d $srcdir/../host-${host_noncanonical}; then
1764 host_subdir="host-${host_noncanonical}"
1765 else
1766 host_subdir=.
1768 # No prefix.
1769 target_subdir=${target_noncanonical}
1772 # Skipdirs are removed silently.
1773 skipdirs=
1774 # Noconfigdirs are removed loudly.
1775 noconfigdirs=""
1777 use_gnu_ld=
1778 # Make sure we don't let GNU ld be added if we didn't want it.
1779 if test x$with_gnu_ld = xno ; then
1780 use_gnu_ld=no
1781 noconfigdirs="$noconfigdirs ld"
1784 use_gnu_as=
1785 # Make sure we don't let GNU as be added if we didn't want it.
1786 if test x$with_gnu_as = xno ; then
1787 use_gnu_as=no
1788 noconfigdirs="$noconfigdirs gas"
1791 # some tools are so dependent upon X11 that if we're not building with X,
1792 # it's not even worth trying to configure, much less build, that tool.
1794 case ${with_x} in
1795 yes | "") ;; # the default value for this tree is that X11 is available
1797 skipdirs="${skipdirs} tk itcl libgui"
1798 # We won't be able to build gdbtk without X.
1799 enable_gdbtk=no
1801 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1802 esac
1804 # Some tools are only suitable for building in a "native" situation.
1805 # Remove these if host!=target.
1806 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1808 # Similarly, some are only suitable for cross toolchains.
1809 # Remove these if host=target.
1810 cross_only="target-libgloss target-newlib target-opcodes"
1812 case $is_cross_compiler in
1813 no) skipdirs="${skipdirs} ${cross_only}" ;;
1814 yes) skipdirs="${skipdirs} ${native_only}" ;;
1815 esac
1817 # If both --with-headers and --with-libs are specified, default to
1818 # --without-newlib.
1819 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1820 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1821 if test x"${with_newlib}" = x ; then
1822 with_newlib=no
1826 # Recognize --with-newlib/--without-newlib.
1827 case ${with_newlib} in
1828 no) skipdirs="${skipdirs} target-newlib" ;;
1829 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1830 esac
1832 # Configure extra directories which are host specific
1834 case "${host}" in
1835 *-cygwin*)
1836 configdirs="$configdirs libtermcap" ;;
1837 esac
1839 # A target can indicate whether a language isn't supported for some reason.
1840 # Only spaces may be used in this macro; not newlines or tabs.
1841 unsupported_languages=
1843 # Remove more programs from consideration, based on the host or
1844 # target this usually means that a port of the program doesn't
1845 # exist yet.
1847 case "${host}" in
1848 hppa*64*-*-*)
1849 noconfigdirs="$noconfigdirs byacc"
1851 i[3456789]86-*-vsta)
1852 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1854 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1855 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1857 x86_64-*-mingw*)
1858 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1860 i[3456789]86-*-mingw32*)
1861 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1862 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1864 i[3456789]86-*-beos*)
1865 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1867 *-*-cygwin*)
1868 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1870 *-*-netbsd*)
1871 noconfigdirs="$noconfigdirs rcs"
1873 ppc*-*-pe)
1874 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1876 powerpc-*-beos*)
1877 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1879 esac
1882 # Check whether --enable-libada or --disable-libada was given.
1883 if test "${enable_libada+set}" = set; then
1884 enableval="$enable_libada"
1885 ENABLE_LIBADA=$enableval
1886 else
1887 ENABLE_LIBADA=yes
1889 if test "${ENABLE_LIBADA}" != "yes" ; then
1890 noconfigdirs="$noconfigdirs gnattools"
1893 # Check whether --enable-libssp or --disable-libssp was given.
1894 if test "${enable_libssp+set}" = set; then
1895 enableval="$enable_libssp"
1896 ENABLE_LIBSSP=$enableval
1897 else
1898 ENABLE_LIBSSP=yes
1901 # Save it here so that, even in case of --enable-libgcj, if the Java
1902 # front-end isn't enabled, we still get libgcj disabled.
1903 libgcj_saved=$libgcj
1904 case $enable_libgcj in
1905 yes)
1906 # If we reset it here, it won't get added to noconfigdirs in the
1907 # target-specific build rules, so it will be forcibly enabled
1908 # (unless the Java language itself isn't enabled).
1909 libgcj=
1912 # Make sure we get it printed in the list of not supported target libs.
1913 noconfigdirs="$noconfigdirs ${libgcj}"
1915 esac
1918 # Disable libmudflap on some systems.
1919 if test x$enable_libmudflap = x ; then
1920 case "${target}" in
1921 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1922 # Enable libmudflap by default in GNU and friends.
1924 *-*-freebsd*)
1925 # Enable libmudflap by default in FreeBSD.
1928 # Disable it by default everywhere else.
1929 noconfigdirs="$noconfigdirs target-libmudflap"
1931 esac
1934 # Disable libgomp on non POSIX hosted systems.
1935 if test x$enable_libgomp = x ; then
1936 # Enable libgomp by default on hosted POSIX systems.
1937 case "${target}" in
1938 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1940 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1942 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1944 *-*-darwin* | *-*-aix*)
1947 noconfigdirs="$noconfigdirs target-libgomp"
1949 esac
1953 case "${target}" in
1954 *-*-chorusos)
1955 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1957 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1958 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1959 noconfigdirs="$noconfigdirs sim target-rda"
1961 *-*-darwin*)
1962 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1963 noconfigdirs="$noconfigdirs sim target-rda"
1964 noconfigdirs="$noconfigdirs ${libgcj}"
1966 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1967 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1969 *-*-freebsd*)
1970 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1971 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1972 && test -f /usr/local/include/gmp.h; then
1973 with_gmp=/usr/local
1976 # Skip some stuff that's unsupported on some FreeBSD configurations.
1977 case "${target}" in
1978 i*86-*-*) ;;
1979 alpha*-*-*) ;;
1981 noconfigdirs="$noconfigdirs ${libgcj}"
1983 esac
1985 *-*-kaos*)
1986 # Remove unsupported stuff on all kaOS configurations.
1987 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1988 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1989 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1990 noconfigdirs="$noconfigdirs target-libgloss"
1992 *-*-netbsd*)
1993 # Skip some stuff on all NetBSD configurations.
1994 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1996 # Skip some stuff that's unsupported on some NetBSD configurations.
1997 case "${target}" in
1998 i*86-*-netbsdelf*) ;;
1999 arm*-*-netbsdelf*) ;;
2001 noconfigdirs="$noconfigdirs ${libgcj}"
2003 esac
2005 *-*-netware*)
2006 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2008 *-*-rtems*)
2009 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2011 # The tpf target doesn't support gdb yet.
2012 *-*-tpf*)
2013 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2015 *-*-uclinux*)
2016 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2018 *-*-vxworks*)
2019 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2021 alpha*-dec-osf*)
2022 # ld works, but does not support shared libraries.
2023 # newlib is not 64 bit ready. I'm not sure about fileutils.
2024 # gas doesn't generate exception information.
2025 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2027 alpha*-*-*vms*)
2028 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2030 alpha*-*-linux*)
2031 # newlib is not 64 bit ready
2032 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2034 alpha*-*-*)
2035 # newlib is not 64 bit ready
2036 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2038 am33_2.0-*-linux*)
2039 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2041 sh-*-linux*)
2042 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2044 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2045 noconfigdirs="$noconfigdirs ${libgcj}"
2046 noconfigdirs="$noconfigdirs target-examples"
2047 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2048 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2049 noconfigdirs="$noconfigdirs expect dejagnu"
2050 # the C++ libraries don't build on top of CE's C libraries
2051 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2052 noconfigdirs="$noconfigdirs target-newlib"
2053 case "${host}" in
2054 *-*-cygwin*) ;; # keep gdb and readline
2055 *) noconfigdirs="$noconfigdirs gdb readline"
2057 esac
2059 arc-*-*)
2060 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2062 arm-semi-aof )
2064 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2065 noconfigdirs="$noconfigdirs ${libgcj}"
2067 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2068 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2070 arm*-*-linux-gnueabi)
2071 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2072 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2074 arm*-*-symbianelf*)
2075 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2077 arm-*-pe*)
2078 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2080 thumb-*-coff)
2081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2083 thumb-*-elf)
2084 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2086 thumb-*-pe)
2087 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2089 arm-*-riscix*)
2090 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2092 avr-*-*)
2093 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2095 bfin-*-*)
2096 noconfigdirs="$noconfigdirs gdb"
2097 if test x${is_cross_compiler} != xno ; then
2098 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2101 c4x-*-* | tic4x-*-*)
2102 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2104 c54x*-*-* | tic54x-*-*)
2105 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2107 cris-*-* | crisv32-*-*)
2108 unsupported_languages="$unsupported_languages java"
2109 case "${target}" in
2110 *-*-aout)
2111 unsupported_languages="$unsupported_languages fortran"
2112 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2113 *-*-elf)
2114 unsupported_languages="$unsupported_languages fortran"
2115 noconfigdirs="$noconfigdirs target-boehm-gc";;
2116 *-*-linux*)
2117 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2119 unsupported_languages="$unsupported_languages fortran"
2120 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2121 esac
2123 crx-*-*)
2124 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2126 d10v-*-*)
2127 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2129 d30v-*-*)
2130 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2132 fr30-*-elf*)
2133 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2135 frv-*-*)
2136 noconfigdirs="$noconfigdirs ${libgcj}"
2138 h8300*-*-*)
2139 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2141 h8500-*-*)
2142 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2144 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2146 hppa*64*-*-linux* | parisc*64*-*-linux*)
2147 # In this case, it's because the hppa64-linux target is for
2148 # the kernel only at this point and has no libc, and thus no
2149 # headers, crt*.o, etc., all of which are needed by these.
2150 noconfigdirs="$noconfigdirs target-zlib"
2152 parisc*-*-linux* | hppa*-*-linux*)
2154 hppa*-*-*elf* | \
2155 hppa*-*-lites* | \
2156 hppa*-*-openbsd* | \
2157 hppa*64*-*-*)
2158 noconfigdirs="$noconfigdirs ${libgcj}"
2160 hppa*-hp-hpux11*)
2161 noconfigdirs="$noconfigdirs ld shellutils"
2163 hppa*-*-*)
2164 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2165 # build on HP-UX 10.20.
2166 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2168 i960-*-*)
2169 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2171 ia64*-*-elf*)
2172 # No gdb support yet.
2173 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2175 ia64*-**-hpux*)
2176 # No gdb or ld support yet.
2177 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2179 i370-*-opened*)
2181 i[3456789]86-*-coff | i[3456789]86-*-elf)
2182 noconfigdirs="$noconfigdirs ${libgcj}"
2184 i[3456789]86-*-linux*)
2185 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2186 # not build java stuff by default.
2187 case "${target}" in
2188 *-*-*libc1*)
2189 noconfigdirs="$noconfigdirs ${libgcj}";;
2190 esac
2192 # This section makes it possible to build newlib natively on linux.
2193 # If we are using a cross compiler then don't configure newlib.
2194 if test x${is_cross_compiler} != xno ; then
2195 noconfigdirs="$noconfigdirs target-newlib"
2197 noconfigdirs="$noconfigdirs target-libgloss"
2198 # If we are not using a cross compiler, do configure newlib.
2199 # Note however, that newlib will only be configured in this situation
2200 # if the --with-newlib option has been given, because otherwise
2201 # 'target-newlib' will appear in skipdirs.
2203 i[3456789]86-*-mingw32*)
2204 target_configdirs="$target_configdirs target-winsup"
2205 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2207 x86_64-*-mingw*)
2208 target_configdirs="$target_configdirs target-winsup"
2209 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2211 *-*-cygwin*)
2212 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2213 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2214 # always build newlib if winsup directory is present.
2215 if test -d "$srcdir/winsup/cygwin"; then
2216 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2217 elif test -d "$srcdir/newlib"; then
2218 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2221 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2222 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2224 i[3456789]86-*-pe)
2225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2227 i[3456789]86-*-sco3.2v5*)
2228 # The linker does not yet know about weak symbols in COFF,
2229 # and is not configured to handle mixed ELF and COFF.
2230 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2232 i[3456789]86-*-sco*)
2233 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2235 i[3456789]86-*-solaris2*)
2236 noconfigdirs="$noconfigdirs target-libgloss"
2238 i[3456789]86-*-sysv4*)
2239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2241 i[3456789]86-*-beos*)
2242 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2244 i[3456789]86-*-rdos*)
2245 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2247 m32r-*-*)
2248 noconfigdirs="$noconfigdirs ${libgcj}"
2250 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2251 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2253 m68k-*-elf*)
2254 noconfigdirs="$noconfigdirs ${libgcj}"
2256 m68k-*-coff*)
2257 noconfigdirs="$noconfigdirs ${libgcj}"
2259 mcore-*-pe*)
2260 # The EPOC C++ environment does not support exceptions or rtti,
2261 # and so building libstdc++-v3 tends not to always work.
2262 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2264 mmix-*-*)
2265 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2266 unsupported_languages="$unsupported_languages fortran java"
2268 mn10200-*-*)
2269 noconfigdirs="$noconfigdirs ${libgcj}"
2271 mn10300-*-*)
2272 noconfigdirs="$noconfigdirs ${libgcj}"
2274 mt-*-*)
2275 noconfigdirs="$noconfigdirs sim"
2277 powerpc-*-aix*)
2278 # copied from rs6000-*-* entry
2279 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2281 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2282 target_configdirs="$target_configdirs target-winsup"
2283 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2284 # always build newlib.
2285 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2287 # This is temporary until we can link against shared libraries
2288 powerpcle-*-solaris*)
2289 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2291 powerpc-*-beos*)
2292 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2294 powerpc-*-eabi)
2295 noconfigdirs="$noconfigdirs ${libgcj}"
2297 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2299 rs6000-*-lynxos*)
2300 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2302 rs6000-*-aix*)
2303 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2305 rs6000-*-*)
2306 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2308 m68k-apollo-*)
2309 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2311 mips*-*-irix5*)
2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2314 mips*-*-irix6*)
2315 # Linking libjava exceeds command-line length limits on at least
2316 # IRIX 6.2, but not on IRIX 6.5.
2317 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2318 # <oldham@codesourcery.com>
2319 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2321 mips*-*-bsd*)
2322 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2324 mips64*-*-linux*)
2325 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2327 mips*-*-linux*)
2328 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2330 mips*-*-*)
2331 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2333 romp-*-*)
2334 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2336 sh-*-* | sh64-*-*)
2337 case "${host}" in
2338 i[3456789]86-*-vsta) ;; # don't add gprof back in
2339 i[3456789]86-*-go32*) ;; # don't add gprof back in
2340 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2341 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2342 esac
2343 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2345 sparc-*-elf*)
2346 noconfigdirs="$noconfigdirs ${libgcj}"
2348 sparc64-*-elf*)
2349 noconfigdirs="$noconfigdirs ${libgcj}"
2351 sparclite-*-*)
2352 noconfigdirs="$noconfigdirs ${libgcj}"
2354 sparc-*-sunos4*)
2355 noconfigdirs="$noconfigdirs ${libgcj}"
2356 if test x${is_cross_compiler} != xno ; then
2357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2358 else
2359 use_gnu_ld=no
2362 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2363 noconfigdirs="$noconfigdirs ${libgcj}"
2365 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2367 spu-*-*)
2368 skipdirs="target-libssp"
2370 v810-*-*)
2371 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2373 v850-*-*)
2374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2376 v850e-*-*)
2377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2379 v850ea-*-*)
2380 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2382 vax-*-vms)
2383 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2385 vax-*-*)
2386 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2388 xtensa-*-*)
2389 noconfigdirs="$noconfigdirs ${libgcj}"
2391 ip2k-*-*)
2392 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2394 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2397 *-*-lynxos*)
2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2400 *-*-*)
2401 noconfigdirs="$noconfigdirs ${libgcj}"
2403 esac
2405 # If we aren't building newlib, then don't build libgloss, since libgloss
2406 # depends upon some newlib header files.
2407 case "${noconfigdirs}" in
2408 *target-libgloss*) ;;
2409 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2410 esac
2412 # Work in distributions that contain no compiler tools, like Autoconf.
2413 tentative_cc=""
2414 host_makefile_frag=/dev/null
2415 if test -d ${srcdir}/config ; then
2416 case "${host}" in
2417 m68k-hp-hpux*)
2418 # Avoid "too much defining" errors from HPUX compiler.
2419 tentative_cc="cc -Wp,-H256000"
2420 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2421 # If it's HP/UX ar, this should be harmless.
2422 RANLIB="ar ts"
2424 m68k-apollo-sysv*)
2425 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2427 m68k-apollo-bsd*)
2428 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2429 # chokes on bfd, the compiler won't let you assign integers to enums, and
2430 # other problems. Defining CC to gcc is a questionable way to say "don't use
2431 # the apollo compiler" (the preferred version of GCC could be called cc,
2432 # or whatever), but I'm not sure leaving CC as cc is any better...
2433 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2434 # Used to have BISON=yacc.
2435 tentative_cc=gcc
2437 m88k-dg-dgux*)
2438 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2440 m88k-harris-cxux*)
2441 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2442 tentative_cc="cc -Xa"
2443 host_makefile_frag="config/mh-cxux"
2445 m88k-motorola-sysv*)
2447 mips*-dec-ultrix*)
2448 tentative_cc="cc -Wf,-XNg1000"
2449 host_makefile_frag="config/mh-decstation"
2451 mips*-nec-sysv4*)
2452 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2453 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2454 host_makefile_frag="config/mh-necv4"
2456 mips*-sgi-irix4*)
2457 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2458 # environment. Also bump switch table size so that cp-parse will
2459 # compile. Bump string length limit so linker builds.
2460 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2462 mips*-*-sysv4*)
2463 host_makefile_frag="config/mh-sysv4"
2465 mips*-*-sysv*)
2466 # This is for a MIPS running RISC/os 4.52C.
2468 # This is needed for GDB, but needs to be in the top-level make because
2469 # if a library is compiled with the bsd headers and gets linked with the
2470 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2471 # a different size).
2472 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2473 # known except to select the sysv environment. Could we use /proc instead?
2474 # These "sysv environments" and "bsd environments" often end up being a pain.
2476 # This is not part of CFLAGS because perhaps not all C compilers have this
2477 # option.
2478 tentative_cc="cc -systype sysv"
2480 i370-ibm-opened*)
2481 tentative_cc="c89"
2483 i[3456789]86-*-sysv5*)
2484 host_makefile_frag="config/mh-sysv5"
2486 i[3456789]86-*-dgux*)
2487 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2488 host_makefile_frag="config/mh-dgux386"
2490 i[3456789]86-ncr-sysv4.3*)
2491 # The MetaWare compiler will generate a copyright message unless you
2492 # turn it off by adding the -Hnocopyr flag.
2493 tentative_cc="cc -Hnocopyr"
2495 i[3456789]86-ncr-sysv4*)
2496 # for an NCR 3000 (i486/SVR4) system.
2497 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2498 # This compiler not only emits obnoxious copyright messages every time
2499 # you run it, but it chokes and dies on a whole bunch of GNU source
2500 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2501 tentative_cc="/usr/ccs/ATT/cc"
2502 host_makefile_frag="config/mh-ncr3000"
2504 i[3456789]86-*-sco3.2v5*)
2506 i[3456789]86-*-sco*)
2507 # The native C compiler botches some simple uses of const. Unfortunately,
2508 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2509 tentative_cc="cc -Dconst="
2510 host_makefile_frag="config/mh-sco"
2512 i[3456789]86-*-udk*)
2513 host_makefile_frag="config/mh-sysv5"
2515 i[3456789]86-*-solaris2*)
2516 host_makefile_frag="config/mh-sysv4"
2518 i[3456789]86-*-msdosdjgpp*)
2519 host_makefile_frag="config/mh-djgpp"
2521 *-cygwin*)
2522 host_makefile_frag="config/mh-cygwin"
2524 *-mingw32*)
2526 *-mingw64*)
2528 *-interix*)
2529 host_makefile_frag="config/mh-interix"
2531 vax-*-ultrix2*)
2532 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2533 tentative_cc=gcc
2535 *-*-solaris2*)
2536 host_makefile_frag="config/mh-solaris"
2538 m68k-sun-sunos*)
2539 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2540 # without overflowing the jump tables (-J says to use a 32 bit table)
2541 tentative_cc="cc -J"
2543 *-hp-hpux*)
2544 tentative_cc="cc -Wp,-H256000"
2546 *-*-hiux*)
2547 tentative_cc="cc -Wp,-H256000"
2549 rs6000-*-lynxos*)
2550 # /bin/cc is less than useful for our purposes. Always use GCC
2551 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2552 host_makefile_frag="config/mh-lynxrs6k"
2554 powerpc-*-darwin*)
2555 host_makefile_frag="config/mh-ppc-darwin"
2557 powerpc-*-aix*)
2558 host_makefile_frag="config/mh-ppc-aix"
2560 rs6000-*-aix*)
2561 host_makefile_frag="config/mh-ppc-aix"
2563 *-*-lynxos*)
2564 # /bin/cc is less than useful for our purposes. Always use GCC
2565 tentative_cc="/bin/gcc"
2567 *-*-sysv4*)
2568 host_makefile_frag="config/mh-sysv4"
2570 # This is placed last to prevent interfering with the cases above.
2571 i[3456789]86-*-*)
2572 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2573 host_makefile_frag="config/mh-x86omitfp"
2575 esac
2578 # If we aren't going to be using gcc, see if we can extract a definition
2579 # of CC from the fragment.
2580 # Actually, use the 'pre-extracted' version above.
2581 if test -z "${CC}" && test "${build}" = "${host}" ; then
2582 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2583 found=
2584 for dir in $PATH; do
2585 test -z "$dir" && dir=.
2586 if test -f $dir/gcc; then
2587 found=yes
2588 break
2590 done
2591 IFS="$save_ifs"
2592 if test -z "${found}" && test -n "${tentative_cc}" ; then
2593 CC=$tentative_cc
2597 if test "${build}" != "${host}" ; then
2598 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2599 else
2600 CC_FOR_BUILD="\$(CC)"
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2630 done
2631 done
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6
2639 else
2640 echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2645 if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2668 done
2669 done
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6
2677 else
2678 echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2682 CC=$ac_ct_CC
2683 else
2684 CC="$ac_cv_prog_CC"
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 echo "$as_me:$LINENO: result: $CC" >&5
2718 echo "${ECHO_T}$CC" >&6
2719 else
2720 echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2725 if test -z "$ac_cv_prog_CC"; then
2726 ac_ct_CC=$CC
2727 # Extract the first word of "cc", so it can be a program name with args.
2728 set dummy cc; ac_word=$2
2729 echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_ac_ct_CC="cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756 echo "${ECHO_T}$ac_ct_CC" >&6
2757 else
2758 echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2762 CC=$ac_ct_CC
2763 else
2764 CC="$ac_cv_prog_CC"
2768 if test -z "$CC"; then
2769 # Extract the first word of "cc", so it can be a program name with args.
2770 set dummy cc; ac_word=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 ac_prog_rejected=no
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected=yes
2789 continue
2791 ac_cv_prog_CC="cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2801 shift
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2806 shift
2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in cl
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 test -n "$CC" && break
2862 done
2864 if test -z "$CC"; then
2865 ac_ct_CC=$CC
2866 for ac_prog in cl
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897 echo "${ECHO_T}$ac_ct_CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2903 test -n "$ac_ct_CC" && break
2904 done
2906 CC=$ac_ct_CC
2912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO:" \
2920 "checking for C compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923 (eval $ac_compiler --version </dev/null >&5) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928 (eval $ac_compiler -v </dev/null >&5) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933 (eval $ac_compiler -V </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2946 main ()
2950 return 0;
2952 _ACEOF
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2957 # of exeext.
2958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2960 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2962 (eval $ac_link_default) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Find the output, starting from the most likely. This scheme is
2967 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2968 # resort.
2970 # Be careful to initialize this variable, since it used to be cached.
2971 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2972 ac_cv_exeext=
2973 # b.out is created by i960 compilers.
2974 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2976 test -f "$ac_file" || continue
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2980 conftest.$ac_ext )
2981 # This is the source file.
2983 [ab].out )
2984 # We found the default executable, but exeext='' is most
2985 # certainly right.
2986 break;;
2987 *.* )
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 # FIXME: I believe we export ac_cv_exeext for Libtool,
2990 # but it would be cool to find out if it's true. Does anybody
2991 # maintain Libtool? --akim.
2992 export ac_cv_exeext
2993 break;;
2995 break;;
2996 esac
2997 done
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3009 ac_exeext=$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6
3013 # Check the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051 echo "${ECHO_T}$cross_compiling" >&6
3053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3063 # `rm'.
3064 for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 export ac_cv_exeext
3070 break;;
3071 * ) break;;
3072 esac
3073 done
3074 else
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest$ac_cv_exeext
3083 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084 echo "${ECHO_T}$ac_cv_exeext" >&6
3086 rm -f conftest.$ac_ext
3087 EXEEXT=$ac_cv_exeext
3088 ac_exeext=$EXEEXT
3089 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3091 if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3102 main ()
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.o conftest.obj
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119 break;;
3120 esac
3121 done
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3126 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 echo "${ECHO_T}$ac_cv_objext" >&6
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3154 #ifndef __GNUC__
3155 choke me
3156 #endif
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_compiler_gnu=yes
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_compiler_gnu=no
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197 GCC=`test $ac_compiler_gnu = yes && echo yes`
3198 ac_test_CFLAGS=${CFLAGS+set}
3199 ac_save_CFLAGS=$CFLAGS
3200 CFLAGS="-g"
3201 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3214 main ()
3218 return 0;
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_cv_prog_cc_g=yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 ac_cv_prog_cc_g=no
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3262 else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3269 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 ac_cv_prog_cc_stdc=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290 char **p;
3291 int i;
3293 return p[i];
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std1 is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std1. */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314 int test (int i, double x);
3315 struct s1 {int (*f) (int a);};
3316 struct s2 {int (*f) (double a);};
3317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 int argc;
3319 char **argv;
3321 main ()
3323 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 return 0;
3327 _ACEOF
3328 # Don't try gcc -ansi; that turns off useful extensions and
3329 # breaks some systems' header files.
3330 # AIX -qlanglvl=ansi
3331 # Ultrix and OSF/1 -std1
3332 # HP-UX 10.20 and later -Ae
3333 # HP-UX older versions -Aa -D_HPUX_SOURCE
3334 # SVR4 -Xc -D__EXTENSIONS__
3335 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3337 CC="$ac_save_CC $ac_arg"
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cc_stdc=$ac_arg
3361 break
3362 else
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f conftest.err conftest.$ac_objext
3368 done
3369 rm -f conftest.$ac_ext conftest.$ac_objext
3370 CC=$ac_save_CC
3374 case "x$ac_cv_prog_cc_stdc" in
3375 x|xno)
3376 echo "$as_me:$LINENO: result: none needed" >&5
3377 echo "${ECHO_T}none needed" >&6 ;;
3379 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381 CC="$CC $ac_cv_prog_cc_stdc" ;;
3382 esac
3384 # Some people use a C++ compiler to compile C. Since we use `exit',
3385 # in C++ we need to declare it. In case someone uses the same compiler
3386 # for both compiling C and C++ we need to have the C++ compiler decide
3387 # the declaration of exit, since it's the most demanding environment.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #ifndef __cplusplus
3390 choke me
3391 #endif
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 for ac_declaration in \
3416 '' \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3421 'void exit (int);'
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 $ac_declaration
3430 #include <stdlib.h>
3432 main ()
3434 exit (42);
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag"
3449 || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 continue
3468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 $ac_declaration
3477 main ()
3479 exit (42);
3481 return 0;
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 break
3507 else
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 done
3514 rm -f conftest*
3515 if test -n "$ac_declaration"; then
3516 echo '#ifdef __cplusplus' >>confdefs.h
3517 echo $ac_declaration >>confdefs.h
3518 echo '#endif' >>confdefs.h
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 ac_ext=cc
3534 ac_cpp='$CXXCPP $CPPFLAGS'
3535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -n "$CXX"; then
3549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3562 done
3563 done
3567 CXX=$ac_cv_prog_CXX
3568 if test -n "$CXX"; then
3569 echo "$as_me:$LINENO: result: $CXX" >&5
3570 echo "${ECHO_T}$CXX" >&6
3571 else
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 test -n "$CXX" && break
3577 done
3579 if test -z "$CXX"; then
3580 ac_ct_CXX=$CXX
3581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 if test -n "$ac_ct_CXX"; then
3591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_ac_ct_CXX="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3604 done
3605 done
3609 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3610 if test -n "$ac_ct_CXX"; then
3611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3612 echo "${ECHO_T}$ac_ct_CXX" >&6
3613 else
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 test -n "$ac_ct_CXX" && break
3619 done
3620 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3622 CXX=$ac_ct_CXX
3626 # Provide some information about the compiler.
3627 echo "$as_me:$LINENO:" \
3628 "checking for C++ compiler version" >&5
3629 ac_compiler=`set X $ac_compile; echo $2`
3630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3631 (eval $ac_compiler --version </dev/null >&5) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }
3635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3636 (eval $ac_compiler -v </dev/null >&5) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3641 (eval $ac_compiler -V </dev/null >&5) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3646 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3647 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3648 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3659 main ()
3661 #ifndef __GNUC__
3662 choke me
3663 #endif
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_compiler_gnu=yes
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_compiler_gnu=no
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3702 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3704 GXX=`test $ac_compiler_gnu = yes && echo yes`
3705 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS=$CXXFLAGS
3707 CXXFLAGS="-g"
3708 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3710 if test "${ac_cv_prog_cxx_g+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -z "$ac_cxx_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_prog_cxx_g=yes
3751 else
3752 echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 ac_cv_prog_cxx_g=no
3757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3761 if test "$ac_test_CXXFLAGS" = set; then
3762 CXXFLAGS=$ac_save_CXXFLAGS
3763 elif test $ac_cv_prog_cxx_g = yes; then
3764 if test "$GXX" = yes; then
3765 CXXFLAGS="-g -O2"
3766 else
3767 CXXFLAGS="-g"
3769 else
3770 if test "$GXX" = yes; then
3771 CXXFLAGS="-O2"
3772 else
3773 CXXFLAGS=
3776 for ac_declaration in \
3777 '' \
3778 'extern "C" void std::exit (int) throw (); using std::exit;' \
3779 'extern "C" void std::exit (int); using std::exit;' \
3780 'extern "C" void exit (int) throw ();' \
3781 'extern "C" void exit (int);' \
3782 'void exit (int);'
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 $ac_declaration
3791 #include <stdlib.h>
3793 main ()
3795 exit (42);
3797 return 0;
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_cxx_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 continue
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 $ac_declaration
3838 main ()
3840 exit (42);
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 break
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 done
3875 rm -f conftest*
3876 if test -n "$ac_declaration"; then
3877 echo '#ifdef __cplusplus' >>confdefs.h
3878 echo $ac_declaration >>confdefs.h
3879 echo '#endif' >>confdefs.h
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889 # We must set the default linker to the linker used by gcc for the correct
3890 # operation of libtool. If LD is not defined and we are using gcc, try to
3891 # set the LD default to the ld used by gcc.
3892 if test -z "$LD"; then
3893 if test "$GCC" = yes; then
3894 case $build in
3895 *-*-mingw*)
3896 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3898 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3899 esac
3900 case $gcc_prog_ld in
3901 # Accept absolute paths.
3902 [\\/]* | [A-Za-z]:[\\/]*)
3903 LD="$gcc_prog_ld" ;;
3904 esac
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 if test -n "$GNATBIND"; then
3920 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3938 GNATBIND=$ac_cv_prog_GNATBIND
3939 if test -n "$GNATBIND"; then
3940 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3941 echo "${ECHO_T}$GNATBIND" >&6
3942 else
3943 echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3948 if test -z "$ac_cv_prog_GNATBIND"; then
3949 ac_ct_GNATBIND=$GNATBIND
3950 # Extract the first word of "gnatbind", so it can be a program name with args.
3951 set dummy gnatbind; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 if test -n "$ac_ct_GNATBIND"; then
3958 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3971 done
3972 done
3974 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3977 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3978 if test -n "$ac_ct_GNATBIND"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3980 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3981 else
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 GNATBIND=$ac_ct_GNATBIND
3987 else
3988 GNATBIND="$ac_cv_prog_GNATBIND"
3991 if test -n "$ac_tool_prefix"; then
3992 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 if test -n "$GNATMAKE"; then
4000 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4018 GNATMAKE=$ac_cv_prog_GNATMAKE
4019 if test -n "$GNATMAKE"; then
4020 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4021 echo "${ECHO_T}$GNATMAKE" >&6
4022 else
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4028 if test -z "$ac_cv_prog_GNATMAKE"; then
4029 ac_ct_GNATMAKE=$GNATMAKE
4030 # Extract the first word of "gnatmake", so it can be a program name with args.
4031 set dummy gnatmake; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 if test -n "$ac_ct_GNATMAKE"; then
4038 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4054 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4057 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4058 if test -n "$ac_ct_GNATMAKE"; then
4059 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4060 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4061 else
4062 echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4066 GNATMAKE=$ac_ct_GNATMAKE
4067 else
4068 GNATMAKE="$ac_cv_prog_GNATMAKE"
4071 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4072 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4073 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.adb <<EOF
4077 procedure conftest is begin null; end conftest;
4079 acx_cv_cc_gcc_supports_ada=no
4080 # There is a bug in old released versions of GCC which causes the
4081 # driver to exit successfully when the appropriate language module
4082 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4083 # Therefore we must check for the error message as well as an
4084 # unsuccessful exit.
4085 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4086 # given a .adb file, but produce no object file. So we must check
4087 # if an object file was really produced to guard against this.
4088 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4089 if test x"$errors" = x && test -f conftest.$ac_objext; then
4090 acx_cv_cc_gcc_supports_ada=yes
4092 rm -f conftest.*
4094 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4095 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4097 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4098 have_gnat=yes
4099 else
4100 have_gnat=no
4103 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4104 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4105 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108 echo abfoo >t1
4109 echo cdfoo >t2
4110 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4111 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4112 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4114 else
4115 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4118 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4119 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4121 else
4122 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4125 rm t1 t2
4128 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4129 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4130 do_compare="$gcc_cv_prog_cmp_skip"
4134 # Check for GMP and MPFR
4135 gmplibs="-lmpfr -lgmp"
4136 gmpinc=
4137 have_gmp=no
4139 # Specify a location for mpfr
4140 # check for this first so it ends up on the link line before gmp.
4142 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4143 if test "${with_mpfr_dir+set}" = set; then
4144 withval="$with_mpfr_dir"
4145 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4146 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4147 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4148 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4153 # Check whether --with-mpfr or --without-mpfr was given.
4154 if test "${with_mpfr+set}" = set; then
4155 withval="$with_mpfr"
4159 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4160 if test "${with_mpfr_include+set}" = set; then
4161 withval="$with_mpfr_include"
4165 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4166 if test "${with_mpfr_lib+set}" = set; then
4167 withval="$with_mpfr_lib"
4171 if test "x$with_mpfr" != x; then
4172 gmplibs="-L$with_mpfr/lib $gmplibs"
4173 gmpinc="-I$with_mpfr/include"
4175 if test "x$with_mpfr_include" != x; then
4176 gmpinc="-I$with_mpfr_include"
4178 if test "x$with_mpfr_lib" != x; then
4179 gmplibs="-L$with_mpfr_lib $gmplibs"
4181 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4182 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4183 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4184 # Do not test the mpfr version. Assume that it is sufficient, since
4185 # it is in the source tree, and the library has not been built yet
4186 # but it would be included on the link line in the version check below
4187 # hence making the test fail.
4188 have_gmp=yes
4191 # Specify a location for gmp
4193 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4194 if test "${with_gmp_dir+set}" = set; then
4195 withval="$with_gmp_dir"
4196 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4197 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4198 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4199 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4200 { (exit 1); exit 1; }; }
4204 # Check whether --with-gmp or --without-gmp was given.
4205 if test "${with_gmp+set}" = set; then
4206 withval="$with_gmp"
4210 # Check whether --with-gmp_include or --without-gmp_include was given.
4211 if test "${with_gmp_include+set}" = set; then
4212 withval="$with_gmp_include"
4216 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4217 if test "${with_gmp_lib+set}" = set; then
4218 withval="$with_gmp_lib"
4223 if test "x$with_gmp" != x; then
4224 gmplibs="-L$with_gmp/lib $gmplibs"
4225 gmpinc="-I$with_gmp/include $gmpinc"
4227 if test "x$with_gmp_include" != x; then
4228 gmpinc="-I$with_gmp_include $gmpinc"
4230 if test "x$with_gmp_lib" != x; then
4231 gmplibs="-L$with_gmp_lib $gmplibs"
4233 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4234 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4235 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4236 # Do not test the gmp version. Assume that it is sufficient, since
4237 # it is in the source tree, and the library has not been built yet
4238 # but it would be included on the link line in the version check below
4239 # hence making the test fail.
4240 have_gmp=yes
4243 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4244 have_gmp=yes
4245 saved_CFLAGS="$CFLAGS"
4246 CFLAGS="$CFLAGS $gmpinc"
4247 # Check GMP actually works
4248 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4249 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include "gmp.h"
4259 main ()
4262 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4263 choke me
4264 #endif
4267 return 0;
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag"
4280 || test ! -s conftest.err'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 (eval $ac_try) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; have_gmp=no
4301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test x"$have_gmp" = xyes; then
4304 saved_LIBS="$LIBS"
4305 LIBS="$LIBS $gmplibs"
4306 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4307 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h. */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 #include <gmp.h>
4315 #include <mpfr.h>
4317 main ()
4320 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4321 choke me
4322 #endif
4323 mpfr_t n; mpfr_init(n);
4324 mpfr_t x; mpfr_init(x);
4325 int t;
4326 mpfr_atan2 (n, n, x, GMP_RNDN);
4327 mpfr_erfc (n, x, GMP_RNDN);
4328 mpfr_subnormalize (x, t, GMP_RNDN);
4331 return 0;
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -z "$ac_c_werror_flag"
4344 || test ! -s conftest.err'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; } &&
4350 { ac_try='test -s conftest$ac_exeext'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <gmp.h>
4363 #include <mpfr.h>
4365 main ()
4368 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4369 choke me
4370 #endif
4371 mpfr_t n; mpfr_init(n);
4374 return 0;
4376 _ACEOF
4377 rm -f conftest.$ac_objext conftest$ac_exeext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4379 (eval $ac_link) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4406 echo "${ECHO_T}buggy but acceptable" >&6
4408 rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; have_gmp=no
4417 rm -f conftest.err conftest.$ac_objext \
4418 conftest$ac_exeext conftest.$ac_ext
4419 LIBS="$saved_LIBS"
4421 CFLAGS="$saved_CFLAGS"
4423 if test x$have_gmp != xyes; then
4424 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4425 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4426 Copies of these libraries' source code can be found at their respective
4427 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4428 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4429 If you obtained GMP and/or MPFR from a vendor distribution package, make
4430 sure that you have installed both the libraries and the header files.
4431 They may be located in separate packages." >&5
4432 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4433 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4434 Copies of these libraries' source code can be found at their respective
4435 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4436 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4437 If you obtained GMP and/or MPFR from a vendor distribution package, make
4438 sure that you have installed both the libraries and the header files.
4439 They may be located in separate packages." >&2;}
4440 { (exit 1); exit 1; }; }
4444 # Flags needed for both GMP and/or MPFR
4448 # By default, C is the only stage 1 language.
4449 stage1_languages=,c,
4451 # Figure out what language subdirectories are present.
4452 # Look if the user specified --enable-languages="..."; if not, use
4453 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4454 # go away some day.
4455 # NB: embedded tabs in this IF block -- do not untabify
4456 if test -d ${srcdir}/gcc; then
4457 if test x"${enable_languages+set}" != xset; then
4458 if test x"${LANGUAGES+set}" = xset; then
4459 enable_languages="${LANGUAGES}"
4460 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4461 else
4462 enable_languages=all
4464 else
4465 if test x"${enable_languages}" = x ||
4466 test x"${enable_languages}" = xyes;
4467 then
4468 echo configure.in: --enable-languages needs at least one language argument 1>&2
4469 exit 1
4472 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4474 # 'f95' is the old name for the 'fortran' language. We issue a warning
4475 # and make the substitution.
4476 case ,${enable_languages}, in
4477 *,f95,*)
4478 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4479 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4481 esac
4483 # First scan to see if an enabled language requires some other language.
4484 # We assume that a given config-lang.in will list all the language
4485 # front ends it requires, even if some are required indirectly.
4486 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4487 case ${lang_frag} in
4488 ..) ;;
4489 # The odd quoting in the next line works around
4490 # an apparent bug in bash 1.12 on linux.
4491 ${srcdir}/gcc/[*]/config-lang.in) ;;
4493 # From the config-lang.in, get $language, $lang_requires
4494 language=
4495 lang_requires=
4496 . ${lang_frag}
4497 for other in ${lang_requires} ; do
4498 case ,${enable_languages}, in
4499 *,$other,*) ;;
4500 *,all,*) ;;
4501 *,$language,*)
4502 echo " \`$other' language required by \`$language'; enabling" 1>&2
4503 enable_languages="${enable_languages},${other}"
4505 esac
4506 done
4508 esac
4509 done
4511 new_enable_languages=,c,
4512 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4513 potential_languages=,c,
4515 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4516 case ${lang_frag} in
4517 ..) ;;
4518 # The odd quoting in the next line works around
4519 # an apparent bug in bash 1.12 on linux.
4520 ${srcdir}/gcc/[*]/config-lang.in) ;;
4522 # From the config-lang.in, get $language, $target_libs,
4523 # $lang_dirs, $boot_language, and $build_by_default
4524 language=
4525 target_libs=
4526 lang_dirs=
4527 subdir_requires=
4528 boot_language=no
4529 build_by_default=yes
4530 . ${lang_frag}
4531 if test x${language} = x; then
4532 echo "${lang_frag} doesn't set \$language." 1>&2
4533 exit 1
4536 case ,${enable_languages}, in
4537 *,${language},*)
4538 # Language was explicitly selected; include it.
4539 add_this_lang=yes
4541 *,all,*)
4542 # 'all' was selected, select it if it is a default language
4543 add_this_lang=${build_by_default}
4546 add_this_lang=no
4548 esac
4550 # Disable languages that need other directories if these aren't available.
4551 for i in $subdir_requires; do
4552 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4553 case ,${enable_languages}, in
4554 *,${language},*)
4555 # Specifically requested language; tell them.
4556 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4557 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4558 { (exit 1); exit 1; }; }
4561 # Silently disable.
4562 add_this_lang=unsupported
4564 esac
4565 done
4567 # Disable Ada if no preexisting GNAT is available.
4568 case ,${enable_languages},:${language}:${have_gnat} in
4569 *,${language},*:ada:no)
4570 # Specifically requested language; tell them.
4571 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4572 echo "$as_me: error: GNAT is required to build $language" >&2;}
4573 { (exit 1); exit 1; }; }
4575 *:ada:no)
4576 # Silently disable.
4577 add_this_lang=unsupported
4579 esac
4581 # Disable a language that is unsupported by the target.
4582 case " $unsupported_languages " in
4583 *" $language "*)
4584 add_this_lang=unsupported
4586 esac
4588 case $add_this_lang in
4589 unsupported)
4590 # Remove language-dependent dirs.
4591 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4594 # Remove language-dependent dirs; still show language as supported.
4595 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4596 potential_languages="${potential_languages}${language},"
4598 yes)
4599 new_enable_languages="${new_enable_languages}${language},"
4600 potential_languages="${potential_languages}${language},"
4601 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4602 case ${boot_language} in
4603 yes)
4604 # Add to (comma-separated) list of stage 1 languages.
4605 stage1_languages="${stage1_languages}${language},"
4607 esac
4609 esac
4611 esac
4612 done
4614 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4615 if test "${enable_stage1_languages+set}" = set; then
4616 enableval="$enable_stage1_languages"
4617 case ,${enable_stage1_languages}, in
4618 ,no,|,,)
4619 # Set it to something that will have no effect in the loop below
4620 enable_stage1_languages=c ;;
4621 ,yes,)
4622 enable_stage1_languages=`echo $new_enable_languages | \
4623 sed -e "s/^,//" -e "s/,$//" ` ;;
4624 *,all,*)
4625 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4626 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4627 esac
4629 # Add "good" languages from enable_stage1_languages to stage1_languages,
4630 # while "bad" languages go in missing_languages. Leave no duplicates.
4631 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4632 case $potential_languages in
4633 *,$i,*)
4634 case $stage1_languages in
4635 *,$i,*) ;;
4636 *) stage1_languages="$stage1_languages$i," ;;
4637 esac ;;
4639 case $missing_languages in
4640 *,$i,*) ;;
4641 *) missing_languages="$missing_languages$i," ;;
4642 esac ;;
4643 esac
4644 done
4647 # Remove leading/trailing commas that were added for simplicity
4648 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4649 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4650 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4651 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4653 if test "x$missing_languages" != x; then
4654 { { echo "$as_me:$LINENO: error:
4655 The following requested languages could not be built: ${missing_languages}
4656 Supported languages are: ${potential_languages}" >&5
4657 echo "$as_me: error:
4658 The following requested languages could not be built: ${missing_languages}
4659 Supported languages are: ${potential_languages}" >&2;}
4660 { (exit 1); exit 1; }; }
4662 if test "x$new_enable_languages" != "x$enable_languages"; then
4663 echo The following languages will be built: ${new_enable_languages}
4664 enable_languages="$new_enable_languages"
4668 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4671 # Handle --disable-<component> generically.
4672 for dir in $configdirs $build_configdirs $target_configdirs ; do
4673 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4674 if eval test x\${enable_${dirname}} "=" xno ; then
4675 noconfigdirs="$noconfigdirs $dir"
4677 done
4679 # Check for Boehm's garbage collector
4680 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4681 if test "${enable_objc_gc+set}" = set; then
4682 enableval="$enable_objc_gc"
4683 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4684 *,objc,*:*:yes:*target-boehm-gc*)
4685 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4686 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4687 { (exit 1); exit 1; }; }
4689 esac
4692 # Make sure we only build Boehm's garbage collector if required.
4693 case ,${enable_languages},:${enable_objc_gc} in
4694 *,objc,*:yes)
4695 # Keep target-boehm-gc if requested for Objective-C.
4698 # Otherwise remove target-boehm-gc depending on target-libjava.
4699 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4700 noconfigdirs="$noconfigdirs target-boehm-gc"
4703 esac
4705 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4706 # $build_configdirs and $target_configdirs.
4707 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4709 notsupp=""
4710 for dir in . $skipdirs $noconfigdirs ; do
4711 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4712 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4713 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4714 if test -r $srcdir/$dirname/configure ; then
4715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4716 true
4717 else
4718 notsupp="$notsupp $dir"
4722 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4723 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4724 if test -r $srcdir/$dirname/configure ; then
4725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4726 true
4727 else
4728 notsupp="$notsupp $dir"
4732 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4733 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4734 if test -r $srcdir/$dirname/configure ; then
4735 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4736 true
4737 else
4738 notsupp="$notsupp $dir"
4742 done
4744 # Sometimes the tools are distributed with libiberty but with no other
4745 # libraries. In that case, we don't want to build target-libiberty.
4746 # Don't let libgcc imply libiberty either.
4747 if test -n "${target_configdirs}" ; then
4748 libgcc=
4749 others=
4750 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4751 if test "$i" = "libgcc"; then
4752 libgcc=target-libgcc
4753 elif test "$i" != "libiberty" ; then
4754 if test -r $srcdir/$i/configure ; then
4755 others=yes;
4756 break;
4759 done
4760 if test -z "${others}" ; then
4761 target_configdirs=$libgcc
4765 # Quietly strip out all directories which aren't configurable in this tree.
4766 # This relies on all configurable subdirectories being autoconfiscated, which
4767 # is now the case.
4768 build_configdirs_all="$build_configdirs"
4769 build_configdirs=
4770 for i in ${build_configdirs_all} ; do
4771 j=`echo $i | sed -e s/build-//g`
4772 if test -f ${srcdir}/$j/configure ; then
4773 build_configdirs="${build_configdirs} $i"
4775 done
4777 configdirs_all="$configdirs"
4778 configdirs=
4779 for i in ${configdirs_all} ; do
4780 if test -f ${srcdir}/$i/configure ; then
4781 configdirs="${configdirs} $i"
4783 done
4785 target_configdirs_all="$target_configdirs"
4786 target_configdirs=
4787 for i in ${target_configdirs_all} ; do
4788 j=`echo $i | sed -e s/target-//g`
4789 if test -f ${srcdir}/$j/configure ; then
4790 target_configdirs="${target_configdirs} $i"
4792 done
4794 # Produce a warning message for the subdirs we can't configure.
4795 # This isn't especially interesting in the Cygnus tree, but in the individual
4796 # FSF releases, it's important to let people know when their machine isn't
4797 # supported by the one or two programs in a package.
4799 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4800 # If $appdirs is non-empty, at least one of those directories must still
4801 # be configured, or we error out. (E.g., if the gas release supports a
4802 # specified target in some subdirs but not the gas subdir, we shouldn't
4803 # pretend that all is well.)
4804 if test -n "$appdirs" ; then
4805 for dir in $appdirs ; do
4806 if test -r $dir/Makefile.in ; then
4807 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4808 appdirs=""
4809 break
4811 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4812 appdirs=""
4813 break
4816 done
4817 if test -n "$appdirs" ; then
4818 echo "*** This configuration is not supported by this package." 1>&2
4819 exit 1
4822 # Okay, some application will build, or we don't care to check. Still
4823 # notify of subdirs not getting built.
4824 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4825 echo " ${notsupp}" 1>&2
4826 echo " (Any other directories should still work fine.)" 1>&2
4829 case "$host" in
4830 *msdosdjgpp*)
4831 enable_gdbtk=no ;;
4832 esac
4834 # To find our prefix, in gcc_cv_tool_prefix.
4836 # The user is always right.
4837 if test "${PATH_SEPARATOR+set}" != set; then
4838 echo "#! /bin/sh" >conf$$.sh
4839 echo "exit 0" >>conf$$.sh
4840 chmod +x conf$$.sh
4841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4842 PATH_SEPARATOR=';'
4843 else
4844 PATH_SEPARATOR=:
4846 rm -f conf$$.sh
4851 if test "x$exec_prefix" = xNONE; then
4852 if test "x$prefix" = xNONE; then
4853 gcc_cv_tool_prefix=$ac_default_prefix
4854 else
4855 gcc_cv_tool_prefix=$prefix
4857 else
4858 gcc_cv_tool_prefix=$exec_prefix
4861 # If there is no compiler in the tree, use the PATH only. In any
4862 # case, if there is no compiler in the tree nobody should use
4863 # AS_FOR_TARGET and LD_FOR_TARGET.
4864 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4865 gcc_version=`cat $srcdir/gcc/BASE-VER`
4866 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4867 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4868 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4869 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4870 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4872 else
4873 gcc_cv_tool_dirs=
4876 if test x$build = x$target && test -n "$md_exec_prefix"; then
4877 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4882 copy_dirs=
4885 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4886 if test "${with_build_sysroot+set}" = set; then
4887 withval="$with_build_sysroot"
4888 if test x"$withval" != x ; then
4889 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4891 else
4892 SYSROOT_CFLAGS_FOR_TARGET=
4896 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4897 # the named directory are copied to $(tooldir)/sys-include.
4898 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4899 if test x${is_cross_compiler} = xno ; then
4900 echo 1>&2 '***' --with-headers is only supported when cross compiling
4901 exit 1
4903 if test x"${with_headers}" != xyes ; then
4904 x=${gcc_cv_tool_prefix}
4905 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4909 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4910 # the name directories are copied to $(tooldir)/lib. Multiple directories
4911 # are permitted.
4912 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4913 if test x${is_cross_compiler} = xno ; then
4914 echo 1>&2 '***' --with-libs is only supported when cross compiling
4915 exit 1
4917 if test x"${with_libs}" != xyes ; then
4918 # Copy the libraries in reverse order, so that files in the first named
4919 # library override files in subsequent libraries.
4920 x=${gcc_cv_tool_prefix}
4921 for l in ${with_libs}; do
4922 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4923 done
4927 # Set with_gnu_as and with_gnu_ld as appropriate.
4929 # This is done by determining whether or not the appropriate directory
4930 # is available, and by checking whether or not specific configurations
4931 # have requested that this magic not happen.
4933 # The command line options always override the explicit settings in
4934 # configure.in, and the settings in configure.in override this magic.
4936 # If the default for a toolchain is to use GNU as and ld, and you don't
4937 # want to do that, then you should use the --without-gnu-as and
4938 # --without-gnu-ld options for the configure script.
4940 if test x${use_gnu_as} = x &&
4941 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4942 with_gnu_as=yes
4943 extra_host_args="$extra_host_args --with-gnu-as"
4946 if test x${use_gnu_ld} = x &&
4947 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4948 with_gnu_ld=yes
4949 extra_host_args="$extra_host_args --with-gnu-ld"
4952 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4953 # can detect this case.
4955 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4956 with_newlib=yes
4957 extra_host_args="$extra_host_args --with-newlib"
4960 # Handle ${copy_dirs}
4961 set fnord ${copy_dirs}
4962 shift
4963 while test $# != 0 ; do
4964 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4966 else
4967 echo Copying $1 to $2
4969 # Use the install script to create the directory and all required
4970 # parent directories.
4971 if test -d $2 ; then
4973 else
4974 echo >config.temp
4975 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4978 # Copy the directory, assuming we have tar.
4979 # FIXME: Should we use B in the second tar? Not all systems support it.
4980 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4982 # It is the responsibility of the user to correctly adjust all
4983 # symlinks. If somebody can figure out how to handle them correctly
4984 # here, feel free to add the code.
4986 echo $1 > $2/COPIED
4988 shift; shift
4989 done
4991 # Determine a target-dependent exec_prefix that the installed
4992 # gcc will search in. Keep this list sorted by triplet, with
4993 # the *-*-osname triplets last.
4994 md_exec_prefix=
4995 case "${target}" in
4996 alpha*-*-*vms*)
4997 md_exec_prefix=/gnu/lib/gcc-lib
4999 i3456786-pc-msdosdjgpp*)
5000 md_exec_prefix=/dev/env/DJDIR/bin
5002 i3456786-*-sco3.2v5*)
5003 if test $with_gnu_as = yes; then
5004 md_exec_prefix=/usr/gnu/bin
5005 else
5006 md_exec_prefix=/usr/ccs/bin/elf
5010 mn10300-*-* | \
5011 powerpc-*-chorusos* | \
5012 powerpc*-*-eabi* | \
5013 powerpc*-*-sysv* | \
5014 powerpc*-*-kaos* | \
5015 s390x-ibm-tpf*)
5016 md_exec_prefix=/usr/ccs/bin
5018 sparc64-*-elf*)
5020 v850*-*-*)
5021 md_exec_prefix=/usr/ccs/bin
5023 xtensa-*-elf*)
5026 *-*-beos* | \
5027 *-*-elf* | \
5028 *-*-hpux* | \
5029 *-*-netware* | \
5030 *-*-nto-qnx* | \
5031 *-*-rtems* | \
5032 *-*-solaris2* | \
5033 *-*-sysv45* | \
5034 *-*-vxworks* | \
5035 *-wrs-windiss)
5036 md_exec_prefix=/usr/ccs/bin
5038 esac
5040 extra_arflags_for_target=
5041 extra_nmflags_for_target=
5042 extra_ranlibflags_for_target=
5043 target_makefile_frag=/dev/null
5044 case "${target}" in
5045 mep*-*-*)
5046 target_makefile_frag="config/mt-mep"
5048 spu-*-*)
5049 target_makefile_frag="config/mt-spu"
5051 *-*-netware*)
5052 target_makefile_frag="config/mt-netware"
5054 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5055 target_makefile_frag="config/mt-gnu"
5057 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5058 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5059 # commands to handle both 32-bit and 64-bit objects. These flags are
5060 # harmless if we're using GNU nm or ar.
5061 extra_arflags_for_target=" -X32_64"
5062 extra_nmflags_for_target=" -B -X32_64"
5064 *-*-darwin*)
5065 # ranlib from Darwin requires the -c flag to look at common symbols.
5066 extra_ranlibflags_for_target=" -c"
5068 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5069 target_makefile_frag="config/mt-wince"
5071 esac
5073 alphaieee_frag=/dev/null
5074 case $target in
5075 alpha*-*-*)
5076 # This just makes sure to use the -mieee option to build target libs.
5077 # This should probably be set individually by each library.
5078 alphaieee_frag="config/mt-alphaieee"
5080 esac
5082 # If --enable-target-optspace always use -Os instead of -O2 to build
5083 # the target libraries, similarly if it is not specified, use -Os
5084 # on selected platforms.
5085 ospace_frag=/dev/null
5086 case "${enable_target_optspace}:${target}" in
5087 yes:*)
5088 ospace_frag="config/mt-ospace"
5090 :d30v-*)
5091 ospace_frag="config/mt-d30v"
5093 :m32r-* | :d10v-* | :fr30-*)
5094 ospace_frag="config/mt-ospace"
5096 no:* | :*)
5099 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5101 esac
5103 # Default to using --with-stabs for certain targets.
5104 if test x${with_stabs} = x ; then
5105 case "${target}" in
5106 mips*-*-irix[56]*)
5108 mips*-*-* | alpha*-*-osf*)
5109 with_stabs=yes;
5110 extra_host_args="${extra_host_args} --with-stabs"
5112 esac
5115 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5116 # them automatically.
5117 case "${host}" in
5118 hppa*64*-*-hpux11*)
5119 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5121 esac
5123 # Some systems (e.g., one of the i386-aix systems the gas testers are
5124 # using) don't handle "\$" correctly, so don't use it here.
5125 tooldir='${exec_prefix}'/${target_noncanonical}
5126 build_tooldir=${tooldir}
5128 # Create a .gdbinit file which runs the one in srcdir
5129 # and tells GDB to look there for source files.
5131 if test -r ${srcdir}/.gdbinit ; then
5132 case ${srcdir} in
5133 .) ;;
5134 *) cat > ./.gdbinit <<EOF
5135 # ${NO_EDIT}
5136 dir ${srcdir}
5137 dir .
5138 source ${srcdir}/.gdbinit
5141 esac
5144 # Make sure that the compiler is able to generate an executable. If it
5145 # can't, we are probably in trouble. We don't care whether we can run the
5146 # executable--we might be using a cross compiler--we only care whether it
5147 # can be created. At this point the main configure script has set CC.
5148 we_are_ok=no
5149 echo "int main () { return 0; }" > conftest.c
5150 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5151 if test $? = 0 ; then
5152 if test -s conftest || test -s conftest.exe ; then
5153 we_are_ok=yes
5156 case $we_are_ok in
5158 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5159 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5160 rm -f conftest*
5161 exit 1
5163 esac
5164 rm -f conftest*
5166 # The Solaris /usr/ucb/cc compiler does not appear to work.
5167 case "${host}" in
5168 sparc-sun-solaris2*)
5169 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5170 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5171 could_use=
5172 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5173 if test -d /opt/cygnus/bin ; then
5174 if test "$could_use" = "" ; then
5175 could_use="/opt/cygnus/bin"
5176 else
5177 could_use="$could_use or /opt/cygnus/bin"
5180 if test "$could_use" = "" ; then
5181 echo "Warning: compilation may fail because you're using"
5182 echo "/usr/ucb/cc. You should change your PATH or CC "
5183 echo "variable and rerun configure."
5184 else
5185 echo "Warning: compilation may fail because you're using"
5186 echo "/usr/ucb/cc, when you should use the C compiler from"
5187 echo "$could_use. You should change your"
5188 echo "PATH or CC variable and rerun configure."
5192 esac
5194 case "${host}" in
5195 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5196 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5197 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5198 esac
5200 # Record target_configdirs and the configure arguments for target and
5201 # build configuration in Makefile.
5202 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5203 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5205 # Determine whether gdb needs tk/tcl or not.
5206 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5207 # and in that case we want gdb to be built without tk. Ugh!
5208 # In fact I believe gdb is the *only* package directly dependent on tk,
5209 # so we should be able to put the 'maybe's in unconditionally and
5210 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5211 # 100% sure that that's safe though.
5213 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5214 case "$enable_gdbtk" in
5216 GDB_TK="" ;;
5217 yes)
5218 GDB_TK="${gdb_tk}" ;;
5220 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5221 # distro. Eventually someone will fix this and move Insight, nee
5222 # gdbtk to a separate directory.
5223 if test -d ${srcdir}/gdb/gdbtk ; then
5224 GDB_TK="${gdb_tk}"
5225 else
5226 GDB_TK=""
5229 esac
5230 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5231 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5233 # Strip out unwanted targets.
5235 # While at that, we remove Makefiles if we were started for recursive
5236 # configuration, so that the top-level Makefile reconfigures them,
5237 # like we used to do when configure itself was recursive.
5239 # Loop over modules. $extrasub must be used with care, limiting as
5240 # much as possible the usage of range addresses. That's because autoconf
5241 # splits the sed script to overcome limits in the number of commands,
5242 # and relying on carefully-timed sed passes may turn out to be very hard
5243 # to maintain later. In this particular case, you just have to be careful
5244 # not to nest @if/@endif pairs, because configure will not warn you at all.
5246 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5247 if test "${enable_bootstrap+set}" = set; then
5248 enableval="$enable_bootstrap"
5250 else
5251 enable_bootstrap=default
5254 # Issue errors and warnings for invalid/strange bootstrap combinations.
5255 case "$configdirs" in
5256 *gcc*) have_compiler=yes ;;
5257 *) have_compiler=no ;;
5258 esac
5260 case "$have_compiler:$host:$target:$enable_bootstrap" in
5261 *:*:*:no) ;;
5263 # Default behavior. Enable bootstrap if we have a compiler
5264 # and we are in a native configuration.
5265 yes:$build:$build:default)
5266 enable_bootstrap=yes ;;
5268 *:*:*:default)
5269 enable_bootstrap=no ;;
5271 # We have a compiler and we are in a native configuration, bootstrap is ok
5272 yes:$build:$build:yes)
5275 # Other configurations, but we have a compiler. Assume the user knows
5276 # what he's doing.
5277 yes:*:*:yes)
5278 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5279 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5282 # No compiler: if they passed --enable-bootstrap explicitly, fail
5283 no:*:*:yes)
5284 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5285 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5288 # Fail if wrong command line
5290 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5291 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5292 { (exit 1); exit 1; }; }
5294 esac
5296 # Adjust the toplevel makefile according to whether bootstrap was selected.
5297 case "$enable_bootstrap" in
5298 yes)
5299 bootstrap_suffix=bootstrap ;;
5301 bootstrap_suffix=no-bootstrap ;;
5302 esac
5304 for module in ${build_configdirs} ; do
5305 if test -z "${no_recursion}" \
5306 && test -f ${build_subdir}/${module}/Makefile; then
5307 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5308 rm -f ${build_subdir}/${module}/Makefile
5310 extrasub="$extrasub
5311 /^@if build-$module\$/d
5312 /^@endif build-$module\$/d
5313 /^@if build-$module-$bootstrap_suffix\$/d
5314 /^@endif build-$module-$bootstrap_suffix\$/d"
5315 done
5316 for module in ${configdirs} ; do
5317 if test -z "${no_recursion}"; then
5318 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5319 if test -f ${file}; then
5320 echo 1>&2 "*** removing ${file} to force reconfigure"
5321 rm -f ${file}
5323 done
5325 extrasub="$extrasub
5326 /^@if $module\$/d
5327 /^@endif $module\$/d
5328 /^@if $module-$bootstrap_suffix\$/d
5329 /^@endif $module-$bootstrap_suffix\$/d"
5330 done
5331 for module in ${target_configdirs} ; do
5332 if test -z "${no_recursion}" \
5333 && test -f ${target_subdir}/${module}/Makefile; then
5334 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5335 rm -f ${target_subdir}/${module}/Makefile
5337 extrasub="$extrasub
5338 /^@if target-$module\$/d
5339 /^@endif target-$module\$/d
5340 /^@if target-$module-$bootstrap_suffix\$/d
5341 /^@endif target-$module-$bootstrap_suffix\$/d"
5342 done
5344 extrasub="$extrasub
5345 /^@if /,/^@endif /d"
5347 # Create the serialization dependencies. This uses a temporary file.
5349 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5350 if test "${enable_serial_configure+set}" = set; then
5351 enableval="$enable_serial_configure"
5355 case ${enable_serial_configure} in
5356 yes)
5357 enable_serial_build_configure=yes
5358 enable_serial_host_configure=yes
5359 enable_serial_target_configure=yes
5361 esac
5363 # These force 'configure's to be done one at a time, to avoid problems
5364 # with contention over a shared config.cache.
5365 rm -f serdep.tmp
5366 echo '# serdep.tmp' > serdep.tmp
5367 olditem=
5368 test "x${enable_serial_build_configure}" = xyes &&
5369 for item in ${build_configdirs} ; do
5370 case ${olditem} in
5371 "") ;;
5372 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5373 esac
5374 olditem=${item}
5375 done
5376 olditem=
5377 test "x${enable_serial_host_configure}" = xyes &&
5378 for item in ${configdirs} ; do
5379 case ${olditem} in
5380 "") ;;
5381 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5382 esac
5383 olditem=${item}
5384 done
5385 olditem=
5386 test "x${enable_serial_target_configure}" = xyes &&
5387 for item in ${target_configdirs} ; do
5388 case ${olditem} in
5389 "") ;;
5390 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5391 esac
5392 olditem=${item}
5393 done
5394 serialization_dependencies=serdep.tmp
5397 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5398 # target, nonopt, and variable assignments. These are the ones we
5399 # might not want to pass down to subconfigures. Also strip
5400 # program-prefix, program-suffix, and program-transform-name, so that
5401 # we can pass down a consistent program-transform-name.
5402 baseargs=
5403 keep_next=no
5404 skip_next=no
5405 eval "set -- $ac_configure_args"
5406 for ac_arg
5408 if test X"$skip_next" = X"yes"; then
5409 skip_next=no
5410 continue
5412 if test X"$keep_next" = X"yes"; then
5413 case $ac_arg in
5414 *\'*)
5415 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5416 esac
5417 baseargs="$baseargs '$ac_arg'"
5418 keep_next=no
5419 continue
5422 # Handle separated arguments. Based on the logic generated by
5423 # autoconf 2.59.
5424 case $ac_arg in
5425 *=* | --config-cache | -C | -disable-* | --disable-* \
5426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5428 | -with-* | --with-* | -without-* | --without-* | --x)
5429 separate_arg=no
5432 separate_arg=yes
5435 separate_arg=no
5437 esac
5439 case "$ac_arg" in
5440 --no*)
5441 continue
5443 --c* | \
5444 --sr* | \
5445 --ho* | \
5446 --bu* | \
5447 --t* | \
5448 --program-* | \
5449 -cache_file* | \
5450 -srcdir* | \
5451 -host* | \
5452 -build* | \
5453 -target* | \
5454 -program-prefix* | \
5455 -program-suffix* | \
5456 -program-transform-name* )
5457 skip_next=$separate_arg
5458 continue
5461 # An option. Add it.
5462 case $ac_arg in
5463 *\'*)
5464 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5465 esac
5466 baseargs="$baseargs '$ac_arg'"
5467 keep_next=$separate_arg
5470 # Either a variable assignment, or a nonopt (triplet). Don't
5471 # pass it down; let the Makefile handle this.
5472 continue
5474 esac
5475 done
5476 # Remove the initial space we just introduced and, as these will be
5477 # expanded by make, quote '$'.
5478 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5480 # Add in --program-transform-name, after --program-prefix and
5481 # --program-suffix have been applied to it. Autoconf has already
5482 # doubled dollar signs and backslashes in program_transform_name; we want
5483 # the backslashes un-doubled, and then the entire thing wrapped in single
5484 # quotes, because this will be expanded first by make and then by the shell.
5485 # Also, because we want to override the logic in subdir configure scripts to
5486 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5487 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5488 ${program_transform_name}
5489 EOF_SED
5490 gcc_transform_name=`cat conftestsed.out`
5491 rm -f conftestsed.out
5492 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5494 # For the build-side libraries, we just need to pretend we're native,
5495 # and not use the same cache file. Multilibs are neither needed nor
5496 # desired.
5497 build_configargs="--cache-file=../config.cache ${baseargs}"
5499 # For host modules, accept cache file option, or specification as blank.
5500 case "${cache_file}" in
5501 "") # empty
5502 cache_file_option="" ;;
5503 /* | [A-Za-z]:[\\/]* ) # absolute path
5504 cache_file_option="--cache-file=${cache_file}" ;;
5505 *) # relative path
5506 cache_file_option="--cache-file=../${cache_file}" ;;
5507 esac
5509 # Host dirs don't like to share a cache file either, horribly enough.
5510 # This seems to be due to autoconf 2.5x stupidity.
5511 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5513 target_configargs=${baseargs}
5515 # Passing a --with-cross-host argument lets the target libraries know
5516 # whether they are being built with a cross-compiler or being built
5517 # native. However, it would be better to use other mechanisms to make the
5518 # sorts of decisions they want to make on this basis. Please consider
5519 # this option to be deprecated. FIXME.
5520 if test x${is_cross_compiler} = xyes ; then
5521 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5524 # Default to --enable-multilib.
5525 if test x${enable_multilib} = x ; then
5526 target_configargs="--enable-multilib ${target_configargs}"
5529 # Pass --with-newlib if appropriate. Note that target_configdirs has
5530 # changed from the earlier setting of with_newlib.
5531 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5532 target_configargs="--with-newlib ${target_configargs}"
5535 # Different target subdirs use different values of certain variables
5536 # (notably CXX). Worse, multilibs use *lots* of different values.
5537 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5538 # it doesn't automatically accept command-line overrides of them.
5539 # This means it's not safe for target subdirs to share a cache file,
5540 # which is disgusting, but there you have it. Hopefully this can be
5541 # fixed in future. It's still worthwhile to use a cache file for each
5542 # directory. I think.
5544 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5545 # We need to pass --target, as newer autoconf's requires consistency
5546 # for target_alias and gcc doesn't manage it consistently.
5547 target_configargs="--cache-file=./config.cache ${target_configargs}"
5549 FLAGS_FOR_TARGET=
5550 case " $target_configdirs " in
5551 *" newlib "*)
5552 case " $target_configargs " in
5553 *" --with-newlib "*)
5554 case "$target" in
5555 *-cygwin*)
5556 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' ;;
5557 esac
5559 # If we're not building GCC, don't discard standard headers.
5560 if test -d ${srcdir}/gcc; then
5561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5563 if test "${build}" != "${host}"; then
5564 # On Canadian crosses, CC_FOR_TARGET will have already been set
5565 # by `configure', so we won't have an opportunity to add -Bgcc/
5566 # to it. This is right: we don't want to search that directory
5567 # for binaries, but we want the header files in there, so add
5568 # them explicitly.
5569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5571 # Someone might think of using the pre-installed headers on
5572 # Canadian crosses, in case the installed compiler is not fully
5573 # compatible with the compiler being built. In this case, it
5574 # would be better to flag an error than risking having
5575 # incompatible object files being constructed. We can't
5576 # guarantee that an error will be flagged, but let's hope the
5577 # compiler will do it, when presented with incompatible header
5578 # files.
5582 case "${target}-${is_cross_compiler}" in
5583 i[3456789]86-*-linux*-no)
5584 # Here host == target, so we don't need to build gcc,
5585 # so we don't want to discard standard headers.
5586 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5589 # If we're building newlib, use its generic headers last, but search
5590 # for any libc-related directories first (so make it the last -B
5591 # switch).
5592 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5594 esac
5596 esac
5598 esac
5599 case "$target" in
5600 *-mingw*)
5601 # Can't be handled as Cygwin above since Mingw does not use newlib.
5602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5603 esac
5605 # Allow the user to override the flags for
5606 # our build compiler if desired.
5607 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5609 # On Canadian crosses, we'll be searching the right directories for
5610 # the previously-installed cross compiler, so don't bother to add
5611 # flags for directories within the install tree of the compiler
5612 # being built; programs in there won't even run.
5613 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5614 # Search for pre-installed headers if nothing else fits.
5615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5618 if test "x${use_gnu_ld}" = x &&
5619 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5620 # Arrange for us to find uninstalled linker scripts.
5621 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5624 # Search for other target-specific linker scripts and such.
5625 case "${target}" in
5626 m32c-*-* )
5627 if test -d ${srcdir}/libgloss/m32c; then
5628 # This is for crt0.o
5629 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5630 # This is for r8c.ld
5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5632 # This is for libnosys.a
5633 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5636 mep*)
5637 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5639 esac
5641 # Makefile fragments.
5642 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5644 eval fragval=\$$frag
5645 if test $fragval != /dev/null; then
5646 eval $frag=${srcdir}/$fragval
5648 done
5654 # Miscellanea: directories, flags, etc.
5662 # Build module lists & subconfigure args.
5666 # Host module lists & subconfigure args.
5670 # Target module lists & subconfigure args.
5674 # Build tools.
5678 # Generate default definitions for YACC, M4, LEX and other programs that run
5679 # on the build machine. These are used if the Makefile can't locate these
5680 # programs in objdir.
5681 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5683 for ac_prog in 'bison -y' byacc yacc
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_YACC+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$YACC"; then
5693 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_YACC="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5711 YACC=$ac_cv_prog_YACC
5712 if test -n "$YACC"; then
5713 echo "$as_me:$LINENO: result: $YACC" >&5
5714 echo "${ECHO_T}$YACC" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5720 test -n "$YACC" && break
5721 done
5722 test -n "$YACC" || YACC="$MISSING bison -y"
5724 case " $build_configdirs " in
5725 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5726 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5727 esac
5729 for ac_prog in bison
5731 # Extract the first word of "$ac_prog", so it can be a program name with args.
5732 set dummy $ac_prog; ac_word=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_BISON+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 if test -n "$BISON"; then
5739 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_BISON="$ac_prog"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5757 BISON=$ac_cv_prog_BISON
5758 if test -n "$BISON"; then
5759 echo "$as_me:$LINENO: result: $BISON" >&5
5760 echo "${ECHO_T}$BISON" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5766 test -n "$BISON" && break
5767 done
5768 test -n "$BISON" || BISON="$MISSING bison"
5770 case " $build_configdirs " in
5771 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5772 esac
5774 for ac_prog in gm4 gnum4 m4
5776 # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_M4+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 if test -n "$M4"; then
5784 ac_cv_prog_M4="$M4" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_M4="$ac_prog"
5794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5797 done
5798 done
5802 M4=$ac_cv_prog_M4
5803 if test -n "$M4"; then
5804 echo "$as_me:$LINENO: result: $M4" >&5
5805 echo "${ECHO_T}$M4" >&6
5806 else
5807 echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6
5811 test -n "$M4" && break
5812 done
5813 test -n "$M4" || M4="$MISSING m4"
5815 case " $build_configdirs " in
5816 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5817 esac
5819 for ac_prog in flex lex
5821 # Extract the first word of "$ac_prog", so it can be a program name with args.
5822 set dummy $ac_prog; ac_word=$2
5823 echo "$as_me:$LINENO: checking for $ac_word" >&5
5824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825 if test "${ac_cv_prog_LEX+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 if test -n "$LEX"; then
5829 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_LEX="$ac_prog"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5842 done
5843 done
5847 LEX=$ac_cv_prog_LEX
5848 if test -n "$LEX"; then
5849 echo "$as_me:$LINENO: result: $LEX" >&5
5850 echo "${ECHO_T}$LEX" >&6
5851 else
5852 echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5856 test -n "$LEX" && break
5857 done
5858 test -n "$LEX" || LEX="$MISSING flex"
5860 case " $build_configdirs " in
5861 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5862 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5863 esac
5865 for ac_prog in flex
5867 # Extract the first word of "$ac_prog", so it can be a program name with args.
5868 set dummy $ac_prog; ac_word=$2
5869 echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871 if test "${ac_cv_prog_FLEX+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 if test -n "$FLEX"; then
5875 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_FLEX="$ac_prog"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5888 done
5889 done
5893 FLEX=$ac_cv_prog_FLEX
5894 if test -n "$FLEX"; then
5895 echo "$as_me:$LINENO: result: $FLEX" >&5
5896 echo "${ECHO_T}$FLEX" >&6
5897 else
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5902 test -n "$FLEX" && break
5903 done
5904 test -n "$FLEX" || FLEX="$MISSING flex"
5906 case " $build_configdirs " in
5907 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5908 esac
5910 for ac_prog in makeinfo
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 if test -n "$MAKEINFO"; then
5920 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_MAKEINFO="$ac_prog"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5933 done
5934 done
5938 MAKEINFO=$ac_cv_prog_MAKEINFO
5939 if test -n "$MAKEINFO"; then
5940 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5941 echo "${ECHO_T}$MAKEINFO" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5947 test -n "$MAKEINFO" && break
5948 done
5949 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5951 case " $build_configdirs " in
5952 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5955 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5956 # higher, else we use the "missing" dummy.
5957 if ${MAKEINFO} --version \
5958 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5960 else
5961 MAKEINFO="$MISSING makeinfo"
5965 esac
5967 # FIXME: expect and dejagnu may become build tools?
5969 for ac_prog in expect
5971 # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975 if test "${ac_cv_prog_EXPECT+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 if test -n "$EXPECT"; then
5979 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_EXPECT="$ac_prog"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5997 EXPECT=$ac_cv_prog_EXPECT
5998 if test -n "$EXPECT"; then
5999 echo "$as_me:$LINENO: result: $EXPECT" >&5
6000 echo "${ECHO_T}$EXPECT" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6
6006 test -n "$EXPECT" && break
6007 done
6008 test -n "$EXPECT" || EXPECT="expect"
6010 case " $configdirs " in
6011 *" expect "*)
6012 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6014 esac
6016 for ac_prog in runtest
6018 # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6022 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 if test -n "$RUNTEST"; then
6026 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_RUNTEST="$ac_prog"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6039 done
6040 done
6044 RUNTEST=$ac_cv_prog_RUNTEST
6045 if test -n "$RUNTEST"; then
6046 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6047 echo "${ECHO_T}$RUNTEST" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6
6053 test -n "$RUNTEST" && break
6054 done
6055 test -n "$RUNTEST" || RUNTEST="runtest"
6057 case " $configdirs " in
6058 *" dejagnu "*)
6059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6061 esac
6064 # Host tools.
6065 ncn_tool_prefix=
6066 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6067 ncn_target_tool_prefix=
6068 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6070 for ncn_progname in ar; do
6071 if test -n "$ncn_tool_prefix"; then
6072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6073 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_AR+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test -n "$AR"; then
6080 ac_cv_prog_AR="$AR" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6093 done
6094 done
6098 AR=$ac_cv_prog_AR
6099 if test -n "$AR"; then
6100 echo "$as_me:$LINENO: result: $AR" >&5
6101 echo "${ECHO_T}$AR" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6108 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6110 set dummy ${ncn_progname}; ac_word=$2
6111 echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113 if test "${ac_cv_prog_AR+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_AR="${ncn_progname}"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6135 AR=$ac_cv_prog_AR
6136 if test -n "$AR"; then
6137 echo "$as_me:$LINENO: result: $AR" >&5
6138 echo "${ECHO_T}$AR" >&6
6139 else
6140 echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6
6145 test -n "$ac_cv_prog_AR" && break
6146 done
6148 if test -z "$ac_cv_prog_AR" ; then
6149 set dummy ar
6150 if test $build = $host ; then
6151 AR="$2"
6152 else
6153 AR="${ncn_tool_prefix}$2"
6157 for ncn_progname in as; do
6158 if test -n "$ncn_tool_prefix"; then
6159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6160 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6161 echo "$as_me:$LINENO: checking for $ac_word" >&5
6162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6163 if test "${ac_cv_prog_AS+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 if test -n "$AS"; then
6167 ac_cv_prog_AS="$AS" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6180 done
6181 done
6185 AS=$ac_cv_prog_AS
6186 if test -n "$AS"; then
6187 echo "$as_me:$LINENO: result: $AS" >&5
6188 echo "${ECHO_T}$AS" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6
6195 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6197 set dummy ${ncn_progname}; ac_word=$2
6198 echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200 if test "${ac_cv_prog_AS+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 if test -n "$AS"; then
6204 ac_cv_prog_AS="$AS" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_AS="${ncn_progname}"
6214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6217 done
6218 done
6222 AS=$ac_cv_prog_AS
6223 if test -n "$AS"; then
6224 echo "$as_me:$LINENO: result: $AS" >&5
6225 echo "${ECHO_T}$AS" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6232 test -n "$ac_cv_prog_AS" && break
6233 done
6235 if test -z "$ac_cv_prog_AS" ; then
6236 set dummy as
6237 if test $build = $host ; then
6238 AS="$2"
6239 else
6240 AS="${ncn_tool_prefix}$2"
6244 for ncn_progname in dlltool; do
6245 if test -n "$ncn_tool_prefix"; then
6246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6248 echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 if test -n "$DLLTOOL"; then
6254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6272 DLLTOOL=$ac_cv_prog_DLLTOOL
6273 if test -n "$DLLTOOL"; then
6274 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6275 echo "${ECHO_T}$DLLTOOL" >&6
6276 else
6277 echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6
6282 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6284 set dummy ${ncn_progname}; ac_word=$2
6285 echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 if test -n "$DLLTOOL"; then
6291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_DLLTOOL="${ncn_progname}"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6304 done
6305 done
6309 DLLTOOL=$ac_cv_prog_DLLTOOL
6310 if test -n "$DLLTOOL"; then
6311 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6312 echo "${ECHO_T}$DLLTOOL" >&6
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6319 test -n "$ac_cv_prog_DLLTOOL" && break
6320 done
6322 if test -z "$ac_cv_prog_DLLTOOL" ; then
6323 set dummy dlltool
6324 if test $build = $host ; then
6325 DLLTOOL="$2"
6326 else
6327 DLLTOOL="${ncn_tool_prefix}$2"
6331 for ncn_progname in ld; do
6332 if test -n "$ncn_tool_prefix"; then
6333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6335 echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337 if test "${ac_cv_prog_LD+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 if test -n "$LD"; then
6341 ac_cv_prog_LD="$LD" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6359 LD=$ac_cv_prog_LD
6360 if test -n "$LD"; then
6361 echo "$as_me:$LINENO: result: $LD" >&5
6362 echo "${ECHO_T}$LD" >&6
6363 else
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6369 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6371 set dummy ${ncn_progname}; ac_word=$2
6372 echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374 if test "${ac_cv_prog_LD+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 if test -n "$LD"; then
6378 ac_cv_prog_LD="$LD" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_LD="${ncn_progname}"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6391 done
6392 done
6396 LD=$ac_cv_prog_LD
6397 if test -n "$LD"; then
6398 echo "$as_me:$LINENO: result: $LD" >&5
6399 echo "${ECHO_T}$LD" >&6
6400 else
6401 echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6
6406 test -n "$ac_cv_prog_LD" && break
6407 done
6409 if test -z "$ac_cv_prog_LD" ; then
6410 set dummy ld
6411 if test $build = $host ; then
6412 LD="$2"
6413 else
6414 LD="${ncn_tool_prefix}$2"
6418 for ncn_progname in lipo; do
6419 if test -n "$ncn_tool_prefix"; then
6420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6422 echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6424 if test "${ac_cv_prog_LIPO+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 if test -n "$LIPO"; then
6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6446 LIPO=$ac_cv_prog_LIPO
6447 if test -n "$LIPO"; then
6448 echo "$as_me:$LINENO: result: $LIPO" >&5
6449 echo "${ECHO_T}$LIPO" >&6
6450 else
6451 echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6
6456 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6458 set dummy ${ncn_progname}; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_prog_LIPO+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 if test -n "$LIPO"; then
6465 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_LIPO="${ncn_progname}"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6483 LIPO=$ac_cv_prog_LIPO
6484 if test -n "$LIPO"; then
6485 echo "$as_me:$LINENO: result: $LIPO" >&5
6486 echo "${ECHO_T}$LIPO" >&6
6487 else
6488 echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6493 test -n "$ac_cv_prog_LIPO" && break
6494 done
6496 if test -z "$ac_cv_prog_LIPO" ; then
6497 set dummy lipo
6498 if test $build = $host ; then
6499 LIPO="$2"
6500 else
6501 LIPO="${ncn_tool_prefix}$2"
6505 for ncn_progname in nm; do
6506 if test -n "$ncn_tool_prefix"; then
6507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6508 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6509 echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6511 if test "${ac_cv_prog_NM+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514 if test -n "$NM"; then
6515 ac_cv_prog_NM="$NM" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6533 NM=$ac_cv_prog_NM
6534 if test -n "$NM"; then
6535 echo "$as_me:$LINENO: result: $NM" >&5
6536 echo "${ECHO_T}$NM" >&6
6537 else
6538 echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6543 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6545 set dummy ${ncn_progname}; ac_word=$2
6546 echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548 if test "${ac_cv_prog_NM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 if test -n "$NM"; then
6552 ac_cv_prog_NM="$NM" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_NM="${ncn_progname}"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6570 NM=$ac_cv_prog_NM
6571 if test -n "$NM"; then
6572 echo "$as_me:$LINENO: result: $NM" >&5
6573 echo "${ECHO_T}$NM" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6580 test -n "$ac_cv_prog_NM" && break
6581 done
6583 if test -z "$ac_cv_prog_NM" ; then
6584 set dummy nm
6585 if test $build = $host ; then
6586 NM="$2"
6587 else
6588 NM="${ncn_tool_prefix}$2"
6592 for ncn_progname in ranlib; do
6593 if test -n "$ncn_tool_prefix"; then
6594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6595 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6596 echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6598 if test "${ac_cv_prog_RANLIB+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 if test -n "$RANLIB"; then
6602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6620 RANLIB=$ac_cv_prog_RANLIB
6621 if test -n "$RANLIB"; then
6622 echo "$as_me:$LINENO: result: $RANLIB" >&5
6623 echo "${ECHO_T}$RANLIB" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6
6630 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6632 set dummy ${ncn_progname}; ac_word=$2
6633 echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6635 if test "${ac_cv_prog_RANLIB+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 if test -n "$RANLIB"; then
6639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6648 ac_cv_prog_RANLIB="${ncn_progname}"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6657 RANLIB=$ac_cv_prog_RANLIB
6658 if test -n "$RANLIB"; then
6659 echo "$as_me:$LINENO: result: $RANLIB" >&5
6660 echo "${ECHO_T}$RANLIB" >&6
6661 else
6662 echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6
6667 test -n "$ac_cv_prog_RANLIB" && break
6668 done
6670 if test -z "$ac_cv_prog_RANLIB" ; then
6671 RANLIB=":"
6674 for ncn_progname in strip; do
6675 if test -n "$ncn_tool_prefix"; then
6676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6677 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6678 echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6702 STRIP=$ac_cv_prog_STRIP
6703 if test -n "$STRIP"; then
6704 echo "$as_me:$LINENO: result: $STRIP" >&5
6705 echo "${ECHO_T}$STRIP" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6
6712 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6714 set dummy ${ncn_progname}; ac_word=$2
6715 echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6717 if test "${ac_cv_prog_STRIP+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 if test -n "$STRIP"; then
6721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_STRIP="${ncn_progname}"
6731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6734 done
6735 done
6739 STRIP=$ac_cv_prog_STRIP
6740 if test -n "$STRIP"; then
6741 echo "$as_me:$LINENO: result: $STRIP" >&5
6742 echo "${ECHO_T}$STRIP" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6
6749 test -n "$ac_cv_prog_STRIP" && break
6750 done
6752 if test -z "$ac_cv_prog_STRIP" ; then
6753 STRIP=":"
6756 for ncn_progname in windres; do
6757 if test -n "$ncn_tool_prefix"; then
6758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6760 echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6762 if test "${ac_cv_prog_WINDRES+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 if test -n "$WINDRES"; then
6766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6784 WINDRES=$ac_cv_prog_WINDRES
6785 if test -n "$WINDRES"; then
6786 echo "$as_me:$LINENO: result: $WINDRES" >&5
6787 echo "${ECHO_T}$WINDRES" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6
6794 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6796 set dummy ${ncn_progname}; ac_word=$2
6797 echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6799 if test "${ac_cv_prog_WINDRES+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 if test -n "$WINDRES"; then
6803 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812 ac_cv_prog_WINDRES="${ncn_progname}"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6821 WINDRES=$ac_cv_prog_WINDRES
6822 if test -n "$WINDRES"; then
6823 echo "$as_me:$LINENO: result: $WINDRES" >&5
6824 echo "${ECHO_T}$WINDRES" >&6
6825 else
6826 echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6
6831 test -n "$ac_cv_prog_WINDRES" && break
6832 done
6834 if test -z "$ac_cv_prog_WINDRES" ; then
6835 set dummy windres
6836 if test $build = $host ; then
6837 WINDRES="$2"
6838 else
6839 WINDRES="${ncn_tool_prefix}$2"
6843 for ncn_progname in objcopy; do
6844 if test -n "$ncn_tool_prefix"; then
6845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6847 echo "$as_me:$LINENO: checking for $ac_word" >&5
6848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6849 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852 if test -n "$OBJCOPY"; then
6853 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6866 done
6867 done
6871 OBJCOPY=$ac_cv_prog_OBJCOPY
6872 if test -n "$OBJCOPY"; then
6873 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6874 echo "${ECHO_T}$OBJCOPY" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6
6881 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6883 set dummy ${ncn_progname}; ac_word=$2
6884 echo "$as_me:$LINENO: checking for $ac_word" >&5
6885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6886 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 if test -n "$OBJCOPY"; then
6890 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_OBJCOPY="${ncn_progname}"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6908 OBJCOPY=$ac_cv_prog_OBJCOPY
6909 if test -n "$OBJCOPY"; then
6910 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6911 echo "${ECHO_T}$OBJCOPY" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6
6918 test -n "$ac_cv_prog_OBJCOPY" && break
6919 done
6921 if test -z "$ac_cv_prog_OBJCOPY" ; then
6922 set dummy objcopy
6923 if test $build = $host ; then
6924 OBJCOPY="$2"
6925 else
6926 OBJCOPY="${ncn_tool_prefix}$2"
6930 for ncn_progname in objdump; do
6931 if test -n "$ncn_tool_prefix"; then
6932 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6933 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6934 echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6936 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 if test -n "$OBJDUMP"; then
6940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6958 OBJDUMP=$ac_cv_prog_OBJDUMP
6959 if test -n "$OBJDUMP"; then
6960 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6961 echo "${ECHO_T}$OBJDUMP" >&6
6962 else
6963 echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6
6968 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6970 set dummy ${ncn_progname}; ac_word=$2
6971 echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 if test -n "$OBJDUMP"; then
6977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_OBJDUMP="${ncn_progname}"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6990 done
6991 done
6995 OBJDUMP=$ac_cv_prog_OBJDUMP
6996 if test -n "$OBJDUMP"; then
6997 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6998 echo "${ECHO_T}$OBJDUMP" >&6
6999 else
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7005 test -n "$ac_cv_prog_OBJDUMP" && break
7006 done
7008 if test -z "$ac_cv_prog_OBJDUMP" ; then
7009 set dummy objdump
7010 if test $build = $host ; then
7011 OBJDUMP="$2"
7012 else
7013 OBJDUMP="${ncn_tool_prefix}$2"
7023 # Target tools.
7025 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7026 if test "${with_build_time_tools+set}" = set; then
7027 withval="$with_build_time_tools"
7028 case x"$withval" in
7029 x/*) ;;
7031 with_build_time_tools=
7032 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7033 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7035 esac
7036 else
7037 with_build_time_tools=
7040 if test -n "$with_build_time_tools"; then
7041 for ncn_progname in cc gcc; do
7042 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7043 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7044 if test -x $with_build_time_tools/${ncn_progname}; then
7045 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7046 echo "$as_me:$LINENO: result: yes" >&5
7047 echo "${ECHO_T}yes" >&6
7048 break
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7053 done
7056 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7057 for ncn_progname in cc gcc; do
7058 if test -n "$ncn_target_tool_prefix"; then
7059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7060 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7061 echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7063 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 if test -n "$CC_FOR_TARGET"; then
7067 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7085 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7086 if test -n "$CC_FOR_TARGET"; then
7087 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7088 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7089 else
7090 echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6
7095 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7097 set dummy ${ncn_progname}; ac_word=$2
7098 echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7100 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 if test -n "$CC_FOR_TARGET"; then
7104 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7117 done
7118 done
7122 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7123 if test -n "$CC_FOR_TARGET"; then
7124 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7125 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7126 else
7127 echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6
7132 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7133 done
7136 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7137 set dummy cc gcc
7138 if test $build = $target ; then
7139 CC_FOR_TARGET="$2"
7140 else
7141 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7145 if test -n "$with_build_time_tools"; then
7146 for ncn_progname in c++ g++ cxx gxx; do
7147 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7148 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7149 if test -x $with_build_time_tools/${ncn_progname}; then
7150 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7151 echo "$as_me:$LINENO: result: yes" >&5
7152 echo "${ECHO_T}yes" >&6
7153 break
7154 else
7155 echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7158 done
7161 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7162 for ncn_progname in c++ g++ cxx gxx; do
7163 if test -n "$ncn_target_tool_prefix"; then
7164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7166 echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7168 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 if test -n "$CXX_FOR_TARGET"; then
7172 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7190 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7191 if test -n "$CXX_FOR_TARGET"; then
7192 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7193 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7194 else
7195 echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7200 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7202 set dummy ${ncn_progname}; ac_word=$2
7203 echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7205 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 if test -n "$CXX_FOR_TARGET"; then
7209 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7222 done
7223 done
7227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7228 if test -n "$CXX_FOR_TARGET"; then
7229 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7230 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7231 else
7232 echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7237 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7238 done
7241 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7242 set dummy c++ g++ cxx gxx
7243 if test $build = $target ; then
7244 CXX_FOR_TARGET="$2"
7245 else
7246 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
7250 if test -n "$with_build_time_tools"; then
7251 for ncn_progname in gcc; do
7252 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7253 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7254 if test -x $with_build_time_tools/${ncn_progname}; then
7255 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7256 echo "$as_me:$LINENO: result: yes" >&5
7257 echo "${ECHO_T}yes" >&6
7258 break
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7263 done
7266 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7267 for ncn_progname in gcc; do
7268 if test -n "$ncn_target_tool_prefix"; then
7269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7271 echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 if test -n "$GCC_FOR_TARGET"; then
7277 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7290 done
7291 done
7295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7296 if test -n "$GCC_FOR_TARGET"; then
7297 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7298 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7299 else
7300 echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7305 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7307 set dummy ${ncn_progname}; ac_word=$2
7308 echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 if test -n "$GCC_FOR_TARGET"; then
7314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 break 2
7327 done
7328 done
7332 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7333 if test -n "$GCC_FOR_TARGET"; then
7334 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7335 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7342 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7343 done
7346 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7347 GCC_FOR_TARGET="${CC_FOR_TARGET}"
7350 if test -n "$with_build_time_tools"; then
7351 for ncn_progname in gcj; do
7352 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7353 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7354 if test -x $with_build_time_tools/${ncn_progname}; then
7355 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7356 echo "$as_me:$LINENO: result: yes" >&5
7357 echo "${ECHO_T}yes" >&6
7358 break
7359 else
7360 echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6
7363 done
7366 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7367 for ncn_progname in gcj; do
7368 if test -n "$ncn_target_tool_prefix"; then
7369 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7370 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7371 echo "$as_me:$LINENO: checking for $ac_word" >&5
7372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7373 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 if test -n "$GCJ_FOR_TARGET"; then
7377 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7390 done
7391 done
7395 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7396 if test -n "$GCJ_FOR_TARGET"; then
7397 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7398 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7399 else
7400 echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7405 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7407 set dummy ${ncn_progname}; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413 if test -n "$GCJ_FOR_TARGET"; then
7414 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7432 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7433 if test -n "$GCJ_FOR_TARGET"; then
7434 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7435 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7442 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7443 done
7446 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7447 set dummy gcj
7448 if test $build = $target ; then
7449 GCJ_FOR_TARGET="$2"
7450 else
7451 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7455 if test -n "$with_build_time_tools"; then
7456 for ncn_progname in gfortran; do
7457 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7458 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7459 if test -x $with_build_time_tools/${ncn_progname}; then
7460 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7461 echo "$as_me:$LINENO: result: yes" >&5
7462 echo "${ECHO_T}yes" >&6
7463 break
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6
7468 done
7471 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7472 for ncn_progname in gfortran; do
7473 if test -n "$ncn_target_tool_prefix"; then
7474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7476 echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7478 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 if test -n "$GFORTRAN_FOR_TARGET"; then
7482 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7495 done
7496 done
7500 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7501 if test -n "$GFORTRAN_FOR_TARGET"; then
7502 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7503 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7504 else
7505 echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6
7510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7512 set dummy ${ncn_progname}; ac_word=$2
7513 echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 if test -n "$GFORTRAN_FOR_TARGET"; then
7519 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7532 done
7533 done
7537 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7538 if test -n "$GFORTRAN_FOR_TARGET"; then
7539 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7540 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7547 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7548 done
7551 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7552 set dummy gfortran
7553 if test $build = $target ; then
7554 GFORTRAN_FOR_TARGET="$2"
7555 else
7556 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7562 cat > conftest.c << \EOF
7563 #ifdef __GNUC__
7564 gcc_yay;
7565 #endif
7567 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7568 have_gcc_for_target=yes
7569 else
7570 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7571 have_gcc_for_target=no
7573 rm conftest.c
7578 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7579 if test -n "$with_build_time_tools"; then
7580 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7581 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
7582 if test -x $with_build_time_tools/ar; then
7583 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7584 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7585 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7586 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7591 elif test $build != $host && test $have_gcc_for_target = yes; then
7592 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7593 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7597 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7598 # Extract the first word of "ar", so it can be a program name with args.
7599 set dummy ar; ac_word=$2
7600 echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 case $AR_FOR_TARGET in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $gcc_cv_tool_dirs
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7625 esac
7627 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7629 if test -n "$AR_FOR_TARGET"; then
7630 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7631 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7638 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7639 if test -n "$with_build_time_tools"; then
7640 for ncn_progname in ar; do
7641 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7642 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7643 if test -x $with_build_time_tools/${ncn_progname}; then
7644 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7645 echo "$as_me:$LINENO: result: yes" >&5
7646 echo "${ECHO_T}yes" >&6
7647 break
7648 else
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7652 done
7655 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7656 for ncn_progname in ar; do
7657 if test -n "$ncn_target_tool_prefix"; then
7658 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7659 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7660 echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7662 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 if test -n "$AR_FOR_TARGET"; then
7666 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7684 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7685 if test -n "$AR_FOR_TARGET"; then
7686 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7687 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7688 else
7689 echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6
7694 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7696 set dummy ${ncn_progname}; ac_word=$2
7697 echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 if test -n "$AR_FOR_TARGET"; then
7703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7721 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7722 if test -n "$AR_FOR_TARGET"; then
7723 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7724 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7725 else
7726 echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7731 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7732 done
7735 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7736 set dummy ar
7737 if test $build = $target ; then
7738 AR_FOR_TARGET="$2"
7739 else
7740 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7744 else
7745 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7751 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7752 if test -n "$with_build_time_tools"; then
7753 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7754 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7755 if test -x $with_build_time_tools/as; then
7756 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7757 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7758 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7759 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7760 else
7761 echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6
7764 elif test $build != $host && test $have_gcc_for_target = yes; then
7765 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7766 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7770 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7771 # Extract the first word of "as", so it can be a program name with args.
7772 set dummy as; ac_word=$2
7773 echo "$as_me:$LINENO: checking for $ac_word" >&5
7774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7775 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 case $AS_FOR_TARGET in
7779 [\\/]* | ?:[\\/]*)
7780 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $gcc_cv_tool_dirs
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7794 done
7795 done
7798 esac
7800 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7802 if test -n "$AS_FOR_TARGET"; then
7803 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7804 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7811 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7812 if test -n "$with_build_time_tools"; then
7813 for ncn_progname in as; do
7814 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7815 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7816 if test -x $with_build_time_tools/${ncn_progname}; then
7817 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7818 echo "$as_me:$LINENO: result: yes" >&5
7819 echo "${ECHO_T}yes" >&6
7820 break
7821 else
7822 echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7825 done
7828 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7829 for ncn_progname in as; do
7830 if test -n "$ncn_target_tool_prefix"; then
7831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7832 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7833 echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 if test -n "$AS_FOR_TARGET"; then
7839 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7857 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7858 if test -n "$AS_FOR_TARGET"; then
7859 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7860 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6
7867 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7869 set dummy ${ncn_progname}; ac_word=$2
7870 echo "$as_me:$LINENO: checking for $ac_word" >&5
7871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 if test -n "$AS_FOR_TARGET"; then
7876 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7889 done
7890 done
7894 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7895 if test -n "$AS_FOR_TARGET"; then
7896 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7897 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7898 else
7899 echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7904 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7905 done
7908 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7909 set dummy as
7910 if test $build = $target ; then
7911 AS_FOR_TARGET="$2"
7912 else
7913 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7917 else
7918 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7924 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7925 if test -n "$with_build_time_tools"; then
7926 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7927 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7928 if test -x $with_build_time_tools/dlltool; then
7929 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7930 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7931 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7932 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7933 else
7934 echo "$as_me:$LINENO: result: no" >&5
7935 echo "${ECHO_T}no" >&6
7937 elif test $build != $host && test $have_gcc_for_target = yes; then
7938 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7939 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7943 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7944 # Extract the first word of "dlltool", so it can be a program name with args.
7945 set dummy dlltool; ac_word=$2
7946 echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7948 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951 case $DLLTOOL_FOR_TARGET in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $gcc_cv_tool_dirs
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7971 esac
7973 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7975 if test -n "$DLLTOOL_FOR_TARGET"; then
7976 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7977 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7978 else
7979 echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6
7984 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7985 if test -n "$with_build_time_tools"; then
7986 for ncn_progname in dlltool; do
7987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7988 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7989 if test -x $with_build_time_tools/${ncn_progname}; then
7990 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7991 echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993 break
7994 else
7995 echo "$as_me:$LINENO: result: no" >&5
7996 echo "${ECHO_T}no" >&6
7998 done
8001 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8002 for ncn_progname in dlltool; do
8003 if test -n "$ncn_target_tool_prefix"; then
8004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8006 echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8008 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 if test -n "$DLLTOOL_FOR_TARGET"; then
8012 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8030 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8031 if test -n "$DLLTOOL_FOR_TARGET"; then
8032 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8033 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8040 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8042 set dummy ${ncn_progname}; ac_word=$2
8043 echo "$as_me:$LINENO: checking for $ac_word" >&5
8044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048 if test -n "$DLLTOOL_FOR_TARGET"; then
8049 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8062 done
8063 done
8067 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8068 if test -n "$DLLTOOL_FOR_TARGET"; then
8069 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8070 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8071 else
8072 echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6
8077 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8078 done
8081 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8082 set dummy dlltool
8083 if test $build = $target ; then
8084 DLLTOOL_FOR_TARGET="$2"
8085 else
8086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8090 else
8091 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8097 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8098 if test -n "$with_build_time_tools"; then
8099 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8100 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
8101 if test -x $with_build_time_tools/ld; then
8102 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8103 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8104 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8105 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
8106 else
8107 echo "$as_me:$LINENO: result: no" >&5
8108 echo "${ECHO_T}no" >&6
8110 elif test $build != $host && test $have_gcc_for_target = yes; then
8111 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8112 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8116 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8117 # Extract the first word of "ld", so it can be a program name with args.
8118 set dummy ld; ac_word=$2
8119 echo "$as_me:$LINENO: checking for $ac_word" >&5
8120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8121 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 case $LD_FOR_TARGET in
8125 [\\/]* | ?:[\\/]*)
8126 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $gcc_cv_tool_dirs
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8144 esac
8146 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8148 if test -n "$LD_FOR_TARGET"; then
8149 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8150 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8157 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8158 if test -n "$with_build_time_tools"; then
8159 for ncn_progname in ld; do
8160 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8161 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8162 if test -x $with_build_time_tools/${ncn_progname}; then
8163 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8164 echo "$as_me:$LINENO: result: yes" >&5
8165 echo "${ECHO_T}yes" >&6
8166 break
8167 else
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8171 done
8174 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8175 for ncn_progname in ld; do
8176 if test -n "$ncn_target_tool_prefix"; then
8177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8178 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 if test -n "$LD_FOR_TARGET"; then
8185 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8203 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8204 if test -n "$LD_FOR_TARGET"; then
8205 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8206 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8207 else
8208 echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8213 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_progname}; ac_word=$2
8216 echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8218 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 if test -n "$LD_FOR_TARGET"; then
8222 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8240 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8241 if test -n "$LD_FOR_TARGET"; then
8242 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8243 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8244 else
8245 echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8250 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8251 done
8254 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8255 set dummy ld
8256 if test $build = $target ; then
8257 LD_FOR_TARGET="$2"
8258 else
8259 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8263 else
8264 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8270 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8271 if test -n "$with_build_time_tools"; then
8272 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8273 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
8274 if test -x $with_build_time_tools/lipo; then
8275 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8276 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8277 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8278 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281 echo "${ECHO_T}no" >&6
8283 elif test $build != $host && test $have_gcc_for_target = yes; then
8284 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8285 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8289 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8290 # Extract the first word of "lipo", so it can be a program name with args.
8291 set dummy lipo; ac_word=$2
8292 echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297 case $LIPO_FOR_TARGET in
8298 [\\/]* | ?:[\\/]*)
8299 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $gcc_cv_tool_dirs
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8313 done
8314 done
8317 esac
8319 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8321 if test -n "$LIPO_FOR_TARGET"; then
8322 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8323 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8324 else
8325 echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6
8330 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8331 if test -n "$with_build_time_tools"; then
8332 for ncn_progname in lipo; do
8333 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8335 if test -x $with_build_time_tools/${ncn_progname}; then
8336 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8337 echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6
8339 break
8340 else
8341 echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8344 done
8347 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8348 for ncn_progname in lipo; do
8349 if test -n "$ncn_target_tool_prefix"; then
8350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8352 echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8354 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 if test -n "$LIPO_FOR_TARGET"; then
8358 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8376 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8377 if test -n "$LIPO_FOR_TARGET"; then
8378 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8379 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8380 else
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8386 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8388 set dummy ${ncn_progname}; ac_word=$2
8389 echo "$as_me:$LINENO: checking for $ac_word" >&5
8390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8391 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394 if test -n "$LIPO_FOR_TARGET"; then
8395 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8408 done
8409 done
8413 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8414 if test -n "$LIPO_FOR_TARGET"; then
8415 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8416 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8417 else
8418 echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8423 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8424 done
8427 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8428 set dummy lipo
8429 if test $build = $target ; then
8430 LIPO_FOR_TARGET="$2"
8431 else
8432 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8436 else
8437 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8443 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8444 if test -n "$with_build_time_tools"; then
8445 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8446 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
8447 if test -x $with_build_time_tools/nm; then
8448 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8449 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8450 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8451 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8452 else
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8456 elif test $build != $host && test $have_gcc_for_target = yes; then
8457 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8458 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8462 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8463 # Extract the first word of "nm", so it can be a program name with args.
8464 set dummy nm; ac_word=$2
8465 echo "$as_me:$LINENO: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8467 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470 case $NM_FOR_TARGET in
8471 [\\/]* | ?:[\\/]*)
8472 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $gcc_cv_tool_dirs
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8486 done
8487 done
8490 esac
8492 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8494 if test -n "$NM_FOR_TARGET"; then
8495 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8496 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8497 else
8498 echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8503 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8504 if test -n "$with_build_time_tools"; then
8505 for ncn_progname in nm; do
8506 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8507 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8508 if test -x $with_build_time_tools/${ncn_progname}; then
8509 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8510 echo "$as_me:$LINENO: result: yes" >&5
8511 echo "${ECHO_T}yes" >&6
8512 break
8513 else
8514 echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8517 done
8520 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8521 for ncn_progname in nm; do
8522 if test -n "$ncn_target_tool_prefix"; then
8523 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8525 echo "$as_me:$LINENO: checking for $ac_word" >&5
8526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8527 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 if test -n "$NM_FOR_TARGET"; then
8531 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8536 IFS=$as_save_IFS
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 break 2
8544 done
8545 done
8549 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8550 if test -n "$NM_FOR_TARGET"; then
8551 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8552 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8553 else
8554 echo "$as_me:$LINENO: result: no" >&5
8555 echo "${ECHO_T}no" >&6
8559 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8561 set dummy ${ncn_progname}; ac_word=$2
8562 echo "$as_me:$LINENO: checking for $ac_word" >&5
8563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8564 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 if test -n "$NM_FOR_TARGET"; then
8568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8581 done
8582 done
8586 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8587 if test -n "$NM_FOR_TARGET"; then
8588 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8589 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8590 else
8591 echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6
8596 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8597 done
8600 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8601 set dummy nm
8602 if test $build = $target ; then
8603 NM_FOR_TARGET="$2"
8604 else
8605 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8609 else
8610 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8616 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8617 if test -n "$with_build_time_tools"; then
8618 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8619 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
8620 if test -x $with_build_time_tools/objdump; then
8621 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8622 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8623 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8624 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6
8629 elif test $build != $host && test $have_gcc_for_target = yes; then
8630 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8631 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8635 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8636 # Extract the first word of "objdump", so it can be a program name with args.
8637 set dummy objdump; ac_word=$2
8638 echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 case $OBJDUMP_FOR_TARGET in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $gcc_cv_tool_dirs
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8659 done
8660 done
8663 esac
8665 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8667 if test -n "$OBJDUMP_FOR_TARGET"; then
8668 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8669 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8670 else
8671 echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8676 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8677 if test -n "$with_build_time_tools"; then
8678 for ncn_progname in objdump; do
8679 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8680 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8681 if test -x $with_build_time_tools/${ncn_progname}; then
8682 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8683 echo "$as_me:$LINENO: result: yes" >&5
8684 echo "${ECHO_T}yes" >&6
8685 break
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8690 done
8693 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8694 for ncn_progname in objdump; do
8695 if test -n "$ncn_target_tool_prefix"; then
8696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8698 echo "$as_me:$LINENO: checking for $ac_word" >&5
8699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8700 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 if test -n "$OBJDUMP_FOR_TARGET"; then
8704 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8717 done
8718 done
8722 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8723 if test -n "$OBJDUMP_FOR_TARGET"; then
8724 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8725 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728 echo "${ECHO_T}no" >&6
8732 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 echo "$as_me:$LINENO: checking for $ac_word" >&5
8736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8737 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740 if test -n "$OBJDUMP_FOR_TARGET"; then
8741 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8759 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8760 if test -n "$OBJDUMP_FOR_TARGET"; then
8761 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8762 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8763 else
8764 echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8769 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8770 done
8773 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8774 set dummy objdump
8775 if test $build = $target ; then
8776 OBJDUMP_FOR_TARGET="$2"
8777 else
8778 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8782 else
8783 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8789 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8790 if test -n "$with_build_time_tools"; then
8791 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8792 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8793 if test -x $with_build_time_tools/ranlib; then
8794 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8795 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8796 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8797 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8798 else
8799 echo "$as_me:$LINENO: result: no" >&5
8800 echo "${ECHO_T}no" >&6
8802 elif test $build != $host && test $have_gcc_for_target = yes; then
8803 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8804 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8808 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8809 # Extract the first word of "ranlib", so it can be a program name with args.
8810 set dummy ranlib; ac_word=$2
8811 echo "$as_me:$LINENO: checking for $ac_word" >&5
8812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8813 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 case $RANLIB_FOR_TARGET in
8817 [\\/]* | ?:[\\/]*)
8818 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $gcc_cv_tool_dirs
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8836 esac
8838 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8840 if test -n "$RANLIB_FOR_TARGET"; then
8841 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8842 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8843 else
8844 echo "$as_me:$LINENO: result: no" >&5
8845 echo "${ECHO_T}no" >&6
8849 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8850 if test -n "$with_build_time_tools"; then
8851 for ncn_progname in ranlib; do
8852 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8853 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8854 if test -x $with_build_time_tools/${ncn_progname}; then
8855 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8856 echo "$as_me:$LINENO: result: yes" >&5
8857 echo "${ECHO_T}yes" >&6
8858 break
8859 else
8860 echo "$as_me:$LINENO: result: no" >&5
8861 echo "${ECHO_T}no" >&6
8863 done
8866 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8867 for ncn_progname in ranlib; do
8868 if test -n "$ncn_target_tool_prefix"; then
8869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8870 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8871 echo "$as_me:$LINENO: checking for $ac_word" >&5
8872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 if test -n "$RANLIB_FOR_TARGET"; then
8877 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8878 else
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8890 done
8891 done
8895 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8896 if test -n "$RANLIB_FOR_TARGET"; then
8897 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8898 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8899 else
8900 echo "$as_me:$LINENO: result: no" >&5
8901 echo "${ECHO_T}no" >&6
8905 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8907 set dummy ${ncn_progname}; ac_word=$2
8908 echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 if test -n "$RANLIB_FOR_TARGET"; then
8914 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8927 done
8928 done
8932 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8933 if test -n "$RANLIB_FOR_TARGET"; then
8934 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8935 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8942 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8943 done
8946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8947 set dummy ranlib
8948 if test $build = $target ; then
8949 RANLIB_FOR_TARGET="$2"
8950 else
8951 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8955 else
8956 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8962 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8963 if test -n "$with_build_time_tools"; then
8964 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8965 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8966 if test -x $with_build_time_tools/strip; then
8967 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8968 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8969 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8970 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8975 elif test $build != $host && test $have_gcc_for_target = yes; then
8976 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8977 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8981 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8982 # Extract the first word of "strip", so it can be a program name with args.
8983 set dummy strip; ac_word=$2
8984 echo "$as_me:$LINENO: checking for $ac_word" >&5
8985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8986 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 case $STRIP_FOR_TARGET in
8990 [\\/]* | ?:[\\/]*)
8991 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $gcc_cv_tool_dirs
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9005 done
9006 done
9009 esac
9011 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9013 if test -n "$STRIP_FOR_TARGET"; then
9014 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9015 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9016 else
9017 echo "$as_me:$LINENO: result: no" >&5
9018 echo "${ECHO_T}no" >&6
9022 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9023 if test -n "$with_build_time_tools"; then
9024 for ncn_progname in strip; do
9025 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9026 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9027 if test -x $with_build_time_tools/${ncn_progname}; then
9028 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9029 echo "$as_me:$LINENO: result: yes" >&5
9030 echo "${ECHO_T}yes" >&6
9031 break
9032 else
9033 echo "$as_me:$LINENO: result: no" >&5
9034 echo "${ECHO_T}no" >&6
9036 done
9039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9040 for ncn_progname in strip; do
9041 if test -n "$ncn_target_tool_prefix"; then
9042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9044 echo "$as_me:$LINENO: checking for $ac_word" >&5
9045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9046 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 if test -n "$STRIP_FOR_TARGET"; then
9050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9063 done
9064 done
9068 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9069 if test -n "$STRIP_FOR_TARGET"; then
9070 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9071 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9072 else
9073 echo "$as_me:$LINENO: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9078 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080 set dummy ${ncn_progname}; ac_word=$2
9081 echo "$as_me:$LINENO: checking for $ac_word" >&5
9082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9083 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086 if test -n "$STRIP_FOR_TARGET"; then
9087 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9100 done
9101 done
9105 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9106 if test -n "$STRIP_FOR_TARGET"; then
9107 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9108 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9109 else
9110 echo "$as_me:$LINENO: result: no" >&5
9111 echo "${ECHO_T}no" >&6
9115 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9116 done
9119 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9120 set dummy strip
9121 if test $build = $target ; then
9122 STRIP_FOR_TARGET="$2"
9123 else
9124 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9128 else
9129 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9135 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9136 if test -n "$with_build_time_tools"; then
9137 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9138 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
9139 if test -x $with_build_time_tools/windres; then
9140 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9141 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9142 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9143 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6
9148 elif test $build != $host && test $have_gcc_for_target = yes; then
9149 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9150 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9154 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9155 # Extract the first word of "windres", so it can be a program name with args.
9156 set dummy windres; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162 case $WINDRES_FOR_TARGET in
9163 [\\/]* | ?:[\\/]*)
9164 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $gcc_cv_tool_dirs
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9174 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9182 esac
9184 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9186 if test -n "$WINDRES_FOR_TARGET"; then
9187 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9188 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9189 else
9190 echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9195 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9196 if test -n "$with_build_time_tools"; then
9197 for ncn_progname in windres; do
9198 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9199 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9200 if test -x $with_build_time_tools/${ncn_progname}; then
9201 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9202 echo "$as_me:$LINENO: result: yes" >&5
9203 echo "${ECHO_T}yes" >&6
9204 break
9205 else
9206 echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6
9209 done
9212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9213 for ncn_progname in windres; do
9214 if test -n "$ncn_target_tool_prefix"; then
9215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9217 echo "$as_me:$LINENO: checking for $ac_word" >&5
9218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9219 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 if test -n "$WINDRES_FOR_TARGET"; then
9223 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9232 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9241 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9242 if test -n "$WINDRES_FOR_TARGET"; then
9243 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9244 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9245 else
9246 echo "$as_me:$LINENO: result: no" >&5
9247 echo "${ECHO_T}no" >&6
9251 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253 set dummy ${ncn_progname}; ac_word=$2
9254 echo "$as_me:$LINENO: checking for $ac_word" >&5
9255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 if test -n "$WINDRES_FOR_TARGET"; then
9260 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9273 done
9274 done
9278 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9279 if test -n "$WINDRES_FOR_TARGET"; then
9280 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9281 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9282 else
9283 echo "$as_me:$LINENO: result: no" >&5
9284 echo "${ECHO_T}no" >&6
9288 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9289 done
9292 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9293 set dummy windres
9294 if test $build = $target ; then
9295 WINDRES_FOR_TARGET="$2"
9296 else
9297 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
9301 else
9302 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9306 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9308 echo "$as_me:$LINENO: checking where to find the target ar" >&5
9309 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
9310 if test "x${build}" != "x${host}" ; then
9311 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9312 # We already found the complete path
9313 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9314 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9315 else
9316 # Canadian cross, just use what we found
9317 echo "$as_me:$LINENO: result: pre-installed" >&5
9318 echo "${ECHO_T}pre-installed" >&6
9320 else
9321 ok=yes
9322 case " ${configdirs} " in
9323 *" binutils "*) ;;
9324 *) ok=no ;;
9325 esac
9327 if test $ok = yes; then
9328 # An in-tree tool is available and we can use it
9329 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
9330 echo "$as_me:$LINENO: result: just compiled" >&5
9331 echo "${ECHO_T}just compiled" >&6
9332 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9333 # We already found the complete path
9334 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9335 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9336 elif test "x$target" = "x$host"; then
9337 # We can use an host tool
9338 AR_FOR_TARGET='$(AR)'
9339 echo "$as_me:$LINENO: result: host tool" >&5
9340 echo "${ECHO_T}host tool" >&6
9341 else
9342 # We need a cross tool
9343 echo "$as_me:$LINENO: result: pre-installed" >&5
9344 echo "${ECHO_T}pre-installed" >&6
9348 echo "$as_me:$LINENO: checking where to find the target as" >&5
9349 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
9350 if test "x${build}" != "x${host}" ; then
9351 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9352 # We already found the complete path
9353 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9354 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9355 else
9356 # Canadian cross, just use what we found
9357 echo "$as_me:$LINENO: result: pre-installed" >&5
9358 echo "${ECHO_T}pre-installed" >&6
9360 else
9361 ok=yes
9362 case " ${configdirs} " in
9363 *" gas "*) ;;
9364 *) ok=no ;;
9365 esac
9367 if test $ok = yes; then
9368 # An in-tree tool is available and we can use it
9369 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9370 echo "$as_me:$LINENO: result: just compiled" >&5
9371 echo "${ECHO_T}just compiled" >&6
9372 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9373 # We already found the complete path
9374 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9375 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9376 elif test "x$target" = "x$host"; then
9377 # We can use an host tool
9378 AS_FOR_TARGET='$(AS)'
9379 echo "$as_me:$LINENO: result: host tool" >&5
9380 echo "${ECHO_T}host tool" >&6
9381 else
9382 # We need a cross tool
9383 echo "$as_me:$LINENO: result: pre-installed" >&5
9384 echo "${ECHO_T}pre-installed" >&6
9388 echo "$as_me:$LINENO: checking where to find the target cc" >&5
9389 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
9390 if test "x${build}" != "x${host}" ; then
9391 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9392 # We already found the complete path
9393 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9394 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9395 else
9396 # Canadian cross, just use what we found
9397 echo "$as_me:$LINENO: result: pre-installed" >&5
9398 echo "${ECHO_T}pre-installed" >&6
9400 else
9401 ok=yes
9402 case " ${configdirs} " in
9403 *" gcc "*) ;;
9404 *) ok=no ;;
9405 esac
9407 if test $ok = yes; then
9408 # An in-tree tool is available and we can use it
9409 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9410 echo "$as_me:$LINENO: result: just compiled" >&5
9411 echo "${ECHO_T}just compiled" >&6
9412 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9413 # We already found the complete path
9414 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9415 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9416 elif test "x$target" = "x$host"; then
9417 # We can use an host tool
9418 CC_FOR_TARGET='$(CC)'
9419 echo "$as_me:$LINENO: result: host tool" >&5
9420 echo "${ECHO_T}host tool" >&6
9421 else
9422 # We need a cross tool
9423 echo "$as_me:$LINENO: result: pre-installed" >&5
9424 echo "${ECHO_T}pre-installed" >&6
9428 echo "$as_me:$LINENO: checking where to find the target c++" >&5
9429 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
9430 if test "x${build}" != "x${host}" ; then
9431 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9432 # We already found the complete path
9433 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9434 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9435 else
9436 # Canadian cross, just use what we found
9437 echo "$as_me:$LINENO: result: pre-installed" >&5
9438 echo "${ECHO_T}pre-installed" >&6
9440 else
9441 ok=yes
9442 case " ${configdirs} " in
9443 *" gcc "*) ;;
9444 *) ok=no ;;
9445 esac
9446 case ,${enable_languages}, in
9447 *,c++,*) ;;
9448 *) ok=no ;;
9449 esac
9450 if test $ok = yes; then
9451 # An in-tree tool is available and we can use it
9452 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `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'
9453 echo "$as_me:$LINENO: result: just compiled" >&5
9454 echo "${ECHO_T}just compiled" >&6
9455 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9456 # We already found the complete path
9457 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9458 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9459 elif test "x$target" = "x$host"; then
9460 # We can use an host tool
9461 CXX_FOR_TARGET='$(CXX)'
9462 echo "$as_me:$LINENO: result: host tool" >&5
9463 echo "${ECHO_T}host tool" >&6
9464 else
9465 # We need a cross tool
9466 echo "$as_me:$LINENO: result: pre-installed" >&5
9467 echo "${ECHO_T}pre-installed" >&6
9471 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9472 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
9473 if test "x${build}" != "x${host}" ; then
9474 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9475 # We already found the complete path
9476 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9477 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9478 else
9479 # Canadian cross, just use what we found
9480 echo "$as_me:$LINENO: result: pre-installed" >&5
9481 echo "${ECHO_T}pre-installed" >&6
9483 else
9484 ok=yes
9485 case " ${configdirs} " in
9486 *" gcc "*) ;;
9487 *) ok=no ;;
9488 esac
9489 case ,${enable_languages}, in
9490 *,c++,*) ;;
9491 *) ok=no ;;
9492 esac
9493 if test $ok = yes; then
9494 # An in-tree tool is available and we can use it
9495 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
9496 echo "$as_me:$LINENO: result: just compiled" >&5
9497 echo "${ECHO_T}just compiled" >&6
9498 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9499 # We already found the complete path
9500 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9501 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9502 elif test "x$target" = "x$host"; then
9503 # We can use an host tool
9504 RAW_CXX_FOR_TARGET='$(CXX)'
9505 echo "$as_me:$LINENO: result: host tool" >&5
9506 echo "${ECHO_T}host tool" >&6
9507 else
9508 # We need a cross tool
9509 echo "$as_me:$LINENO: result: pre-installed" >&5
9510 echo "${ECHO_T}pre-installed" >&6
9514 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9515 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
9516 if test "x${build}" != "x${host}" ; then
9517 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9518 # We already found the complete path
9519 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9520 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9521 else
9522 # Canadian cross, just use what we found
9523 echo "$as_me:$LINENO: result: pre-installed" >&5
9524 echo "${ECHO_T}pre-installed" >&6
9526 else
9527 ok=yes
9528 case " ${configdirs} " in
9529 *" binutils "*) ;;
9530 *) ok=no ;;
9531 esac
9533 if test $ok = yes; then
9534 # An in-tree tool is available and we can use it
9535 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9536 echo "$as_me:$LINENO: result: just compiled" >&5
9537 echo "${ECHO_T}just compiled" >&6
9538 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9539 # We already found the complete path
9540 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9541 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9542 elif test "x$target" = "x$host"; then
9543 # We can use an host tool
9544 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9545 echo "$as_me:$LINENO: result: host tool" >&5
9546 echo "${ECHO_T}host tool" >&6
9547 else
9548 # We need a cross tool
9549 echo "$as_me:$LINENO: result: pre-installed" >&5
9550 echo "${ECHO_T}pre-installed" >&6
9554 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9555 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
9556 if test "x${build}" != "x${host}" ; then
9557 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9558 # We already found the complete path
9559 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9560 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9561 else
9562 # Canadian cross, just use what we found
9563 echo "$as_me:$LINENO: result: pre-installed" >&5
9564 echo "${ECHO_T}pre-installed" >&6
9566 else
9567 ok=yes
9568 case " ${configdirs} " in
9569 *" gcc "*) ;;
9570 *) ok=no ;;
9571 esac
9573 if test $ok = yes; then
9574 # An in-tree tool is available and we can use it
9575 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9576 echo "$as_me:$LINENO: result: just compiled" >&5
9577 echo "${ECHO_T}just compiled" >&6
9578 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9579 # We already found the complete path
9580 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9581 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9582 elif test "x$target" = "x$host"; then
9583 # We can use an host tool
9584 GCC_FOR_TARGET='$()'
9585 echo "$as_me:$LINENO: result: host tool" >&5
9586 echo "${ECHO_T}host tool" >&6
9587 else
9588 # We need a cross tool
9589 echo "$as_me:$LINENO: result: pre-installed" >&5
9590 echo "${ECHO_T}pre-installed" >&6
9594 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9595 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
9596 if test "x${build}" != "x${host}" ; then
9597 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9598 # We already found the complete path
9599 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9600 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9601 else
9602 # Canadian cross, just use what we found
9603 echo "$as_me:$LINENO: result: pre-installed" >&5
9604 echo "${ECHO_T}pre-installed" >&6
9606 else
9607 ok=yes
9608 case " ${configdirs} " in
9609 *" gcc "*) ;;
9610 *) ok=no ;;
9611 esac
9612 case ,${enable_languages}, in
9613 *,java,*) ;;
9614 *) ok=no ;;
9615 esac
9616 if test $ok = yes; then
9617 # An in-tree tool is available and we can use it
9618 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9619 echo "$as_me:$LINENO: result: just compiled" >&5
9620 echo "${ECHO_T}just compiled" >&6
9621 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9622 # We already found the complete path
9623 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9624 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9625 elif test "x$target" = "x$host"; then
9626 # We can use an host tool
9627 GCJ_FOR_TARGET='$(GCJ)'
9628 echo "$as_me:$LINENO: result: host tool" >&5
9629 echo "${ECHO_T}host tool" >&6
9630 else
9631 # We need a cross tool
9632 echo "$as_me:$LINENO: result: pre-installed" >&5
9633 echo "${ECHO_T}pre-installed" >&6
9637 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9638 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9639 if test "x${build}" != "x${host}" ; then
9640 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9641 # We already found the complete path
9642 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9643 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9644 else
9645 # Canadian cross, just use what we found
9646 echo "$as_me:$LINENO: result: pre-installed" >&5
9647 echo "${ECHO_T}pre-installed" >&6
9649 else
9650 ok=yes
9651 case " ${configdirs} " in
9652 *" gcc "*) ;;
9653 *) ok=no ;;
9654 esac
9655 case ,${enable_languages}, in
9656 *,fortran,*) ;;
9657 *) ok=no ;;
9658 esac
9659 if test $ok = yes; then
9660 # An in-tree tool is available and we can use it
9661 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9662 echo "$as_me:$LINENO: result: just compiled" >&5
9663 echo "${ECHO_T}just compiled" >&6
9664 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9665 # We already found the complete path
9666 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9667 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9668 elif test "x$target" = "x$host"; then
9669 # We can use an host tool
9670 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9671 echo "$as_me:$LINENO: result: host tool" >&5
9672 echo "${ECHO_T}host tool" >&6
9673 else
9674 # We need a cross tool
9675 echo "$as_me:$LINENO: result: pre-installed" >&5
9676 echo "${ECHO_T}pre-installed" >&6
9680 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9681 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9682 if test "x${build}" != "x${host}" ; then
9683 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9684 # We already found the complete path
9685 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9686 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9687 else
9688 # Canadian cross, just use what we found
9689 echo "$as_me:$LINENO: result: pre-installed" >&5
9690 echo "${ECHO_T}pre-installed" >&6
9692 else
9693 ok=yes
9694 case " ${configdirs} " in
9695 *" ld "*) ;;
9696 *) ok=no ;;
9697 esac
9699 if test $ok = yes; then
9700 # An in-tree tool is available and we can use it
9701 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9702 echo "$as_me:$LINENO: result: just compiled" >&5
9703 echo "${ECHO_T}just compiled" >&6
9704 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9705 # We already found the complete path
9706 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9707 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9708 elif test "x$target" = "x$host"; then
9709 # We can use an host tool
9710 LD_FOR_TARGET='$(LD)'
9711 echo "$as_me:$LINENO: result: host tool" >&5
9712 echo "${ECHO_T}host tool" >&6
9713 else
9714 # We need a cross tool
9715 echo "$as_me:$LINENO: result: pre-installed" >&5
9716 echo "${ECHO_T}pre-installed" >&6
9720 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9721 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9722 if test "x${build}" != "x${host}" ; then
9723 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9724 # We already found the complete path
9725 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9726 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9727 else
9728 # Canadian cross, just use what we found
9729 echo "$as_me:$LINENO: result: pre-installed" >&5
9730 echo "${ECHO_T}pre-installed" >&6
9732 else
9733 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9734 # We already found the complete path
9735 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9736 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9737 elif test "x$target" = "x$host"; then
9738 # We can use an host tool
9739 LIPO_FOR_TARGET='$(LIPO)'
9740 echo "$as_me:$LINENO: result: host tool" >&5
9741 echo "${ECHO_T}host tool" >&6
9742 else
9743 # We need a cross tool
9744 echo "$as_me:$LINENO: result: pre-installed" >&5
9745 echo "${ECHO_T}pre-installed" >&6
9749 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9750 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9751 if test "x${build}" != "x${host}" ; then
9752 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9753 # We already found the complete path
9754 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9755 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9756 else
9757 # Canadian cross, just use what we found
9758 echo "$as_me:$LINENO: result: pre-installed" >&5
9759 echo "${ECHO_T}pre-installed" >&6
9761 else
9762 ok=yes
9763 case " ${configdirs} " in
9764 *" binutils "*) ;;
9765 *) ok=no ;;
9766 esac
9768 if test $ok = yes; then
9769 # An in-tree tool is available and we can use it
9770 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9771 echo "$as_me:$LINENO: result: just compiled" >&5
9772 echo "${ECHO_T}just compiled" >&6
9773 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9774 # We already found the complete path
9775 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9776 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9777 elif test "x$target" = "x$host"; then
9778 # We can use an host tool
9779 NM_FOR_TARGET='$(NM)'
9780 echo "$as_me:$LINENO: result: host tool" >&5
9781 echo "${ECHO_T}host tool" >&6
9782 else
9783 # We need a cross tool
9784 echo "$as_me:$LINENO: result: pre-installed" >&5
9785 echo "${ECHO_T}pre-installed" >&6
9789 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9790 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9791 if test "x${build}" != "x${host}" ; then
9792 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9793 # We already found the complete path
9794 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9795 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9796 else
9797 # Canadian cross, just use what we found
9798 echo "$as_me:$LINENO: result: pre-installed" >&5
9799 echo "${ECHO_T}pre-installed" >&6
9801 else
9802 ok=yes
9803 case " ${configdirs} " in
9804 *" binutils "*) ;;
9805 *) ok=no ;;
9806 esac
9808 if test $ok = yes; then
9809 # An in-tree tool is available and we can use it
9810 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9811 echo "$as_me:$LINENO: result: just compiled" >&5
9812 echo "${ECHO_T}just compiled" >&6
9813 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9814 # We already found the complete path
9815 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9816 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9817 elif test "x$target" = "x$host"; then
9818 # We can use an host tool
9819 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9820 echo "$as_me:$LINENO: result: host tool" >&5
9821 echo "${ECHO_T}host tool" >&6
9822 else
9823 # We need a cross tool
9824 echo "$as_me:$LINENO: result: pre-installed" >&5
9825 echo "${ECHO_T}pre-installed" >&6
9829 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9830 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9831 if test "x${build}" != "x${host}" ; then
9832 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9833 # We already found the complete path
9834 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9835 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9836 else
9837 # Canadian cross, just use what we found
9838 echo "$as_me:$LINENO: result: pre-installed" >&5
9839 echo "${ECHO_T}pre-installed" >&6
9841 else
9842 ok=yes
9843 case " ${configdirs} " in
9844 *" binutils "*) ;;
9845 *) ok=no ;;
9846 esac
9848 if test $ok = yes; then
9849 # An in-tree tool is available and we can use it
9850 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9851 echo "$as_me:$LINENO: result: just compiled" >&5
9852 echo "${ECHO_T}just compiled" >&6
9853 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9854 # We already found the complete path
9855 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9856 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9857 elif test "x$target" = "x$host"; then
9858 # We can use an host tool
9859 RANLIB_FOR_TARGET='$(RANLIB)'
9860 echo "$as_me:$LINENO: result: host tool" >&5
9861 echo "${ECHO_T}host tool" >&6
9862 else
9863 # We need a cross tool
9864 echo "$as_me:$LINENO: result: pre-installed" >&5
9865 echo "${ECHO_T}pre-installed" >&6
9869 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9870 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9871 if test "x${build}" != "x${host}" ; then
9872 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9873 # We already found the complete path
9874 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9875 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9876 else
9877 # Canadian cross, just use what we found
9878 echo "$as_me:$LINENO: result: pre-installed" >&5
9879 echo "${ECHO_T}pre-installed" >&6
9881 else
9882 ok=yes
9883 case " ${configdirs} " in
9884 *" binutils "*) ;;
9885 *) ok=no ;;
9886 esac
9888 if test $ok = yes; then
9889 # An in-tree tool is available and we can use it
9890 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9891 echo "$as_me:$LINENO: result: just compiled" >&5
9892 echo "${ECHO_T}just compiled" >&6
9893 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9894 # We already found the complete path
9895 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9896 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9897 elif test "x$target" = "x$host"; then
9898 # We can use an host tool
9899 STRIP_FOR_TARGET='$(STRIP)'
9900 echo "$as_me:$LINENO: result: host tool" >&5
9901 echo "${ECHO_T}host tool" >&6
9902 else
9903 # We need a cross tool
9904 echo "$as_me:$LINENO: result: pre-installed" >&5
9905 echo "${ECHO_T}pre-installed" >&6
9909 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9910 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9911 if test "x${build}" != "x${host}" ; then
9912 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9913 # We already found the complete path
9914 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9915 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9916 else
9917 # Canadian cross, just use what we found
9918 echo "$as_me:$LINENO: result: pre-installed" >&5
9919 echo "${ECHO_T}pre-installed" >&6
9921 else
9922 ok=yes
9923 case " ${configdirs} " in
9924 *" binutils "*) ;;
9925 *) ok=no ;;
9926 esac
9928 if test $ok = yes; then
9929 # An in-tree tool is available and we can use it
9930 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9931 echo "$as_me:$LINENO: result: just compiled" >&5
9932 echo "${ECHO_T}just compiled" >&6
9933 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9934 # We already found the complete path
9935 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9936 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9937 elif test "x$target" = "x$host"; then
9938 # We can use an host tool
9939 WINDRES_FOR_TARGET='$(WINDRES)'
9940 echo "$as_me:$LINENO: result: host tool" >&5
9941 echo "${ECHO_T}host tool" >&6
9942 else
9943 # We need a cross tool
9944 echo "$as_me:$LINENO: result: pre-installed" >&5
9945 echo "${ECHO_T}pre-installed" >&6
9953 # Certain tools may need extra flags.
9954 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9955 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9956 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9958 # When building target libraries, except in a Canadian cross, we use
9959 # the same toolchain as the compiler we just built.
9960 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9961 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9962 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9963 if test $host = $build; then
9964 case " $configdirs " in
9965 *" gcc "*)
9966 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9967 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9968 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9970 esac
9977 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9978 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9980 if test "${enable_maintainer_mode+set}" = set; then
9981 enableval="$enable_maintainer_mode"
9982 USE_MAINTAINER_MODE=$enableval
9983 else
9984 USE_MAINTAINER_MODE=no
9986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9990 if test "$USE_MAINTAINER_MODE" = yes; then
9991 MAINTAINER_MODE_TRUE=
9992 MAINTAINER_MODE_FALSE='#'
9993 else
9994 MAINTAINER_MODE_TRUE='#'
9995 MAINTAINER_MODE_FALSE=
9997 MAINT=$MAINTAINER_MODE_TRUE
9999 # ---------------------
10000 # GCC bootstrap support
10001 # ---------------------
10003 # Stage specific cflags for build.
10004 stage1_cflags="-g"
10005 case $build in
10006 vax-*-*)
10007 case ${GCC} in
10008 yes) stage1_cflags="-g -Wa,-J" ;;
10009 *) stage1_cflags="-g -J" ;;
10010 esac ;;
10011 esac
10013 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10014 if test "$GCC" = yes; then
10015 saved_CFLAGS="$CFLAGS"
10017 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10018 CFLAGS="$CFLAGS -fkeep-inline-functions"
10019 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
10020 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10029 main ()
10033 return 0;
10035 _ACEOF
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 echo "$as_me:$LINENO: result: yes" >&5
10059 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10069 CFLAGS="$saved_CFLAGS"
10074 # Enable --enable-checking in stage1 of the compiler.
10075 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10076 if test "${enable_stage1_checking+set}" = set; then
10077 enableval="$enable_stage1_checking"
10078 stage1_checking=--enable-checking=${enable_stage1_checking}
10079 else
10080 if test "x$enable_checking" = xno; then
10081 stage1_checking=--enable-checking
10082 else
10083 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10088 # Enable -Werror in bootstrap stage2 and later.
10089 # Check whether --enable-werror or --disable-werror was given.
10090 if test "${enable_werror+set}" = set; then
10091 enableval="$enable_werror"
10093 else
10094 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
10095 enable_werror=yes
10096 else
10097 enable_werror=no
10100 case ${enable_werror} in
10101 yes) stage2_werror_flag="--enable-werror-always" ;;
10102 *) stage2_werror_flag="" ;;
10103 esac
10106 # Flags needed to enable html installing and building
10108 # Check whether --with-datarootdir or --without-datarootdir was given.
10109 if test "${with_datarootdir+set}" = set; then
10110 withval="$with_datarootdir"
10111 datarootdir="\${prefix}/${withval}"
10112 else
10113 datarootdir="\${prefix}/share"
10117 # Check whether --with-docdir or --without-docdir was given.
10118 if test "${with_docdir+set}" = set; then
10119 withval="$with_docdir"
10120 docdir="\${prefix}/${withval}"
10121 else
10122 docdir="\${datarootdir}/doc"
10126 # Check whether --with-htmldir or --without-htmldir was given.
10127 if test "${with_htmldir+set}" = set; then
10128 withval="$with_htmldir"
10129 htmldir="\${prefix}/${withval}"
10130 else
10131 htmldir="\${docdir}"
10138 ac_config_files="$ac_config_files Makefile"
10139 cat >confcache <<\_ACEOF
10140 # This file is a shell script that caches the results of configure
10141 # tests run on this system so they can be shared between configure
10142 # scripts and configure runs, see configure's option --config-cache.
10143 # It is not useful on other systems. If it contains results you don't
10144 # want to keep, you may remove or edit it.
10146 # config.status only pays attention to the cache file if you give it
10147 # the --recheck option to rerun configure.
10149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10151 # following values.
10153 _ACEOF
10155 # The following way of writing the cache mishandles newlines in values,
10156 # but we know of no workaround that is simple, portable, and efficient.
10157 # So, don't put newlines in cache variables' values.
10158 # Ultrix sh set writes to stderr and can't be redirected directly,
10159 # and sets the high bit in the cache file unless we assign to the vars.
10161 (set) 2>&1 |
10162 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10163 *ac_space=\ *)
10164 # `set' does not quote correctly, so add quotes (double-quote
10165 # substitution turns \\\\ into \\, and sed turns \\ into \).
10166 sed -n \
10167 "s/'/'\\\\''/g;
10168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10171 # `set' quotes correctly as required by POSIX, so do not add quotes.
10172 sed -n \
10173 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10175 esac;
10177 sed '
10178 t clear
10179 : clear
10180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10181 t end
10182 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10183 : end' >>confcache
10184 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10185 if test -w $cache_file; then
10186 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10187 cat confcache >$cache_file
10188 else
10189 echo "not updating unwritable cache $cache_file"
10192 rm -f confcache
10194 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10195 # Let make expand exec_prefix.
10196 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10200 # trailing colons and then remove the whole line if VPATH becomes empty
10201 # (actually we leave an empty line to preserve line numbers).
10202 if test "x$srcdir" = x.; then
10203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10204 s/:*\$(srcdir):*/:/;
10205 s/:*\${srcdir}:*/:/;
10206 s/:*@srcdir@:*/:/;
10207 s/^\([^=]*=[ ]*\):*/\1/;
10208 s/:*$//;
10209 s/^[^=]*=[ ]*$//;
10213 # Transform confdefs.h into DEFS.
10214 # Protect against shell expansion while executing Makefile rules.
10215 # Protect against Makefile macro expansion.
10217 # If the first sed substitution is executed (which looks for macros that
10218 # take arguments), then we branch to the quote section. Otherwise,
10219 # look for a macro that doesn't take arguments.
10220 cat >confdef2opt.sed <<\_ACEOF
10221 t clear
10222 : clear
10223 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10224 t quote
10225 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10226 t quote
10228 : quote
10229 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10230 s,\[,\\&,g
10231 s,\],\\&,g
10232 s,\$,$$,g
10234 _ACEOF
10235 # We use echo to avoid assuming a particular line-breaking character.
10236 # The extra dot is to prevent the shell from consuming trailing
10237 # line-breaks from the sub-command output. A line-break within
10238 # single-quotes doesn't work because, if this script is created in a
10239 # platform that uses two characters for line-breaks (e.g., DOS), tr
10240 # would break.
10241 ac_LF_and_DOT=`echo; echo .`
10242 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10243 rm -f confdef2opt.sed
10246 ac_libobjs=
10247 ac_ltlibobjs=
10248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10249 # 1. Remove the extension, and $U if already installed.
10250 ac_i=`echo "$ac_i" |
10251 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10252 # 2. Add them.
10253 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10254 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10255 done
10256 LIBOBJS=$ac_libobjs
10258 LTLIBOBJS=$ac_ltlibobjs
10262 : ${CONFIG_STATUS=./config.status}
10263 ac_clean_files_save=$ac_clean_files
10264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10265 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10266 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10267 cat >$CONFIG_STATUS <<_ACEOF
10268 #! $SHELL
10269 # Generated by $as_me.
10270 # Run this file to recreate the current configuration.
10271 # Compiler output produced by configure, useful for debugging
10272 # configure, is in config.log if it exists.
10274 debug=false
10275 ac_cs_recheck=false
10276 ac_cs_silent=false
10277 SHELL=\${CONFIG_SHELL-$SHELL}
10278 _ACEOF
10280 cat >>$CONFIG_STATUS <<\_ACEOF
10281 ## --------------------- ##
10282 ## M4sh Initialization. ##
10283 ## --------------------- ##
10285 # Be Bourne compatible
10286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10287 emulate sh
10288 NULLCMD=:
10289 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10290 # is contrary to our usage. Disable this feature.
10291 alias -g '${1+"$@"}'='"$@"'
10292 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10293 set -o posix
10295 DUALCASE=1; export DUALCASE # for MKS sh
10297 # Support unset when possible.
10298 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10299 as_unset=unset
10300 else
10301 as_unset=false
10305 # Work around bugs in pre-3.0 UWIN ksh.
10306 $as_unset ENV MAIL MAILPATH
10307 PS1='$ '
10308 PS2='> '
10309 PS4='+ '
10311 # NLS nuisances.
10312 for as_var in \
10313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10315 LC_TELEPHONE LC_TIME
10317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10318 eval $as_var=C; export $as_var
10319 else
10320 $as_unset $as_var
10322 done
10324 # Required to use basename.
10325 if expr a : '\(a\)' >/dev/null 2>&1; then
10326 as_expr=expr
10327 else
10328 as_expr=false
10331 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10332 as_basename=basename
10333 else
10334 as_basename=false
10338 # Name of the executable.
10339 as_me=`$as_basename "$0" ||
10340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10341 X"$0" : 'X\(//\)$' \| \
10342 X"$0" : 'X\(/\)$' \| \
10343 . : '\(.\)' 2>/dev/null ||
10344 echo X/"$0" |
10345 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10346 /^X\/\(\/\/\)$/{ s//\1/; q; }
10347 /^X\/\(\/\).*/{ s//\1/; q; }
10348 s/.*/./; q'`
10351 # PATH needs CR, and LINENO needs CR and PATH.
10352 # Avoid depending upon Character Ranges.
10353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10356 as_cr_digits='0123456789'
10357 as_cr_alnum=$as_cr_Letters$as_cr_digits
10359 # The user is always right.
10360 if test "${PATH_SEPARATOR+set}" != set; then
10361 echo "#! /bin/sh" >conf$$.sh
10362 echo "exit 0" >>conf$$.sh
10363 chmod +x conf$$.sh
10364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10365 PATH_SEPARATOR=';'
10366 else
10367 PATH_SEPARATOR=:
10369 rm -f conf$$.sh
10373 as_lineno_1=$LINENO
10374 as_lineno_2=$LINENO
10375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10376 test "x$as_lineno_1" != "x$as_lineno_2" &&
10377 test "x$as_lineno_3" = "x$as_lineno_2" || {
10378 # Find who we are. Look in the path if we contain no path at all
10379 # relative or not.
10380 case $0 in
10381 *[\\/]* ) as_myself=$0 ;;
10382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10388 done
10391 esac
10392 # We did not find ourselves, most probably we were run as `sh COMMAND'
10393 # in which case we are not to be found in the path.
10394 if test "x$as_myself" = x; then
10395 as_myself=$0
10397 if test ! -f "$as_myself"; then
10398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10399 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10400 { (exit 1); exit 1; }; }
10402 case $CONFIG_SHELL in
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for as_base in sh bash ksh sh5; do
10410 case $as_dir in
10412 if ("$as_dir/$as_base" -c '
10413 as_lineno_1=$LINENO
10414 as_lineno_2=$LINENO
10415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10416 test "x$as_lineno_1" != "x$as_lineno_2" &&
10417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10418 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10419 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10420 CONFIG_SHELL=$as_dir/$as_base
10421 export CONFIG_SHELL
10422 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10423 fi;;
10424 esac
10425 done
10426 done
10428 esac
10430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10431 # uniformly replaced by the line number. The first 'sed' inserts a
10432 # line-number line before each line; the second 'sed' does the real
10433 # work. The second script uses 'N' to pair each line-number line
10434 # with the numbered line, and appends trailing '-' during
10435 # substitution so that $LINENO is not a special case at line end.
10436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10437 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10438 sed '=' <$as_myself |
10439 sed '
10441 s,$,-,
10442 : loop
10443 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10444 t loop
10445 s,-$,,
10446 s,^['$as_cr_digits']*\n,,
10447 ' >$as_me.lineno &&
10448 chmod +x $as_me.lineno ||
10449 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10450 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10451 { (exit 1); exit 1; }; }
10453 # Don't try to exec as it changes $[0], causing all sort of problems
10454 # (the dirname of $[0] is not the place where we might find the
10455 # original and so on. Autoconf is especially sensible to this).
10456 . ./$as_me.lineno
10457 # Exit status is that of the last command.
10458 exit
10462 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10463 *c*,-n*) ECHO_N= ECHO_C='
10464 ' ECHO_T=' ' ;;
10465 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10466 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10467 esac
10469 if expr a : '\(a\)' >/dev/null 2>&1; then
10470 as_expr=expr
10471 else
10472 as_expr=false
10475 rm -f conf$$ conf$$.exe conf$$.file
10476 echo >conf$$.file
10477 if ln -s conf$$.file conf$$ 2>/dev/null; then
10478 # We could just check for DJGPP; but this test a) works b) is more generic
10479 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10480 if test -f conf$$.exe; then
10481 # Don't use ln at all; we don't have any links
10482 as_ln_s='cp -p'
10483 else
10484 as_ln_s='ln -s'
10486 elif ln conf$$.file conf$$ 2>/dev/null; then
10487 as_ln_s=ln
10488 else
10489 as_ln_s='cp -p'
10491 rm -f conf$$ conf$$.exe conf$$.file
10493 if mkdir -p . 2>/dev/null; then
10494 as_mkdir_p=:
10495 else
10496 test -d ./-p && rmdir ./-p
10497 as_mkdir_p=false
10500 as_executable_p="test -f"
10502 # Sed expression to map a string onto a valid CPP name.
10503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10505 # Sed expression to map a string onto a valid variable name.
10506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10509 # IFS
10510 # We need space, tab and new line, in precisely that order.
10511 as_nl='
10513 IFS=" $as_nl"
10515 # CDPATH.
10516 $as_unset CDPATH
10518 exec 6>&1
10520 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10521 # report actual input values of CONFIG_FILES etc. instead of their
10522 # values after options handling. Logging --version etc. is OK.
10523 exec 5>>config.log
10525 echo
10526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10527 ## Running $as_me. ##
10528 _ASBOX
10529 } >&5
10530 cat >&5 <<_CSEOF
10532 This file was extended by $as_me, which was
10533 generated by GNU Autoconf 2.59. Invocation command line was
10535 CONFIG_FILES = $CONFIG_FILES
10536 CONFIG_HEADERS = $CONFIG_HEADERS
10537 CONFIG_LINKS = $CONFIG_LINKS
10538 CONFIG_COMMANDS = $CONFIG_COMMANDS
10539 $ $0 $@
10541 _CSEOF
10542 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10543 echo >&5
10544 _ACEOF
10546 # Files that config.status was made for.
10547 if test -n "$ac_config_files"; then
10548 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10551 if test -n "$ac_config_headers"; then
10552 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10555 if test -n "$ac_config_links"; then
10556 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10559 if test -n "$ac_config_commands"; then
10560 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10565 ac_cs_usage="\
10566 \`$as_me' instantiates files from templates according to the
10567 current configuration.
10569 Usage: $0 [OPTIONS] [FILE]...
10571 -h, --help print this help, then exit
10572 -V, --version print version number, then exit
10573 -q, --quiet do not print progress messages
10574 -d, --debug don't remove temporary files
10575 --recheck update $as_me by reconfiguring in the same conditions
10576 --file=FILE[:TEMPLATE]
10577 instantiate the configuration file FILE
10579 Configuration files:
10580 $config_files
10582 Report bugs to <bug-autoconf@gnu.org>."
10583 _ACEOF
10585 cat >>$CONFIG_STATUS <<_ACEOF
10586 ac_cs_version="\\
10587 config.status
10588 configured by $0, generated by GNU Autoconf 2.59,
10589 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10591 Copyright (C) 2003 Free Software Foundation, Inc.
10592 This config.status script is free software; the Free Software Foundation
10593 gives unlimited permission to copy, distribute and modify it."
10594 srcdir=$srcdir
10595 INSTALL="$INSTALL"
10596 _ACEOF
10598 cat >>$CONFIG_STATUS <<\_ACEOF
10599 # If no file are specified by the user, then we need to provide default
10600 # value. By we need to know if files were specified by the user.
10601 ac_need_defaults=:
10602 while test $# != 0
10604 case $1 in
10605 --*=*)
10606 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10607 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10608 ac_shift=:
10611 ac_option=$1
10612 ac_optarg=$2
10613 ac_shift=shift
10615 *) # This is not an option, so the user has probably given explicit
10616 # arguments.
10617 ac_option=$1
10618 ac_need_defaults=false;;
10619 esac
10621 case $ac_option in
10622 # Handling of the options.
10623 _ACEOF
10624 cat >>$CONFIG_STATUS <<\_ACEOF
10625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10626 ac_cs_recheck=: ;;
10627 --version | --vers* | -V )
10628 echo "$ac_cs_version"; exit 0 ;;
10629 --he | --h)
10630 # Conflict between --help and --header
10631 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10632 Try \`$0 --help' for more information." >&5
10633 echo "$as_me: error: ambiguous option: $1
10634 Try \`$0 --help' for more information." >&2;}
10635 { (exit 1); exit 1; }; };;
10636 --help | --hel | -h )
10637 echo "$ac_cs_usage"; exit 0 ;;
10638 --debug | --d* | -d )
10639 debug=: ;;
10640 --file | --fil | --fi | --f )
10641 $ac_shift
10642 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10643 ac_need_defaults=false;;
10644 --header | --heade | --head | --hea )
10645 $ac_shift
10646 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10647 ac_need_defaults=false;;
10648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10649 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10650 ac_cs_silent=: ;;
10652 # This is an error.
10653 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10654 Try \`$0 --help' for more information." >&5
10655 echo "$as_me: error: unrecognized option: $1
10656 Try \`$0 --help' for more information." >&2;}
10657 { (exit 1); exit 1; }; } ;;
10659 *) ac_config_targets="$ac_config_targets $1" ;;
10661 esac
10662 shift
10663 done
10665 ac_configure_extra_args=
10667 if $ac_cs_silent; then
10668 exec 6>/dev/null
10669 ac_configure_extra_args="$ac_configure_extra_args --silent"
10672 _ACEOF
10673 cat >>$CONFIG_STATUS <<_ACEOF
10674 if \$ac_cs_recheck; then
10675 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10676 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10679 _ACEOF
10685 cat >>$CONFIG_STATUS <<\_ACEOF
10686 for ac_config_target in $ac_config_targets
10688 case "$ac_config_target" in
10689 # Handling of arguments.
10690 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10691 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10693 { (exit 1); exit 1; }; };;
10694 esac
10695 done
10697 # If the user did not use the arguments to specify the items to instantiate,
10698 # then the envvar interface is used. Set only those that are not.
10699 # We use the long form for the default assignment because of an extremely
10700 # bizarre bug on SunOS 4.1.3.
10701 if $ac_need_defaults; then
10702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10705 # Have a temporary directory for convenience. Make it in the build tree
10706 # simply because there is no reason to put it here, and in addition,
10707 # creating and moving files from /tmp can sometimes cause problems.
10708 # Create a temporary directory, and hook for its removal unless debugging.
10709 $debug ||
10711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10712 trap '{ (exit 1); exit 1; }' 1 2 13 15
10715 # Create a (secure) tmp directory for tmp files.
10718 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10719 test -n "$tmp" && test -d "$tmp"
10720 } ||
10722 tmp=./confstat$$-$RANDOM
10723 (umask 077 && mkdir $tmp)
10724 } ||
10726 echo "$me: cannot create a temporary directory in ." >&2
10727 { (exit 1); exit 1; }
10730 _ACEOF
10732 cat >>$CONFIG_STATUS <<_ACEOF
10735 # CONFIG_FILES section.
10738 # No need to generate the scripts if there are no CONFIG_FILES.
10739 # This happens for instance when ./config.status config.h
10740 if test -n "\$CONFIG_FILES"; then
10741 # Protect against being on the right side of a sed subst in config.status.
10742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10744 s,@SHELL@,$SHELL,;t t
10745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10751 s,@exec_prefix@,$exec_prefix,;t t
10752 s,@prefix@,$prefix,;t t
10753 s,@program_transform_name@,$program_transform_name,;t t
10754 s,@bindir@,$bindir,;t t
10755 s,@sbindir@,$sbindir,;t t
10756 s,@libexecdir@,$libexecdir,;t t
10757 s,@datadir@,$datadir,;t t
10758 s,@sysconfdir@,$sysconfdir,;t t
10759 s,@sharedstatedir@,$sharedstatedir,;t t
10760 s,@localstatedir@,$localstatedir,;t t
10761 s,@libdir@,$libdir,;t t
10762 s,@includedir@,$includedir,;t t
10763 s,@oldincludedir@,$oldincludedir,;t t
10764 s,@infodir@,$infodir,;t t
10765 s,@mandir@,$mandir,;t t
10766 s,@build_alias@,$build_alias,;t t
10767 s,@host_alias@,$host_alias,;t t
10768 s,@target_alias@,$target_alias,;t t
10769 s,@DEFS@,$DEFS,;t t
10770 s,@ECHO_C@,$ECHO_C,;t t
10771 s,@ECHO_N@,$ECHO_N,;t t
10772 s,@ECHO_T@,$ECHO_T,;t t
10773 s,@LIBS@,$LIBS,;t t
10774 s,@build@,$build,;t t
10775 s,@build_cpu@,$build_cpu,;t t
10776 s,@build_vendor@,$build_vendor,;t t
10777 s,@build_os@,$build_os,;t t
10778 s,@build_noncanonical@,$build_noncanonical,;t t
10779 s,@host_noncanonical@,$host_noncanonical,;t t
10780 s,@target_noncanonical@,$target_noncanonical,;t t
10781 s,@host@,$host,;t t
10782 s,@host_cpu@,$host_cpu,;t t
10783 s,@host_vendor@,$host_vendor,;t t
10784 s,@host_os@,$host_os,;t t
10785 s,@target@,$target,;t t
10786 s,@target_cpu@,$target_cpu,;t t
10787 s,@target_vendor@,$target_vendor,;t t
10788 s,@target_os@,$target_os,;t t
10789 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10790 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10791 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10792 s,@LN@,$LN,;t t
10793 s,@LN_S@,$LN_S,;t t
10794 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10795 s,@build_libsubdir@,$build_libsubdir,;t t
10796 s,@build_subdir@,$build_subdir,;t t
10797 s,@host_subdir@,$host_subdir,;t t
10798 s,@target_subdir@,$target_subdir,;t t
10799 s,@CC@,$CC,;t t
10800 s,@CFLAGS@,$CFLAGS,;t t
10801 s,@LDFLAGS@,$LDFLAGS,;t t
10802 s,@CPPFLAGS@,$CPPFLAGS,;t t
10803 s,@ac_ct_CC@,$ac_ct_CC,;t t
10804 s,@EXEEXT@,$EXEEXT,;t t
10805 s,@OBJEXT@,$OBJEXT,;t t
10806 s,@CXX@,$CXX,;t t
10807 s,@CXXFLAGS@,$CXXFLAGS,;t t
10808 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10809 s,@GNATBIND@,$GNATBIND,;t t
10810 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10811 s,@GNATMAKE@,$GNATMAKE,;t t
10812 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10813 s,@do_compare@,$do_compare,;t t
10814 s,@gmplibs@,$gmplibs,;t t
10815 s,@gmpinc@,$gmpinc,;t t
10816 s,@stage1_languages@,$stage1_languages,;t t
10817 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10818 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10819 s,@tooldir@,$tooldir,;t t
10820 s,@build_tooldir@,$build_tooldir,;t t
10821 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10822 s,@GDB_TK@,$GDB_TK,;t t
10823 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10824 s,@build_configargs@,$build_configargs,;t t
10825 s,@build_configdirs@,$build_configdirs,;t t
10826 s,@host_configargs@,$host_configargs,;t t
10827 s,@configdirs@,$configdirs,;t t
10828 s,@target_configargs@,$target_configargs,;t t
10829 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10830 s,@config_shell@,$config_shell,;t t
10831 s,@YACC@,$YACC,;t t
10832 s,@BISON@,$BISON,;t t
10833 s,@M4@,$M4,;t t
10834 s,@LEX@,$LEX,;t t
10835 s,@FLEX@,$FLEX,;t t
10836 s,@MAKEINFO@,$MAKEINFO,;t t
10837 s,@EXPECT@,$EXPECT,;t t
10838 s,@RUNTEST@,$RUNTEST,;t t
10839 s,@AR@,$AR,;t t
10840 s,@AS@,$AS,;t t
10841 s,@DLLTOOL@,$DLLTOOL,;t t
10842 s,@LD@,$LD,;t t
10843 s,@LIPO@,$LIPO,;t t
10844 s,@NM@,$NM,;t t
10845 s,@RANLIB@,$RANLIB,;t t
10846 s,@STRIP@,$STRIP,;t t
10847 s,@WINDRES@,$WINDRES,;t t
10848 s,@OBJCOPY@,$OBJCOPY,;t t
10849 s,@OBJDUMP@,$OBJDUMP,;t t
10850 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10851 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10852 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10853 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10854 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10855 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10856 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10857 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10858 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10859 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10860 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10861 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10862 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10863 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10864 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10865 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10866 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10867 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10868 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10869 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10870 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10871 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10872 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10873 s,@MAINT@,$MAINT,;t t
10874 s,@stage1_cflags@,$stage1_cflags,;t t
10875 s,@stage1_checking@,$stage1_checking,;t t
10876 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10877 s,@datarootdir@,$datarootdir,;t t
10878 s,@docdir@,$docdir,;t t
10879 s,@htmldir@,$htmldir,;t t
10880 s,@LIBOBJS@,$LIBOBJS,;t t
10881 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10882 /@serialization_dependencies@/r $serialization_dependencies
10883 s,@serialization_dependencies@,,;t t
10884 /@host_makefile_frag@/r $host_makefile_frag
10885 s,@host_makefile_frag@,,;t t
10886 /@target_makefile_frag@/r $target_makefile_frag
10887 s,@target_makefile_frag@,,;t t
10888 /@alphaieee_frag@/r $alphaieee_frag
10889 s,@alphaieee_frag@,,;t t
10890 /@ospace_frag@/r $ospace_frag
10891 s,@ospace_frag@,,;t t
10892 CEOF
10894 _ACEOF
10896 cat >>$CONFIG_STATUS <<\_ACEOF
10897 # Split the substitutions into bite-sized pieces for seds with
10898 # small command number limits, like on Digital OSF/1 and HP-UX.
10899 ac_max_sed_lines=48
10900 ac_sed_frag=1 # Number of current file.
10901 ac_beg=1 # First line for current file.
10902 ac_end=$ac_max_sed_lines # Line after last line for current file.
10903 ac_more_lines=:
10904 ac_sed_cmds=
10905 while $ac_more_lines; do
10906 if test $ac_beg -gt 1; then
10907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10908 else
10909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10911 if test ! -s $tmp/subs.frag; then
10912 ac_more_lines=false
10913 else
10914 # The purpose of the label and of the branching condition is to
10915 # speed up the sed processing (if there are no `@' at all, there
10916 # is no need to browse any of the substitutions).
10917 # These are the two extra sed commands mentioned above.
10918 (echo ':t
10919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10920 if test -z "$ac_sed_cmds"; then
10921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10922 else
10923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10925 ac_sed_frag=`expr $ac_sed_frag + 1`
10926 ac_beg=$ac_end
10927 ac_end=`expr $ac_end + $ac_max_sed_lines`
10929 done
10930 if test -z "$ac_sed_cmds"; then
10931 ac_sed_cmds=cat
10933 fi # test -n "$CONFIG_FILES"
10935 _ACEOF
10936 cat >>$CONFIG_STATUS <<\_ACEOF
10937 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10939 case $ac_file in
10940 - | *:- | *:-:* ) # input from stdin
10941 cat >$tmp/stdin
10942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10946 * ) ac_file_in=$ac_file.in ;;
10947 esac
10949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10952 X"$ac_file" : 'X\(//\)[^/]' \| \
10953 X"$ac_file" : 'X\(//\)$' \| \
10954 X"$ac_file" : 'X\(/\)' \| \
10955 . : '\(.\)' 2>/dev/null ||
10956 echo X"$ac_file" |
10957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10959 /^X\(\/\/\)$/{ s//\1/; q; }
10960 /^X\(\/\).*/{ s//\1/; q; }
10961 s/.*/./; q'`
10962 { if $as_mkdir_p; then
10963 mkdir -p "$ac_dir"
10964 else
10965 as_dir="$ac_dir"
10966 as_dirs=
10967 while test ! -d "$as_dir"; do
10968 as_dirs="$as_dir $as_dirs"
10969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10971 X"$as_dir" : 'X\(//\)[^/]' \| \
10972 X"$as_dir" : 'X\(//\)$' \| \
10973 X"$as_dir" : 'X\(/\)' \| \
10974 . : '\(.\)' 2>/dev/null ||
10975 echo X"$as_dir" |
10976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10978 /^X\(\/\/\)$/{ s//\1/; q; }
10979 /^X\(\/\).*/{ s//\1/; q; }
10980 s/.*/./; q'`
10981 done
10982 test ! -n "$as_dirs" || mkdir $as_dirs
10983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10984 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10985 { (exit 1); exit 1; }; }; }
10987 ac_builddir=.
10989 if test "$ac_dir" != .; then
10990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10991 # A "../" for each directory in $ac_dir_suffix.
10992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10993 else
10994 ac_dir_suffix= ac_top_builddir=
10997 case $srcdir in
10998 .) # No --srcdir option. We are building in place.
10999 ac_srcdir=.
11000 if test -z "$ac_top_builddir"; then
11001 ac_top_srcdir=.
11002 else
11003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11004 fi ;;
11005 [\\/]* | ?:[\\/]* ) # Absolute path.
11006 ac_srcdir=$srcdir$ac_dir_suffix;
11007 ac_top_srcdir=$srcdir ;;
11008 *) # Relative path.
11009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11011 esac
11013 # Do not use `cd foo && pwd` to compute absolute paths, because
11014 # the directories may not exist.
11015 case `pwd` in
11016 .) ac_abs_builddir="$ac_dir";;
11018 case "$ac_dir" in
11019 .) ac_abs_builddir=`pwd`;;
11020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11022 esac;;
11023 esac
11024 case $ac_abs_builddir in
11025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11027 case ${ac_top_builddir}. in
11028 .) ac_abs_top_builddir=$ac_abs_builddir;;
11029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11031 esac;;
11032 esac
11033 case $ac_abs_builddir in
11034 .) ac_abs_srcdir=$ac_srcdir;;
11036 case $ac_srcdir in
11037 .) ac_abs_srcdir=$ac_abs_builddir;;
11038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11040 esac;;
11041 esac
11042 case $ac_abs_builddir in
11043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11045 case $ac_top_srcdir in
11046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11049 esac;;
11050 esac
11053 case $INSTALL in
11054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11056 esac
11058 if test x"$ac_file" != x-; then
11059 { echo "$as_me:$LINENO: creating $ac_file" >&5
11060 echo "$as_me: creating $ac_file" >&6;}
11061 rm -f "$ac_file"
11063 # Let's still pretend it is `configure' which instantiates (i.e., don't
11064 # use $as_me), people would be surprised to read:
11065 # /* config.h. Generated by config.status. */
11066 if test x"$ac_file" = x-; then
11067 configure_input=
11068 else
11069 configure_input="$ac_file. "
11071 configure_input=$configure_input"Generated from `echo $ac_file_in |
11072 sed 's,.*/,,'` by configure."
11074 # First look for the input files in the build tree, otherwise in the
11075 # src tree.
11076 ac_file_inputs=`IFS=:
11077 for f in $ac_file_in; do
11078 case $f in
11079 -) echo $tmp/stdin ;;
11080 [\\/$]*)
11081 # Absolute (can't be DOS-style, as IFS=:)
11082 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11083 echo "$as_me: error: cannot find input file: $f" >&2;}
11084 { (exit 1); exit 1; }; }
11085 echo "$f";;
11086 *) # Relative
11087 if test -f "$f"; then
11088 # Build tree
11089 echo "$f"
11090 elif test -f "$srcdir/$f"; then
11091 # Source tree
11092 echo "$srcdir/$f"
11093 else
11094 # /dev/null tree
11095 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11096 echo "$as_me: error: cannot find input file: $f" >&2;}
11097 { (exit 1); exit 1; }; }
11098 fi;;
11099 esac
11100 done` || { (exit 1); exit 1; }
11101 _ACEOF
11102 cat >>$CONFIG_STATUS <<_ACEOF
11103 sed "$ac_vpsub
11104 $extrasub
11105 _ACEOF
11106 cat >>$CONFIG_STATUS <<\_ACEOF
11108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11109 s,@configure_input@,$configure_input,;t t
11110 s,@srcdir@,$ac_srcdir,;t t
11111 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11112 s,@top_srcdir@,$ac_top_srcdir,;t t
11113 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11114 s,@builddir@,$ac_builddir,;t t
11115 s,@abs_builddir@,$ac_abs_builddir,;t t
11116 s,@top_builddir@,$ac_top_builddir,;t t
11117 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11118 s,@INSTALL@,$ac_INSTALL,;t t
11119 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11120 rm -f $tmp/stdin
11121 if test x"$ac_file" != x-; then
11122 mv $tmp/out $ac_file
11123 else
11124 cat $tmp/out
11125 rm -f $tmp/out
11128 done
11129 _ACEOF
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11133 { (exit 0); exit 0; }
11134 _ACEOF
11135 chmod +x $CONFIG_STATUS
11136 ac_clean_files=$ac_clean_files_save
11139 # configure is writing to config.log, and then calls config.status.
11140 # config.status does its own redirection, appending to config.log.
11141 # Unfortunately, on DOS this fails, as config.log is still kept open
11142 # by configure, so config.status won't be able to write to it; its
11143 # output is simply discarded. So we exec the FD to /dev/null,
11144 # effectively closing config.log, so it can be properly (re)opened and
11145 # appended to by config.status. When coming back to configure, we
11146 # need to make the FD available again.
11147 if test "$no_create" != yes; then
11148 ac_cs_success=:
11149 ac_config_status_args=
11150 test "$silent" = yes &&
11151 ac_config_status_args="$ac_config_status_args --quiet"
11152 exec 5>/dev/null
11153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11154 exec 5>>config.log
11155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11156 # would make configure fail if this is the last instruction.
11157 $ac_cs_success || { (exit 1); exit 1; }