2007-07-02 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / configure
blob773aff94f606037a3f70e0b3f698b333bd0a148a
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 WINDMC 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 WINDMC_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 pdfdir 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
740 ac_env_AR_set=${AR+set}
741 ac_env_AR_value=$AR
742 ac_cv_env_AR_set=${AR+set}
743 ac_cv_env_AR_value=$AR
744 ac_env_AS_set=${AS+set}
745 ac_env_AS_value=$AS
746 ac_cv_env_AS_set=${AS+set}
747 ac_cv_env_AS_value=$AS
748 ac_env_DLLTOOL_set=${DLLTOOL+set}
749 ac_env_DLLTOOL_value=$DLLTOOL
750 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_cv_env_DLLTOOL_value=$DLLTOOL
752 ac_env_LD_set=${LD+set}
753 ac_env_LD_value=$LD
754 ac_cv_env_LD_set=${LD+set}
755 ac_cv_env_LD_value=$LD
756 ac_env_LIPO_set=${LIPO+set}
757 ac_env_LIPO_value=$LIPO
758 ac_cv_env_LIPO_set=${LIPO+set}
759 ac_cv_env_LIPO_value=$LIPO
760 ac_env_NM_set=${NM+set}
761 ac_env_NM_value=$NM
762 ac_cv_env_NM_set=${NM+set}
763 ac_cv_env_NM_value=$NM
764 ac_env_RANLIB_set=${RANLIB+set}
765 ac_env_RANLIB_value=$RANLIB
766 ac_cv_env_RANLIB_set=${RANLIB+set}
767 ac_cv_env_RANLIB_value=$RANLIB
768 ac_env_STRIP_set=${STRIP+set}
769 ac_env_STRIP_value=$STRIP
770 ac_cv_env_STRIP_set=${STRIP+set}
771 ac_cv_env_STRIP_value=$STRIP
772 ac_env_WINDRES_set=${WINDRES+set}
773 ac_env_WINDRES_value=$WINDRES
774 ac_cv_env_WINDRES_set=${WINDRES+set}
775 ac_cv_env_WINDRES_value=$WINDRES
776 ac_env_WINDMC_set=${WINDMC+set}
777 ac_env_WINDMC_value=$WINDMC
778 ac_cv_env_WINDMC_set=${WINDMC+set}
779 ac_cv_env_WINDMC_value=$WINDMC
780 ac_env_OBJCOPY_set=${OBJCOPY+set}
781 ac_env_OBJCOPY_value=$OBJCOPY
782 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783 ac_cv_env_OBJCOPY_value=$OBJCOPY
784 ac_env_OBJDUMP_set=${OBJDUMP+set}
785 ac_env_OBJDUMP_value=$OBJDUMP
786 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787 ac_cv_env_OBJDUMP_value=$OBJDUMP
788 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
854 # Report the --help message.
856 if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860 \`configure' configures this package to adapt to many kinds of systems.
862 Usage: $0 [OPTION]... [VAR=VALUE]...
864 To assign environment variables (e.g., CC, CFLAGS...), specify them as
865 VAR=VALUE. See below for descriptions of some of the useful variables.
867 Defaults for the options are specified in brackets.
869 Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
880 _ACEOF
882 cat <<_ACEOF
883 Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
889 By default, \`make install' will install all the files in
890 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892 for instance \`--prefix=\$HOME'.
894 For better control, use the options below.
896 Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909 _ACEOF
911 cat <<\_ACEOF
913 Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
918 System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922 _ACEOF
925 if test -n "$ac_init_help"; then
927 cat <<\_ACEOF
929 Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
932 --enable-libada Builds libada directory
933 --enable-libssp Builds libssp directory
934 --enable-stage1-languages=all choose additional languages to build during
935 stage1. Mostly useful for compiler development.
936 --enable-objc-gc enable the use of Boehm's garbage collector with
937 the GNU Objective-C runtime.
938 --enable-bootstrap Enable bootstrapping yes if native build
939 --enable-serial-{host,target,build}-configure
940 Force sequential configuration of
941 sub-packages for the host, target or build
942 machine, or all sub-packages
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
945 --enable-stage1-checking=all choose additional checking for stage1
946 of the compiler.
947 --enable-werror enable -Werror in bootstrap stage2 and later
949 Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
953 --with-mpfr-dir=PATH This option has been REMOVED
954 --with-mpfr=PATH Specify prefix directory for installed MPFR package
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
958 Specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
960 --with-gmp-dir=PATH This option has been REMOVED
961 --with-gmp=PATH Specify prefix directory for the installed GMP package
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
964 --with-gmp-include=PATH Specify directory for installed GMP include files
965 --with-gmp-lib=PATH Specify the directory for the installed GMP library
966 --with-build-sysroot=sysroot
967 use sysroot as the system root during the build
968 --with-build-time-tools=path
969 use given path to find target tools during the build
970 --with-datarootdir Use datarootdir as the data root directory.
971 --with-docdir Install documentation in this directory.
972 --with-pdfdir Install pdf in this directory.
973 --with-htmldir Install html in this directory.
975 Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
984 AR AR for the host
985 AS AS for the host
986 DLLTOOL DLLTOOL for the host
987 LD LD for the host
988 LIPO LIPO for the host
989 NM NM for the host
990 RANLIB RANLIB for the host
991 STRIP STRIP for the host
992 WINDRES WINDRES for the host
993 WINDMC WINDMC for the host
994 OBJCOPY OBJCOPY for the host
995 OBJDUMP OBJDUMP for the host
996 CC_FOR_TARGET
997 CC for the target
998 CXX_FOR_TARGET
999 CXX for the target
1000 GCC_FOR_TARGET
1001 GCC for the target
1002 GCJ_FOR_TARGET
1003 GCJ for the target
1004 GFORTRAN_FOR_TARGET
1005 GFORTRAN for the target
1006 AR_FOR_TARGET
1007 AR for the target
1008 AS_FOR_TARGET
1009 AS for the target
1010 DLLTOOL_FOR_TARGET
1011 DLLTOOL for the target
1012 LD_FOR_TARGET
1013 LD for the target
1014 LIPO_FOR_TARGET
1015 LIPO for the target
1016 NM_FOR_TARGET
1017 NM for the target
1018 OBJDUMP_FOR_TARGET
1019 OBJDUMP for the target
1020 RANLIB_FOR_TARGET
1021 RANLIB for the target
1022 STRIP_FOR_TARGET
1023 STRIP for the target
1024 WINDRES_FOR_TARGET
1025 WINDRES for the target
1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
1029 Use these variables to override the choices made by `configure' or to help
1030 it to find libraries and programs with nonstandard names/locations.
1032 _ACEOF
1035 if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
1037 ac_popdir=`pwd`
1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1039 test -d $ac_dir || continue
1040 ac_builddir=.
1042 if test "$ac_dir" != .; then
1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046 else
1047 ac_dir_suffix= ac_top_builddir=
1050 case $srcdir in
1051 .) # No --srcdir option. We are building in place.
1052 ac_srcdir=.
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1059 ac_srcdir=$srcdir$ac_dir_suffix;
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064 esac
1066 # Do not use `cd foo && pwd` to compute absolute paths, because
1067 # the directories may not exist.
1068 case `pwd` in
1069 .) ac_abs_builddir="$ac_dir";;
1071 case "$ac_dir" in
1072 .) ac_abs_builddir=`pwd`;;
1073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1075 esac;;
1076 esac
1077 case $ac_abs_builddir in
1078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1080 case ${ac_top_builddir}. in
1081 .) ac_abs_top_builddir=$ac_abs_builddir;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1084 esac;;
1085 esac
1086 case $ac_abs_builddir in
1087 .) ac_abs_srcdir=$ac_srcdir;;
1089 case $ac_srcdir in
1090 .) ac_abs_srcdir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1098 case $ac_top_srcdir in
1099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1102 esac;;
1103 esac
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1120 cd $ac_popdir
1121 done
1124 test -n "$ac_init_help" && exit 0
1125 if $ac_init_version; then
1126 cat <<\_ACEOF
1128 Copyright (C) 2003 Free Software Foundation, Inc.
1129 This configure script is free software; the Free Software Foundation
1130 gives unlimited permission to copy, distribute and modify it.
1131 _ACEOF
1132 exit 0
1134 exec 5>config.log
1135 cat >&5 <<_ACEOF
1136 This file contains any messages produced by compilers while
1137 running configure, to aid debugging if configure makes a mistake.
1139 It was created by $as_me, which was
1140 generated by GNU Autoconf 2.59. Invocation command line was
1142 $ $0 $@
1144 _ACEOF
1146 cat <<_ASUNAME
1147 ## --------- ##
1148 ## Platform. ##
1149 ## --------- ##
1151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1163 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1168 _ASUNAME
1170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171 for as_dir in $PATH
1173 IFS=$as_save_IFS
1174 test -z "$as_dir" && as_dir=.
1175 echo "PATH: $as_dir"
1176 done
1178 } >&5
1180 cat >&5 <<_ACEOF
1183 ## ----------- ##
1184 ## Core tests. ##
1185 ## ----------- ##
1187 _ACEOF
1190 # Keep a trace of the command line.
1191 # Strip out --no-create and --no-recursion so they do not pile up.
1192 # Strip out --silent because we don't want to record it for future runs.
1193 # Also quote any args containing shell meta-characters.
1194 # Make two passes to allow for proper duplicate-argument suppression.
1195 ac_configure_args=
1196 ac_configure_args0=
1197 ac_configure_args1=
1198 ac_sep=
1199 ac_must_keep_next=false
1200 for ac_pass in 1 2
1202 for ac_arg
1204 case $ac_arg in
1205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 continue ;;
1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case $ac_pass in
1213 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1215 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216 if test $ac_must_keep_next = true; then
1217 ac_must_keep_next=false # Got value, back to normal.
1218 else
1219 case $ac_arg in
1220 *=* | --config-cache | -C | -disable-* | --disable-* \
1221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223 | -with-* | --with-* | -without-* | --without-* | --x)
1224 case "$ac_configure_args0 " in
1225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 esac
1228 -* ) ac_must_keep_next=true ;;
1229 esac
1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
1235 esac
1236 done
1237 done
1238 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1241 # When interrupted or exit'd, cleanup temporary files, and complete
1242 # config.log. We remove comments because anyway the quotes in there
1243 # would cause problems or look ugly.
1244 # WARNING: Be sure not to use single quotes in there, as some shells,
1245 # such as our DU 5.0 friend, will then `close' the trap.
1246 trap 'exit_status=$?
1247 # Save into config.log some information that might help in debugging.
1249 echo
1251 cat <<\_ASBOX
1252 ## ---------------- ##
1253 ## Cache variables. ##
1254 ## ---------------- ##
1255 _ASBOX
1256 echo
1257 # The following way of writing the cache mishandles newlines in values,
1259 (set) 2>&1 |
1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
1262 sed -n \
1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1270 esac;
1272 echo
1274 cat <<\_ASBOX
1275 ## ----------------- ##
1276 ## Output variables. ##
1277 ## ----------------- ##
1278 _ASBOX
1279 echo
1280 for ac_var in $ac_subst_vars
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1284 done | sort
1285 echo
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
1289 ## ------------- ##
1290 ## Output files. ##
1291 ## ------------- ##
1292 _ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1298 done | sort
1299 echo
1302 if test -s confdefs.h; then
1303 cat <<\_ASBOX
1304 ## ----------- ##
1305 ## confdefs.h. ##
1306 ## ----------- ##
1307 _ASBOX
1308 echo
1309 sed "/^$/d" confdefs.h | sort
1310 echo
1312 test "$ac_signal" != 0 &&
1313 echo "$as_me: caught signal $ac_signal"
1314 echo "$as_me: exit $exit_status"
1315 } >&5
1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1318 exit $exit_status
1320 for ac_signal in 1 2 13 15; do
1321 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322 done
1323 ac_signal=0
1325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1326 rm -rf conftest* confdefs.h
1327 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328 echo >confdefs.h
1330 # Predefined preprocessor variables.
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_NAME "$PACKAGE_NAME"
1334 _ACEOF
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339 _ACEOF
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_STRING "$PACKAGE_STRING"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354 _ACEOF
1357 # Let the site file select an alternate cache file if it wants to.
1358 # Prefer explicitly selected file to automatically selected ones.
1359 if test -z "$CONFIG_SITE"; then
1360 if test "x$prefix" != xNONE; then
1361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 else
1363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 for ac_site_file in $CONFIG_SITE; do
1367 if test -r "$ac_site_file"; then
1368 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369 echo "$as_me: loading site script $ac_site_file" >&6;}
1370 sed 's/^/| /' "$ac_site_file" >&5
1371 . "$ac_site_file"
1373 done
1375 if test -r "$cache_file"; then
1376 # Some versions of bash will fail to source /dev/null (special
1377 # files actually), so we avoid doing that.
1378 if test -f "$cache_file"; then
1379 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380 echo "$as_me: loading cache $cache_file" >&6;}
1381 case $cache_file in
1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
1384 esac
1386 else
1387 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388 echo "$as_me: creating cache $cache_file" >&6;}
1389 >$cache_file
1392 # Check that the precious variables saved in the cache have kept the same
1393 # value.
1394 ac_cache_corrupted=false
1395 for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
1401 case $ac_old_set,$ac_new_set in
1402 set,)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,set)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,);;
1412 if test "x$ac_old_val" != "x$ac_new_val"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1416 echo "$as_me: former value: $ac_old_val" >&2;}
1417 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1418 echo "$as_me: current value: $ac_new_val" >&2;}
1419 ac_cache_corrupted=:
1420 fi;;
1421 esac
1422 # Pass precious variables to config.status.
1423 if test "$ac_new_set" = set; then
1424 case $ac_new_val in
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1427 *) ac_arg=$ac_var=$ac_new_val ;;
1428 esac
1429 case " $ac_configure_args " in
1430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1431 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 esac
1434 done
1435 if $ac_cache_corrupted; then
1436 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440 { (exit 1); exit 1; }; }
1443 ac_ext=c
1444 ac_cpp='$CPP $CPPFLAGS'
1445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 # Find the build, host, and target systems.
1470 ac_aux_dir=
1471 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1472 if test -f $ac_dir/install-sh; then
1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
1476 elif test -f $ac_dir/install.sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
1480 elif test -f $ac_dir/shtool; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
1485 done
1486 if test -z "$ac_aux_dir"; then
1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1489 { (exit 1); exit 1; }; }
1491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
1530 esac
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
1537 esac
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
1544 esac
1549 test "$host_noncanonical" = "$target_noncanonical" &&
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
1552 program_transform_name=s,y,y,
1554 echo "$as_me:$LINENO: checking host system type" >&5
1555 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1556 if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 ac_cv_host_alias=$host_alias
1560 test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1565 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569 echo "${ECHO_T}$ac_cv_host" >&6
1570 host=$ac_cv_host
1571 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 echo "$as_me:$LINENO: checking target system type" >&5
1577 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1578 if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 ac_cv_target_alias=$target_alias
1582 test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591 echo "${ECHO_T}$ac_cv_target" >&6
1592 target=$ac_cv_target
1593 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 # The aliases save the names the user supplied, while $host etc.
1599 # will get canonicalized.
1600 test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
1604 test "$program_prefix" != NONE &&
1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE &&
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $. echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF >conftest.sed
1612 s/[\\$]/&&/g;s/;s,x,x,$//
1613 _ACEOF
1614 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615 rm conftest.sed
1619 # Get 'install' or 'install-sh' and its variants.
1620 # Find a good install program. We prefer a C program (faster),
1621 # so one script is as good as another. But avoid the broken or
1622 # incompatible versions:
1623 # SysV /etc/install, /usr/sbin/install
1624 # SunOS /usr/etc/install
1625 # IRIX /sbin/install
1626 # AIX /bin/install
1627 # AmigaOS /C/install, which installs bootblocks on floppy discs
1628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1631 # OS/2's system install, which has a completely different semantic
1632 # ./install, which can be erroneously created by make from ./install.sh.
1633 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1635 if test -z "$INSTALL"; then
1636 if test "${ac_cv_path_install+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 # Account for people who put trailing slashes in PATH elements.
1645 case $as_dir/ in
1646 ./ | .// | /cC/* | \
1647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1648 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649 /usr/ucb/* ) ;;
1651 # OSF1 and SCO ODT 3.0 have their own names for install.
1652 # Don't use installbsd from OSF since it installs stuff as root
1653 # by default.
1654 for ac_prog in ginstall scoinst install; do
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1657 if test $ac_prog = install &&
1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1659 # AIX install. It has an incompatible calling convention.
1661 elif test $ac_prog = install &&
1662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1663 # program-specific install script used by HP pwplus--don't use.
1665 else
1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
1670 done
1671 done
1673 esac
1674 done
1678 if test "${ac_cv_path_install+set}" = set; then
1679 INSTALL=$ac_cv_path_install
1680 else
1681 # As a last resort, use the slow shell script. We don't cache a
1682 # path for INSTALL within a source directory, because that will
1683 # break other packages using the cache if that directory is
1684 # removed, or if the path is relative.
1685 INSTALL=$ac_install_sh
1688 echo "$as_me:$LINENO: result: $INSTALL" >&5
1689 echo "${ECHO_T}$INSTALL" >&6
1691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1692 # It thinks the first close brace ends the variable substitution.
1693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1699 echo "$as_me:$LINENO: checking whether ln works" >&5
1700 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1701 if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 rm -f conftestdata_t
1705 echo >conftestdata_f
1706 if ln conftestdata_f conftestdata_t 2>/dev/null
1707 then
1708 acx_cv_prog_LN=ln
1709 else
1710 acx_cv_prog_LN=no
1712 rm -f conftestdata_f conftestdata_t
1715 if test $acx_cv_prog_LN = no; then
1716 LN="cp"
1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718 echo "${ECHO_T}no, using $LN" >&6
1719 else
1720 LN="$acx_cv_prog_LN"
1721 echo "$as_me:$LINENO: result: yes" >&5
1722 echo "${ECHO_T}yes" >&6
1725 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1727 LN_S=$as_ln_s
1728 if test "$LN_S" = "ln -s"; then
1729 echo "$as_me:$LINENO: result: yes" >&5
1730 echo "${ECHO_T}yes" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733 echo "${ECHO_T}no, using $LN_S" >&6
1737 ### we might need to use some other shell than /bin/sh for running subshells
1738 ### If we are on Windows, search for the shell. This will permit people
1739 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1740 ### without also having to set CONFIG_SHELL. This code will work when
1741 ### using bash, which sets OSTYPE.
1742 case "${OSTYPE}" in
1743 *win32*)
1744 if test x${CONFIG_SHELL} = x ; then
1745 if test ! -f /bin/sh ; then
1746 if test x${SHELL} != x && test -f ${SHELL} ; then
1747 CONFIG_SHELL=${SHELL}
1748 export CONFIG_SHELL
1749 else
1750 for prog in sh sh.exe bash bash.exe; do
1751 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1752 for dir in $PATH; do
1753 test -z "$dir" && dir=.
1754 if test -f $dir/$prog; then
1755 CONFIG_SHELL=$dir/$prog
1756 export CONFIG_SHELL
1757 break
1759 done
1760 IFS="$save_ifs"
1761 test -n "${CONFIG_SHELL}" && break
1762 done
1767 esac
1769 config_shell=${CONFIG_SHELL-/bin/sh}
1771 progname=$0
1772 # if PWD already has a value, it is probably wrong.
1773 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1775 # Export original configure arguments for use by sub-configures.
1776 # Quote arguments with shell meta charatcers.
1777 TOPLEVEL_CONFIGURE_ARGUMENTS=
1778 set -- "$progname" "$@"
1779 for ac_arg
1781 case "$ac_arg" in
1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1784 # if the argument is of the form -foo=baz, quote the baz part only
1785 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1786 *) ;;
1787 esac
1788 # Add the quoted argument to the list.
1789 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1790 done
1791 # Remove the initial space we just introduced and, as these will be
1792 # expanded by make, quote '$'.
1793 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1796 moveifchange=${srcdir}/move-if-change
1798 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1800 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1801 # a relative path.
1802 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1803 INSTALL="${srcpwd}/install-sh -c"
1806 # Set srcdir to "." if that's what it is.
1807 # This is important for multilib support.
1808 pwd=`${PWDCMD-pwd}`
1809 if test "${pwd}" = "${srcpwd}" ; then
1810 srcdir=.
1813 topsrcdir=$srcpwd
1815 extra_host_args=
1817 ### To add a new directory to the tree, first choose whether it is a target
1818 ### or a host dependent tool. Then put it into the appropriate list
1819 ### (library or tools, host or target), doing a dependency sort.
1821 # Subdirs will be configured in the order listed in build_configdirs,
1822 # configdirs, or target_configdirs; see the serialization section below.
1824 # Dependency sorting is only needed when *configuration* must be done in
1825 # a particular order. In all cases a dependency should be specified in
1826 # the Makefile, whether or not it's implicitly specified here.
1828 # Double entries in build_configdirs, configdirs, or target_configdirs may
1829 # cause circular dependencies and break everything horribly.
1831 # these library is used by various programs built for the build
1832 # environment
1834 build_libs="build-libiberty"
1836 # these tools are built for the build environment
1837 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1839 # these libraries are used by various programs built for the host environment
1841 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1843 # these tools are built for the host environment
1844 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1845 # know that we are building the simulator.
1846 # binutils, gas and ld appear in that order because it makes sense to run
1847 # "make check" in that particular order.
1848 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"
1850 # libgcj represents the runtime libraries only used by gcj.
1851 libgcj="target-libffi \
1852 target-zlib \
1853 target-qthreads \
1854 target-libjava"
1856 # these libraries are built for the target environment, and are built after
1857 # the host libraries and the host tools (which may be a cross compiler)
1859 target_libraries="target-libgcc \
1860 target-libiberty \
1861 target-libgloss \
1862 target-newlib \
1863 target-libstdc++-v3 \
1864 target-libmudflap \
1865 target-libssp \
1866 target-libgfortran \
1867 target-boehm-gc \
1868 ${libgcj} \
1869 target-libobjc \
1870 target-libada \
1871 target-libgomp"
1873 # these tools are built using the target libraries, and are intended to
1874 # run only in the target environment
1876 # note: any program that *uses* libraries that are in the "target_libraries"
1877 # list belongs in this list. those programs are also very likely
1878 # candidates for the "native_only" list which follows
1880 target_tools="target-examples target-groff target-gperf target-rda"
1882 ################################################################################
1884 ## All tools belong in one of the four categories, and are assigned above
1885 ## We assign ${configdirs} this way to remove all embedded newlines. This
1886 ## is important because configure will choke if they ever get through.
1887 ## ${configdirs} is directories we build using the host tools.
1888 ## ${target_configdirs} is directories we build using the target tools.
1889 configdirs=`echo ${host_libs} ${host_tools}`
1890 target_configdirs=`echo ${target_libraries} ${target_tools}`
1891 build_configdirs=`echo ${build_libs} ${build_tools}`
1893 ################################################################################
1895 srcname="gnu development package"
1897 # This gets set non-empty for some net releases of packages.
1898 appdirs=""
1900 # Define is_cross_compiler to save on calls to 'test'.
1901 is_cross_compiler=
1902 if test x"${host}" = x"${target}" ; then
1903 is_cross_compiler=no
1904 else
1905 is_cross_compiler=yes
1908 # Find the build and target subdir names.
1910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1911 # have matching libraries, they should use host libraries: Makefile.tpl
1912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1913 # However, they still use the build modules, because the corresponding
1914 # host modules (e.g. bison) are only built for the host when bootstrap
1915 # finishes. So:
1916 # - build_subdir is where we find build modules, and never changes.
1917 # - build_libsubdir is where we find build libraries, and can be overridden.
1919 # Prefix 'build-' so this never conflicts with target_subdir.
1920 build_subdir="build-${build_noncanonical}"
1922 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1923 if test "${with_build_libsubdir+set}" = set; then
1924 withval="$with_build_libsubdir"
1925 build_libsubdir="$withval"
1926 else
1927 build_libsubdir="$build_subdir"
1929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1930 if ( test $srcdir = . && test -d gcc ) \
1931 || test -d $srcdir/../host-${host_noncanonical}; then
1932 host_subdir="host-${host_noncanonical}"
1933 else
1934 host_subdir=.
1936 # No prefix.
1937 target_subdir=${target_noncanonical}
1940 # Skipdirs are removed silently.
1941 skipdirs=
1942 # Noconfigdirs are removed loudly.
1943 noconfigdirs=""
1945 use_gnu_ld=
1946 # Make sure we don't let GNU ld be added if we didn't want it.
1947 if test x$with_gnu_ld = xno ; then
1948 use_gnu_ld=no
1949 noconfigdirs="$noconfigdirs ld"
1952 use_gnu_as=
1953 # Make sure we don't let GNU as be added if we didn't want it.
1954 if test x$with_gnu_as = xno ; then
1955 use_gnu_as=no
1956 noconfigdirs="$noconfigdirs gas"
1959 # some tools are so dependent upon X11 that if we're not building with X,
1960 # it's not even worth trying to configure, much less build, that tool.
1962 case ${with_x} in
1963 yes | "") ;; # the default value for this tree is that X11 is available
1965 skipdirs="${skipdirs} tk itcl libgui"
1966 # We won't be able to build gdbtk without X.
1967 enable_gdbtk=no
1969 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1970 esac
1972 # Some tools are only suitable for building in a "native" situation.
1973 # Remove these if host!=target.
1974 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"
1976 # Similarly, some are only suitable for cross toolchains.
1977 # Remove these if host=target.
1978 cross_only="target-libgloss target-newlib target-opcodes"
1980 case $is_cross_compiler in
1981 no) skipdirs="${skipdirs} ${cross_only}" ;;
1982 yes) skipdirs="${skipdirs} ${native_only}" ;;
1983 esac
1985 # If both --with-headers and --with-libs are specified, default to
1986 # --without-newlib.
1987 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1988 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1989 if test x"${with_newlib}" = x ; then
1990 with_newlib=no
1994 # Recognize --with-newlib/--without-newlib.
1995 case ${with_newlib} in
1996 no) skipdirs="${skipdirs} target-newlib" ;;
1997 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1998 esac
2000 # Configure extra directories which are host specific
2002 case "${host}" in
2003 *-cygwin*)
2004 configdirs="$configdirs libtermcap" ;;
2005 esac
2007 # A target can indicate whether a language isn't supported for some reason.
2008 # Only spaces may be used in this macro; not newlines or tabs.
2009 unsupported_languages=
2011 # Remove more programs from consideration, based on the host or
2012 # target this usually means that a port of the program doesn't
2013 # exist yet.
2015 case "${host}" in
2016 hppa*64*-*-*)
2017 noconfigdirs="$noconfigdirs byacc"
2019 i[3456789]86-*-vsta)
2020 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2022 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2023 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2025 x86_64-*-mingw*)
2026 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2028 i[3456789]86-*-mingw32*)
2029 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2030 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 i[3456789]86-*-beos*)
2033 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2035 *-*-cygwin*)
2036 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2038 *-*-netbsd*)
2039 noconfigdirs="$noconfigdirs rcs"
2041 ppc*-*-pe)
2042 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2044 powerpc-*-beos*)
2045 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2047 esac
2050 # Check whether --enable-libada or --disable-libada was given.
2051 if test "${enable_libada+set}" = set; then
2052 enableval="$enable_libada"
2053 ENABLE_LIBADA=$enableval
2054 else
2055 ENABLE_LIBADA=yes
2057 if test "${ENABLE_LIBADA}" != "yes" ; then
2058 noconfigdirs="$noconfigdirs gnattools"
2061 # Check whether --enable-libssp or --disable-libssp was given.
2062 if test "${enable_libssp+set}" = set; then
2063 enableval="$enable_libssp"
2064 ENABLE_LIBSSP=$enableval
2065 else
2066 ENABLE_LIBSSP=yes
2069 # Save it here so that, even in case of --enable-libgcj, if the Java
2070 # front-end isn't enabled, we still get libgcj disabled.
2071 libgcj_saved=$libgcj
2072 case $enable_libgcj in
2073 yes)
2074 # If we reset it here, it won't get added to noconfigdirs in the
2075 # target-specific build rules, so it will be forcibly enabled
2076 # (unless the Java language itself isn't enabled).
2077 libgcj=
2080 # Make sure we get it printed in the list of not supported target libs.
2081 noconfigdirs="$noconfigdirs ${libgcj}"
2083 esac
2086 # Disable libmudflap on some systems.
2087 if test x$enable_libmudflap = x ; then
2088 case "${target}" in
2089 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2090 # Enable libmudflap by default in GNU and friends.
2092 *-*-freebsd*)
2093 # Enable libmudflap by default in FreeBSD.
2096 # Disable it by default everywhere else.
2097 noconfigdirs="$noconfigdirs target-libmudflap"
2099 esac
2102 # Disable libgomp on non POSIX hosted systems.
2103 if test x$enable_libgomp = x ; then
2104 # Enable libgomp by default on hosted POSIX systems.
2105 case "${target}" in
2106 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2108 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2110 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2112 *-*-darwin* | *-*-aix*)
2115 noconfigdirs="$noconfigdirs target-libgomp"
2117 esac
2121 case "${target}" in
2122 *-*-chorusos)
2123 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2125 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2126 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2127 noconfigdirs="$noconfigdirs sim target-rda"
2129 *-*-darwin*)
2130 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2131 noconfigdirs="$noconfigdirs sim target-rda"
2132 noconfigdirs="$noconfigdirs ${libgcj}"
2134 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2135 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2137 *-*-freebsd*)
2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2139 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2140 && test -f /usr/local/include/gmp.h; then
2141 with_gmp=/usr/local
2144 # Skip some stuff that's unsupported on some FreeBSD configurations.
2145 case "${target}" in
2146 i*86-*-*) ;;
2147 alpha*-*-*) ;;
2149 noconfigdirs="$noconfigdirs ${libgcj}"
2151 esac
2153 *-*-kaos*)
2154 # Remove unsupported stuff on all kaOS configurations.
2155 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2156 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2157 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2158 noconfigdirs="$noconfigdirs target-libgloss"
2160 *-*-netbsd*)
2161 # Skip some stuff on all NetBSD configurations.
2162 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2164 # Skip some stuff that's unsupported on some NetBSD configurations.
2165 case "${target}" in
2166 i*86-*-netbsdelf*) ;;
2167 arm*-*-netbsdelf*) ;;
2169 noconfigdirs="$noconfigdirs ${libgcj}"
2171 esac
2173 *-*-netware*)
2174 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2176 *-*-rtems*)
2177 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2179 # The tpf target doesn't support gdb yet.
2180 *-*-tpf*)
2181 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2183 *-*-uclinux*)
2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2186 *-*-vxworks*)
2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2189 alpha*-dec-osf*)
2190 # ld works, but does not support shared libraries.
2191 # newlib is not 64 bit ready. I'm not sure about fileutils.
2192 # gas doesn't generate exception information.
2193 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2195 alpha*-*-*vms*)
2196 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2198 alpha*-*-linux*)
2199 # newlib is not 64 bit ready
2200 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2202 alpha*-*-*)
2203 # newlib is not 64 bit ready
2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2206 am33_2.0-*-linux*)
2207 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2209 sh-*-linux*)
2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2212 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2213 noconfigdirs="$noconfigdirs ${libgcj}"
2214 noconfigdirs="$noconfigdirs target-examples"
2215 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2216 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2217 noconfigdirs="$noconfigdirs expect dejagnu"
2218 # the C++ libraries don't build on top of CE's C libraries
2219 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2220 noconfigdirs="$noconfigdirs target-newlib"
2221 case "${host}" in
2222 *-*-cygwin*) ;; # keep gdb and readline
2223 *) noconfigdirs="$noconfigdirs gdb readline"
2225 esac
2227 arc-*-*)
2228 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2230 arm-semi-aof )
2232 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2233 noconfigdirs="$noconfigdirs ${libgcj}"
2235 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2236 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2238 arm*-*-linux-gnueabi)
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2242 arm*-*-symbianelf*)
2243 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2245 arm-*-pe*)
2246 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2248 thumb-*-coff)
2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2251 thumb-*-elf)
2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2254 thumb-*-pe)
2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2257 arm-*-riscix*)
2258 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2260 avr-*-*)
2261 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2263 bfin-*-*)
2264 noconfigdirs="$noconfigdirs gdb"
2265 if test x${is_cross_compiler} != xno ; then
2266 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2269 c4x-*-* | tic4x-*-*)
2270 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2272 c54x*-*-* | tic54x-*-*)
2273 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2275 cris-*-* | crisv32-*-*)
2276 unsupported_languages="$unsupported_languages java"
2277 case "${target}" in
2278 *-*-aout)
2279 unsupported_languages="$unsupported_languages fortran"
2280 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2281 *-*-elf)
2282 unsupported_languages="$unsupported_languages fortran"
2283 noconfigdirs="$noconfigdirs target-boehm-gc";;
2284 *-*-linux*)
2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2287 unsupported_languages="$unsupported_languages fortran"
2288 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2289 esac
2291 crx-*-*)
2292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2294 d10v-*-*)
2295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2297 d30v-*-*)
2298 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2300 fr30-*-elf*)
2301 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2303 frv-*-*)
2304 noconfigdirs="$noconfigdirs ${libgcj}"
2306 h8300*-*-*)
2307 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2309 h8500-*-*)
2310 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2312 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2314 hppa*64*-*-linux* | parisc*64*-*-linux*)
2315 # In this case, it's because the hppa64-linux target is for
2316 # the kernel only at this point and has no libc, and thus no
2317 # headers, crt*.o, etc., all of which are needed by these.
2318 noconfigdirs="$noconfigdirs target-zlib"
2320 parisc*-*-linux* | hppa*-*-linux*)
2322 hppa*-*-*elf* | \
2323 hppa*-*-lites* | \
2324 hppa*-*-openbsd* | \
2325 hppa*64*-*-*)
2326 noconfigdirs="$noconfigdirs ${libgcj}"
2328 hppa*-hp-hpux11*)
2329 noconfigdirs="$noconfigdirs ld shellutils"
2331 hppa*-*-*)
2332 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2333 # build on HP-UX 10.20.
2334 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2336 i960-*-*)
2337 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2339 ia64*-*-elf*)
2340 # No gdb support yet.
2341 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2343 ia64*-**-hpux*)
2344 # No gdb or ld support yet.
2345 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2347 i370-*-opened*)
2349 i[3456789]86-*-coff | i[3456789]86-*-elf)
2350 noconfigdirs="$noconfigdirs ${libgcj}"
2352 i[3456789]86-*-linux*)
2353 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2354 # not build java stuff by default.
2355 case "${target}" in
2356 *-*-*libc1*)
2357 noconfigdirs="$noconfigdirs ${libgcj}";;
2358 esac
2360 # This section makes it possible to build newlib natively on linux.
2361 # If we are using a cross compiler then don't configure newlib.
2362 if test x${is_cross_compiler} != xno ; then
2363 noconfigdirs="$noconfigdirs target-newlib"
2365 noconfigdirs="$noconfigdirs target-libgloss"
2366 # If we are not using a cross compiler, do configure newlib.
2367 # Note however, that newlib will only be configured in this situation
2368 # if the --with-newlib option has been given, because otherwise
2369 # 'target-newlib' will appear in skipdirs.
2371 i[3456789]86-*-mingw32*)
2372 target_configdirs="$target_configdirs target-winsup"
2373 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2375 x86_64-*-mingw*)
2376 target_configdirs="$target_configdirs target-winsup"
2377 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2379 *-*-cygwin*)
2380 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2381 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2382 # always build newlib if winsup directory is present.
2383 if test -d "$srcdir/winsup/cygwin"; then
2384 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2385 elif test -d "$srcdir/newlib"; then
2386 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2389 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2390 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2392 i[3456789]86-*-pe)
2393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2395 i[3456789]86-*-sco3.2v5*)
2396 # The linker does not yet know about weak symbols in COFF,
2397 # and is not configured to handle mixed ELF and COFF.
2398 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2400 i[3456789]86-*-sco*)
2401 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2403 i[3456789]86-*-solaris2*)
2404 noconfigdirs="$noconfigdirs target-libgloss"
2406 i[3456789]86-*-sysv4*)
2407 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2409 i[3456789]86-*-beos*)
2410 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2412 i[3456789]86-*-rdos*)
2413 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2415 m32r-*-*)
2416 noconfigdirs="$noconfigdirs ${libgcj}"
2418 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2419 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2421 m68k-*-elf*)
2422 noconfigdirs="$noconfigdirs ${libgcj}"
2424 m68k-*-coff*)
2425 noconfigdirs="$noconfigdirs ${libgcj}"
2427 mcore-*-pe*)
2428 # The EPOC C++ environment does not support exceptions or rtti,
2429 # and so building libstdc++-v3 tends not to always work.
2430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2432 mmix-*-*)
2433 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2434 unsupported_languages="$unsupported_languages fortran java"
2436 mn10200-*-*)
2437 noconfigdirs="$noconfigdirs ${libgcj}"
2439 mn10300-*-*)
2440 noconfigdirs="$noconfigdirs ${libgcj}"
2442 mt-*-*)
2443 noconfigdirs="$noconfigdirs sim"
2445 powerpc-*-aix*)
2446 # copied from rs6000-*-* entry
2447 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2449 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2450 target_configdirs="$target_configdirs target-winsup"
2451 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2452 # always build newlib.
2453 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2455 # This is temporary until we can link against shared libraries
2456 powerpcle-*-solaris*)
2457 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2459 powerpc-*-beos*)
2460 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2462 powerpc-*-eabi)
2463 noconfigdirs="$noconfigdirs ${libgcj}"
2465 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2467 rs6000-*-lynxos*)
2468 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2470 rs6000-*-aix*)
2471 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2473 rs6000-*-*)
2474 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2476 m68k-apollo-*)
2477 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2479 mips*-*-irix5*)
2480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2482 mips*-*-irix6*)
2483 # Linking libjava exceeds command-line length limits on at least
2484 # IRIX 6.2, but not on IRIX 6.5.
2485 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2486 # <oldham@codesourcery.com>
2487 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2489 mips*-*-bsd*)
2490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2492 mips64*-*-linux*)
2493 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2495 mips*-*-linux*)
2496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2498 mips*-*-*)
2499 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2501 romp-*-*)
2502 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2504 sh-*-* | sh64-*-*)
2505 case "${host}" in
2506 i[3456789]86-*-vsta) ;; # don't add gprof back in
2507 i[3456789]86-*-go32*) ;; # don't add gprof back in
2508 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2509 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2510 esac
2511 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2513 sparc-*-elf*)
2514 noconfigdirs="$noconfigdirs ${libgcj}"
2516 sparc64-*-elf*)
2517 noconfigdirs="$noconfigdirs ${libgcj}"
2519 sparclite-*-*)
2520 noconfigdirs="$noconfigdirs ${libgcj}"
2522 sparc-*-sunos4*)
2523 noconfigdirs="$noconfigdirs ${libgcj}"
2524 if test x${is_cross_compiler} != xno ; then
2525 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2526 else
2527 use_gnu_ld=no
2530 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2531 noconfigdirs="$noconfigdirs ${libgcj}"
2533 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2535 spu-*-*)
2536 skipdirs="target-libssp"
2538 v810-*-*)
2539 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2541 v850-*-*)
2542 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2544 v850e-*-*)
2545 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2547 v850ea-*-*)
2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2550 vax-*-vms)
2551 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2553 vax-*-*)
2554 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2556 xtensa-*-*)
2557 noconfigdirs="$noconfigdirs ${libgcj}"
2559 ip2k-*-*)
2560 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2562 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2565 *-*-lynxos*)
2566 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2568 *-*-*)
2569 noconfigdirs="$noconfigdirs ${libgcj}"
2571 esac
2573 # If we aren't building newlib, then don't build libgloss, since libgloss
2574 # depends upon some newlib header files.
2575 case "${noconfigdirs}" in
2576 *target-libgloss*) ;;
2577 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2578 esac
2580 # Work in distributions that contain no compiler tools, like Autoconf.
2581 tentative_cc=""
2582 host_makefile_frag=/dev/null
2583 if test -d ${srcdir}/config ; then
2584 case "${host}" in
2585 m68k-hp-hpux*)
2586 # Avoid "too much defining" errors from HPUX compiler.
2587 tentative_cc="cc -Wp,-H256000"
2588 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2589 # If it's HP/UX ar, this should be harmless.
2590 RANLIB="ar ts"
2592 m68k-apollo-sysv*)
2593 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2595 m68k-apollo-bsd*)
2596 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2597 # chokes on bfd, the compiler won't let you assign integers to enums, and
2598 # other problems. Defining CC to gcc is a questionable way to say "don't use
2599 # the apollo compiler" (the preferred version of GCC could be called cc,
2600 # or whatever), but I'm not sure leaving CC as cc is any better...
2601 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2602 # Used to have BISON=yacc.
2603 tentative_cc=gcc
2605 m88k-dg-dgux*)
2606 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2608 m88k-harris-cxux*)
2609 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2610 tentative_cc="cc -Xa"
2611 host_makefile_frag="config/mh-cxux"
2613 m88k-motorola-sysv*)
2615 mips*-dec-ultrix*)
2616 tentative_cc="cc -Wf,-XNg1000"
2617 host_makefile_frag="config/mh-decstation"
2619 mips*-nec-sysv4*)
2620 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2621 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2622 host_makefile_frag="config/mh-necv4"
2624 mips*-sgi-irix4*)
2625 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2626 # environment. Also bump switch table size so that cp-parse will
2627 # compile. Bump string length limit so linker builds.
2628 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2630 mips*-*-sysv4*)
2631 host_makefile_frag="config/mh-sysv4"
2633 mips*-*-sysv*)
2634 # This is for a MIPS running RISC/os 4.52C.
2636 # This is needed for GDB, but needs to be in the top-level make because
2637 # if a library is compiled with the bsd headers and gets linked with the
2638 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2639 # a different size).
2640 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2641 # known except to select the sysv environment. Could we use /proc instead?
2642 # These "sysv environments" and "bsd environments" often end up being a pain.
2644 # This is not part of CFLAGS because perhaps not all C compilers have this
2645 # option.
2646 tentative_cc="cc -systype sysv"
2648 i370-ibm-opened*)
2649 tentative_cc="c89"
2651 i[3456789]86-*-sysv5*)
2652 host_makefile_frag="config/mh-sysv5"
2654 i[3456789]86-*-dgux*)
2655 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2656 host_makefile_frag="config/mh-dgux386"
2658 i[3456789]86-ncr-sysv4.3*)
2659 # The MetaWare compiler will generate a copyright message unless you
2660 # turn it off by adding the -Hnocopyr flag.
2661 tentative_cc="cc -Hnocopyr"
2663 i[3456789]86-ncr-sysv4*)
2664 # for an NCR 3000 (i486/SVR4) system.
2665 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2666 # This compiler not only emits obnoxious copyright messages every time
2667 # you run it, but it chokes and dies on a whole bunch of GNU source
2668 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2669 tentative_cc="/usr/ccs/ATT/cc"
2670 host_makefile_frag="config/mh-ncr3000"
2672 i[3456789]86-*-sco3.2v5*)
2674 i[3456789]86-*-sco*)
2675 # The native C compiler botches some simple uses of const. Unfortunately,
2676 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2677 tentative_cc="cc -Dconst="
2678 host_makefile_frag="config/mh-sco"
2680 i[3456789]86-*-udk*)
2681 host_makefile_frag="config/mh-sysv5"
2683 i[3456789]86-*-solaris2*)
2684 host_makefile_frag="config/mh-sysv4"
2686 i[3456789]86-*-msdosdjgpp*)
2687 host_makefile_frag="config/mh-djgpp"
2689 *-cygwin*)
2690 host_makefile_frag="config/mh-cygwin"
2692 *-mingw32*)
2694 *-mingw64*)
2696 *-interix*)
2697 host_makefile_frag="config/mh-interix"
2699 vax-*-ultrix2*)
2700 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2701 tentative_cc=gcc
2703 *-*-solaris2*)
2704 host_makefile_frag="config/mh-solaris"
2706 m68k-sun-sunos*)
2707 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2708 # without overflowing the jump tables (-J says to use a 32 bit table)
2709 tentative_cc="cc -J"
2711 *-hp-hpux*)
2712 tentative_cc="cc -Wp,-H256000"
2714 *-*-hiux*)
2715 tentative_cc="cc -Wp,-H256000"
2717 rs6000-*-lynxos*)
2718 # /bin/cc is less than useful for our purposes. Always use GCC
2719 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2720 host_makefile_frag="config/mh-lynxrs6k"
2722 powerpc-*-darwin*)
2723 host_makefile_frag="config/mh-ppc-darwin"
2725 powerpc-*-aix*)
2726 host_makefile_frag="config/mh-ppc-aix"
2728 rs6000-*-aix*)
2729 host_makefile_frag="config/mh-ppc-aix"
2731 *-*-lynxos*)
2732 # /bin/cc is less than useful for our purposes. Always use GCC
2733 tentative_cc="/bin/gcc"
2735 *-*-sysv4*)
2736 host_makefile_frag="config/mh-sysv4"
2738 # This is placed last to prevent interfering with the cases above.
2739 i[3456789]86-*-*)
2740 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2741 host_makefile_frag="config/mh-x86omitfp"
2743 esac
2746 # If we aren't going to be using gcc, see if we can extract a definition
2747 # of CC from the fragment.
2748 # Actually, use the 'pre-extracted' version above.
2749 if test -z "${CC}" && test "${build}" = "${host}" ; then
2750 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2751 found=
2752 for dir in $PATH; do
2753 test -z "$dir" && dir=.
2754 if test -f $dir/gcc; then
2755 found=yes
2756 break
2758 done
2759 IFS="$save_ifs"
2760 if test -z "${found}" && test -n "${tentative_cc}" ; then
2761 CC=$tentative_cc
2765 if test "${build}" != "${host}" ; then
2766 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2767 else
2768 CC_FOR_BUILD="\$(CC)"
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_CC+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2798 done
2799 done
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805 echo "$as_me:$LINENO: result: $CC" >&5
2806 echo "${ECHO_T}$CC" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2813 if test -z "$ac_cv_prog_CC"; then
2814 ac_ct_CC=$CC
2815 # Extract the first word of "gcc", so it can be a program name with args.
2816 set dummy gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_CC="gcc"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2836 done
2837 done
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844 echo "${ECHO_T}$ac_ct_CC" >&6
2845 else
2846 echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2850 CC=$ac_ct_CC
2851 else
2852 CC="$ac_cv_prog_CC"
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 echo "$as_me:$LINENO: result: $CC" >&5
2886 echo "${ECHO_T}$CC" >&6
2887 else
2888 echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "cc", so it can be a program name with args.
2896 set dummy cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="cc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2924 echo "${ECHO_T}$ac_ct_CC" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 CC=$ac_ct_CC
2931 else
2932 CC="$ac_cv_prog_CC"
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 ac_prog_rejected=no
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2957 continue
2959 ac_cv_prog_CC="cc"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2966 if test $ac_prog_rejected = yes; then
2967 # We found a bogon in the path, so make sure we never use it.
2968 set dummy $ac_cv_prog_CC
2969 shift
2970 if test $# != 0; then
2971 # We chose a different compiler from the bogus one.
2972 # However, it has the same basename, so the bogon will be chosen
2973 # first if we set CC to just the basename; use the full file name.
2974 shift
2975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6
2984 else
2985 echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 for ac_prog in cl
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_CC+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 echo "$as_me:$LINENO: result: $CC" >&5
3023 echo "${ECHO_T}$CC" >&6
3024 else
3025 echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3029 test -n "$CC" && break
3030 done
3032 if test -z "$CC"; then
3033 ac_ct_CC=$CC
3034 for ac_prog in cl
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CC="$ac_prog"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3057 done
3058 done
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6
3066 else
3067 echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6
3071 test -n "$ac_ct_CC" && break
3072 done
3074 CC=$ac_ct_CC
3080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details." >&5
3082 echo "$as_me: error: no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }
3086 # Provide some information about the compiler.
3087 echo "$as_me:$LINENO:" \
3088 "checking for C compiler version" >&5
3089 ac_compiler=`set X $ac_compile; echo $2`
3090 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3091 (eval $ac_compiler --version </dev/null >&5) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
3095 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3096 (eval $ac_compiler -v </dev/null >&5) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3101 (eval $ac_compiler -V </dev/null >&5) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3125 # of exeext.
3126 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3127 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3130 (eval $ac_link_default) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; then
3134 # Find the output, starting from the most likely. This scheme is
3135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3136 # resort.
3138 # Be careful to initialize this variable, since it used to be cached.
3139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3140 ac_cv_exeext=
3141 # b.out is created by i960 compilers.
3142 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3144 test -f "$ac_file" || continue
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3148 conftest.$ac_ext )
3149 # This is the source file.
3151 [ab].out )
3152 # We found the default executable, but exeext='' is most
3153 # certainly right.
3154 break;;
3155 *.* )
3156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 # FIXME: I believe we export ac_cv_exeext for Libtool,
3158 # but it would be cool to find out if it's true. Does anybody
3159 # maintain Libtool? --akim.
3160 export ac_cv_exeext
3161 break;;
3163 break;;
3164 esac
3165 done
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174 { (exit 77); exit 77; }; }
3177 ac_exeext=$ac_cv_exeext
3178 echo "$as_me:$LINENO: result: $ac_file" >&5
3179 echo "${ECHO_T}$ac_file" >&6
3181 # Check the compiler produces executables we can run. If not, either
3182 # the compiler is broken, or we cross compile.
3183 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3184 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3186 # If not cross compiling, check that we can run a simple program.
3187 if test "$cross_compiling" != yes; then
3188 if { ac_try='./$ac_file'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 cross_compiling=no
3195 else
3196 if test "$cross_compiling" = maybe; then
3197 cross_compiling=yes
3198 else
3199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3200 If you meant to cross compile, use \`--host'.
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: cannot run C compiled programs.
3203 If you meant to cross compile, use \`--host'.
3204 See \`config.log' for more details." >&2;}
3205 { (exit 1); exit 1; }; }
3209 echo "$as_me:$LINENO: result: yes" >&5
3210 echo "${ECHO_T}yes" >&6
3212 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3213 ac_clean_files=$ac_clean_files_save
3214 # Check the compiler produces executables we can run. If not, either
3215 # the compiler is broken, or we cross compile.
3216 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3217 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3218 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3219 echo "${ECHO_T}$cross_compiling" >&6
3221 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3222 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3224 (eval $ac_link) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; then
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3231 # `rm'.
3232 for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 export ac_cv_exeext
3238 break;;
3239 * ) break;;
3240 esac
3241 done
3242 else
3243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3250 rm -f conftest$ac_cv_exeext
3251 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3252 echo "${ECHO_T}$ac_cv_exeext" >&6
3254 rm -f conftest.$ac_ext
3255 EXEEXT=$ac_cv_exeext
3256 ac_exeext=$EXEEXT
3257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3259 if test "${ac_cv_objext+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.o conftest.obj
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
3283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details." >&5
3296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }
3301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3304 echo "${ECHO_T}$ac_cv_objext" >&6
3305 OBJEXT=$ac_cv_objext
3306 ac_objext=$OBJEXT
3307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -z "$ac_c_werror_flag"
3340 || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_compiler_gnu=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_compiler_gnu=no
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 CFLAGS="-g"
3369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3382 main ()
3386 return 0;
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_c_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_prog_cc_g=yes
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 ac_cv_prog_cc_g=no
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 ac_cv_prog_cc_stdc=no
3443 ac_save_CC=$CC
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3458 char **p;
3459 int i;
3461 return p[i];
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std1 is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std1. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486 int argc;
3487 char **argv;
3489 main ()
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 return 0;
3495 _ACEOF
3496 # Don't try gcc -ansi; that turns off useful extensions and
3497 # breaks some systems' header files.
3498 # AIX -qlanglvl=ansi
3499 # Ultrix and OSF/1 -std1
3500 # HP-UX 10.20 and later -Ae
3501 # HP-UX older versions -Aa -D_HPUX_SOURCE
3502 # SVR4 -Xc -D__EXTENSIONS__
3503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3505 CC="$ac_save_CC $ac_arg"
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
3515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_cc_stdc=$ac_arg
3529 break
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 rm -f conftest.err conftest.$ac_objext
3536 done
3537 rm -f conftest.$ac_ext conftest.$ac_objext
3538 CC=$ac_save_CC
3542 case "x$ac_cv_prog_cc_stdc" in
3543 x|xno)
3544 echo "$as_me:$LINENO: result: none needed" >&5
3545 echo "${ECHO_T}none needed" >&6 ;;
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3549 CC="$CC $ac_cv_prog_cc_stdc" ;;
3550 esac
3552 # Some people use a C++ compiler to compile C. Since we use `exit',
3553 # in C++ we need to declare it. In case someone uses the same compiler
3554 # for both compiling C and C++ we need to have the C++ compiler decide
3555 # the declaration of exit, since it's the most demanding environment.
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #ifndef __cplusplus
3558 choke me
3559 #endif
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 for ac_declaration in \
3584 '' \
3585 'extern "C" void std::exit (int) throw (); using std::exit;' \
3586 'extern "C" void std::exit (int); using std::exit;' \
3587 'extern "C" void exit (int) throw ();' \
3588 'extern "C" void exit (int);' \
3589 'void exit (int);'
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 $ac_declaration
3598 #include <stdlib.h>
3600 main ()
3602 exit (42);
3604 return 0;
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 continue
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 $ac_declaration
3645 main ()
3647 exit (42);
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag"
3662 || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 break
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681 done
3682 rm -f conftest*
3683 if test -n "$ac_declaration"; then
3684 echo '#ifdef __cplusplus' >>confdefs.h
3685 echo $ac_declaration >>confdefs.h
3686 echo '#endif' >>confdefs.h
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 ac_ext=cc
3702 ac_cpp='$CXXCPP $CPPFLAGS'
3703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_prog_CXX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 if test -n "$CXX"; then
3717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3735 CXX=$ac_cv_prog_CXX
3736 if test -n "$CXX"; then
3737 echo "$as_me:$LINENO: result: $CXX" >&5
3738 echo "${ECHO_T}$CXX" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3744 test -n "$CXX" && break
3745 done
3747 if test -z "$CXX"; then
3748 ac_ct_CXX=$CXX
3749 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 echo "$as_me:$LINENO: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 if test -n "$ac_ct_CXX"; then
3759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CXX="$ac_prog"
3769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3780 echo "${ECHO_T}$ac_ct_CXX" >&6
3781 else
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 test -n "$ac_ct_CXX" && break
3787 done
3788 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3790 CXX=$ac_ct_CXX
3794 # Provide some information about the compiler.
3795 echo "$as_me:$LINENO:" \
3796 "checking for C++ compiler version" >&5
3797 ac_compiler=`set X $ac_compile; echo $2`
3798 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3799 (eval $ac_compiler --version </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
3803 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3804 (eval $ac_compiler -v </dev/null >&5) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3809 (eval $ac_compiler -V </dev/null >&5) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }
3814 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3815 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3816 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3827 main ()
3829 #ifndef __GNUC__
3830 choke me
3831 #endif
3834 return 0;
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839 (eval $ac_compile) 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_cxx_werror_flag"
3847 || test ! -s conftest.err'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; } &&
3853 { ac_try='test -s conftest.$ac_objext'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3859 ac_compiler_gnu=yes
3860 else
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 ac_compiler_gnu=no
3866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3870 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3871 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3872 GXX=`test $ac_compiler_gnu = yes && echo yes`
3873 ac_test_CXXFLAGS=${CXXFLAGS+set}
3874 ac_save_CXXFLAGS=$CXXFLAGS
3875 CXXFLAGS="-g"
3876 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3877 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3878 if test "${ac_cv_prog_cxx_g+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3889 main ()
3893 return 0;
3895 _ACEOF
3896 rm -f conftest.$ac_objext
3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>conftest.er1
3899 ac_status=$?
3900 grep -v '^ *+' conftest.er1 >conftest.err
3901 rm -f conftest.er1
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -z "$ac_cxx_werror_flag"
3906 || test ! -s conftest.err'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_prog_cxx_g=yes
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 ac_cv_prog_cxx_g=no
3925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3927 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3928 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3929 if test "$ac_test_CXXFLAGS" = set; then
3930 CXXFLAGS=$ac_save_CXXFLAGS
3931 elif test $ac_cv_prog_cxx_g = yes; then
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-g -O2"
3934 else
3935 CXXFLAGS="-g"
3937 else
3938 if test "$GXX" = yes; then
3939 CXXFLAGS="-O2"
3940 else
3941 CXXFLAGS=
3944 for ac_declaration in \
3945 '' \
3946 'extern "C" void std::exit (int) throw (); using std::exit;' \
3947 'extern "C" void std::exit (int); using std::exit;' \
3948 'extern "C" void exit (int) throw ();' \
3949 'extern "C" void exit (int);' \
3950 'void exit (int);'
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 $ac_declaration
3959 #include <stdlib.h>
3961 main ()
3963 exit (42);
3965 return 0;
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_cxx_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 continue
3997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 $ac_declaration
4006 main ()
4008 exit (42);
4010 return 0;
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015 (eval $ac_compile) 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -z "$ac_cxx_werror_flag"
4023 || test ! -s conftest.err'
4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 (eval $ac_try) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 break
4036 else
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042 done
4043 rm -f conftest*
4044 if test -n "$ac_declaration"; then
4045 echo '#ifdef __cplusplus' >>confdefs.h
4046 echo $ac_declaration >>confdefs.h
4047 echo '#endif' >>confdefs.h
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 # We must set the default linker to the linker used by gcc for the correct
4058 # operation of libtool. If LD is not defined and we are using gcc, try to
4059 # set the LD default to the ld used by gcc.
4060 if test -z "$LD"; then
4061 if test "$GCC" = yes; then
4062 case $build in
4063 *-*-mingw*)
4064 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4066 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4067 esac
4068 case $gcc_prog_ld in
4069 # Accept absolute paths.
4070 [\\/]* | [A-Za-z]:[\\/]*)
4071 LD="$gcc_prog_ld" ;;
4072 esac
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087 if test -n "$GNATBIND"; then
4088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4106 GNATBIND=$ac_cv_prog_GNATBIND
4107 if test -n "$GNATBIND"; then
4108 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4109 echo "${ECHO_T}$GNATBIND" >&6
4110 else
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -z "$ac_cv_prog_GNATBIND"; then
4117 ac_ct_GNATBIND=$GNATBIND
4118 # Extract the first word of "gnatbind", so it can be a program name with args.
4119 set dummy gnatbind; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if test -n "$ac_ct_GNATBIND"; then
4126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4142 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4145 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4146 if test -n "$ac_ct_GNATBIND"; then
4147 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4148 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4154 GNATBIND=$ac_ct_GNATBIND
4155 else
4156 GNATBIND="$ac_cv_prog_GNATBIND"
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 if test -n "$GNATMAKE"; then
4168 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4186 GNATMAKE=$ac_cv_prog_GNATMAKE
4187 if test -n "$GNATMAKE"; then
4188 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4189 echo "${ECHO_T}$GNATMAKE" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4196 if test -z "$ac_cv_prog_GNATMAKE"; then
4197 ac_ct_GNATMAKE=$GNATMAKE
4198 # Extract the first word of "gnatmake", so it can be a program name with args.
4199 set dummy gnatmake; ac_word=$2
4200 echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$ac_ct_GNATMAKE"; then
4206 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4222 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4225 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4226 if test -n "$ac_ct_GNATMAKE"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4228 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4229 else
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4234 GNATMAKE=$ac_ct_GNATMAKE
4235 else
4236 GNATMAKE="$ac_cv_prog_GNATMAKE"
4239 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4240 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4241 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.adb <<EOF
4245 procedure conftest is begin null; end conftest;
4247 acx_cv_cc_gcc_supports_ada=no
4248 # There is a bug in old released versions of GCC which causes the
4249 # driver to exit successfully when the appropriate language module
4250 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4251 # Therefore we must check for the error message as well as an
4252 # unsuccessful exit.
4253 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4254 # given a .adb file, but produce no object file. So we must check
4255 # if an object file was really produced to guard against this.
4256 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4257 if test x"$errors" = x && test -f conftest.$ac_objext; then
4258 acx_cv_cc_gcc_supports_ada=yes
4260 rm -f conftest.*
4262 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4263 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4265 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4266 have_gnat=yes
4267 else
4268 have_gnat=no
4271 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4272 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4273 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 echo abfoo >t1
4277 echo cdfoo >t2
4278 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4279 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4280 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4282 else
4283 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4286 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4287 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4289 else
4290 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4293 rm t1 t2
4296 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4297 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4298 do_compare="$gcc_cv_prog_cmp_skip"
4302 # Check for GMP and MPFR
4303 gmplibs="-lmpfr -lgmp"
4304 gmpinc=
4305 have_gmp=no
4307 # Specify a location for mpfr
4308 # check for this first so it ends up on the link line before gmp.
4310 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4311 if test "${with_mpfr_dir+set}" = set; then
4312 withval="$with_mpfr_dir"
4313 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4314 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4315 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4316 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4317 { (exit 1); exit 1; }; }
4321 # Check whether --with-mpfr or --without-mpfr was given.
4322 if test "${with_mpfr+set}" = set; then
4323 withval="$with_mpfr"
4327 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4328 if test "${with_mpfr_include+set}" = set; then
4329 withval="$with_mpfr_include"
4333 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4334 if test "${with_mpfr_lib+set}" = set; then
4335 withval="$with_mpfr_lib"
4339 if test "x$with_mpfr" != x; then
4340 gmplibs="-L$with_mpfr/lib $gmplibs"
4341 gmpinc="-I$with_mpfr/include"
4343 if test "x$with_mpfr_include" != x; then
4344 gmpinc="-I$with_mpfr_include"
4346 if test "x$with_mpfr_lib" != x; then
4347 gmplibs="-L$with_mpfr_lib $gmplibs"
4349 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4350 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4351 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4352 # Do not test the mpfr version. Assume that it is sufficient, since
4353 # it is in the source tree, and the library has not been built yet
4354 # but it would be included on the link line in the version check below
4355 # hence making the test fail.
4356 have_gmp=yes
4359 # Specify a location for gmp
4361 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4362 if test "${with_gmp_dir+set}" = set; then
4363 withval="$with_gmp_dir"
4364 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4365 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4366 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4367 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4368 { (exit 1); exit 1; }; }
4372 # Check whether --with-gmp or --without-gmp was given.
4373 if test "${with_gmp+set}" = set; then
4374 withval="$with_gmp"
4378 # Check whether --with-gmp_include or --without-gmp_include was given.
4379 if test "${with_gmp_include+set}" = set; then
4380 withval="$with_gmp_include"
4384 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4385 if test "${with_gmp_lib+set}" = set; then
4386 withval="$with_gmp_lib"
4391 if test "x$with_gmp" != x; then
4392 gmplibs="-L$with_gmp/lib $gmplibs"
4393 gmpinc="-I$with_gmp/include $gmpinc"
4395 if test "x$with_gmp_include" != x; then
4396 gmpinc="-I$with_gmp_include $gmpinc"
4398 if test "x$with_gmp_lib" != x; then
4399 gmplibs="-L$with_gmp_lib $gmplibs"
4401 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4402 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4403 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4404 # Do not test the gmp version. Assume that it is sufficient, since
4405 # it is in the source tree, and the library has not been built yet
4406 # but it would be included on the link line in the version check below
4407 # hence making the test fail.
4408 have_gmp=yes
4411 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4412 have_gmp=yes
4413 saved_CFLAGS="$CFLAGS"
4414 CFLAGS="$CFLAGS $gmpinc"
4415 # Check GMP actually works
4416 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4417 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include "gmp.h"
4427 main ()
4430 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4431 choke me
4432 #endif
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 echo "$as_me:$LINENO: result: yes" >&5
4461 echo "${ECHO_T}yes" >&6
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; have_gmp=no
4469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4471 if test x"$have_gmp" = xyes; then
4472 saved_LIBS="$LIBS"
4473 LIBS="$LIBS $gmplibs"
4474 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4475 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <gmp.h>
4483 #include <mpfr.h>
4485 main ()
4488 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4489 choke me
4490 #endif
4491 mpfr_t n;
4492 mpfr_t x;
4493 int t;
4494 mpfr_init (n);
4495 mpfr_init (x);
4496 mpfr_atan2 (n, n, x, GMP_RNDN);
4497 mpfr_erfc (n, x, GMP_RNDN);
4498 mpfr_subnormalize (x, t, GMP_RNDN);
4501 return 0;
4503 _ACEOF
4504 rm -f conftest.$ac_objext conftest$ac_exeext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag"
4514 || test ! -s conftest.err'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <gmp.h>
4533 #include <mpfr.h>
4535 main ()
4538 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4539 choke me
4540 #endif
4541 mpfr_t n; mpfr_init(n);
4544 return 0;
4546 _ACEOF
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570 echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4576 echo "${ECHO_T}buggy but acceptable" >&6
4578 rm -f conftest.err conftest.$ac_objext \
4579 conftest$ac_exeext conftest.$ac_ext
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; have_gmp=no
4587 rm -f conftest.err conftest.$ac_objext \
4588 conftest$ac_exeext conftest.$ac_ext
4589 LIBS="$saved_LIBS"
4591 CFLAGS="$saved_CFLAGS"
4593 if test x$have_gmp != xyes; then
4594 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4595 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4596 Copies of these libraries' source code can be found at their respective
4597 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4598 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4599 If you obtained GMP and/or MPFR from a vendor distribution package, make
4600 sure that you have installed both the libraries and the header files.
4601 They may be located in separate packages." >&5
4602 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4603 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4604 Copies of these libraries' source code can be found at their respective
4605 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4606 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4607 If you obtained GMP and/or MPFR from a vendor distribution package, make
4608 sure that you have installed both the libraries and the header files.
4609 They may be located in separate packages." >&2;}
4610 { (exit 1); exit 1; }; }
4614 # Flags needed for both GMP and/or MPFR
4618 # By default, C is the only stage 1 language.
4619 stage1_languages=,c,
4621 # Figure out what language subdirectories are present.
4622 # Look if the user specified --enable-languages="..."; if not, use
4623 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4624 # go away some day.
4625 # NB: embedded tabs in this IF block -- do not untabify
4626 if test -d ${srcdir}/gcc; then
4627 if test x"${enable_languages+set}" != xset; then
4628 if test x"${LANGUAGES+set}" = xset; then
4629 enable_languages="${LANGUAGES}"
4630 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4631 else
4632 enable_languages=all
4634 else
4635 if test x"${enable_languages}" = x ||
4636 test x"${enable_languages}" = xyes;
4637 then
4638 echo configure.in: --enable-languages needs at least one language argument 1>&2
4639 exit 1
4642 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4644 # 'f95' is the old name for the 'fortran' language. We issue a warning
4645 # and make the substitution.
4646 case ,${enable_languages}, in
4647 *,f95,*)
4648 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4649 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4651 esac
4653 # First scan to see if an enabled language requires some other language.
4654 # We assume that a given config-lang.in will list all the language
4655 # front ends it requires, even if some are required indirectly.
4656 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4657 case ${lang_frag} in
4658 ..) ;;
4659 # The odd quoting in the next line works around
4660 # an apparent bug in bash 1.12 on linux.
4661 ${srcdir}/gcc/[*]/config-lang.in) ;;
4663 # From the config-lang.in, get $language, $lang_requires
4664 language=
4665 lang_requires=
4666 . ${lang_frag}
4667 for other in ${lang_requires} ; do
4668 case ,${enable_languages}, in
4669 *,$other,*) ;;
4670 *,all,*) ;;
4671 *,$language,*)
4672 echo " \`$other' language required by \`$language'; enabling" 1>&2
4673 enable_languages="${enable_languages},${other}"
4675 esac
4676 done
4678 esac
4679 done
4681 new_enable_languages=,c,
4682 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4683 potential_languages=,c,
4685 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4686 case ${lang_frag} in
4687 ..) ;;
4688 # The odd quoting in the next line works around
4689 # an apparent bug in bash 1.12 on linux.
4690 ${srcdir}/gcc/[*]/config-lang.in) ;;
4692 # From the config-lang.in, get $language, $target_libs,
4693 # $lang_dirs, $boot_language, and $build_by_default
4694 language=
4695 target_libs=
4696 lang_dirs=
4697 subdir_requires=
4698 boot_language=no
4699 build_by_default=yes
4700 . ${lang_frag}
4701 if test x${language} = x; then
4702 echo "${lang_frag} doesn't set \$language." 1>&2
4703 exit 1
4706 case ,${enable_languages}, in
4707 *,${language},*)
4708 # Language was explicitly selected; include it.
4709 add_this_lang=yes
4711 *,all,*)
4712 # 'all' was selected, select it if it is a default language
4713 add_this_lang=${build_by_default}
4716 add_this_lang=no
4718 esac
4720 # Disable languages that need other directories if these aren't available.
4721 for i in $subdir_requires; do
4722 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4723 case ,${enable_languages}, in
4724 *,${language},*)
4725 # Specifically requested language; tell them.
4726 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4727 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4728 { (exit 1); exit 1; }; }
4731 # Silently disable.
4732 add_this_lang=unsupported
4734 esac
4735 done
4737 # Disable Ada if no preexisting GNAT is available.
4738 case ,${enable_languages},:${language}:${have_gnat} in
4739 *,${language},*:ada:no)
4740 # Specifically requested language; tell them.
4741 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4742 echo "$as_me: error: GNAT is required to build $language" >&2;}
4743 { (exit 1); exit 1; }; }
4745 *:ada:no)
4746 # Silently disable.
4747 add_this_lang=unsupported
4749 esac
4751 # Disable a language that is unsupported by the target.
4752 case " $unsupported_languages " in
4753 *" $language "*)
4754 add_this_lang=unsupported
4756 esac
4758 case $add_this_lang in
4759 unsupported)
4760 # Remove language-dependent dirs.
4761 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4764 # Remove language-dependent dirs; still show language as supported.
4765 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4766 potential_languages="${potential_languages}${language},"
4768 yes)
4769 new_enable_languages="${new_enable_languages}${language},"
4770 potential_languages="${potential_languages}${language},"
4771 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4772 case ${boot_language} in
4773 yes)
4774 # Add to (comma-separated) list of stage 1 languages.
4775 stage1_languages="${stage1_languages}${language},"
4777 esac
4779 esac
4781 esac
4782 done
4784 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4785 if test "${enable_stage1_languages+set}" = set; then
4786 enableval="$enable_stage1_languages"
4787 case ,${enable_stage1_languages}, in
4788 ,no,|,,)
4789 # Set it to something that will have no effect in the loop below
4790 enable_stage1_languages=c ;;
4791 ,yes,)
4792 enable_stage1_languages=`echo $new_enable_languages | \
4793 sed -e "s/^,//" -e "s/,$//" ` ;;
4794 *,all,*)
4795 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4796 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4797 esac
4799 # Add "good" languages from enable_stage1_languages to stage1_languages,
4800 # while "bad" languages go in missing_languages. Leave no duplicates.
4801 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4802 case $potential_languages in
4803 *,$i,*)
4804 case $stage1_languages in
4805 *,$i,*) ;;
4806 *) stage1_languages="$stage1_languages$i," ;;
4807 esac ;;
4809 case $missing_languages in
4810 *,$i,*) ;;
4811 *) missing_languages="$missing_languages$i," ;;
4812 esac ;;
4813 esac
4814 done
4817 # Remove leading/trailing commas that were added for simplicity
4818 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4819 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4820 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4821 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4823 if test "x$missing_languages" != x; then
4824 { { echo "$as_me:$LINENO: error:
4825 The following requested languages could not be built: ${missing_languages}
4826 Supported languages are: ${potential_languages}" >&5
4827 echo "$as_me: error:
4828 The following requested languages could not be built: ${missing_languages}
4829 Supported languages are: ${potential_languages}" >&2;}
4830 { (exit 1); exit 1; }; }
4832 if test "x$new_enable_languages" != "x$enable_languages"; then
4833 echo The following languages will be built: ${new_enable_languages}
4834 enable_languages="$new_enable_languages"
4838 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4841 # Handle --disable-<component> generically.
4842 for dir in $configdirs $build_configdirs $target_configdirs ; do
4843 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4844 if eval test x\${enable_${dirname}} "=" xno ; then
4845 noconfigdirs="$noconfigdirs $dir"
4847 done
4849 # Check for Boehm's garbage collector
4850 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4851 if test "${enable_objc_gc+set}" = set; then
4852 enableval="$enable_objc_gc"
4853 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4854 *,objc,*:*:yes:*target-boehm-gc*)
4855 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4856 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4857 { (exit 1); exit 1; }; }
4859 esac
4862 # Make sure we only build Boehm's garbage collector if required.
4863 case ,${enable_languages},:${enable_objc_gc} in
4864 *,objc,*:yes)
4865 # Keep target-boehm-gc if requested for Objective-C.
4868 # Otherwise remove target-boehm-gc depending on target-libjava.
4869 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4870 noconfigdirs="$noconfigdirs target-boehm-gc"
4873 esac
4875 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4876 # $build_configdirs and $target_configdirs.
4877 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4879 notsupp=""
4880 for dir in . $skipdirs $noconfigdirs ; do
4881 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4882 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4883 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4884 if test -r $srcdir/$dirname/configure ; then
4885 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4886 true
4887 else
4888 notsupp="$notsupp $dir"
4892 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4893 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4894 if test -r $srcdir/$dirname/configure ; then
4895 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 true
4897 else
4898 notsupp="$notsupp $dir"
4902 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4903 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4904 if test -r $srcdir/$dirname/configure ; then
4905 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 true
4907 else
4908 notsupp="$notsupp $dir"
4912 done
4914 # Sometimes the tools are distributed with libiberty but with no other
4915 # libraries. In that case, we don't want to build target-libiberty.
4916 # Don't let libgcc imply libiberty either.
4917 if test -n "${target_configdirs}" ; then
4918 libgcc=
4919 others=
4920 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4921 if test "$i" = "libgcc"; then
4922 libgcc=target-libgcc
4923 elif test "$i" != "libiberty" ; then
4924 if test -r $srcdir/$i/configure ; then
4925 others=yes;
4926 break;
4929 done
4930 if test -z "${others}" ; then
4931 target_configdirs=$libgcc
4935 # Quietly strip out all directories which aren't configurable in this tree.
4936 # This relies on all configurable subdirectories being autoconfiscated, which
4937 # is now the case.
4938 build_configdirs_all="$build_configdirs"
4939 build_configdirs=
4940 for i in ${build_configdirs_all} ; do
4941 j=`echo $i | sed -e s/build-//g`
4942 if test -f ${srcdir}/$j/configure ; then
4943 build_configdirs="${build_configdirs} $i"
4945 done
4947 configdirs_all="$configdirs"
4948 configdirs=
4949 for i in ${configdirs_all} ; do
4950 if test -f ${srcdir}/$i/configure ; then
4951 configdirs="${configdirs} $i"
4953 done
4955 target_configdirs_all="$target_configdirs"
4956 target_configdirs=
4957 for i in ${target_configdirs_all} ; do
4958 j=`echo $i | sed -e s/target-//g`
4959 if test -f ${srcdir}/$j/configure ; then
4960 target_configdirs="${target_configdirs} $i"
4962 done
4964 # Produce a warning message for the subdirs we can't configure.
4965 # This isn't especially interesting in the Cygnus tree, but in the individual
4966 # FSF releases, it's important to let people know when their machine isn't
4967 # supported by the one or two programs in a package.
4969 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4970 # If $appdirs is non-empty, at least one of those directories must still
4971 # be configured, or we error out. (E.g., if the gas release supports a
4972 # specified target in some subdirs but not the gas subdir, we shouldn't
4973 # pretend that all is well.)
4974 if test -n "$appdirs" ; then
4975 for dir in $appdirs ; do
4976 if test -r $dir/Makefile.in ; then
4977 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4978 appdirs=""
4979 break
4981 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4982 appdirs=""
4983 break
4986 done
4987 if test -n "$appdirs" ; then
4988 echo "*** This configuration is not supported by this package." 1>&2
4989 exit 1
4992 # Okay, some application will build, or we don't care to check. Still
4993 # notify of subdirs not getting built.
4994 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4995 echo " ${notsupp}" 1>&2
4996 echo " (Any other directories should still work fine.)" 1>&2
4999 case "$host" in
5000 *msdosdjgpp*)
5001 enable_gdbtk=no ;;
5002 esac
5004 # To find our prefix, in gcc_cv_tool_prefix.
5006 # The user is always right.
5007 if test "${PATH_SEPARATOR+set}" != set; then
5008 echo "#! /bin/sh" >conf$$.sh
5009 echo "exit 0" >>conf$$.sh
5010 chmod +x conf$$.sh
5011 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5012 PATH_SEPARATOR=';'
5013 else
5014 PATH_SEPARATOR=:
5016 rm -f conf$$.sh
5021 if test "x$exec_prefix" = xNONE; then
5022 if test "x$prefix" = xNONE; then
5023 gcc_cv_tool_prefix=$ac_default_prefix
5024 else
5025 gcc_cv_tool_prefix=$prefix
5027 else
5028 gcc_cv_tool_prefix=$exec_prefix
5031 # If there is no compiler in the tree, use the PATH only. In any
5032 # case, if there is no compiler in the tree nobody should use
5033 # AS_FOR_TARGET and LD_FOR_TARGET.
5034 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5035 gcc_version=`cat $srcdir/gcc/BASE-VER`
5036 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5037 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5038 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5039 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5040 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5041 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5042 else
5043 gcc_cv_tool_dirs=
5046 if test x$build = x$target && test -n "$md_exec_prefix"; then
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5052 copy_dirs=
5055 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5056 if test "${with_build_sysroot+set}" = set; then
5057 withval="$with_build_sysroot"
5058 if test x"$withval" != x ; then
5059 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5061 else
5062 SYSROOT_CFLAGS_FOR_TARGET=
5066 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5067 # the named directory are copied to $(tooldir)/sys-include.
5068 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5069 if test x${is_cross_compiler} = xno ; then
5070 echo 1>&2 '***' --with-headers is only supported when cross compiling
5071 exit 1
5073 if test x"${with_headers}" != xyes ; then
5074 x=${gcc_cv_tool_prefix}
5075 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5079 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5080 # the name directories are copied to $(tooldir)/lib. Multiple directories
5081 # are permitted.
5082 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5083 if test x${is_cross_compiler} = xno ; then
5084 echo 1>&2 '***' --with-libs is only supported when cross compiling
5085 exit 1
5087 if test x"${with_libs}" != xyes ; then
5088 # Copy the libraries in reverse order, so that files in the first named
5089 # library override files in subsequent libraries.
5090 x=${gcc_cv_tool_prefix}
5091 for l in ${with_libs}; do
5092 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5093 done
5097 # Set with_gnu_as and with_gnu_ld as appropriate.
5099 # This is done by determining whether or not the appropriate directory
5100 # is available, and by checking whether or not specific configurations
5101 # have requested that this magic not happen.
5103 # The command line options always override the explicit settings in
5104 # configure.in, and the settings in configure.in override this magic.
5106 # If the default for a toolchain is to use GNU as and ld, and you don't
5107 # want to do that, then you should use the --without-gnu-as and
5108 # --without-gnu-ld options for the configure script.
5110 if test x${use_gnu_as} = x &&
5111 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5112 with_gnu_as=yes
5113 extra_host_args="$extra_host_args --with-gnu-as"
5116 if test x${use_gnu_ld} = x &&
5117 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5118 with_gnu_ld=yes
5119 extra_host_args="$extra_host_args --with-gnu-ld"
5122 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5123 # can detect this case.
5125 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5126 with_newlib=yes
5127 extra_host_args="$extra_host_args --with-newlib"
5130 # Handle ${copy_dirs}
5131 set fnord ${copy_dirs}
5132 shift
5133 while test $# != 0 ; do
5134 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5136 else
5137 echo Copying $1 to $2
5139 # Use the install script to create the directory and all required
5140 # parent directories.
5141 if test -d $2 ; then
5143 else
5144 echo >config.temp
5145 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5148 # Copy the directory, assuming we have tar.
5149 # FIXME: Should we use B in the second tar? Not all systems support it.
5150 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5152 # It is the responsibility of the user to correctly adjust all
5153 # symlinks. If somebody can figure out how to handle them correctly
5154 # here, feel free to add the code.
5156 echo $1 > $2/COPIED
5158 shift; shift
5159 done
5161 # Determine a target-dependent exec_prefix that the installed
5162 # gcc will search in. Keep this list sorted by triplet, with
5163 # the *-*-osname triplets last.
5164 md_exec_prefix=
5165 case "${target}" in
5166 alpha*-*-*vms*)
5167 md_exec_prefix=/gnu/lib/gcc-lib
5169 i3456786-pc-msdosdjgpp*)
5170 md_exec_prefix=/dev/env/DJDIR/bin
5172 i3456786-*-sco3.2v5*)
5173 if test $with_gnu_as = yes; then
5174 md_exec_prefix=/usr/gnu/bin
5175 else
5176 md_exec_prefix=/usr/ccs/bin/elf
5180 mn10300-*-* | \
5181 powerpc-*-chorusos* | \
5182 powerpc*-*-eabi* | \
5183 powerpc*-*-sysv* | \
5184 powerpc*-*-kaos* | \
5185 s390x-ibm-tpf*)
5186 md_exec_prefix=/usr/ccs/bin
5188 sparc64-*-elf*)
5190 v850*-*-*)
5191 md_exec_prefix=/usr/ccs/bin
5193 xtensa-*-elf*)
5196 *-*-beos* | \
5197 *-*-elf* | \
5198 *-*-hpux* | \
5199 *-*-netware* | \
5200 *-*-nto-qnx* | \
5201 *-*-rtems* | \
5202 *-*-solaris2* | \
5203 *-*-sysv45* | \
5204 *-*-vxworks* | \
5205 *-wrs-windiss)
5206 md_exec_prefix=/usr/ccs/bin
5208 esac
5210 extra_arflags_for_target=
5211 extra_nmflags_for_target=
5212 extra_ranlibflags_for_target=
5213 target_makefile_frag=/dev/null
5214 case "${target}" in
5215 mep*-*-*)
5216 target_makefile_frag="config/mt-mep"
5218 spu-*-*)
5219 target_makefile_frag="config/mt-spu"
5221 *-*-netware*)
5222 target_makefile_frag="config/mt-netware"
5224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5225 target_makefile_frag="config/mt-gnu"
5227 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5228 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5229 # commands to handle both 32-bit and 64-bit objects. These flags are
5230 # harmless if we're using GNU nm or ar.
5231 extra_arflags_for_target=" -X32_64"
5232 extra_nmflags_for_target=" -B -X32_64"
5234 *-*-darwin*)
5235 # ranlib from Darwin requires the -c flag to look at common symbols.
5236 extra_ranlibflags_for_target=" -c"
5238 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5239 target_makefile_frag="config/mt-wince"
5241 esac
5243 alphaieee_frag=/dev/null
5244 case $target in
5245 alpha*-*-*)
5246 # This just makes sure to use the -mieee option to build target libs.
5247 # This should probably be set individually by each library.
5248 alphaieee_frag="config/mt-alphaieee"
5250 esac
5252 # If --enable-target-optspace always use -Os instead of -O2 to build
5253 # the target libraries, similarly if it is not specified, use -Os
5254 # on selected platforms.
5255 ospace_frag=/dev/null
5256 case "${enable_target_optspace}:${target}" in
5257 yes:*)
5258 ospace_frag="config/mt-ospace"
5260 :d30v-*)
5261 ospace_frag="config/mt-d30v"
5263 :m32r-* | :d10v-* | :fr30-*)
5264 ospace_frag="config/mt-ospace"
5266 no:* | :*)
5269 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5271 esac
5273 # Default to using --with-stabs for certain targets.
5274 if test x${with_stabs} = x ; then
5275 case "${target}" in
5276 mips*-*-irix[56]*)
5278 mips*-*-* | alpha*-*-osf*)
5279 with_stabs=yes;
5280 extra_host_args="${extra_host_args} --with-stabs"
5282 esac
5285 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5286 # them automatically.
5287 case "${host}" in
5288 hppa*64*-*-hpux11*)
5289 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5291 esac
5293 # Some systems (e.g., one of the i386-aix systems the gas testers are
5294 # using) don't handle "\$" correctly, so don't use it here.
5295 tooldir='${exec_prefix}'/${target_noncanonical}
5296 build_tooldir=${tooldir}
5298 # Create a .gdbinit file which runs the one in srcdir
5299 # and tells GDB to look there for source files.
5301 if test -r ${srcdir}/.gdbinit ; then
5302 case ${srcdir} in
5303 .) ;;
5304 *) cat > ./.gdbinit <<EOF
5305 # ${NO_EDIT}
5306 dir ${srcdir}
5307 dir .
5308 source ${srcdir}/.gdbinit
5311 esac
5314 # Make sure that the compiler is able to generate an executable. If it
5315 # can't, we are probably in trouble. We don't care whether we can run the
5316 # executable--we might be using a cross compiler--we only care whether it
5317 # can be created. At this point the main configure script has set CC.
5318 we_are_ok=no
5319 echo "int main () { return 0; }" > conftest.c
5320 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5321 if test $? = 0 ; then
5322 if test -s conftest || test -s conftest.exe ; then
5323 we_are_ok=yes
5326 case $we_are_ok in
5328 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5329 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5330 rm -f conftest*
5331 exit 1
5333 esac
5334 rm -f conftest*
5336 # The Solaris /usr/ucb/cc compiler does not appear to work.
5337 case "${host}" in
5338 sparc-sun-solaris2*)
5339 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5340 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5341 could_use=
5342 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5343 if test -d /opt/cygnus/bin ; then
5344 if test "$could_use" = "" ; then
5345 could_use="/opt/cygnus/bin"
5346 else
5347 could_use="$could_use or /opt/cygnus/bin"
5350 if test "$could_use" = "" ; then
5351 echo "Warning: compilation may fail because you're using"
5352 echo "/usr/ucb/cc. You should change your PATH or CC "
5353 echo "variable and rerun configure."
5354 else
5355 echo "Warning: compilation may fail because you're using"
5356 echo "/usr/ucb/cc, when you should use the C compiler from"
5357 echo "$could_use. You should change your"
5358 echo "PATH or CC variable and rerun configure."
5362 esac
5364 case "${host}" in
5365 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5366 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5367 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5368 esac
5370 # Record target_configdirs and the configure arguments for target and
5371 # build configuration in Makefile.
5372 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5373 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5375 # Determine whether gdb needs tk/tcl or not.
5376 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5377 # and in that case we want gdb to be built without tk. Ugh!
5378 # In fact I believe gdb is the *only* package directly dependent on tk,
5379 # so we should be able to put the 'maybe's in unconditionally and
5380 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5381 # 100% sure that that's safe though.
5383 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5384 case "$enable_gdbtk" in
5386 GDB_TK="" ;;
5387 yes)
5388 GDB_TK="${gdb_tk}" ;;
5390 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5391 # distro. Eventually someone will fix this and move Insight, nee
5392 # gdbtk to a separate directory.
5393 if test -d ${srcdir}/gdb/gdbtk ; then
5394 GDB_TK="${gdb_tk}"
5395 else
5396 GDB_TK=""
5399 esac
5400 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5401 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5403 # Strip out unwanted targets.
5405 # While at that, we remove Makefiles if we were started for recursive
5406 # configuration, so that the top-level Makefile reconfigures them,
5407 # like we used to do when configure itself was recursive.
5409 # Loop over modules. $extrasub must be used with care, limiting as
5410 # much as possible the usage of range addresses. That's because autoconf
5411 # splits the sed script to overcome limits in the number of commands,
5412 # and relying on carefully-timed sed passes may turn out to be very hard
5413 # to maintain later. In this particular case, you just have to be careful
5414 # not to nest @if/@endif pairs, because configure will not warn you at all.
5416 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5417 if test "${enable_bootstrap+set}" = set; then
5418 enableval="$enable_bootstrap"
5420 else
5421 enable_bootstrap=default
5424 # Issue errors and warnings for invalid/strange bootstrap combinations.
5425 case "$configdirs" in
5426 *gcc*) have_compiler=yes ;;
5427 *) have_compiler=no ;;
5428 esac
5430 case "$have_compiler:$host:$target:$enable_bootstrap" in
5431 *:*:*:no) ;;
5433 # Default behavior. Enable bootstrap if we have a compiler
5434 # and we are in a native configuration.
5435 yes:$build:$build:default)
5436 enable_bootstrap=yes ;;
5438 *:*:*:default)
5439 enable_bootstrap=no ;;
5441 # We have a compiler and we are in a native configuration, bootstrap is ok
5442 yes:$build:$build:yes)
5445 # Other configurations, but we have a compiler. Assume the user knows
5446 # what he's doing.
5447 yes:*:*:yes)
5448 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5449 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5452 # No compiler: if they passed --enable-bootstrap explicitly, fail
5453 no:*:*:yes)
5454 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5455 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5456 { (exit 1); exit 1; }; } ;;
5458 # Fail if wrong command line
5460 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5461 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5462 { (exit 1); exit 1; }; }
5464 esac
5466 # Adjust the toplevel makefile according to whether bootstrap was selected.
5467 case "$enable_bootstrap" in
5468 yes)
5469 bootstrap_suffix=bootstrap ;;
5471 bootstrap_suffix=no-bootstrap ;;
5472 esac
5474 for module in ${build_configdirs} ; do
5475 if test -z "${no_recursion}" \
5476 && test -f ${build_subdir}/${module}/Makefile; then
5477 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5478 rm -f ${build_subdir}/${module}/Makefile
5480 extrasub="$extrasub
5481 /^@if build-$module\$/d
5482 /^@endif build-$module\$/d
5483 /^@if build-$module-$bootstrap_suffix\$/d
5484 /^@endif build-$module-$bootstrap_suffix\$/d"
5485 done
5486 for module in ${configdirs} ; do
5487 if test -z "${no_recursion}"; then
5488 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5489 if test -f ${file}; then
5490 echo 1>&2 "*** removing ${file} to force reconfigure"
5491 rm -f ${file}
5493 done
5495 extrasub="$extrasub
5496 /^@if $module\$/d
5497 /^@endif $module\$/d
5498 /^@if $module-$bootstrap_suffix\$/d
5499 /^@endif $module-$bootstrap_suffix\$/d"
5500 done
5501 for module in ${target_configdirs} ; do
5502 if test -z "${no_recursion}" \
5503 && test -f ${target_subdir}/${module}/Makefile; then
5504 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5505 rm -f ${target_subdir}/${module}/Makefile
5507 extrasub="$extrasub
5508 /^@if target-$module\$/d
5509 /^@endif target-$module\$/d
5510 /^@if target-$module-$bootstrap_suffix\$/d
5511 /^@endif target-$module-$bootstrap_suffix\$/d"
5512 done
5514 extrasub="$extrasub
5515 /^@if /,/^@endif /d"
5517 # Create the serialization dependencies. This uses a temporary file.
5519 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5520 if test "${enable_serial_configure+set}" = set; then
5521 enableval="$enable_serial_configure"
5525 case ${enable_serial_configure} in
5526 yes)
5527 enable_serial_build_configure=yes
5528 enable_serial_host_configure=yes
5529 enable_serial_target_configure=yes
5531 esac
5533 # These force 'configure's to be done one at a time, to avoid problems
5534 # with contention over a shared config.cache.
5535 rm -f serdep.tmp
5536 echo '# serdep.tmp' > serdep.tmp
5537 olditem=
5538 test "x${enable_serial_build_configure}" = xyes &&
5539 for item in ${build_configdirs} ; do
5540 case ${olditem} in
5541 "") ;;
5542 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5543 esac
5544 olditem=${item}
5545 done
5546 olditem=
5547 test "x${enable_serial_host_configure}" = xyes &&
5548 for item in ${configdirs} ; do
5549 case ${olditem} in
5550 "") ;;
5551 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5552 esac
5553 olditem=${item}
5554 done
5555 olditem=
5556 test "x${enable_serial_target_configure}" = xyes &&
5557 for item in ${target_configdirs} ; do
5558 case ${olditem} in
5559 "") ;;
5560 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5561 esac
5562 olditem=${item}
5563 done
5564 serialization_dependencies=serdep.tmp
5567 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5568 # target, nonopt, and variable assignments. These are the ones we
5569 # might not want to pass down to subconfigures. Also strip
5570 # program-prefix, program-suffix, and program-transform-name, so that
5571 # we can pass down a consistent program-transform-name.
5572 baseargs=
5573 keep_next=no
5574 skip_next=no
5575 eval "set -- $ac_configure_args"
5576 for ac_arg
5578 if test X"$skip_next" = X"yes"; then
5579 skip_next=no
5580 continue
5582 if test X"$keep_next" = X"yes"; then
5583 case $ac_arg in
5584 *\'*)
5585 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5586 esac
5587 baseargs="$baseargs '$ac_arg'"
5588 keep_next=no
5589 continue
5592 # Handle separated arguments. Based on the logic generated by
5593 # autoconf 2.59.
5594 case $ac_arg in
5595 *=* | --config-cache | -C | -disable-* | --disable-* \
5596 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5597 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5598 | -with-* | --with-* | -without-* | --without-* | --x)
5599 separate_arg=no
5602 separate_arg=yes
5605 separate_arg=no
5607 esac
5609 case "$ac_arg" in
5610 --no*)
5611 continue
5613 --c* | \
5614 --sr* | \
5615 --ho* | \
5616 --bu* | \
5617 --t* | \
5618 --program-* | \
5619 -cache_file* | \
5620 -srcdir* | \
5621 -host* | \
5622 -build* | \
5623 -target* | \
5624 -program-prefix* | \
5625 -program-suffix* | \
5626 -program-transform-name* )
5627 skip_next=$separate_arg
5628 continue
5631 # An option. Add it.
5632 case $ac_arg in
5633 *\'*)
5634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5635 esac
5636 baseargs="$baseargs '$ac_arg'"
5637 keep_next=$separate_arg
5640 # Either a variable assignment, or a nonopt (triplet). Don't
5641 # pass it down; let the Makefile handle this.
5642 continue
5644 esac
5645 done
5646 # Remove the initial space we just introduced and, as these will be
5647 # expanded by make, quote '$'.
5648 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5650 # Add in --program-transform-name, after --program-prefix and
5651 # --program-suffix have been applied to it. Autoconf has already
5652 # doubled dollar signs and backslashes in program_transform_name; we want
5653 # the backslashes un-doubled, and then the entire thing wrapped in single
5654 # quotes, because this will be expanded first by make and then by the shell.
5655 # Also, because we want to override the logic in subdir configure scripts to
5656 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5657 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5658 ${program_transform_name}
5659 EOF_SED
5660 gcc_transform_name=`cat conftestsed.out`
5661 rm -f conftestsed.out
5662 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5664 # For the build-side libraries, we just need to pretend we're native,
5665 # and not use the same cache file. Multilibs are neither needed nor
5666 # desired.
5667 build_configargs="--cache-file=../config.cache ${baseargs}"
5669 # For host modules, accept cache file option, or specification as blank.
5670 case "${cache_file}" in
5671 "") # empty
5672 cache_file_option="" ;;
5673 /* | [A-Za-z]:[\\/]* ) # absolute path
5674 cache_file_option="--cache-file=${cache_file}" ;;
5675 *) # relative path
5676 cache_file_option="--cache-file=../${cache_file}" ;;
5677 esac
5679 # Host dirs don't like to share a cache file either, horribly enough.
5680 # This seems to be due to autoconf 2.5x stupidity.
5681 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5683 target_configargs=${baseargs}
5685 # Passing a --with-cross-host argument lets the target libraries know
5686 # whether they are being built with a cross-compiler or being built
5687 # native. However, it would be better to use other mechanisms to make the
5688 # sorts of decisions they want to make on this basis. Please consider
5689 # this option to be deprecated. FIXME.
5690 if test x${is_cross_compiler} = xyes ; then
5691 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5694 # Default to --enable-multilib.
5695 if test x${enable_multilib} = x ; then
5696 target_configargs="--enable-multilib ${target_configargs}"
5699 # Pass --with-newlib if appropriate. Note that target_configdirs has
5700 # changed from the earlier setting of with_newlib.
5701 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5702 target_configargs="--with-newlib ${target_configargs}"
5705 # Different target subdirs use different values of certain variables
5706 # (notably CXX). Worse, multilibs use *lots* of different values.
5707 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5708 # it doesn't automatically accept command-line overrides of them.
5709 # This means it's not safe for target subdirs to share a cache file,
5710 # which is disgusting, but there you have it. Hopefully this can be
5711 # fixed in future. It's still worthwhile to use a cache file for each
5712 # directory. I think.
5714 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5715 # We need to pass --target, as newer autoconf's requires consistency
5716 # for target_alias and gcc doesn't manage it consistently.
5717 target_configargs="--cache-file=./config.cache ${target_configargs}"
5719 FLAGS_FOR_TARGET=
5720 case " $target_configdirs " in
5721 *" newlib "*)
5722 case " $target_configargs " in
5723 *" --with-newlib "*)
5724 case "$target" in
5725 *-cygwin*)
5726 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' ;;
5727 esac
5729 # If we're not building GCC, don't discard standard headers.
5730 if test -d ${srcdir}/gcc; then
5731 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5733 if test "${build}" != "${host}"; then
5734 # On Canadian crosses, CC_FOR_TARGET will have already been set
5735 # by `configure', so we won't have an opportunity to add -Bgcc/
5736 # to it. This is right: we don't want to search that directory
5737 # for binaries, but we want the header files in there, so add
5738 # them explicitly.
5739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5741 # Someone might think of using the pre-installed headers on
5742 # Canadian crosses, in case the installed compiler is not fully
5743 # compatible with the compiler being built. In this case, it
5744 # would be better to flag an error than risking having
5745 # incompatible object files being constructed. We can't
5746 # guarantee that an error will be flagged, but let's hope the
5747 # compiler will do it, when presented with incompatible header
5748 # files.
5752 case "${target}-${is_cross_compiler}" in
5753 i[3456789]86-*-linux*-no)
5754 # Here host == target, so we don't need to build gcc,
5755 # so we don't want to discard standard headers.
5756 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5759 # If we're building newlib, use its generic headers last, but search
5760 # for any libc-related directories first (so make it the last -B
5761 # switch).
5762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5764 esac
5766 esac
5768 esac
5769 case "$target" in
5770 *-mingw*)
5771 # Can't be handled as Cygwin above since Mingw does not use newlib.
5772 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' ;;
5773 esac
5775 # Allow the user to override the flags for
5776 # our build compiler if desired.
5777 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5779 # On Canadian crosses, we'll be searching the right directories for
5780 # the previously-installed cross compiler, so don't bother to add
5781 # flags for directories within the install tree of the compiler
5782 # being built; programs in there won't even run.
5783 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5784 # Search for pre-installed headers if nothing else fits.
5785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5788 if test "x${use_gnu_ld}" = x &&
5789 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5790 # Arrange for us to find uninstalled linker scripts.
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5794 # Search for other target-specific linker scripts and such.
5795 case "${target}" in
5796 m32c-*-* )
5797 if test -d ${srcdir}/libgloss/m32c; then
5798 # This is for crt0.o
5799 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5800 # This is for r8c.ld
5801 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5802 # This is for libnosys.a
5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5806 mep*)
5807 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5809 esac
5811 # Makefile fragments.
5812 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5814 eval fragval=\$$frag
5815 if test $fragval != /dev/null; then
5816 eval $frag=${srcdir}/$fragval
5818 done
5824 # Miscellanea: directories, flags, etc.
5832 # Build module lists & subconfigure args.
5836 # Host module lists & subconfigure args.
5840 # Target module lists & subconfigure args.
5844 # Build tools.
5848 # Generate default definitions for YACC, M4, LEX and other programs that run
5849 # on the build machine. These are used if the Makefile can't locate these
5850 # programs in objdir.
5851 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5853 for ac_prog in 'bison -y' byacc yacc
5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy $ac_prog; ac_word=$2
5857 echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5859 if test "${ac_cv_prog_YACC+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 if test -n "$YACC"; then
5863 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_YACC="$ac_prog"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5881 YACC=$ac_cv_prog_YACC
5882 if test -n "$YACC"; then
5883 echo "$as_me:$LINENO: result: $YACC" >&5
5884 echo "${ECHO_T}$YACC" >&6
5885 else
5886 echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6
5890 test -n "$YACC" && break
5891 done
5892 test -n "$YACC" || YACC="$MISSING bison -y"
5894 case " $build_configdirs " in
5895 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5896 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5897 esac
5899 for ac_prog in bison
5901 # Extract the first word of "$ac_prog", so it can be a program name with args.
5902 set dummy $ac_prog; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_BISON+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$BISON"; then
5909 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_BISON="$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5922 done
5923 done
5927 BISON=$ac_cv_prog_BISON
5928 if test -n "$BISON"; then
5929 echo "$as_me:$LINENO: result: $BISON" >&5
5930 echo "${ECHO_T}$BISON" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5936 test -n "$BISON" && break
5937 done
5938 test -n "$BISON" || BISON="$MISSING bison"
5940 case " $build_configdirs " in
5941 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5942 esac
5944 for ac_prog in gm4 gnum4 m4
5946 # Extract the first word of "$ac_prog", so it can be a program name with args.
5947 set dummy $ac_prog; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_M4+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test -n "$M4"; then
5954 ac_cv_prog_M4="$M4" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_M4="$ac_prog"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5967 done
5968 done
5972 M4=$ac_cv_prog_M4
5973 if test -n "$M4"; then
5974 echo "$as_me:$LINENO: result: $M4" >&5
5975 echo "${ECHO_T}$M4" >&6
5976 else
5977 echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5981 test -n "$M4" && break
5982 done
5983 test -n "$M4" || M4="$MISSING m4"
5985 case " $build_configdirs " in
5986 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5987 esac
5989 for ac_prog in flex lex
5991 # Extract the first word of "$ac_prog", so it can be a program name with args.
5992 set dummy $ac_prog; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_LEX+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 if test -n "$LEX"; then
5999 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_LEX="$ac_prog"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6012 done
6013 done
6017 LEX=$ac_cv_prog_LEX
6018 if test -n "$LEX"; then
6019 echo "$as_me:$LINENO: result: $LEX" >&5
6020 echo "${ECHO_T}$LEX" >&6
6021 else
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6026 test -n "$LEX" && break
6027 done
6028 test -n "$LEX" || LEX="$MISSING flex"
6030 case " $build_configdirs " in
6031 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6032 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6033 esac
6035 for ac_prog in flex
6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
6038 set dummy $ac_prog; ac_word=$2
6039 echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6041 if test "${ac_cv_prog_FLEX+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 if test -n "$FLEX"; then
6045 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054 ac_cv_prog_FLEX="$ac_prog"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6058 done
6059 done
6063 FLEX=$ac_cv_prog_FLEX
6064 if test -n "$FLEX"; then
6065 echo "$as_me:$LINENO: result: $FLEX" >&5
6066 echo "${ECHO_T}$FLEX" >&6
6067 else
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 test -n "$FLEX" && break
6073 done
6074 test -n "$FLEX" || FLEX="$MISSING flex"
6076 case " $build_configdirs " in
6077 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6078 esac
6080 for ac_prog in makeinfo
6082 # Extract the first word of "$ac_prog", so it can be a program name with args.
6083 set dummy $ac_prog; ac_word=$2
6084 echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6086 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test -n "$MAKEINFO"; then
6090 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_MAKEINFO="$ac_prog"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6108 MAKEINFO=$ac_cv_prog_MAKEINFO
6109 if test -n "$MAKEINFO"; then
6110 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6111 echo "${ECHO_T}$MAKEINFO" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6117 test -n "$MAKEINFO" && break
6118 done
6119 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6121 case " $build_configdirs " in
6122 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6125 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6126 # higher, else we use the "missing" dummy.
6127 if ${MAKEINFO} --version \
6128 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6130 else
6131 MAKEINFO="$MISSING makeinfo"
6135 esac
6137 # FIXME: expect and dejagnu may become build tools?
6139 for ac_prog in expect
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy $ac_prog; ac_word=$2
6143 echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6145 if test "${ac_cv_prog_EXPECT+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148 if test -n "$EXPECT"; then
6149 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_EXPECT="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6167 EXPECT=$ac_cv_prog_EXPECT
6168 if test -n "$EXPECT"; then
6169 echo "$as_me:$LINENO: result: $EXPECT" >&5
6170 echo "${ECHO_T}$EXPECT" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6
6176 test -n "$EXPECT" && break
6177 done
6178 test -n "$EXPECT" || EXPECT="expect"
6180 case " $configdirs " in
6181 *" expect "*)
6182 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6184 esac
6186 for ac_prog in runtest
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6192 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 if test -n "$RUNTEST"; then
6196 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_RUNTEST="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6214 RUNTEST=$ac_cv_prog_RUNTEST
6215 if test -n "$RUNTEST"; then
6216 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6217 echo "${ECHO_T}$RUNTEST" >&6
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6223 test -n "$RUNTEST" && break
6224 done
6225 test -n "$RUNTEST" || RUNTEST="runtest"
6227 case " $configdirs " in
6228 *" dejagnu "*)
6229 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6231 esac
6234 # Host tools.
6235 ncn_tool_prefix=
6236 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6237 ncn_target_tool_prefix=
6238 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6242 if test -n "$AR"; then
6243 ac_cv_prog_AR=$AR
6244 elif test -n "$ac_cv_prog_AR"; then
6245 AR=$ac_cv_prog_AR
6248 if test -n "$ac_cv_prog_AR"; then
6249 for ncn_progname in ar; do
6250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6251 set dummy ${ncn_progname}; ac_word=$2
6252 echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6254 if test "${ac_cv_prog_AR+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 if test -n "$AR"; then
6258 ac_cv_prog_AR="$AR" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_AR="${ncn_progname}"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6276 AR=$ac_cv_prog_AR
6277 if test -n "$AR"; then
6278 echo "$as_me:$LINENO: result: $AR" >&5
6279 echo "${ECHO_T}$AR" >&6
6280 else
6281 echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6285 done
6288 for ncn_progname in ar; do
6289 if test -n "$ncn_tool_prefix"; then
6290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6292 echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294 if test "${ac_cv_prog_AR+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 if test -n "$AR"; then
6298 ac_cv_prog_AR="$AR" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6311 done
6312 done
6316 AR=$ac_cv_prog_AR
6317 if test -n "$AR"; then
6318 echo "$as_me:$LINENO: result: $AR" >&5
6319 echo "${ECHO_T}$AR" >&6
6320 else
6321 echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6326 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6328 set dummy ${ncn_progname}; ac_word=$2
6329 echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6331 if test "${ac_cv_prog_AR+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 if test -n "$AR"; then
6335 ac_cv_prog_AR="$AR" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_AR="${ncn_progname}"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6353 AR=$ac_cv_prog_AR
6354 if test -n "$AR"; then
6355 echo "$as_me:$LINENO: result: $AR" >&5
6356 echo "${ECHO_T}$AR" >&6
6357 else
6358 echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6363 test -n "$ac_cv_prog_AR" && break
6364 done
6366 if test -z "$ac_cv_prog_AR" ; then
6367 set dummy ar
6368 if test $build = $host ; then
6369 AR="$2"
6370 else
6371 AR="${ncn_tool_prefix}$2"
6377 if test -n "$AS"; then
6378 ac_cv_prog_AS=$AS
6379 elif test -n "$ac_cv_prog_AS"; then
6380 AS=$ac_cv_prog_AS
6383 if test -n "$ac_cv_prog_AS"; then
6384 for ncn_progname in as; do
6385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6386 set dummy ${ncn_progname}; ac_word=$2
6387 echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6389 if test "${ac_cv_prog_AS+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 if test -n "$AS"; then
6393 ac_cv_prog_AS="$AS" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_AS="${ncn_progname}"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6406 done
6407 done
6411 AS=$ac_cv_prog_AS
6412 if test -n "$AS"; then
6413 echo "$as_me:$LINENO: result: $AS" >&5
6414 echo "${ECHO_T}$AS" >&6
6415 else
6416 echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6
6420 done
6423 for ncn_progname in as; do
6424 if test -n "$ncn_tool_prefix"; then
6425 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6426 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6427 echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6429 if test "${ac_cv_prog_AS+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 if test -n "$AS"; then
6433 ac_cv_prog_AS="$AS" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6446 done
6447 done
6451 AS=$ac_cv_prog_AS
6452 if test -n "$AS"; then
6453 echo "$as_me:$LINENO: result: $AS" >&5
6454 echo "${ECHO_T}$AS" >&6
6455 else
6456 echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6
6461 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6463 set dummy ${ncn_progname}; ac_word=$2
6464 echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6466 if test "${ac_cv_prog_AS+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 if test -n "$AS"; then
6470 ac_cv_prog_AS="$AS" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_AS="${ncn_progname}"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6483 done
6484 done
6488 AS=$ac_cv_prog_AS
6489 if test -n "$AS"; then
6490 echo "$as_me:$LINENO: result: $AS" >&5
6491 echo "${ECHO_T}$AS" >&6
6492 else
6493 echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6
6498 test -n "$ac_cv_prog_AS" && break
6499 done
6501 if test -z "$ac_cv_prog_AS" ; then
6502 set dummy as
6503 if test $build = $host ; then
6504 AS="$2"
6505 else
6506 AS="${ncn_tool_prefix}$2"
6512 if test -n "$DLLTOOL"; then
6513 ac_cv_prog_DLLTOOL=$DLLTOOL
6514 elif test -n "$ac_cv_prog_DLLTOOL"; then
6515 DLLTOOL=$ac_cv_prog_DLLTOOL
6518 if test -n "$ac_cv_prog_DLLTOOL"; then
6519 for ncn_progname in dlltool; do
6520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6521 set dummy ${ncn_progname}; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test -n "$DLLTOOL"; then
6528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_DLLTOOL="${ncn_progname}"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6541 done
6542 done
6546 DLLTOOL=$ac_cv_prog_DLLTOOL
6547 if test -n "$DLLTOOL"; then
6548 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6549 echo "${ECHO_T}$DLLTOOL" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6555 done
6558 for ncn_progname in dlltool; do
6559 if test -n "$ncn_tool_prefix"; then
6560 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6561 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6562 echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6564 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 if test -n "$DLLTOOL"; then
6568 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6573 IFS=$as_save_IFS
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 break 2
6581 done
6582 done
6586 DLLTOOL=$ac_cv_prog_DLLTOOL
6587 if test -n "$DLLTOOL"; then
6588 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6589 echo "${ECHO_T}$DLLTOOL" >&6
6590 else
6591 echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6596 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6598 set dummy ${ncn_progname}; ac_word=$2
6599 echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 if test -n "$DLLTOOL"; then
6605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_DLLTOOL="${ncn_progname}"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6618 done
6619 done
6623 DLLTOOL=$ac_cv_prog_DLLTOOL
6624 if test -n "$DLLTOOL"; then
6625 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6626 echo "${ECHO_T}$DLLTOOL" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6633 test -n "$ac_cv_prog_DLLTOOL" && break
6634 done
6636 if test -z "$ac_cv_prog_DLLTOOL" ; then
6637 set dummy dlltool
6638 if test $build = $host ; then
6639 DLLTOOL="$2"
6640 else
6641 DLLTOOL="${ncn_tool_prefix}$2"
6647 if test -n "$LD"; then
6648 ac_cv_prog_LD=$LD
6649 elif test -n "$ac_cv_prog_LD"; then
6650 LD=$ac_cv_prog_LD
6653 if test -n "$ac_cv_prog_LD"; then
6654 for ncn_progname in ld; do
6655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6656 set dummy ${ncn_progname}; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_prog_LD+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 if test -n "$LD"; then
6663 ac_cv_prog_LD="$LD" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_LD="${ncn_progname}"
6673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6676 done
6677 done
6681 LD=$ac_cv_prog_LD
6682 if test -n "$LD"; then
6683 echo "$as_me:$LINENO: result: $LD" >&5
6684 echo "${ECHO_T}$LD" >&6
6685 else
6686 echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6
6690 done
6693 for ncn_progname in ld; do
6694 if test -n "$ncn_tool_prefix"; then
6695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6697 echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699 if test "${ac_cv_prog_LD+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 if test -n "$LD"; then
6703 ac_cv_prog_LD="$LD" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6721 LD=$ac_cv_prog_LD
6722 if test -n "$LD"; then
6723 echo "$as_me:$LINENO: result: $LD" >&5
6724 echo "${ECHO_T}$LD" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6731 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6733 set dummy ${ncn_progname}; ac_word=$2
6734 echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_LD+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 if test -n "$LD"; then
6740 ac_cv_prog_LD="$LD" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_LD="${ncn_progname}"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6758 LD=$ac_cv_prog_LD
6759 if test -n "$LD"; then
6760 echo "$as_me:$LINENO: result: $LD" >&5
6761 echo "${ECHO_T}$LD" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6768 test -n "$ac_cv_prog_LD" && break
6769 done
6771 if test -z "$ac_cv_prog_LD" ; then
6772 set dummy ld
6773 if test $build = $host ; then
6774 LD="$2"
6775 else
6776 LD="${ncn_tool_prefix}$2"
6782 if test -n "$LIPO"; then
6783 ac_cv_prog_LIPO=$LIPO
6784 elif test -n "$ac_cv_prog_LIPO"; then
6785 LIPO=$ac_cv_prog_LIPO
6788 if test -n "$ac_cv_prog_LIPO"; then
6789 for ncn_progname in lipo; do
6790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6791 set dummy ${ncn_progname}; ac_word=$2
6792 echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794 if test "${ac_cv_prog_LIPO+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 if test -n "$LIPO"; then
6798 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_LIPO="${ncn_progname}"
6808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6816 LIPO=$ac_cv_prog_LIPO
6817 if test -n "$LIPO"; then
6818 echo "$as_me:$LINENO: result: $LIPO" >&5
6819 echo "${ECHO_T}$LIPO" >&6
6820 else
6821 echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6
6825 done
6828 for ncn_progname in lipo; do
6829 if test -n "$ncn_tool_prefix"; then
6830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6832 echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6834 if test "${ac_cv_prog_LIPO+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 if test -n "$LIPO"; then
6838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6851 done
6852 done
6856 LIPO=$ac_cv_prog_LIPO
6857 if test -n "$LIPO"; then
6858 echo "$as_me:$LINENO: result: $LIPO" >&5
6859 echo "${ECHO_T}$LIPO" >&6
6860 else
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6866 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6868 set dummy ${ncn_progname}; ac_word=$2
6869 echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871 if test "${ac_cv_prog_LIPO+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 if test -n "$LIPO"; then
6875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_LIPO="${ncn_progname}"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6888 done
6889 done
6893 LIPO=$ac_cv_prog_LIPO
6894 if test -n "$LIPO"; then
6895 echo "$as_me:$LINENO: result: $LIPO" >&5
6896 echo "${ECHO_T}$LIPO" >&6
6897 else
6898 echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6903 test -n "$ac_cv_prog_LIPO" && break
6904 done
6906 if test -z "$ac_cv_prog_LIPO" ; then
6907 set dummy lipo
6908 if test $build = $host ; then
6909 LIPO="$2"
6910 else
6911 LIPO="${ncn_tool_prefix}$2"
6917 if test -n "$NM"; then
6918 ac_cv_prog_NM=$NM
6919 elif test -n "$ac_cv_prog_NM"; then
6920 NM=$ac_cv_prog_NM
6923 if test -n "$ac_cv_prog_NM"; then
6924 for ncn_progname in nm; do
6925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6926 set dummy ${ncn_progname}; ac_word=$2
6927 echo "$as_me:$LINENO: checking for $ac_word" >&5
6928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6929 if test "${ac_cv_prog_NM+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 if test -n "$NM"; then
6933 ac_cv_prog_NM="$NM" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_NM="${ncn_progname}"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6946 done
6947 done
6951 NM=$ac_cv_prog_NM
6952 if test -n "$NM"; then
6953 echo "$as_me:$LINENO: result: $NM" >&5
6954 echo "${ECHO_T}$NM" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6
6960 done
6963 for ncn_progname in nm; do
6964 if test -n "$ncn_tool_prefix"; then
6965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6966 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6967 echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6969 if test "${ac_cv_prog_NM+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 if test -n "$NM"; then
6973 ac_cv_prog_NM="$NM" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6986 done
6987 done
6991 NM=$ac_cv_prog_NM
6992 if test -n "$NM"; then
6993 echo "$as_me:$LINENO: result: $NM" >&5
6994 echo "${ECHO_T}$NM" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
7001 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7003 set dummy ${ncn_progname}; ac_word=$2
7004 echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006 if test "${ac_cv_prog_NM+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 if test -n "$NM"; then
7010 ac_cv_prog_NM="$NM" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_NM="${ncn_progname}"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7028 NM=$ac_cv_prog_NM
7029 if test -n "$NM"; then
7030 echo "$as_me:$LINENO: result: $NM" >&5
7031 echo "${ECHO_T}$NM" >&6
7032 else
7033 echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6
7038 test -n "$ac_cv_prog_NM" && break
7039 done
7041 if test -z "$ac_cv_prog_NM" ; then
7042 set dummy nm
7043 if test $build = $host ; then
7044 NM="$2"
7045 else
7046 NM="${ncn_tool_prefix}$2"
7052 if test -n "$RANLIB"; then
7053 ac_cv_prog_RANLIB=$RANLIB
7054 elif test -n "$ac_cv_prog_RANLIB"; then
7055 RANLIB=$ac_cv_prog_RANLIB
7058 if test -n "$ac_cv_prog_RANLIB"; then
7059 for ncn_progname in ranlib; do
7060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7061 set dummy ${ncn_progname}; ac_word=$2
7062 echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7064 if test "${ac_cv_prog_RANLIB+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB="${ncn_progname}"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7086 RANLIB=$ac_cv_prog_RANLIB
7087 if test -n "$RANLIB"; then
7088 echo "$as_me:$LINENO: result: $RANLIB" >&5
7089 echo "${ECHO_T}$RANLIB" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7095 done
7098 for ncn_progname in ranlib; do
7099 if test -n "$ncn_tool_prefix"; then
7100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7101 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7126 RANLIB=$ac_cv_prog_RANLIB
7127 if test -n "$RANLIB"; then
7128 echo "$as_me:$LINENO: result: $RANLIB" >&5
7129 echo "${ECHO_T}$RANLIB" >&6
7130 else
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7136 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7138 set dummy ${ncn_progname}; ac_word=$2
7139 echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7141 if test "${ac_cv_prog_RANLIB+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 if test -n "$RANLIB"; then
7145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_RANLIB="${ncn_progname}"
7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7163 RANLIB=$ac_cv_prog_RANLIB
7164 if test -n "$RANLIB"; then
7165 echo "$as_me:$LINENO: result: $RANLIB" >&5
7166 echo "${ECHO_T}$RANLIB" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7173 test -n "$ac_cv_prog_RANLIB" && break
7174 done
7176 if test -z "$ac_cv_prog_RANLIB" ; then
7177 RANLIB=":"
7182 if test -n "$STRIP"; then
7183 ac_cv_prog_STRIP=$STRIP
7184 elif test -n "$ac_cv_prog_STRIP"; then
7185 STRIP=$ac_cv_prog_STRIP
7188 if test -n "$ac_cv_prog_STRIP"; then
7189 for ncn_progname in strip; do
7190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7191 set dummy ${ncn_progname}; ac_word=$2
7192 echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7194 if test "${ac_cv_prog_STRIP+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$STRIP"; then
7198 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_STRIP="${ncn_progname}"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7216 STRIP=$ac_cv_prog_STRIP
7217 if test -n "$STRIP"; then
7218 echo "$as_me:$LINENO: result: $STRIP" >&5
7219 echo "${ECHO_T}$STRIP" >&6
7220 else
7221 echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7225 done
7228 for ncn_progname in strip; do
7229 if test -n "$ncn_tool_prefix"; then
7230 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7231 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7232 echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234 if test "${ac_cv_prog_STRIP+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$STRIP"; then
7238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7256 STRIP=$ac_cv_prog_STRIP
7257 if test -n "$STRIP"; then
7258 echo "$as_me:$LINENO: result: $STRIP" >&5
7259 echo "${ECHO_T}$STRIP" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7266 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7268 set dummy ${ncn_progname}; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_STRIP+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 if test -n "$STRIP"; then
7275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_STRIP="${ncn_progname}"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7288 done
7289 done
7293 STRIP=$ac_cv_prog_STRIP
7294 if test -n "$STRIP"; then
7295 echo "$as_me:$LINENO: result: $STRIP" >&5
7296 echo "${ECHO_T}$STRIP" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7303 test -n "$ac_cv_prog_STRIP" && break
7304 done
7306 if test -z "$ac_cv_prog_STRIP" ; then
7307 STRIP=":"
7312 if test -n "$WINDRES"; then
7313 ac_cv_prog_WINDRES=$WINDRES
7314 elif test -n "$ac_cv_prog_WINDRES"; then
7315 WINDRES=$ac_cv_prog_WINDRES
7318 if test -n "$ac_cv_prog_WINDRES"; then
7319 for ncn_progname in windres; do
7320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7321 set dummy ${ncn_progname}; ac_word=$2
7322 echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324 if test "${ac_cv_prog_WINDRES+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 if test -n "$WINDRES"; then
7328 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_WINDRES="${ncn_progname}"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7341 done
7342 done
7346 WINDRES=$ac_cv_prog_WINDRES
7347 if test -n "$WINDRES"; then
7348 echo "$as_me:$LINENO: result: $WINDRES" >&5
7349 echo "${ECHO_T}$WINDRES" >&6
7350 else
7351 echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7355 done
7358 for ncn_progname in windres; do
7359 if test -n "$ncn_tool_prefix"; then
7360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7361 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7362 echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7364 if test "${ac_cv_prog_WINDRES+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 if test -n "$WINDRES"; then
7368 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7386 WINDRES=$ac_cv_prog_WINDRES
7387 if test -n "$WINDRES"; then
7388 echo "$as_me:$LINENO: result: $WINDRES" >&5
7389 echo "${ECHO_T}$WINDRES" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7396 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7398 set dummy ${ncn_progname}; ac_word=$2
7399 echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7401 if test "${ac_cv_prog_WINDRES+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 if test -n "$WINDRES"; then
7405 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_WINDRES="${ncn_progname}"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7418 done
7419 done
7423 WINDRES=$ac_cv_prog_WINDRES
7424 if test -n "$WINDRES"; then
7425 echo "$as_me:$LINENO: result: $WINDRES" >&5
7426 echo "${ECHO_T}$WINDRES" >&6
7427 else
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7433 test -n "$ac_cv_prog_WINDRES" && break
7434 done
7436 if test -z "$ac_cv_prog_WINDRES" ; then
7437 set dummy windres
7438 if test $build = $host ; then
7439 WINDRES="$2"
7440 else
7441 WINDRES="${ncn_tool_prefix}$2"
7447 if test -n "$WINDMC"; then
7448 ac_cv_prog_WINDMC=$WINDMC
7449 elif test -n "$ac_cv_prog_WINDMC"; then
7450 WINDMC=$ac_cv_prog_WINDMC
7453 if test -n "$ac_cv_prog_WINDMC"; then
7454 for ncn_progname in windmc; do
7455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7456 set dummy ${ncn_progname}; ac_word=$2
7457 echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459 if test "${ac_cv_prog_WINDMC+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462 if test -n "$WINDMC"; then
7463 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_WINDMC="${ncn_progname}"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7481 WINDMC=$ac_cv_prog_WINDMC
7482 if test -n "$WINDMC"; then
7483 echo "$as_me:$LINENO: result: $WINDMC" >&5
7484 echo "${ECHO_T}$WINDMC" >&6
7485 else
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7490 done
7493 for ncn_progname in windmc; do
7494 if test -n "$ncn_tool_prefix"; then
7495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7496 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7497 echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7499 if test "${ac_cv_prog_WINDMC+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 if test -n "$WINDMC"; then
7503 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7516 done
7517 done
7521 WINDMC=$ac_cv_prog_WINDMC
7522 if test -n "$WINDMC"; then
7523 echo "$as_me:$LINENO: result: $WINDMC" >&5
7524 echo "${ECHO_T}$WINDMC" >&6
7525 else
7526 echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7531 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7533 set dummy ${ncn_progname}; ac_word=$2
7534 echo "$as_me:$LINENO: checking for $ac_word" >&5
7535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7536 if test "${ac_cv_prog_WINDMC+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 if test -n "$WINDMC"; then
7540 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_WINDMC="${ncn_progname}"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7558 WINDMC=$ac_cv_prog_WINDMC
7559 if test -n "$WINDMC"; then
7560 echo "$as_me:$LINENO: result: $WINDMC" >&5
7561 echo "${ECHO_T}$WINDMC" >&6
7562 else
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7568 test -n "$ac_cv_prog_WINDMC" && break
7569 done
7571 if test -z "$ac_cv_prog_WINDMC" ; then
7572 set dummy windmc
7573 if test $build = $host ; then
7574 WINDMC="$2"
7575 else
7576 WINDMC="${ncn_tool_prefix}$2"
7582 if test -n "$OBJCOPY"; then
7583 ac_cv_prog_OBJCOPY=$OBJCOPY
7584 elif test -n "$ac_cv_prog_OBJCOPY"; then
7585 OBJCOPY=$ac_cv_prog_OBJCOPY
7588 if test -n "$ac_cv_prog_OBJCOPY"; then
7589 for ncn_progname in objcopy; do
7590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7591 set dummy ${ncn_progname}; ac_word=$2
7592 echo "$as_me:$LINENO: checking for $ac_word" >&5
7593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 if test -n "$OBJCOPY"; then
7598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_OBJCOPY="${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7616 OBJCOPY=$ac_cv_prog_OBJCOPY
7617 if test -n "$OBJCOPY"; then
7618 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7619 echo "${ECHO_T}$OBJCOPY" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7625 done
7628 for ncn_progname in objcopy; do
7629 if test -n "$ncn_tool_prefix"; then
7630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7631 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7632 echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 if test -n "$OBJCOPY"; then
7638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7651 done
7652 done
7656 OBJCOPY=$ac_cv_prog_OBJCOPY
7657 if test -n "$OBJCOPY"; then
7658 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7659 echo "${ECHO_T}$OBJCOPY" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6
7666 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7668 set dummy ${ncn_progname}; ac_word=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674 if test -n "$OBJCOPY"; then
7675 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_OBJCOPY="${ncn_progname}"
7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7693 OBJCOPY=$ac_cv_prog_OBJCOPY
7694 if test -n "$OBJCOPY"; then
7695 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7696 echo "${ECHO_T}$OBJCOPY" >&6
7697 else
7698 echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7703 test -n "$ac_cv_prog_OBJCOPY" && break
7704 done
7706 if test -z "$ac_cv_prog_OBJCOPY" ; then
7707 set dummy objcopy
7708 if test $build = $host ; then
7709 OBJCOPY="$2"
7710 else
7711 OBJCOPY="${ncn_tool_prefix}$2"
7717 if test -n "$OBJDUMP"; then
7718 ac_cv_prog_OBJDUMP=$OBJDUMP
7719 elif test -n "$ac_cv_prog_OBJDUMP"; then
7720 OBJDUMP=$ac_cv_prog_OBJDUMP
7723 if test -n "$ac_cv_prog_OBJDUMP"; then
7724 for ncn_progname in objdump; do
7725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7726 set dummy ${ncn_progname}; ac_word=$2
7727 echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7729 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 if test -n "$OBJDUMP"; then
7733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_OBJDUMP="${ncn_progname}"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7746 done
7747 done
7751 OBJDUMP=$ac_cv_prog_OBJDUMP
7752 if test -n "$OBJDUMP"; then
7753 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7754 echo "${ECHO_T}$OBJDUMP" >&6
7755 else
7756 echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6
7760 done
7763 for ncn_progname in objdump; do
7764 if test -n "$ncn_tool_prefix"; then
7765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7767 echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 if test -n "$OBJDUMP"; then
7773 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7791 OBJDUMP=$ac_cv_prog_OBJDUMP
7792 if test -n "$OBJDUMP"; then
7793 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7794 echo "${ECHO_T}$OBJDUMP" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7801 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803 set dummy ${ncn_progname}; ac_word=$2
7804 echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 if test -n "$OBJDUMP"; then
7810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_OBJDUMP="${ncn_progname}"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7828 OBJDUMP=$ac_cv_prog_OBJDUMP
7829 if test -n "$OBJDUMP"; then
7830 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7831 echo "${ECHO_T}$OBJDUMP" >&6
7832 else
7833 echo "$as_me:$LINENO: result: no" >&5
7834 echo "${ECHO_T}no" >&6
7838 test -n "$ac_cv_prog_OBJDUMP" && break
7839 done
7841 if test -z "$ac_cv_prog_OBJDUMP" ; then
7842 set dummy objdump
7843 if test $build = $host ; then
7844 OBJDUMP="$2"
7845 else
7846 OBJDUMP="${ncn_tool_prefix}$2"
7856 # Target tools.
7858 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7859 if test "${with_build_time_tools+set}" = set; then
7860 withval="$with_build_time_tools"
7861 case x"$withval" in
7862 x/*) ;;
7864 with_build_time_tools=
7865 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7866 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7868 esac
7869 else
7870 with_build_time_tools=
7875 if test -n "$CC_FOR_TARGET"; then
7876 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7877 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7878 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7881 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7882 for ncn_progname in cc gcc; do
7883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7884 set dummy ${ncn_progname}; ac_word=$2
7885 echo "$as_me:$LINENO: checking for $ac_word" >&5
7886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7887 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 if test -n "$CC_FOR_TARGET"; then
7891 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7909 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7910 if test -n "$CC_FOR_TARGET"; then
7911 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7912 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7913 else
7914 echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6
7918 done
7921 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7922 for ncn_progname in cc gcc; do
7923 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7924 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7925 if test -x $with_build_time_tools/${ncn_progname}; then
7926 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7927 echo "$as_me:$LINENO: result: yes" >&5
7928 echo "${ECHO_T}yes" >&6
7929 break
7930 else
7931 echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6
7934 done
7937 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7938 for ncn_progname in cc gcc; do
7939 if test -n "$ncn_target_tool_prefix"; then
7940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7942 echo "$as_me:$LINENO: checking for $ac_word" >&5
7943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947 if test -n "$CC_FOR_TARGET"; then
7948 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7966 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7967 if test -n "$CC_FOR_TARGET"; then
7968 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7969 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7970 else
7971 echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7976 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7978 set dummy ${ncn_progname}; ac_word=$2
7979 echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 if test -n "$CC_FOR_TARGET"; then
7985 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8003 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8004 if test -n "$CC_FOR_TARGET"; then
8005 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8006 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8007 else
8008 echo "$as_me:$LINENO: result: no" >&5
8009 echo "${ECHO_T}no" >&6
8013 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8014 done
8017 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8018 set dummy cc gcc
8019 if test $build = $target ; then
8020 CC_FOR_TARGET="$2"
8021 else
8022 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8028 if test -n "$CXX_FOR_TARGET"; then
8029 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8030 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8031 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8034 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8035 for ncn_progname in c++ g++ cxx gxx; do
8036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8037 set dummy ${ncn_progname}; ac_word=$2
8038 echo "$as_me:$LINENO: checking for $ac_word" >&5
8039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 if test -n "$CXX_FOR_TARGET"; then
8044 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8057 done
8058 done
8062 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8063 if test -n "$CXX_FOR_TARGET"; then
8064 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8065 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6
8071 done
8074 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8075 for ncn_progname in c++ g++ cxx gxx; do
8076 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8077 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8078 if test -x $with_build_time_tools/${ncn_progname}; then
8079 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8080 echo "$as_me:$LINENO: result: yes" >&5
8081 echo "${ECHO_T}yes" >&6
8082 break
8083 else
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8087 done
8090 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8091 for ncn_progname in c++ g++ cxx gxx; do
8092 if test -n "$ncn_target_tool_prefix"; then
8093 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8094 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8095 echo "$as_me:$LINENO: checking for $ac_word" >&5
8096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8097 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 if test -n "$CXX_FOR_TARGET"; then
8101 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8119 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8120 if test -n "$CXX_FOR_TARGET"; then
8121 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8122 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8123 else
8124 echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6
8129 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_progname}; ac_word=$2
8132 echo "$as_me:$LINENO: checking for $ac_word" >&5
8133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8134 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 if test -n "$CXX_FOR_TARGET"; then
8138 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8156 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8157 if test -n "$CXX_FOR_TARGET"; then
8158 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8159 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8166 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8167 done
8170 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8171 set dummy c++ g++ cxx gxx
8172 if test $build = $target ; then
8173 CXX_FOR_TARGET="$2"
8174 else
8175 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8181 if test -n "$GCC_FOR_TARGET"; then
8182 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8183 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8184 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8187 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8188 for ncn_progname in gcc; do
8189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8190 set dummy ${ncn_progname}; ac_word=$2
8191 echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8193 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 if test -n "$GCC_FOR_TARGET"; then
8197 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8198 else
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 break 2
8210 done
8211 done
8215 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8216 if test -n "$GCC_FOR_TARGET"; then
8217 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8218 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8219 else
8220 echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6
8224 done
8227 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8228 for ncn_progname in gcc; do
8229 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8230 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8231 if test -x $with_build_time_tools/${ncn_progname}; then
8232 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8233 echo "$as_me:$LINENO: result: yes" >&5
8234 echo "${ECHO_T}yes" >&6
8235 break
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6
8240 done
8243 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8244 for ncn_progname in gcc; do
8245 if test -n "$ncn_target_tool_prefix"; then
8246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8247 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8248 echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8250 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 if test -n "$GCC_FOR_TARGET"; then
8254 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8267 done
8268 done
8272 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8273 if test -n "$GCC_FOR_TARGET"; then
8274 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8275 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8276 else
8277 echo "$as_me:$LINENO: result: no" >&5
8278 echo "${ECHO_T}no" >&6
8282 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8284 set dummy ${ncn_progname}; ac_word=$2
8285 echo "$as_me:$LINENO: checking for $ac_word" >&5
8286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8287 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 if test -n "$GCC_FOR_TARGET"; then
8291 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8300 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8304 done
8305 done
8309 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8310 if test -n "$GCC_FOR_TARGET"; then
8311 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8312 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8313 else
8314 echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8319 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8320 done
8323 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8324 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8329 if test -n "$GCJ_FOR_TARGET"; then
8330 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8331 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8332 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8335 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8336 for ncn_progname in gcj; do
8337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338 set dummy ${ncn_progname}; ac_word=$2
8339 echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8341 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 if test -n "$GCJ_FOR_TARGET"; then
8345 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8363 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8364 if test -n "$GCJ_FOR_TARGET"; then
8365 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8366 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8367 else
8368 echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6
8372 done
8375 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8376 for ncn_progname in gcj; do
8377 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8378 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8379 if test -x $with_build_time_tools/${ncn_progname}; then
8380 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8381 echo "$as_me:$LINENO: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8383 break
8384 else
8385 echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6
8388 done
8391 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8392 for ncn_progname in gcj; do
8393 if test -n "$ncn_target_tool_prefix"; then
8394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8396 echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8398 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 if test -n "$GCJ_FOR_TARGET"; then
8402 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8420 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8421 if test -n "$GCJ_FOR_TARGET"; then
8422 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8423 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8430 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432 set dummy ${ncn_progname}; ac_word=$2
8433 echo "$as_me:$LINENO: checking for $ac_word" >&5
8434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8435 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 if test -n "$GCJ_FOR_TARGET"; then
8439 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8452 done
8453 done
8457 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8458 if test -n "$GCJ_FOR_TARGET"; then
8459 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8460 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6
8467 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8468 done
8471 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8472 set dummy gcj
8473 if test $build = $target ; then
8474 GCJ_FOR_TARGET="$2"
8475 else
8476 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8482 if test -n "$GFORTRAN_FOR_TARGET"; then
8483 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8484 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8488 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8489 for ncn_progname in gfortran; do
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491 set dummy ${ncn_progname}; ac_word=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 if test -n "$GFORTRAN_FOR_TARGET"; then
8498 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8516 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8517 if test -n "$GFORTRAN_FOR_TARGET"; then
8518 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8519 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8525 done
8528 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8529 for ncn_progname in gfortran; do
8530 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8531 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8532 if test -x $with_build_time_tools/${ncn_progname}; then
8533 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8534 echo "$as_me:$LINENO: result: yes" >&5
8535 echo "${ECHO_T}yes" >&6
8536 break
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539 echo "${ECHO_T}no" >&6
8541 done
8544 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8545 for ncn_progname in gfortran; do
8546 if test -n "$ncn_target_tool_prefix"; then
8547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8549 echo "$as_me:$LINENO: checking for $ac_word" >&5
8550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8551 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 if test -n "$GFORTRAN_FOR_TARGET"; then
8555 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8568 done
8569 done
8573 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8574 if test -n "$GFORTRAN_FOR_TARGET"; then
8575 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8576 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8577 else
8578 echo "$as_me:$LINENO: result: no" >&5
8579 echo "${ECHO_T}no" >&6
8583 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_progname}; ac_word=$2
8586 echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 if test -n "$GFORTRAN_FOR_TARGET"; then
8592 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8610 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8611 if test -n "$GFORTRAN_FOR_TARGET"; then
8612 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8613 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8614 else
8615 echo "$as_me:$LINENO: result: no" >&5
8616 echo "${ECHO_T}no" >&6
8620 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8621 done
8624 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8625 set dummy gfortran
8626 if test $build = $target ; then
8627 GFORTRAN_FOR_TARGET="$2"
8628 else
8629 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8635 cat > conftest.c << \EOF
8636 #ifdef __GNUC__
8637 gcc_yay;
8638 #endif
8640 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8641 have_gcc_for_target=yes
8642 else
8643 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8644 have_gcc_for_target=no
8646 rm conftest.c
8651 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8652 if test -n "$with_build_time_tools"; then
8653 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8654 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8655 if test -x $with_build_time_tools/ar; then
8656 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8657 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8658 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8659 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662 echo "${ECHO_T}no" >&6
8664 elif test $build != $host && test $have_gcc_for_target = yes; then
8665 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8666 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8667 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8670 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8671 # Extract the first word of "ar", so it can be a program name with args.
8672 set dummy ar; ac_word=$2
8673 echo "$as_me:$LINENO: checking for $ac_word" >&5
8674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 case $AR_FOR_TARGET in
8679 [\\/]* | ?:[\\/]*)
8680 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $gcc_cv_tool_dirs
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8698 esac
8700 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8702 if test -n "$AR_FOR_TARGET"; then
8703 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8704 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8705 else
8706 echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8711 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8714 if test -n "$AR_FOR_TARGET"; then
8715 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8716 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8717 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8720 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8721 for ncn_progname in ar; do
8722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8723 set dummy ${ncn_progname}; ac_word=$2
8724 echo "$as_me:$LINENO: checking for $ac_word" >&5
8725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8726 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 if test -n "$AR_FOR_TARGET"; then
8730 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8743 done
8744 done
8748 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8749 if test -n "$AR_FOR_TARGET"; then
8750 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8751 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8752 else
8753 echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6
8757 done
8760 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8761 for ncn_progname in ar; do
8762 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8763 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8764 if test -x $with_build_time_tools/${ncn_progname}; then
8765 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8766 echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6
8768 break
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8773 done
8776 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8777 for ncn_progname in ar; do
8778 if test -n "$ncn_target_tool_prefix"; then
8779 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8781 echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8783 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 if test -n "$AR_FOR_TARGET"; then
8787 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8805 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8806 if test -n "$AR_FOR_TARGET"; then
8807 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8808 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8815 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817 set dummy ${ncn_progname}; ac_word=$2
8818 echo "$as_me:$LINENO: checking for $ac_word" >&5
8819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8820 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 if test -n "$AR_FOR_TARGET"; then
8824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8833 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8837 done
8838 done
8842 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8843 if test -n "$AR_FOR_TARGET"; then
8844 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8845 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8852 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8853 done
8856 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8857 set dummy ar
8858 if test $build = $target ; then
8859 AR_FOR_TARGET="$2"
8860 else
8861 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8865 else
8866 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8872 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8873 if test -n "$with_build_time_tools"; then
8874 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8875 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8876 if test -x $with_build_time_tools/as; then
8877 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8878 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8879 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8880 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8881 else
8882 echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8885 elif test $build != $host && test $have_gcc_for_target = yes; then
8886 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8887 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8888 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8891 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8892 # Extract the first word of "as", so it can be a program name with args.
8893 set dummy as; ac_word=$2
8894 echo "$as_me:$LINENO: checking for $ac_word" >&5
8895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8896 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 case $AS_FOR_TARGET in
8900 [\\/]* | ?:[\\/]*)
8901 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $gcc_cv_tool_dirs
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8915 done
8916 done
8919 esac
8921 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8923 if test -n "$AS_FOR_TARGET"; then
8924 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8925 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8926 else
8927 echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8932 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8935 if test -n "$AS_FOR_TARGET"; then
8936 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8937 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8938 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8941 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8942 for ncn_progname in as; do
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944 set dummy ${ncn_progname}; ac_word=$2
8945 echo "$as_me:$LINENO: checking for $ac_word" >&5
8946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8947 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 if test -n "$AS_FOR_TARGET"; then
8951 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8964 done
8965 done
8969 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8970 if test -n "$AS_FOR_TARGET"; then
8971 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8972 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975 echo "${ECHO_T}no" >&6
8978 done
8981 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
8982 for ncn_progname in as; do
8983 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8984 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8985 if test -x $with_build_time_tools/${ncn_progname}; then
8986 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8987 echo "$as_me:$LINENO: result: yes" >&5
8988 echo "${ECHO_T}yes" >&6
8989 break
8990 else
8991 echo "$as_me:$LINENO: result: no" >&5
8992 echo "${ECHO_T}no" >&6
8994 done
8997 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8998 for ncn_progname in as; do
8999 if test -n "$ncn_target_tool_prefix"; then
9000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9002 echo "$as_me:$LINENO: checking for $ac_word" >&5
9003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9004 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007 if test -n "$AS_FOR_TARGET"; then
9008 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9021 done
9022 done
9026 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9027 if test -n "$AS_FOR_TARGET"; then
9028 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9029 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9030 else
9031 echo "$as_me:$LINENO: result: no" >&5
9032 echo "${ECHO_T}no" >&6
9036 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9038 set dummy ${ncn_progname}; ac_word=$2
9039 echo "$as_me:$LINENO: checking for $ac_word" >&5
9040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9041 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044 if test -n "$AS_FOR_TARGET"; then
9045 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9058 done
9059 done
9063 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9064 if test -n "$AS_FOR_TARGET"; then
9065 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9066 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9067 else
9068 echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9073 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9074 done
9077 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9078 set dummy as
9079 if test $build = $target ; then
9080 AS_FOR_TARGET="$2"
9081 else
9082 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9086 else
9087 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9093 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9094 if test -n "$with_build_time_tools"; then
9095 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9096 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9097 if test -x $with_build_time_tools/dlltool; then
9098 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9099 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9100 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9101 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9102 else
9103 echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6
9106 elif test $build != $host && test $have_gcc_for_target = yes; then
9107 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9108 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
9109 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9112 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9113 # Extract the first word of "dlltool", so it can be a program name with args.
9114 set dummy dlltool; ac_word=$2
9115 echo "$as_me:$LINENO: checking for $ac_word" >&5
9116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9117 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 case $DLLTOOL_FOR_TARGET in
9121 [\\/]* | ?:[\\/]*)
9122 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $gcc_cv_tool_dirs
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9140 esac
9142 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9144 if test -n "$DLLTOOL_FOR_TARGET"; then
9145 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9146 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9153 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9156 if test -n "$DLLTOOL_FOR_TARGET"; then
9157 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9158 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9159 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9162 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9163 for ncn_progname in dlltool; do
9164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9165 set dummy ${ncn_progname}; ac_word=$2
9166 echo "$as_me:$LINENO: checking for $ac_word" >&5
9167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9168 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171 if test -n "$DLLTOOL_FOR_TARGET"; then
9172 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9173 else
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in $PATH
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9181 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9185 done
9186 done
9190 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9191 if test -n "$DLLTOOL_FOR_TARGET"; then
9192 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9193 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9194 else
9195 echo "$as_me:$LINENO: result: no" >&5
9196 echo "${ECHO_T}no" >&6
9199 done
9202 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9203 for ncn_progname in dlltool; do
9204 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9205 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9206 if test -x $with_build_time_tools/${ncn_progname}; then
9207 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9208 echo "$as_me:$LINENO: result: yes" >&5
9209 echo "${ECHO_T}yes" >&6
9210 break
9211 else
9212 echo "$as_me:$LINENO: result: no" >&5
9213 echo "${ECHO_T}no" >&6
9215 done
9218 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9219 for ncn_progname in dlltool; do
9220 if test -n "$ncn_target_tool_prefix"; then
9221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9222 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9223 echo "$as_me:$LINENO: checking for $ac_word" >&5
9224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9225 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228 if test -n "$DLLTOOL_FOR_TARGET"; then
9229 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9230 else
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in $PATH
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9242 done
9243 done
9247 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9248 if test -n "$DLLTOOL_FOR_TARGET"; then
9249 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9250 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9251 else
9252 echo "$as_me:$LINENO: result: no" >&5
9253 echo "${ECHO_T}no" >&6
9257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259 set dummy ${ncn_progname}; ac_word=$2
9260 echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 if test -n "$DLLTOOL_FOR_TARGET"; then
9266 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9267 else
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9279 done
9280 done
9284 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9285 if test -n "$DLLTOOL_FOR_TARGET"; then
9286 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9287 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9288 else
9289 echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6
9294 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9295 done
9298 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9299 set dummy dlltool
9300 if test $build = $target ; then
9301 DLLTOOL_FOR_TARGET="$2"
9302 else
9303 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9307 else
9308 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9314 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9315 if test -n "$with_build_time_tools"; then
9316 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9317 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9318 if test -x $with_build_time_tools/ld; then
9319 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9320 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9321 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9322 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9323 else
9324 echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6
9327 elif test $build != $host && test $have_gcc_for_target = yes; then
9328 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9329 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9330 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9333 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9334 # Extract the first word of "ld", so it can be a program name with args.
9335 set dummy ld; ac_word=$2
9336 echo "$as_me:$LINENO: checking for $ac_word" >&5
9337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9338 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341 case $LD_FOR_TARGET in
9342 [\\/]* | ?:[\\/]*)
9343 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $gcc_cv_tool_dirs
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9361 esac
9363 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9365 if test -n "$LD_FOR_TARGET"; then
9366 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9367 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9368 else
9369 echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9374 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9377 if test -n "$LD_FOR_TARGET"; then
9378 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9379 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9380 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9383 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9384 for ncn_progname in ld; do
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386 set dummy ${ncn_progname}; ac_word=$2
9387 echo "$as_me:$LINENO: checking for $ac_word" >&5
9388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9389 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392 if test -n "$LD_FOR_TARGET"; then
9393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9394 else
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9406 done
9407 done
9411 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9412 if test -n "$LD_FOR_TARGET"; then
9413 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9414 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9415 else
9416 echo "$as_me:$LINENO: result: no" >&5
9417 echo "${ECHO_T}no" >&6
9420 done
9423 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9424 for ncn_progname in ld; do
9425 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9426 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9427 if test -x $with_build_time_tools/${ncn_progname}; then
9428 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9429 echo "$as_me:$LINENO: result: yes" >&5
9430 echo "${ECHO_T}yes" >&6
9431 break
9432 else
9433 echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9436 done
9439 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9440 for ncn_progname in ld; do
9441 if test -n "$ncn_target_tool_prefix"; then
9442 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9444 echo "$as_me:$LINENO: checking for $ac_word" >&5
9445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9446 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 if test -n "$LD_FOR_TARGET"; then
9450 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9451 else
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9463 done
9464 done
9468 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9469 if test -n "$LD_FOR_TARGET"; then
9470 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9471 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474 echo "${ECHO_T}no" >&6
9478 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9480 set dummy ${ncn_progname}; ac_word=$2
9481 echo "$as_me:$LINENO: checking for $ac_word" >&5
9482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9483 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486 if test -n "$LD_FOR_TARGET"; then
9487 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9488 else
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9496 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9500 done
9501 done
9505 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9506 if test -n "$LD_FOR_TARGET"; then
9507 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9508 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511 echo "${ECHO_T}no" >&6
9515 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9516 done
9519 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9520 set dummy ld
9521 if test $build = $target ; then
9522 LD_FOR_TARGET="$2"
9523 else
9524 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9528 else
9529 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9535 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9536 if test -n "$with_build_time_tools"; then
9537 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9538 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9539 if test -x $with_build_time_tools/lipo; then
9540 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9541 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9542 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9543 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9544 else
9545 echo "$as_me:$LINENO: result: no" >&5
9546 echo "${ECHO_T}no" >&6
9548 elif test $build != $host && test $have_gcc_for_target = yes; then
9549 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9550 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9551 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9554 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9555 # Extract the first word of "lipo", so it can be a program name with args.
9556 set dummy lipo; ac_word=$2
9557 echo "$as_me:$LINENO: checking for $ac_word" >&5
9558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9559 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 case $LIPO_FOR_TARGET in
9563 [\\/]* | ?:[\\/]*)
9564 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $gcc_cv_tool_dirs
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9578 done
9579 done
9582 esac
9584 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9586 if test -n "$LIPO_FOR_TARGET"; then
9587 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9588 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591 echo "${ECHO_T}no" >&6
9595 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9598 if test -n "$LIPO_FOR_TARGET"; then
9599 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9600 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9601 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9604 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9605 for ncn_progname in lipo; do
9606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9607 set dummy ${ncn_progname}; ac_word=$2
9608 echo "$as_me:$LINENO: checking for $ac_word" >&5
9609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9610 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 if test -n "$LIPO_FOR_TARGET"; then
9614 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9615 else
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $PATH
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
9622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9627 done
9628 done
9632 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9633 if test -n "$LIPO_FOR_TARGET"; then
9634 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9635 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9636 else
9637 echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9641 done
9644 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9645 for ncn_progname in lipo; do
9646 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9647 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9648 if test -x $with_build_time_tools/${ncn_progname}; then
9649 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9650 echo "$as_me:$LINENO: result: yes" >&5
9651 echo "${ECHO_T}yes" >&6
9652 break
9653 else
9654 echo "$as_me:$LINENO: result: no" >&5
9655 echo "${ECHO_T}no" >&6
9657 done
9660 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9661 for ncn_progname in lipo; do
9662 if test -n "$ncn_target_tool_prefix"; then
9663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9665 echo "$as_me:$LINENO: checking for $ac_word" >&5
9666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9667 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 if test -n "$LIPO_FOR_TARGET"; then
9671 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9689 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9690 if test -n "$LIPO_FOR_TARGET"; then
9691 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9692 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9693 else
9694 echo "$as_me:$LINENO: result: no" >&5
9695 echo "${ECHO_T}no" >&6
9699 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9701 set dummy ${ncn_progname}; ac_word=$2
9702 echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9704 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 if test -n "$LIPO_FOR_TARGET"; then
9708 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9709 else
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9717 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9726 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9727 if test -n "$LIPO_FOR_TARGET"; then
9728 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9729 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6
9736 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9737 done
9740 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9741 set dummy lipo
9742 if test $build = $target ; then
9743 LIPO_FOR_TARGET="$2"
9744 else
9745 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9749 else
9750 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9756 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9757 if test -n "$with_build_time_tools"; then
9758 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9759 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9760 if test -x $with_build_time_tools/nm; then
9761 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9762 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9763 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9764 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9765 else
9766 echo "$as_me:$LINENO: result: no" >&5
9767 echo "${ECHO_T}no" >&6
9769 elif test $build != $host && test $have_gcc_for_target = yes; then
9770 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9771 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9772 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9775 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9776 # Extract the first word of "nm", so it can be a program name with args.
9777 set dummy nm; ac_word=$2
9778 echo "$as_me:$LINENO: checking for $ac_word" >&5
9779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9780 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 case $NM_FOR_TARGET in
9784 [\\/]* | ?:[\\/]*)
9785 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $gcc_cv_tool_dirs
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9803 esac
9805 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9807 if test -n "$NM_FOR_TARGET"; then
9808 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9809 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9810 else
9811 echo "$as_me:$LINENO: result: no" >&5
9812 echo "${ECHO_T}no" >&6
9816 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9819 if test -n "$NM_FOR_TARGET"; then
9820 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9821 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9822 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9825 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9826 for ncn_progname in nm; do
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828 set dummy ${ncn_progname}; ac_word=$2
9829 echo "$as_me:$LINENO: checking for $ac_word" >&5
9830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9831 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 if test -n "$NM_FOR_TARGET"; then
9835 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9853 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9854 if test -n "$NM_FOR_TARGET"; then
9855 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9856 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9857 else
9858 echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6
9862 done
9865 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9866 for ncn_progname in nm; do
9867 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9868 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9869 if test -x $with_build_time_tools/${ncn_progname}; then
9870 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9871 echo "$as_me:$LINENO: result: yes" >&5
9872 echo "${ECHO_T}yes" >&6
9873 break
9874 else
9875 echo "$as_me:$LINENO: result: no" >&5
9876 echo "${ECHO_T}no" >&6
9878 done
9881 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9882 for ncn_progname in nm; do
9883 if test -n "$ncn_target_tool_prefix"; then
9884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9885 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9886 echo "$as_me:$LINENO: checking for $ac_word" >&5
9887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9888 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 if test -n "$NM_FOR_TARGET"; then
9892 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9905 done
9906 done
9910 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9911 if test -n "$NM_FOR_TARGET"; then
9912 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9913 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9914 else
9915 echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9920 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9922 set dummy ${ncn_progname}; ac_word=$2
9923 echo "$as_me:$LINENO: checking for $ac_word" >&5
9924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9925 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 if test -n "$NM_FOR_TARGET"; then
9929 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9930 else
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9942 done
9943 done
9947 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9948 if test -n "$NM_FOR_TARGET"; then
9949 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9950 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9951 else
9952 echo "$as_me:$LINENO: result: no" >&5
9953 echo "${ECHO_T}no" >&6
9957 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9958 done
9961 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9962 set dummy nm
9963 if test $build = $target ; then
9964 NM_FOR_TARGET="$2"
9965 else
9966 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
9970 else
9971 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9977 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9978 if test -n "$with_build_time_tools"; then
9979 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9980 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
9981 if test -x $with_build_time_tools/objdump; then
9982 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9983 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9984 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9985 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
9986 else
9987 echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9990 elif test $build != $host && test $have_gcc_for_target = yes; then
9991 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9992 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9993 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9996 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9997 # Extract the first word of "objdump", so it can be a program name with args.
9998 set dummy objdump; ac_word=$2
9999 echo "$as_me:$LINENO: checking for $ac_word" >&5
10000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10001 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 case $OBJDUMP_FOR_TARGET in
10005 [\\/]* | ?:[\\/]*)
10006 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $gcc_cv_tool_dirs
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10016 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10020 done
10021 done
10024 esac
10026 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10028 if test -n "$OBJDUMP_FOR_TARGET"; then
10029 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10030 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10031 else
10032 echo "$as_me:$LINENO: result: no" >&5
10033 echo "${ECHO_T}no" >&6
10037 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10040 if test -n "$OBJDUMP_FOR_TARGET"; then
10041 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10042 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10043 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10046 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10047 for ncn_progname in objdump; do
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10049 set dummy ${ncn_progname}; ac_word=$2
10050 echo "$as_me:$LINENO: checking for $ac_word" >&5
10051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 if test -n "$OBJDUMP_FOR_TARGET"; then
10056 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10074 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10075 if test -n "$OBJDUMP_FOR_TARGET"; then
10076 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10077 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10078 else
10079 echo "$as_me:$LINENO: result: no" >&5
10080 echo "${ECHO_T}no" >&6
10083 done
10086 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10087 for ncn_progname in objdump; do
10088 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10089 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10090 if test -x $with_build_time_tools/${ncn_progname}; then
10091 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10092 echo "$as_me:$LINENO: result: yes" >&5
10093 echo "${ECHO_T}yes" >&6
10094 break
10095 else
10096 echo "$as_me:$LINENO: result: no" >&5
10097 echo "${ECHO_T}no" >&6
10099 done
10102 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10103 for ncn_progname in objdump; do
10104 if test -n "$ncn_target_tool_prefix"; then
10105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10106 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10107 echo "$as_me:$LINENO: checking for $ac_word" >&5
10108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10109 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 if test -n "$OBJDUMP_FOR_TARGET"; then
10113 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10114 else
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10131 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10132 if test -n "$OBJDUMP_FOR_TARGET"; then
10133 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10134 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10135 else
10136 echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10141 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10143 set dummy ${ncn_progname}; ac_word=$2
10144 echo "$as_me:$LINENO: checking for $ac_word" >&5
10145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10146 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149 if test -n "$OBJDUMP_FOR_TARGET"; then
10150 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10151 else
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10163 done
10164 done
10168 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10169 if test -n "$OBJDUMP_FOR_TARGET"; then
10170 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10171 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10172 else
10173 echo "$as_me:$LINENO: result: no" >&5
10174 echo "${ECHO_T}no" >&6
10178 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10179 done
10182 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10183 set dummy objdump
10184 if test $build = $target ; then
10185 OBJDUMP_FOR_TARGET="$2"
10186 else
10187 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10191 else
10192 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10198 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10199 if test -n "$with_build_time_tools"; then
10200 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10201 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10202 if test -x $with_build_time_tools/ranlib; then
10203 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10204 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10205 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10206 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10207 else
10208 echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6
10211 elif test $build != $host && test $have_gcc_for_target = yes; then
10212 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10213 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10214 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10217 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10218 # Extract the first word of "ranlib", so it can be a program name with args.
10219 set dummy ranlib; ac_word=$2
10220 echo "$as_me:$LINENO: checking for $ac_word" >&5
10221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 case $RANLIB_FOR_TARGET in
10226 [\\/]* | ?:[\\/]*)
10227 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $gcc_cv_tool_dirs
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10241 done
10242 done
10245 esac
10247 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10249 if test -n "$RANLIB_FOR_TARGET"; then
10250 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10251 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254 echo "${ECHO_T}no" >&6
10258 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10261 if test -n "$RANLIB_FOR_TARGET"; then
10262 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10263 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10264 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10267 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10268 for ncn_progname in ranlib; do
10269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10270 set dummy ${ncn_progname}; ac_word=$2
10271 echo "$as_me:$LINENO: checking for $ac_word" >&5
10272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10273 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 if test -n "$RANLIB_FOR_TARGET"; then
10277 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10295 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10296 if test -n "$RANLIB_FOR_TARGET"; then
10297 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10298 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10299 else
10300 echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6
10304 done
10307 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10308 for ncn_progname in ranlib; do
10309 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10310 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10311 if test -x $with_build_time_tools/${ncn_progname}; then
10312 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10313 echo "$as_me:$LINENO: result: yes" >&5
10314 echo "${ECHO_T}yes" >&6
10315 break
10316 else
10317 echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6
10320 done
10323 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10324 for ncn_progname in ranlib; do
10325 if test -n "$ncn_target_tool_prefix"; then
10326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10327 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10328 echo "$as_me:$LINENO: checking for $ac_word" >&5
10329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10330 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333 if test -n "$RANLIB_FOR_TARGET"; then
10334 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10335 else
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10347 done
10348 done
10352 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10353 if test -n "$RANLIB_FOR_TARGET"; then
10354 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10355 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10356 else
10357 echo "$as_me:$LINENO: result: no" >&5
10358 echo "${ECHO_T}no" >&6
10362 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10364 set dummy ${ncn_progname}; ac_word=$2
10365 echo "$as_me:$LINENO: checking for $ac_word" >&5
10366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10367 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 if test -n "$RANLIB_FOR_TARGET"; then
10371 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10372 else
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10384 done
10385 done
10389 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10390 if test -n "$RANLIB_FOR_TARGET"; then
10391 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10392 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10393 else
10394 echo "$as_me:$LINENO: result: no" >&5
10395 echo "${ECHO_T}no" >&6
10399 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10400 done
10403 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10404 set dummy ranlib
10405 if test $build = $target ; then
10406 RANLIB_FOR_TARGET="$2"
10407 else
10408 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10412 else
10413 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10419 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10420 if test -n "$with_build_time_tools"; then
10421 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10422 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10423 if test -x $with_build_time_tools/strip; then
10424 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10425 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10426 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10427 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10428 else
10429 echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6
10432 elif test $build != $host && test $have_gcc_for_target = yes; then
10433 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10434 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10435 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10438 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10439 # Extract the first word of "strip", so it can be a program name with args.
10440 set dummy strip; ac_word=$2
10441 echo "$as_me:$LINENO: checking for $ac_word" >&5
10442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10443 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446 case $STRIP_FOR_TARGET in
10447 [\\/]* | ?:[\\/]*)
10448 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $gcc_cv_tool_dirs
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10462 done
10463 done
10466 esac
10468 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10470 if test -n "$STRIP_FOR_TARGET"; then
10471 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10472 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10473 else
10474 echo "$as_me:$LINENO: result: no" >&5
10475 echo "${ECHO_T}no" >&6
10479 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10482 if test -n "$STRIP_FOR_TARGET"; then
10483 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10484 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10485 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10488 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10489 for ncn_progname in strip; do
10490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10491 set dummy ${ncn_progname}; ac_word=$2
10492 echo "$as_me:$LINENO: checking for $ac_word" >&5
10493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10494 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497 if test -n "$STRIP_FOR_TARGET"; then
10498 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10499 else
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10511 done
10512 done
10516 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10517 if test -n "$STRIP_FOR_TARGET"; then
10518 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10519 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10520 else
10521 echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6
10525 done
10528 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10529 for ncn_progname in strip; do
10530 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10531 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10532 if test -x $with_build_time_tools/${ncn_progname}; then
10533 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10534 echo "$as_me:$LINENO: result: yes" >&5
10535 echo "${ECHO_T}yes" >&6
10536 break
10537 else
10538 echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10541 done
10544 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10545 for ncn_progname in strip; do
10546 if test -n "$ncn_target_tool_prefix"; then
10547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10549 echo "$as_me:$LINENO: checking for $ac_word" >&5
10550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10551 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 if test -n "$STRIP_FOR_TARGET"; then
10555 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10556 else
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10573 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10574 if test -n "$STRIP_FOR_TARGET"; then
10575 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10576 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6
10583 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10585 set dummy ${ncn_progname}; ac_word=$2
10586 echo "$as_me:$LINENO: checking for $ac_word" >&5
10587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10588 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 if test -n "$STRIP_FOR_TARGET"; then
10592 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10610 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10611 if test -n "$STRIP_FOR_TARGET"; then
10612 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10613 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10614 else
10615 echo "$as_me:$LINENO: result: no" >&5
10616 echo "${ECHO_T}no" >&6
10620 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10621 done
10624 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10625 set dummy strip
10626 if test $build = $target ; then
10627 STRIP_FOR_TARGET="$2"
10628 else
10629 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10633 else
10634 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10640 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10641 if test -n "$with_build_time_tools"; then
10642 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10643 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10644 if test -x $with_build_time_tools/windres; then
10645 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10646 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10647 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10648 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10649 else
10650 echo "$as_me:$LINENO: result: no" >&5
10651 echo "${ECHO_T}no" >&6
10653 elif test $build != $host && test $have_gcc_for_target = yes; then
10654 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10655 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10656 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10659 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10660 # Extract the first word of "windres", so it can be a program name with args.
10661 set dummy windres; ac_word=$2
10662 echo "$as_me:$LINENO: checking for $ac_word" >&5
10663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 case $WINDRES_FOR_TARGET in
10668 [\\/]* | ?:[\\/]*)
10669 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $gcc_cv_tool_dirs
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10687 esac
10689 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10691 if test -n "$WINDRES_FOR_TARGET"; then
10692 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10693 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10700 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10703 if test -n "$WINDRES_FOR_TARGET"; then
10704 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10705 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10706 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10709 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10710 for ncn_progname in windres; do
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_progname}; ac_word=$2
10713 echo "$as_me:$LINENO: checking for $ac_word" >&5
10714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10715 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 if test -n "$WINDRES_FOR_TARGET"; then
10719 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10737 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10738 if test -n "$WINDRES_FOR_TARGET"; then
10739 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10740 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10741 else
10742 echo "$as_me:$LINENO: result: no" >&5
10743 echo "${ECHO_T}no" >&6
10746 done
10749 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10750 for ncn_progname in windres; do
10751 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10752 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10753 if test -x $with_build_time_tools/${ncn_progname}; then
10754 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10755 echo "$as_me:$LINENO: result: yes" >&5
10756 echo "${ECHO_T}yes" >&6
10757 break
10758 else
10759 echo "$as_me:$LINENO: result: no" >&5
10760 echo "${ECHO_T}no" >&6
10762 done
10765 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10766 for ncn_progname in windres; do
10767 if test -n "$ncn_target_tool_prefix"; then
10768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10769 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10770 echo "$as_me:$LINENO: checking for $ac_word" >&5
10771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10772 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 if test -n "$WINDRES_FOR_TARGET"; then
10776 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10789 done
10790 done
10794 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10795 if test -n "$WINDRES_FOR_TARGET"; then
10796 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10797 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10798 else
10799 echo "$as_me:$LINENO: result: no" >&5
10800 echo "${ECHO_T}no" >&6
10804 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10806 set dummy ${ncn_progname}; ac_word=$2
10807 echo "$as_me:$LINENO: checking for $ac_word" >&5
10808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10809 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 if test -n "$WINDRES_FOR_TARGET"; then
10813 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10814 else
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10822 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10826 done
10827 done
10831 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10832 if test -n "$WINDRES_FOR_TARGET"; then
10833 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10834 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10835 else
10836 echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6
10841 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10842 done
10845 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10846 set dummy windres
10847 if test $build = $target ; then
10848 WINDRES_FOR_TARGET="$2"
10849 else
10850 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10854 else
10855 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10861 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10862 if test -n "$with_build_time_tools"; then
10863 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10864 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10865 if test -x $with_build_time_tools/windmc; then
10866 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10867 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10868 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10869 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10870 else
10871 echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6
10874 elif test $build != $host && test $have_gcc_for_target = yes; then
10875 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10876 test $WINDMC_FOR_TARGET=windmc && WINDMC_FOR_TARGET=
10877 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10880 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10881 # Extract the first word of "windmc", so it can be a program name with args.
10882 set dummy windmc; ac_word=$2
10883 echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 case $WINDMC_FOR_TARGET in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $gcc_cv_tool_dirs
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10908 esac
10910 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10912 if test -n "$WINDMC_FOR_TARGET"; then
10913 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10914 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10915 else
10916 echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6
10921 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10924 if test -n "$WINDMC_FOR_TARGET"; then
10925 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10926 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10927 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10930 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10931 for ncn_progname in windmc; do
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 echo "$as_me:$LINENO: checking for $ac_word" >&5
10935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10936 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 if test -n "$WINDMC_FOR_TARGET"; then
10940 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10941 else
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10953 done
10954 done
10958 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10959 if test -n "$WINDMC_FOR_TARGET"; then
10960 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10961 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10962 else
10963 echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10967 done
10970 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10971 for ncn_progname in windmc; do
10972 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10973 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10974 if test -x $with_build_time_tools/${ncn_progname}; then
10975 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10976 echo "$as_me:$LINENO: result: yes" >&5
10977 echo "${ECHO_T}yes" >&6
10978 break
10979 else
10980 echo "$as_me:$LINENO: result: no" >&5
10981 echo "${ECHO_T}no" >&6
10983 done
10986 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10987 for ncn_progname in windmc; do
10988 if test -n "$ncn_target_tool_prefix"; then
10989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10991 echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10993 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 if test -n "$WINDMC_FOR_TARGET"; then
10997 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11006 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11015 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11016 if test -n "$WINDMC_FOR_TARGET"; then
11017 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11018 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11019 else
11020 echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6
11025 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027 set dummy ${ncn_progname}; ac_word=$2
11028 echo "$as_me:$LINENO: checking for $ac_word" >&5
11029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11030 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 if test -n "$WINDMC_FOR_TARGET"; then
11034 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11047 done
11048 done
11052 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11053 if test -n "$WINDMC_FOR_TARGET"; then
11054 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11055 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11056 else
11057 echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6
11062 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11063 done
11066 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11067 set dummy windmc
11068 if test $build = $target ; then
11069 WINDMC_FOR_TARGET="$2"
11070 else
11071 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11075 else
11076 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11080 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11082 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11083 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11084 if test "x${build}" != "x${host}" ; then
11085 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11086 # We already found the complete path
11087 ac_dir=`dirname $AR_FOR_TARGET`
11088 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11089 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11090 else
11091 # Canadian cross, just use what we found
11092 echo "$as_me:$LINENO: result: pre-installed" >&5
11093 echo "${ECHO_T}pre-installed" >&6
11095 else
11096 ok=yes
11097 case " ${configdirs} " in
11098 *" binutils "*) ;;
11099 *) ok=no ;;
11100 esac
11102 if test $ok = yes; then
11103 # An in-tree tool is available and we can use it
11104 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11105 echo "$as_me:$LINENO: result: just compiled" >&5
11106 echo "${ECHO_T}just compiled" >&6
11107 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11108 # We already found the complete path
11109 ac_dir=`dirname $AR_FOR_TARGET`
11110 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11111 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11112 elif test "x$target" = "x$host"; then
11113 # We can use an host tool
11114 AR_FOR_TARGET='$(AR)'
11115 echo "$as_me:$LINENO: result: host tool" >&5
11116 echo "${ECHO_T}host tool" >&6
11117 else
11118 # We need a cross tool
11119 echo "$as_me:$LINENO: result: pre-installed" >&5
11120 echo "${ECHO_T}pre-installed" >&6
11124 echo "$as_me:$LINENO: checking where to find the target as" >&5
11125 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11126 if test "x${build}" != "x${host}" ; then
11127 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11128 # We already found the complete path
11129 ac_dir=`dirname $AS_FOR_TARGET`
11130 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11131 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11132 else
11133 # Canadian cross, just use what we found
11134 echo "$as_me:$LINENO: result: pre-installed" >&5
11135 echo "${ECHO_T}pre-installed" >&6
11137 else
11138 ok=yes
11139 case " ${configdirs} " in
11140 *" gas "*) ;;
11141 *) ok=no ;;
11142 esac
11144 if test $ok = yes; then
11145 # An in-tree tool is available and we can use it
11146 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11147 echo "$as_me:$LINENO: result: just compiled" >&5
11148 echo "${ECHO_T}just compiled" >&6
11149 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11150 # We already found the complete path
11151 ac_dir=`dirname $AS_FOR_TARGET`
11152 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11153 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11154 elif test "x$target" = "x$host"; then
11155 # We can use an host tool
11156 AS_FOR_TARGET='$(AS)'
11157 echo "$as_me:$LINENO: result: host tool" >&5
11158 echo "${ECHO_T}host tool" >&6
11159 else
11160 # We need a cross tool
11161 echo "$as_me:$LINENO: result: pre-installed" >&5
11162 echo "${ECHO_T}pre-installed" >&6
11166 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11167 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11168 if test "x${build}" != "x${host}" ; then
11169 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11170 # We already found the complete path
11171 ac_dir=`dirname $CC_FOR_TARGET`
11172 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11173 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11174 else
11175 # Canadian cross, just use what we found
11176 echo "$as_me:$LINENO: result: pre-installed" >&5
11177 echo "${ECHO_T}pre-installed" >&6
11179 else
11180 ok=yes
11181 case " ${configdirs} " in
11182 *" gcc "*) ;;
11183 *) ok=no ;;
11184 esac
11186 if test $ok = yes; then
11187 # An in-tree tool is available and we can use it
11188 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11189 echo "$as_me:$LINENO: result: just compiled" >&5
11190 echo "${ECHO_T}just compiled" >&6
11191 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11192 # We already found the complete path
11193 ac_dir=`dirname $CC_FOR_TARGET`
11194 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11195 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11196 elif test "x$target" = "x$host"; then
11197 # We can use an host tool
11198 CC_FOR_TARGET='$(CC)'
11199 echo "$as_me:$LINENO: result: host tool" >&5
11200 echo "${ECHO_T}host tool" >&6
11201 else
11202 # We need a cross tool
11203 echo "$as_me:$LINENO: result: pre-installed" >&5
11204 echo "${ECHO_T}pre-installed" >&6
11208 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11209 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11210 if test "x${build}" != "x${host}" ; then
11211 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11212 # We already found the complete path
11213 ac_dir=`dirname $CXX_FOR_TARGET`
11214 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11215 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11216 else
11217 # Canadian cross, just use what we found
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219 echo "${ECHO_T}pre-installed" >&6
11221 else
11222 ok=yes
11223 case " ${configdirs} " in
11224 *" gcc "*) ;;
11225 *) ok=no ;;
11226 esac
11227 case ,${enable_languages}, in
11228 *,c++,*) ;;
11229 *) ok=no ;;
11230 esac
11231 if test $ok = yes; then
11232 # An in-tree tool is available and we can use it
11233 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'
11234 echo "$as_me:$LINENO: result: just compiled" >&5
11235 echo "${ECHO_T}just compiled" >&6
11236 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11237 # We already found the complete path
11238 ac_dir=`dirname $CXX_FOR_TARGET`
11239 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11240 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11241 elif test "x$target" = "x$host"; then
11242 # We can use an host tool
11243 CXX_FOR_TARGET='$(CXX)'
11244 echo "$as_me:$LINENO: result: host tool" >&5
11245 echo "${ECHO_T}host tool" >&6
11246 else
11247 # We need a cross tool
11248 echo "$as_me:$LINENO: result: pre-installed" >&5
11249 echo "${ECHO_T}pre-installed" >&6
11253 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11254 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11255 if test "x${build}" != "x${host}" ; then
11256 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11257 # We already found the complete path
11258 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11259 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11260 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11261 else
11262 # Canadian cross, just use what we found
11263 echo "$as_me:$LINENO: result: pre-installed" >&5
11264 echo "${ECHO_T}pre-installed" >&6
11266 else
11267 ok=yes
11268 case " ${configdirs} " in
11269 *" gcc "*) ;;
11270 *) ok=no ;;
11271 esac
11272 case ,${enable_languages}, in
11273 *,c++,*) ;;
11274 *) ok=no ;;
11275 esac
11276 if test $ok = yes; then
11277 # An in-tree tool is available and we can use it
11278 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'
11279 echo "$as_me:$LINENO: result: just compiled" >&5
11280 echo "${ECHO_T}just compiled" >&6
11281 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11282 # We already found the complete path
11283 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11284 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11285 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11286 elif test "x$target" = "x$host"; then
11287 # We can use an host tool
11288 RAW_CXX_FOR_TARGET='$(CXX)'
11289 echo "$as_me:$LINENO: result: host tool" >&5
11290 echo "${ECHO_T}host tool" >&6
11291 else
11292 # We need a cross tool
11293 echo "$as_me:$LINENO: result: pre-installed" >&5
11294 echo "${ECHO_T}pre-installed" >&6
11298 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11299 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11300 if test "x${build}" != "x${host}" ; then
11301 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11302 # We already found the complete path
11303 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11304 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11305 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11306 else
11307 # Canadian cross, just use what we found
11308 echo "$as_me:$LINENO: result: pre-installed" >&5
11309 echo "${ECHO_T}pre-installed" >&6
11311 else
11312 ok=yes
11313 case " ${configdirs} " in
11314 *" binutils "*) ;;
11315 *) ok=no ;;
11316 esac
11318 if test $ok = yes; then
11319 # An in-tree tool is available and we can use it
11320 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11321 echo "$as_me:$LINENO: result: just compiled" >&5
11322 echo "${ECHO_T}just compiled" >&6
11323 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11324 # We already found the complete path
11325 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11326 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11327 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11328 elif test "x$target" = "x$host"; then
11329 # We can use an host tool
11330 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11331 echo "$as_me:$LINENO: result: host tool" >&5
11332 echo "${ECHO_T}host tool" >&6
11333 else
11334 # We need a cross tool
11335 echo "$as_me:$LINENO: result: pre-installed" >&5
11336 echo "${ECHO_T}pre-installed" >&6
11340 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11341 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11342 if test "x${build}" != "x${host}" ; then
11343 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11344 # We already found the complete path
11345 ac_dir=`dirname $GCC_FOR_TARGET`
11346 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11347 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11348 else
11349 # Canadian cross, just use what we found
11350 echo "$as_me:$LINENO: result: pre-installed" >&5
11351 echo "${ECHO_T}pre-installed" >&6
11353 else
11354 ok=yes
11355 case " ${configdirs} " in
11356 *" gcc "*) ;;
11357 *) ok=no ;;
11358 esac
11360 if test $ok = yes; then
11361 # An in-tree tool is available and we can use it
11362 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11363 echo "$as_me:$LINENO: result: just compiled" >&5
11364 echo "${ECHO_T}just compiled" >&6
11365 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11366 # We already found the complete path
11367 ac_dir=`dirname $GCC_FOR_TARGET`
11368 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11369 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11370 elif test "x$target" = "x$host"; then
11371 # We can use an host tool
11372 GCC_FOR_TARGET='$()'
11373 echo "$as_me:$LINENO: result: host tool" >&5
11374 echo "${ECHO_T}host tool" >&6
11375 else
11376 # We need a cross tool
11377 echo "$as_me:$LINENO: result: pre-installed" >&5
11378 echo "${ECHO_T}pre-installed" >&6
11382 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11383 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11384 if test "x${build}" != "x${host}" ; then
11385 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11386 # We already found the complete path
11387 ac_dir=`dirname $GCJ_FOR_TARGET`
11388 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11389 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11390 else
11391 # Canadian cross, just use what we found
11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393 echo "${ECHO_T}pre-installed" >&6
11395 else
11396 ok=yes
11397 case " ${configdirs} " in
11398 *" gcc "*) ;;
11399 *) ok=no ;;
11400 esac
11401 case ,${enable_languages}, in
11402 *,java,*) ;;
11403 *) ok=no ;;
11404 esac
11405 if test $ok = yes; then
11406 # An in-tree tool is available and we can use it
11407 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11408 echo "$as_me:$LINENO: result: just compiled" >&5
11409 echo "${ECHO_T}just compiled" >&6
11410 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11411 # We already found the complete path
11412 ac_dir=`dirname $GCJ_FOR_TARGET`
11413 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11414 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11415 elif test "x$target" = "x$host"; then
11416 # We can use an host tool
11417 GCJ_FOR_TARGET='$(GCJ)'
11418 echo "$as_me:$LINENO: result: host tool" >&5
11419 echo "${ECHO_T}host tool" >&6
11420 else
11421 # We need a cross tool
11422 echo "$as_me:$LINENO: result: pre-installed" >&5
11423 echo "${ECHO_T}pre-installed" >&6
11427 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11428 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11429 if test "x${build}" != "x${host}" ; then
11430 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11431 # We already found the complete path
11432 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11433 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11434 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11435 else
11436 # Canadian cross, just use what we found
11437 echo "$as_me:$LINENO: result: pre-installed" >&5
11438 echo "${ECHO_T}pre-installed" >&6
11440 else
11441 ok=yes
11442 case " ${configdirs} " in
11443 *" gcc "*) ;;
11444 *) ok=no ;;
11445 esac
11446 case ,${enable_languages}, in
11447 *,fortran,*) ;;
11448 *) ok=no ;;
11449 esac
11450 if test $ok = yes; then
11451 # An in-tree tool is available and we can use it
11452 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11453 echo "$as_me:$LINENO: result: just compiled" >&5
11454 echo "${ECHO_T}just compiled" >&6
11455 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11456 # We already found the complete path
11457 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11458 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11459 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11460 elif test "x$target" = "x$host"; then
11461 # We can use an host tool
11462 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11463 echo "$as_me:$LINENO: result: host tool" >&5
11464 echo "${ECHO_T}host tool" >&6
11465 else
11466 # We need a cross tool
11467 echo "$as_me:$LINENO: result: pre-installed" >&5
11468 echo "${ECHO_T}pre-installed" >&6
11472 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11473 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11474 if test "x${build}" != "x${host}" ; then
11475 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11476 # We already found the complete path
11477 ac_dir=`dirname $LD_FOR_TARGET`
11478 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11479 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11480 else
11481 # Canadian cross, just use what we found
11482 echo "$as_me:$LINENO: result: pre-installed" >&5
11483 echo "${ECHO_T}pre-installed" >&6
11485 else
11486 ok=yes
11487 case " ${configdirs} " in
11488 *" ld "*) ;;
11489 *) ok=no ;;
11490 esac
11492 if test $ok = yes; then
11493 # An in-tree tool is available and we can use it
11494 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11495 echo "$as_me:$LINENO: result: just compiled" >&5
11496 echo "${ECHO_T}just compiled" >&6
11497 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11498 # We already found the complete path
11499 ac_dir=`dirname $LD_FOR_TARGET`
11500 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11501 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11502 elif test "x$target" = "x$host"; then
11503 # We can use an host tool
11504 LD_FOR_TARGET='$(LD)'
11505 echo "$as_me:$LINENO: result: host tool" >&5
11506 echo "${ECHO_T}host tool" >&6
11507 else
11508 # We need a cross tool
11509 echo "$as_me:$LINENO: result: pre-installed" >&5
11510 echo "${ECHO_T}pre-installed" >&6
11514 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11515 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11516 if test "x${build}" != "x${host}" ; then
11517 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11518 # We already found the complete path
11519 ac_dir=`dirname $LIPO_FOR_TARGET`
11520 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11521 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11522 else
11523 # Canadian cross, just use what we found
11524 echo "$as_me:$LINENO: result: pre-installed" >&5
11525 echo "${ECHO_T}pre-installed" >&6
11527 else
11528 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11529 # We already found the complete path
11530 ac_dir=`dirname $LIPO_FOR_TARGET`
11531 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11532 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11533 elif test "x$target" = "x$host"; then
11534 # We can use an host tool
11535 LIPO_FOR_TARGET='$(LIPO)'
11536 echo "$as_me:$LINENO: result: host tool" >&5
11537 echo "${ECHO_T}host tool" >&6
11538 else
11539 # We need a cross tool
11540 echo "$as_me:$LINENO: result: pre-installed" >&5
11541 echo "${ECHO_T}pre-installed" >&6
11545 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11546 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11547 if test "x${build}" != "x${host}" ; then
11548 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11549 # We already found the complete path
11550 ac_dir=`dirname $NM_FOR_TARGET`
11551 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11552 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11553 else
11554 # Canadian cross, just use what we found
11555 echo "$as_me:$LINENO: result: pre-installed" >&5
11556 echo "${ECHO_T}pre-installed" >&6
11558 else
11559 ok=yes
11560 case " ${configdirs} " in
11561 *" binutils "*) ;;
11562 *) ok=no ;;
11563 esac
11565 if test $ok = yes; then
11566 # An in-tree tool is available and we can use it
11567 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11568 echo "$as_me:$LINENO: result: just compiled" >&5
11569 echo "${ECHO_T}just compiled" >&6
11570 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11571 # We already found the complete path
11572 ac_dir=`dirname $NM_FOR_TARGET`
11573 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11574 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11575 elif test "x$target" = "x$host"; then
11576 # We can use an host tool
11577 NM_FOR_TARGET='$(NM)'
11578 echo "$as_me:$LINENO: result: host tool" >&5
11579 echo "${ECHO_T}host tool" >&6
11580 else
11581 # We need a cross tool
11582 echo "$as_me:$LINENO: result: pre-installed" >&5
11583 echo "${ECHO_T}pre-installed" >&6
11587 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11588 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11589 if test "x${build}" != "x${host}" ; then
11590 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11591 # We already found the complete path
11592 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11593 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11594 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11595 else
11596 # Canadian cross, just use what we found
11597 echo "$as_me:$LINENO: result: pre-installed" >&5
11598 echo "${ECHO_T}pre-installed" >&6
11600 else
11601 ok=yes
11602 case " ${configdirs} " in
11603 *" binutils "*) ;;
11604 *) ok=no ;;
11605 esac
11607 if test $ok = yes; then
11608 # An in-tree tool is available and we can use it
11609 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11610 echo "$as_me:$LINENO: result: just compiled" >&5
11611 echo "${ECHO_T}just compiled" >&6
11612 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11613 # We already found the complete path
11614 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11615 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11616 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11617 elif test "x$target" = "x$host"; then
11618 # We can use an host tool
11619 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11620 echo "$as_me:$LINENO: result: host tool" >&5
11621 echo "${ECHO_T}host tool" >&6
11622 else
11623 # We need a cross tool
11624 echo "$as_me:$LINENO: result: pre-installed" >&5
11625 echo "${ECHO_T}pre-installed" >&6
11629 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11630 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11631 if test "x${build}" != "x${host}" ; then
11632 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11633 # We already found the complete path
11634 ac_dir=`dirname $RANLIB_FOR_TARGET`
11635 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11636 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11637 else
11638 # Canadian cross, just use what we found
11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640 echo "${ECHO_T}pre-installed" >&6
11642 else
11643 ok=yes
11644 case " ${configdirs} " in
11645 *" binutils "*) ;;
11646 *) ok=no ;;
11647 esac
11649 if test $ok = yes; then
11650 # An in-tree tool is available and we can use it
11651 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11652 echo "$as_me:$LINENO: result: just compiled" >&5
11653 echo "${ECHO_T}just compiled" >&6
11654 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11655 # We already found the complete path
11656 ac_dir=`dirname $RANLIB_FOR_TARGET`
11657 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11658 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11659 elif test "x$target" = "x$host"; then
11660 # We can use an host tool
11661 RANLIB_FOR_TARGET='$(RANLIB)'
11662 echo "$as_me:$LINENO: result: host tool" >&5
11663 echo "${ECHO_T}host tool" >&6
11664 else
11665 # We need a cross tool
11666 echo "$as_me:$LINENO: result: pre-installed" >&5
11667 echo "${ECHO_T}pre-installed" >&6
11671 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11672 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11673 if test "x${build}" != "x${host}" ; then
11674 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11675 # We already found the complete path
11676 ac_dir=`dirname $STRIP_FOR_TARGET`
11677 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11678 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11679 else
11680 # Canadian cross, just use what we found
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682 echo "${ECHO_T}pre-installed" >&6
11684 else
11685 ok=yes
11686 case " ${configdirs} " in
11687 *" binutils "*) ;;
11688 *) ok=no ;;
11689 esac
11691 if test $ok = yes; then
11692 # An in-tree tool is available and we can use it
11693 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11694 echo "$as_me:$LINENO: result: just compiled" >&5
11695 echo "${ECHO_T}just compiled" >&6
11696 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11697 # We already found the complete path
11698 ac_dir=`dirname $STRIP_FOR_TARGET`
11699 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11700 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11701 elif test "x$target" = "x$host"; then
11702 # We can use an host tool
11703 STRIP_FOR_TARGET='$(STRIP)'
11704 echo "$as_me:$LINENO: result: host tool" >&5
11705 echo "${ECHO_T}host tool" >&6
11706 else
11707 # We need a cross tool
11708 echo "$as_me:$LINENO: result: pre-installed" >&5
11709 echo "${ECHO_T}pre-installed" >&6
11713 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11714 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11715 if test "x${build}" != "x${host}" ; then
11716 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
11718 ac_dir=`dirname $WINDRES_FOR_TARGET`
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11721 else
11722 # Canadian cross, just use what we found
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724 echo "${ECHO_T}pre-installed" >&6
11726 else
11727 ok=yes
11728 case " ${configdirs} " in
11729 *" binutils "*) ;;
11730 *) ok=no ;;
11731 esac
11733 if test $ok = yes; then
11734 # An in-tree tool is available and we can use it
11735 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11736 echo "$as_me:$LINENO: result: just compiled" >&5
11737 echo "${ECHO_T}just compiled" >&6
11738 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11739 # We already found the complete path
11740 ac_dir=`dirname $WINDRES_FOR_TARGET`
11741 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11742 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11743 elif test "x$target" = "x$host"; then
11744 # We can use an host tool
11745 WINDRES_FOR_TARGET='$(WINDRES)'
11746 echo "$as_me:$LINENO: result: host tool" >&5
11747 echo "${ECHO_T}host tool" >&6
11748 else
11749 # We need a cross tool
11750 echo "$as_me:$LINENO: result: pre-installed" >&5
11751 echo "${ECHO_T}pre-installed" >&6
11755 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11756 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11757 if test "x${build}" != "x${host}" ; then
11758 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11759 # We already found the complete path
11760 ac_dir=`dirname $WINDMC_FOR_TARGET`
11761 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11762 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11763 else
11764 # Canadian cross, just use what we found
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766 echo "${ECHO_T}pre-installed" >&6
11768 else
11769 ok=yes
11770 case " ${configdirs} " in
11771 *" binutils "*) ;;
11772 *) ok=no ;;
11773 esac
11775 if test $ok = yes; then
11776 # An in-tree tool is available and we can use it
11777 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11778 echo "$as_me:$LINENO: result: just compiled" >&5
11779 echo "${ECHO_T}just compiled" >&6
11780 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11781 # We already found the complete path
11782 ac_dir=`dirname $WINDMC_FOR_TARGET`
11783 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11784 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11785 elif test "x$target" = "x$host"; then
11786 # We can use an host tool
11787 WINDMC_FOR_TARGET='$(WINDMC)'
11788 echo "$as_me:$LINENO: result: host tool" >&5
11789 echo "${ECHO_T}host tool" >&6
11790 else
11791 # We need a cross tool
11792 echo "$as_me:$LINENO: result: pre-installed" >&5
11793 echo "${ECHO_T}pre-installed" >&6
11801 # Certain tools may need extra flags.
11802 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11803 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11804 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11806 # When building target libraries, except in a Canadian cross, we use
11807 # the same toolchain as the compiler we just built.
11808 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11809 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11810 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11811 if test $host = $build; then
11812 case " $configdirs " in
11813 *" gcc "*)
11814 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11815 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11816 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11818 esac
11825 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11826 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11827 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11828 if test "${enable_maintainer_mode+set}" = set; then
11829 enableval="$enable_maintainer_mode"
11830 USE_MAINTAINER_MODE=$enableval
11831 else
11832 USE_MAINTAINER_MODE=no
11834 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11835 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11838 if test "$USE_MAINTAINER_MODE" = yes; then
11839 MAINTAINER_MODE_TRUE=
11840 MAINTAINER_MODE_FALSE='#'
11841 else
11842 MAINTAINER_MODE_TRUE='#'
11843 MAINTAINER_MODE_FALSE=
11845 MAINT=$MAINTAINER_MODE_TRUE
11847 # ---------------------
11848 # GCC bootstrap support
11849 # ---------------------
11851 # Stage specific cflags for build.
11852 stage1_cflags="-g"
11853 case $build in
11854 vax-*-*)
11855 case ${GCC} in
11856 yes) stage1_cflags="-g -Wa,-J" ;;
11857 *) stage1_cflags="-g -J" ;;
11858 esac ;;
11859 esac
11861 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11862 if test "$GCC" = yes; then
11863 saved_CFLAGS="$CFLAGS"
11865 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11866 CFLAGS="$CFLAGS -fkeep-inline-functions"
11867 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11868 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 #if (__GNUC__ < 3) \
11877 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11878 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11879 #error http://gcc.gnu.org/PR29382
11880 #endif
11883 main ()
11887 return 0;
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } &&
11899 { ac_try='test -z "$ac_c_werror_flag"
11900 || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 echo "$as_me:$LINENO: result: yes" >&5
11913 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 echo "$as_me:$LINENO: result: no" >&5
11919 echo "${ECHO_T}no" >&6
11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 CFLAGS="$saved_CFLAGS"
11928 # Enable --enable-checking in stage1 of the compiler.
11929 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11930 if test "${enable_stage1_checking+set}" = set; then
11931 enableval="$enable_stage1_checking"
11932 stage1_checking=--enable-checking=${enable_stage1_checking}
11933 else
11934 if test "x$enable_checking" = xno; then
11935 stage1_checking=--enable-checking
11936 else
11937 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11942 # Enable -Werror in bootstrap stage2 and later.
11943 # Check whether --enable-werror or --disable-werror was given.
11944 if test "${enable_werror+set}" = set; then
11945 enableval="$enable_werror"
11947 else
11948 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
11949 enable_werror=yes
11950 else
11951 enable_werror=no
11954 case ${enable_werror} in
11955 yes) stage2_werror_flag="--enable-werror-always" ;;
11956 *) stage2_werror_flag="" ;;
11957 esac
11960 # Flags needed to enable html installing and building
11962 # Check whether --with-datarootdir or --without-datarootdir was given.
11963 if test "${with_datarootdir+set}" = set; then
11964 withval="$with_datarootdir"
11965 datarootdir="\${prefix}/${withval}"
11966 else
11967 datarootdir="\${prefix}/share"
11971 # Check whether --with-docdir or --without-docdir was given.
11972 if test "${with_docdir+set}" = set; then
11973 withval="$with_docdir"
11974 docdir="\${prefix}/${withval}"
11975 else
11976 docdir="\${datarootdir}/doc"
11980 # Check whether --with-pdfdir or --without-pdfdir was given.
11981 if test "${with_pdfdir+set}" = set; then
11982 withval="$with_pdfdir"
11983 pdfdir="\${prefix}/${withval}"
11984 else
11985 pdfdir="\${docdir}"
11989 # Check whether --with-htmldir or --without-htmldir was given.
11990 if test "${with_htmldir+set}" = set; then
11991 withval="$with_htmldir"
11992 htmldir="\${prefix}/${withval}"
11993 else
11994 htmldir="\${docdir}"
12002 ac_config_files="$ac_config_files Makefile"
12003 cat >confcache <<\_ACEOF
12004 # This file is a shell script that caches the results of configure
12005 # tests run on this system so they can be shared between configure
12006 # scripts and configure runs, see configure's option --config-cache.
12007 # It is not useful on other systems. If it contains results you don't
12008 # want to keep, you may remove or edit it.
12010 # config.status only pays attention to the cache file if you give it
12011 # the --recheck option to rerun configure.
12013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12015 # following values.
12017 _ACEOF
12019 # The following way of writing the cache mishandles newlines in values,
12020 # but we know of no workaround that is simple, portable, and efficient.
12021 # So, don't put newlines in cache variables' values.
12022 # Ultrix sh set writes to stderr and can't be redirected directly,
12023 # and sets the high bit in the cache file unless we assign to the vars.
12025 (set) 2>&1 |
12026 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12027 *ac_space=\ *)
12028 # `set' does not quote correctly, so add quotes (double-quote
12029 # substitution turns \\\\ into \\, and sed turns \\ into \).
12030 sed -n \
12031 "s/'/'\\\\''/g;
12032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12035 # `set' quotes correctly as required by POSIX, so do not add quotes.
12036 sed -n \
12037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12039 esac;
12041 sed '
12042 t clear
12043 : clear
12044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12045 t end
12046 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12047 : end' >>confcache
12048 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12049 if test -w $cache_file; then
12050 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12051 cat confcache >$cache_file
12052 else
12053 echo "not updating unwritable cache $cache_file"
12056 rm -f confcache
12058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12059 # Let make expand exec_prefix.
12060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12064 # trailing colons and then remove the whole line if VPATH becomes empty
12065 # (actually we leave an empty line to preserve line numbers).
12066 if test "x$srcdir" = x.; then
12067 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12068 s/:*\$(srcdir):*/:/;
12069 s/:*\${srcdir}:*/:/;
12070 s/:*@srcdir@:*/:/;
12071 s/^\([^=]*=[ ]*\):*/\1/;
12072 s/:*$//;
12073 s/^[^=]*=[ ]*$//;
12077 # Transform confdefs.h into DEFS.
12078 # Protect against shell expansion while executing Makefile rules.
12079 # Protect against Makefile macro expansion.
12081 # If the first sed substitution is executed (which looks for macros that
12082 # take arguments), then we branch to the quote section. Otherwise,
12083 # look for a macro that doesn't take arguments.
12084 cat >confdef2opt.sed <<\_ACEOF
12085 t clear
12086 : clear
12087 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12088 t quote
12089 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12090 t quote
12092 : quote
12093 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12094 s,\[,\\&,g
12095 s,\],\\&,g
12096 s,\$,$$,g
12098 _ACEOF
12099 # We use echo to avoid assuming a particular line-breaking character.
12100 # The extra dot is to prevent the shell from consuming trailing
12101 # line-breaks from the sub-command output. A line-break within
12102 # single-quotes doesn't work because, if this script is created in a
12103 # platform that uses two characters for line-breaks (e.g., DOS), tr
12104 # would break.
12105 ac_LF_and_DOT=`echo; echo .`
12106 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12107 rm -f confdef2opt.sed
12110 ac_libobjs=
12111 ac_ltlibobjs=
12112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12113 # 1. Remove the extension, and $U if already installed.
12114 ac_i=`echo "$ac_i" |
12115 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12116 # 2. Add them.
12117 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12118 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12119 done
12120 LIBOBJS=$ac_libobjs
12122 LTLIBOBJS=$ac_ltlibobjs
12126 : ${CONFIG_STATUS=./config.status}
12127 ac_clean_files_save=$ac_clean_files
12128 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12129 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12130 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12131 cat >$CONFIG_STATUS <<_ACEOF
12132 #! $SHELL
12133 # Generated by $as_me.
12134 # Run this file to recreate the current configuration.
12135 # Compiler output produced by configure, useful for debugging
12136 # configure, is in config.log if it exists.
12138 debug=false
12139 ac_cs_recheck=false
12140 ac_cs_silent=false
12141 SHELL=\${CONFIG_SHELL-$SHELL}
12142 _ACEOF
12144 cat >>$CONFIG_STATUS <<\_ACEOF
12145 ## --------------------- ##
12146 ## M4sh Initialization. ##
12147 ## --------------------- ##
12149 # Be Bourne compatible
12150 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12151 emulate sh
12152 NULLCMD=:
12153 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12154 # is contrary to our usage. Disable this feature.
12155 alias -g '${1+"$@"}'='"$@"'
12156 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12157 set -o posix
12159 DUALCASE=1; export DUALCASE # for MKS sh
12161 # Support unset when possible.
12162 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12163 as_unset=unset
12164 else
12165 as_unset=false
12169 # Work around bugs in pre-3.0 UWIN ksh.
12170 $as_unset ENV MAIL MAILPATH
12171 PS1='$ '
12172 PS2='> '
12173 PS4='+ '
12175 # NLS nuisances.
12176 for as_var in \
12177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12179 LC_TELEPHONE LC_TIME
12181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12182 eval $as_var=C; export $as_var
12183 else
12184 $as_unset $as_var
12186 done
12188 # Required to use basename.
12189 if expr a : '\(a\)' >/dev/null 2>&1; then
12190 as_expr=expr
12191 else
12192 as_expr=false
12195 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12196 as_basename=basename
12197 else
12198 as_basename=false
12202 # Name of the executable.
12203 as_me=`$as_basename "$0" ||
12204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12205 X"$0" : 'X\(//\)$' \| \
12206 X"$0" : 'X\(/\)$' \| \
12207 . : '\(.\)' 2>/dev/null ||
12208 echo X/"$0" |
12209 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12210 /^X\/\(\/\/\)$/{ s//\1/; q; }
12211 /^X\/\(\/\).*/{ s//\1/; q; }
12212 s/.*/./; q'`
12215 # PATH needs CR, and LINENO needs CR and PATH.
12216 # Avoid depending upon Character Ranges.
12217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12220 as_cr_digits='0123456789'
12221 as_cr_alnum=$as_cr_Letters$as_cr_digits
12223 # The user is always right.
12224 if test "${PATH_SEPARATOR+set}" != set; then
12225 echo "#! /bin/sh" >conf$$.sh
12226 echo "exit 0" >>conf$$.sh
12227 chmod +x conf$$.sh
12228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12229 PATH_SEPARATOR=';'
12230 else
12231 PATH_SEPARATOR=:
12233 rm -f conf$$.sh
12237 as_lineno_1=$LINENO
12238 as_lineno_2=$LINENO
12239 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12240 test "x$as_lineno_1" != "x$as_lineno_2" &&
12241 test "x$as_lineno_3" = "x$as_lineno_2" || {
12242 # Find who we are. Look in the path if we contain no path at all
12243 # relative or not.
12244 case $0 in
12245 *[\\/]* ) as_myself=$0 ;;
12246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12252 done
12255 esac
12256 # We did not find ourselves, most probably we were run as `sh COMMAND'
12257 # in which case we are not to be found in the path.
12258 if test "x$as_myself" = x; then
12259 as_myself=$0
12261 if test ! -f "$as_myself"; then
12262 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12263 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12264 { (exit 1); exit 1; }; }
12266 case $CONFIG_SHELL in
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for as_base in sh bash ksh sh5; do
12274 case $as_dir in
12276 if ("$as_dir/$as_base" -c '
12277 as_lineno_1=$LINENO
12278 as_lineno_2=$LINENO
12279 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12280 test "x$as_lineno_1" != "x$as_lineno_2" &&
12281 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12282 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12283 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12284 CONFIG_SHELL=$as_dir/$as_base
12285 export CONFIG_SHELL
12286 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12287 fi;;
12288 esac
12289 done
12290 done
12292 esac
12294 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12295 # uniformly replaced by the line number. The first 'sed' inserts a
12296 # line-number line before each line; the second 'sed' does the real
12297 # work. The second script uses 'N' to pair each line-number line
12298 # with the numbered line, and appends trailing '-' during
12299 # substitution so that $LINENO is not a special case at line end.
12300 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12301 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12302 sed '=' <$as_myself |
12303 sed '
12305 s,$,-,
12306 : loop
12307 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12308 t loop
12309 s,-$,,
12310 s,^['$as_cr_digits']*\n,,
12311 ' >$as_me.lineno &&
12312 chmod +x $as_me.lineno ||
12313 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12314 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12315 { (exit 1); exit 1; }; }
12317 # Don't try to exec as it changes $[0], causing all sort of problems
12318 # (the dirname of $[0] is not the place where we might find the
12319 # original and so on. Autoconf is especially sensible to this).
12320 . ./$as_me.lineno
12321 # Exit status is that of the last command.
12322 exit
12326 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12327 *c*,-n*) ECHO_N= ECHO_C='
12328 ' ECHO_T=' ' ;;
12329 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12330 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12331 esac
12333 if expr a : '\(a\)' >/dev/null 2>&1; then
12334 as_expr=expr
12335 else
12336 as_expr=false
12339 rm -f conf$$ conf$$.exe conf$$.file
12340 echo >conf$$.file
12341 if ln -s conf$$.file conf$$ 2>/dev/null; then
12342 # We could just check for DJGPP; but this test a) works b) is more generic
12343 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12344 if test -f conf$$.exe; then
12345 # Don't use ln at all; we don't have any links
12346 as_ln_s='cp -p'
12347 else
12348 as_ln_s='ln -s'
12350 elif ln conf$$.file conf$$ 2>/dev/null; then
12351 as_ln_s=ln
12352 else
12353 as_ln_s='cp -p'
12355 rm -f conf$$ conf$$.exe conf$$.file
12357 if mkdir -p . 2>/dev/null; then
12358 as_mkdir_p=:
12359 else
12360 test -d ./-p && rmdir ./-p
12361 as_mkdir_p=false
12364 as_executable_p="test -f"
12366 # Sed expression to map a string onto a valid CPP name.
12367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12369 # Sed expression to map a string onto a valid variable name.
12370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12373 # IFS
12374 # We need space, tab and new line, in precisely that order.
12375 as_nl='
12377 IFS=" $as_nl"
12379 # CDPATH.
12380 $as_unset CDPATH
12382 exec 6>&1
12384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12385 # report actual input values of CONFIG_FILES etc. instead of their
12386 # values after options handling. Logging --version etc. is OK.
12387 exec 5>>config.log
12389 echo
12390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12391 ## Running $as_me. ##
12392 _ASBOX
12393 } >&5
12394 cat >&5 <<_CSEOF
12396 This file was extended by $as_me, which was
12397 generated by GNU Autoconf 2.59. Invocation command line was
12399 CONFIG_FILES = $CONFIG_FILES
12400 CONFIG_HEADERS = $CONFIG_HEADERS
12401 CONFIG_LINKS = $CONFIG_LINKS
12402 CONFIG_COMMANDS = $CONFIG_COMMANDS
12403 $ $0 $@
12405 _CSEOF
12406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12407 echo >&5
12408 _ACEOF
12410 # Files that config.status was made for.
12411 if test -n "$ac_config_files"; then
12412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12415 if test -n "$ac_config_headers"; then
12416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12419 if test -n "$ac_config_links"; then
12420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12423 if test -n "$ac_config_commands"; then
12424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12427 cat >>$CONFIG_STATUS <<\_ACEOF
12429 ac_cs_usage="\
12430 \`$as_me' instantiates files from templates according to the
12431 current configuration.
12433 Usage: $0 [OPTIONS] [FILE]...
12435 -h, --help print this help, then exit
12436 -V, --version print version number, then exit
12437 -q, --quiet do not print progress messages
12438 -d, --debug don't remove temporary files
12439 --recheck update $as_me by reconfiguring in the same conditions
12440 --file=FILE[:TEMPLATE]
12441 instantiate the configuration file FILE
12443 Configuration files:
12444 $config_files
12446 Report bugs to <bug-autoconf@gnu.org>."
12447 _ACEOF
12449 cat >>$CONFIG_STATUS <<_ACEOF
12450 ac_cs_version="\\
12451 config.status
12452 configured by $0, generated by GNU Autoconf 2.59,
12453 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12455 Copyright (C) 2003 Free Software Foundation, Inc.
12456 This config.status script is free software; the Free Software Foundation
12457 gives unlimited permission to copy, distribute and modify it."
12458 srcdir=$srcdir
12459 INSTALL="$INSTALL"
12460 _ACEOF
12462 cat >>$CONFIG_STATUS <<\_ACEOF
12463 # If no file are specified by the user, then we need to provide default
12464 # value. By we need to know if files were specified by the user.
12465 ac_need_defaults=:
12466 while test $# != 0
12468 case $1 in
12469 --*=*)
12470 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12471 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12472 ac_shift=:
12475 ac_option=$1
12476 ac_optarg=$2
12477 ac_shift=shift
12479 *) # This is not an option, so the user has probably given explicit
12480 # arguments.
12481 ac_option=$1
12482 ac_need_defaults=false;;
12483 esac
12485 case $ac_option in
12486 # Handling of the options.
12487 _ACEOF
12488 cat >>$CONFIG_STATUS <<\_ACEOF
12489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12490 ac_cs_recheck=: ;;
12491 --version | --vers* | -V )
12492 echo "$ac_cs_version"; exit 0 ;;
12493 --he | --h)
12494 # Conflict between --help and --header
12495 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12496 Try \`$0 --help' for more information." >&5
12497 echo "$as_me: error: ambiguous option: $1
12498 Try \`$0 --help' for more information." >&2;}
12499 { (exit 1); exit 1; }; };;
12500 --help | --hel | -h )
12501 echo "$ac_cs_usage"; exit 0 ;;
12502 --debug | --d* | -d )
12503 debug=: ;;
12504 --file | --fil | --fi | --f )
12505 $ac_shift
12506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12507 ac_need_defaults=false;;
12508 --header | --heade | --head | --hea )
12509 $ac_shift
12510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12511 ac_need_defaults=false;;
12512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12514 ac_cs_silent=: ;;
12516 # This is an error.
12517 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12518 Try \`$0 --help' for more information." >&5
12519 echo "$as_me: error: unrecognized option: $1
12520 Try \`$0 --help' for more information." >&2;}
12521 { (exit 1); exit 1; }; } ;;
12523 *) ac_config_targets="$ac_config_targets $1" ;;
12525 esac
12526 shift
12527 done
12529 ac_configure_extra_args=
12531 if $ac_cs_silent; then
12532 exec 6>/dev/null
12533 ac_configure_extra_args="$ac_configure_extra_args --silent"
12536 _ACEOF
12537 cat >>$CONFIG_STATUS <<_ACEOF
12538 if \$ac_cs_recheck; then
12539 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12540 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12543 _ACEOF
12549 cat >>$CONFIG_STATUS <<\_ACEOF
12550 for ac_config_target in $ac_config_targets
12552 case "$ac_config_target" in
12553 # Handling of arguments.
12554 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12555 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12556 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12557 { (exit 1); exit 1; }; };;
12558 esac
12559 done
12561 # If the user did not use the arguments to specify the items to instantiate,
12562 # then the envvar interface is used. Set only those that are not.
12563 # We use the long form for the default assignment because of an extremely
12564 # bizarre bug on SunOS 4.1.3.
12565 if $ac_need_defaults; then
12566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12569 # Have a temporary directory for convenience. Make it in the build tree
12570 # simply because there is no reason to put it here, and in addition,
12571 # creating and moving files from /tmp can sometimes cause problems.
12572 # Create a temporary directory, and hook for its removal unless debugging.
12573 $debug ||
12575 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12576 trap '{ (exit 1); exit 1; }' 1 2 13 15
12579 # Create a (secure) tmp directory for tmp files.
12582 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12583 test -n "$tmp" && test -d "$tmp"
12584 } ||
12586 tmp=./confstat$$-$RANDOM
12587 (umask 077 && mkdir $tmp)
12588 } ||
12590 echo "$me: cannot create a temporary directory in ." >&2
12591 { (exit 1); exit 1; }
12594 _ACEOF
12596 cat >>$CONFIG_STATUS <<_ACEOF
12599 # CONFIG_FILES section.
12602 # No need to generate the scripts if there are no CONFIG_FILES.
12603 # This happens for instance when ./config.status config.h
12604 if test -n "\$CONFIG_FILES"; then
12605 # Protect against being on the right side of a sed subst in config.status.
12606 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12607 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12608 s,@SHELL@,$SHELL,;t t
12609 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12610 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12611 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12612 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12613 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12614 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12615 s,@exec_prefix@,$exec_prefix,;t t
12616 s,@prefix@,$prefix,;t t
12617 s,@program_transform_name@,$program_transform_name,;t t
12618 s,@bindir@,$bindir,;t t
12619 s,@sbindir@,$sbindir,;t t
12620 s,@libexecdir@,$libexecdir,;t t
12621 s,@datadir@,$datadir,;t t
12622 s,@sysconfdir@,$sysconfdir,;t t
12623 s,@sharedstatedir@,$sharedstatedir,;t t
12624 s,@localstatedir@,$localstatedir,;t t
12625 s,@libdir@,$libdir,;t t
12626 s,@includedir@,$includedir,;t t
12627 s,@oldincludedir@,$oldincludedir,;t t
12628 s,@infodir@,$infodir,;t t
12629 s,@mandir@,$mandir,;t t
12630 s,@build_alias@,$build_alias,;t t
12631 s,@host_alias@,$host_alias,;t t
12632 s,@target_alias@,$target_alias,;t t
12633 s,@DEFS@,$DEFS,;t t
12634 s,@ECHO_C@,$ECHO_C,;t t
12635 s,@ECHO_N@,$ECHO_N,;t t
12636 s,@ECHO_T@,$ECHO_T,;t t
12637 s,@LIBS@,$LIBS,;t t
12638 s,@build@,$build,;t t
12639 s,@build_cpu@,$build_cpu,;t t
12640 s,@build_vendor@,$build_vendor,;t t
12641 s,@build_os@,$build_os,;t t
12642 s,@build_noncanonical@,$build_noncanonical,;t t
12643 s,@host_noncanonical@,$host_noncanonical,;t t
12644 s,@target_noncanonical@,$target_noncanonical,;t t
12645 s,@host@,$host,;t t
12646 s,@host_cpu@,$host_cpu,;t t
12647 s,@host_vendor@,$host_vendor,;t t
12648 s,@host_os@,$host_os,;t t
12649 s,@target@,$target,;t t
12650 s,@target_cpu@,$target_cpu,;t t
12651 s,@target_vendor@,$target_vendor,;t t
12652 s,@target_os@,$target_os,;t t
12653 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12654 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12655 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12656 s,@LN@,$LN,;t t
12657 s,@LN_S@,$LN_S,;t t
12658 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12659 s,@build_libsubdir@,$build_libsubdir,;t t
12660 s,@build_subdir@,$build_subdir,;t t
12661 s,@host_subdir@,$host_subdir,;t t
12662 s,@target_subdir@,$target_subdir,;t t
12663 s,@CC@,$CC,;t t
12664 s,@CFLAGS@,$CFLAGS,;t t
12665 s,@LDFLAGS@,$LDFLAGS,;t t
12666 s,@CPPFLAGS@,$CPPFLAGS,;t t
12667 s,@ac_ct_CC@,$ac_ct_CC,;t t
12668 s,@EXEEXT@,$EXEEXT,;t t
12669 s,@OBJEXT@,$OBJEXT,;t t
12670 s,@CXX@,$CXX,;t t
12671 s,@CXXFLAGS@,$CXXFLAGS,;t t
12672 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12673 s,@GNATBIND@,$GNATBIND,;t t
12674 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12675 s,@GNATMAKE@,$GNATMAKE,;t t
12676 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12677 s,@do_compare@,$do_compare,;t t
12678 s,@gmplibs@,$gmplibs,;t t
12679 s,@gmpinc@,$gmpinc,;t t
12680 s,@stage1_languages@,$stage1_languages,;t t
12681 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12682 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12683 s,@tooldir@,$tooldir,;t t
12684 s,@build_tooldir@,$build_tooldir,;t t
12685 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12686 s,@GDB_TK@,$GDB_TK,;t t
12687 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12688 s,@build_configargs@,$build_configargs,;t t
12689 s,@build_configdirs@,$build_configdirs,;t t
12690 s,@host_configargs@,$host_configargs,;t t
12691 s,@configdirs@,$configdirs,;t t
12692 s,@target_configargs@,$target_configargs,;t t
12693 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12694 s,@config_shell@,$config_shell,;t t
12695 s,@YACC@,$YACC,;t t
12696 s,@BISON@,$BISON,;t t
12697 s,@M4@,$M4,;t t
12698 s,@LEX@,$LEX,;t t
12699 s,@FLEX@,$FLEX,;t t
12700 s,@MAKEINFO@,$MAKEINFO,;t t
12701 s,@EXPECT@,$EXPECT,;t t
12702 s,@RUNTEST@,$RUNTEST,;t t
12703 s,@AR@,$AR,;t t
12704 s,@AS@,$AS,;t t
12705 s,@DLLTOOL@,$DLLTOOL,;t t
12706 s,@LD@,$LD,;t t
12707 s,@LIPO@,$LIPO,;t t
12708 s,@NM@,$NM,;t t
12709 s,@RANLIB@,$RANLIB,;t t
12710 s,@STRIP@,$STRIP,;t t
12711 s,@WINDRES@,$WINDRES,;t t
12712 s,@WINDMC@,$WINDMC,;t t
12713 s,@OBJCOPY@,$OBJCOPY,;t t
12714 s,@OBJDUMP@,$OBJDUMP,;t t
12715 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12716 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12717 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12718 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12719 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12720 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12721 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12722 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12723 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12724 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12725 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12726 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12727 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12728 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12729 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12730 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12731 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
12732 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12733 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12734 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12735 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12736 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12737 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12738 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12739 s,@MAINT@,$MAINT,;t t
12740 s,@stage1_cflags@,$stage1_cflags,;t t
12741 s,@stage1_checking@,$stage1_checking,;t t
12742 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12743 s,@datarootdir@,$datarootdir,;t t
12744 s,@docdir@,$docdir,;t t
12745 s,@pdfdir@,$pdfdir,;t t
12746 s,@htmldir@,$htmldir,;t t
12747 s,@LIBOBJS@,$LIBOBJS,;t t
12748 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12749 /@serialization_dependencies@/r $serialization_dependencies
12750 s,@serialization_dependencies@,,;t t
12751 /@host_makefile_frag@/r $host_makefile_frag
12752 s,@host_makefile_frag@,,;t t
12753 /@target_makefile_frag@/r $target_makefile_frag
12754 s,@target_makefile_frag@,,;t t
12755 /@alphaieee_frag@/r $alphaieee_frag
12756 s,@alphaieee_frag@,,;t t
12757 /@ospace_frag@/r $ospace_frag
12758 s,@ospace_frag@,,;t t
12759 CEOF
12761 _ACEOF
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 # Split the substitutions into bite-sized pieces for seds with
12765 # small command number limits, like on Digital OSF/1 and HP-UX.
12766 ac_max_sed_lines=48
12767 ac_sed_frag=1 # Number of current file.
12768 ac_beg=1 # First line for current file.
12769 ac_end=$ac_max_sed_lines # Line after last line for current file.
12770 ac_more_lines=:
12771 ac_sed_cmds=
12772 while $ac_more_lines; do
12773 if test $ac_beg -gt 1; then
12774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12775 else
12776 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12778 if test ! -s $tmp/subs.frag; then
12779 ac_more_lines=false
12780 else
12781 # The purpose of the label and of the branching condition is to
12782 # speed up the sed processing (if there are no `@' at all, there
12783 # is no need to browse any of the substitutions).
12784 # These are the two extra sed commands mentioned above.
12785 (echo ':t
12786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12787 if test -z "$ac_sed_cmds"; then
12788 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12789 else
12790 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12792 ac_sed_frag=`expr $ac_sed_frag + 1`
12793 ac_beg=$ac_end
12794 ac_end=`expr $ac_end + $ac_max_sed_lines`
12796 done
12797 if test -z "$ac_sed_cmds"; then
12798 ac_sed_cmds=cat
12800 fi # test -n "$CONFIG_FILES"
12802 _ACEOF
12803 cat >>$CONFIG_STATUS <<\_ACEOF
12804 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12806 case $ac_file in
12807 - | *:- | *:-:* ) # input from stdin
12808 cat >$tmp/stdin
12809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12813 * ) ac_file_in=$ac_file.in ;;
12814 esac
12816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12819 X"$ac_file" : 'X\(//\)[^/]' \| \
12820 X"$ac_file" : 'X\(//\)$' \| \
12821 X"$ac_file" : 'X\(/\)' \| \
12822 . : '\(.\)' 2>/dev/null ||
12823 echo X"$ac_file" |
12824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12826 /^X\(\/\/\)$/{ s//\1/; q; }
12827 /^X\(\/\).*/{ s//\1/; q; }
12828 s/.*/./; q'`
12829 { if $as_mkdir_p; then
12830 mkdir -p "$ac_dir"
12831 else
12832 as_dir="$ac_dir"
12833 as_dirs=
12834 while test ! -d "$as_dir"; do
12835 as_dirs="$as_dir $as_dirs"
12836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12838 X"$as_dir" : 'X\(//\)[^/]' \| \
12839 X"$as_dir" : 'X\(//\)$' \| \
12840 X"$as_dir" : 'X\(/\)' \| \
12841 . : '\(.\)' 2>/dev/null ||
12842 echo X"$as_dir" |
12843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12845 /^X\(\/\/\)$/{ s//\1/; q; }
12846 /^X\(\/\).*/{ s//\1/; q; }
12847 s/.*/./; q'`
12848 done
12849 test ! -n "$as_dirs" || mkdir $as_dirs
12850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12852 { (exit 1); exit 1; }; }; }
12854 ac_builddir=.
12856 if test "$ac_dir" != .; then
12857 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12858 # A "../" for each directory in $ac_dir_suffix.
12859 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12860 else
12861 ac_dir_suffix= ac_top_builddir=
12864 case $srcdir in
12865 .) # No --srcdir option. We are building in place.
12866 ac_srcdir=.
12867 if test -z "$ac_top_builddir"; then
12868 ac_top_srcdir=.
12869 else
12870 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12871 fi ;;
12872 [\\/]* | ?:[\\/]* ) # Absolute path.
12873 ac_srcdir=$srcdir$ac_dir_suffix;
12874 ac_top_srcdir=$srcdir ;;
12875 *) # Relative path.
12876 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12877 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12878 esac
12880 # Do not use `cd foo && pwd` to compute absolute paths, because
12881 # the directories may not exist.
12882 case `pwd` in
12883 .) ac_abs_builddir="$ac_dir";;
12885 case "$ac_dir" in
12886 .) ac_abs_builddir=`pwd`;;
12887 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12888 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12889 esac;;
12890 esac
12891 case $ac_abs_builddir in
12892 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12894 case ${ac_top_builddir}. in
12895 .) ac_abs_top_builddir=$ac_abs_builddir;;
12896 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12897 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12898 esac;;
12899 esac
12900 case $ac_abs_builddir in
12901 .) ac_abs_srcdir=$ac_srcdir;;
12903 case $ac_srcdir in
12904 .) ac_abs_srcdir=$ac_abs_builddir;;
12905 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12906 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12907 esac;;
12908 esac
12909 case $ac_abs_builddir in
12910 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12912 case $ac_top_srcdir in
12913 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12914 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12915 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12916 esac;;
12917 esac
12920 case $INSTALL in
12921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12922 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12923 esac
12925 if test x"$ac_file" != x-; then
12926 { echo "$as_me:$LINENO: creating $ac_file" >&5
12927 echo "$as_me: creating $ac_file" >&6;}
12928 rm -f "$ac_file"
12930 # Let's still pretend it is `configure' which instantiates (i.e., don't
12931 # use $as_me), people would be surprised to read:
12932 # /* config.h. Generated by config.status. */
12933 if test x"$ac_file" = x-; then
12934 configure_input=
12935 else
12936 configure_input="$ac_file. "
12938 configure_input=$configure_input"Generated from `echo $ac_file_in |
12939 sed 's,.*/,,'` by configure."
12941 # First look for the input files in the build tree, otherwise in the
12942 # src tree.
12943 ac_file_inputs=`IFS=:
12944 for f in $ac_file_in; do
12945 case $f in
12946 -) echo $tmp/stdin ;;
12947 [\\/$]*)
12948 # Absolute (can't be DOS-style, as IFS=:)
12949 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12950 echo "$as_me: error: cannot find input file: $f" >&2;}
12951 { (exit 1); exit 1; }; }
12952 echo "$f";;
12953 *) # Relative
12954 if test -f "$f"; then
12955 # Build tree
12956 echo "$f"
12957 elif test -f "$srcdir/$f"; then
12958 # Source tree
12959 echo "$srcdir/$f"
12960 else
12961 # /dev/null tree
12962 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12963 echo "$as_me: error: cannot find input file: $f" >&2;}
12964 { (exit 1); exit 1; }; }
12965 fi;;
12966 esac
12967 done` || { (exit 1); exit 1; }
12968 _ACEOF
12969 cat >>$CONFIG_STATUS <<_ACEOF
12970 sed "$ac_vpsub
12971 $extrasub
12972 _ACEOF
12973 cat >>$CONFIG_STATUS <<\_ACEOF
12975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12976 s,@configure_input@,$configure_input,;t t
12977 s,@srcdir@,$ac_srcdir,;t t
12978 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12979 s,@top_srcdir@,$ac_top_srcdir,;t t
12980 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12981 s,@builddir@,$ac_builddir,;t t
12982 s,@abs_builddir@,$ac_abs_builddir,;t t
12983 s,@top_builddir@,$ac_top_builddir,;t t
12984 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12985 s,@INSTALL@,$ac_INSTALL,;t t
12986 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12987 rm -f $tmp/stdin
12988 if test x"$ac_file" != x-; then
12989 mv $tmp/out $ac_file
12990 else
12991 cat $tmp/out
12992 rm -f $tmp/out
12995 done
12996 _ACEOF
12998 cat >>$CONFIG_STATUS <<\_ACEOF
13000 { (exit 0); exit 0; }
13001 _ACEOF
13002 chmod +x $CONFIG_STATUS
13003 ac_clean_files=$ac_clean_files_save
13006 # configure is writing to config.log, and then calls config.status.
13007 # config.status does its own redirection, appending to config.log.
13008 # Unfortunately, on DOS this fails, as config.log is still kept open
13009 # by configure, so config.status won't be able to write to it; its
13010 # output is simply discarded. So we exec the FD to /dev/null,
13011 # effectively closing config.log, so it can be properly (re)opened and
13012 # appended to by config.status. When coming back to configure, we
13013 # need to make the FD available again.
13014 if test "$no_create" != yes; then
13015 ac_cs_success=:
13016 ac_config_status_args=
13017 test "$silent" = yes &&
13018 ac_config_status_args="$ac_config_status_args --quiet"
13019 exec 5>/dev/null
13020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13021 exec 5>>config.log
13022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13023 # would make configure fail if this is the last instruction.
13024 $ac_cs_success || { (exit 1); exit 1; }