2007-09-06 Jan Hubicka <jh@suse.cz>
[official-gcc.git] / configure
blob64ce7cffb6995e2eca18331dee7fe547103fefb1
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 DEBUG_PREFIX_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 build libada directory
933 --enable-libssp build 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 use of Boehm's garbage collector with the
937 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 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 directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
967 use sysroot as the system root during the build
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
970 --with-build-time-tools=PATH
971 use given path to find target tools during the build
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
977 Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
995 WINDMC WINDMC for the host
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1031 Use these variables to override the choices made by `configure' or to help
1032 it to find libraries and programs with nonstandard names/locations.
1034 _ACEOF
1037 if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1044 if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048 else
1049 ac_dir_suffix= ac_top_builddir=
1052 case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066 esac
1068 # Do not use `cd foo && pwd` to compute absolute paths, because
1069 # the directories may not exist.
1070 case `pwd` in
1071 .) ac_abs_builddir="$ac_dir";;
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078 esac
1079 case $ac_abs_builddir in
1080 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_srcdir=$ac_srcdir;;
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096 esac
1097 case $ac_abs_builddir in
1098 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105 esac
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1122 cd $ac_popdir
1123 done
1126 test -n "$ac_init_help" && exit 0
1127 if $ac_init_version; then
1128 cat <<\_ACEOF
1130 Copyright (C) 2003 Free Software Foundation, Inc.
1131 This configure script is free software; the Free Software Foundation
1132 gives unlimited permission to copy, distribute and modify it.
1133 _ACEOF
1134 exit 0
1136 exec 5>config.log
1137 cat >&5 <<_ACEOF
1138 This file contains any messages produced by compilers while
1139 running configure, to aid debugging if configure makes a mistake.
1141 It was created by $as_me, which was
1142 generated by GNU Autoconf 2.59. Invocation command line was
1144 $ $0 $@
1146 _ACEOF
1148 cat <<_ASUNAME
1149 ## --------- ##
1150 ## Platform. ##
1151 ## --------- ##
1153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1162 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1170 _ASUNAME
1172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173 for as_dir in $PATH
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178 done
1180 } >&5
1182 cat >&5 <<_ACEOF
1185 ## ----------- ##
1186 ## Core tests. ##
1187 ## ----------- ##
1189 _ACEOF
1192 # Keep a trace of the command line.
1193 # Strip out --no-create and --no-recursion so they do not pile up.
1194 # Strip out --silent because we don't want to record it for future runs.
1195 # Also quote any args containing shell meta-characters.
1196 # Make two passes to allow for proper duplicate-argument suppression.
1197 ac_configure_args=
1198 ac_configure_args0=
1199 ac_configure_args1=
1200 ac_sep=
1201 ac_must_keep_next=false
1202 for ac_pass in 1 2
1204 for ac_arg
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1237 esac
1238 done
1239 done
1240 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1243 # When interrupted or exit'd, cleanup temporary files, and complete
1244 # config.log. We remove comments because anyway the quotes in there
1245 # would cause problems or look ugly.
1246 # WARNING: Be sure not to use single quotes in there, as some shells,
1247 # such as our DU 5.0 friend, will then `close' the trap.
1248 trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1251 echo
1253 cat <<\_ASBOX
1254 ## ---------------- ##
1255 ## Cache variables. ##
1256 ## ---------------- ##
1257 _ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1272 esac;
1274 echo
1276 cat <<\_ASBOX
1277 ## ----------------- ##
1278 ## Output variables. ##
1279 ## ----------------- ##
1280 _ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291 ## ------------- ##
1292 ## Output files. ##
1293 ## ------------- ##
1294 _ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306 ## ----------- ##
1307 ## confdefs.h. ##
1308 ## ----------- ##
1309 _ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1322 for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324 done
1325 ac_signal=0
1327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1328 rm -rf conftest* confdefs.h
1329 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330 echo >confdefs.h
1332 # Predefined preprocessor variables.
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_NAME "$PACKAGE_NAME"
1336 _ACEOF
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341 _ACEOF
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1346 _ACEOF
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_STRING "$PACKAGE_STRING"
1351 _ACEOF
1354 cat >>confdefs.h <<_ACEOF
1355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356 _ACEOF
1359 # Let the site file select an alternate cache file if it wants to.
1360 # Prefer explicitly selected file to automatically selected ones.
1361 if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371 echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
1373 . "$ac_site_file"
1375 done
1377 if test -r "$cache_file"; then
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382 echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1388 else
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390 echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1394 # Check that the precious variables saved in the cache have kept the same
1395 # value.
1396 ac_cache_corrupted=false
1397 for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418 echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420 echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1436 done
1437 if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
1445 ac_ext=c
1446 ac_cpp='$CPP $CPPFLAGS'
1447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471 # Find the build, host, and target systems.
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
1487 done
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
1532 esac
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
1539 esac
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
1546 esac
1551 test "$host_noncanonical" = "$target_noncanonical" &&
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1554 program_transform_name=s,y,y,
1556 echo "$as_me:$LINENO: checking host system type" >&5
1557 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558 if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 ac_cv_host_alias=$host_alias
1562 test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1570 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571 echo "${ECHO_T}$ac_cv_host" >&6
1572 host=$ac_cv_host
1573 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 echo "$as_me:$LINENO: checking target system type" >&5
1579 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580 if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 ac_cv_target_alias=$target_alias
1584 test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593 echo "${ECHO_T}$ac_cv_target" >&6
1594 target=$ac_cv_target
1595 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 # The aliases save the names the user supplied, while $host etc.
1601 # will get canonicalized.
1602 test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
1606 test "$program_prefix" != NONE &&
1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1608 # Use a double $ so make ignores it.
1609 test "$program_suffix" != NONE &&
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611 # Double any \ or $. echo might interpret backslashes.
1612 # By default was `s,x,x', remove it if useless.
1613 cat <<\_ACEOF >conftest.sed
1614 s/[\\$]/&&/g;s/;s,x,x,$//
1615 _ACEOF
1616 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617 rm conftest.sed
1621 # Get 'install' or 'install-sh' and its variants.
1622 # Find a good install program. We prefer a C program (faster),
1623 # so one script is as good as another. But avoid the broken or
1624 # incompatible versions:
1625 # SysV /etc/install, /usr/sbin/install
1626 # SunOS /usr/etc/install
1627 # IRIX /sbin/install
1628 # AIX /bin/install
1629 # AmigaOS /C/install, which installs bootblocks on floppy discs
1630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1633 # OS/2's system install, which has a completely different semantic
1634 # ./install, which can be erroneously created by make from ./install.sh.
1635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1637 if test -z "$INSTALL"; then
1638 if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647 case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1659 if test $ac_prog = install &&
1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1667 else
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
1672 done
1673 done
1675 esac
1676 done
1680 if test "${ac_cv_path_install+set}" = set; then
1681 INSTALL=$ac_cv_path_install
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
1687 INSTALL=$ac_install_sh
1690 echo "$as_me:$LINENO: result: $INSTALL" >&5
1691 echo "${ECHO_T}$INSTALL" >&6
1693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694 # It thinks the first close brace ends the variable substitution.
1695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1701 echo "$as_me:$LINENO: checking whether ln works" >&5
1702 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703 if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706 rm -f conftestdata_t
1707 echo >conftestdata_f
1708 if ln conftestdata_f conftestdata_t 2>/dev/null
1709 then
1710 acx_cv_prog_LN=ln
1711 else
1712 acx_cv_prog_LN=no
1714 rm -f conftestdata_f conftestdata_t
1717 if test $acx_cv_prog_LN = no; then
1718 LN="cp"
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720 echo "${ECHO_T}no, using $LN" >&6
1721 else
1722 LN="$acx_cv_prog_LN"
1723 echo "$as_me:$LINENO: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1727 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729 LN_S=$as_ln_s
1730 if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732 echo "${ECHO_T}yes" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735 echo "${ECHO_T}no, using $LN_S" >&6
1739 ### we might need to use some other shell than /bin/sh for running subshells
1740 ### If we are on Windows, search for the shell. This will permit people
1741 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742 ### without also having to set CONFIG_SHELL. This code will work when
1743 ### using bash, which sets OSTYPE.
1744 case "${OSTYPE}" in
1745 *win32*)
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1769 esac
1771 config_shell=${CONFIG_SHELL-/bin/sh}
1773 progname=$0
1774 # if PWD already has a value, it is probably wrong.
1775 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1777 # Export original configure arguments for use by sub-configures.
1778 # Quote arguments with shell meta charatcers.
1779 TOPLEVEL_CONFIGURE_ARGUMENTS=
1780 set -- "$progname" "$@"
1781 for ac_arg
1783 case "$ac_arg" in
1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792 done
1793 if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1796 # Remove the initial space we just introduced and, as these will be
1797 # expanded by make, quote '$'.
1798 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1801 moveifchange=${srcdir}/move-if-change
1803 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1805 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806 # a relative path.
1807 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1811 # Set srcdir to "." if that's what it is.
1812 # This is important for multilib support.
1813 pwd=`${PWDCMD-pwd}`
1814 if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
1818 topsrcdir=$srcpwd
1820 extra_host_args=
1822 ### To add a new directory to the tree, first choose whether it is a target
1823 ### or a host dependent tool. Then put it into the appropriate list
1824 ### (library or tools, host or target), doing a dependency sort.
1826 # Subdirs will be configured in the order listed in build_configdirs,
1827 # configdirs, or target_configdirs; see the serialization section below.
1829 # Dependency sorting is only needed when *configuration* must be done in
1830 # a particular order. In all cases a dependency should be specified in
1831 # the Makefile, whether or not it's implicitly specified here.
1833 # Double entries in build_configdirs, configdirs, or target_configdirs may
1834 # cause circular dependencies and break everything horribly.
1836 # these library is used by various programs built for the build
1837 # environment
1839 build_libs="build-libiberty"
1841 # these tools are built for the build environment
1842 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1844 # these libraries are used by various programs built for the host environment
1846 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1848 # these tools are built for the host environment
1849 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850 # know that we are building the simulator.
1851 # binutils, gas and ld appear in that order because it makes sense to run
1852 # "make check" in that particular order.
1853 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"
1855 # libgcj represents the runtime libraries only used by gcj.
1856 libgcj="target-libffi \
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1861 # these libraries are built for the target environment, and are built after
1862 # the host libraries and the host tools (which may be a cross compiler)
1864 target_libraries="target-libgcc \
1865 target-libiberty \
1866 target-libgloss \
1867 target-newlib \
1868 target-libstdc++-v3 \
1869 target-libmudflap \
1870 target-libssp \
1871 target-libgfortran \
1872 target-boehm-gc \
1873 ${libgcj} \
1874 target-libobjc \
1875 target-libada \
1876 target-libgomp"
1878 # these tools are built using the target libraries, and are intended to
1879 # run only in the target environment
1881 # note: any program that *uses* libraries that are in the "target_libraries"
1882 # list belongs in this list. those programs are also very likely
1883 # candidates for the "native_only" list which follows
1885 target_tools="target-examples target-groff target-gperf target-rda"
1887 ################################################################################
1889 ## All tools belong in one of the four categories, and are assigned above
1890 ## We assign ${configdirs} this way to remove all embedded newlines. This
1891 ## is important because configure will choke if they ever get through.
1892 ## ${configdirs} is directories we build using the host tools.
1893 ## ${target_configdirs} is directories we build using the target tools.
1894 configdirs=`echo ${host_libs} ${host_tools}`
1895 target_configdirs=`echo ${target_libraries} ${target_tools}`
1896 build_configdirs=`echo ${build_libs} ${build_tools}`
1898 ################################################################################
1900 srcname="gnu development package"
1902 # This gets set non-empty for some net releases of packages.
1903 appdirs=""
1905 # Define is_cross_compiler to save on calls to 'test'.
1906 is_cross_compiler=
1907 if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
1909 else
1910 is_cross_compiler=yes
1913 # Find the build and target subdir names.
1915 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916 # have matching libraries, they should use host libraries: Makefile.tpl
1917 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918 # However, they still use the build modules, because the corresponding
1919 # host modules (e.g. bison) are only built for the host when bootstrap
1920 # finishes. So:
1921 # - build_subdir is where we find build modules, and never changes.
1922 # - build_libsubdir is where we find build libraries, and can be overridden.
1924 # Prefix 'build-' so this never conflicts with target_subdir.
1925 build_subdir="build-${build_noncanonical}"
1927 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928 if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931 else
1932 build_libsubdir="$build_subdir"
1934 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935 if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938 else
1939 host_subdir=.
1941 # No prefix.
1942 target_subdir=${target_noncanonical}
1945 # Skipdirs are removed silently.
1946 skipdirs=
1947 # Noconfigdirs are removed loudly.
1948 noconfigdirs=""
1950 use_gnu_ld=
1951 # Make sure we don't let GNU ld be added if we didn't want it.
1952 if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
1957 use_gnu_as=
1958 # Make sure we don't let GNU as be added if we didn't want it.
1959 if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
1964 # some tools are so dependent upon X11 that if we're not building with X,
1965 # it's not even worth trying to configure, much less build, that tool.
1967 case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1970 skipdirs="${skipdirs} tk itcl libgui"
1971 # We won't be able to build gdbtk without X.
1972 enable_gdbtk=no
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975 esac
1977 # Some tools are only suitable for building in a "native" situation.
1978 # Remove these if host!=target.
1979 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"
1981 # Similarly, some are only suitable for cross toolchains.
1982 # Remove these if host=target.
1983 cross_only="target-libgloss target-newlib target-opcodes"
1985 case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988 esac
1990 # If both --with-headers and --with-libs are specified, default to
1991 # --without-newlib.
1992 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1999 # Recognize --with-newlib/--without-newlib.
2000 case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003 esac
2005 # Configure extra directories which are host specific
2007 case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010 esac
2012 # A target can indicate whether a language isn't supported for some reason.
2013 # Only spaces may be used in this macro; not newlines or tabs.
2014 unsupported_languages=
2016 # Remove more programs from consideration, based on the host or
2017 # target this usually means that a port of the program doesn't
2018 # exist yet.
2020 case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2024 i[3456789]86-*-vsta)
2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2033 i[3456789]86-*-mingw32*)
2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2037 i[3456789]86-*-beos*)
2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2040 *-*-cygwin*)
2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2043 *-*-netbsd*)
2044 noconfigdirs="$noconfigdirs rcs"
2046 ppc*-*-pe)
2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2049 powerpc-*-beos*)
2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2052 esac
2055 # Check whether --enable-libada or --disable-libada was given.
2056 if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059 else
2060 ENABLE_LIBADA=yes
2062 if test "${ENABLE_LIBADA}" != "yes" ; then
2063 noconfigdirs="$noconfigdirs gnattools"
2066 # Check whether --enable-libssp or --disable-libssp was given.
2067 if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070 else
2071 ENABLE_LIBSSP=yes
2074 # Save it here so that, even in case of --enable-libgcj, if the Java
2075 # front-end isn't enabled, we still get libgcj disabled.
2076 libgcj_saved=$libgcj
2077 case $enable_libgcj in
2078 yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2088 esac
2091 # Disable libmudflap on some systems.
2092 if test x$enable_libmudflap = x ; then
2093 case "${target}" in
2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2095 # Enable libmudflap by default in GNU and friends.
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2104 esac
2107 # Disable libgomp on non POSIX hosted systems.
2108 if test x$enable_libgomp = x ; then
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2117 *-*-darwin* | *-*-aix*)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2122 esac
2126 case "${target}" in
2127 *-*-chorusos)
2128 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2130 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2131 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2132 noconfigdirs="$noconfigdirs sim target-rda"
2134 *-*-darwin*)
2135 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2136 noconfigdirs="$noconfigdirs sim target-rda"
2137 noconfigdirs="$noconfigdirs ${libgcj}"
2139 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2140 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2142 *-*-freebsd*)
2143 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2144 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2145 && test -f /usr/local/include/gmp.h; then
2146 with_gmp=/usr/local
2149 # Skip some stuff that's unsupported on some FreeBSD configurations.
2150 case "${target}" in
2151 i*86-*-*) ;;
2152 alpha*-*-*) ;;
2154 noconfigdirs="$noconfigdirs ${libgcj}"
2156 esac
2158 *-*-kaos*)
2159 # Remove unsupported stuff on all kaOS configurations.
2160 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2161 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2162 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2163 noconfigdirs="$noconfigdirs target-libgloss"
2165 *-*-netbsd*)
2166 # Skip some stuff on all NetBSD configurations.
2167 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2169 # Skip some stuff that's unsupported on some NetBSD configurations.
2170 case "${target}" in
2171 i*86-*-netbsdelf*) ;;
2172 arm*-*-netbsdelf*) ;;
2174 noconfigdirs="$noconfigdirs ${libgcj}"
2176 esac
2178 *-*-netware*)
2179 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2181 *-*-rtems*)
2182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2184 # The tpf target doesn't support gdb yet.
2185 *-*-tpf*)
2186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2188 *-*-uclinux*)
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2191 *-*-vxworks*)
2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2194 alpha*-dec-osf*)
2195 # ld works, but does not support shared libraries.
2196 # newlib is not 64 bit ready. I'm not sure about fileutils.
2197 # gas doesn't generate exception information.
2198 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2200 alpha*-*-*vms*)
2201 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2203 alpha*-*-linux*)
2204 # newlib is not 64 bit ready
2205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2207 alpha*-*-*)
2208 # newlib is not 64 bit ready
2209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2211 am33_2.0-*-linux*)
2212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2214 sh-*-linux*)
2215 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2217 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2218 noconfigdirs="$noconfigdirs ${libgcj}"
2219 noconfigdirs="$noconfigdirs target-examples"
2220 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2221 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2222 noconfigdirs="$noconfigdirs expect dejagnu"
2223 # the C++ libraries don't build on top of CE's C libraries
2224 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2225 noconfigdirs="$noconfigdirs target-newlib"
2226 case "${host}" in
2227 *-*-cygwin*) ;; # keep gdb and readline
2228 *) noconfigdirs="$noconfigdirs gdb readline"
2230 esac
2232 arc-*-*)
2233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2235 arm-semi-aof )
2237 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2238 noconfigdirs="$noconfigdirs ${libgcj}"
2240 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2241 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2243 arm*-*-linux-gnueabi)
2244 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2245 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2246 case ${with_newlib} in
2247 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 esac
2250 arm*-*-symbianelf*)
2251 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2253 arm-*-pe*)
2254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2256 thumb-*-coff)
2257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2259 thumb-*-elf)
2260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2262 thumb-*-pe)
2263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2265 arm-*-riscix*)
2266 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2268 avr-*-*)
2269 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2271 bfin-*-*)
2272 noconfigdirs="$noconfigdirs gdb"
2273 if test x${is_cross_compiler} != xno ; then
2274 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2277 c4x-*-* | tic4x-*-*)
2278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2280 c54x*-*-* | tic54x-*-*)
2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2283 cris-*-* | crisv32-*-*)
2284 unsupported_languages="$unsupported_languages java"
2285 case "${target}" in
2286 *-*-aout)
2287 unsupported_languages="$unsupported_languages fortran"
2288 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2289 *-*-elf)
2290 unsupported_languages="$unsupported_languages fortran"
2291 noconfigdirs="$noconfigdirs target-boehm-gc";;
2292 *-*-linux*)
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2295 unsupported_languages="$unsupported_languages fortran"
2296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2297 esac
2299 crx-*-*)
2300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2302 d10v-*-*)
2303 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2305 d30v-*-*)
2306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2308 fr30-*-elf*)
2309 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2311 frv-*-*)
2312 noconfigdirs="$noconfigdirs ${libgcj}"
2314 h8300*-*-*)
2315 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2317 h8500-*-*)
2318 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2320 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2322 hppa*64*-*-linux* | parisc*64*-*-linux*)
2323 # In this case, it's because the hppa64-linux target is for
2324 # the kernel only at this point and has no libc, and thus no
2325 # headers, crt*.o, etc., all of which are needed by these.
2326 noconfigdirs="$noconfigdirs target-zlib"
2328 parisc*-*-linux* | hppa*-*-linux*)
2330 hppa*-*-*elf* | \
2331 hppa*-*-lites* | \
2332 hppa*-*-openbsd* | \
2333 hppa*64*-*-*)
2334 noconfigdirs="$noconfigdirs ${libgcj}"
2336 hppa*-hp-hpux11*)
2337 noconfigdirs="$noconfigdirs ld shellutils"
2339 hppa*-*-*)
2340 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2341 # build on HP-UX 10.20.
2342 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2344 i960-*-*)
2345 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2347 ia64*-*-elf*)
2348 # No gdb support yet.
2349 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2351 ia64*-**-hpux*)
2352 # No gdb or ld support yet.
2353 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2355 i370-*-opened*)
2357 i[3456789]86-*-coff | i[3456789]86-*-elf)
2358 noconfigdirs="$noconfigdirs ${libgcj}"
2360 i[3456789]86-*-linux*)
2361 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2362 # not build java stuff by default.
2363 case "${target}" in
2364 *-*-*libc1*)
2365 noconfigdirs="$noconfigdirs ${libgcj}";;
2366 esac
2368 # This section makes it possible to build newlib natively on linux.
2369 # If we are using a cross compiler then don't configure newlib.
2370 if test x${is_cross_compiler} != xno ; then
2371 noconfigdirs="$noconfigdirs target-newlib"
2373 noconfigdirs="$noconfigdirs target-libgloss"
2374 # If we are not using a cross compiler, do configure newlib.
2375 # Note however, that newlib will only be configured in this situation
2376 # if the --with-newlib option has been given, because otherwise
2377 # 'target-newlib' will appear in skipdirs.
2379 i[3456789]86-*-mingw32*)
2380 target_configdirs="$target_configdirs target-winsup"
2381 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2383 x86_64-*-mingw*)
2384 target_configdirs="$target_configdirs target-winsup"
2385 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2387 *-*-cygwin*)
2388 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2389 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2390 # always build newlib if winsup directory is present.
2391 if test -d "$srcdir/winsup/cygwin"; then
2392 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2393 elif test -d "$srcdir/newlib"; then
2394 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2397 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2398 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2400 i[3456789]86-*-pe)
2401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2403 i[3456789]86-*-sco3.2v5*)
2404 # The linker does not yet know about weak symbols in COFF,
2405 # and is not configured to handle mixed ELF and COFF.
2406 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2408 i[3456789]86-*-sco*)
2409 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2411 i[3456789]86-*-solaris2*)
2412 noconfigdirs="$noconfigdirs target-libgloss"
2414 i[3456789]86-*-sysv4*)
2415 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2417 i[3456789]86-*-beos*)
2418 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2420 i[3456789]86-*-rdos*)
2421 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2423 m32r-*-*)
2424 noconfigdirs="$noconfigdirs ${libgcj}"
2426 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2427 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2429 m68k-*-elf*)
2430 noconfigdirs="$noconfigdirs ${libgcj}"
2432 m68k-*-coff*)
2433 noconfigdirs="$noconfigdirs ${libgcj}"
2435 mcore-*-pe*)
2436 # The EPOC C++ environment does not support exceptions or rtti,
2437 # and so building libstdc++-v3 tends not to always work.
2438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2440 mmix-*-*)
2441 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2442 unsupported_languages="$unsupported_languages fortran java"
2444 mn10200-*-*)
2445 noconfigdirs="$noconfigdirs ${libgcj}"
2447 mn10300-*-*)
2448 noconfigdirs="$noconfigdirs ${libgcj}"
2450 mt-*-*)
2451 noconfigdirs="$noconfigdirs sim"
2453 powerpc-*-aix*)
2454 # copied from rs6000-*-* entry
2455 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2457 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2458 target_configdirs="$target_configdirs target-winsup"
2459 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2460 # always build newlib.
2461 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2463 # This is temporary until we can link against shared libraries
2464 powerpcle-*-solaris*)
2465 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2467 powerpc-*-beos*)
2468 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2470 powerpc-*-eabi)
2471 noconfigdirs="$noconfigdirs ${libgcj}"
2473 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2475 rs6000-*-lynxos*)
2476 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2478 rs6000-*-aix*)
2479 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2481 rs6000-*-*)
2482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2484 m68k-apollo-*)
2485 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2487 mips*-*-irix5*)
2488 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2490 mips*-*-irix6*)
2491 # Linking libjava exceeds command-line length limits on at least
2492 # IRIX 6.2, but not on IRIX 6.5.
2493 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2494 # <oldham@codesourcery.com>
2495 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2497 mips*-*-bsd*)
2498 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2500 mips64*-*-linux*)
2501 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2503 mips*-*-linux*)
2504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2506 mips*-*-*)
2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2509 romp-*-*)
2510 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2512 sh-*-* | sh64-*-*)
2513 case "${host}" in
2514 i[3456789]86-*-vsta) ;; # don't add gprof back in
2515 i[3456789]86-*-go32*) ;; # don't add gprof back in
2516 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2517 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2518 esac
2519 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2521 sparc-*-elf*)
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2524 sparc64-*-elf*)
2525 noconfigdirs="$noconfigdirs ${libgcj}"
2527 sparclite-*-*)
2528 noconfigdirs="$noconfigdirs ${libgcj}"
2530 sparc-*-sunos4*)
2531 noconfigdirs="$noconfigdirs ${libgcj}"
2532 if test x${is_cross_compiler} != xno ; then
2533 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2534 else
2535 use_gnu_ld=no
2538 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2539 noconfigdirs="$noconfigdirs ${libgcj}"
2541 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2543 spu-*-*)
2544 skipdirs="target-libssp"
2546 v810-*-*)
2547 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2549 v850-*-*)
2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2552 v850e-*-*)
2553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2555 v850ea-*-*)
2556 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2558 vax-*-vms)
2559 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2561 vax-*-*)
2562 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2564 xtensa-*-*)
2565 noconfigdirs="$noconfigdirs ${libgcj}"
2567 ip2k-*-*)
2568 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2570 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2573 *-*-lynxos*)
2574 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2576 *-*-*)
2577 noconfigdirs="$noconfigdirs ${libgcj}"
2579 esac
2581 # If we aren't building newlib, then don't build libgloss, since libgloss
2582 # depends upon some newlib header files.
2583 case "${noconfigdirs}" in
2584 *target-libgloss*) ;;
2585 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2586 esac
2588 # Work in distributions that contain no compiler tools, like Autoconf.
2589 tentative_cc=""
2590 host_makefile_frag=/dev/null
2591 if test -d ${srcdir}/config ; then
2592 case "${host}" in
2593 m68k-hp-hpux*)
2594 # Avoid "too much defining" errors from HPUX compiler.
2595 tentative_cc="cc -Wp,-H256000"
2596 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2597 # If it's HP/UX ar, this should be harmless.
2598 RANLIB="ar ts"
2600 m68k-apollo-sysv*)
2601 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2603 m68k-apollo-bsd*)
2604 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2605 # chokes on bfd, the compiler won't let you assign integers to enums, and
2606 # other problems. Defining CC to gcc is a questionable way to say "don't use
2607 # the apollo compiler" (the preferred version of GCC could be called cc,
2608 # or whatever), but I'm not sure leaving CC as cc is any better...
2609 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2610 # Used to have BISON=yacc.
2611 tentative_cc=gcc
2613 m88k-dg-dgux*)
2614 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2616 m88k-harris-cxux*)
2617 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2618 tentative_cc="cc -Xa"
2619 host_makefile_frag="config/mh-cxux"
2621 m88k-motorola-sysv*)
2623 mips*-dec-ultrix*)
2624 tentative_cc="cc -Wf,-XNg1000"
2625 host_makefile_frag="config/mh-decstation"
2627 mips*-nec-sysv4*)
2628 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2629 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2630 host_makefile_frag="config/mh-necv4"
2632 mips*-sgi-irix4*)
2633 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2634 # environment. Also bump switch table size so that cp-parse will
2635 # compile. Bump string length limit so linker builds.
2636 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2638 mips*-*-sysv4*)
2639 host_makefile_frag="config/mh-sysv4"
2641 mips*-*-sysv*)
2642 # This is for a MIPS running RISC/os 4.52C.
2644 # This is needed for GDB, but needs to be in the top-level make because
2645 # if a library is compiled with the bsd headers and gets linked with the
2646 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2647 # a different size).
2648 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2649 # known except to select the sysv environment. Could we use /proc instead?
2650 # These "sysv environments" and "bsd environments" often end up being a pain.
2652 # This is not part of CFLAGS because perhaps not all C compilers have this
2653 # option.
2654 tentative_cc="cc -systype sysv"
2656 i370-ibm-opened*)
2657 tentative_cc="c89"
2659 i[3456789]86-*-sysv5*)
2660 host_makefile_frag="config/mh-sysv5"
2662 i[3456789]86-*-dgux*)
2663 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2664 host_makefile_frag="config/mh-dgux386"
2666 i[3456789]86-ncr-sysv4.3*)
2667 # The MetaWare compiler will generate a copyright message unless you
2668 # turn it off by adding the -Hnocopyr flag.
2669 tentative_cc="cc -Hnocopyr"
2671 i[3456789]86-ncr-sysv4*)
2672 # for an NCR 3000 (i486/SVR4) system.
2673 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2674 # This compiler not only emits obnoxious copyright messages every time
2675 # you run it, but it chokes and dies on a whole bunch of GNU source
2676 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2677 tentative_cc="/usr/ccs/ATT/cc"
2678 host_makefile_frag="config/mh-ncr3000"
2680 i[3456789]86-*-sco3.2v5*)
2682 i[3456789]86-*-sco*)
2683 # The native C compiler botches some simple uses of const. Unfortunately,
2684 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2685 tentative_cc="cc -Dconst="
2686 host_makefile_frag="config/mh-sco"
2688 i[3456789]86-*-udk*)
2689 host_makefile_frag="config/mh-sysv5"
2691 i[3456789]86-*-solaris2*)
2692 host_makefile_frag="config/mh-sysv4"
2694 i[3456789]86-*-msdosdjgpp*)
2695 host_makefile_frag="config/mh-djgpp"
2697 *-cygwin*)
2698 host_makefile_frag="config/mh-cygwin"
2700 *-mingw32*)
2701 host_makefile_frag="config/mh-mingw"
2703 *-mingw64*)
2704 host_makefile_frag="config/mh-mingw"
2706 *-interix*)
2707 host_makefile_frag="config/mh-interix"
2709 vax-*-ultrix2*)
2710 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2711 tentative_cc=gcc
2713 *-*-solaris2*)
2714 host_makefile_frag="config/mh-solaris"
2716 m68k-sun-sunos*)
2717 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2718 # without overflowing the jump tables (-J says to use a 32 bit table)
2719 tentative_cc="cc -J"
2721 *-hp-hpux*)
2722 tentative_cc="cc -Wp,-H256000"
2724 *-*-hiux*)
2725 tentative_cc="cc -Wp,-H256000"
2727 rs6000-*-lynxos*)
2728 # /bin/cc is less than useful for our purposes. Always use GCC
2729 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2730 host_makefile_frag="config/mh-lynxrs6k"
2732 powerpc-*-darwin*)
2733 host_makefile_frag="config/mh-ppc-darwin"
2735 powerpc-*-aix*)
2736 host_makefile_frag="config/mh-ppc-aix"
2738 rs6000-*-aix*)
2739 host_makefile_frag="config/mh-ppc-aix"
2741 *-*-lynxos*)
2742 # /bin/cc is less than useful for our purposes. Always use GCC
2743 tentative_cc="/bin/gcc"
2745 *-*-sysv4*)
2746 host_makefile_frag="config/mh-sysv4"
2748 # This is placed last to prevent interfering with the cases above.
2749 i[3456789]86-*-*)
2750 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2751 host_makefile_frag="config/mh-x86omitfp"
2753 esac
2756 # If we aren't going to be using gcc, see if we can extract a definition
2757 # of CC from the fragment.
2758 # Actually, use the 'pre-extracted' version above.
2759 if test -z "${CC}" && test "${build}" = "${host}" ; then
2760 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2761 found=
2762 for dir in $PATH; do
2763 test -z "$dir" && dir=.
2764 if test -f $dir/gcc; then
2765 found=yes
2766 break
2768 done
2769 IFS="$save_ifs"
2770 if test -z "${found}" && test -n "${tentative_cc}" ; then
2771 CC=$tentative_cc
2775 if test "${build}" != "${host}" ; then
2776 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2777 else
2778 CC_FOR_BUILD="\$(CC)"
2781 ac_ext=c
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_CC+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2813 CC=$ac_cv_prog_CC
2814 if test -n "$CC"; then
2815 echo "$as_me:$LINENO: result: $CC" >&5
2816 echo "${ECHO_T}$CC" >&6
2817 else
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2823 if test -z "$ac_cv_prog_CC"; then
2824 ac_ct_CC=$CC
2825 # Extract the first word of "gcc", so it can be a program name with args.
2826 set dummy gcc; ac_word=$2
2827 echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 echo "${ECHO_T}$ac_ct_CC" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CC=$ac_ct_CC
2861 else
2862 CC="$ac_cv_prog_CC"
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}cc; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_CC+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CC="${ac_tool_prefix}cc"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895 echo "$as_me:$LINENO: result: $CC" >&5
2896 echo "${ECHO_T}$CC" >&6
2897 else
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2903 if test -z "$ac_cv_prog_CC"; then
2904 ac_ct_CC=$CC
2905 # Extract the first word of "cc", so it can be a program name with args.
2906 set dummy cc; ac_word=$2
2907 echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$ac_ct_CC"; then
2913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_ac_ct_CC="cc"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2934 echo "${ECHO_T}$ac_ct_CC" >&6
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2940 CC=$ac_ct_CC
2941 else
2942 CC="$ac_cv_prog_CC"
2946 if test -z "$CC"; then
2947 # Extract the first word of "cc", so it can be a program name with args.
2948 set dummy cc; ac_word=$2
2949 echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2951 if test "${ac_cv_prog_CC+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 ac_prog_rejected=no
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2966 ac_prog_rejected=yes
2967 continue
2969 ac_cv_prog_CC="cc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2976 if test $ac_prog_rejected = yes; then
2977 # We found a bogon in the path, so make sure we never use it.
2978 set dummy $ac_cv_prog_CC
2979 shift
2980 if test $# != 0; then
2981 # We chose a different compiler from the bogus one.
2982 # However, it has the same basename, so the bogon will be chosen
2983 # first if we set CC to just the basename; use the full file name.
2984 shift
2985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2994 else
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
3000 if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
3002 for ac_prog in cl
3004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3006 echo "$as_me:$LINENO: checking for $ac_word" >&5
3007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3008 if test "${ac_cv_prog_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6
3034 else
3035 echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6
3039 test -n "$CC" && break
3040 done
3042 if test -z "$CC"; then
3043 ac_ct_CC=$CC
3044 for ac_prog in cl
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047 set dummy $ac_prog; ac_word=$2
3048 echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053 if test -n "$ac_ct_CC"; then
3054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_ac_ct_CC="$ac_prog"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3075 echo "${ECHO_T}$ac_ct_CC" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078 echo "${ECHO_T}no" >&6
3081 test -n "$ac_ct_CC" && break
3082 done
3084 CC=$ac_ct_CC
3090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3091 See \`config.log' for more details." >&5
3092 echo "$as_me: error: no acceptable C compiler found in \$PATH
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3096 # Provide some information about the compiler.
3097 echo "$as_me:$LINENO:" \
3098 "checking for C compiler version" >&5
3099 ac_compiler=`set X $ac_compile; echo $2`
3100 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3101 (eval $ac_compiler --version </dev/null >&5) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3106 (eval $ac_compiler -v </dev/null >&5) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }
3110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3111 (eval $ac_compiler -V </dev/null >&5) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 main ()
3128 return 0;
3130 _ACEOF
3131 ac_clean_files_save=$ac_clean_files
3132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3133 # Try to create an executable without -o first, disregard a.out.
3134 # It will help us diagnose broken compilers, and finding out an intuition
3135 # of exeext.
3136 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3139 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3140 (eval $ac_link_default) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
3144 # Find the output, starting from the most likely. This scheme is
3145 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3146 # resort.
3148 # Be careful to initialize this variable, since it used to be cached.
3149 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3150 ac_cv_exeext=
3151 # b.out is created by i960 compilers.
3152 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3158 conftest.$ac_ext )
3159 # This is the source file.
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 # FIXME: I believe we export ac_cv_exeext for Libtool,
3168 # but it would be cool to find out if it's true. Does anybody
3169 # maintain Libtool? --akim.
3170 export ac_cv_exeext
3171 break;;
3173 break;;
3174 esac
3175 done
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: C compiler cannot create executables
3183 See \`config.log' for more details." >&2;}
3184 { (exit 77); exit 77; }; }
3187 ac_exeext=$ac_cv_exeext
3188 echo "$as_me:$LINENO: result: $ac_file" >&5
3189 echo "${ECHO_T}$ac_file" >&6
3191 # Check the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3194 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3195 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3196 # If not cross compiling, check that we can run a simple program.
3197 if test "$cross_compiling" != yes; then
3198 if { ac_try='./$ac_file'
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 cross_compiling=no
3205 else
3206 if test "$cross_compiling" = maybe; then
3207 cross_compiling=yes
3208 else
3209 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details." >&5
3212 echo "$as_me: error: cannot run C compiled programs.
3213 If you meant to cross compile, use \`--host'.
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3219 echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3222 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3223 ac_clean_files=$ac_clean_files_save
3224 # Check the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3227 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3228 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3229 echo "${ECHO_T}$cross_compiling" >&6
3231 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3232 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 export ac_cv_exeext
3248 break;;
3249 * ) break;;
3250 esac
3251 done
3252 else
3253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3260 rm -f conftest$ac_cv_exeext
3261 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3266 ac_exeext=$EXEEXT
3267 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3269 if test "${ac_cv_objext+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
3293 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3297 break;;
3298 esac
3299 done
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3305 See \`config.log' for more details." >&5
3306 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&2;}
3308 { (exit 1); exit 1; }; }
3311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3314 echo "${ECHO_T}$ac_cv_objext" >&6
3315 OBJEXT=$ac_cv_objext
3316 ac_objext=$OBJEXT
3317 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3318 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3319 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3330 main ()
3332 #ifndef __GNUC__
3333 choke me
3334 #endif
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_compiler_gnu=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_compiler_gnu=no
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3374 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3375 GCC=`test $ac_compiler_gnu = yes && echo yes`
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 CFLAGS="-g"
3379 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3392 main ()
3396 return 0;
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_prog_cc_g=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 ac_cv_prog_cc_g=no
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3432 if test "$ac_test_CFLAGS" = set; then
3433 CFLAGS=$ac_save_CFLAGS
3434 elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3436 CFLAGS="-g -O2"
3437 else
3438 CFLAGS="-g"
3440 else
3441 if test "$GCC" = yes; then
3442 CFLAGS="-O2"
3443 else
3444 CFLAGS=
3447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 ac_cv_prog_cc_stdc=no
3453 ac_save_CC=$CC
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3468 char **p;
3469 int i;
3471 return p[i];
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std1 is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std1. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492 int test (int i, double x);
3493 struct s1 {int (*f) (int a);};
3494 struct s2 {int (*f) (double a);};
3495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496 int argc;
3497 char **argv;
3499 main ()
3501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3503 return 0;
3505 _ACEOF
3506 # Don't try gcc -ansi; that turns off useful extensions and
3507 # breaks some systems' header files.
3508 # AIX -qlanglvl=ansi
3509 # Ultrix and OSF/1 -std1
3510 # HP-UX 10.20 and later -Ae
3511 # HP-UX older versions -Aa -D_HPUX_SOURCE
3512 # SVR4 -Xc -D__EXTENSIONS__
3513 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 CC="$ac_save_CC $ac_arg"
3516 rm -f conftest.$ac_objext
3517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_prog_cc_stdc=$ac_arg
3539 break
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3545 rm -f conftest.err conftest.$ac_objext
3546 done
3547 rm -f conftest.$ac_ext conftest.$ac_objext
3548 CC=$ac_save_CC
3552 case "x$ac_cv_prog_cc_stdc" in
3553 x|xno)
3554 echo "$as_me:$LINENO: result: none needed" >&5
3555 echo "${ECHO_T}none needed" >&6 ;;
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3558 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3559 CC="$CC $ac_cv_prog_cc_stdc" ;;
3560 esac
3562 # Some people use a C++ compiler to compile C. Since we use `exit',
3563 # in C++ we need to declare it. In case someone uses the same compiler
3564 # for both compiling C and C++ we need to have the C++ compiler decide
3565 # the declaration of exit, since it's the most demanding environment.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #ifndef __cplusplus
3568 choke me
3569 #endif
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 for ac_declaration in \
3594 '' \
3595 'extern "C" void std::exit (int) throw (); using std::exit;' \
3596 'extern "C" void std::exit (int); using std::exit;' \
3597 'extern "C" void exit (int) throw ();' \
3598 'extern "C" void exit (int);' \
3599 'void exit (int);'
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 $ac_declaration
3608 #include <stdlib.h>
3610 main ()
3612 exit (42);
3614 return 0;
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_c_werror_flag"
3627 || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 continue
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 $ac_declaration
3655 main ()
3657 exit (42);
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 break
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691 done
3692 rm -f conftest*
3693 if test -n "$ac_declaration"; then
3694 echo '#ifdef __cplusplus' >>confdefs.h
3695 echo $ac_declaration >>confdefs.h
3696 echo '#endif' >>confdefs.h
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 ac_ext=cc
3712 ac_cpp='$CXXCPP $CPPFLAGS'
3713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_CXX+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$CXX"; then
3727 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3745 CXX=$ac_cv_prog_CXX
3746 if test -n "$CXX"; then
3747 echo "$as_me:$LINENO: result: $CXX" >&5
3748 echo "${ECHO_T}$CXX" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$CXX" && break
3755 done
3757 if test -z "$CXX"; then
3758 ac_ct_CXX=$CXX
3759 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$ac_ct_CXX"; then
3769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_CXX="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788 if test -n "$ac_ct_CXX"; then
3789 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3790 echo "${ECHO_T}$ac_ct_CXX" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 test -n "$ac_ct_CXX" && break
3797 done
3798 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3800 CXX=$ac_ct_CXX
3804 # Provide some information about the compiler.
3805 echo "$as_me:$LINENO:" \
3806 "checking for C++ compiler version" >&5
3807 ac_compiler=`set X $ac_compile; echo $2`
3808 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3809 (eval $ac_compiler --version </dev/null >&5) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }
3813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3814 (eval $ac_compiler -v </dev/null >&5) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }
3818 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3819 (eval $ac_compiler -V </dev/null >&5) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }
3824 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3825 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3826 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 main ()
3839 #ifndef __GNUC__
3840 choke me
3841 #endif
3844 return 0;
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_cxx_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_compiler_gnu=yes
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_compiler_gnu=no
3876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3880 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3881 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3882 GXX=`test $ac_compiler_gnu = yes && echo yes`
3883 ac_test_CXXFLAGS=${CXXFLAGS+set}
3884 ac_save_CXXFLAGS=$CXXFLAGS
3885 CXXFLAGS="-g"
3886 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3887 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3888 if test "${ac_cv_prog_cxx_g+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_cxx_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_cv_prog_cxx_g=yes
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 ac_cv_prog_cxx_g=no
3935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3938 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3939 if test "$ac_test_CXXFLAGS" = set; then
3940 CXXFLAGS=$ac_save_CXXFLAGS
3941 elif test $ac_cv_prog_cxx_g = yes; then
3942 if test "$GXX" = yes; then
3943 CXXFLAGS="-g -O2"
3944 else
3945 CXXFLAGS="-g"
3947 else
3948 if test "$GXX" = yes; then
3949 CXXFLAGS="-O2"
3950 else
3951 CXXFLAGS=
3954 for ac_declaration in \
3955 '' \
3956 'extern "C" void std::exit (int) throw (); using std::exit;' \
3957 'extern "C" void std::exit (int); using std::exit;' \
3958 'extern "C" void exit (int) throw ();' \
3959 'extern "C" void exit (int);' \
3960 'void exit (int);'
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 $ac_declaration
3969 #include <stdlib.h>
3971 main ()
3973 exit (42);
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4001 else
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 continue
4007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_declaration
4016 main ()
4018 exit (42);
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.$ac_objext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_cxx_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 break
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 done
4053 rm -f conftest*
4054 if test -n "$ac_declaration"; then
4055 echo '#ifdef __cplusplus' >>confdefs.h
4056 echo $ac_declaration >>confdefs.h
4057 echo '#endif' >>confdefs.h
4060 ac_ext=c
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 # We must set the default linker to the linker used by gcc for the correct
4068 # operation of libtool. If LD is not defined and we are using gcc, try to
4069 # set the LD default to the ld used by gcc.
4070 if test -z "$LD"; then
4071 if test "$GCC" = yes; then
4072 case $build in
4073 *-*-mingw*)
4074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4077 esac
4078 case $gcc_prog_ld in
4079 # Accept absolute paths.
4080 [\\/]* | [A-Za-z]:[\\/]*)
4081 LD="$gcc_prog_ld" ;;
4082 esac
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4092 echo "$as_me:$LINENO: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 if test -n "$GNATBIND"; then
4098 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4099 else
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4111 done
4112 done
4116 GNATBIND=$ac_cv_prog_GNATBIND
4117 if test -n "$GNATBIND"; then
4118 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4119 echo "${ECHO_T}$GNATBIND" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4126 if test -z "$ac_cv_prog_GNATBIND"; then
4127 ac_ct_GNATBIND=$GNATBIND
4128 # Extract the first word of "gnatbind", so it can be a program name with args.
4129 set dummy gnatbind; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 if test -n "$ac_ct_GNATBIND"; then
4136 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4152 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4155 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4156 if test -n "$ac_ct_GNATBIND"; then
4157 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4158 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4159 else
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4164 GNATBIND=$ac_ct_GNATBIND
4165 else
4166 GNATBIND="$ac_cv_prog_GNATBIND"
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 if test -n "$GNATMAKE"; then
4178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4191 done
4192 done
4196 GNATMAKE=$ac_cv_prog_GNATMAKE
4197 if test -n "$GNATMAKE"; then
4198 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4199 echo "${ECHO_T}$GNATMAKE" >&6
4200 else
4201 echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4206 if test -z "$ac_cv_prog_GNATMAKE"; then
4207 ac_ct_GNATMAKE=$GNATMAKE
4208 # Extract the first word of "gnatmake", so it can be a program name with args.
4209 set dummy gnatmake; ac_word=$2
4210 echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 if test -n "$ac_ct_GNATMAKE"; then
4216 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4229 done
4230 done
4232 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4235 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4236 if test -n "$ac_ct_GNATMAKE"; then
4237 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4238 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4244 GNATMAKE=$ac_ct_GNATMAKE
4245 else
4246 GNATMAKE="$ac_cv_prog_GNATMAKE"
4249 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4250 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4251 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 cat >conftest.adb <<EOF
4255 procedure conftest is begin null; end conftest;
4257 acx_cv_cc_gcc_supports_ada=no
4258 # There is a bug in old released versions of GCC which causes the
4259 # driver to exit successfully when the appropriate language module
4260 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4261 # Therefore we must check for the error message as well as an
4262 # unsuccessful exit.
4263 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4264 # given a .adb file, but produce no object file. So we must check
4265 # if an object file was really produced to guard against this.
4266 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4267 if test x"$errors" = x && test -f conftest.$ac_objext; then
4268 acx_cv_cc_gcc_supports_ada=yes
4270 rm -f conftest.*
4272 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4273 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4275 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4276 have_gnat=yes
4277 else
4278 have_gnat=no
4281 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4282 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4283 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 echo abfoo >t1
4287 echo cdfoo >t2
4288 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4292 else
4293 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4299 else
4300 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4303 rm t1 t2
4306 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4307 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4308 do_compare="$gcc_cv_prog_cmp_skip"
4312 # Check for GMP and MPFR
4313 gmplibs="-lmpfr -lgmp"
4314 gmpinc=
4315 have_gmp=no
4317 # Specify a location for mpfr
4318 # check for this first so it ends up on the link line before gmp.
4320 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4321 if test "${with_mpfr_dir+set}" = set; then
4322 withval="$with_mpfr_dir"
4323 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4324 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4325 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4326 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4327 { (exit 1); exit 1; }; }
4331 # Check whether --with-mpfr or --without-mpfr was given.
4332 if test "${with_mpfr+set}" = set; then
4333 withval="$with_mpfr"
4337 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4338 if test "${with_mpfr_include+set}" = set; then
4339 withval="$with_mpfr_include"
4343 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4344 if test "${with_mpfr_lib+set}" = set; then
4345 withval="$with_mpfr_lib"
4349 if test "x$with_mpfr" != x; then
4350 gmplibs="-L$with_mpfr/lib $gmplibs"
4351 gmpinc="-I$with_mpfr/include"
4353 if test "x$with_mpfr_include" != x; then
4354 gmpinc="-I$with_mpfr_include"
4356 if test "x$with_mpfr_lib" != x; then
4357 gmplibs="-L$with_mpfr_lib $gmplibs"
4359 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4360 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4361 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4362 # Do not test the mpfr version. Assume that it is sufficient, since
4363 # it is in the source tree, and the library has not been built yet
4364 # but it would be included on the link line in the version check below
4365 # hence making the test fail.
4366 have_gmp=yes
4369 # Specify a location for gmp
4371 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4372 if test "${with_gmp_dir+set}" = set; then
4373 withval="$with_gmp_dir"
4374 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4375 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4376 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4377 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4378 { (exit 1); exit 1; }; }
4382 # Check whether --with-gmp or --without-gmp was given.
4383 if test "${with_gmp+set}" = set; then
4384 withval="$with_gmp"
4388 # Check whether --with-gmp_include or --without-gmp_include was given.
4389 if test "${with_gmp_include+set}" = set; then
4390 withval="$with_gmp_include"
4394 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4395 if test "${with_gmp_lib+set}" = set; then
4396 withval="$with_gmp_lib"
4401 if test "x$with_gmp" != x; then
4402 gmplibs="-L$with_gmp/lib $gmplibs"
4403 gmpinc="-I$with_gmp/include $gmpinc"
4405 if test "x$with_gmp_include" != x; then
4406 gmpinc="-I$with_gmp_include $gmpinc"
4408 if test "x$with_gmp_lib" != x; then
4409 gmplibs="-L$with_gmp_lib $gmplibs"
4411 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4412 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4413 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4414 # Do not test the gmp version. Assume that it is sufficient, since
4415 # it is in the source tree, and the library has not been built yet
4416 # but it would be included on the link line in the version check below
4417 # hence making the test fail.
4418 have_gmp=yes
4421 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4422 have_gmp=yes
4423 saved_CFLAGS="$CFLAGS"
4424 CFLAGS="$CFLAGS $gmpinc"
4425 # Check GMP actually works
4426 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4427 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include "gmp.h"
4437 main ()
4440 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4441 choke me
4442 #endif
4445 return 0;
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; have_gmp=no
4479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 if test x"$have_gmp" = xyes; then
4482 saved_LIBS="$LIBS"
4483 LIBS="$LIBS $gmplibs"
4484 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4485 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <gmp.h>
4493 #include <mpfr.h>
4495 main ()
4498 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4499 choke me
4500 #endif
4501 mpfr_t n;
4502 mpfr_t x;
4503 int t;
4504 mpfr_init (n);
4505 mpfr_init (x);
4506 mpfr_atan2 (n, n, x, GMP_RNDN);
4507 mpfr_erfc (n, x, GMP_RNDN);
4508 mpfr_subnormalize (x, t, GMP_RNDN);
4511 return 0;
4513 _ACEOF
4514 rm -f conftest.$ac_objext conftest$ac_exeext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <gmp.h>
4543 #include <mpfr.h>
4545 main ()
4548 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4549 choke me
4550 #endif
4551 mpfr_t n; mpfr_init(n);
4554 return 0;
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559 (eval $ac_link) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest$ac_exeext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4586 echo "${ECHO_T}buggy but acceptable" >&6
4588 rm -f conftest.err conftest.$ac_objext \
4589 conftest$ac_exeext conftest.$ac_ext
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; have_gmp=no
4597 rm -f conftest.err conftest.$ac_objext \
4598 conftest$ac_exeext conftest.$ac_ext
4599 LIBS="$saved_LIBS"
4601 CFLAGS="$saved_CFLAGS"
4603 if test x$have_gmp != xyes; then
4604 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4605 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4606 Copies of these libraries' source code can be found at their respective
4607 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4608 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4609 If you obtained GMP and/or MPFR from a vendor distribution package, make
4610 sure that you have installed both the libraries and the header files.
4611 They may be located in separate packages." >&5
4612 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4613 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4614 Copies of these libraries' source code can be found at their respective
4615 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4616 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4617 If you obtained GMP and/or MPFR from a vendor distribution package, make
4618 sure that you have installed both the libraries and the header files.
4619 They may be located in separate packages." >&2;}
4620 { (exit 1); exit 1; }; }
4624 # Flags needed for both GMP and/or MPFR
4628 # By default, C is the only stage 1 language.
4629 stage1_languages=,c,
4631 # Figure out what language subdirectories are present.
4632 # Look if the user specified --enable-languages="..."; if not, use
4633 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4634 # go away some day.
4635 # NB: embedded tabs in this IF block -- do not untabify
4636 if test -d ${srcdir}/gcc; then
4637 if test x"${enable_languages+set}" != xset; then
4638 if test x"${LANGUAGES+set}" = xset; then
4639 enable_languages="${LANGUAGES}"
4640 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4641 else
4642 enable_languages=all
4644 else
4645 if test x"${enable_languages}" = x ||
4646 test x"${enable_languages}" = xyes;
4647 then
4648 echo configure.in: --enable-languages needs at least one language argument 1>&2
4649 exit 1
4652 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4654 # 'f95' is the old name for the 'fortran' language. We issue a warning
4655 # and make the substitution.
4656 case ,${enable_languages}, in
4657 *,f95,*)
4658 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4659 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4661 esac
4663 # First scan to see if an enabled language requires some other language.
4664 # We assume that a given config-lang.in will list all the language
4665 # front ends it requires, even if some are required indirectly.
4666 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4667 case ${lang_frag} in
4668 ..) ;;
4669 # The odd quoting in the next line works around
4670 # an apparent bug in bash 1.12 on linux.
4671 ${srcdir}/gcc/[*]/config-lang.in) ;;
4673 # From the config-lang.in, get $language, $lang_requires
4674 language=
4675 lang_requires=
4676 . ${lang_frag}
4677 for other in ${lang_requires} ; do
4678 case ,${enable_languages}, in
4679 *,$other,*) ;;
4680 *,all,*) ;;
4681 *,$language,*)
4682 echo " \`$other' language required by \`$language'; enabling" 1>&2
4683 enable_languages="${enable_languages},${other}"
4685 esac
4686 done
4688 esac
4689 done
4691 new_enable_languages=,c,
4692 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4693 potential_languages=,c,
4695 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4696 case ${lang_frag} in
4697 ..) ;;
4698 # The odd quoting in the next line works around
4699 # an apparent bug in bash 1.12 on linux.
4700 ${srcdir}/gcc/[*]/config-lang.in) ;;
4702 # From the config-lang.in, get $language, $target_libs,
4703 # $lang_dirs, $boot_language, and $build_by_default
4704 language=
4705 target_libs=
4706 lang_dirs=
4707 subdir_requires=
4708 boot_language=no
4709 build_by_default=yes
4710 . ${lang_frag}
4711 if test x${language} = x; then
4712 echo "${lang_frag} doesn't set \$language." 1>&2
4713 exit 1
4716 case ,${enable_languages}, in
4717 *,${language},*)
4718 # Language was explicitly selected; include it.
4719 add_this_lang=yes
4721 *,all,*)
4722 # 'all' was selected, select it if it is a default language
4723 add_this_lang=${build_by_default}
4726 add_this_lang=no
4728 esac
4730 # Disable languages that need other directories if these aren't available.
4731 for i in $subdir_requires; do
4732 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4733 case ,${enable_languages}, in
4734 *,${language},*)
4735 # Specifically requested language; tell them.
4736 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4737 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4738 { (exit 1); exit 1; }; }
4741 # Silently disable.
4742 add_this_lang=unsupported
4744 esac
4745 done
4747 # Disable Ada if no preexisting GNAT is available.
4748 case ,${enable_languages},:${language}:${have_gnat} in
4749 *,${language},*:ada:no)
4750 # Specifically requested language; tell them.
4751 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4752 echo "$as_me: error: GNAT is required to build $language" >&2;}
4753 { (exit 1); exit 1; }; }
4755 *:ada:no)
4756 # Silently disable.
4757 add_this_lang=unsupported
4759 esac
4761 # Disable a language that is unsupported by the target.
4762 case " $unsupported_languages " in
4763 *" $language "*)
4764 add_this_lang=unsupported
4766 esac
4768 case $add_this_lang in
4769 unsupported)
4770 # Remove language-dependent dirs.
4771 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4774 # Remove language-dependent dirs; still show language as supported.
4775 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4776 potential_languages="${potential_languages}${language},"
4778 yes)
4779 new_enable_languages="${new_enable_languages}${language},"
4780 potential_languages="${potential_languages}${language},"
4781 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4782 case ${boot_language} in
4783 yes)
4784 # Add to (comma-separated) list of stage 1 languages.
4785 stage1_languages="${stage1_languages}${language},"
4787 esac
4789 esac
4791 esac
4792 done
4794 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4795 if test "${enable_stage1_languages+set}" = set; then
4796 enableval="$enable_stage1_languages"
4797 case ,${enable_stage1_languages}, in
4798 ,no,|,,)
4799 # Set it to something that will have no effect in the loop below
4800 enable_stage1_languages=c ;;
4801 ,yes,)
4802 enable_stage1_languages=`echo $new_enable_languages | \
4803 sed -e "s/^,//" -e "s/,$//" ` ;;
4804 *,all,*)
4805 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4806 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4807 esac
4809 # Add "good" languages from enable_stage1_languages to stage1_languages,
4810 # while "bad" languages go in missing_languages. Leave no duplicates.
4811 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4812 case $potential_languages in
4813 *,$i,*)
4814 case $stage1_languages in
4815 *,$i,*) ;;
4816 *) stage1_languages="$stage1_languages$i," ;;
4817 esac ;;
4819 case $missing_languages in
4820 *,$i,*) ;;
4821 *) missing_languages="$missing_languages$i," ;;
4822 esac ;;
4823 esac
4824 done
4827 # Remove leading/trailing commas that were added for simplicity
4828 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4829 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4830 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4831 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4833 if test "x$missing_languages" != x; then
4834 { { echo "$as_me:$LINENO: error:
4835 The following requested languages could not be built: ${missing_languages}
4836 Supported languages are: ${potential_languages}" >&5
4837 echo "$as_me: error:
4838 The following requested languages could not be built: ${missing_languages}
4839 Supported languages are: ${potential_languages}" >&2;}
4840 { (exit 1); exit 1; }; }
4842 if test "x$new_enable_languages" != "x$enable_languages"; then
4843 echo The following languages will be built: ${new_enable_languages}
4844 enable_languages="$new_enable_languages"
4848 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4851 # Handle --disable-<component> generically.
4852 for dir in $configdirs $build_configdirs $target_configdirs ; do
4853 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4854 if eval test x\${enable_${dirname}} "=" xno ; then
4855 noconfigdirs="$noconfigdirs $dir"
4857 done
4859 # Check for Boehm's garbage collector
4860 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4861 if test "${enable_objc_gc+set}" = set; then
4862 enableval="$enable_objc_gc"
4863 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4864 *,objc,*:*:yes:*target-boehm-gc*)
4865 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4866 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4867 { (exit 1); exit 1; }; }
4869 esac
4872 # Make sure we only build Boehm's garbage collector if required.
4873 case ,${enable_languages},:${enable_objc_gc} in
4874 *,objc,*:yes)
4875 # Keep target-boehm-gc if requested for Objective-C.
4878 # Otherwise remove target-boehm-gc depending on target-libjava.
4879 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4880 noconfigdirs="$noconfigdirs target-boehm-gc"
4883 esac
4885 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4886 # $build_configdirs and $target_configdirs.
4887 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4889 notsupp=""
4890 for dir in . $skipdirs $noconfigdirs ; do
4891 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4892 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4893 configdirs=`echo " ${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 " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4903 build_configdirs=`echo " ${build_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 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4913 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4914 if test -r $srcdir/$dirname/configure ; then
4915 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4916 true
4917 else
4918 notsupp="$notsupp $dir"
4922 done
4924 # Sometimes the tools are distributed with libiberty but with no other
4925 # libraries. In that case, we don't want to build target-libiberty.
4926 # Don't let libgcc imply libiberty either.
4927 if test -n "${target_configdirs}" ; then
4928 libgcc=
4929 others=
4930 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4931 if test "$i" = "libgcc"; then
4932 libgcc=target-libgcc
4933 elif test "$i" != "libiberty" ; then
4934 if test -r $srcdir/$i/configure ; then
4935 others=yes;
4936 break;
4939 done
4940 if test -z "${others}" ; then
4941 target_configdirs=$libgcc
4945 # Quietly strip out all directories which aren't configurable in this tree.
4946 # This relies on all configurable subdirectories being autoconfiscated, which
4947 # is now the case.
4948 build_configdirs_all="$build_configdirs"
4949 build_configdirs=
4950 for i in ${build_configdirs_all} ; do
4951 j=`echo $i | sed -e s/build-//g`
4952 if test -f ${srcdir}/$j/configure ; then
4953 build_configdirs="${build_configdirs} $i"
4955 done
4957 configdirs_all="$configdirs"
4958 configdirs=
4959 for i in ${configdirs_all} ; do
4960 if test -f ${srcdir}/$i/configure ; then
4961 configdirs="${configdirs} $i"
4963 done
4965 target_configdirs_all="$target_configdirs"
4966 target_configdirs=
4967 for i in ${target_configdirs_all} ; do
4968 j=`echo $i | sed -e s/target-//g`
4969 if test -f ${srcdir}/$j/configure ; then
4970 target_configdirs="${target_configdirs} $i"
4972 done
4974 # Produce a warning message for the subdirs we can't configure.
4975 # This isn't especially interesting in the Cygnus tree, but in the individual
4976 # FSF releases, it's important to let people know when their machine isn't
4977 # supported by the one or two programs in a package.
4979 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4980 # If $appdirs is non-empty, at least one of those directories must still
4981 # be configured, or we error out. (E.g., if the gas release supports a
4982 # specified target in some subdirs but not the gas subdir, we shouldn't
4983 # pretend that all is well.)
4984 if test -n "$appdirs" ; then
4985 for dir in $appdirs ; do
4986 if test -r $dir/Makefile.in ; then
4987 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4988 appdirs=""
4989 break
4991 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4992 appdirs=""
4993 break
4996 done
4997 if test -n "$appdirs" ; then
4998 echo "*** This configuration is not supported by this package." 1>&2
4999 exit 1
5002 # Okay, some application will build, or we don't care to check. Still
5003 # notify of subdirs not getting built.
5004 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5005 echo " ${notsupp}" 1>&2
5006 echo " (Any other directories should still work fine.)" 1>&2
5009 case "$host" in
5010 *msdosdjgpp*)
5011 enable_gdbtk=no ;;
5012 esac
5014 # To find our prefix, in gcc_cv_tool_prefix.
5016 # The user is always right.
5017 if test "${PATH_SEPARATOR+set}" != set; then
5018 echo "#! /bin/sh" >conf$$.sh
5019 echo "exit 0" >>conf$$.sh
5020 chmod +x conf$$.sh
5021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5022 PATH_SEPARATOR=';'
5023 else
5024 PATH_SEPARATOR=:
5026 rm -f conf$$.sh
5031 if test "x$exec_prefix" = xNONE; then
5032 if test "x$prefix" = xNONE; then
5033 gcc_cv_tool_prefix=$ac_default_prefix
5034 else
5035 gcc_cv_tool_prefix=$prefix
5037 else
5038 gcc_cv_tool_prefix=$exec_prefix
5041 # If there is no compiler in the tree, use the PATH only. In any
5042 # case, if there is no compiler in the tree nobody should use
5043 # AS_FOR_TARGET and LD_FOR_TARGET.
5044 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5045 gcc_version=`cat $srcdir/gcc/BASE-VER`
5046 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5050 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5051 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5052 else
5053 gcc_cv_tool_dirs=
5056 if test x$build = x$target && test -n "$md_exec_prefix"; then
5057 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5062 copy_dirs=
5065 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5066 if test "${with_build_sysroot+set}" = set; then
5067 withval="$with_build_sysroot"
5068 if test x"$withval" != x ; then
5069 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5071 else
5072 SYSROOT_CFLAGS_FOR_TARGET=
5077 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5078 if test "${with_debug_prefix_map+set}" = set; then
5079 withval="$with_debug_prefix_map"
5080 if test x"$withval" != x; then
5081 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5082 for debug_map in $withval; do
5083 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5084 done
5086 else
5087 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5091 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5092 # the named directory are copied to $(tooldir)/sys-include.
5093 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5094 if test x${is_cross_compiler} = xno ; then
5095 echo 1>&2 '***' --with-headers is only supported when cross compiling
5096 exit 1
5098 if test x"${with_headers}" != xyes ; then
5099 x=${gcc_cv_tool_prefix}
5100 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5104 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5105 # the name directories are copied to $(tooldir)/lib. Multiple directories
5106 # are permitted.
5107 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5108 if test x${is_cross_compiler} = xno ; then
5109 echo 1>&2 '***' --with-libs is only supported when cross compiling
5110 exit 1
5112 if test x"${with_libs}" != xyes ; then
5113 # Copy the libraries in reverse order, so that files in the first named
5114 # library override files in subsequent libraries.
5115 x=${gcc_cv_tool_prefix}
5116 for l in ${with_libs}; do
5117 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5118 done
5122 # Set with_gnu_as and with_gnu_ld as appropriate.
5124 # This is done by determining whether or not the appropriate directory
5125 # is available, and by checking whether or not specific configurations
5126 # have requested that this magic not happen.
5128 # The command line options always override the explicit settings in
5129 # configure.in, and the settings in configure.in override this magic.
5131 # If the default for a toolchain is to use GNU as and ld, and you don't
5132 # want to do that, then you should use the --without-gnu-as and
5133 # --without-gnu-ld options for the configure script.
5135 if test x${use_gnu_as} = x &&
5136 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5137 with_gnu_as=yes
5138 extra_host_args="$extra_host_args --with-gnu-as"
5141 if test x${use_gnu_ld} = x &&
5142 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5143 with_gnu_ld=yes
5144 extra_host_args="$extra_host_args --with-gnu-ld"
5147 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5148 # can detect this case.
5150 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5151 with_newlib=yes
5152 extra_host_args="$extra_host_args --with-newlib"
5155 # Handle ${copy_dirs}
5156 set fnord ${copy_dirs}
5157 shift
5158 while test $# != 0 ; do
5159 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5161 else
5162 echo Copying $1 to $2
5164 # Use the install script to create the directory and all required
5165 # parent directories.
5166 if test -d $2 ; then
5168 else
5169 echo >config.temp
5170 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5173 # Copy the directory, assuming we have tar.
5174 # FIXME: Should we use B in the second tar? Not all systems support it.
5175 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5177 # It is the responsibility of the user to correctly adjust all
5178 # symlinks. If somebody can figure out how to handle them correctly
5179 # here, feel free to add the code.
5181 echo $1 > $2/COPIED
5183 shift; shift
5184 done
5186 # Determine a target-dependent exec_prefix that the installed
5187 # gcc will search in. Keep this list sorted by triplet, with
5188 # the *-*-osname triplets last.
5189 md_exec_prefix=
5190 case "${target}" in
5191 alpha*-*-*vms*)
5192 md_exec_prefix=/gnu/lib/gcc-lib
5194 i[34567]86-pc-msdosdjgpp*)
5195 md_exec_prefix=/dev/env/DJDIR/bin
5197 i[34567]86-*-sco3.2v5*)
5198 if test $with_gnu_as = yes; then
5199 md_exec_prefix=/usr/gnu/bin
5200 else
5201 md_exec_prefix=/usr/ccs/bin/elf
5205 mn10300-*-* | \
5206 powerpc-*-chorusos* | \
5207 powerpc*-*-eabi* | \
5208 powerpc*-*-sysv* | \
5209 powerpc*-*-kaos* | \
5210 s390x-ibm-tpf*)
5211 md_exec_prefix=/usr/ccs/bin
5213 sparc64-*-elf*)
5215 v850*-*-*)
5216 md_exec_prefix=/usr/ccs/bin
5218 xtensa-*-elf*)
5221 *-*-beos* | \
5222 *-*-elf* | \
5223 *-*-hpux* | \
5224 *-*-netware* | \
5225 *-*-nto-qnx* | \
5226 *-*-rtems* | \
5227 *-*-solaris2* | \
5228 *-*-sysv[45]* | \
5229 *-*-vxworks* | \
5230 *-wrs-windiss)
5231 md_exec_prefix=/usr/ccs/bin
5233 esac
5235 extra_arflags_for_target=
5236 extra_nmflags_for_target=
5237 extra_ranlibflags_for_target=
5238 target_makefile_frag=/dev/null
5239 case "${target}" in
5240 mep*-*-*)
5241 target_makefile_frag="config/mt-mep"
5243 spu-*-*)
5244 target_makefile_frag="config/mt-spu"
5246 mips*-sde-elf*)
5247 target_makefile_frag="config/mt-sde"
5249 *-*-netware*)
5250 target_makefile_frag="config/mt-netware"
5252 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5253 target_makefile_frag="config/mt-gnu"
5255 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5256 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5257 # commands to handle both 32-bit and 64-bit objects. These flags are
5258 # harmless if we're using GNU nm or ar.
5259 extra_arflags_for_target=" -X32_64"
5260 extra_nmflags_for_target=" -B -X32_64"
5262 *-*-darwin*)
5263 # ranlib from Darwin requires the -c flag to look at common symbols.
5264 extra_ranlibflags_for_target=" -c"
5266 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5267 target_makefile_frag="config/mt-wince"
5269 esac
5271 alphaieee_frag=/dev/null
5272 case $target in
5273 alpha*-*-*)
5274 # This just makes sure to use the -mieee option to build target libs.
5275 # This should probably be set individually by each library.
5276 alphaieee_frag="config/mt-alphaieee"
5278 esac
5280 # If --enable-target-optspace always use -Os instead of -O2 to build
5281 # the target libraries, similarly if it is not specified, use -Os
5282 # on selected platforms.
5283 ospace_frag=/dev/null
5284 case "${enable_target_optspace}:${target}" in
5285 yes:*)
5286 ospace_frag="config/mt-ospace"
5288 :d30v-*)
5289 ospace_frag="config/mt-d30v"
5291 :m32r-* | :d10v-* | :fr30-*)
5292 ospace_frag="config/mt-ospace"
5294 no:* | :*)
5297 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5299 esac
5301 # Default to using --with-stabs for certain targets.
5302 if test x${with_stabs} = x ; then
5303 case "${target}" in
5304 mips*-*-irix[56]*)
5306 mips*-*-* | alpha*-*-osf*)
5307 with_stabs=yes;
5308 extra_host_args="${extra_host_args} --with-stabs"
5310 esac
5313 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5314 # them automatically.
5315 case "${host}" in
5316 hppa*64*-*-hpux11*)
5317 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5319 esac
5321 # Some systems (e.g., one of the i386-aix systems the gas testers are
5322 # using) don't handle "\$" correctly, so don't use it here.
5323 tooldir='${exec_prefix}'/${target_noncanonical}
5324 build_tooldir=${tooldir}
5326 # Create a .gdbinit file which runs the one in srcdir
5327 # and tells GDB to look there for source files.
5329 if test -r ${srcdir}/.gdbinit ; then
5330 case ${srcdir} in
5331 .) ;;
5332 *) cat > ./.gdbinit <<EOF
5333 # ${NO_EDIT}
5334 dir ${srcdir}
5335 dir .
5336 source ${srcdir}/.gdbinit
5339 esac
5342 # Make sure that the compiler is able to generate an executable. If it
5343 # can't, we are probably in trouble. We don't care whether we can run the
5344 # executable--we might be using a cross compiler--we only care whether it
5345 # can be created. At this point the main configure script has set CC.
5346 we_are_ok=no
5347 echo "int main () { return 0; }" > conftest.c
5348 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5349 if test $? = 0 ; then
5350 if test -s conftest || test -s conftest.exe ; then
5351 we_are_ok=yes
5354 case $we_are_ok in
5356 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5357 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5358 rm -f conftest*
5359 exit 1
5361 esac
5362 rm -f conftest*
5364 # The Solaris /usr/ucb/cc compiler does not appear to work.
5365 case "${host}" in
5366 sparc-sun-solaris2*)
5367 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5368 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5369 could_use=
5370 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5371 if test -d /opt/cygnus/bin ; then
5372 if test "$could_use" = "" ; then
5373 could_use="/opt/cygnus/bin"
5374 else
5375 could_use="$could_use or /opt/cygnus/bin"
5378 if test "$could_use" = "" ; then
5379 echo "Warning: compilation may fail because you're using"
5380 echo "/usr/ucb/cc. You should change your PATH or CC "
5381 echo "variable and rerun configure."
5382 else
5383 echo "Warning: compilation may fail because you're using"
5384 echo "/usr/ucb/cc, when you should use the C compiler from"
5385 echo "$could_use. You should change your"
5386 echo "PATH or CC variable and rerun configure."
5390 esac
5392 case "${host}" in
5393 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5394 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5395 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5396 esac
5398 # Record target_configdirs and the configure arguments for target and
5399 # build configuration in Makefile.
5400 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5401 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5403 # Determine whether gdb needs tk/tcl or not.
5404 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5405 # and in that case we want gdb to be built without tk. Ugh!
5406 # In fact I believe gdb is the *only* package directly dependent on tk,
5407 # so we should be able to put the 'maybe's in unconditionally and
5408 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5409 # 100% sure that that's safe though.
5411 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5412 case "$enable_gdbtk" in
5414 GDB_TK="" ;;
5415 yes)
5416 GDB_TK="${gdb_tk}" ;;
5418 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5419 # distro. Eventually someone will fix this and move Insight, nee
5420 # gdbtk to a separate directory.
5421 if test -d ${srcdir}/gdb/gdbtk ; then
5422 GDB_TK="${gdb_tk}"
5423 else
5424 GDB_TK=""
5427 esac
5428 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5429 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5431 # Strip out unwanted targets.
5433 # While at that, we remove Makefiles if we were started for recursive
5434 # configuration, so that the top-level Makefile reconfigures them,
5435 # like we used to do when configure itself was recursive.
5437 # Loop over modules. $extrasub must be used with care, limiting as
5438 # much as possible the usage of range addresses. That's because autoconf
5439 # splits the sed script to overcome limits in the number of commands,
5440 # and relying on carefully-timed sed passes may turn out to be very hard
5441 # to maintain later. In this particular case, you just have to be careful
5442 # not to nest @if/@endif pairs, because configure will not warn you at all.
5444 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5445 if test "${enable_bootstrap+set}" = set; then
5446 enableval="$enable_bootstrap"
5448 else
5449 enable_bootstrap=default
5452 # Issue errors and warnings for invalid/strange bootstrap combinations.
5453 case "$configdirs" in
5454 *gcc*) have_compiler=yes ;;
5455 *) have_compiler=no ;;
5456 esac
5458 case "$have_compiler:$host:$target:$enable_bootstrap" in
5459 *:*:*:no) ;;
5461 # Default behavior. Enable bootstrap if we have a compiler
5462 # and we are in a native configuration.
5463 yes:$build:$build:default)
5464 enable_bootstrap=yes ;;
5466 *:*:*:default)
5467 enable_bootstrap=no ;;
5469 # We have a compiler and we are in a native configuration, bootstrap is ok
5470 yes:$build:$build:yes)
5473 # Other configurations, but we have a compiler. Assume the user knows
5474 # what he's doing.
5475 yes:*:*:yes)
5476 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5477 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5480 # No compiler: if they passed --enable-bootstrap explicitly, fail
5481 no:*:*:yes)
5482 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5483 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5484 { (exit 1); exit 1; }; } ;;
5486 # Fail if wrong command line
5488 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5489 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5490 { (exit 1); exit 1; }; }
5492 esac
5494 # Adjust the toplevel makefile according to whether bootstrap was selected.
5495 case "$enable_bootstrap" in
5496 yes)
5497 bootstrap_suffix=bootstrap ;;
5499 bootstrap_suffix=no-bootstrap ;;
5500 esac
5502 for module in ${build_configdirs} ; do
5503 if test -z "${no_recursion}" \
5504 && test -f ${build_subdir}/${module}/Makefile; then
5505 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5506 rm -f ${build_subdir}/${module}/Makefile
5508 extrasub="$extrasub
5509 /^@if build-$module\$/d
5510 /^@endif build-$module\$/d
5511 /^@if build-$module-$bootstrap_suffix\$/d
5512 /^@endif build-$module-$bootstrap_suffix\$/d"
5513 done
5514 for module in ${configdirs} ; do
5515 if test -z "${no_recursion}"; then
5516 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5517 if test -f ${file}; then
5518 echo 1>&2 "*** removing ${file} to force reconfigure"
5519 rm -f ${file}
5521 done
5523 extrasub="$extrasub
5524 /^@if $module\$/d
5525 /^@endif $module\$/d
5526 /^@if $module-$bootstrap_suffix\$/d
5527 /^@endif $module-$bootstrap_suffix\$/d"
5528 done
5529 for module in ${target_configdirs} ; do
5530 if test -z "${no_recursion}" \
5531 && test -f ${target_subdir}/${module}/Makefile; then
5532 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5533 rm -f ${target_subdir}/${module}/Makefile
5535 extrasub="$extrasub
5536 /^@if target-$module\$/d
5537 /^@endif target-$module\$/d
5538 /^@if target-$module-$bootstrap_suffix\$/d
5539 /^@endif target-$module-$bootstrap_suffix\$/d"
5540 done
5542 extrasub="$extrasub
5543 /^@if /,/^@endif /d"
5545 # Create the serialization dependencies. This uses a temporary file.
5547 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5548 if test "${enable_serial_configure+set}" = set; then
5549 enableval="$enable_serial_configure"
5553 case ${enable_serial_configure} in
5554 yes)
5555 enable_serial_build_configure=yes
5556 enable_serial_host_configure=yes
5557 enable_serial_target_configure=yes
5559 esac
5561 # These force 'configure's to be done one at a time, to avoid problems
5562 # with contention over a shared config.cache.
5563 rm -f serdep.tmp
5564 echo '# serdep.tmp' > serdep.tmp
5565 olditem=
5566 test "x${enable_serial_build_configure}" = xyes &&
5567 for item in ${build_configdirs} ; do
5568 case ${olditem} in
5569 "") ;;
5570 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5571 esac
5572 olditem=${item}
5573 done
5574 olditem=
5575 test "x${enable_serial_host_configure}" = xyes &&
5576 for item in ${configdirs} ; do
5577 case ${olditem} in
5578 "") ;;
5579 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5580 esac
5581 olditem=${item}
5582 done
5583 olditem=
5584 test "x${enable_serial_target_configure}" = xyes &&
5585 for item in ${target_configdirs} ; do
5586 case ${olditem} in
5587 "") ;;
5588 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5589 esac
5590 olditem=${item}
5591 done
5592 serialization_dependencies=serdep.tmp
5595 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5596 # target, nonopt, and variable assignments. These are the ones we
5597 # might not want to pass down to subconfigures. Also strip
5598 # program-prefix, program-suffix, and program-transform-name, so that
5599 # we can pass down a consistent program-transform-name.
5600 baseargs=
5601 keep_next=no
5602 skip_next=no
5603 eval "set -- $ac_configure_args"
5604 for ac_arg
5606 if test X"$skip_next" = X"yes"; then
5607 skip_next=no
5608 continue
5610 if test X"$keep_next" = X"yes"; then
5611 case $ac_arg in
5612 *\'*)
5613 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5614 esac
5615 baseargs="$baseargs '$ac_arg'"
5616 keep_next=no
5617 continue
5620 # Handle separated arguments. Based on the logic generated by
5621 # autoconf 2.59.
5622 case $ac_arg in
5623 *=* | --config-cache | -C | -disable-* | --disable-* \
5624 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5625 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5626 | -with-* | --with-* | -without-* | --without-* | --x)
5627 separate_arg=no
5630 separate_arg=yes
5633 separate_arg=no
5635 esac
5637 case "$ac_arg" in
5638 --no*)
5639 continue
5641 --c* | \
5642 --sr* | \
5643 --ho* | \
5644 --bu* | \
5645 --t* | \
5646 --program-* | \
5647 -cache_file* | \
5648 -srcdir* | \
5649 -host* | \
5650 -build* | \
5651 -target* | \
5652 -program-prefix* | \
5653 -program-suffix* | \
5654 -program-transform-name* )
5655 skip_next=$separate_arg
5656 continue
5659 # An option. Add it.
5660 case $ac_arg in
5661 *\'*)
5662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5663 esac
5664 baseargs="$baseargs '$ac_arg'"
5665 keep_next=$separate_arg
5668 # Either a variable assignment, or a nonopt (triplet). Don't
5669 # pass it down; let the Makefile handle this.
5670 continue
5672 esac
5673 done
5674 # Remove the initial space we just introduced and, as these will be
5675 # expanded by make, quote '$'.
5676 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5678 # Add in --program-transform-name, after --program-prefix and
5679 # --program-suffix have been applied to it. Autoconf has already
5680 # doubled dollar signs and backslashes in program_transform_name; we want
5681 # the backslashes un-doubled, and then the entire thing wrapped in single
5682 # quotes, because this will be expanded first by make and then by the shell.
5683 # Also, because we want to override the logic in subdir configure scripts to
5684 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5685 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5686 ${program_transform_name}
5687 EOF_SED
5688 gcc_transform_name=`cat conftestsed.out`
5689 rm -f conftestsed.out
5690 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5691 if test "$silent" = yes; then
5692 baseargs="$baseargs --silent"
5695 # For the build-side libraries, we just need to pretend we're native,
5696 # and not use the same cache file. Multilibs are neither needed nor
5697 # desired.
5698 build_configargs="--cache-file=../config.cache ${baseargs}"
5700 # For host modules, accept cache file option, or specification as blank.
5701 case "${cache_file}" in
5702 "") # empty
5703 cache_file_option="" ;;
5704 /* | [A-Za-z]:[\\/]* ) # absolute path
5705 cache_file_option="--cache-file=${cache_file}" ;;
5706 *) # relative path
5707 cache_file_option="--cache-file=../${cache_file}" ;;
5708 esac
5710 # Host dirs don't like to share a cache file either, horribly enough.
5711 # This seems to be due to autoconf 2.5x stupidity.
5712 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5714 target_configargs=${baseargs}
5716 # Passing a --with-cross-host argument lets the target libraries know
5717 # whether they are being built with a cross-compiler or being built
5718 # native. However, it would be better to use other mechanisms to make the
5719 # sorts of decisions they want to make on this basis. Please consider
5720 # this option to be deprecated. FIXME.
5721 if test x${is_cross_compiler} = xyes ; then
5722 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5725 # Default to --enable-multilib.
5726 if test x${enable_multilib} = x ; then
5727 target_configargs="--enable-multilib ${target_configargs}"
5730 # Pass --with-newlib if appropriate. Note that target_configdirs has
5731 # changed from the earlier setting of with_newlib.
5732 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5733 target_configargs="--with-newlib ${target_configargs}"
5736 # Different target subdirs use different values of certain variables
5737 # (notably CXX). Worse, multilibs use *lots* of different values.
5738 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5739 # it doesn't automatically accept command-line overrides of them.
5740 # This means it's not safe for target subdirs to share a cache file,
5741 # which is disgusting, but there you have it. Hopefully this can be
5742 # fixed in future. It's still worthwhile to use a cache file for each
5743 # directory. I think.
5745 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5746 # We need to pass --target, as newer autoconf's requires consistency
5747 # for target_alias and gcc doesn't manage it consistently.
5748 target_configargs="--cache-file=./config.cache ${target_configargs}"
5750 FLAGS_FOR_TARGET=
5751 case " $target_configdirs " in
5752 *" newlib "*)
5753 case " $target_configargs " in
5754 *" --with-newlib "*)
5755 case "$target" in
5756 *-cygwin*)
5757 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' ;;
5758 esac
5760 # If we're not building GCC, don't discard standard headers.
5761 if test -d ${srcdir}/gcc; then
5762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5764 if test "${build}" != "${host}"; then
5765 # On Canadian crosses, CC_FOR_TARGET will have already been set
5766 # by `configure', so we won't have an opportunity to add -Bgcc/
5767 # to it. This is right: we don't want to search that directory
5768 # for binaries, but we want the header files in there, so add
5769 # them explicitly.
5770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5772 # Someone might think of using the pre-installed headers on
5773 # Canadian crosses, in case the installed compiler is not fully
5774 # compatible with the compiler being built. In this case, it
5775 # would be better to flag an error than risking having
5776 # incompatible object files being constructed. We can't
5777 # guarantee that an error will be flagged, but let's hope the
5778 # compiler will do it, when presented with incompatible header
5779 # files.
5783 case "${target}-${is_cross_compiler}" in
5784 i[3456789]86-*-linux*-no)
5785 # Here host == target, so we don't need to build gcc,
5786 # so we don't want to discard standard headers.
5787 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5790 # If we're building newlib, use its generic headers last, but search
5791 # for any libc-related directories first (so make it the last -B
5792 # switch).
5793 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5795 esac
5797 esac
5799 esac
5800 case "$target" in
5801 *-mingw*)
5802 # Can't be handled as Cygwin above since Mingw does not use newlib.
5803 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' ;;
5804 esac
5806 # Allow the user to override the flags for
5807 # our build compiler if desired.
5808 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5810 # On Canadian crosses, we'll be searching the right directories for
5811 # the previously-installed cross compiler, so don't bother to add
5812 # flags for directories within the install tree of the compiler
5813 # being built; programs in there won't even run.
5814 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5815 # Search for pre-installed headers if nothing else fits.
5816 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5819 if test "x${use_gnu_ld}" = x &&
5820 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5821 # Arrange for us to find uninstalled linker scripts.
5822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5825 # Search for other target-specific linker scripts and such.
5826 case "${target}" in
5827 m32c-*-* )
5828 if test -d ${srcdir}/libgloss/m32c; then
5829 # This is for crt0.o
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5831 # This is for r8c.ld
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5833 # This is for libnosys.a
5834 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5837 mep*)
5838 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5840 esac
5842 # Makefile fragments.
5843 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5845 eval fragval=\$$frag
5846 if test $fragval != /dev/null; then
5847 eval $frag=${srcdir}/$fragval
5849 done
5855 # Miscellanea: directories, flags, etc.
5863 # Build module lists & subconfigure args.
5867 # Host module lists & subconfigure args.
5871 # Target module lists & subconfigure args.
5875 # Build tools.
5879 # Generate default definitions for YACC, M4, LEX and other programs that run
5880 # on the build machine. These are used if the Makefile can't locate these
5881 # programs in objdir.
5882 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5884 for ac_prog in 'bison -y' byacc yacc
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_YACC+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 if test -n "$YACC"; then
5894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_YACC="$ac_prog"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5912 YACC=$ac_cv_prog_YACC
5913 if test -n "$YACC"; then
5914 echo "$as_me:$LINENO: result: $YACC" >&5
5915 echo "${ECHO_T}$YACC" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5921 test -n "$YACC" && break
5922 done
5923 test -n "$YACC" || YACC="$MISSING bison -y"
5925 case " $build_configdirs " in
5926 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5927 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5928 esac
5930 for ac_prog in bison
5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
5933 set dummy $ac_prog; ac_word=$2
5934 echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5936 if test "${ac_cv_prog_BISON+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 if test -n "$BISON"; then
5940 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_BISON="$ac_prog"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5953 done
5954 done
5958 BISON=$ac_cv_prog_BISON
5959 if test -n "$BISON"; then
5960 echo "$as_me:$LINENO: result: $BISON" >&5
5961 echo "${ECHO_T}$BISON" >&6
5962 else
5963 echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5967 test -n "$BISON" && break
5968 done
5969 test -n "$BISON" || BISON="$MISSING bison"
5971 case " $build_configdirs " in
5972 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5973 esac
5975 for ac_prog in gm4 gnum4 m4
5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_M4+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$M4"; then
5985 ac_cv_prog_M4="$M4" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_M4="$ac_prog"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6003 M4=$ac_cv_prog_M4
6004 if test -n "$M4"; then
6005 echo "$as_me:$LINENO: result: $M4" >&5
6006 echo "${ECHO_T}$M4" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6012 test -n "$M4" && break
6013 done
6014 test -n "$M4" || M4="$MISSING m4"
6016 case " $build_configdirs " in
6017 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6018 esac
6020 for ac_prog in flex lex
6022 # Extract the first word of "$ac_prog", so it can be a program name with args.
6023 set dummy $ac_prog; ac_word=$2
6024 echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026 if test "${ac_cv_prog_LEX+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 if test -n "$LEX"; then
6030 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_LEX="$ac_prog"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6043 done
6044 done
6048 LEX=$ac_cv_prog_LEX
6049 if test -n "$LEX"; then
6050 echo "$as_me:$LINENO: result: $LEX" >&5
6051 echo "${ECHO_T}$LEX" >&6
6052 else
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6057 test -n "$LEX" && break
6058 done
6059 test -n "$LEX" || LEX="$MISSING flex"
6061 case " $build_configdirs " in
6062 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6063 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6064 esac
6066 for ac_prog in flex
6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6072 if test "${ac_cv_prog_FLEX+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 if test -n "$FLEX"; then
6076 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_FLEX="$ac_prog"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6089 done
6090 done
6094 FLEX=$ac_cv_prog_FLEX
6095 if test -n "$FLEX"; then
6096 echo "$as_me:$LINENO: result: $FLEX" >&5
6097 echo "${ECHO_T}$FLEX" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6103 test -n "$FLEX" && break
6104 done
6105 test -n "$FLEX" || FLEX="$MISSING flex"
6107 case " $build_configdirs " in
6108 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6109 esac
6111 for ac_prog in makeinfo
6113 # Extract the first word of "$ac_prog", so it can be a program name with args.
6114 set dummy $ac_prog; ac_word=$2
6115 echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 if test -n "$MAKEINFO"; then
6121 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_MAKEINFO="$ac_prog"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6134 done
6135 done
6139 MAKEINFO=$ac_cv_prog_MAKEINFO
6140 if test -n "$MAKEINFO"; then
6141 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6142 echo "${ECHO_T}$MAKEINFO" >&6
6143 else
6144 echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6
6148 test -n "$MAKEINFO" && break
6149 done
6150 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6152 case " $build_configdirs " in
6153 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6156 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6157 # higher, else we use the "missing" dummy.
6158 if ${MAKEINFO} --version \
6159 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6161 else
6162 MAKEINFO="$MISSING makeinfo"
6166 esac
6168 # FIXME: expect and dejagnu may become build tools?
6170 for ac_prog in expect
6172 # Extract the first word of "$ac_prog", so it can be a program name with args.
6173 set dummy $ac_prog; ac_word=$2
6174 echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176 if test "${ac_cv_prog_EXPECT+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 if test -n "$EXPECT"; then
6180 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_EXPECT="$ac_prog"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6193 done
6194 done
6198 EXPECT=$ac_cv_prog_EXPECT
6199 if test -n "$EXPECT"; then
6200 echo "$as_me:$LINENO: result: $EXPECT" >&5
6201 echo "${ECHO_T}$EXPECT" >&6
6202 else
6203 echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6
6207 test -n "$EXPECT" && break
6208 done
6209 test -n "$EXPECT" || EXPECT="expect"
6211 case " $configdirs " in
6212 *" expect "*)
6213 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6215 esac
6217 for ac_prog in runtest
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -n "$RUNTEST"; then
6227 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_RUNTEST="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6240 done
6241 done
6245 RUNTEST=$ac_cv_prog_RUNTEST
6246 if test -n "$RUNTEST"; then
6247 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6248 echo "${ECHO_T}$RUNTEST" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6254 test -n "$RUNTEST" && break
6255 done
6256 test -n "$RUNTEST" || RUNTEST="runtest"
6258 case " $configdirs " in
6259 *" dejagnu "*)
6260 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6262 esac
6265 # Host tools.
6266 ncn_tool_prefix=
6267 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6268 ncn_target_tool_prefix=
6269 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6273 if test -n "$AR"; then
6274 ac_cv_prog_AR=$AR
6275 elif test -n "$ac_cv_prog_AR"; then
6276 AR=$ac_cv_prog_AR
6279 if test -n "$ac_cv_prog_AR"; then
6280 for ncn_progname in ar; do
6281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6282 set dummy ${ncn_progname}; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_AR+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="${ncn_progname}"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6302 done
6303 done
6307 AR=$ac_cv_prog_AR
6308 if test -n "$AR"; then
6309 echo "$as_me:$LINENO: result: $AR" >&5
6310 echo "${ECHO_T}$AR" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6316 done
6319 for ncn_progname in ar; do
6320 if test -n "$ncn_tool_prefix"; then
6321 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6322 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6323 echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325 if test "${ac_cv_prog_AR+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 if test -n "$AR"; then
6329 ac_cv_prog_AR="$AR" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6342 done
6343 done
6347 AR=$ac_cv_prog_AR
6348 if test -n "$AR"; then
6349 echo "$as_me:$LINENO: result: $AR" >&5
6350 echo "${ECHO_T}$AR" >&6
6351 else
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6357 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6359 set dummy ${ncn_progname}; ac_word=$2
6360 echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362 if test "${ac_cv_prog_AR+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365 if test -n "$AR"; then
6366 ac_cv_prog_AR="$AR" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375 ac_cv_prog_AR="${ncn_progname}"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6379 done
6380 done
6384 AR=$ac_cv_prog_AR
6385 if test -n "$AR"; then
6386 echo "$as_me:$LINENO: result: $AR" >&5
6387 echo "${ECHO_T}$AR" >&6
6388 else
6389 echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6394 test -n "$ac_cv_prog_AR" && break
6395 done
6397 if test -z "$ac_cv_prog_AR" ; then
6398 set dummy ar
6399 if test $build = $host ; then
6400 AR="$2"
6401 else
6402 AR="${ncn_tool_prefix}$2"
6408 if test -n "$AS"; then
6409 ac_cv_prog_AS=$AS
6410 elif test -n "$ac_cv_prog_AS"; then
6411 AS=$ac_cv_prog_AS
6414 if test -n "$ac_cv_prog_AS"; then
6415 for ncn_progname in as; do
6416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6417 set dummy ${ncn_progname}; ac_word=$2
6418 echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420 if test "${ac_cv_prog_AS+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test -n "$AS"; then
6424 ac_cv_prog_AS="$AS" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_AS="${ncn_progname}"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6442 AS=$ac_cv_prog_AS
6443 if test -n "$AS"; then
6444 echo "$as_me:$LINENO: result: $AS" >&5
6445 echo "${ECHO_T}$AS" >&6
6446 else
6447 echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6451 done
6454 for ncn_progname in as; do
6455 if test -n "$ncn_tool_prefix"; then
6456 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6457 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_prog_AS+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 if test -n "$AS"; then
6464 ac_cv_prog_AS="$AS" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6482 AS=$ac_cv_prog_AS
6483 if test -n "$AS"; then
6484 echo "$as_me:$LINENO: result: $AS" >&5
6485 echo "${ECHO_T}$AS" >&6
6486 else
6487 echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6
6492 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6494 set dummy ${ncn_progname}; ac_word=$2
6495 echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497 if test "${ac_cv_prog_AS+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 if test -n "$AS"; then
6501 ac_cv_prog_AS="$AS" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_AS="${ncn_progname}"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6514 done
6515 done
6519 AS=$ac_cv_prog_AS
6520 if test -n "$AS"; then
6521 echo "$as_me:$LINENO: result: $AS" >&5
6522 echo "${ECHO_T}$AS" >&6
6523 else
6524 echo "$as_me:$LINENO: result: no" >&5
6525 echo "${ECHO_T}no" >&6
6529 test -n "$ac_cv_prog_AS" && break
6530 done
6532 if test -z "$ac_cv_prog_AS" ; then
6533 set dummy as
6534 if test $build = $host ; then
6535 AS="$2"
6536 else
6537 AS="${ncn_tool_prefix}$2"
6543 if test -n "$DLLTOOL"; then
6544 ac_cv_prog_DLLTOOL=$DLLTOOL
6545 elif test -n "$ac_cv_prog_DLLTOOL"; then
6546 DLLTOOL=$ac_cv_prog_DLLTOOL
6549 if test -n "$ac_cv_prog_DLLTOOL"; then
6550 for ncn_progname in dlltool; do
6551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6552 set dummy ${ncn_progname}; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 if test -n "$DLLTOOL"; then
6559 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_DLLTOOL="${ncn_progname}"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6577 DLLTOOL=$ac_cv_prog_DLLTOOL
6578 if test -n "$DLLTOOL"; then
6579 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6580 echo "${ECHO_T}$DLLTOOL" >&6
6581 else
6582 echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6586 done
6589 for ncn_progname in dlltool; do
6590 if test -n "$ncn_tool_prefix"; then
6591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 if test -n "$DLLTOOL"; then
6599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6608 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6612 done
6613 done
6617 DLLTOOL=$ac_cv_prog_DLLTOOL
6618 if test -n "$DLLTOOL"; then
6619 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6620 echo "${ECHO_T}$DLLTOOL" >&6
6621 else
6622 echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6627 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6629 set dummy ${ncn_progname}; ac_word=$2
6630 echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6632 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 if test -n "$DLLTOOL"; then
6636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_DLLTOOL="${ncn_progname}"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6649 done
6650 done
6654 DLLTOOL=$ac_cv_prog_DLLTOOL
6655 if test -n "$DLLTOOL"; then
6656 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6657 echo "${ECHO_T}$DLLTOOL" >&6
6658 else
6659 echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6
6664 test -n "$ac_cv_prog_DLLTOOL" && break
6665 done
6667 if test -z "$ac_cv_prog_DLLTOOL" ; then
6668 set dummy dlltool
6669 if test $build = $host ; then
6670 DLLTOOL="$2"
6671 else
6672 DLLTOOL="${ncn_tool_prefix}$2"
6678 if test -n "$LD"; then
6679 ac_cv_prog_LD=$LD
6680 elif test -n "$ac_cv_prog_LD"; then
6681 LD=$ac_cv_prog_LD
6684 if test -n "$ac_cv_prog_LD"; then
6685 for ncn_progname in ld; do
6686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6687 set dummy ${ncn_progname}; ac_word=$2
6688 echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6690 if test "${ac_cv_prog_LD+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 if test -n "$LD"; then
6694 ac_cv_prog_LD="$LD" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_LD="${ncn_progname}"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6712 LD=$ac_cv_prog_LD
6713 if test -n "$LD"; then
6714 echo "$as_me:$LINENO: result: $LD" >&5
6715 echo "${ECHO_T}$LD" >&6
6716 else
6717 echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6
6721 done
6724 for ncn_progname in ld; do
6725 if test -n "$ncn_tool_prefix"; then
6726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6727 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_LD+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test -n "$LD"; then
6734 ac_cv_prog_LD="$LD" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6752 LD=$ac_cv_prog_LD
6753 if test -n "$LD"; then
6754 echo "$as_me:$LINENO: result: $LD" >&5
6755 echo "${ECHO_T}$LD" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6762 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6764 set dummy ${ncn_progname}; ac_word=$2
6765 echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6767 if test "${ac_cv_prog_LD+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770 if test -n "$LD"; then
6771 ac_cv_prog_LD="$LD" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_LD="${ncn_progname}"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6789 LD=$ac_cv_prog_LD
6790 if test -n "$LD"; then
6791 echo "$as_me:$LINENO: result: $LD" >&5
6792 echo "${ECHO_T}$LD" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6
6799 test -n "$ac_cv_prog_LD" && break
6800 done
6802 if test -z "$ac_cv_prog_LD" ; then
6803 set dummy ld
6804 if test $build = $host ; then
6805 LD="$2"
6806 else
6807 LD="${ncn_tool_prefix}$2"
6813 if test -n "$LIPO"; then
6814 ac_cv_prog_LIPO=$LIPO
6815 elif test -n "$ac_cv_prog_LIPO"; then
6816 LIPO=$ac_cv_prog_LIPO
6819 if test -n "$ac_cv_prog_LIPO"; then
6820 for ncn_progname in lipo; do
6821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6822 set dummy ${ncn_progname}; ac_word=$2
6823 echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6825 if test "${ac_cv_prog_LIPO+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828 if test -n "$LIPO"; then
6829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_LIPO="${ncn_progname}"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6842 done
6843 done
6847 LIPO=$ac_cv_prog_LIPO
6848 if test -n "$LIPO"; then
6849 echo "$as_me:$LINENO: result: $LIPO" >&5
6850 echo "${ECHO_T}$LIPO" >&6
6851 else
6852 echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6856 done
6859 for ncn_progname in lipo; do
6860 if test -n "$ncn_tool_prefix"; then
6861 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6862 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_prog_LIPO+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6882 done
6883 done
6887 LIPO=$ac_cv_prog_LIPO
6888 if test -n "$LIPO"; then
6889 echo "$as_me:$LINENO: result: $LIPO" >&5
6890 echo "${ECHO_T}$LIPO" >&6
6891 else
6892 echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6
6897 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6899 set dummy ${ncn_progname}; ac_word=$2
6900 echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6902 if test "${ac_cv_prog_LIPO+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 if test -n "$LIPO"; then
6906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_LIPO="${ncn_progname}"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6919 done
6920 done
6924 LIPO=$ac_cv_prog_LIPO
6925 if test -n "$LIPO"; then
6926 echo "$as_me:$LINENO: result: $LIPO" >&5
6927 echo "${ECHO_T}$LIPO" >&6
6928 else
6929 echo "$as_me:$LINENO: result: no" >&5
6930 echo "${ECHO_T}no" >&6
6934 test -n "$ac_cv_prog_LIPO" && break
6935 done
6937 if test -z "$ac_cv_prog_LIPO" ; then
6938 set dummy lipo
6939 if test $build = $host ; then
6940 LIPO="$2"
6941 else
6942 LIPO="${ncn_tool_prefix}$2"
6948 if test -n "$NM"; then
6949 ac_cv_prog_NM=$NM
6950 elif test -n "$ac_cv_prog_NM"; then
6951 NM=$ac_cv_prog_NM
6954 if test -n "$ac_cv_prog_NM"; then
6955 for ncn_progname in nm; do
6956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6957 set dummy ${ncn_progname}; ac_word=$2
6958 echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6960 if test "${ac_cv_prog_NM+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 if test -n "$NM"; then
6964 ac_cv_prog_NM="$NM" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_NM="${ncn_progname}"
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6982 NM=$ac_cv_prog_NM
6983 if test -n "$NM"; then
6984 echo "$as_me:$LINENO: result: $NM" >&5
6985 echo "${ECHO_T}$NM" >&6
6986 else
6987 echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6
6991 done
6994 for ncn_progname in nm; do
6995 if test -n "$ncn_tool_prefix"; then
6996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6997 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6998 echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7000 if test "${ac_cv_prog_NM+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 if test -n "$NM"; then
7004 ac_cv_prog_NM="$NM" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7022 NM=$ac_cv_prog_NM
7023 if test -n "$NM"; then
7024 echo "$as_me:$LINENO: result: $NM" >&5
7025 echo "${ECHO_T}$NM" >&6
7026 else
7027 echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6
7032 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7034 set dummy ${ncn_progname}; ac_word=$2
7035 echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7037 if test "${ac_cv_prog_NM+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 if test -n "$NM"; then
7041 ac_cv_prog_NM="$NM" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_NM="${ncn_progname}"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7054 done
7055 done
7059 NM=$ac_cv_prog_NM
7060 if test -n "$NM"; then
7061 echo "$as_me:$LINENO: result: $NM" >&5
7062 echo "${ECHO_T}$NM" >&6
7063 else
7064 echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6
7069 test -n "$ac_cv_prog_NM" && break
7070 done
7072 if test -z "$ac_cv_prog_NM" ; then
7073 set dummy nm
7074 if test $build = $host ; then
7075 NM="$2"
7076 else
7077 NM="${ncn_tool_prefix}$2"
7083 if test -n "$RANLIB"; then
7084 ac_cv_prog_RANLIB=$RANLIB
7085 elif test -n "$ac_cv_prog_RANLIB"; then
7086 RANLIB=$ac_cv_prog_RANLIB
7089 if test -n "$ac_cv_prog_RANLIB"; then
7090 for ncn_progname in ranlib; do
7091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7092 set dummy ${ncn_progname}; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_RANLIB+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 if test -n "$RANLIB"; then
7099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_RANLIB="${ncn_progname}"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7117 RANLIB=$ac_cv_prog_RANLIB
7118 if test -n "$RANLIB"; then
7119 echo "$as_me:$LINENO: result: $RANLIB" >&5
7120 echo "${ECHO_T}$RANLIB" >&6
7121 else
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7126 done
7129 for ncn_progname in ranlib; do
7130 if test -n "$ncn_tool_prefix"; then
7131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_RANLIB+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138 if test -n "$RANLIB"; then
7139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7152 done
7153 done
7157 RANLIB=$ac_cv_prog_RANLIB
7158 if test -n "$RANLIB"; then
7159 echo "$as_me:$LINENO: result: $RANLIB" >&5
7160 echo "${ECHO_T}$RANLIB" >&6
7161 else
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7167 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7169 set dummy ${ncn_progname}; ac_word=$2
7170 echo "$as_me:$LINENO: checking for $ac_word" >&5
7171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7172 if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_RANLIB="${ncn_progname}"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7194 RANLIB=$ac_cv_prog_RANLIB
7195 if test -n "$RANLIB"; then
7196 echo "$as_me:$LINENO: result: $RANLIB" >&5
7197 echo "${ECHO_T}$RANLIB" >&6
7198 else
7199 echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7204 test -n "$ac_cv_prog_RANLIB" && break
7205 done
7207 if test -z "$ac_cv_prog_RANLIB" ; then
7208 RANLIB=":"
7213 if test -n "$STRIP"; then
7214 ac_cv_prog_STRIP=$STRIP
7215 elif test -n "$ac_cv_prog_STRIP"; then
7216 STRIP=$ac_cv_prog_STRIP
7219 if test -n "$ac_cv_prog_STRIP"; then
7220 for ncn_progname in strip; do
7221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7222 set dummy ${ncn_progname}; ac_word=$2
7223 echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7225 if test "${ac_cv_prog_STRIP+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228 if test -n "$STRIP"; then
7229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_STRIP="${ncn_progname}"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7247 STRIP=$ac_cv_prog_STRIP
7248 if test -n "$STRIP"; then
7249 echo "$as_me:$LINENO: result: $STRIP" >&5
7250 echo "${ECHO_T}$STRIP" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7256 done
7259 for ncn_progname in strip; do
7260 if test -n "$ncn_tool_prefix"; then
7261 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7262 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7263 echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7265 if test "${ac_cv_prog_STRIP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 if test -n "$STRIP"; then
7269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7282 done
7283 done
7287 STRIP=$ac_cv_prog_STRIP
7288 if test -n "$STRIP"; then
7289 echo "$as_me:$LINENO: result: $STRIP" >&5
7290 echo "${ECHO_T}$STRIP" >&6
7291 else
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7297 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299 set dummy ${ncn_progname}; ac_word=$2
7300 echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302 if test "${ac_cv_prog_STRIP+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 if test -n "$STRIP"; then
7306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_STRIP="${ncn_progname}"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7324 STRIP=$ac_cv_prog_STRIP
7325 if test -n "$STRIP"; then
7326 echo "$as_me:$LINENO: result: $STRIP" >&5
7327 echo "${ECHO_T}$STRIP" >&6
7328 else
7329 echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6
7334 test -n "$ac_cv_prog_STRIP" && break
7335 done
7337 if test -z "$ac_cv_prog_STRIP" ; then
7338 STRIP=":"
7343 if test -n "$WINDRES"; then
7344 ac_cv_prog_WINDRES=$WINDRES
7345 elif test -n "$ac_cv_prog_WINDRES"; then
7346 WINDRES=$ac_cv_prog_WINDRES
7349 if test -n "$ac_cv_prog_WINDRES"; then
7350 for ncn_progname in windres; do
7351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7352 set dummy ${ncn_progname}; ac_word=$2
7353 echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355 if test "${ac_cv_prog_WINDRES+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358 if test -n "$WINDRES"; then
7359 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_WINDRES="${ncn_progname}"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7372 done
7373 done
7377 WINDRES=$ac_cv_prog_WINDRES
7378 if test -n "$WINDRES"; then
7379 echo "$as_me:$LINENO: result: $WINDRES" >&5
7380 echo "${ECHO_T}$WINDRES" >&6
7381 else
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7386 done
7389 for ncn_progname in windres; do
7390 if test -n "$ncn_tool_prefix"; then
7391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7392 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7393 echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395 if test "${ac_cv_prog_WINDRES+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 if test -n "$WINDRES"; then
7399 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7412 done
7413 done
7417 WINDRES=$ac_cv_prog_WINDRES
7418 if test -n "$WINDRES"; then
7419 echo "$as_me:$LINENO: result: $WINDRES" >&5
7420 echo "${ECHO_T}$WINDRES" >&6
7421 else
7422 echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7427 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7429 set dummy ${ncn_progname}; ac_word=$2
7430 echo "$as_me:$LINENO: checking for $ac_word" >&5
7431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7432 if test "${ac_cv_prog_WINDRES+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 if test -n "$WINDRES"; then
7436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_WINDRES="${ncn_progname}"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7449 done
7450 done
7454 WINDRES=$ac_cv_prog_WINDRES
7455 if test -n "$WINDRES"; then
7456 echo "$as_me:$LINENO: result: $WINDRES" >&5
7457 echo "${ECHO_T}$WINDRES" >&6
7458 else
7459 echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6
7464 test -n "$ac_cv_prog_WINDRES" && break
7465 done
7467 if test -z "$ac_cv_prog_WINDRES" ; then
7468 set dummy windres
7469 if test $build = $host ; then
7470 WINDRES="$2"
7471 else
7472 WINDRES="${ncn_tool_prefix}$2"
7478 if test -n "$WINDMC"; then
7479 ac_cv_prog_WINDMC=$WINDMC
7480 elif test -n "$ac_cv_prog_WINDMC"; then
7481 WINDMC=$ac_cv_prog_WINDMC
7484 if test -n "$ac_cv_prog_WINDMC"; then
7485 for ncn_progname in windmc; do
7486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7487 set dummy ${ncn_progname}; ac_word=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_prog_WINDMC+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 if test -n "$WINDMC"; then
7494 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_WINDMC="${ncn_progname}"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7507 done
7508 done
7512 WINDMC=$ac_cv_prog_WINDMC
7513 if test -n "$WINDMC"; then
7514 echo "$as_me:$LINENO: result: $WINDMC" >&5
7515 echo "${ECHO_T}$WINDMC" >&6
7516 else
7517 echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7521 done
7524 for ncn_progname in windmc; do
7525 if test -n "$ncn_tool_prefix"; then
7526 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7527 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7528 echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7530 if test "${ac_cv_prog_WINDMC+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 if test -n "$WINDMC"; then
7534 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7547 done
7548 done
7552 WINDMC=$ac_cv_prog_WINDMC
7553 if test -n "$WINDMC"; then
7554 echo "$as_me:$LINENO: result: $WINDMC" >&5
7555 echo "${ECHO_T}$WINDMC" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6
7562 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7564 set dummy ${ncn_progname}; ac_word=$2
7565 echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567 if test "${ac_cv_prog_WINDMC+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 if test -n "$WINDMC"; then
7571 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_WINDMC="${ncn_progname}"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7584 done
7585 done
7589 WINDMC=$ac_cv_prog_WINDMC
7590 if test -n "$WINDMC"; then
7591 echo "$as_me:$LINENO: result: $WINDMC" >&5
7592 echo "${ECHO_T}$WINDMC" >&6
7593 else
7594 echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7599 test -n "$ac_cv_prog_WINDMC" && break
7600 done
7602 if test -z "$ac_cv_prog_WINDMC" ; then
7603 set dummy windmc
7604 if test $build = $host ; then
7605 WINDMC="$2"
7606 else
7607 WINDMC="${ncn_tool_prefix}$2"
7613 if test -n "$OBJCOPY"; then
7614 ac_cv_prog_OBJCOPY=$OBJCOPY
7615 elif test -n "$ac_cv_prog_OBJCOPY"; then
7616 OBJCOPY=$ac_cv_prog_OBJCOPY
7619 if test -n "$ac_cv_prog_OBJCOPY"; then
7620 for ncn_progname in objcopy; do
7621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7622 set dummy ${ncn_progname}; ac_word=$2
7623 echo "$as_me:$LINENO: checking for $ac_word" >&5
7624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7625 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 if test -n "$OBJCOPY"; then
7629 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_OBJCOPY="${ncn_progname}"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7647 OBJCOPY=$ac_cv_prog_OBJCOPY
7648 if test -n "$OBJCOPY"; then
7649 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7650 echo "${ECHO_T}$OBJCOPY" >&6
7651 else
7652 echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6
7656 done
7659 for ncn_progname in objcopy; do
7660 if test -n "$ncn_tool_prefix"; then
7661 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7662 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7663 echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 if test -n "$OBJCOPY"; then
7669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7682 done
7683 done
7687 OBJCOPY=$ac_cv_prog_OBJCOPY
7688 if test -n "$OBJCOPY"; then
7689 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7690 echo "${ECHO_T}$OBJCOPY" >&6
7691 else
7692 echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6
7697 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699 set dummy ${ncn_progname}; ac_word=$2
7700 echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 if test -n "$OBJCOPY"; then
7706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_OBJCOPY="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7724 OBJCOPY=$ac_cv_prog_OBJCOPY
7725 if test -n "$OBJCOPY"; then
7726 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7727 echo "${ECHO_T}$OBJCOPY" >&6
7728 else
7729 echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6
7734 test -n "$ac_cv_prog_OBJCOPY" && break
7735 done
7737 if test -z "$ac_cv_prog_OBJCOPY" ; then
7738 set dummy objcopy
7739 if test $build = $host ; then
7740 OBJCOPY="$2"
7741 else
7742 OBJCOPY="${ncn_tool_prefix}$2"
7748 if test -n "$OBJDUMP"; then
7749 ac_cv_prog_OBJDUMP=$OBJDUMP
7750 elif test -n "$ac_cv_prog_OBJDUMP"; then
7751 OBJDUMP=$ac_cv_prog_OBJDUMP
7754 if test -n "$ac_cv_prog_OBJDUMP"; then
7755 for ncn_progname in objdump; do
7756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7757 set dummy ${ncn_progname}; ac_word=$2
7758 echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 if test -n "$OBJDUMP"; then
7764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_OBJDUMP="${ncn_progname}"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7777 done
7778 done
7782 OBJDUMP=$ac_cv_prog_OBJDUMP
7783 if test -n "$OBJDUMP"; then
7784 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7785 echo "${ECHO_T}$OBJDUMP" >&6
7786 else
7787 echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6
7791 done
7794 for ncn_progname in objdump; do
7795 if test -n "$ncn_tool_prefix"; then
7796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7798 echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7800 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 if test -n "$OBJDUMP"; then
7804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7817 done
7818 done
7822 OBJDUMP=$ac_cv_prog_OBJDUMP
7823 if test -n "$OBJDUMP"; then
7824 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7825 echo "${ECHO_T}$OBJDUMP" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6
7832 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7834 set dummy ${ncn_progname}; ac_word=$2
7835 echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 if test -n "$OBJDUMP"; then
7841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_OBJDUMP="${ncn_progname}"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7854 done
7855 done
7859 OBJDUMP=$ac_cv_prog_OBJDUMP
7860 if test -n "$OBJDUMP"; then
7861 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7862 echo "${ECHO_T}$OBJDUMP" >&6
7863 else
7864 echo "$as_me:$LINENO: result: no" >&5
7865 echo "${ECHO_T}no" >&6
7869 test -n "$ac_cv_prog_OBJDUMP" && break
7870 done
7872 if test -z "$ac_cv_prog_OBJDUMP" ; then
7873 set dummy objdump
7874 if test $build = $host ; then
7875 OBJDUMP="$2"
7876 else
7877 OBJDUMP="${ncn_tool_prefix}$2"
7887 # Target tools.
7889 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7890 if test "${with_build_time_tools+set}" = set; then
7891 withval="$with_build_time_tools"
7892 case x"$withval" in
7893 x/*) ;;
7895 with_build_time_tools=
7896 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7897 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7899 esac
7900 else
7901 with_build_time_tools=
7906 if test -n "$CC_FOR_TARGET"; then
7907 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7908 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7909 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7912 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7913 for ncn_progname in cc gcc; do
7914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7915 set dummy ${ncn_progname}; ac_word=$2
7916 echo "$as_me:$LINENO: checking for $ac_word" >&5
7917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test -n "$CC_FOR_TARGET"; then
7922 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7940 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7941 if test -n "$CC_FOR_TARGET"; then
7942 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7943 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7944 else
7945 echo "$as_me:$LINENO: result: no" >&5
7946 echo "${ECHO_T}no" >&6
7949 done
7952 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7953 for ncn_progname in cc gcc; do
7954 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7955 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7956 if test -x $with_build_time_tools/${ncn_progname}; then
7957 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7958 echo "$as_me:$LINENO: result: yes" >&5
7959 echo "${ECHO_T}yes" >&6
7960 break
7961 else
7962 echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6
7965 done
7968 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7969 for ncn_progname in cc gcc; do
7970 if test -n "$ncn_target_tool_prefix"; then
7971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7973 echo "$as_me:$LINENO: checking for $ac_word" >&5
7974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 if test -n "$CC_FOR_TARGET"; then
7979 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7992 done
7993 done
7997 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7998 if test -n "$CC_FOR_TARGET"; then
7999 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8000 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8001 else
8002 echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6
8007 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8009 set dummy ${ncn_progname}; ac_word=$2
8010 echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8012 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 if test -n "$CC_FOR_TARGET"; then
8016 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8034 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8035 if test -n "$CC_FOR_TARGET"; then
8036 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8037 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6
8044 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8045 done
8048 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8049 set dummy cc gcc
8050 if test $build = $target ; then
8051 CC_FOR_TARGET="$2"
8052 else
8053 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8055 else
8056 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8061 if test -n "$CXX_FOR_TARGET"; then
8062 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8063 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8064 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8067 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8068 for ncn_progname in c++ g++ cxx gxx; do
8069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8070 set dummy ${ncn_progname}; ac_word=$2
8071 echo "$as_me:$LINENO: checking for $ac_word" >&5
8072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8073 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076 if test -n "$CXX_FOR_TARGET"; then
8077 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8090 done
8091 done
8095 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8096 if test -n "$CXX_FOR_TARGET"; then
8097 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8098 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8099 else
8100 echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6
8104 done
8107 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8108 for ncn_progname in c++ g++ cxx gxx; do
8109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8110 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8111 if test -x $with_build_time_tools/${ncn_progname}; then
8112 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8113 echo "$as_me:$LINENO: result: yes" >&5
8114 echo "${ECHO_T}yes" >&6
8115 break
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6
8120 done
8123 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8124 for ncn_progname in c++ g++ cxx gxx; do
8125 if test -n "$ncn_target_tool_prefix"; then
8126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8127 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8128 echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8130 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 if test -n "$CXX_FOR_TARGET"; then
8134 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8147 done
8148 done
8152 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8153 if test -n "$CXX_FOR_TARGET"; then
8154 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8155 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8164 set dummy ${ncn_progname}; ac_word=$2
8165 echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8167 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 if test -n "$CXX_FOR_TARGET"; then
8171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8184 done
8185 done
8189 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8190 if test -n "$CXX_FOR_TARGET"; then
8191 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8192 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8199 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8200 done
8203 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8204 set dummy c++ g++ cxx gxx
8205 if test $build = $target ; then
8206 CXX_FOR_TARGET="$2"
8207 else
8208 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8210 else
8211 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8216 if test -n "$GCC_FOR_TARGET"; then
8217 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8218 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8219 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8222 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8223 for ncn_progname in gcc; do
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_progname}; ac_word=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 if test -n "$GCC_FOR_TARGET"; then
8232 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8250 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8251 if test -n "$GCC_FOR_TARGET"; then
8252 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8253 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8259 done
8262 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8263 for ncn_progname in gcc; do
8264 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8265 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8266 if test -x $with_build_time_tools/${ncn_progname}; then
8267 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8268 echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6
8270 break
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6
8275 done
8278 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8279 for ncn_progname in gcc; do
8280 if test -n "$ncn_target_tool_prefix"; then
8281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8282 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8283 echo "$as_me:$LINENO: checking for $ac_word" >&5
8284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8285 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 if test -n "$GCC_FOR_TARGET"; then
8289 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8290 else
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292 for as_dir in $PATH
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8302 done
8303 done
8307 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8308 if test -n "$GCC_FOR_TARGET"; then
8309 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8310 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8311 else
8312 echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6
8317 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8319 set dummy ${ncn_progname}; ac_word=$2
8320 echo "$as_me:$LINENO: checking for $ac_word" >&5
8321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8322 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 if test -n "$GCC_FOR_TARGET"; then
8326 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8327 else
8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
8334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8335 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8339 done
8340 done
8344 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8345 if test -n "$GCC_FOR_TARGET"; then
8346 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8347 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8348 else
8349 echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6
8354 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8355 done
8358 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8359 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8360 else
8361 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8366 if test -n "$GCJ_FOR_TARGET"; then
8367 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8368 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8369 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8372 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8373 for ncn_progname in gcj; do
8374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8375 set dummy ${ncn_progname}; ac_word=$2
8376 echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8378 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381 if test -n "$GCJ_FOR_TARGET"; then
8382 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8395 done
8396 done
8400 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8401 if test -n "$GCJ_FOR_TARGET"; then
8402 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8403 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8404 else
8405 echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6
8409 done
8412 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8413 for ncn_progname in gcj; do
8414 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8415 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8416 if test -x $with_build_time_tools/${ncn_progname}; then
8417 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8418 echo "$as_me:$LINENO: result: yes" >&5
8419 echo "${ECHO_T}yes" >&6
8420 break
8421 else
8422 echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6
8425 done
8428 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8429 for ncn_progname in gcj; do
8430 if test -n "$ncn_target_tool_prefix"; then
8431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8432 set dummy ${ncn_target_tool_prefix}${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_target_tool_prefix}${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 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469 set dummy ${ncn_progname}; ac_word=$2
8470 echo "$as_me:$LINENO: checking for $ac_word" >&5
8471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8472 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 if test -n "$GCJ_FOR_TARGET"; then
8476 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8494 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8495 if test -n "$GCJ_FOR_TARGET"; then
8496 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8497 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8498 else
8499 echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8504 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8505 done
8508 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8509 set dummy gcj
8510 if test $build = $target ; then
8511 GCJ_FOR_TARGET="$2"
8512 else
8513 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8515 else
8516 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8521 if test -n "$GFORTRAN_FOR_TARGET"; then
8522 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8523 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8524 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8527 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8528 for ncn_progname in gfortran; do
8529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8530 set dummy ${ncn_progname}; ac_word=$2
8531 echo "$as_me:$LINENO: checking for $ac_word" >&5
8532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8533 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 if test -n "$GFORTRAN_FOR_TARGET"; then
8537 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8555 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8556 if test -n "$GFORTRAN_FOR_TARGET"; then
8557 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8558 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8559 else
8560 echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8564 done
8567 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8568 for ncn_progname in gfortran; do
8569 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8570 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8571 if test -x $with_build_time_tools/${ncn_progname}; then
8572 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8573 echo "$as_me:$LINENO: result: yes" >&5
8574 echo "${ECHO_T}yes" >&6
8575 break
8576 else
8577 echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6
8580 done
8583 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8584 for ncn_progname in gfortran; do
8585 if test -n "$ncn_target_tool_prefix"; then
8586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8587 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8588 echo "$as_me:$LINENO: checking for $ac_word" >&5
8589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8590 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 if test -n "$GFORTRAN_FOR_TARGET"; then
8594 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8595 else
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8607 done
8608 done
8612 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8613 if test -n "$GFORTRAN_FOR_TARGET"; then
8614 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8615 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8616 else
8617 echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6
8622 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624 set dummy ${ncn_progname}; ac_word=$2
8625 echo "$as_me:$LINENO: checking for $ac_word" >&5
8626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8627 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 else
8630 if test -n "$GFORTRAN_FOR_TARGET"; then
8631 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8649 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8650 if test -n "$GFORTRAN_FOR_TARGET"; then
8651 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8652 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6
8659 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8660 done
8663 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8664 set dummy gfortran
8665 if test $build = $target ; then
8666 GFORTRAN_FOR_TARGET="$2"
8667 else
8668 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8670 else
8671 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8676 cat > conftest.c << \EOF
8677 #ifdef __GNUC__
8678 gcc_yay;
8679 #endif
8681 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8682 have_gcc_for_target=yes
8683 else
8684 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8685 have_gcc_for_target=no
8687 rm conftest.c
8692 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8693 if test -n "$with_build_time_tools"; then
8694 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8695 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8696 if test -x $with_build_time_tools/ar; then
8697 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8698 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8699 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8700 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6
8705 elif test $build != $host && test $have_gcc_for_target = yes; then
8706 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8707 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8708 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8711 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8712 # Extract the first word of "ar", so it can be a program name with args.
8713 set dummy ar; ac_word=$2
8714 echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8716 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 case $AR_FOR_TARGET in
8720 [\\/]* | ?:[\\/]*)
8721 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $gcc_cv_tool_dirs
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8735 done
8736 done
8739 esac
8741 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8743 if test -n "$AR_FOR_TARGET"; then
8744 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8745 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8746 else
8747 echo "$as_me:$LINENO: result: no" >&5
8748 echo "${ECHO_T}no" >&6
8752 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8755 if test -n "$AR_FOR_TARGET"; then
8756 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8757 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8758 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8761 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8762 for ncn_progname in ar; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_progname}; ac_word=$2
8765 echo "$as_me:$LINENO: checking for $ac_word" >&5
8766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8767 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 if test -n "$AR_FOR_TARGET"; then
8771 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8789 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8790 if test -n "$AR_FOR_TARGET"; then
8791 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8792 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6
8798 done
8801 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8802 for ncn_progname in ar; do
8803 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8804 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8805 if test -x $with_build_time_tools/${ncn_progname}; then
8806 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8807 echo "$as_me:$LINENO: result: yes" >&5
8808 echo "${ECHO_T}yes" >&6
8809 break
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8814 done
8817 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8818 for ncn_progname in ar; do
8819 if test -n "$ncn_target_tool_prefix"; then
8820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8822 echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 if test -n "$AR_FOR_TARGET"; then
8828 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8841 done
8842 done
8846 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8847 if test -n "$AR_FOR_TARGET"; then
8848 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8849 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852 echo "${ECHO_T}no" >&6
8856 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8858 set dummy ${ncn_progname}; ac_word=$2
8859 echo "$as_me:$LINENO: checking for $ac_word" >&5
8860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 if test -n "$AR_FOR_TARGET"; then
8865 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8878 done
8879 done
8883 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8884 if test -n "$AR_FOR_TARGET"; then
8885 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8886 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8894 done
8897 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8898 set dummy ar
8899 if test $build = $target ; then
8900 AR_FOR_TARGET="$2"
8901 else
8902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8904 else
8905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
8908 else
8909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8915 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8916 if test -n "$with_build_time_tools"; then
8917 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8918 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8919 if test -x $with_build_time_tools/as; then
8920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8922 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8923 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8924 else
8925 echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8928 elif test $build != $host && test $have_gcc_for_target = yes; then
8929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8934 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8935 # Extract the first word of "as", so it can be a program name with args.
8936 set dummy as; ac_word=$2
8937 echo "$as_me:$LINENO: checking for $ac_word" >&5
8938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8939 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 case $AS_FOR_TARGET in
8943 [\\/]* | ?:[\\/]*)
8944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $gcc_cv_tool_dirs
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8962 esac
8964 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8966 if test -n "$AS_FOR_TARGET"; then
8967 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8968 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8969 else
8970 echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8975 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8978 if test -n "$AS_FOR_TARGET"; then
8979 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8980 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8981 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8984 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8985 for ncn_progname in as; do
8986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8987 set dummy ${ncn_progname}; ac_word=$2
8988 echo "$as_me:$LINENO: checking for $ac_word" >&5
8989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 if test -n "$AS_FOR_TARGET"; then
8994 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9013 if test -n "$AS_FOR_TARGET"; then
9014 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9015 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9016 else
9017 echo "$as_me:$LINENO: result: no" >&5
9018 echo "${ECHO_T}no" >&6
9021 done
9024 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9025 for ncn_progname in as; do
9026 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9027 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9028 if test -x $with_build_time_tools/${ncn_progname}; then
9029 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9030 echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6
9032 break
9033 else
9034 echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6
9037 done
9040 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9041 for ncn_progname in as; do
9042 if test -n "$ncn_target_tool_prefix"; then
9043 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9044 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9045 echo "$as_me:$LINENO: checking for $ac_word" >&5
9046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 if test -n "$AS_FOR_TARGET"; then
9051 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9069 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9070 if test -n "$AS_FOR_TARGET"; then
9071 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9072 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9073 else
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9079 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9081 set dummy ${ncn_progname}; ac_word=$2
9082 echo "$as_me:$LINENO: checking for $ac_word" >&5
9083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9084 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 if test -n "$AS_FOR_TARGET"; then
9088 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9089 else
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in $PATH
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9101 done
9102 done
9106 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9107 if test -n "$AS_FOR_TARGET"; then
9108 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9109 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9110 else
9111 echo "$as_me:$LINENO: result: no" >&5
9112 echo "${ECHO_T}no" >&6
9116 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9117 done
9120 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9121 set dummy as
9122 if test $build = $target ; then
9123 AS_FOR_TARGET="$2"
9124 else
9125 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9127 else
9128 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9131 else
9132 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9138 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9139 if test -n "$with_build_time_tools"; then
9140 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9141 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9142 if test -x $with_build_time_tools/dlltool; then
9143 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9144 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9145 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9146 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9151 elif test $build != $host && test $have_gcc_for_target = yes; then
9152 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9153 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9154 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9157 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9158 # Extract the first word of "dlltool", so it can be a program name with args.
9159 set dummy dlltool; ac_word=$2
9160 echo "$as_me:$LINENO: checking for $ac_word" >&5
9161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9162 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 case $DLLTOOL_FOR_TARGET in
9166 [\\/]* | ?:[\\/]*)
9167 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $gcc_cv_tool_dirs
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9181 done
9182 done
9185 esac
9187 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9189 if test -n "$DLLTOOL_FOR_TARGET"; then
9190 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9191 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9192 else
9193 echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6
9198 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9201 if test -n "$DLLTOOL_FOR_TARGET"; then
9202 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9203 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9204 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9207 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9208 for ncn_progname in dlltool; do
9209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9210 set dummy ${ncn_progname}; ac_word=$2
9211 echo "$as_me:$LINENO: checking for $ac_word" >&5
9212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9213 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216 if test -n "$DLLTOOL_FOR_TARGET"; then
9217 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9218 else
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9230 done
9231 done
9235 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9236 if test -n "$DLLTOOL_FOR_TARGET"; then
9237 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9238 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9239 else
9240 echo "$as_me:$LINENO: result: no" >&5
9241 echo "${ECHO_T}no" >&6
9244 done
9247 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9248 for ncn_progname in dlltool; do
9249 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9250 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9251 if test -x $with_build_time_tools/${ncn_progname}; then
9252 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9253 echo "$as_me:$LINENO: result: yes" >&5
9254 echo "${ECHO_T}yes" >&6
9255 break
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6
9260 done
9263 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9264 for ncn_progname in dlltool; do
9265 if test -n "$ncn_target_tool_prefix"; then
9266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9267 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9268 echo "$as_me:$LINENO: checking for $ac_word" >&5
9269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9270 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 if test -n "$DLLTOOL_FOR_TARGET"; then
9274 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9287 done
9288 done
9292 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9293 if test -n "$DLLTOOL_FOR_TARGET"; then
9294 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9295 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9296 else
9297 echo "$as_me:$LINENO: result: no" >&5
9298 echo "${ECHO_T}no" >&6
9302 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9304 set dummy ${ncn_progname}; ac_word=$2
9305 echo "$as_me:$LINENO: checking for $ac_word" >&5
9306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9307 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 if test -n "$DLLTOOL_FOR_TARGET"; then
9311 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9312 else
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9329 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9330 if test -n "$DLLTOOL_FOR_TARGET"; then
9331 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9332 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9333 else
9334 echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6
9339 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9340 done
9343 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9344 set dummy dlltool
9345 if test $build = $target ; then
9346 DLLTOOL_FOR_TARGET="$2"
9347 else
9348 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9350 else
9351 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9354 else
9355 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9361 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9362 if test -n "$with_build_time_tools"; then
9363 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9364 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9365 if test -x $with_build_time_tools/ld; then
9366 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9367 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9368 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9369 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9370 else
9371 echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6
9374 elif test $build != $host && test $have_gcc_for_target = yes; then
9375 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9376 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9377 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9380 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9381 # Extract the first word of "ld", so it can be a program name with args.
9382 set dummy ld; ac_word=$2
9383 echo "$as_me:$LINENO: checking for $ac_word" >&5
9384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9385 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 case $LD_FOR_TARGET in
9389 [\\/]* | ?:[\\/]*)
9390 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $gcc_cv_tool_dirs
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9404 done
9405 done
9408 esac
9410 LD_FOR_TARGET=$ac_cv_path_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
9421 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9424 if test -n "$LD_FOR_TARGET"; then
9425 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9426 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9430 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9431 for ncn_progname in ld; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433 set dummy ${ncn_progname}; ac_word=$2
9434 echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9436 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 if test -n "$LD_FOR_TARGET"; then
9440 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9449 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9453 done
9454 done
9458 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9459 if test -n "$LD_FOR_TARGET"; then
9460 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9461 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9462 else
9463 echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9467 done
9470 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9471 for ncn_progname in ld; do
9472 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9473 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9474 if test -x $with_build_time_tools/${ncn_progname}; then
9475 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9476 echo "$as_me:$LINENO: result: yes" >&5
9477 echo "${ECHO_T}yes" >&6
9478 break
9479 else
9480 echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6
9483 done
9486 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9487 for ncn_progname in ld; do
9488 if test -n "$ncn_target_tool_prefix"; then
9489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9491 echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9493 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 if test -n "$LD_FOR_TARGET"; then
9497 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9515 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9516 if test -n "$LD_FOR_TARGET"; then
9517 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9518 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9519 else
9520 echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6
9525 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9527 set dummy ${ncn_progname}; ac_word=$2
9528 echo "$as_me:$LINENO: checking for $ac_word" >&5
9529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9530 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 if test -n "$LD_FOR_TARGET"; then
9534 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9552 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9553 if test -n "$LD_FOR_TARGET"; then
9554 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9555 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9556 else
9557 echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9562 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9563 done
9566 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9567 set dummy ld
9568 if test $build = $target ; then
9569 LD_FOR_TARGET="$2"
9570 else
9571 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9573 else
9574 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9577 else
9578 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9584 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9585 if test -n "$with_build_time_tools"; then
9586 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9587 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9588 if test -x $with_build_time_tools/lipo; then
9589 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9590 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9591 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9592 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595 echo "${ECHO_T}no" >&6
9597 elif test $build != $host && test $have_gcc_for_target = yes; then
9598 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9599 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9600 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9603 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9604 # Extract the first word of "lipo", so it can be a program name with args.
9605 set dummy lipo; ac_word=$2
9606 echo "$as_me:$LINENO: checking for $ac_word" >&5
9607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9608 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 case $LIPO_FOR_TARGET in
9612 [\\/]* | ?:[\\/]*)
9613 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $gcc_cv_tool_dirs
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_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9627 done
9628 done
9631 esac
9633 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9635 if test -n "$LIPO_FOR_TARGET"; then
9636 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9637 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9638 else
9639 echo "$as_me:$LINENO: result: no" >&5
9640 echo "${ECHO_T}no" >&6
9644 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9647 if test -n "$LIPO_FOR_TARGET"; then
9648 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9649 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9650 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9653 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9654 for ncn_progname in lipo; do
9655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9656 set dummy ${ncn_progname}; ac_word=$2
9657 echo "$as_me:$LINENO: checking for $ac_word" >&5
9658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9659 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 else
9662 if test -n "$LIPO_FOR_TARGET"; then
9663 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9664 else
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9676 done
9677 done
9681 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9682 if test -n "$LIPO_FOR_TARGET"; then
9683 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9684 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687 echo "${ECHO_T}no" >&6
9690 done
9693 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9694 for ncn_progname in lipo; do
9695 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9696 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9697 if test -x $with_build_time_tools/${ncn_progname}; then
9698 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9699 echo "$as_me:$LINENO: result: yes" >&5
9700 echo "${ECHO_T}yes" >&6
9701 break
9702 else
9703 echo "$as_me:$LINENO: result: no" >&5
9704 echo "${ECHO_T}no" >&6
9706 done
9709 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9710 for ncn_progname in lipo; do
9711 if test -n "$ncn_target_tool_prefix"; then
9712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9714 echo "$as_me:$LINENO: checking for $ac_word" >&5
9715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9716 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 if test -n "$LIPO_FOR_TARGET"; then
9720 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9721 else
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9733 done
9734 done
9738 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9739 if test -n "$LIPO_FOR_TARGET"; then
9740 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9741 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9742 else
9743 echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6
9748 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750 set dummy ${ncn_progname}; ac_word=$2
9751 echo "$as_me:$LINENO: checking for $ac_word" >&5
9752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9753 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 if test -n "$LIPO_FOR_TARGET"; then
9757 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9775 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9776 if test -n "$LIPO_FOR_TARGET"; then
9777 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9778 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9779 else
9780 echo "$as_me:$LINENO: result: no" >&5
9781 echo "${ECHO_T}no" >&6
9785 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9786 done
9789 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9790 set dummy lipo
9791 if test $build = $target ; then
9792 LIPO_FOR_TARGET="$2"
9793 else
9794 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9796 else
9797 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9800 else
9801 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9807 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9808 if test -n "$with_build_time_tools"; then
9809 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9810 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9811 if test -x $with_build_time_tools/nm; then
9812 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9813 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9814 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9815 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9816 else
9817 echo "$as_me:$LINENO: result: no" >&5
9818 echo "${ECHO_T}no" >&6
9820 elif test $build != $host && test $have_gcc_for_target = yes; then
9821 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9822 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9823 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9826 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9827 # Extract the first word of "nm", so it can be a program name with args.
9828 set dummy nm; 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_path_NM_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 case $NM_FOR_TARGET in
9835 [\\/]* | ?:[\\/]*)
9836 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 for as_dir in $gcc_cv_tool_dirs
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
9845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9846 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 break 2
9850 done
9851 done
9854 esac
9856 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9858 if test -n "$NM_FOR_TARGET"; then
9859 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9860 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9861 else
9862 echo "$as_me:$LINENO: result: no" >&5
9863 echo "${ECHO_T}no" >&6
9867 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9870 if test -n "$NM_FOR_TARGET"; then
9871 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9872 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9873 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9876 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9877 for ncn_progname in nm; do
9878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9879 set dummy ${ncn_progname}; ac_word=$2
9880 echo "$as_me:$LINENO: checking for $ac_word" >&5
9881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9882 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 if test -n "$NM_FOR_TARGET"; then
9886 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9887 else
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9895 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9904 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9905 if test -n "$NM_FOR_TARGET"; then
9906 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9907 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9908 else
9909 echo "$as_me:$LINENO: result: no" >&5
9910 echo "${ECHO_T}no" >&6
9913 done
9916 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9917 for ncn_progname in nm; do
9918 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9919 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9920 if test -x $with_build_time_tools/${ncn_progname}; then
9921 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9922 echo "$as_me:$LINENO: result: yes" >&5
9923 echo "${ECHO_T}yes" >&6
9924 break
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927 echo "${ECHO_T}no" >&6
9929 done
9932 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9933 for ncn_progname in nm; do
9934 if test -n "$ncn_target_tool_prefix"; then
9935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9937 echo "$as_me:$LINENO: checking for $ac_word" >&5
9938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9939 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 if test -n "$NM_FOR_TARGET"; then
9943 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9961 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9962 if test -n "$NM_FOR_TARGET"; then
9963 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9964 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9965 else
9966 echo "$as_me:$LINENO: result: no" >&5
9967 echo "${ECHO_T}no" >&6
9971 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_progname}; ac_word=$2
9974 echo "$as_me:$LINENO: checking for $ac_word" >&5
9975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 if test -n "$NM_FOR_TARGET"; then
9980 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9993 done
9994 done
9998 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9999 if test -n "$NM_FOR_TARGET"; then
10000 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10001 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10002 else
10003 echo "$as_me:$LINENO: result: no" >&5
10004 echo "${ECHO_T}no" >&6
10008 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10009 done
10012 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10013 set dummy nm
10014 if test $build = $target ; then
10015 NM_FOR_TARGET="$2"
10016 else
10017 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10019 else
10020 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10023 else
10024 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10030 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10031 if test -n "$with_build_time_tools"; then
10032 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10033 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10034 if test -x $with_build_time_tools/objdump; then
10035 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10036 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10037 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10038 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10039 else
10040 echo "$as_me:$LINENO: result: no" >&5
10041 echo "${ECHO_T}no" >&6
10043 elif test $build != $host && test $have_gcc_for_target = yes; then
10044 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10045 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10046 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10049 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10050 # Extract the first word of "objdump", so it can be a program name with args.
10051 set dummy objdump; ac_word=$2
10052 echo "$as_me:$LINENO: checking for $ac_word" >&5
10053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10054 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057 case $OBJDUMP_FOR_TARGET in
10058 [\\/]* | ?:[\\/]*)
10059 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $gcc_cv_tool_dirs
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10069 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10077 esac
10079 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10081 if test -n "$OBJDUMP_FOR_TARGET"; then
10082 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10083 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086 echo "${ECHO_T}no" >&6
10090 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10093 if test -n "$OBJDUMP_FOR_TARGET"; then
10094 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10095 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10096 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10099 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10100 for ncn_progname in objdump; do
10101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10102 set dummy ${ncn_progname}; ac_word=$2
10103 echo "$as_me:$LINENO: checking for $ac_word" >&5
10104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10105 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108 if test -n "$OBJDUMP_FOR_TARGET"; then
10109 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10128 if test -n "$OBJDUMP_FOR_TARGET"; then
10129 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10130 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10131 else
10132 echo "$as_me:$LINENO: result: no" >&5
10133 echo "${ECHO_T}no" >&6
10136 done
10139 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10140 for ncn_progname in objdump; do
10141 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10142 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10143 if test -x $with_build_time_tools/${ncn_progname}; then
10144 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10145 echo "$as_me:$LINENO: result: yes" >&5
10146 echo "${ECHO_T}yes" >&6
10147 break
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6
10152 done
10155 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10156 for ncn_progname in objdump; do
10157 if test -n "$ncn_target_tool_prefix"; then
10158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10159 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10160 echo "$as_me:$LINENO: checking for $ac_word" >&5
10161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10162 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 if test -n "$OBJDUMP_FOR_TARGET"; then
10166 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10167 else
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10179 done
10180 done
10184 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10185 if test -n "$OBJDUMP_FOR_TARGET"; then
10186 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10187 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10188 else
10189 echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6
10194 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10196 set dummy ${ncn_progname}; ac_word=$2
10197 echo "$as_me:$LINENO: checking for $ac_word" >&5
10198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10199 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 if test -n "$OBJDUMP_FOR_TARGET"; then
10203 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10204 else
10205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206 for as_dir in $PATH
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10212 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10216 done
10217 done
10221 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10222 if test -n "$OBJDUMP_FOR_TARGET"; then
10223 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10224 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10225 else
10226 echo "$as_me:$LINENO: result: no" >&5
10227 echo "${ECHO_T}no" >&6
10231 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10232 done
10235 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10236 set dummy objdump
10237 if test $build = $target ; then
10238 OBJDUMP_FOR_TARGET="$2"
10239 else
10240 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10242 else
10243 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10246 else
10247 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10253 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10254 if test -n "$with_build_time_tools"; then
10255 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10256 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10257 if test -x $with_build_time_tools/ranlib; then
10258 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10259 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10260 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10261 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10262 else
10263 echo "$as_me:$LINENO: result: no" >&5
10264 echo "${ECHO_T}no" >&6
10266 elif test $build != $host && test $have_gcc_for_target = yes; then
10267 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10268 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10269 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10272 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10273 # Extract the first word of "ranlib", so it can be a program name with args.
10274 set dummy ranlib; ac_word=$2
10275 echo "$as_me:$LINENO: checking for $ac_word" >&5
10276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10277 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 case $RANLIB_FOR_TARGET in
10281 [\\/]* | ?:[\\/]*)
10282 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $gcc_cv_tool_dirs
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10296 done
10297 done
10300 esac
10302 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10304 if test -n "$RANLIB_FOR_TARGET"; then
10305 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10306 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10307 else
10308 echo "$as_me:$LINENO: result: no" >&5
10309 echo "${ECHO_T}no" >&6
10313 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10316 if test -n "$RANLIB_FOR_TARGET"; then
10317 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10318 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10319 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10322 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10323 for ncn_progname in ranlib; do
10324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10325 set dummy ${ncn_progname}; ac_word=$2
10326 echo "$as_me:$LINENO: checking for $ac_word" >&5
10327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10328 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 if test -n "$RANLIB_FOR_TARGET"; then
10332 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10333 else
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335 for as_dir in $PATH
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10341 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10345 done
10346 done
10350 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10351 if test -n "$RANLIB_FOR_TARGET"; then
10352 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10353 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10354 else
10355 echo "$as_me:$LINENO: result: no" >&5
10356 echo "${ECHO_T}no" >&6
10359 done
10362 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10363 for ncn_progname in ranlib; do
10364 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10365 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10366 if test -x $with_build_time_tools/${ncn_progname}; then
10367 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10368 echo "$as_me:$LINENO: result: yes" >&5
10369 echo "${ECHO_T}yes" >&6
10370 break
10371 else
10372 echo "$as_me:$LINENO: result: no" >&5
10373 echo "${ECHO_T}no" >&6
10375 done
10378 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10379 for ncn_progname in ranlib; do
10380 if test -n "$ncn_target_tool_prefix"; then
10381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10382 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10383 echo "$as_me:$LINENO: checking for $ac_word" >&5
10384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10385 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 if test -n "$RANLIB_FOR_TARGET"; then
10389 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10402 done
10403 done
10407 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10408 if test -n "$RANLIB_FOR_TARGET"; then
10409 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10410 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10411 else
10412 echo "$as_me:$LINENO: result: no" >&5
10413 echo "${ECHO_T}no" >&6
10417 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10419 set dummy ${ncn_progname}; ac_word=$2
10420 echo "$as_me:$LINENO: checking for $ac_word" >&5
10421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10422 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425 if test -n "$RANLIB_FOR_TARGET"; then
10426 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10427 else
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10439 done
10440 done
10444 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10445 if test -n "$RANLIB_FOR_TARGET"; then
10446 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10447 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10448 else
10449 echo "$as_me:$LINENO: result: no" >&5
10450 echo "${ECHO_T}no" >&6
10454 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10455 done
10458 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10459 set dummy ranlib
10460 if test $build = $target ; then
10461 RANLIB_FOR_TARGET="$2"
10462 else
10463 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10465 else
10466 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10469 else
10470 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10476 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10477 if test -n "$with_build_time_tools"; then
10478 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10479 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10480 if test -x $with_build_time_tools/strip; then
10481 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10482 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10483 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10484 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10485 else
10486 echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6
10489 elif test $build != $host && test $have_gcc_for_target = yes; then
10490 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10491 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10492 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10495 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10496 # Extract the first word of "strip", so it can be a program name with args.
10497 set dummy strip; ac_word=$2
10498 echo "$as_me:$LINENO: checking for $ac_word" >&5
10499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10500 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 case $STRIP_FOR_TARGET in
10504 [\\/]* | ?:[\\/]*)
10505 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $gcc_cv_tool_dirs
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10519 done
10520 done
10523 esac
10525 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10527 if test -n "$STRIP_FOR_TARGET"; then
10528 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10529 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10530 else
10531 echo "$as_me:$LINENO: result: no" >&5
10532 echo "${ECHO_T}no" >&6
10536 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10539 if test -n "$STRIP_FOR_TARGET"; then
10540 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10541 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10542 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10545 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10546 for ncn_progname in strip; do
10547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10548 set dummy ${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_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
10582 done
10585 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10586 for ncn_progname in strip; do
10587 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10588 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10589 if test -x $with_build_time_tools/${ncn_progname}; then
10590 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10591 echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10593 break
10594 else
10595 echo "$as_me:$LINENO: result: no" >&5
10596 echo "${ECHO_T}no" >&6
10598 done
10601 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10602 for ncn_progname in strip; do
10603 if test -n "$ncn_target_tool_prefix"; then
10604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10606 echo "$as_me:$LINENO: checking for $ac_word" >&5
10607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10608 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 if test -n "$STRIP_FOR_TARGET"; then
10612 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10630 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10631 if test -n "$STRIP_FOR_TARGET"; then
10632 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10633 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10634 else
10635 echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6
10640 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10642 set dummy ${ncn_progname}; ac_word=$2
10643 echo "$as_me:$LINENO: checking for $ac_word" >&5
10644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10645 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 if test -n "$STRIP_FOR_TARGET"; then
10649 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10662 done
10663 done
10667 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10668 if test -n "$STRIP_FOR_TARGET"; then
10669 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10670 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10671 else
10672 echo "$as_me:$LINENO: result: no" >&5
10673 echo "${ECHO_T}no" >&6
10677 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10678 done
10681 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10682 set dummy strip
10683 if test $build = $target ; then
10684 STRIP_FOR_TARGET="$2"
10685 else
10686 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10688 else
10689 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10692 else
10693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10699 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10700 if test -n "$with_build_time_tools"; then
10701 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10702 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10703 if test -x $with_build_time_tools/windres; then
10704 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10705 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10706 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10707 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10708 else
10709 echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6
10712 elif test $build != $host && test $have_gcc_for_target = yes; then
10713 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10714 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10715 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10718 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10719 # Extract the first word of "windres", so it can be a program name with args.
10720 set dummy windres; ac_word=$2
10721 echo "$as_me:$LINENO: checking for $ac_word" >&5
10722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10723 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726 case $WINDRES_FOR_TARGET in
10727 [\\/]* | ?:[\\/]*)
10728 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $gcc_cv_tool_dirs
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10742 done
10743 done
10746 esac
10748 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10750 if test -n "$WINDRES_FOR_TARGET"; then
10751 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10752 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10753 else
10754 echo "$as_me:$LINENO: result: no" >&5
10755 echo "${ECHO_T}no" >&6
10759 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10762 if test -n "$WINDRES_FOR_TARGET"; then
10763 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10764 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10765 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10768 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10769 for ncn_progname in windres; do
10770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10771 set dummy ${ncn_progname}; ac_word=$2
10772 echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10774 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777 if test -n "$WINDRES_FOR_TARGET"; then
10778 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10779 else
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10791 done
10792 done
10796 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10797 if test -n "$WINDRES_FOR_TARGET"; then
10798 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10799 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10800 else
10801 echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6
10805 done
10808 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10809 for ncn_progname in windres; do
10810 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10812 if test -x $with_build_time_tools/${ncn_progname}; then
10813 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10814 echo "$as_me:$LINENO: result: yes" >&5
10815 echo "${ECHO_T}yes" >&6
10816 break
10817 else
10818 echo "$as_me:$LINENO: result: no" >&5
10819 echo "${ECHO_T}no" >&6
10821 done
10824 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10825 for ncn_progname in windres; do
10826 if test -n "$ncn_target_tool_prefix"; then
10827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10829 echo "$as_me:$LINENO: checking for $ac_word" >&5
10830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10831 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834 if test -n "$WINDRES_FOR_TARGET"; then
10835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10836 else
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10848 done
10849 done
10853 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10854 if test -n "$WINDRES_FOR_TARGET"; then
10855 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10856 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10857 else
10858 echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10863 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10865 set dummy ${ncn_progname}; ac_word=$2
10866 echo "$as_me:$LINENO: checking for $ac_word" >&5
10867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10868 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 if test -n "$WINDRES_FOR_TARGET"; then
10872 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10885 done
10886 done
10890 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10891 if test -n "$WINDRES_FOR_TARGET"; then
10892 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10893 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10894 else
10895 echo "$as_me:$LINENO: result: no" >&5
10896 echo "${ECHO_T}no" >&6
10900 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10901 done
10904 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10905 set dummy windres
10906 if test $build = $target ; then
10907 WINDRES_FOR_TARGET="$2"
10908 else
10909 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10911 else
10912 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
10915 else
10916 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10922 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10923 if test -n "$with_build_time_tools"; then
10924 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10925 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10926 if test -x $with_build_time_tools/windmc; then
10927 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10928 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10929 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10930 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10931 else
10932 echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6
10935 elif test $build != $host && test $have_gcc_for_target = yes; then
10936 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10937 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10938 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10941 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10942 # Extract the first word of "windmc", so it can be a program name with args.
10943 set dummy windmc; ac_word=$2
10944 echo "$as_me:$LINENO: checking for $ac_word" >&5
10945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10946 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 case $WINDMC_FOR_TARGET in
10950 [\\/]* | ?:[\\/]*)
10951 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $gcc_cv_tool_dirs
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10965 done
10966 done
10969 esac
10971 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10973 if test -n "$WINDMC_FOR_TARGET"; then
10974 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10975 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10976 else
10977 echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6
10982 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10985 if test -n "$WINDMC_FOR_TARGET"; then
10986 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10987 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10988 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10991 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10992 for ncn_progname in windmc; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_progname}; ac_word=$2
10995 echo "$as_me:$LINENO: checking for $ac_word" >&5
10996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10997 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 if test -n "$WINDMC_FOR_TARGET"; then
11001 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11014 done
11015 done
11019 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11020 if test -n "$WINDMC_FOR_TARGET"; then
11021 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11022 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11023 else
11024 echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6
11028 done
11031 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11032 for ncn_progname in windmc; do
11033 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11034 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11035 if test -x $with_build_time_tools/${ncn_progname}; then
11036 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11037 echo "$as_me:$LINENO: result: yes" >&5
11038 echo "${ECHO_T}yes" >&6
11039 break
11040 else
11041 echo "$as_me:$LINENO: result: no" >&5
11042 echo "${ECHO_T}no" >&6
11044 done
11047 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11048 for ncn_progname in windmc; do
11049 if test -n "$ncn_target_tool_prefix"; then
11050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11051 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11052 echo "$as_me:$LINENO: checking for $ac_word" >&5
11053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11054 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 if test -n "$WINDMC_FOR_TARGET"; then
11058 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11059 else
11060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061 for as_dir in $PATH
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 break 2
11071 done
11072 done
11076 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11077 if test -n "$WINDMC_FOR_TARGET"; then
11078 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11079 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11080 else
11081 echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11086 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11088 set dummy ${ncn_progname}; ac_word=$2
11089 echo "$as_me:$LINENO: checking for $ac_word" >&5
11090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 if test -n "$WINDMC_FOR_TARGET"; then
11095 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11108 done
11109 done
11113 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11114 if test -n "$WINDMC_FOR_TARGET"; then
11115 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11116 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11117 else
11118 echo "$as_me:$LINENO: result: no" >&5
11119 echo "${ECHO_T}no" >&6
11123 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11124 done
11127 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11128 set dummy windmc
11129 if test $build = $target ; then
11130 WINDMC_FOR_TARGET="$2"
11131 else
11132 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11134 else
11135 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11138 else
11139 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11143 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11145 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11146 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11147 if test "x${build}" != "x${host}" ; then
11148 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11149 # We already found the complete path
11150 ac_dir=`dirname $AR_FOR_TARGET`
11151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11152 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11153 else
11154 # Canadian cross, just use what we found
11155 echo "$as_me:$LINENO: result: pre-installed" >&5
11156 echo "${ECHO_T}pre-installed" >&6
11158 else
11159 ok=yes
11160 case " ${configdirs} " in
11161 *" binutils "*) ;;
11162 *) ok=no ;;
11163 esac
11165 if test $ok = yes; then
11166 # An in-tree tool is available and we can use it
11167 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11168 echo "$as_me:$LINENO: result: just compiled" >&5
11169 echo "${ECHO_T}just compiled" >&6
11170 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11171 # We already found the complete path
11172 ac_dir=`dirname $AR_FOR_TARGET`
11173 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11174 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11175 elif test "x$target" = "x$host"; then
11176 # We can use an host tool
11177 AR_FOR_TARGET='$(AR)'
11178 echo "$as_me:$LINENO: result: host tool" >&5
11179 echo "${ECHO_T}host tool" >&6
11180 else
11181 # We need a cross tool
11182 echo "$as_me:$LINENO: result: pre-installed" >&5
11183 echo "${ECHO_T}pre-installed" >&6
11187 echo "$as_me:$LINENO: checking where to find the target as" >&5
11188 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11189 if test "x${build}" != "x${host}" ; then
11190 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11191 # We already found the complete path
11192 ac_dir=`dirname $AS_FOR_TARGET`
11193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11194 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11195 else
11196 # Canadian cross, just use what we found
11197 echo "$as_me:$LINENO: result: pre-installed" >&5
11198 echo "${ECHO_T}pre-installed" >&6
11200 else
11201 ok=yes
11202 case " ${configdirs} " in
11203 *" gas "*) ;;
11204 *) ok=no ;;
11205 esac
11207 if test $ok = yes; then
11208 # An in-tree tool is available and we can use it
11209 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11210 echo "$as_me:$LINENO: result: just compiled" >&5
11211 echo "${ECHO_T}just compiled" >&6
11212 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11213 # We already found the complete path
11214 ac_dir=`dirname $AS_FOR_TARGET`
11215 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11216 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11217 elif test "x$target" = "x$host"; then
11218 # We can use an host tool
11219 AS_FOR_TARGET='$(AS)'
11220 echo "$as_me:$LINENO: result: host tool" >&5
11221 echo "${ECHO_T}host tool" >&6
11222 else
11223 # We need a cross tool
11224 echo "$as_me:$LINENO: result: pre-installed" >&5
11225 echo "${ECHO_T}pre-installed" >&6
11229 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11230 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11231 if test "x${build}" != "x${host}" ; then
11232 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11233 # We already found the complete path
11234 ac_dir=`dirname $CC_FOR_TARGET`
11235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11236 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11237 else
11238 # Canadian cross, just use what we found
11239 echo "$as_me:$LINENO: result: pre-installed" >&5
11240 echo "${ECHO_T}pre-installed" >&6
11242 else
11243 ok=yes
11244 case " ${configdirs} " in
11245 *" gcc "*) ;;
11246 *) ok=no ;;
11247 esac
11249 if test $ok = yes; then
11250 # An in-tree tool is available and we can use it
11251 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11252 echo "$as_me:$LINENO: result: just compiled" >&5
11253 echo "${ECHO_T}just compiled" >&6
11254 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11255 # We already found the complete path
11256 ac_dir=`dirname $CC_FOR_TARGET`
11257 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11258 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11259 elif test "x$target" = "x$host"; then
11260 # We can use an host tool
11261 CC_FOR_TARGET='$(CC)'
11262 echo "$as_me:$LINENO: result: host tool" >&5
11263 echo "${ECHO_T}host tool" >&6
11264 else
11265 # We need a cross tool
11266 echo "$as_me:$LINENO: result: pre-installed" >&5
11267 echo "${ECHO_T}pre-installed" >&6
11271 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11272 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11273 if test "x${build}" != "x${host}" ; then
11274 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11275 # We already found the complete path
11276 ac_dir=`dirname $CXX_FOR_TARGET`
11277 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11278 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11279 else
11280 # Canadian cross, just use what we found
11281 echo "$as_me:$LINENO: result: pre-installed" >&5
11282 echo "${ECHO_T}pre-installed" >&6
11284 else
11285 ok=yes
11286 case " ${configdirs} " in
11287 *" gcc "*) ;;
11288 *) ok=no ;;
11289 esac
11290 case ,${enable_languages}, in
11291 *,c++,*) ;;
11292 *) ok=no ;;
11293 esac
11294 if test $ok = yes; then
11295 # An in-tree tool is available and we can use it
11296 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'
11297 echo "$as_me:$LINENO: result: just compiled" >&5
11298 echo "${ECHO_T}just compiled" >&6
11299 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11300 # We already found the complete path
11301 ac_dir=`dirname $CXX_FOR_TARGET`
11302 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11303 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11304 elif test "x$target" = "x$host"; then
11305 # We can use an host tool
11306 CXX_FOR_TARGET='$(CXX)'
11307 echo "$as_me:$LINENO: result: host tool" >&5
11308 echo "${ECHO_T}host tool" >&6
11309 else
11310 # We need a cross tool
11311 echo "$as_me:$LINENO: result: pre-installed" >&5
11312 echo "${ECHO_T}pre-installed" >&6
11316 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11317 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11318 if test "x${build}" != "x${host}" ; then
11319 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11320 # We already found the complete path
11321 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11322 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11323 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11324 else
11325 # Canadian cross, just use what we found
11326 echo "$as_me:$LINENO: result: pre-installed" >&5
11327 echo "${ECHO_T}pre-installed" >&6
11329 else
11330 ok=yes
11331 case " ${configdirs} " in
11332 *" gcc "*) ;;
11333 *) ok=no ;;
11334 esac
11335 case ,${enable_languages}, in
11336 *,c++,*) ;;
11337 *) ok=no ;;
11338 esac
11339 if test $ok = yes; then
11340 # An in-tree tool is available and we can use it
11341 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'
11342 echo "$as_me:$LINENO: result: just compiled" >&5
11343 echo "${ECHO_T}just compiled" >&6
11344 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11345 # We already found the complete path
11346 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11347 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11348 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11349 elif test "x$target" = "x$host"; then
11350 # We can use an host tool
11351 RAW_CXX_FOR_TARGET='$(CXX)'
11352 echo "$as_me:$LINENO: result: host tool" >&5
11353 echo "${ECHO_T}host tool" >&6
11354 else
11355 # We need a cross tool
11356 echo "$as_me:$LINENO: result: pre-installed" >&5
11357 echo "${ECHO_T}pre-installed" >&6
11361 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11362 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11363 if test "x${build}" != "x${host}" ; then
11364 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11365 # We already found the complete path
11366 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11367 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11368 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11369 else
11370 # Canadian cross, just use what we found
11371 echo "$as_me:$LINENO: result: pre-installed" >&5
11372 echo "${ECHO_T}pre-installed" >&6
11374 else
11375 ok=yes
11376 case " ${configdirs} " in
11377 *" binutils "*) ;;
11378 *) ok=no ;;
11379 esac
11381 if test $ok = yes; then
11382 # An in-tree tool is available and we can use it
11383 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11384 echo "$as_me:$LINENO: result: just compiled" >&5
11385 echo "${ECHO_T}just compiled" >&6
11386 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11387 # We already found the complete path
11388 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11389 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11390 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11391 elif test "x$target" = "x$host"; then
11392 # We can use an host tool
11393 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11394 echo "$as_me:$LINENO: result: host tool" >&5
11395 echo "${ECHO_T}host tool" >&6
11396 else
11397 # We need a cross tool
11398 echo "$as_me:$LINENO: result: pre-installed" >&5
11399 echo "${ECHO_T}pre-installed" >&6
11403 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11404 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11405 if test "x${build}" != "x${host}" ; then
11406 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11407 # We already found the complete path
11408 ac_dir=`dirname $GCC_FOR_TARGET`
11409 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11410 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11411 else
11412 # Canadian cross, just use what we found
11413 echo "$as_me:$LINENO: result: pre-installed" >&5
11414 echo "${ECHO_T}pre-installed" >&6
11416 else
11417 ok=yes
11418 case " ${configdirs} " in
11419 *" gcc "*) ;;
11420 *) ok=no ;;
11421 esac
11423 if test $ok = yes; then
11424 # An in-tree tool is available and we can use it
11425 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11426 echo "$as_me:$LINENO: result: just compiled" >&5
11427 echo "${ECHO_T}just compiled" >&6
11428 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11429 # We already found the complete path
11430 ac_dir=`dirname $GCC_FOR_TARGET`
11431 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11432 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11433 elif test "x$target" = "x$host"; then
11434 # We can use an host tool
11435 GCC_FOR_TARGET='$()'
11436 echo "$as_me:$LINENO: result: host tool" >&5
11437 echo "${ECHO_T}host tool" >&6
11438 else
11439 # We need a cross tool
11440 echo "$as_me:$LINENO: result: pre-installed" >&5
11441 echo "${ECHO_T}pre-installed" >&6
11445 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11446 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11447 if test "x${build}" != "x${host}" ; then
11448 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11449 # We already found the complete path
11450 ac_dir=`dirname $GCJ_FOR_TARGET`
11451 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11452 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11453 else
11454 # Canadian cross, just use what we found
11455 echo "$as_me:$LINENO: result: pre-installed" >&5
11456 echo "${ECHO_T}pre-installed" >&6
11458 else
11459 ok=yes
11460 case " ${configdirs} " in
11461 *" gcc "*) ;;
11462 *) ok=no ;;
11463 esac
11464 case ,${enable_languages}, in
11465 *,java,*) ;;
11466 *) ok=no ;;
11467 esac
11468 if test $ok = yes; then
11469 # An in-tree tool is available and we can use it
11470 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11471 echo "$as_me:$LINENO: result: just compiled" >&5
11472 echo "${ECHO_T}just compiled" >&6
11473 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11474 # We already found the complete path
11475 ac_dir=`dirname $GCJ_FOR_TARGET`
11476 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11477 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11478 elif test "x$target" = "x$host"; then
11479 # We can use an host tool
11480 GCJ_FOR_TARGET='$(GCJ)'
11481 echo "$as_me:$LINENO: result: host tool" >&5
11482 echo "${ECHO_T}host tool" >&6
11483 else
11484 # We need a cross tool
11485 echo "$as_me:$LINENO: result: pre-installed" >&5
11486 echo "${ECHO_T}pre-installed" >&6
11490 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11491 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11492 if test "x${build}" != "x${host}" ; then
11493 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11494 # We already found the complete path
11495 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11496 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11497 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11498 else
11499 # Canadian cross, just use what we found
11500 echo "$as_me:$LINENO: result: pre-installed" >&5
11501 echo "${ECHO_T}pre-installed" >&6
11503 else
11504 ok=yes
11505 case " ${configdirs} " in
11506 *" gcc "*) ;;
11507 *) ok=no ;;
11508 esac
11509 case ,${enable_languages}, in
11510 *,fortran,*) ;;
11511 *) ok=no ;;
11512 esac
11513 if test $ok = yes; then
11514 # An in-tree tool is available and we can use it
11515 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11516 echo "$as_me:$LINENO: result: just compiled" >&5
11517 echo "${ECHO_T}just compiled" >&6
11518 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11519 # We already found the complete path
11520 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11521 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11522 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11523 elif test "x$target" = "x$host"; then
11524 # We can use an host tool
11525 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11526 echo "$as_me:$LINENO: result: host tool" >&5
11527 echo "${ECHO_T}host tool" >&6
11528 else
11529 # We need a cross tool
11530 echo "$as_me:$LINENO: result: pre-installed" >&5
11531 echo "${ECHO_T}pre-installed" >&6
11535 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11536 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11537 if test "x${build}" != "x${host}" ; then
11538 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11539 # We already found the complete path
11540 ac_dir=`dirname $LD_FOR_TARGET`
11541 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11542 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11543 else
11544 # Canadian cross, just use what we found
11545 echo "$as_me:$LINENO: result: pre-installed" >&5
11546 echo "${ECHO_T}pre-installed" >&6
11548 else
11549 ok=yes
11550 case " ${configdirs} " in
11551 *" ld "*) ;;
11552 *) ok=no ;;
11553 esac
11555 if test $ok = yes; then
11556 # An in-tree tool is available and we can use it
11557 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11558 echo "$as_me:$LINENO: result: just compiled" >&5
11559 echo "${ECHO_T}just compiled" >&6
11560 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11561 # We already found the complete path
11562 ac_dir=`dirname $LD_FOR_TARGET`
11563 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11564 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11565 elif test "x$target" = "x$host"; then
11566 # We can use an host tool
11567 LD_FOR_TARGET='$(LD)'
11568 echo "$as_me:$LINENO: result: host tool" >&5
11569 echo "${ECHO_T}host tool" >&6
11570 else
11571 # We need a cross tool
11572 echo "$as_me:$LINENO: result: pre-installed" >&5
11573 echo "${ECHO_T}pre-installed" >&6
11577 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11578 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11579 if test "x${build}" != "x${host}" ; then
11580 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11581 # We already found the complete path
11582 ac_dir=`dirname $LIPO_FOR_TARGET`
11583 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11584 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11585 else
11586 # Canadian cross, just use what we found
11587 echo "$as_me:$LINENO: result: pre-installed" >&5
11588 echo "${ECHO_T}pre-installed" >&6
11590 else
11591 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11592 # We already found the complete path
11593 ac_dir=`dirname $LIPO_FOR_TARGET`
11594 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11595 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11596 elif test "x$target" = "x$host"; then
11597 # We can use an host tool
11598 LIPO_FOR_TARGET='$(LIPO)'
11599 echo "$as_me:$LINENO: result: host tool" >&5
11600 echo "${ECHO_T}host tool" >&6
11601 else
11602 # We need a cross tool
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604 echo "${ECHO_T}pre-installed" >&6
11608 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11609 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11610 if test "x${build}" != "x${host}" ; then
11611 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
11613 ac_dir=`dirname $NM_FOR_TARGET`
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11616 else
11617 # Canadian cross, just use what we found
11618 echo "$as_me:$LINENO: result: pre-installed" >&5
11619 echo "${ECHO_T}pre-installed" >&6
11621 else
11622 ok=yes
11623 case " ${configdirs} " in
11624 *" binutils "*) ;;
11625 *) ok=no ;;
11626 esac
11628 if test $ok = yes; then
11629 # An in-tree tool is available and we can use it
11630 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11631 echo "$as_me:$LINENO: result: just compiled" >&5
11632 echo "${ECHO_T}just compiled" >&6
11633 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11634 # We already found the complete path
11635 ac_dir=`dirname $NM_FOR_TARGET`
11636 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11637 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11638 elif test "x$target" = "x$host"; then
11639 # We can use an host tool
11640 NM_FOR_TARGET='$(NM)'
11641 echo "$as_me:$LINENO: result: host tool" >&5
11642 echo "${ECHO_T}host tool" >&6
11643 else
11644 # We need a cross tool
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646 echo "${ECHO_T}pre-installed" >&6
11650 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11651 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11652 if test "x${build}" != "x${host}" ; then
11653 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
11655 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11658 else
11659 # Canadian cross, just use what we found
11660 echo "$as_me:$LINENO: result: pre-installed" >&5
11661 echo "${ECHO_T}pre-installed" >&6
11663 else
11664 ok=yes
11665 case " ${configdirs} " in
11666 *" binutils "*) ;;
11667 *) ok=no ;;
11668 esac
11670 if test $ok = yes; then
11671 # An in-tree tool is available and we can use it
11672 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11673 echo "$as_me:$LINENO: result: just compiled" >&5
11674 echo "${ECHO_T}just compiled" >&6
11675 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11676 # We already found the complete path
11677 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11678 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11679 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11680 elif test "x$target" = "x$host"; then
11681 # We can use an host tool
11682 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11683 echo "$as_me:$LINENO: result: host tool" >&5
11684 echo "${ECHO_T}host tool" >&6
11685 else
11686 # We need a cross tool
11687 echo "$as_me:$LINENO: result: pre-installed" >&5
11688 echo "${ECHO_T}pre-installed" >&6
11692 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11693 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11694 if test "x${build}" != "x${host}" ; then
11695 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11696 # We already found the complete path
11697 ac_dir=`dirname $RANLIB_FOR_TARGET`
11698 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11699 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11700 else
11701 # Canadian cross, just use what we found
11702 echo "$as_me:$LINENO: result: pre-installed" >&5
11703 echo "${ECHO_T}pre-installed" >&6
11705 else
11706 ok=yes
11707 case " ${configdirs} " in
11708 *" binutils "*) ;;
11709 *) ok=no ;;
11710 esac
11712 if test $ok = yes; then
11713 # An in-tree tool is available and we can use it
11714 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11715 echo "$as_me:$LINENO: result: just compiled" >&5
11716 echo "${ECHO_T}just compiled" >&6
11717 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11718 # We already found the complete path
11719 ac_dir=`dirname $RANLIB_FOR_TARGET`
11720 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11722 elif test "x$target" = "x$host"; then
11723 # We can use an host tool
11724 RANLIB_FOR_TARGET='$(RANLIB)'
11725 echo "$as_me:$LINENO: result: host tool" >&5
11726 echo "${ECHO_T}host tool" >&6
11727 else
11728 # We need a cross tool
11729 echo "$as_me:$LINENO: result: pre-installed" >&5
11730 echo "${ECHO_T}pre-installed" >&6
11734 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11735 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11736 if test "x${build}" != "x${host}" ; then
11737 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11738 # We already found the complete path
11739 ac_dir=`dirname $STRIP_FOR_TARGET`
11740 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11741 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11742 else
11743 # Canadian cross, just use what we found
11744 echo "$as_me:$LINENO: result: pre-installed" >&5
11745 echo "${ECHO_T}pre-installed" >&6
11747 else
11748 ok=yes
11749 case " ${configdirs} " in
11750 *" binutils "*) ;;
11751 *) ok=no ;;
11752 esac
11754 if test $ok = yes; then
11755 # An in-tree tool is available and we can use it
11756 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11757 echo "$as_me:$LINENO: result: just compiled" >&5
11758 echo "${ECHO_T}just compiled" >&6
11759 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11760 # We already found the complete path
11761 ac_dir=`dirname $STRIP_FOR_TARGET`
11762 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11763 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11764 elif test "x$target" = "x$host"; then
11765 # We can use an host tool
11766 STRIP_FOR_TARGET='$(STRIP)'
11767 echo "$as_me:$LINENO: result: host tool" >&5
11768 echo "${ECHO_T}host tool" >&6
11769 else
11770 # We need a cross tool
11771 echo "$as_me:$LINENO: result: pre-installed" >&5
11772 echo "${ECHO_T}pre-installed" >&6
11776 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11777 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11778 if test "x${build}" != "x${host}" ; then
11779 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11780 # We already found the complete path
11781 ac_dir=`dirname $WINDRES_FOR_TARGET`
11782 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11783 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11784 else
11785 # Canadian cross, just use what we found
11786 echo "$as_me:$LINENO: result: pre-installed" >&5
11787 echo "${ECHO_T}pre-installed" >&6
11789 else
11790 ok=yes
11791 case " ${configdirs} " in
11792 *" binutils "*) ;;
11793 *) ok=no ;;
11794 esac
11796 if test $ok = yes; then
11797 # An in-tree tool is available and we can use it
11798 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11799 echo "$as_me:$LINENO: result: just compiled" >&5
11800 echo "${ECHO_T}just compiled" >&6
11801 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11802 # We already found the complete path
11803 ac_dir=`dirname $WINDRES_FOR_TARGET`
11804 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11805 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11806 elif test "x$target" = "x$host"; then
11807 # We can use an host tool
11808 WINDRES_FOR_TARGET='$(WINDRES)'
11809 echo "$as_me:$LINENO: result: host tool" >&5
11810 echo "${ECHO_T}host tool" >&6
11811 else
11812 # We need a cross tool
11813 echo "$as_me:$LINENO: result: pre-installed" >&5
11814 echo "${ECHO_T}pre-installed" >&6
11818 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11819 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11820 if test "x${build}" != "x${host}" ; then
11821 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
11823 ac_dir=`dirname $WINDMC_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11826 else
11827 # Canadian cross, just use what we found
11828 echo "$as_me:$LINENO: result: pre-installed" >&5
11829 echo "${ECHO_T}pre-installed" >&6
11831 else
11832 ok=yes
11833 case " ${configdirs} " in
11834 *" binutils "*) ;;
11835 *) ok=no ;;
11836 esac
11838 if test $ok = yes; then
11839 # An in-tree tool is available and we can use it
11840 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11841 echo "$as_me:$LINENO: result: just compiled" >&5
11842 echo "${ECHO_T}just compiled" >&6
11843 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11844 # We already found the complete path
11845 ac_dir=`dirname $WINDMC_FOR_TARGET`
11846 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11847 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11848 elif test "x$target" = "x$host"; then
11849 # We can use an host tool
11850 WINDMC_FOR_TARGET='$(WINDMC)'
11851 echo "$as_me:$LINENO: result: host tool" >&5
11852 echo "${ECHO_T}host tool" >&6
11853 else
11854 # We need a cross tool
11855 echo "$as_me:$LINENO: result: pre-installed" >&5
11856 echo "${ECHO_T}pre-installed" >&6
11864 # Certain tools may need extra flags.
11865 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11866 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11867 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11869 # When building target libraries, except in a Canadian cross, we use
11870 # the same toolchain as the compiler we just built.
11871 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11872 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11873 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11874 if test $host = $build; then
11875 case " $configdirs " in
11876 *" gcc "*)
11877 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11878 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11879 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11881 esac
11888 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11889 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11890 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11891 if test "${enable_maintainer_mode+set}" = set; then
11892 enableval="$enable_maintainer_mode"
11893 USE_MAINTAINER_MODE=$enableval
11894 else
11895 USE_MAINTAINER_MODE=no
11897 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11898 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11901 if test "$USE_MAINTAINER_MODE" = yes; then
11902 MAINTAINER_MODE_TRUE=
11903 MAINTAINER_MODE_FALSE='#'
11904 else
11905 MAINTAINER_MODE_TRUE='#'
11906 MAINTAINER_MODE_FALSE=
11908 MAINT=$MAINTAINER_MODE_TRUE
11910 # ---------------------
11911 # GCC bootstrap support
11912 # ---------------------
11914 # Stage specific cflags for build.
11915 stage1_cflags="-g"
11916 case $build in
11917 vax-*-*)
11918 case ${GCC} in
11919 yes) stage1_cflags="-g -Wa,-J" ;;
11920 *) stage1_cflags="-g -J" ;;
11921 esac ;;
11922 esac
11924 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11925 if test "$GCC" = yes; then
11926 saved_CFLAGS="$CFLAGS"
11928 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11929 CFLAGS="$CFLAGS -fkeep-inline-functions"
11930 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11931 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11939 #if (__GNUC__ < 3) \
11940 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11941 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11942 #error http://gcc.gnu.org/PR29382
11943 #endif
11946 main ()
11950 return 0;
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 echo "$as_me:$LINENO: result: yes" >&5
11976 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11986 CFLAGS="$saved_CFLAGS"
11991 # Enable --enable-checking in stage1 of the compiler.
11992 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11993 if test "${enable_stage1_checking+set}" = set; then
11994 enableval="$enable_stage1_checking"
11995 stage1_checking=--enable-checking=${enable_stage1_checking}
11996 else
11997 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
11998 stage1_checking=--enable-checking=yes,types
11999 else
12000 stage1_checking=--enable-checking=$enable_checking,types
12005 # Enable -Werror in bootstrap stage2 and later.
12006 # Check whether --enable-werror or --disable-werror was given.
12007 if test "${enable_werror+set}" = set; then
12008 enableval="$enable_werror"
12010 else
12011 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12012 enable_werror=yes
12013 else
12014 enable_werror=no
12017 case ${enable_werror} in
12018 yes) stage2_werror_flag="--enable-werror-always" ;;
12019 *) stage2_werror_flag="" ;;
12020 esac
12023 # Flags needed to enable html installing and building
12025 # Check whether --with-datarootdir or --without-datarootdir was given.
12026 if test "${with_datarootdir+set}" = set; then
12027 withval="$with_datarootdir"
12028 datarootdir="\${prefix}/${withval}"
12029 else
12030 datarootdir="\${prefix}/share"
12034 # Check whether --with-docdir or --without-docdir was given.
12035 if test "${with_docdir+set}" = set; then
12036 withval="$with_docdir"
12037 docdir="\${prefix}/${withval}"
12038 else
12039 docdir="\${datarootdir}/doc"
12043 # Check whether --with-pdfdir or --without-pdfdir was given.
12044 if test "${with_pdfdir+set}" = set; then
12045 withval="$with_pdfdir"
12046 pdfdir="\${prefix}/${withval}"
12047 else
12048 pdfdir="\${docdir}"
12052 # Check whether --with-htmldir or --without-htmldir was given.
12053 if test "${with_htmldir+set}" = set; then
12054 withval="$with_htmldir"
12055 htmldir="\${prefix}/${withval}"
12056 else
12057 htmldir="\${docdir}"
12065 ac_config_files="$ac_config_files Makefile"
12066 cat >confcache <<\_ACEOF
12067 # This file is a shell script that caches the results of configure
12068 # tests run on this system so they can be shared between configure
12069 # scripts and configure runs, see configure's option --config-cache.
12070 # It is not useful on other systems. If it contains results you don't
12071 # want to keep, you may remove or edit it.
12073 # config.status only pays attention to the cache file if you give it
12074 # the --recheck option to rerun configure.
12076 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12077 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12078 # following values.
12080 _ACEOF
12082 # The following way of writing the cache mishandles newlines in values,
12083 # but we know of no workaround that is simple, portable, and efficient.
12084 # So, don't put newlines in cache variables' values.
12085 # Ultrix sh set writes to stderr and can't be redirected directly,
12086 # and sets the high bit in the cache file unless we assign to the vars.
12088 (set) 2>&1 |
12089 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12090 *ac_space=\ *)
12091 # `set' does not quote correctly, so add quotes (double-quote
12092 # substitution turns \\\\ into \\, and sed turns \\ into \).
12093 sed -n \
12094 "s/'/'\\\\''/g;
12095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12098 # `set' quotes correctly as required by POSIX, so do not add quotes.
12099 sed -n \
12100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12102 esac;
12104 sed '
12105 t clear
12106 : clear
12107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12108 t end
12109 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12110 : end' >>confcache
12111 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12112 if test -w $cache_file; then
12113 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12114 cat confcache >$cache_file
12115 else
12116 echo "not updating unwritable cache $cache_file"
12119 rm -f confcache
12121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12122 # Let make expand exec_prefix.
12123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12125 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12126 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12127 # trailing colons and then remove the whole line if VPATH becomes empty
12128 # (actually we leave an empty line to preserve line numbers).
12129 if test "x$srcdir" = x.; then
12130 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12131 s/:*\$(srcdir):*/:/;
12132 s/:*\${srcdir}:*/:/;
12133 s/:*@srcdir@:*/:/;
12134 s/^\([^=]*=[ ]*\):*/\1/;
12135 s/:*$//;
12136 s/^[^=]*=[ ]*$//;
12140 # Transform confdefs.h into DEFS.
12141 # Protect against shell expansion while executing Makefile rules.
12142 # Protect against Makefile macro expansion.
12144 # If the first sed substitution is executed (which looks for macros that
12145 # take arguments), then we branch to the quote section. Otherwise,
12146 # look for a macro that doesn't take arguments.
12147 cat >confdef2opt.sed <<\_ACEOF
12148 t clear
12149 : clear
12150 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12151 t quote
12152 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12153 t quote
12155 : quote
12156 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12157 s,\[,\\&,g
12158 s,\],\\&,g
12159 s,\$,$$,g
12161 _ACEOF
12162 # We use echo to avoid assuming a particular line-breaking character.
12163 # The extra dot is to prevent the shell from consuming trailing
12164 # line-breaks from the sub-command output. A line-break within
12165 # single-quotes doesn't work because, if this script is created in a
12166 # platform that uses two characters for line-breaks (e.g., DOS), tr
12167 # would break.
12168 ac_LF_and_DOT=`echo; echo .`
12169 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12170 rm -f confdef2opt.sed
12173 ac_libobjs=
12174 ac_ltlibobjs=
12175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12176 # 1. Remove the extension, and $U if already installed.
12177 ac_i=`echo "$ac_i" |
12178 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12179 # 2. Add them.
12180 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12181 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12182 done
12183 LIBOBJS=$ac_libobjs
12185 LTLIBOBJS=$ac_ltlibobjs
12189 : ${CONFIG_STATUS=./config.status}
12190 ac_clean_files_save=$ac_clean_files
12191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12192 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12194 cat >$CONFIG_STATUS <<_ACEOF
12195 #! $SHELL
12196 # Generated by $as_me.
12197 # Run this file to recreate the current configuration.
12198 # Compiler output produced by configure, useful for debugging
12199 # configure, is in config.log if it exists.
12201 debug=false
12202 ac_cs_recheck=false
12203 ac_cs_silent=false
12204 SHELL=\${CONFIG_SHELL-$SHELL}
12205 _ACEOF
12207 cat >>$CONFIG_STATUS <<\_ACEOF
12208 ## --------------------- ##
12209 ## M4sh Initialization. ##
12210 ## --------------------- ##
12212 # Be Bourne compatible
12213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12214 emulate sh
12215 NULLCMD=:
12216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12217 # is contrary to our usage. Disable this feature.
12218 alias -g '${1+"$@"}'='"$@"'
12219 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12220 set -o posix
12222 DUALCASE=1; export DUALCASE # for MKS sh
12224 # Support unset when possible.
12225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12226 as_unset=unset
12227 else
12228 as_unset=false
12232 # Work around bugs in pre-3.0 UWIN ksh.
12233 $as_unset ENV MAIL MAILPATH
12234 PS1='$ '
12235 PS2='> '
12236 PS4='+ '
12238 # NLS nuisances.
12239 for as_var in \
12240 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12241 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12242 LC_TELEPHONE LC_TIME
12244 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12245 eval $as_var=C; export $as_var
12246 else
12247 $as_unset $as_var
12249 done
12251 # Required to use basename.
12252 if expr a : '\(a\)' >/dev/null 2>&1; then
12253 as_expr=expr
12254 else
12255 as_expr=false
12258 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12259 as_basename=basename
12260 else
12261 as_basename=false
12265 # Name of the executable.
12266 as_me=`$as_basename "$0" ||
12267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12268 X"$0" : 'X\(//\)$' \| \
12269 X"$0" : 'X\(/\)$' \| \
12270 . : '\(.\)' 2>/dev/null ||
12271 echo X/"$0" |
12272 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12273 /^X\/\(\/\/\)$/{ s//\1/; q; }
12274 /^X\/\(\/\).*/{ s//\1/; q; }
12275 s/.*/./; q'`
12278 # PATH needs CR, and LINENO needs CR and PATH.
12279 # Avoid depending upon Character Ranges.
12280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12283 as_cr_digits='0123456789'
12284 as_cr_alnum=$as_cr_Letters$as_cr_digits
12286 # The user is always right.
12287 if test "${PATH_SEPARATOR+set}" != set; then
12288 echo "#! /bin/sh" >conf$$.sh
12289 echo "exit 0" >>conf$$.sh
12290 chmod +x conf$$.sh
12291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12292 PATH_SEPARATOR=';'
12293 else
12294 PATH_SEPARATOR=:
12296 rm -f conf$$.sh
12300 as_lineno_1=$LINENO
12301 as_lineno_2=$LINENO
12302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12303 test "x$as_lineno_1" != "x$as_lineno_2" &&
12304 test "x$as_lineno_3" = "x$as_lineno_2" || {
12305 # Find who we are. Look in the path if we contain no path at all
12306 # relative or not.
12307 case $0 in
12308 *[\\/]* ) as_myself=$0 ;;
12309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12315 done
12318 esac
12319 # We did not find ourselves, most probably we were run as `sh COMMAND'
12320 # in which case we are not to be found in the path.
12321 if test "x$as_myself" = x; then
12322 as_myself=$0
12324 if test ! -f "$as_myself"; then
12325 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12326 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12327 { (exit 1); exit 1; }; }
12329 case $CONFIG_SHELL in
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for as_base in sh bash ksh sh5; do
12337 case $as_dir in
12339 if ("$as_dir/$as_base" -c '
12340 as_lineno_1=$LINENO
12341 as_lineno_2=$LINENO
12342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12343 test "x$as_lineno_1" != "x$as_lineno_2" &&
12344 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12345 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12346 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12347 CONFIG_SHELL=$as_dir/$as_base
12348 export CONFIG_SHELL
12349 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12350 fi;;
12351 esac
12352 done
12353 done
12355 esac
12357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12358 # uniformly replaced by the line number. The first 'sed' inserts a
12359 # line-number line before each line; the second 'sed' does the real
12360 # work. The second script uses 'N' to pair each line-number line
12361 # with the numbered line, and appends trailing '-' during
12362 # substitution so that $LINENO is not a special case at line end.
12363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12364 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12365 sed '=' <$as_myself |
12366 sed '
12368 s,$,-,
12369 : loop
12370 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12371 t loop
12372 s,-$,,
12373 s,^['$as_cr_digits']*\n,,
12374 ' >$as_me.lineno &&
12375 chmod +x $as_me.lineno ||
12376 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12377 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12378 { (exit 1); exit 1; }; }
12380 # Don't try to exec as it changes $[0], causing all sort of problems
12381 # (the dirname of $[0] is not the place where we might find the
12382 # original and so on. Autoconf is especially sensible to this).
12383 . ./$as_me.lineno
12384 # Exit status is that of the last command.
12385 exit
12389 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12390 *c*,-n*) ECHO_N= ECHO_C='
12391 ' ECHO_T=' ' ;;
12392 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12393 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12394 esac
12396 if expr a : '\(a\)' >/dev/null 2>&1; then
12397 as_expr=expr
12398 else
12399 as_expr=false
12402 rm -f conf$$ conf$$.exe conf$$.file
12403 echo >conf$$.file
12404 if ln -s conf$$.file conf$$ 2>/dev/null; then
12405 # We could just check for DJGPP; but this test a) works b) is more generic
12406 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12407 if test -f conf$$.exe; then
12408 # Don't use ln at all; we don't have any links
12409 as_ln_s='cp -p'
12410 else
12411 as_ln_s='ln -s'
12413 elif ln conf$$.file conf$$ 2>/dev/null; then
12414 as_ln_s=ln
12415 else
12416 as_ln_s='cp -p'
12418 rm -f conf$$ conf$$.exe conf$$.file
12420 if mkdir -p . 2>/dev/null; then
12421 as_mkdir_p=:
12422 else
12423 test -d ./-p && rmdir ./-p
12424 as_mkdir_p=false
12427 as_executable_p="test -f"
12429 # Sed expression to map a string onto a valid CPP name.
12430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12432 # Sed expression to map a string onto a valid variable name.
12433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12436 # IFS
12437 # We need space, tab and new line, in precisely that order.
12438 as_nl='
12440 IFS=" $as_nl"
12442 # CDPATH.
12443 $as_unset CDPATH
12445 exec 6>&1
12447 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12448 # report actual input values of CONFIG_FILES etc. instead of their
12449 # values after options handling. Logging --version etc. is OK.
12450 exec 5>>config.log
12452 echo
12453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12454 ## Running $as_me. ##
12455 _ASBOX
12456 } >&5
12457 cat >&5 <<_CSEOF
12459 This file was extended by $as_me, which was
12460 generated by GNU Autoconf 2.59. Invocation command line was
12462 CONFIG_FILES = $CONFIG_FILES
12463 CONFIG_HEADERS = $CONFIG_HEADERS
12464 CONFIG_LINKS = $CONFIG_LINKS
12465 CONFIG_COMMANDS = $CONFIG_COMMANDS
12466 $ $0 $@
12468 _CSEOF
12469 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12470 echo >&5
12471 _ACEOF
12473 # Files that config.status was made for.
12474 if test -n "$ac_config_files"; then
12475 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12478 if test -n "$ac_config_headers"; then
12479 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12482 if test -n "$ac_config_links"; then
12483 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12486 if test -n "$ac_config_commands"; then
12487 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12490 cat >>$CONFIG_STATUS <<\_ACEOF
12492 ac_cs_usage="\
12493 \`$as_me' instantiates files from templates according to the
12494 current configuration.
12496 Usage: $0 [OPTIONS] [FILE]...
12498 -h, --help print this help, then exit
12499 -V, --version print version number, then exit
12500 -q, --quiet do not print progress messages
12501 -d, --debug don't remove temporary files
12502 --recheck update $as_me by reconfiguring in the same conditions
12503 --file=FILE[:TEMPLATE]
12504 instantiate the configuration file FILE
12506 Configuration files:
12507 $config_files
12509 Report bugs to <bug-autoconf@gnu.org>."
12510 _ACEOF
12512 cat >>$CONFIG_STATUS <<_ACEOF
12513 ac_cs_version="\\
12514 config.status
12515 configured by $0, generated by GNU Autoconf 2.59,
12516 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12518 Copyright (C) 2003 Free Software Foundation, Inc.
12519 This config.status script is free software; the Free Software Foundation
12520 gives unlimited permission to copy, distribute and modify it."
12521 srcdir=$srcdir
12522 INSTALL="$INSTALL"
12523 _ACEOF
12525 cat >>$CONFIG_STATUS <<\_ACEOF
12526 # If no file are specified by the user, then we need to provide default
12527 # value. By we need to know if files were specified by the user.
12528 ac_need_defaults=:
12529 while test $# != 0
12531 case $1 in
12532 --*=*)
12533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12535 ac_shift=:
12538 ac_option=$1
12539 ac_optarg=$2
12540 ac_shift=shift
12542 *) # This is not an option, so the user has probably given explicit
12543 # arguments.
12544 ac_option=$1
12545 ac_need_defaults=false;;
12546 esac
12548 case $ac_option in
12549 # Handling of the options.
12550 _ACEOF
12551 cat >>$CONFIG_STATUS <<\_ACEOF
12552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12553 ac_cs_recheck=: ;;
12554 --version | --vers* | -V )
12555 echo "$ac_cs_version"; exit 0 ;;
12556 --he | --h)
12557 # Conflict between --help and --header
12558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12559 Try \`$0 --help' for more information." >&5
12560 echo "$as_me: error: ambiguous option: $1
12561 Try \`$0 --help' for more information." >&2;}
12562 { (exit 1); exit 1; }; };;
12563 --help | --hel | -h )
12564 echo "$ac_cs_usage"; exit 0 ;;
12565 --debug | --d* | -d )
12566 debug=: ;;
12567 --file | --fil | --fi | --f )
12568 $ac_shift
12569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12570 ac_need_defaults=false;;
12571 --header | --heade | --head | --hea )
12572 $ac_shift
12573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12574 ac_need_defaults=false;;
12575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12577 ac_cs_silent=: ;;
12579 # This is an error.
12580 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12581 Try \`$0 --help' for more information." >&5
12582 echo "$as_me: error: unrecognized option: $1
12583 Try \`$0 --help' for more information." >&2;}
12584 { (exit 1); exit 1; }; } ;;
12586 *) ac_config_targets="$ac_config_targets $1" ;;
12588 esac
12589 shift
12590 done
12592 ac_configure_extra_args=
12594 if $ac_cs_silent; then
12595 exec 6>/dev/null
12596 ac_configure_extra_args="$ac_configure_extra_args --silent"
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<_ACEOF
12601 if \$ac_cs_recheck; then
12602 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12603 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12606 _ACEOF
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 for ac_config_target in $ac_config_targets
12615 case "$ac_config_target" in
12616 # Handling of arguments.
12617 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12620 { (exit 1); exit 1; }; };;
12621 esac
12622 done
12624 # If the user did not use the arguments to specify the items to instantiate,
12625 # then the envvar interface is used. Set only those that are not.
12626 # We use the long form for the default assignment because of an extremely
12627 # bizarre bug on SunOS 4.1.3.
12628 if $ac_need_defaults; then
12629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12632 # Have a temporary directory for convenience. Make it in the build tree
12633 # simply because there is no reason to put it here, and in addition,
12634 # creating and moving files from /tmp can sometimes cause problems.
12635 # Create a temporary directory, and hook for its removal unless debugging.
12636 $debug ||
12638 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12639 trap '{ (exit 1); exit 1; }' 1 2 13 15
12642 # Create a (secure) tmp directory for tmp files.
12645 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12646 test -n "$tmp" && test -d "$tmp"
12647 } ||
12649 tmp=./confstat$$-$RANDOM
12650 (umask 077 && mkdir $tmp)
12651 } ||
12653 echo "$me: cannot create a temporary directory in ." >&2
12654 { (exit 1); exit 1; }
12657 _ACEOF
12659 cat >>$CONFIG_STATUS <<_ACEOF
12662 # CONFIG_FILES section.
12665 # No need to generate the scripts if there are no CONFIG_FILES.
12666 # This happens for instance when ./config.status config.h
12667 if test -n "\$CONFIG_FILES"; then
12668 # Protect against being on the right side of a sed subst in config.status.
12669 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12670 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12671 s,@SHELL@,$SHELL,;t t
12672 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12673 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12674 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12675 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12676 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12677 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12678 s,@exec_prefix@,$exec_prefix,;t t
12679 s,@prefix@,$prefix,;t t
12680 s,@program_transform_name@,$program_transform_name,;t t
12681 s,@bindir@,$bindir,;t t
12682 s,@sbindir@,$sbindir,;t t
12683 s,@libexecdir@,$libexecdir,;t t
12684 s,@datadir@,$datadir,;t t
12685 s,@sysconfdir@,$sysconfdir,;t t
12686 s,@sharedstatedir@,$sharedstatedir,;t t
12687 s,@localstatedir@,$localstatedir,;t t
12688 s,@libdir@,$libdir,;t t
12689 s,@includedir@,$includedir,;t t
12690 s,@oldincludedir@,$oldincludedir,;t t
12691 s,@infodir@,$infodir,;t t
12692 s,@mandir@,$mandir,;t t
12693 s,@build_alias@,$build_alias,;t t
12694 s,@host_alias@,$host_alias,;t t
12695 s,@target_alias@,$target_alias,;t t
12696 s,@DEFS@,$DEFS,;t t
12697 s,@ECHO_C@,$ECHO_C,;t t
12698 s,@ECHO_N@,$ECHO_N,;t t
12699 s,@ECHO_T@,$ECHO_T,;t t
12700 s,@LIBS@,$LIBS,;t t
12701 s,@build@,$build,;t t
12702 s,@build_cpu@,$build_cpu,;t t
12703 s,@build_vendor@,$build_vendor,;t t
12704 s,@build_os@,$build_os,;t t
12705 s,@build_noncanonical@,$build_noncanonical,;t t
12706 s,@host_noncanonical@,$host_noncanonical,;t t
12707 s,@target_noncanonical@,$target_noncanonical,;t t
12708 s,@host@,$host,;t t
12709 s,@host_cpu@,$host_cpu,;t t
12710 s,@host_vendor@,$host_vendor,;t t
12711 s,@host_os@,$host_os,;t t
12712 s,@target@,$target,;t t
12713 s,@target_cpu@,$target_cpu,;t t
12714 s,@target_vendor@,$target_vendor,;t t
12715 s,@target_os@,$target_os,;t t
12716 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12717 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12718 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12719 s,@LN@,$LN,;t t
12720 s,@LN_S@,$LN_S,;t t
12721 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12722 s,@build_libsubdir@,$build_libsubdir,;t t
12723 s,@build_subdir@,$build_subdir,;t t
12724 s,@host_subdir@,$host_subdir,;t t
12725 s,@target_subdir@,$target_subdir,;t t
12726 s,@CC@,$CC,;t t
12727 s,@CFLAGS@,$CFLAGS,;t t
12728 s,@LDFLAGS@,$LDFLAGS,;t t
12729 s,@CPPFLAGS@,$CPPFLAGS,;t t
12730 s,@ac_ct_CC@,$ac_ct_CC,;t t
12731 s,@EXEEXT@,$EXEEXT,;t t
12732 s,@OBJEXT@,$OBJEXT,;t t
12733 s,@CXX@,$CXX,;t t
12734 s,@CXXFLAGS@,$CXXFLAGS,;t t
12735 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12736 s,@GNATBIND@,$GNATBIND,;t t
12737 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12738 s,@GNATMAKE@,$GNATMAKE,;t t
12739 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12740 s,@do_compare@,$do_compare,;t t
12741 s,@gmplibs@,$gmplibs,;t t
12742 s,@gmpinc@,$gmpinc,;t t
12743 s,@stage1_languages@,$stage1_languages,;t t
12744 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12745 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12746 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12747 s,@tooldir@,$tooldir,;t t
12748 s,@build_tooldir@,$build_tooldir,;t t
12749 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12750 s,@GDB_TK@,$GDB_TK,;t t
12751 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12752 s,@build_configargs@,$build_configargs,;t t
12753 s,@build_configdirs@,$build_configdirs,;t t
12754 s,@host_configargs@,$host_configargs,;t t
12755 s,@configdirs@,$configdirs,;t t
12756 s,@target_configargs@,$target_configargs,;t t
12757 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12758 s,@config_shell@,$config_shell,;t t
12759 s,@YACC@,$YACC,;t t
12760 s,@BISON@,$BISON,;t t
12761 s,@M4@,$M4,;t t
12762 s,@LEX@,$LEX,;t t
12763 s,@FLEX@,$FLEX,;t t
12764 s,@MAKEINFO@,$MAKEINFO,;t t
12765 s,@EXPECT@,$EXPECT,;t t
12766 s,@RUNTEST@,$RUNTEST,;t t
12767 s,@AR@,$AR,;t t
12768 s,@AS@,$AS,;t t
12769 s,@DLLTOOL@,$DLLTOOL,;t t
12770 s,@LD@,$LD,;t t
12771 s,@LIPO@,$LIPO,;t t
12772 s,@NM@,$NM,;t t
12773 s,@RANLIB@,$RANLIB,;t t
12774 s,@STRIP@,$STRIP,;t t
12775 s,@WINDRES@,$WINDRES,;t t
12776 s,@WINDMC@,$WINDMC,;t t
12777 s,@OBJCOPY@,$OBJCOPY,;t t
12778 s,@OBJDUMP@,$OBJDUMP,;t t
12779 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12780 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12781 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12782 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12783 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12784 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12785 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12786 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12787 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12788 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12789 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12790 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12791 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12792 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12793 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12794 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12795 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
12796 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12797 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12798 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12799 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12800 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12801 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12802 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12803 s,@MAINT@,$MAINT,;t t
12804 s,@stage1_cflags@,$stage1_cflags,;t t
12805 s,@stage1_checking@,$stage1_checking,;t t
12806 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12807 s,@datarootdir@,$datarootdir,;t t
12808 s,@docdir@,$docdir,;t t
12809 s,@pdfdir@,$pdfdir,;t t
12810 s,@htmldir@,$htmldir,;t t
12811 s,@LIBOBJS@,$LIBOBJS,;t t
12812 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12813 /@serialization_dependencies@/r $serialization_dependencies
12814 s,@serialization_dependencies@,,;t t
12815 /@host_makefile_frag@/r $host_makefile_frag
12816 s,@host_makefile_frag@,,;t t
12817 /@target_makefile_frag@/r $target_makefile_frag
12818 s,@target_makefile_frag@,,;t t
12819 /@alphaieee_frag@/r $alphaieee_frag
12820 s,@alphaieee_frag@,,;t t
12821 /@ospace_frag@/r $ospace_frag
12822 s,@ospace_frag@,,;t t
12823 CEOF
12825 _ACEOF
12827 cat >>$CONFIG_STATUS <<\_ACEOF
12828 # Split the substitutions into bite-sized pieces for seds with
12829 # small command number limits, like on Digital OSF/1 and HP-UX.
12830 ac_max_sed_lines=48
12831 ac_sed_frag=1 # Number of current file.
12832 ac_beg=1 # First line for current file.
12833 ac_end=$ac_max_sed_lines # Line after last line for current file.
12834 ac_more_lines=:
12835 ac_sed_cmds=
12836 while $ac_more_lines; do
12837 if test $ac_beg -gt 1; then
12838 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12839 else
12840 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12842 if test ! -s $tmp/subs.frag; then
12843 ac_more_lines=false
12844 else
12845 # The purpose of the label and of the branching condition is to
12846 # speed up the sed processing (if there are no `@' at all, there
12847 # is no need to browse any of the substitutions).
12848 # These are the two extra sed commands mentioned above.
12849 (echo ':t
12850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12851 if test -z "$ac_sed_cmds"; then
12852 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12853 else
12854 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12856 ac_sed_frag=`expr $ac_sed_frag + 1`
12857 ac_beg=$ac_end
12858 ac_end=`expr $ac_end + $ac_max_sed_lines`
12860 done
12861 if test -z "$ac_sed_cmds"; then
12862 ac_sed_cmds=cat
12864 fi # test -n "$CONFIG_FILES"
12866 _ACEOF
12867 cat >>$CONFIG_STATUS <<\_ACEOF
12868 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12870 case $ac_file in
12871 - | *:- | *:-:* ) # input from stdin
12872 cat >$tmp/stdin
12873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12877 * ) ac_file_in=$ac_file.in ;;
12878 esac
12880 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12881 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12883 X"$ac_file" : 'X\(//\)[^/]' \| \
12884 X"$ac_file" : 'X\(//\)$' \| \
12885 X"$ac_file" : 'X\(/\)' \| \
12886 . : '\(.\)' 2>/dev/null ||
12887 echo X"$ac_file" |
12888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12890 /^X\(\/\/\)$/{ s//\1/; q; }
12891 /^X\(\/\).*/{ s//\1/; q; }
12892 s/.*/./; q'`
12893 { if $as_mkdir_p; then
12894 mkdir -p "$ac_dir"
12895 else
12896 as_dir="$ac_dir"
12897 as_dirs=
12898 while test ! -d "$as_dir"; do
12899 as_dirs="$as_dir $as_dirs"
12900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12902 X"$as_dir" : 'X\(//\)[^/]' \| \
12903 X"$as_dir" : 'X\(//\)$' \| \
12904 X"$as_dir" : 'X\(/\)' \| \
12905 . : '\(.\)' 2>/dev/null ||
12906 echo X"$as_dir" |
12907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12909 /^X\(\/\/\)$/{ s//\1/; q; }
12910 /^X\(\/\).*/{ s//\1/; q; }
12911 s/.*/./; q'`
12912 done
12913 test ! -n "$as_dirs" || mkdir $as_dirs
12914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12915 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12916 { (exit 1); exit 1; }; }; }
12918 ac_builddir=.
12920 if test "$ac_dir" != .; then
12921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12922 # A "../" for each directory in $ac_dir_suffix.
12923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12924 else
12925 ac_dir_suffix= ac_top_builddir=
12928 case $srcdir in
12929 .) # No --srcdir option. We are building in place.
12930 ac_srcdir=.
12931 if test -z "$ac_top_builddir"; then
12932 ac_top_srcdir=.
12933 else
12934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12935 fi ;;
12936 [\\/]* | ?:[\\/]* ) # Absolute path.
12937 ac_srcdir=$srcdir$ac_dir_suffix;
12938 ac_top_srcdir=$srcdir ;;
12939 *) # Relative path.
12940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12942 esac
12944 # Do not use `cd foo && pwd` to compute absolute paths, because
12945 # the directories may not exist.
12946 case `pwd` in
12947 .) ac_abs_builddir="$ac_dir";;
12949 case "$ac_dir" in
12950 .) ac_abs_builddir=`pwd`;;
12951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12953 esac;;
12954 esac
12955 case $ac_abs_builddir in
12956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12958 case ${ac_top_builddir}. in
12959 .) ac_abs_top_builddir=$ac_abs_builddir;;
12960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12962 esac;;
12963 esac
12964 case $ac_abs_builddir in
12965 .) ac_abs_srcdir=$ac_srcdir;;
12967 case $ac_srcdir in
12968 .) ac_abs_srcdir=$ac_abs_builddir;;
12969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12971 esac;;
12972 esac
12973 case $ac_abs_builddir in
12974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12976 case $ac_top_srcdir in
12977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12980 esac;;
12981 esac
12984 case $INSTALL in
12985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12986 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12987 esac
12989 if test x"$ac_file" != x-; then
12990 { echo "$as_me:$LINENO: creating $ac_file" >&5
12991 echo "$as_me: creating $ac_file" >&6;}
12992 rm -f "$ac_file"
12994 # Let's still pretend it is `configure' which instantiates (i.e., don't
12995 # use $as_me), people would be surprised to read:
12996 # /* config.h. Generated by config.status. */
12997 if test x"$ac_file" = x-; then
12998 configure_input=
12999 else
13000 configure_input="$ac_file. "
13002 configure_input=$configure_input"Generated from `echo $ac_file_in |
13003 sed 's,.*/,,'` by configure."
13005 # First look for the input files in the build tree, otherwise in the
13006 # src tree.
13007 ac_file_inputs=`IFS=:
13008 for f in $ac_file_in; do
13009 case $f in
13010 -) echo $tmp/stdin ;;
13011 [\\/$]*)
13012 # Absolute (can't be DOS-style, as IFS=:)
13013 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13014 echo "$as_me: error: cannot find input file: $f" >&2;}
13015 { (exit 1); exit 1; }; }
13016 echo "$f";;
13017 *) # Relative
13018 if test -f "$f"; then
13019 # Build tree
13020 echo "$f"
13021 elif test -f "$srcdir/$f"; then
13022 # Source tree
13023 echo "$srcdir/$f"
13024 else
13025 # /dev/null tree
13026 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13027 echo "$as_me: error: cannot find input file: $f" >&2;}
13028 { (exit 1); exit 1; }; }
13029 fi;;
13030 esac
13031 done` || { (exit 1); exit 1; }
13032 _ACEOF
13033 cat >>$CONFIG_STATUS <<_ACEOF
13034 sed "$ac_vpsub
13035 $extrasub
13036 _ACEOF
13037 cat >>$CONFIG_STATUS <<\_ACEOF
13039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13040 s,@configure_input@,$configure_input,;t t
13041 s,@srcdir@,$ac_srcdir,;t t
13042 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13043 s,@top_srcdir@,$ac_top_srcdir,;t t
13044 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13045 s,@builddir@,$ac_builddir,;t t
13046 s,@abs_builddir@,$ac_abs_builddir,;t t
13047 s,@top_builddir@,$ac_top_builddir,;t t
13048 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13049 s,@INSTALL@,$ac_INSTALL,;t t
13050 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13051 rm -f $tmp/stdin
13052 if test x"$ac_file" != x-; then
13053 mv $tmp/out $ac_file
13054 else
13055 cat $tmp/out
13056 rm -f $tmp/out
13059 done
13060 _ACEOF
13062 cat >>$CONFIG_STATUS <<\_ACEOF
13064 { (exit 0); exit 0; }
13065 _ACEOF
13066 chmod +x $CONFIG_STATUS
13067 ac_clean_files=$ac_clean_files_save
13070 # configure is writing to config.log, and then calls config.status.
13071 # config.status does its own redirection, appending to config.log.
13072 # Unfortunately, on DOS this fails, as config.log is still kept open
13073 # by configure, so config.status won't be able to write to it; its
13074 # output is simply discarded. So we exec the FD to /dev/null,
13075 # effectively closing config.log, so it can be properly (re)opened and
13076 # appended to by config.status. When coming back to configure, we
13077 # need to make the FD available again.
13078 if test "$no_create" != yes; then
13079 ac_cs_success=:
13080 ac_config_status_args=
13081 test "$silent" = yes &&
13082 ac_config_status_args="$ac_config_status_args --quiet"
13083 exec 5>/dev/null
13084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13085 exec 5>>config.log
13086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13087 # would make configure fail if this is the last instruction.
13088 $ac_cs_success || { (exit 1); exit 1; }