Move changelog entry to the right file.
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
155
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 '
166 N
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; }; }
177
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
184}
185
186
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
275ac_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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277ac_pwd=`pwd`
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
883_ACEOF
884
885 cat <<_ACEOF
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
940 --enable-stage1-languages[=all] choose additional languages to build during
941 stage1. Mostly useful for compiler development.
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
947 sub-packages for the host, target or build
948 machine, or all sub-packages
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
972 --with-ppl=PATH Specify prefix directory for the installed PPL package
973 Equivalent to --with-ppl-include=PATH/include
974 plus --with-ppl-lib=PATH/lib
975 --with-ppl-include=PATH Specify directory for installed PPL include files
976 --with-ppl-lib=PATH Specify the directory for the installed PPL library
977 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
978 Equivalent to --with-cloog-include=PATH/include
979 plus --with-cloog-lib=PATH/lib
980 --with-cloog-include=PATH Specify directory for installed CLooG include files
981 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
982 --with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package
983 --with-build-sysroot=SYSROOT
984 use sysroot as the system root during the build
985 --with-debug-prefix-map='A=B C=D ...'
986 map A to B, C to D ... in debug information
987 --with-build-time-tools=PATH
988 use given path to find target tools during the build
989 --with-datarootdir use datarootdir as the data root directory.
990 --with-docdir install documentation in this directory.
991 --with-pdfdir install pdf in this directory.
992 --with-htmldir install html in this directory.
993
994Some influential environment variables:
995 CC C compiler command
996 CFLAGS C compiler flags
997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
998 nonstandard directory <lib dir>
999 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1000 headers in a nonstandard directory <include dir>
1001 CXX C++ compiler command
1002 CXXFLAGS C++ compiler flags
1003 AR AR for the host
1004 AS AS for the host
1005 DLLTOOL DLLTOOL for the host
1006 LD LD for the host
1007 LIPO LIPO for the host
1008 NM NM for the host
1009 RANLIB RANLIB for the host
1010 STRIP STRIP for the host
1011 WINDRES WINDRES for the host
1012 WINDMC WINDMC for the host
1013 OBJCOPY OBJCOPY for the host
1014 OBJDUMP OBJDUMP for the host
1015 CC_FOR_TARGET
1016 CC for the target
1017 CXX_FOR_TARGET
1018 CXX for the target
1019 GCC_FOR_TARGET
1020 GCC for the target
1021 GCJ_FOR_TARGET
1022 GCJ for the target
1023 GFORTRAN_FOR_TARGET
1024 GFORTRAN for the target
1025 AR_FOR_TARGET
1026 AR for the target
1027 AS_FOR_TARGET
1028 AS for the target
1029 DLLTOOL_FOR_TARGET
1030 DLLTOOL for the target
1031 LD_FOR_TARGET
1032 LD for the target
1033 LIPO_FOR_TARGET
1034 LIPO for the target
1035 NM_FOR_TARGET
1036 NM for the target
1037 OBJDUMP_FOR_TARGET
1038 OBJDUMP for the target
1039 RANLIB_FOR_TARGET
1040 RANLIB for the target
1041 STRIP_FOR_TARGET
1042 STRIP for the target
1043 WINDRES_FOR_TARGET
1044 WINDRES for the target
1045 WINDMC_FOR_TARGET
1046 WINDMC for the target
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083esac
1084
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
1123
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
1139 cd $ac_popdir
1140 done
1141fi
1142
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
1146
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
1157
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
1196
1197} >&5
1198
1199cat >&5 <<_ACEOF
1200
1201
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
1205
1206_ACEOF
1207
1208
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502progname=$0
1503# if PWD already has a value, it is probably wrong.
1504if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1505
1506# Export original configure arguments for use by sub-configures.
1507# Quote arguments with shell meta charatcers.
1508TOPLEVEL_CONFIGURE_ARGUMENTS=
1509set -- "$progname" "$@"
1510for ac_arg
1511do
1512 case "$ac_arg" in
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1514 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1515 # if the argument is of the form -foo=baz, quote the baz part only
1516 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1517 *) ;;
1518 esac
1519 # Add the quoted argument to the list.
1520 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1521done
1522if test "$silent" = yes; then
1523 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1524fi
1525# Remove the initial space we just introduced and, as these will be
1526# expanded by make, quote '$'.
1527TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1528
1529
1530# Find the build, host, and target systems.
1531ac_aux_dir=
1532for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533 if test -f $ac_dir/install-sh; then
1534 ac_aux_dir=$ac_dir
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1536 break
1537 elif test -f $ac_dir/install.sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1540 break
1541 elif test -f $ac_dir/shtool; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1544 break
1545 fi
1546done
1547if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
1551fi
1552ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556# Make sure we can run config.sub.
1557$ac_config_sub sun4 >/dev/null 2>&1 ||
1558 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1559echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562echo "$as_me:$LINENO: checking build system type" >&5
1563echo $ECHO_N "checking build system type... $ECHO_C" >&6
1564if test "${ac_cv_build+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 ac_cv_build_alias=$build_alias
1568test -z "$ac_cv_build_alias" &&
1569 ac_cv_build_alias=`$ac_config_guess`
1570test -z "$ac_cv_build_alias" &&
1571 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1572echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1573 { (exit 1); exit 1; }; }
1574ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1576echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579fi
1580echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1581echo "${ECHO_T}$ac_cv_build" >&6
1582build=$ac_cv_build
1583build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588 case ${build_alias} in
1589 "") build_noncanonical=${build} ;;
1590 *) build_noncanonical=${build_alias} ;;
1591esac
1592
1593
1594
1595 case ${host_alias} in
1596 "") host_noncanonical=${build_noncanonical} ;;
1597 *) host_noncanonical=${host_alias} ;;
1598esac
1599
1600
1601
1602 case ${target_alias} in
1603 "") target_noncanonical=${host_noncanonical} ;;
1604 *) target_noncanonical=${target_alias} ;;
1605esac
1606
1607
1608
1609
1610test "$host_noncanonical" = "$target_noncanonical" &&
1611 test "$program_prefix$program_suffix$program_transform_name" = \
1612 NONENONEs,x,x, &&
1613 program_transform_name=s,y,y,
1614
1615echo "$as_me:$LINENO: checking host system type" >&5
1616echo $ECHO_N "checking host system type... $ECHO_C" >&6
1617if test "${ac_cv_host+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619else
1620 ac_cv_host_alias=$host_alias
1621test -z "$ac_cv_host_alias" &&
1622 ac_cv_host_alias=$ac_cv_build_alias
1623ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1625echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1627
1628fi
1629echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1630echo "${ECHO_T}$ac_cv_host" >&6
1631host=$ac_cv_host
1632host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637echo "$as_me:$LINENO: checking target system type" >&5
1638echo $ECHO_N "checking target system type... $ECHO_C" >&6
1639if test "${ac_cv_target+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 ac_cv_target_alias=$target_alias
1643test "x$ac_cv_target_alias" = "x" &&
1644 ac_cv_target_alias=$ac_cv_host_alias
1645ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1647echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1649
1650fi
1651echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1652echo "${ECHO_T}$ac_cv_target" >&6
1653target=$ac_cv_target
1654target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659# The aliases save the names the user supplied, while $host etc.
1660# will get canonicalized.
1661test -n "$target_alias" &&
1662 test "$program_prefix$program_suffix$program_transform_name" = \
1663 NONENONEs,x,x, &&
1664 program_prefix=${target_alias}-
1665test "$program_prefix" != NONE &&
1666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1667# Use a double $ so make ignores it.
1668test "$program_suffix" != NONE &&
1669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1670# Double any \ or $. echo might interpret backslashes.
1671# By default was `s,x,x', remove it if useless.
1672cat <<\_ACEOF >conftest.sed
1673s/[\\$]/&&/g;s/;s,x,x,$//
1674_ACEOF
1675program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676rm conftest.sed
1677
1678
1679
1680# Get 'install' or 'install-sh' and its variants.
1681# Find a good install program. We prefer a C program (faster),
1682# so one script is as good as another. But avoid the broken or
1683# incompatible versions:
1684# SysV /etc/install, /usr/sbin/install
1685# SunOS /usr/etc/install
1686# IRIX /sbin/install
1687# AIX /bin/install
1688# AmigaOS /C/install, which installs bootblocks on floppy discs
1689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1690# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1692# OS/2's system install, which has a completely different semantic
1693# ./install, which can be erroneously created by make from ./install.sh.
1694# Reject install programs that cannot install multiple files.
1695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1697if test -z "$INSTALL"; then
1698if test "${ac_cv_path_install+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 # Account for people who put trailing slashes in PATH elements.
1707case $as_dir/ in
1708 ./ | .// | /cC/* | \
1709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1711 /usr/ucb/* ) ;;
1712 *)
1713 # OSF1 and SCO ODT 3.0 have their own names for install.
1714 # Don't use installbsd from OSF since it installs stuff as root
1715 # by default.
1716 for ac_prog in ginstall scoinst install; do
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1719 if test $ac_prog = install &&
1720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1721 # AIX install. It has an incompatible calling convention.
1722 :
1723 elif test $ac_prog = install &&
1724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1725 # program-specific install script used by HP pwplus--don't use.
1726 :
1727 else
1728 rm -rf conftest.one conftest.two conftest.dir
1729 echo one > conftest.one
1730 echo two > conftest.two
1731 mkdir conftest.dir
1732 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1733 test -s conftest.one && test -s conftest.two &&
1734 test -s conftest.dir/conftest.one &&
1735 test -s conftest.dir/conftest.two
1736 then
1737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1738 break 3
1739 fi
1740 fi
1741 fi
1742 done
1743 done
1744 ;;
1745esac
1746done
1747
1748rm -rf conftest.one conftest.two conftest.dir
1749
1750fi
1751 if test "${ac_cv_path_install+set}" = set; then
1752 INSTALL=$ac_cv_path_install
1753 else
1754 # As a last resort, use the slow shell script. Don't cache a
1755 # value for INSTALL within a source directory, because that will
1756 # break other packages using the cache if that directory is
1757 # removed, or if the value is a relative name.
1758 INSTALL=$ac_install_sh
1759 fi
1760fi
1761echo "$as_me:$LINENO: result: $INSTALL" >&5
1762echo "${ECHO_T}$INSTALL" >&6
1763
1764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765# It thinks the first close brace ends the variable substitution.
1766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772echo "$as_me:$LINENO: checking whether ln works" >&5
1773echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1774if test "${acx_cv_prog_LN+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 rm -f conftestdata_t
1778echo >conftestdata_f
1779if ln conftestdata_f conftestdata_t 2>/dev/null
1780then
1781 acx_cv_prog_LN=ln
1782else
1783 acx_cv_prog_LN=no
1784fi
1785rm -f conftestdata_f conftestdata_t
1786
1787fi
1788if test $acx_cv_prog_LN = no; then
1789 LN="cp"
1790 echo "$as_me:$LINENO: result: no, using $LN" >&5
1791echo "${ECHO_T}no, using $LN" >&6
1792else
1793 LN="$acx_cv_prog_LN"
1794 echo "$as_me:$LINENO: result: yes" >&5
1795echo "${ECHO_T}yes" >&6
1796fi
1797
1798echo "$as_me:$LINENO: checking whether ln -s works" >&5
1799echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1800LN_S=$as_ln_s
1801if test "$LN_S" = "ln -s"; then
1802 echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
1804else
1805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1806echo "${ECHO_T}no, using $LN_S" >&6
1807fi
1808
1809
1810### we might need to use some other shell than /bin/sh for running subshells
1811### If we are on Windows, search for the shell. This will permit people
1812### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1813### without also having to set CONFIG_SHELL. This code will work when
1814### using bash, which sets OSTYPE.
1815case "${OSTYPE}" in
1816*win32*)
1817 if test x${CONFIG_SHELL} = x ; then
1818 if test ! -f /bin/sh ; then
1819 if test x${SHELL} != x && test -f ${SHELL} ; then
1820 CONFIG_SHELL=${SHELL}
1821 export CONFIG_SHELL
1822 else
1823 for prog in sh sh.exe bash bash.exe; do
1824 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1825 for dir in $PATH; do
1826 test -z "$dir" && dir=.
1827 if test -f $dir/$prog; then
1828 CONFIG_SHELL=$dir/$prog
1829 export CONFIG_SHELL
1830 break
1831 fi
1832 done
1833 IFS="$save_ifs"
1834 test -n "${CONFIG_SHELL}" && break
1835 done
1836 fi
1837 fi
1838 fi
1839 ;;
1840esac
1841
1842config_shell=${CONFIG_SHELL-/bin/sh}
1843
1844moveifchange=${srcdir}/move-if-change
1845
1846srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1847
1848# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1849# a relative path.
1850if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1851 INSTALL="${srcpwd}/install-sh -c"
1852fi
1853
1854# Set srcdir to "." if that's what it is.
1855# This is important for multilib support.
1856pwd=`${PWDCMD-pwd}`
1857if test "${pwd}" = "${srcpwd}" ; then
1858 srcdir=.
1859fi
1860
1861topsrcdir=$srcpwd
1862
1863extra_host_args=
1864
1865### To add a new directory to the tree, first choose whether it is a target
1866### or a host dependent tool. Then put it into the appropriate list
1867### (library or tools, host or target), doing a dependency sort.
1868
1869# Subdirs will be configured in the order listed in build_configdirs,
1870# configdirs, or target_configdirs; see the serialization section below.
1871
1872# Dependency sorting is only needed when *configuration* must be done in
1873# a particular order. In all cases a dependency should be specified in
1874# the Makefile, whether or not it's implicitly specified here.
1875
1876# Double entries in build_configdirs, configdirs, or target_configdirs may
1877# cause circular dependencies and break everything horribly.
1878
1879# these library is used by various programs built for the build
1880# environment
1881#
1882build_libs="build-libiberty"
1883
1884# these tools are built for the build environment
1885build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1886
1887# these libraries are used by various programs built for the host environment
1888#
1889host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
1890
1891# these tools are built for the host environment
1892# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1893# know that we are building the simulator.
1894# binutils, gas and ld appear in that order because it makes sense to run
1895# "make check" in that particular order.
1896# If --enable-gold is used, "gold" will replace "ld".
1897host_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"
1898
1899# libgcj represents the runtime libraries only used by gcj.
1900libgcj="target-libffi \
1901 target-zlib \
1902 target-qthreads \
1903 target-libjava"
1904
1905# these libraries are built for the target environment, and are built after
1906# the host libraries and the host tools (which may be a cross compiler)
1907#
1908target_libraries="target-libgcc \
1909 target-libiberty \
1910 target-libgloss \
1911 target-newlib \
1912 target-libgomp \
1913 target-libstdc++-v3 \
1914 target-libmudflap \
1915 target-libssp \
1916 target-libgfortran \
1917 target-boehm-gc \
1918 ${libgcj} \
1919 target-libobjc \
1920 target-libada"
1921
1922# these tools are built using the target libraries, and are intended to
1923# run only in the target environment
1924#
1925# note: any program that *uses* libraries that are in the "target_libraries"
1926# list belongs in this list. those programs are also very likely
1927# candidates for the "native_only" list which follows
1928#
1929target_tools="target-examples target-groff target-gperf target-rda"
1930
1931################################################################################
1932
1933## All tools belong in one of the four categories, and are assigned above
1934## We assign ${configdirs} this way to remove all embedded newlines. This
1935## is important because configure will choke if they ever get through.
1936## ${configdirs} is directories we build using the host tools.
1937## ${target_configdirs} is directories we build using the target tools.
1938configdirs=`echo ${host_libs} ${host_tools}`
1939target_configdirs=`echo ${target_libraries} ${target_tools}`
1940build_configdirs=`echo ${build_libs} ${build_tools}`
1941
1942
1943
1944################################################################################
1945
1946srcname="gnu development package"
1947
1948# This gets set non-empty for some net releases of packages.
1949appdirs=""
1950
1951# Define is_cross_compiler to save on calls to 'test'.
1952is_cross_compiler=
1953if test x"${host}" = x"${target}" ; then
1954 is_cross_compiler=no
1955else
1956 is_cross_compiler=yes
1957fi
1958
1959# Find the build and target subdir names.
1960
1961# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1962# have matching libraries, they should use host libraries: Makefile.tpl
1963# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1964# However, they still use the build modules, because the corresponding
1965# host modules (e.g. bison) are only built for the host when bootstrap
1966# finishes. So:
1967# - build_subdir is where we find build modules, and never changes.
1968# - build_libsubdir is where we find build libraries, and can be overridden.
1969
1970# Prefix 'build-' so this never conflicts with target_subdir.
1971build_subdir="build-${build_noncanonical}"
1972
1973# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1974if test "${with_build_libsubdir+set}" = set; then
1975 withval="$with_build_libsubdir"
1976 build_libsubdir="$withval"
1977else
1978 build_libsubdir="$build_subdir"
1979fi;
1980# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1981if ( test $srcdir = . && test -d gcc ) \
1982 || test -d $srcdir/../host-${host_noncanonical}; then
1983 host_subdir="host-${host_noncanonical}"
1984else
1985 host_subdir=.
1986fi
1987# No prefix.
1988target_subdir=${target_noncanonical}
1989
1990
1991# Skipdirs are removed silently.
1992skipdirs=
1993# Noconfigdirs are removed loudly.
1994noconfigdirs=""
1995
1996use_gnu_ld=
1997# Make sure we don't let GNU ld be added if we didn't want it.
1998if test x$with_gnu_ld = xno ; then
1999 use_gnu_ld=no
2000 noconfigdirs="$noconfigdirs ld gold"
2001fi
2002
2003use_gnu_as=
2004# Make sure we don't let GNU as be added if we didn't want it.
2005if test x$with_gnu_as = xno ; then
2006 use_gnu_as=no
2007 noconfigdirs="$noconfigdirs gas"
2008fi
2009
2010# some tools are so dependent upon X11 that if we're not building with X,
2011# it's not even worth trying to configure, much less build, that tool.
2012
2013case ${with_x} in
2014 yes | "") ;; # the default value for this tree is that X11 is available
2015 no)
2016 skipdirs="${skipdirs} tk itcl libgui"
2017 # We won't be able to build gdbtk without X.
2018 enable_gdbtk=no
2019 ;;
2020 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2021esac
2022
2023# Some tools are only suitable for building in a "native" situation.
2024# Remove these if host!=target.
2025native_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"
2026
2027# Similarly, some are only suitable for cross toolchains.
2028# Remove these if host=target.
2029cross_only="target-libgloss target-newlib target-opcodes"
2030
2031case $is_cross_compiler in
2032 no) skipdirs="${skipdirs} ${cross_only}" ;;
2033 yes) skipdirs="${skipdirs} ${native_only}" ;;
2034esac
2035
2036# If both --with-headers and --with-libs are specified, default to
2037# --without-newlib.
2038if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2039 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2040 if test x"${with_newlib}" = x ; then
2041 with_newlib=no
2042 fi
2043fi
2044
2045# Recognize --with-newlib/--without-newlib.
2046case ${with_newlib} in
2047 no) skipdirs="${skipdirs} target-newlib" ;;
2048 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2049esac
2050
2051# Handle --enable-gold.
2052
2053# Check whether --enable-gold or --disable-gold was given.
2054if test "${enable_gold+set}" = set; then
2055 enableval="$enable_gold"
2056 ENABLE_GOLD=$enableval
2057else
2058 ENABLE_GOLD=no
2059fi;
2060if test "${ENABLE_GOLD}" = "yes"; then
2061 # Check for ELF target.
2062 is_elf=no
2063 case "${target}" in
2064 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2065 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2066 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2067 case "${target}" in
2068 *-*-linux*aout* | *-*-linux*oldld*)
2069 ;;
2070 *)
2071 is_elf=yes
2072 ;;
2073 esac
2074 esac
2075
2076 if test "$is_elf" = "yes"; then
2077 # Check for target supported by gold.
2078 case "${target}" in
2079 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
2080 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2081 ;;
2082 esac
2083 fi
2084fi
2085
2086# Configure extra directories which are host specific
2087
2088case "${host}" in
2089 *-cygwin*)
2090 configdirs="$configdirs libtermcap" ;;
2091esac
2092
2093# A target can indicate whether a language isn't supported for some reason.
2094# Only spaces may be used in this macro; not newlines or tabs.
2095unsupported_languages=
2096
2097# Remove more programs from consideration, based on the host or
2098# target this usually means that a port of the program doesn't
2099# exist yet.
2100
2101case "${host}" in
2102 hppa*64*-*-*)
2103 noconfigdirs="$noconfigdirs byacc"
2104 ;;
2105 i[3456789]86-*-vsta)
2106 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2107 ;;
2108 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2109 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2110 ;;
2111 x86_64-*-mingw*)
2112 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2113 ;;
2114 i[3456789]86-*-mingw32*)
2115 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2116 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2117 ;;
2118 i[3456789]86-*-beos*)
2119 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2120 ;;
2121 *-*-cygwin*)
2122 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2123 ;;
2124 *-*-netbsd*)
2125 noconfigdirs="$noconfigdirs rcs"
2126 ;;
2127 ppc*-*-pe)
2128 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2129 ;;
2130 powerpc-*-beos*)
2131 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2132 ;;
2133esac
2134
2135
2136# Check whether --enable-libada or --disable-libada was given.
2137if test "${enable_libada+set}" = set; then
2138 enableval="$enable_libada"
2139 ENABLE_LIBADA=$enableval
2140else
2141 ENABLE_LIBADA=yes
2142fi;
2143if test "${ENABLE_LIBADA}" != "yes" ; then
2144 noconfigdirs="$noconfigdirs gnattools"
2145fi
2146
2147# Check whether --enable-libssp or --disable-libssp was given.
2148if test "${enable_libssp+set}" = set; then
2149 enableval="$enable_libssp"
2150 ENABLE_LIBSSP=$enableval
2151else
2152 ENABLE_LIBSSP=yes
2153fi;
2154
2155# Save it here so that, even in case of --enable-libgcj, if the Java
2156# front-end isn't enabled, we still get libgcj disabled.
2157libgcj_saved=$libgcj
2158case $enable_libgcj in
2159yes)
2160 # If we reset it here, it won't get added to noconfigdirs in the
2161 # target-specific build rules, so it will be forcibly enabled
2162 # (unless the Java language itself isn't enabled).
2163 libgcj=
2164 ;;
2165no)
2166 # Make sure we get it printed in the list of not supported target libs.
2167 noconfigdirs="$noconfigdirs ${libgcj}"
2168 ;;
2169esac
2170
2171
2172# Disable libmudflap on some systems.
2173if test x$enable_libmudflap = x ; then
2174 case "${target}" in
2175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2176 # Enable libmudflap by default in GNU and friends.
2177 ;;
2178 *-*-freebsd*)
2179 # Enable libmudflap by default in FreeBSD.
2180 ;;
2181 *)
2182 # Disable it by default everywhere else.
2183 noconfigdirs="$noconfigdirs target-libmudflap"
2184 ;;
2185 esac
2186fi
2187
2188# Disable libgomp on non POSIX hosted systems.
2189if test x$enable_libgomp = x ; then
2190 # Enable libgomp by default on hosted POSIX systems.
2191 case "${target}" in
2192 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2193 ;;
2194 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2195 ;;
2196 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2197 ;;
2198 *-*-darwin* | *-*-aix*)
2199 ;;
2200 *)
2201 noconfigdirs="$noconfigdirs target-libgomp"
2202 ;;
2203 esac
2204fi
2205
2206# Default libgloss CPU subdirectory.
2207libgloss_dir="$target_cpu"
2208
2209case "${target}" in
2210 *-*-chorusos)
2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2212 ;;
2213 powerpc-*-darwin* | x86_64-*-darwin[912]*)
2214 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2215 noconfigdirs="$noconfigdirs sim target-rda"
2216 ;;
2217 i[3456789]86-*-darwin*)
2218 noconfigdirs="$noconfigdirs ld gas gprof"
2219 noconfigdirs="$noconfigdirs sim target-rda"
2220 ;;
2221 *-*-darwin*)
2222 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2223 noconfigdirs="$noconfigdirs sim target-rda"
2224 noconfigdirs="$noconfigdirs ${libgcj}"
2225 ;;
2226 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2227 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2228 ;;
2229 *-*-freebsd*)
2230 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2231 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2232 && test -f /usr/local/include/gmp.h; then
2233 with_gmp=/usr/local
2234 fi
2235
2236 # Skip some stuff that's unsupported on some FreeBSD configurations.
2237 case "${target}" in
2238 i*86-*-*) ;;
2239 alpha*-*-*) ;;
2240 *)
2241 noconfigdirs="$noconfigdirs ${libgcj}"
2242 ;;
2243 esac
2244 ;;
2245 *-*-kaos*)
2246 # Remove unsupported stuff on all kaOS configurations.
2247 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2248 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2249 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2250 noconfigdirs="$noconfigdirs target-libgloss"
2251 ;;
2252 *-*-netbsd*)
2253 # Skip some stuff on all NetBSD configurations.
2254 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2255
2256 # Skip some stuff that's unsupported on some NetBSD configurations.
2257 case "${target}" in
2258 i*86-*-netbsdelf*) ;;
2259 arm*-*-netbsdelf*) ;;
2260 *)
2261 noconfigdirs="$noconfigdirs ${libgcj}"
2262 ;;
2263 esac
2264 ;;
2265 *-*-netware*)
2266 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2267 ;;
2268 *-*-rtems*)
2269 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2270 ;;
2271 # The tpf target doesn't support gdb yet.
2272 *-*-tpf*)
2273 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2274 ;;
2275 *-*-uclinux*)
2276 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2277 ;;
2278 *-*-vxworks*)
2279 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2280 ;;
2281 alpha*-dec-osf*)
2282 # ld works, but does not support shared libraries.
2283 # newlib is not 64 bit ready. I'm not sure about fileutils.
2284 # gas doesn't generate exception information.
2285 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2286 ;;
2287 alpha*-*-*vms*)
2288 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2289 ;;
2290 alpha*-*-linux*)
2291 # newlib is not 64 bit ready
2292 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2293 ;;
2294 alpha*-*-*)
2295 # newlib is not 64 bit ready
2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2297 ;;
2298 am33_2.0-*-linux*)
2299 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2300 ;;
2301 sh-*-linux*)
2302 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2303 ;;
2304 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2305 noconfigdirs="$noconfigdirs ${libgcj}"
2306 noconfigdirs="$noconfigdirs target-examples"
2307 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2308 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2309 noconfigdirs="$noconfigdirs expect dejagnu"
2310 # the C++ libraries don't build on top of CE's C libraries
2311 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2312 noconfigdirs="$noconfigdirs target-newlib"
2313 case "${host}" in
2314 *-*-cygwin*) ;; # keep gdb and readline
2315 *) noconfigdirs="$noconfigdirs gdb readline"
2316 ;;
2317 esac
2318 libgloss_dir=wince
2319 ;;
2320 arc-*-*)
2321 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2322 ;;
2323 arm-semi-aof )
2324 ;;
2325 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2326 noconfigdirs="$noconfigdirs ${libgcj}"
2327 libgloss_dir=arm
2328 ;;
2329 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2330 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2331 libgloss_dir=arm
2332 ;;
2333 arm*-*-linux-gnueabi)
2334 noconfigdirs="$noconfigdirs target-qthreads"
2335 case ${with_newlib} in
2336 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2337 esac
2338 libgloss_dir=arm
2339 ;;
2340 arm*-*-symbianelf*)
2341 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2342 libgloss_dir=arm
2343 ;;
2344 arm-*-pe*)
2345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2346 ;;
2347 thumb-*-coff)
2348 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2349 ;;
2350 thumb-*-elf)
2351 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2352 ;;
2353 thumb-*-pe)
2354 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2355 ;;
2356 arm-*-riscix*)
2357 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2358 ;;
2359 avr-*-*)
2360 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2361 ;;
2362 bfin-*-*)
2363 noconfigdirs="$noconfigdirs gdb"
2364 if test x${is_cross_compiler} != xno ; then
2365 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2366 fi
2367 ;;
2368 c4x-*-* | tic4x-*-*)
2369 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2370 ;;
2371 c54x*-*-* | tic54x-*-*)
2372 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2373 ;;
2374 cr16-*-*)
2375 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2376 ;;
2377 cris-*-* | crisv32-*-*)
2378 unsupported_languages="$unsupported_languages java"
2379 case "${target}" in
2380 *-*-aout)
2381 unsupported_languages="$unsupported_languages fortran"
2382 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2383 *-*-elf)
2384 noconfigdirs="$noconfigdirs target-boehm-gc";;
2385 *-*-linux*)
2386 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2387 *)
2388 unsupported_languages="$unsupported_languages fortran"
2389 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2390 esac
2391 libgloss_dir=cris
2392 ;;
2393 crx-*-*)
2394 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2395 ;;
2396 d10v-*-*)
2397 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2398 ;;
2399 d30v-*-*)
2400 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2401 ;;
2402 ep9312-*-elf | ep9312-*-coff)
2403 libgloss_dir=arm
2404 ;;
2405 fr30-*-elf*)
2406 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2407 ;;
2408 frv-*-*)
2409 noconfigdirs="$noconfigdirs ${libgcj}"
2410 ;;
2411 h8300*-*-*)
2412 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2413 ;;
2414 h8500-*-*)
2415 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2416 ;;
2417 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2418 ;;
2419 hppa*64*-*-linux* | parisc*64*-*-linux*)
2420 # In this case, it's because the hppa64-linux target is for
2421 # the kernel only at this point and has no libc, and thus no
2422 # headers, crt*.o, etc., all of which are needed by these.
2423 noconfigdirs="$noconfigdirs target-zlib"
2424 ;;
2425 parisc*-*-linux* | hppa*-*-linux*)
2426 ;;
2427 hppa*-*-*elf* | \
2428 hppa*-*-lites* | \
2429 hppa*-*-openbsd* | \
2430 hppa*64*-*-*)
2431 noconfigdirs="$noconfigdirs ${libgcj}"
2432 ;;
2433 hppa*-hp-hpux11*)
2434 noconfigdirs="$noconfigdirs ld shellutils"
2435 ;;
2436 hppa*-*-pro*)
2437 libgloss_dir=pa
2438 ;;
2439 hppa*-*-*)
2440 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2441 # build on HP-UX 10.20.
2442 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2443 ;;
2444 i960-*-*)
2445 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2446 ;;
2447 ia64*-*-elf*)
2448 # No gdb support yet.
2449 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2450 ;;
2451 ia64*-**-hpux*)
2452 # No gdb or ld support yet.
2453 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2454 ;;
2455 ia64*-*-*vms*)
2456 # No gdb or ld support yet.
2457 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2458 ;;
2459 i370-*-opened*)
2460 ;;
2461 i[3456789]86-*-coff | i[3456789]86-*-elf)
2462 noconfigdirs="$noconfigdirs ${libgcj}"
2463 libgloss_dir=i386
2464 ;;
2465 i[3456789]86-*-linux*)
2466 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2467 # not build java stuff by default.
2468 case "${target}" in
2469 *-*-*libc1*)
2470 noconfigdirs="$noconfigdirs ${libgcj}";;
2471 esac
2472
2473 # This section makes it possible to build newlib natively on linux.
2474 # If we are using a cross compiler then don't configure newlib.
2475 if test x${is_cross_compiler} != xno ; then
2476 noconfigdirs="$noconfigdirs target-newlib"
2477 fi
2478 noconfigdirs="$noconfigdirs target-libgloss"
2479 # If we are not using a cross compiler, do configure newlib.
2480 # Note however, that newlib will only be configured in this situation
2481 # if the --with-newlib option has been given, because otherwise
2482 # 'target-newlib' will appear in skipdirs.
2483 ;;
2484 i[3456789]86-*-mingw32*)
2485 target_configdirs="$target_configdirs target-winsup"
2486 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2487 ;;
2488 x86_64-*-mingw*)
2489 target_configdirs="$target_configdirs target-winsup"
2490 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2491 ;;
2492 *-*-cygwin*)
2493 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2494 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2495 # always build newlib if winsup directory is present.
2496 if test -d "$srcdir/winsup/cygwin"; then
2497 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2498 elif test -d "$srcdir/newlib"; then
2499 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2500 fi
2501 ;;
2502 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2503 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2504 ;;
2505 i[3456789]86-*-pe)
2506 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2507 ;;
2508 i[3456789]86-*-sco3.2v5*)
2509 # The linker does not yet know about weak symbols in COFF,
2510 # and is not configured to handle mixed ELF and COFF.
2511 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2512 ;;
2513 i[3456789]86-*-sco*)
2514 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2515 ;;
2516 i[3456789]86-*-solaris2*)
2517 noconfigdirs="$noconfigdirs target-libgloss"
2518 ;;
2519 i[3456789]86-*-sysv4*)
2520 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2521 ;;
2522 i[3456789]86-*-beos*)
2523 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2524 ;;
2525 i[3456789]86-*-rdos*)
2526 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2527 ;;
2528 m32r-*-*)
2529 noconfigdirs="$noconfigdirs ${libgcj}"
2530 ;;
2531 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2532 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2533 libgloss_dir=m68hc11
2534 ;;
2535 m68k-*-elf*)
2536 noconfigdirs="$noconfigdirs ${libgcj}"
2537 ;;
2538 m68k-*-coff*)
2539 noconfigdirs="$noconfigdirs ${libgcj}"
2540 ;;
2541 m68*-*-* | fido-*-*)
2542 libgloss_dir=m68k
2543 ;;
2544 mcore-*-pe*)
2545 # The EPOC C++ environment does not support exceptions or rtti,
2546 # and so building libstdc++-v3 tends not to always work.
2547 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2548 ;;
2549 mmix-*-*)
2550 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2551 unsupported_languages="$unsupported_languages fortran java"
2552 ;;
2553 mn10200-*-*)
2554 noconfigdirs="$noconfigdirs ${libgcj}"
2555 ;;
2556 mn10300-*-*)
2557 noconfigdirs="$noconfigdirs ${libgcj}"
2558 ;;
2559 mt-*-*)
2560 noconfigdirs="$noconfigdirs sim"
2561 ;;
2562 powerpc-*-aix*)
2563 # copied from rs6000-*-* entry
2564 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2565 ;;
2566 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2567 target_configdirs="$target_configdirs target-winsup"
2568 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2569 # always build newlib.
2570 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2571 ;;
2572 # This is temporary until we can link against shared libraries
2573 powerpcle-*-solaris*)
2574 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2575 libgloss_dir=rs6000
2576 ;;
2577 powerpc-*-beos*)
2578 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2579 ;;
2580 powerpc-*-eabi)
2581 noconfigdirs="$noconfigdirs ${libgcj}"
2582 libgloss_dir=rs6000
2583 ;;
2584 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2585 libgloss_dir=rs6000
2586 ;;
2587 rs6000-*-lynxos*)
2588 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2589 ;;
2590 rs6000-*-aix*)
2591 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2592 ;;
2593 rs6000-*-*)
2594 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2595 ;;
2596 m68k-apollo-*)
2597 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2598 ;;
2599 mips*-sde-elf*)
2600 skipdirs="$skipdirs target-libiberty"
2601 noconfigdirs="$noconfigdirs ${libgcj}"
2602 if test x$with_newlib = xyes; then
2603 noconfigdirs="$noconfigdirs gprof"
2604 fi
2605 libgloss_dir=mips
2606 ;;
2607 mips*-*-irix5*)
2608 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2609 ;;
2610 mips*-*-irix6*)
2611 # Linking libjava exceeds command-line length limits on at least
2612 # IRIX 6.2, but not on IRIX 6.5.
2613 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2614 # <oldham@codesourcery.com>
2615 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2616 ;;
2617 mips*-*-bsd*)
2618 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2619 ;;
2620 mips*-*-linux*)
2621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2622 ;;
2623 mips*-*-*)
2624 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2625 libgloss_dir=mips
2626 ;;
2627 romp-*-*)
2628 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2629 ;;
2630 sh-*-* | sh64-*-*)
2631 case "${host}" in
2632 i[3456789]86-*-vsta) ;; # don't add gprof back in
2633 i[3456789]86-*-go32*) ;; # don't add gprof back in
2634 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2635 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2636 esac
2637 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2638 ;;
2639 sparclet-*-aout* | sparc86x-*-*)
2640 libgloss_dir=sparc
2641 ;;
2642 sparc-*-elf*)
2643 noconfigdirs="$noconfigdirs ${libgcj}"
2644 ;;
2645 sparc64-*-elf*)
2646 noconfigdirs="$noconfigdirs ${libgcj}"
2647 libgloss_dir=sparc
2648 ;;
2649 sparclite-*-*)
2650 noconfigdirs="$noconfigdirs ${libgcj}"
2651 libgloss_dir=sparc
2652 ;;
2653 sparc-*-sunos4*)
2654 noconfigdirs="$noconfigdirs ${libgcj}"
2655 if test x${is_cross_compiler} != xno ; then
2656 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2657 else
2658 use_gnu_ld=no
2659 fi
2660 ;;
2661 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2662 noconfigdirs="$noconfigdirs ${libgcj}"
2663 ;;
2664 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2665 ;;
2666 v810-*-*)
2667 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2668 ;;
2669 v850-*-*)
2670 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2671 ;;
2672 v850e-*-*)
2673 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2674 ;;
2675 v850ea-*-*)
2676 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2677 ;;
2678 vax-*-vms)
2679 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2680 ;;
2681 vax-*-*)
2682 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2683 ;;
2684 xtensa*-*-*)
2685 noconfigdirs="$noconfigdirs ${libgcj}"
2686 ;;
2687 ip2k-*-*)
2688 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2689 ;;
2690 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2692 ;;
2693 *-*-lynxos*)
2694 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2695 ;;
2696 *-*-*)
2697 noconfigdirs="$noconfigdirs ${libgcj}"
2698 ;;
2699esac
2700
2701# If we aren't building newlib, then don't build libgloss, since libgloss
2702# depends upon some newlib header files.
2703case "${noconfigdirs}" in
2704 *target-libgloss*) ;;
2705 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2706esac
2707
2708# Work in distributions that contain no compiler tools, like Autoconf.
2709tentative_cc=""
2710host_makefile_frag=/dev/null
2711if test -d ${srcdir}/config ; then
2712case "${host}" in
2713 m68k-hp-hpux*)
2714 # Avoid "too much defining" errors from HPUX compiler.
2715 tentative_cc="cc -Wp,-H256000"
2716 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2717 # If it's HP/UX ar, this should be harmless.
2718 RANLIB="ar ts"
2719 ;;
2720 m68k-apollo-sysv*)
2721 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2722 ;;
2723 m68k-apollo-bsd*)
2724 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2725 # chokes on bfd, the compiler won't let you assign integers to enums, and
2726 # other problems. Defining CC to gcc is a questionable way to say "don't use
2727 # the apollo compiler" (the preferred version of GCC could be called cc,
2728 # or whatever), but I'm not sure leaving CC as cc is any better...
2729 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2730 # Used to have BISON=yacc.
2731 tentative_cc=gcc
2732 ;;
2733 m88k-dg-dgux*)
2734 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2735 ;;
2736 m88k-harris-cxux*)
2737 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2738 tentative_cc="cc -Xa"
2739 host_makefile_frag="config/mh-cxux"
2740 ;;
2741 m88k-motorola-sysv*)
2742 ;;
2743 mips*-dec-ultrix*)
2744 tentative_cc="cc -Wf,-XNg1000"
2745 host_makefile_frag="config/mh-decstation"
2746 ;;
2747 mips*-nec-sysv4*)
2748 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2749 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2750 host_makefile_frag="config/mh-necv4"
2751 ;;
2752 mips*-sgi-irix4*)
2753 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2754 # environment. Also bump switch table size so that cp-parse will
2755 # compile. Bump string length limit so linker builds.
2756 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2757 ;;
2758 mips*-*-sysv4*)
2759 host_makefile_frag="config/mh-sysv4"
2760 ;;
2761 mips*-*-sysv*)
2762 # This is for a MIPS running RISC/os 4.52C.
2763
2764 # This is needed for GDB, but needs to be in the top-level make because
2765 # if a library is compiled with the bsd headers and gets linked with the
2766 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2767 # a different size).
2768 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2769 # known except to select the sysv environment. Could we use /proc instead?
2770 # These "sysv environments" and "bsd environments" often end up being a pain.
2771 #
2772 # This is not part of CFLAGS because perhaps not all C compilers have this
2773 # option.
2774 tentative_cc="cc -systype sysv"
2775 ;;
2776 i370-ibm-opened*)
2777 tentative_cc="c89"
2778 ;;
2779 i[3456789]86-*-sysv5*)
2780 host_makefile_frag="config/mh-sysv5"
2781 ;;
2782 i[3456789]86-*-dgux*)
2783 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2784 host_makefile_frag="config/mh-dgux386"
2785 ;;
2786 i[3456789]86-ncr-sysv4.3*)
2787 # The MetaWare compiler will generate a copyright message unless you
2788 # turn it off by adding the -Hnocopyr flag.
2789 tentative_cc="cc -Hnocopyr"
2790 ;;
2791 i[3456789]86-ncr-sysv4*)
2792 # for an NCR 3000 (i486/SVR4) system.
2793 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2794 # This compiler not only emits obnoxious copyright messages every time
2795 # you run it, but it chokes and dies on a whole bunch of GNU source
2796 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2797 tentative_cc="/usr/ccs/ATT/cc"
2798 host_makefile_frag="config/mh-ncr3000"
2799 ;;
2800 i[3456789]86-*-sco3.2v5*)
2801 ;;
2802 i[3456789]86-*-sco*)
2803 # The native C compiler botches some simple uses of const. Unfortunately,
2804 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2805 tentative_cc="cc -Dconst="
2806 host_makefile_frag="config/mh-sco"
2807 ;;
2808 i[3456789]86-*-udk*)
2809 host_makefile_frag="config/mh-sysv5"
2810 ;;
2811 i[3456789]86-*-solaris2*)
2812 host_makefile_frag="config/mh-sysv4"
2813 ;;
2814 i[3456789]86-*-msdosdjgpp*)
2815 host_makefile_frag="config/mh-djgpp"
2816 ;;
2817 *-cygwin*)
2818
2819echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2820echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2821echo a >cygwin-cat-check
2822if test `cat cygwin-cat-check` == a ; then
2823 rm cygwin-cat-check
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
2826else
2827 rm cygwin-cat-check
2828 echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2831 Please either mount the build directory in binary mode or run the following
2832 commands before running any configure script:
2833set -o igncr
2834export SHELLOPTS
2835 " >&5
2836echo "$as_me: error: The cat command does not ignore carriage return characters.
2837 Please either mount the build directory in binary mode or run the following
2838 commands before running any configure script:
2839set -o igncr
2840export SHELLOPTS
2841 " >&2;}
2842 { (exit 1); exit 1; }; }
2843fi
2844
2845 host_makefile_frag="config/mh-cygwin"
2846 ;;
2847 *-mingw*)
2848 host_makefile_frag="config/mh-mingw"
2849 ;;
2850 *-interix*)
2851 host_makefile_frag="config/mh-interix"
2852 ;;
2853 vax-*-ultrix2*)
2854 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2855 tentative_cc=gcc
2856 ;;
2857 *-*-solaris2*)
2858 host_makefile_frag="config/mh-solaris"
2859 ;;
2860 m68k-sun-sunos*)
2861 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2862 # without overflowing the jump tables (-J says to use a 32 bit table)
2863 tentative_cc="cc -J"
2864 ;;
2865 hppa*-hp-hpux10*)
2866 tentative_cc="cc -Wp,-H256000"
2867 host_makefile_frag="config/mh-pa-hpux10"
2868 ;;
2869 hppa*-hp-hpux* | hppa*-*-hiux*)
2870 tentative_cc="cc -Wp,-H256000"
2871 host_makefile_frag="config/mh-pa"
2872 ;;
2873 hppa*-*)
2874 host_makefile_frag="config/mh-pa"
2875 ;;
2876 *-hp-hpux* | *-*-hiux*)
2877 tentative_cc="cc -Wp,-H256000"
2878 ;;
2879 rs6000-*-lynxos*)
2880 # /bin/cc is less than useful for our purposes. Always use GCC
2881 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2882 host_makefile_frag="config/mh-lynxrs6k"
2883 ;;
2884 powerpc-*-darwin*)
2885 host_makefile_frag="config/mh-ppc-darwin"
2886 ;;
2887 powerpc-*-aix*)
2888 host_makefile_frag="config/mh-ppc-aix"
2889 ;;
2890 rs6000-*-aix*)
2891 host_makefile_frag="config/mh-ppc-aix"
2892 ;;
2893 *-*-lynxos*)
2894 # /bin/cc is less than useful for our purposes. Always use GCC
2895 tentative_cc="/bin/gcc"
2896 ;;
2897 *-*-sysv4*)
2898 host_makefile_frag="config/mh-sysv4"
2899 ;;
2900 # This is placed last to prevent interfering with the cases above.
2901 i[3456789]86-*-*)
2902 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2903 host_makefile_frag="config/mh-x86omitfp"
2904 ;;
2905esac
2906fi
2907
2908# If we aren't going to be using gcc, see if we can extract a definition
2909# of CC from the fragment.
2910# Actually, use the 'pre-extracted' version above.
2911if test -z "${CC}" && test "${build}" = "${host}" ; then
2912 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2913 found=
2914 for dir in $PATH; do
2915 test -z "$dir" && dir=.
2916 if test -f $dir/gcc; then
2917 found=yes
2918 break
2919 fi
2920 done
2921 IFS="$save_ifs"
2922 if test -z "${found}" && test -n "${tentative_cc}" ; then
2923 CC=$tentative_cc
2924 fi
2925fi
2926
2927if test "${build}" != "${host}" ; then
2928 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2929 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2930 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2931 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2932 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2933 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2934 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2935 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2936 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2937 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2938 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2939 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2940else
2941 AR_FOR_BUILD="\$(AR)"
2942 AS_FOR_BUILD="\$(AS)"
2943 CC_FOR_BUILD="\$(CC)"
2944 CXX_FOR_BUILD="\$(CXX)"
2945 GCJ_FOR_BUILD="\$(GCJ)"
2946 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2947 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2948 LD_FOR_BUILD="\$(LD)"
2949 NM_FOR_BUILD="\$(NM)"
2950 RANLIB_FOR_BUILD="\$(RANLIB)"
2951 WINDRES_FOR_BUILD="\$(WINDRES)"
2952 WINDMC_FOR_BUILD="\$(WINDMC)"
2953fi
2954
2955ac_ext=c
2956ac_cpp='$CPP $CPPFLAGS'
2957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963echo "$as_me:$LINENO: checking for $ac_word" >&5
2964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965if test "${ac_cv_prog_CC+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970else
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982done
2983done
2984
2985fi
2986fi
2987CC=$ac_cv_prog_CC
2988if test -n "$CC"; then
2989 echo "$as_me:$LINENO: result: $CC" >&5
2990echo "${ECHO_T}$CC" >&6
2991else
2992 echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994fi
2995
2996fi
2997if test -z "$ac_cv_prog_CC"; then
2998 ac_ct_CC=$CC
2999 # Extract the first word of "gcc", so it can be a program name with args.
3000set dummy gcc; ac_word=$2
3001echo "$as_me:$LINENO: checking for $ac_word" >&5
3002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3003if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_CC="gcc"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020done
3021done
3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028echo "${ECHO_T}$ac_ct_CC" >&6
3029else
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032fi
3033
3034 CC=$ac_ct_CC
3035else
3036 CC="$ac_cv_prog_CC"
3037fi
3038
3039if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}cc; ac_word=$2
3043echo "$as_me:$LINENO: checking for $ac_word" >&5
3044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3045if test "${ac_cv_prog_CC+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_CC="${ac_tool_prefix}cc"
3059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062done
3063done
3064
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 echo "$as_me:$LINENO: result: $CC" >&5
3070echo "${ECHO_T}$CC" >&6
3071else
3072 echo "$as_me:$LINENO: result: no" >&5
3073echo "${ECHO_T}no" >&6
3074fi
3075
3076fi
3077if test -z "$ac_cv_prog_CC"; then
3078 ac_ct_CC=$CC
3079 # Extract the first word of "cc", so it can be a program name with args.
3080set dummy cc; ac_word=$2
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_CC="cc"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
3103fi
3104fi
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
3109else
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112fi
3113
3114 CC=$ac_ct_CC
3115else
3116 CC="$ac_cv_prog_CC"
3117fi
3118
3119fi
3120if test -z "$CC"; then
3121 # Extract the first word of "cc", so it can be a program name with args.
3122set dummy cc; ac_word=$2
3123echo "$as_me:$LINENO: checking for $ac_word" >&5
3124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125if test "${ac_cv_prog_CC+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131 ac_prog_rejected=no
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140 ac_prog_rejected=yes
3141 continue
3142 fi
3143 ac_cv_prog_CC="cc"
3144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147done
3148done
3149
3150if test $ac_prog_rejected = yes; then
3151 # We found a bogon in the path, so make sure we never use it.
3152 set dummy $ac_cv_prog_CC
3153 shift
3154 if test $# != 0; then
3155 # We chose a different compiler from the bogus one.
3156 # However, it has the same basename, so the bogon will be chosen
3157 # first if we set CC to just the basename; use the full file name.
3158 shift
3159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 fi
3161fi
3162fi
3163fi
3164CC=$ac_cv_prog_CC
3165if test -n "$CC"; then
3166 echo "$as_me:$LINENO: result: $CC" >&5
3167echo "${ECHO_T}$CC" >&6
3168else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173fi
3174if test -z "$CC"; then
3175 if test -n "$ac_tool_prefix"; then
3176 for ac_prog in cl
3177 do
3178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180echo "$as_me:$LINENO: checking for $ac_word" >&5
3181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3182if test "${ac_cv_prog_CC+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199done
3200done
3201
3202fi
3203fi
3204CC=$ac_cv_prog_CC
3205if test -n "$CC"; then
3206 echo "$as_me:$LINENO: result: $CC" >&5
3207echo "${ECHO_T}$CC" >&6
3208else
3209 echo "$as_me:$LINENO: result: no" >&5
3210echo "${ECHO_T}no" >&6
3211fi
3212
3213 test -n "$CC" && break
3214 done
3215fi
3216if test -z "$CC"; then
3217 ac_ct_CC=$CC
3218 for ac_prog in cl
3219do
3220 # Extract the first word of "$ac_prog", so it can be a program name with args.
3221set dummy $ac_prog; ac_word=$2
3222echo "$as_me:$LINENO: checking for $ac_word" >&5
3223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_ac_ct_CC="$ac_prog"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241done
3242done
3243
3244fi
3245fi
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
3248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3249echo "${ECHO_T}$ac_ct_CC" >&6
3250else
3251 echo "$as_me:$LINENO: result: no" >&5
3252echo "${ECHO_T}no" >&6
3253fi
3254
3255 test -n "$ac_ct_CC" && break
3256done
3257
3258 CC=$ac_ct_CC
3259fi
3260
3261fi
3262
3263
3264test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3265echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267See \`config.log' for more details." >&5
3268echo "$as_me: error: no acceptable C compiler found in \$PATH
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }; }
3271
3272# Provide some information about the compiler.
3273echo "$as_me:$LINENO:" \
3274 "checking for C compiler version" >&5
3275ac_compiler=`set X $ac_compile; echo $2`
3276{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3277 (eval $ac_compiler --version </dev/null >&5) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3282 (eval $ac_compiler -v </dev/null >&5) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3287 (eval $ac_compiler -V </dev/null >&5) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }
3291
3292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h. */
3298
3299int
3300main ()
3301{
3302
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307ac_clean_files_save=$ac_clean_files
3308ac_clean_files="$ac_clean_files a.out a.exe b.out"
3309# Try to create an executable without -o first, disregard a.out.
3310# It will help us diagnose broken compilers, and finding out an intuition
3311# of exeext.
3312echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3313echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3314ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3315if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3316 (eval $ac_link_default) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; then
3320 # Find the output, starting from the most likely. This scheme is
3321# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3322# resort.
3323
3324# Be careful to initialize this variable, since it used to be cached.
3325# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3326ac_cv_exeext=
3327# b.out is created by i960 compilers.
3328for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3329do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3333 ;;
3334 conftest.$ac_ext )
3335 # This is the source file.
3336 ;;
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 # FIXME: I believe we export ac_cv_exeext for Libtool,
3344 # but it would be cool to find out if it's true. Does anybody
3345 # maintain Libtool? --akim.
3346 export ac_cv_exeext
3347 break;;
3348 * )
3349 break;;
3350 esac
3351done
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3357echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3359See \`config.log' for more details." >&5
3360echo "$as_me: error: C compiler cannot create executables
3361See \`config.log' for more details." >&2;}
3362 { (exit 77); exit 77; }; }; }
3363fi
3364
3365ac_exeext=$ac_cv_exeext
3366echo "$as_me:$LINENO: result: $ac_file" >&5
3367echo "${ECHO_T}$ac_file" >&6
3368
3369# Check the compiler produces executables we can run. If not, either
3370# the compiler is broken, or we cross compile.
3371echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3372echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3373# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3374# If not cross compiling, check that we can run a simple program.
3375if test "$cross_compiling" != yes; then
3376 if { ac_try='./$ac_file'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 cross_compiling=no
3383 else
3384 if test "$cross_compiling" = maybe; then
3385 cross_compiling=yes
3386 else
3387 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3388echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3390If you meant to cross compile, use \`--host'.
3391See \`config.log' for more details." >&5
3392echo "$as_me: error: cannot run C compiled programs.
3393If you meant to cross compile, use \`--host'.
3394See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }; }
3396 fi
3397 fi
3398fi
3399echo "$as_me:$LINENO: result: yes" >&5
3400echo "${ECHO_T}yes" >&6
3401
3402rm -f a.out a.exe conftest$ac_cv_exeext b.out
3403ac_clean_files=$ac_clean_files_save
3404# Check the compiler produces executables we can run. If not, either
3405# the compiler is broken, or we cross compile.
3406echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3407echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3408echo "$as_me:$LINENO: result: $cross_compiling" >&5
3409echo "${ECHO_T}$cross_compiling" >&6
3410
3411echo "$as_me:$LINENO: checking for suffix of executables" >&5
3412echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3414 (eval $ac_link) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420# work properly (i.e., refer to `conftest.exe'), while it won't with
3421# `rm'.
3422for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 export ac_cv_exeext
3428 break;;
3429 * ) break;;
3430 esac
3431done
3432else
3433 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3434echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }; }
3440fi
3441
3442rm -f conftest$ac_cv_exeext
3443echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3444echo "${ECHO_T}$ac_cv_exeext" >&6
3445
3446rm -f conftest.$ac_ext
3447EXEEXT=$ac_cv_exeext
3448ac_exeext=$EXEEXT
3449echo "$as_me:$LINENO: checking for suffix of object files" >&5
3450echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3451if test "${ac_cv_objext+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460
3461int
3462main ()
3463{
3464
3465 ;
3466 return 0;
3467}
3468_ACEOF
3469rm -f conftest.o conftest.obj
3470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; then
3475 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3476 case $ac_file in
3477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3478 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 break;;
3480 esac
3481done
3482else
3483 echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3487echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3489See \`config.log' for more details." >&5
3490echo "$as_me: error: cannot compute suffix of object files: cannot compile
3491See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }; }
3493fi
3494
3495rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496fi
3497echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3498echo "${ECHO_T}$ac_cv_objext" >&6
3499OBJEXT=$ac_cv_objext
3500ac_objext=$OBJEXT
3501echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3502echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3503if test "${ac_cv_c_compiler_gnu+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512
3513int
3514main ()
3515{
3516#ifndef __GNUC__
3517 choke me
3518#endif
3519
3520 ;
3521 return 0;
3522}
3523_ACEOF
3524rm -f conftest.$ac_objext
3525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3546 ac_compiler_gnu=yes
3547else
3548 echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551ac_compiler_gnu=no
3552fi
3553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555
3556fi
3557echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3558echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3559GCC=`test $ac_compiler_gnu = yes && echo yes`
3560ac_test_CFLAGS=${CFLAGS+set}
3561ac_save_CFLAGS=$CFLAGS
3562CFLAGS="-g"
3563echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3564echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3565if test "${ac_cv_prog_cc_g+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h. */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h. */
3574
3575int
3576main ()
3577{
3578
3579 ;
3580 return 0;
3581}
3582_ACEOF
3583rm -f conftest.$ac_objext
3584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3585 (eval $ac_compile) 2>conftest.er1
3586 ac_status=$?
3587 grep -v '^ *+' conftest.er1 >conftest.err
3588 rm -f conftest.er1
3589 cat conftest.err >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -z "$ac_c_werror_flag"
3593 || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_prog_cc_g=yes
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610ac_cv_prog_cc_g=no
3611fi
3612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3615echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3616if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS=$ac_save_CFLAGS
3618elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3620 CFLAGS="-g -O2"
3621 else
3622 CFLAGS="-g"
3623 fi
3624else
3625 if test "$GCC" = yes; then
3626 CFLAGS="-O2"
3627 else
3628 CFLAGS=
3629 fi
3630fi
3631echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3632echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3633if test "${ac_cv_prog_cc_stdc+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 ac_cv_prog_cc_stdc=no
3637ac_save_CC=$CC
3638cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
3644#include <stdarg.h>
3645#include <stdio.h>
3646#include <sys/types.h>
3647#include <sys/stat.h>
3648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649struct buf { int x; };
3650FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651static char *e (p, i)
3652 char **p;
3653 int i;
3654{
3655 return p[i];
3656}
3657static char *f (char * (*g) (char **, int), char **p, ...)
3658{
3659 char *s;
3660 va_list v;
3661 va_start (v,p);
3662 s = g (p, va_arg (v,int));
3663 va_end (v);
3664 return s;
3665}
3666
3667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std1 is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std1. */
3674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676int test (int i, double x);
3677struct s1 {int (*f) (int a);};
3678struct s2 {int (*f) (double a);};
3679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680int argc;
3681char **argv;
3682int
3683main ()
3684{
3685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690# Don't try gcc -ansi; that turns off useful extensions and
3691# breaks some systems' header files.
3692# AIX -qlanglvl=ansi
3693# Ultrix and OSF/1 -std1
3694# HP-UX 10.20 and later -Ae
3695# HP-UX older versions -Aa -D_HPUX_SOURCE
3696# SVR4 -Xc -D__EXTENSIONS__
3697for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698do
3699 CC="$ac_save_CC $ac_arg"
3700 rm -f conftest.$ac_objext
3701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_cv_prog_cc_stdc=$ac_arg
3723break
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728fi
3729rm -f conftest.err conftest.$ac_objext
3730done
3731rm -f conftest.$ac_ext conftest.$ac_objext
3732CC=$ac_save_CC
3733
3734fi
3735
3736case "x$ac_cv_prog_cc_stdc" in
3737 x|xno)
3738 echo "$as_me:$LINENO: result: none needed" >&5
3739echo "${ECHO_T}none needed" >&6 ;;
3740 *)
3741 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3742echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3743 CC="$CC $ac_cv_prog_cc_stdc" ;;
3744esac
3745
3746# Some people use a C++ compiler to compile C. Since we use `exit',
3747# in C++ we need to declare it. In case someone uses the same compiler
3748# for both compiling C and C++ we need to have the C++ compiler decide
3749# the declaration of exit, since it's the most demanding environment.
3750cat >conftest.$ac_ext <<_ACEOF
3751#ifndef __cplusplus
3752 choke me
3753#endif
3754_ACEOF
3755rm -f conftest.$ac_objext
3756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 for ac_declaration in \
3778 '' \
3779 'extern "C" void std::exit (int) throw (); using std::exit;' \
3780 'extern "C" void std::exit (int); using std::exit;' \
3781 'extern "C" void exit (int) throw ();' \
3782 'extern "C" void exit (int);' \
3783 'void exit (int);'
3784do
3785 cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h. */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h. */
3791$ac_declaration
3792#include <stdlib.h>
3793int
3794main ()
3795{
3796exit (42);
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext
3802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 :
3824else
3825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828continue
3829fi
3830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831 cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
3837$ac_declaration
3838int
3839main ()
3840{
3841exit (42);
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext
3847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 (eval $ac_compile) 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } &&
3855 { ac_try='test -z "$ac_c_werror_flag"
3856 || test ! -s conftest.err'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 break
3869else
3870 echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873fi
3874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875done
3876rm -f conftest*
3877if test -n "$ac_declaration"; then
3878 echo '#ifdef __cplusplus' >>confdefs.h
3879 echo $ac_declaration >>confdefs.h
3880 echo '#endif' >>confdefs.h
3881fi
3882
3883else
3884 echo "$as_me: failed program was:" >&5
3885sed 's/^/| /' conftest.$ac_ext >&5
3886
3887fi
3888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895ac_ext=cc
3896ac_cpp='$CXXCPP $CPPFLAGS'
3897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3900if test -n "$ac_tool_prefix"; then
3901 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3902 do
3903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_CXX+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910 if test -n "$CXX"; then
3911 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
3926
3927fi
3928fi
3929CXX=$ac_cv_prog_CXX
3930if test -n "$CXX"; then
3931 echo "$as_me:$LINENO: result: $CXX" >&5
3932echo "${ECHO_T}$CXX" >&6
3933else
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
3936fi
3937
3938 test -n "$CXX" && break
3939 done
3940fi
3941if test -z "$CXX"; then
3942 ac_ct_CXX=$CXX
3943 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3944do
3945 # Extract the first word of "$ac_prog", so it can be a program name with args.
3946set dummy $ac_prog; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952 if test -n "$ac_ct_CXX"; then
3953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_CXX="$ac_prog"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967done
3968
3969fi
3970fi
3971ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3972if test -n "$ac_ct_CXX"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3974echo "${ECHO_T}$ac_ct_CXX" >&6
3975else
3976 echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978fi
3979
3980 test -n "$ac_ct_CXX" && break
3981done
3982test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3983
3984 CXX=$ac_ct_CXX
3985fi
3986
3987
3988# Provide some information about the compiler.
3989echo "$as_me:$LINENO:" \
3990 "checking for C++ compiler version" >&5
3991ac_compiler=`set X $ac_compile; echo $2`
3992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3993 (eval $ac_compiler --version </dev/null >&5) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }
3997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3998 (eval $ac_compiler -v </dev/null >&5) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }
4002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4003 (eval $ac_compiler -V </dev/null >&5) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }
4007
4008echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4009echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4010if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 cat >conftest.$ac_ext <<_ACEOF
4014/* confdefs.h. */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
4023#ifndef __GNUC__
4024 choke me
4025#endif
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_cxx_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_compiler_gnu=yes
4054else
4055 echo "$as_me: failed program was:" >&5
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058ac_compiler_gnu=no
4059fi
4060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4062
4063fi
4064echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4065echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4066GXX=`test $ac_compiler_gnu = yes && echo yes`
4067ac_test_CXXFLAGS=${CXXFLAGS+set}
4068ac_save_CXXFLAGS=$CXXFLAGS
4069CXXFLAGS="-g"
4070echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4071echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4072if test "${ac_cv_prog_cxx_g+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081
4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092 (eval $ac_compile) 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try='test -z "$ac_cxx_werror_flag"
4100 || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_prog_cxx_g=yes
4113else
4114 echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117ac_cv_prog_cxx_g=no
4118fi
4119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120fi
4121echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4122echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4123if test "$ac_test_CXXFLAGS" = set; then
4124 CXXFLAGS=$ac_save_CXXFLAGS
4125elif test $ac_cv_prog_cxx_g = yes; then
4126 if test "$GXX" = yes; then
4127 CXXFLAGS="-g -O2"
4128 else
4129 CXXFLAGS="-g"
4130 fi
4131else
4132 if test "$GXX" = yes; then
4133 CXXFLAGS="-O2"
4134 else
4135 CXXFLAGS=
4136 fi
4137fi
4138for ac_declaration in \
4139 '' \
4140 'extern "C" void std::exit (int) throw (); using std::exit;' \
4141 'extern "C" void std::exit (int); using std::exit;' \
4142 'extern "C" void exit (int) throw ();' \
4143 'extern "C" void exit (int);' \
4144 'void exit (int);'
4145do
4146 cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h. */
4152$ac_declaration
4153#include <stdlib.h>
4154int
4155main ()
4156{
4157exit (42);
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext
4163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_cxx_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 :
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189continue
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h. */
4198$ac_declaration
4199int
4200main ()
4201{
4202exit (42);
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207rm -f conftest.$ac_objext
4208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_cxx_werror_flag"
4217 || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 break
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234fi
4235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4236done
4237rm -f conftest*
4238if test -n "$ac_declaration"; then
4239 echo '#ifdef __cplusplus' >>confdefs.h
4240 echo $ac_declaration >>confdefs.h
4241 echo '#endif' >>confdefs.h
4242fi
4243
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251# We must set the default linker to the linker used by gcc for the correct
4252# operation of libtool. If LD is not defined and we are using gcc, try to
4253# set the LD default to the ld used by gcc.
4254if test -z "$LD"; then
4255 if test "$GCC" = yes; then
4256 case $build in
4257 *-*-mingw*)
4258 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4259 *)
4260 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4261 esac
4262 case $gcc_prog_ld in
4263 # Accept absolute paths.
4264 [\\/]* | [A-Za-z]:[\\/]*)
4265 LD="$gcc_prog_ld" ;;
4266 esac
4267 fi
4268fi
4269
4270
4271
4272
4273if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4275set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278if test "${ac_cv_prog_GNATBIND+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281 if test -n "$GNATBIND"; then
4282 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295done
4296done
4297
4298fi
4299fi
4300GNATBIND=$ac_cv_prog_GNATBIND
4301if test -n "$GNATBIND"; then
4302 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4303echo "${ECHO_T}$GNATBIND" >&6
4304else
4305 echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
4307fi
4308
4309fi
4310if test -z "$ac_cv_prog_GNATBIND"; then
4311 ac_ct_GNATBIND=$GNATBIND
4312 # Extract the first word of "gnatbind", so it can be a program name with args.
4313set dummy gnatbind; ac_word=$2
4314echo "$as_me:$LINENO: checking for $ac_word" >&5
4315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319 if test -n "$ac_ct_GNATBIND"; then
4320 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4332 fi
4333done
4334done
4335
4336 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4337fi
4338fi
4339ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4340if test -n "$ac_ct_GNATBIND"; then
4341 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4342echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4343else
4344 echo "$as_me:$LINENO: result: no" >&5
4345echo "${ECHO_T}no" >&6
4346fi
4347
4348 GNATBIND=$ac_ct_GNATBIND
4349else
4350 GNATBIND="$ac_cv_prog_GNATBIND"
4351fi
4352
4353if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4355set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4356echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361 if test -n "$GNATMAKE"; then
4362 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376done
4377
4378fi
4379fi
4380GNATMAKE=$ac_cv_prog_GNATMAKE
4381if test -n "$GNATMAKE"; then
4382 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4383echo "${ECHO_T}$GNATMAKE" >&6
4384else
4385 echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
4387fi
4388
4389fi
4390if test -z "$ac_cv_prog_GNATMAKE"; then
4391 ac_ct_GNATMAKE=$GNATMAKE
4392 # Extract the first word of "gnatmake", so it can be a program name with args.
4393set dummy gnatmake; ac_word=$2
4394echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399 if test -n "$ac_ct_GNATMAKE"; then
4400 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414done
4415
4416 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4417fi
4418fi
4419ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4420if test -n "$ac_ct_GNATMAKE"; then
4421 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4422echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4423else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426fi
4427
4428 GNATMAKE=$ac_ct_GNATMAKE
4429else
4430 GNATMAKE="$ac_cv_prog_GNATMAKE"
4431fi
4432
4433echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4434echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4435if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 cat >conftest.adb <<EOF
4439procedure conftest is begin null; end conftest;
4440EOF
4441acx_cv_cc_gcc_supports_ada=no
4442# There is a bug in old released versions of GCC which causes the
4443# driver to exit successfully when the appropriate language module
4444# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4445# Therefore we must check for the error message as well as an
4446# unsuccessful exit.
4447# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4448# given a .adb file, but produce no object file. So we must check
4449# if an object file was really produced to guard against this.
4450errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4451if test x"$errors" = x && test -f conftest.$ac_objext; then
4452 acx_cv_cc_gcc_supports_ada=yes
4453fi
4454rm -f conftest.*
4455fi
4456echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4457echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4458
4459if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4460 have_gnat=yes
4461else
4462 have_gnat=no
4463fi
4464
4465echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4466echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4467if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470 echo abfoo >t1
4471 echo cdfoo >t2
4472 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4473 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4474 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4475 :
4476 else
4477 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4478 fi
4479 fi
4480 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4481 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4482 :
4483 else
4484 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4485 fi
4486 fi
4487 rm t1 t2
4488
4489fi
4490echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4491echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4492do_compare="$gcc_cv_prog_cmp_skip"
4493
4494
4495
4496# Check for GMP and MPFR
4497gmplibs="-lmpfr -lgmp"
4498gmpinc=
4499have_gmp=no
4500
4501# Specify a location for mpfr
4502# check for this first so it ends up on the link line before gmp.
4503
4504# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4505if test "${with_mpfr_dir+set}" = set; then
4506 withval="$with_mpfr_dir"
4507 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4508Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4509echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4510Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4511 { (exit 1); exit 1; }; }
4512fi;
4513
4514
4515# Check whether --with-mpfr or --without-mpfr was given.
4516if test "${with_mpfr+set}" = set; then
4517 withval="$with_mpfr"
4518
4519fi;
4520
4521# Check whether --with-mpfr_include or --without-mpfr_include was given.
4522if test "${with_mpfr_include+set}" = set; then
4523 withval="$with_mpfr_include"
4524
4525fi;
4526
4527# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4528if test "${with_mpfr_lib+set}" = set; then
4529 withval="$with_mpfr_lib"
4530
4531fi;
4532
4533if test "x$with_mpfr" != x; then
4534 gmplibs="-L$with_mpfr/lib $gmplibs"
4535 gmpinc="-I$with_mpfr/include"
4536fi
4537if test "x$with_mpfr_include" != x; then
4538 gmpinc="-I$with_mpfr_include"
4539fi
4540if test "x$with_mpfr_lib" != x; then
4541 gmplibs="-L$with_mpfr_lib $gmplibs"
4542fi
4543if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4544 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4545 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4546 # Do not test the mpfr version. Assume that it is sufficient, since
4547 # it is in the source tree, and the library has not been built yet
4548 # but it would be included on the link line in the version check below
4549 # hence making the test fail.
4550 have_gmp=yes
4551fi
4552
4553# Specify a location for gmp
4554
4555# Check whether --with-gmp-dir or --without-gmp-dir was given.
4556if test "${with_gmp_dir+set}" = set; then
4557 withval="$with_gmp_dir"
4558 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4559Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4560echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4561Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563fi;
4564
4565
4566# Check whether --with-gmp or --without-gmp was given.
4567if test "${with_gmp+set}" = set; then
4568 withval="$with_gmp"
4569
4570fi;
4571
4572# Check whether --with-gmp_include or --without-gmp_include was given.
4573if test "${with_gmp_include+set}" = set; then
4574 withval="$with_gmp_include"
4575
4576fi;
4577
4578# Check whether --with-gmp_lib or --without-gmp_lib was given.
4579if test "${with_gmp_lib+set}" = set; then
4580 withval="$with_gmp_lib"
4581
4582fi;
4583
4584
4585if test "x$with_gmp" != x; then
4586 gmplibs="-L$with_gmp/lib $gmplibs"
4587 gmpinc="-I$with_gmp/include $gmpinc"
4588fi
4589if test "x$with_gmp_include" != x; then
4590 gmpinc="-I$with_gmp_include $gmpinc"
4591fi
4592if test "x$with_gmp_lib" != x; then
4593 gmplibs="-L$with_gmp_lib $gmplibs"
4594fi
4595if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4596 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4597 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4598 # Do not test the gmp version. Assume that it is sufficient, since
4599 # it is in the source tree, and the library has not been built yet
4600 # but it would be included on the link line in the version check below
4601 # hence making the test fail.
4602 have_gmp=yes
4603fi
4604
4605if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4606 have_gmp=yes
4607 saved_CFLAGS="$CFLAGS"
4608 CFLAGS="$CFLAGS $gmpinc"
4609 # Check GMP actually works
4610 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4611echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4612
4613cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
4619#include "gmp.h"
4620int
4621main ()
4622{
4623
4624 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4625 choke me
4626 #endif
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
4632rm -f conftest.$ac_objext
4633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
4641 { ac_try='test -z "$ac_c_werror_flag"
4642 || test ! -s conftest.err'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 echo "$as_me:$LINENO: result: yes" >&5
4655echo "${ECHO_T}yes" >&6
4656else
4657 echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6; have_gmp=no
4662fi
4663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664
4665 if test x"$have_gmp" = xyes; then
4666 saved_LIBS="$LIBS"
4667 LIBS="$LIBS $gmplibs"
4668 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4669echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4670 cat >conftest.$ac_ext <<_ACEOF
4671/* confdefs.h. */
4672_ACEOF
4673cat confdefs.h >>conftest.$ac_ext
4674cat >>conftest.$ac_ext <<_ACEOF
4675/* end confdefs.h. */
4676#include <gmp.h>
4677 #include <mpfr.h>
4678int
4679main ()
4680{
4681
4682 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4683 choke me
4684 #endif
4685 mpfr_t n;
4686 mpfr_t x;
4687 int t;
4688 mpfr_init (n);
4689 mpfr_init (x);
4690 mpfr_atan2 (n, n, x, GMP_RNDN);
4691 mpfr_erfc (n, x, GMP_RNDN);
4692 mpfr_subnormalize (x, t, GMP_RNDN);
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698rm -f conftest.$ac_objext conftest$ac_exeext
4699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726#include <gmp.h>
4727 #include <mpfr.h>
4728int
4729main ()
4730{
4731
4732 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4733 choke me
4734 #endif
4735 mpfr_t n; mpfr_init(n);
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext conftest$ac_exeext
4742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try='test -z "$ac_c_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest$ac_exeext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4763 echo "$as_me:$LINENO: result: yes" >&5
4764echo "${ECHO_T}yes" >&6
4765else
4766 echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4770echo "${ECHO_T}buggy but acceptable" >&6
4771fi
4772rm -f conftest.err conftest.$ac_objext \
4773 conftest$ac_exeext conftest.$ac_ext
4774else
4775 echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; have_gmp=no
4780fi
4781rm -f conftest.err conftest.$ac_objext \
4782 conftest$ac_exeext conftest.$ac_ext
4783 LIBS="$saved_LIBS"
4784 fi
4785 CFLAGS="$saved_CFLAGS"
4786
4787 if test x$have_gmp != xyes; then
4788 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
4789Try the --with-gmp and/or --with-mpfr options to specify their locations.
4790Copies of these libraries' source code can be found at their respective
4791hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4792See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4793If you obtained GMP and/or MPFR from a vendor distribution package, make
4794sure that you have installed both the libraries and the header files.
4795They may be located in separate packages." >&5
4796echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
4797Try the --with-gmp and/or --with-mpfr options to specify their locations.
4798Copies of these libraries' source code can be found at their respective
4799hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4800See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4801If you obtained GMP and/or MPFR from a vendor distribution package, make
4802sure that you have installed both the libraries and the header files.
4803They may be located in separate packages." >&2;}
4804 { (exit 1); exit 1; }; }
4805 fi
4806fi
4807
4808# Flags needed for both GMP and/or MPFR
4809
4810
4811
4812
4813# Check for PPL
4814ppl_major_version=0
4815ppl_minor_version=10
4816ppllibs=" -lppl_c -lppl -lgmpxx "
4817pplinc=
4818
4819
4820# Check whether --with-ppl or --without-ppl was given.
4821if test "${with_ppl+set}" = set; then
4822 withval="$with_ppl"
4823
4824fi;
4825
4826# Check whether --with-ppl_include or --without-ppl_include was given.
4827if test "${with_ppl_include+set}" = set; then
4828 withval="$with_ppl_include"
4829
4830fi;
4831
4832# Check whether --with-ppl_lib or --without-ppl_lib was given.
4833if test "${with_ppl_lib+set}" = set; then
4834 withval="$with_ppl_lib"
4835
4836fi;
4837
4838if test "x$with_ppl" != x; then
4839 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4840 pplinc="-I$with_ppl/include $pplinc"
4841 LIBS="$ppllibs $LIBS"
4842fi
4843if test "x$with_ppl_include" != x; then
4844 pplinc="-I$with_ppl_include $pplinc"
4845fi
4846if test "x$with_ppl_lib" != x; then
4847 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
4848 LIBS="$ppllibs $LIBS"
4849fi
4850if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4851 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
4852 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4853 LIBS="$ppllibs $LIBS"
4854fi
4855
4856# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4857if test "${enable_ppl_version_check+set}" = set; then
4858 enableval="$enable_ppl_version_check"
4859 ENABLE_PPL_CHECK=$enableval
4860else
4861 ENABLE_PPL_CHECK=yes
4862fi;
4863
4864if test "${ENABLE_PPL_CHECK}" = "yes"; then
4865 saved_CFLAGS="$CFLAGS"
4866 CFLAGS="$CFLAGS $pplinc $gmpinc"
4867 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4868echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include "ppl_c.h"
4876int
4877main ()
4878{
4879
4880 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4881 choke me
4882 #endif
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912else
4913 echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
4918fi
4919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 CFLAGS="$saved_CFLAGS"
4921fi
4922
4923# Flags needed for PPL
4924
4925
4926
4927
4928# Check for CLOOG
4929clooglibs=" -lcloog "
4930clooginc=" -DCLOOG_PPL_BACKEND "
4931
4932
4933# Check whether --with-cloog or --without-cloog was given.
4934if test "${with_cloog+set}" = set; then
4935 withval="$with_cloog"
4936
4937fi;
4938
4939# Check whether --with-cloog_include or --without-cloog_include was given.
4940if test "${with_cloog_include+set}" = set; then
4941 withval="$with_cloog_include"
4942
4943fi;
4944
4945# Check whether --with-cloog_lib or --without-cloog_lib was given.
4946if test "${with_cloog_lib+set}" = set; then
4947 withval="$with_cloog_lib"
4948
4949fi;
4950
4951# Check whether --with-cloog-polylib or --without-cloog-polylib was given.
4952if test "${with_cloog_polylib+set}" = set; then
4953 withval="$with_cloog_polylib"
4954
4955fi;
4956
4957if test "x$with_cloog" != x; then
4958 clooglibs="-L$with_cloog/lib -lcloog"
4959 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4960 LIBS="$clooglibs $LIBS"
4961fi
4962if test "x$with_cloog_polylib" != x; then
4963 clooglibs="-L$with_cloog/lib -lcloog"
4964 clooginc="-I$with_cloog/include "
4965 LIBS="$clooglibs $LIBS"
4966fi
4967if test "x$with_cloog_include" != x; then
4968 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4969fi
4970if test "x$with_cloog_lib" != x; then
4971 clooglibs="-L$with_cloog_lib -lcloog"
4972 LIBS="$clooglibs $LIBS"
4973fi
4974if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4975 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4976 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4977 LIBS="$clooglibs $LIBS"
4978fi
4979
4980# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
4981if test "${enable_cloog_version_check+set}" = set; then
4982 enableval="$enable_cloog_version_check"
4983 ENABLE_CLOOG_CHECK=$enableval
4984else
4985 ENABLE_CLOOG_CHECK=yes
4986fi;
4987
4988if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
4989 saved_CFLAGS="$CFLAGS"
4990 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
4991 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
4992echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
4993 cat >conftest.$ac_ext <<_ACEOF
4994/* confdefs.h. */
4995_ACEOF
4996cat confdefs.h >>conftest.$ac_ext
4997cat >>conftest.$ac_ext <<_ACEOF
4998/* end confdefs.h. */
4999#include "cloog/cloog.h"
5000int
5001main ()
5002{
5003
5004 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5005 choke me
5006 #endif
5007
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
5013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014 (eval $ac_compile) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 echo "$as_me:$LINENO: result: yes" >&5
5035echo "${ECHO_T}yes" >&6
5036else
5037 echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5040echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5042fi
5043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 CFLAGS="$saved_CFLAGS"
5045fi
5046
5047# Flags needed for CLOOG
5048
5049
5050
5051
5052# By default, C is the only stage 1 language.
5053stage1_languages=,c,
5054
5055# Figure out what language subdirectories are present.
5056# Look if the user specified --enable-languages="..."; if not, use
5057# the environment variable $LANGUAGES if defined. $LANGUAGES might
5058# go away some day.
5059# NB: embedded tabs in this IF block -- do not untabify
5060if test -d ${srcdir}/gcc; then
5061 if test x"${enable_languages+set}" != xset; then
5062 if test x"${LANGUAGES+set}" = xset; then
5063 enable_languages="${LANGUAGES}"
5064 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5065 else
5066 enable_languages=all
5067 fi
5068 else
5069 if test x"${enable_languages}" = x ||
5070 test x"${enable_languages}" = xyes;
5071 then
5072 echo configure.in: --enable-languages needs at least one language argument 1>&2
5073 exit 1
5074 fi
5075 fi
5076 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5077
5078 # 'f95' is the old name for the 'fortran' language. We issue a warning
5079 # and make the substitution.
5080 case ,${enable_languages}, in
5081 *,f95,*)
5082 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5083 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5084 ;;
5085 esac
5086
5087 # First scan to see if an enabled language requires some other language.
5088 # We assume that a given config-lang.in will list all the language
5089 # front ends it requires, even if some are required indirectly.
5090 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5091 case ${lang_frag} in
5092 ..) ;;
5093 # The odd quoting in the next line works around
5094 # an apparent bug in bash 1.12 on linux.
5095 ${srcdir}/gcc/[*]/config-lang.in) ;;
5096 *)
5097 # From the config-lang.in, get $language, $lang_requires
5098 language=
5099 lang_requires=
5100 . ${lang_frag}
5101 for other in ${lang_requires} ; do
5102 case ,${enable_languages}, in
5103 *,$other,*) ;;
5104 *,all,*) ;;
5105 *,$language,*)
5106 echo " \`$other' language required by \`$language'; enabling" 1>&2
5107 enable_languages="${enable_languages},${other}"
5108 ;;
5109 esac
5110 done
5111 ;;
5112 esac
5113 done
5114
5115 new_enable_languages=,c,
5116 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5117 potential_languages=,c,
5118
5119 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5120 case ${lang_frag} in
5121 ..) ;;
5122 # The odd quoting in the next line works around
5123 # an apparent bug in bash 1.12 on linux.
5124 ${srcdir}/gcc/[*]/config-lang.in) ;;
5125 *)
5126 # From the config-lang.in, get $language, $target_libs,
5127 # $lang_dirs, $boot_language, and $build_by_default
5128 language=
5129 target_libs=
5130 lang_dirs=
5131 subdir_requires=
5132 boot_language=no
5133 build_by_default=yes
5134 . ${lang_frag}
5135 if test x${language} = x; then
5136 echo "${lang_frag} doesn't set \$language." 1>&2
5137 exit 1
5138 fi
5139
5140 case ,${enable_languages}, in
5141 *,${language},*)
5142 # Language was explicitly selected; include it.
5143 add_this_lang=yes
5144 ;;
5145 *,all,*)
5146 # 'all' was selected, select it if it is a default language
5147 add_this_lang=${build_by_default}
5148 ;;
5149 *)
5150 add_this_lang=no
5151 ;;
5152 esac
5153
5154 # Disable languages that need other directories if these aren't available.
5155 for i in $subdir_requires; do
5156 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5157 case ,${enable_languages}, in
5158 *,${language},*)
5159 # Specifically requested language; tell them.
5160 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5161echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5162 { (exit 1); exit 1; }; }
5163 ;;
5164 *)
5165 # Silently disable.
5166 add_this_lang=unsupported
5167 ;;
5168 esac
5169 done
5170
5171 # Disable Ada if no preexisting GNAT is available.
5172 case ,${enable_languages},:${language}:${have_gnat} in
5173 *,${language},*:ada:no)
5174 # Specifically requested language; tell them.
5175 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5176echo "$as_me: error: GNAT is required to build $language" >&2;}
5177 { (exit 1); exit 1; }; }
5178 ;;
5179 *:ada:no)
5180 # Silently disable.
5181 add_this_lang=unsupported
5182 ;;
5183 esac
5184
5185 # Disable a language that is unsupported by the target.
5186 case " $unsupported_languages " in
5187 *" $language "*)
5188 add_this_lang=unsupported
5189 ;;
5190 esac
5191
5192 case $add_this_lang in
5193 unsupported)
5194 # Remove language-dependent dirs.
5195 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5196 ;;
5197 no)
5198 # Remove language-dependent dirs; still show language as supported.
5199 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5200 potential_languages="${potential_languages}${language},"
5201 ;;
5202 yes)
5203 new_enable_languages="${new_enable_languages}${language},"
5204 potential_languages="${potential_languages}${language},"
5205 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5206 case ${boot_language} in
5207 yes)
5208 # Add to (comma-separated) list of stage 1 languages.
5209 stage1_languages="${stage1_languages}${language},"
5210 ;;
5211 esac
5212 ;;
5213 esac
5214 ;;
5215 esac
5216 done
5217
5218 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5219if test "${enable_stage1_languages+set}" = set; then
5220 enableval="$enable_stage1_languages"
5221 case ,${enable_stage1_languages}, in
5222 ,no,|,,)
5223 # Set it to something that will have no effect in the loop below
5224 enable_stage1_languages=c ;;
5225 ,yes,)
5226 enable_stage1_languages=`echo $new_enable_languages | \
5227 sed -e "s/^,//" -e "s/,$//" ` ;;
5228 *,all,*)
5229 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5230 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5231 esac
5232
5233 # Add "good" languages from enable_stage1_languages to stage1_languages,
5234 # while "bad" languages go in missing_languages. Leave no duplicates.
5235 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5236 case $potential_languages in
5237 *,$i,*)
5238 case $stage1_languages in
5239 *,$i,*) ;;
5240 *) stage1_languages="$stage1_languages$i," ;;
5241 esac ;;
5242 *)
5243 case $missing_languages in
5244 *,$i,*) ;;
5245 *) missing_languages="$missing_languages$i," ;;
5246 esac ;;
5247 esac
5248 done
5249fi;
5250
5251 # Remove leading/trailing commas that were added for simplicity
5252 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5253 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5254 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5255 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5256
5257 if test "x$missing_languages" != x; then
5258 { { echo "$as_me:$LINENO: error:
5259The following requested languages could not be built: ${missing_languages}
5260Supported languages are: ${potential_languages}" >&5
5261echo "$as_me: error:
5262The following requested languages could not be built: ${missing_languages}
5263Supported languages are: ${potential_languages}" >&2;}
5264 { (exit 1); exit 1; }; }
5265 fi
5266 if test "x$new_enable_languages" != "x$enable_languages"; then
5267 echo The following languages will be built: ${new_enable_languages}
5268 enable_languages="$new_enable_languages"
5269 fi
5270
5271
5272 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5273fi
5274
5275# Handle --disable-<component> generically.
5276for dir in $configdirs $build_configdirs $target_configdirs ; do
5277 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5278 varname=`echo $dirname | sed -e s/+/_/g`
5279 if eval test x\${enable_${varname}} "=" xno ; then
5280 noconfigdirs="$noconfigdirs $dir"
5281 fi
5282done
5283
5284# Check for Boehm's garbage collector
5285# Check whether --enable-objc-gc or --disable-objc-gc was given.
5286if test "${enable_objc_gc+set}" = set; then
5287 enableval="$enable_objc_gc"
5288 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5289 *,objc,*:*:yes:*target-boehm-gc*)
5290 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5291echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5292 { (exit 1); exit 1; }; }
5293 ;;
5294esac
5295fi;
5296
5297# Make sure we only build Boehm's garbage collector if required.
5298case ,${enable_languages},:${enable_objc_gc} in
5299 *,objc,*:yes)
5300 # Keep target-boehm-gc if requested for Objective-C.
5301 ;;
5302 *)
5303 # Otherwise remove target-boehm-gc depending on target-libjava.
5304 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5305 noconfigdirs="$noconfigdirs target-boehm-gc"
5306 fi
5307 ;;
5308esac
5309
5310# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5311# $build_configdirs and $target_configdirs.
5312# If we have the source for $noconfigdirs entries, add them to $notsupp.
5313
5314notsupp=""
5315for dir in . $skipdirs $noconfigdirs ; do
5316 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5317 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5318 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5319 if test -r $srcdir/$dirname/configure ; then
5320 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5321 true
5322 else
5323 notsupp="$notsupp $dir"
5324 fi
5325 fi
5326 fi
5327 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5328 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5329 if test -r $srcdir/$dirname/configure ; then
5330 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5331 true
5332 else
5333 notsupp="$notsupp $dir"
5334 fi
5335 fi
5336 fi
5337 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5338 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5339 if test -r $srcdir/$dirname/configure ; then
5340 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5341 true
5342 else
5343 notsupp="$notsupp $dir"
5344 fi
5345 fi
5346 fi
5347done
5348
5349# Sometimes the tools are distributed with libiberty but with no other
5350# libraries. In that case, we don't want to build target-libiberty.
5351# Don't let libgcc imply libiberty either.
5352if test -n "${target_configdirs}" ; then
5353 libgcc=
5354 others=
5355 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5356 if test "$i" = "libgcc"; then
5357 libgcc=target-libgcc
5358 elif test "$i" != "libiberty" ; then
5359 if test -r $srcdir/$i/configure ; then
5360 others=yes;
5361 break;
5362 fi
5363 fi
5364 done
5365 if test -z "${others}" ; then
5366 target_configdirs=$libgcc
5367 fi
5368fi
5369
5370# Quietly strip out all directories which aren't configurable in this tree.
5371# This relies on all configurable subdirectories being autoconfiscated, which
5372# is now the case.
5373build_configdirs_all="$build_configdirs"
5374build_configdirs=
5375for i in ${build_configdirs_all} ; do
5376 j=`echo $i | sed -e s/build-//g`
5377 if test -f ${srcdir}/$j/configure ; then
5378 build_configdirs="${build_configdirs} $i"
5379 fi
5380done
5381
5382configdirs_all="$configdirs"
5383configdirs=
5384for i in ${configdirs_all} ; do
5385 if test -f ${srcdir}/$i/configure ; then
5386 configdirs="${configdirs} $i"
5387 fi
5388done
5389
5390target_configdirs_all="$target_configdirs"
5391target_configdirs=
5392for i in ${target_configdirs_all} ; do
5393 j=`echo $i | sed -e s/target-//g`
5394 if test -f ${srcdir}/$j/configure ; then
5395 target_configdirs="${target_configdirs} $i"
5396 fi
5397done
5398
5399# Produce a warning message for the subdirs we can't configure.
5400# This isn't especially interesting in the Cygnus tree, but in the individual
5401# FSF releases, it's important to let people know when their machine isn't
5402# supported by the one or two programs in a package.
5403
5404if test -n "${notsupp}" && test -z "${norecursion}" ; then
5405 # If $appdirs is non-empty, at least one of those directories must still
5406 # be configured, or we error out. (E.g., if the gas release supports a
5407 # specified target in some subdirs but not the gas subdir, we shouldn't
5408 # pretend that all is well.)
5409 if test -n "$appdirs" ; then
5410 for dir in $appdirs ; do
5411 if test -r $dir/Makefile.in ; then
5412 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5413 appdirs=""
5414 break
5415 fi
5416 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5417 appdirs=""
5418 break
5419 fi
5420 fi
5421 done
5422 if test -n "$appdirs" ; then
5423 echo "*** This configuration is not supported by this package." 1>&2
5424 exit 1
5425 fi
5426 fi
5427 # Okay, some application will build, or we don't care to check. Still
5428 # notify of subdirs not getting built.
5429 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5430 echo " ${notsupp}" 1>&2
5431 echo " (Any other directories should still work fine.)" 1>&2
5432fi
5433
5434case "$host" in
5435 *msdosdjgpp*)
5436 enable_gdbtk=no ;;
5437esac
5438
5439# To find our prefix, in gcc_cv_tool_prefix.
5440
5441# The user is always right.
5442if test "${PATH_SEPARATOR+set}" != set; then
5443 echo "#! /bin/sh" >conf$$.sh
5444 echo "exit 0" >>conf$$.sh
5445 chmod +x conf$$.sh
5446 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5447 PATH_SEPARATOR=';'
5448 else
5449 PATH_SEPARATOR=:
5450 fi
5451 rm -f conf$$.sh
5452fi
5453
5454
5455
5456if test "x$exec_prefix" = xNONE; then
5457 if test "x$prefix" = xNONE; then
5458 gcc_cv_tool_prefix=$ac_default_prefix
5459 else
5460 gcc_cv_tool_prefix=$prefix
5461 fi
5462else
5463 gcc_cv_tool_prefix=$exec_prefix
5464fi
5465
5466# If there is no compiler in the tree, use the PATH only. In any
5467# case, if there is no compiler in the tree nobody should use
5468# AS_FOR_TARGET and LD_FOR_TARGET.
5469if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5470 gcc_version=`cat $srcdir/gcc/BASE-VER`
5471 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5472 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5473 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5474 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5475 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5476 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5477else
5478 gcc_cv_tool_dirs=
5479fi
5480
5481if test x$build = x$target && test -n "$md_exec_prefix"; then
5482 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5483fi
5484
5485
5486
5487copy_dirs=
5488
5489
5490# Check whether --with-build-sysroot or --without-build-sysroot was given.
5491if test "${with_build_sysroot+set}" = set; then
5492 withval="$with_build_sysroot"
5493 if test x"$withval" != x ; then
5494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5495 fi
5496else
5497 SYSROOT_CFLAGS_FOR_TARGET=
5498fi;
5499
5500
5501
5502# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5503if test "${with_debug_prefix_map+set}" = set; then
5504 withval="$with_debug_prefix_map"
5505 if test x"$withval" != x; then
5506 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5507 for debug_map in $withval; do
5508 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5509 done
5510 fi
5511else
5512 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5513fi;
5514
5515
5516# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5517# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5518# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5519# We want to ensure that TARGET libraries (which we know are built with
5520# gcc) are built with "-O2 -g", so include those options when setting
5521# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5522if test "x$CFLAGS_FOR_TARGET" = x; then
5523 CFLAGS_FOR_TARGET=$CFLAGS
5524 case " $CFLAGS " in
5525 *" -O2 "*) ;;
5526 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5527 esac
5528 case " $CFLAGS " in
5529 *" -g "* | *" -g3 "*) ;;
5530 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5531 esac
5532fi
5533
5534
5535if test "x$CXXFLAGS_FOR_TARGET" = x; then
5536 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5537 case " $CXXFLAGS " in
5538 *" -O2 "*) ;;
5539 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5540 esac
5541 case " $CXXFLAGS " in
5542 *" -g "* | *" -g3 "*) ;;
5543 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5544 esac
5545fi
5546
5547
5548# Handle --with-headers=XXX. If the value is not "yes", the contents of
5549# the named directory are copied to $(tooldir)/sys-include.
5550if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5551 if test x${is_cross_compiler} = xno ; then
5552 echo 1>&2 '***' --with-headers is only supported when cross compiling
5553 exit 1
5554 fi
5555 if test x"${with_headers}" != xyes ; then
5556 x=${gcc_cv_tool_prefix}
5557 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5558 fi
5559fi
5560
5561# Handle --with-libs=XXX. If the value is not "yes", the contents of
5562# the name directories are copied to $(tooldir)/lib. Multiple directories
5563# are permitted.
5564if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5565 if test x${is_cross_compiler} = xno ; then
5566 echo 1>&2 '***' --with-libs is only supported when cross compiling
5567 exit 1
5568 fi
5569 if test x"${with_libs}" != xyes ; then
5570 # Copy the libraries in reverse order, so that files in the first named
5571 # library override files in subsequent libraries.
5572 x=${gcc_cv_tool_prefix}
5573 for l in ${with_libs}; do
5574 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5575 done
5576 fi
5577fi
5578
5579# Set with_gnu_as and with_gnu_ld as appropriate.
5580#
5581# This is done by determining whether or not the appropriate directory
5582# is available, and by checking whether or not specific configurations
5583# have requested that this magic not happen.
5584#
5585# The command line options always override the explicit settings in
5586# configure.in, and the settings in configure.in override this magic.
5587#
5588# If the default for a toolchain is to use GNU as and ld, and you don't
5589# want to do that, then you should use the --without-gnu-as and
5590# --without-gnu-ld options for the configure script.
5591
5592if test x${use_gnu_as} = x &&
5593 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5594 with_gnu_as=yes
5595 extra_host_args="$extra_host_args --with-gnu-as"
5596fi
5597
5598if test x${use_gnu_ld} = x &&
5599 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5600 with_gnu_ld=yes
5601 extra_host_args="$extra_host_args --with-gnu-ld"
5602fi
5603
5604# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5605# can detect this case.
5606
5607if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5608 with_newlib=yes
5609 extra_host_args="$extra_host_args --with-newlib"
5610fi
5611
5612# Handle ${copy_dirs}
5613set fnord ${copy_dirs}
5614shift
5615while test $# != 0 ; do
5616 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5617 :
5618 else
5619 echo Copying $1 to $2
5620
5621 # Use the install script to create the directory and all required
5622 # parent directories.
5623 if test -d $2 ; then
5624 :
5625 else
5626 echo >config.temp
5627 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5628 fi
5629
5630 # Copy the directory, assuming we have tar.
5631 # FIXME: Should we use B in the second tar? Not all systems support it.
5632 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5633
5634 # It is the responsibility of the user to correctly adjust all
5635 # symlinks. If somebody can figure out how to handle them correctly
5636 # here, feel free to add the code.
5637
5638 echo $1 > $2/COPIED
5639 fi
5640 shift; shift
5641done
5642
5643# Determine a target-dependent exec_prefix that the installed
5644# gcc will search in. Keep this list sorted by triplet, with
5645# the *-*-osname triplets last.
5646md_exec_prefix=
5647case "${target}" in
5648 alpha*-*-*vms*)
5649 md_exec_prefix=/gnu/lib/gcc-lib
5650 ;;
5651 i[34567]86-pc-msdosdjgpp*)
5652 md_exec_prefix=/dev/env/DJDIR/bin
5653 ;;
5654 i[34567]86-*-sco3.2v5*)
5655 if test $with_gnu_as = yes; then
5656 md_exec_prefix=/usr/gnu/bin
5657 else
5658 md_exec_prefix=/usr/ccs/bin/elf
5659 fi
5660 ;;
5661
5662 mn10300-*-* | \
5663 powerpc-*-chorusos* | \
5664 powerpc*-*-eabi* | \
5665 powerpc*-*-sysv* | \
5666 powerpc*-*-kaos* | \
5667 s390x-ibm-tpf*)
5668 md_exec_prefix=/usr/ccs/bin
5669 ;;
5670 sparc64-*-elf*)
5671 ;;
5672 v850*-*-*)
5673 md_exec_prefix=/usr/ccs/bin
5674 ;;
5675 xtensa*-*-elf*)
5676 ;;
5677
5678 *-*-beos* | \
5679 *-*-elf* | \
5680 *-*-hpux* | \
5681 *-*-netware* | \
5682 *-*-nto-qnx* | \
5683 *-*-rtems* | \
5684 *-*-solaris2* | \
5685 *-*-sysv[45]* | \
5686 *-*-vxworks* | \
5687 *-wrs-windiss)
5688 md_exec_prefix=/usr/ccs/bin
5689 ;;
5690esac
5691
5692extra_arflags_for_target=
5693extra_nmflags_for_target=
5694extra_ranlibflags_for_target=
5695target_makefile_frag=/dev/null
5696case "${target}" in
5697 mep*-*-*)
5698 target_makefile_frag="config/mt-mep"
5699 ;;
5700 spu-*-*)
5701 target_makefile_frag="config/mt-spu"
5702 ;;
5703 mips*-sde-elf*)
5704 target_makefile_frag="config/mt-sde"
5705 ;;
5706 mipsisa*-*-elfoabi*)
5707 target_makefile_frag="config/mt-mips-elfoabi"
5708 ;;
5709 mips*-*-*linux* | mips*-*-gnu*)
5710 target_makefile_frag="config/mt-mips-gnu"
5711 ;;
5712 *-*-netware*)
5713 target_makefile_frag="config/mt-netware"
5714 ;;
5715 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5716 target_makefile_frag="config/mt-gnu"
5717 ;;
5718 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5719 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5720 # commands to handle both 32-bit and 64-bit objects. These flags are
5721 # harmless if we're using GNU nm or ar.
5722 extra_arflags_for_target=" -X32_64"
5723 extra_nmflags_for_target=" -B -X32_64"
5724 ;;
5725 *-*-darwin*)
5726 # ranlib from Darwin requires the -c flag to look at common symbols.
5727 extra_ranlibflags_for_target=" -c"
5728 ;;
5729 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5730 target_makefile_frag="config/mt-wince"
5731 ;;
5732esac
5733
5734alphaieee_frag=/dev/null
5735case $target in
5736 alpha*-*-*)
5737 # This just makes sure to use the -mieee option to build target libs.
5738 # This should probably be set individually by each library.
5739 alphaieee_frag="config/mt-alphaieee"
5740 ;;
5741esac
5742
5743# If --enable-target-optspace always use -Os instead of -O2 to build
5744# the target libraries, similarly if it is not specified, use -Os
5745# on selected platforms.
5746ospace_frag=/dev/null
5747case "${enable_target_optspace}:${target}" in
5748 yes:*)
5749 ospace_frag="config/mt-ospace"
5750 ;;
5751 :d30v-*)
5752 ospace_frag="config/mt-d30v"
5753 ;;
5754 :m32r-* | :d10v-* | :fr30-*)
5755 ospace_frag="config/mt-ospace"
5756 ;;
5757 no:* | :*)
5758 ;;
5759 *)
5760 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5761 ;;
5762esac
5763
5764# Default to using --with-stabs for certain targets.
5765if test x${with_stabs} = x ; then
5766 case "${target}" in
5767 mips*-*-irix[56]*)
5768 ;;
5769 mips*-*-* | alpha*-*-osf*)
5770 with_stabs=yes;
5771 extra_host_args="${extra_host_args} --with-stabs"
5772 ;;
5773 esac
5774fi
5775
5776# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5777# them automatically.
5778case "${host}" in
5779 hppa*64*-*-hpux11*)
5780 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5781 ;;
5782esac
5783
5784# Some systems (e.g., one of the i386-aix systems the gas testers are
5785# using) don't handle "\$" correctly, so don't use it here.
5786tooldir='${exec_prefix}'/${target_noncanonical}
5787build_tooldir=${tooldir}
5788
5789# Create a .gdbinit file which runs the one in srcdir
5790# and tells GDB to look there for source files.
5791
5792if test -r ${srcdir}/.gdbinit ; then
5793 case ${srcdir} in
5794 .) ;;
5795 *) cat > ./.gdbinit <<EOF
5796# ${NO_EDIT}
5797dir ${srcdir}
5798dir .
5799source ${srcdir}/.gdbinit
5800EOF
5801 ;;
5802 esac
5803fi
5804
5805# Make sure that the compiler is able to generate an executable. If it
5806# can't, we are probably in trouble. We don't care whether we can run the
5807# executable--we might be using a cross compiler--we only care whether it
5808# can be created. At this point the main configure script has set CC.
5809we_are_ok=no
5810echo "int main () { return 0; }" > conftest.c
5811${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5812if test $? = 0 ; then
5813 if test -s conftest || test -s conftest.exe ; then
5814 we_are_ok=yes
5815 fi
5816fi
5817case $we_are_ok in
5818 no)
5819 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5820 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5821 rm -f conftest*
5822 exit 1
5823 ;;
5824esac
5825rm -f conftest*
5826
5827# The Solaris /usr/ucb/cc compiler does not appear to work.
5828case "${host}" in
5829 sparc-sun-solaris2*)
5830 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5831 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5832 could_use=
5833 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5834 if test -d /opt/cygnus/bin ; then
5835 if test "$could_use" = "" ; then
5836 could_use="/opt/cygnus/bin"
5837 else
5838 could_use="$could_use or /opt/cygnus/bin"
5839 fi
5840 fi
5841 if test "$could_use" = "" ; then
5842 echo "Warning: compilation may fail because you're using"
5843 echo "/usr/ucb/cc. You should change your PATH or CC "
5844 echo "variable and rerun configure."
5845 else
5846 echo "Warning: compilation may fail because you're using"
5847 echo "/usr/ucb/cc, when you should use the C compiler from"
5848 echo "$could_use. You should change your"
5849 echo "PATH or CC variable and rerun configure."
5850 fi
5851 fi
5852 ;;
5853esac
5854
5855# Decide which environment variable is used to find dynamic libraries.
5856case "${host}" in
5857 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5858 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5859 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
5860 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5861esac
5862
5863# On systems where the dynamic library environment variable is PATH,
5864# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5865# built executables to PATH.
5866if test "$RPATH_ENVVAR" = PATH; then
5867 GCC_SHLIB_SUBDIR=/shlib
5868else
5869 GCC_SHLIB_SUBDIR=
5870fi
5871
5872# Record target_configdirs and the configure arguments for target and
5873# build configuration in Makefile.
5874target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5875build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5876
5877# Determine whether gdb needs tk/tcl or not.
5878# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5879# and in that case we want gdb to be built without tk. Ugh!
5880# In fact I believe gdb is the *only* package directly dependent on tk,
5881# so we should be able to put the 'maybe's in unconditionally and
5882# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5883# 100% sure that that's safe though.
5884
5885gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5886case "$enable_gdbtk" in
5887 no)
5888 GDB_TK="" ;;
5889 yes)
5890 GDB_TK="${gdb_tk}" ;;
5891 *)
5892 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5893 # distro. Eventually someone will fix this and move Insight, nee
5894 # gdbtk to a separate directory.
5895 if test -d ${srcdir}/gdb/gdbtk ; then
5896 GDB_TK="${gdb_tk}"
5897 else
5898 GDB_TK=""
5899 fi
5900 ;;
5901esac
5902CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5903INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5904
5905# Strip out unwanted targets.
5906
5907# While at that, we remove Makefiles if we were started for recursive
5908# configuration, so that the top-level Makefile reconfigures them,
5909# like we used to do when configure itself was recursive.
5910
5911# Loop over modules. $extrasub must be used with care, limiting as
5912# much as possible the usage of range addresses. That's because autoconf
5913# splits the sed script to overcome limits in the number of commands,
5914# and relying on carefully-timed sed passes may turn out to be very hard
5915# to maintain later. In this particular case, you just have to be careful
5916# not to nest @if/@endif pairs, because configure will not warn you at all.
5917
5918# Check whether --enable-bootstrap or --disable-bootstrap was given.
5919if test "${enable_bootstrap+set}" = set; then
5920 enableval="$enable_bootstrap"
5921
5922else
5923 enable_bootstrap=default
5924fi;
5925
5926# Issue errors and warnings for invalid/strange bootstrap combinations.
5927case "$configdirs" in
5928 *gcc*) have_compiler=yes ;;
5929 *) have_compiler=no ;;
5930esac
5931
5932case "$have_compiler:$host:$target:$enable_bootstrap" in
5933 *:*:*:no) ;;
5934
5935 # Default behavior. Enable bootstrap if we have a compiler
5936 # and we are in a native configuration.
5937 yes:$build:$build:default)
5938 enable_bootstrap=yes ;;
5939
5940 *:*:*:default)
5941 enable_bootstrap=no ;;
5942
5943 # We have a compiler and we are in a native configuration, bootstrap is ok
5944 yes:$build:$build:yes)
5945 ;;
5946
5947 # Other configurations, but we have a compiler. Assume the user knows
5948 # what he's doing.
5949 yes:*:*:yes)
5950 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5951echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5952 ;;
5953
5954 # No compiler: if they passed --enable-bootstrap explicitly, fail
5955 no:*:*:yes)
5956 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5957echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5958 { (exit 1); exit 1; }; } ;;
5959
5960 # Fail if wrong command line
5961 *)
5962 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5963echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5964 { (exit 1); exit 1; }; }
5965 ;;
5966esac
5967
5968# Adjust the toplevel makefile according to whether bootstrap was selected.
5969case "$enable_bootstrap" in
5970 yes)
5971 bootstrap_suffix=bootstrap ;;
5972 no)
5973 bootstrap_suffix=no-bootstrap ;;
5974esac
5975
5976for module in ${build_configdirs} ; do
5977 if test -z "${no_recursion}" \
5978 && test -f ${build_subdir}/${module}/Makefile; then
5979 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5980 rm -f ${build_subdir}/${module}/Makefile
5981 fi
5982 extrasub="$extrasub
5983/^@if build-$module\$/d
5984/^@endif build-$module\$/d
5985/^@if build-$module-$bootstrap_suffix\$/d
5986/^@endif build-$module-$bootstrap_suffix\$/d"
5987done
5988for module in ${configdirs} ; do
5989 if test -z "${no_recursion}"; then
5990 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5991 if test -f ${file}; then
5992 echo 1>&2 "*** removing ${file} to force reconfigure"
5993 rm -f ${file}
5994 fi
5995 done
5996 fi
5997 extrasub="$extrasub
5998/^@if $module\$/d
5999/^@endif $module\$/d
6000/^@if $module-$bootstrap_suffix\$/d
6001/^@endif $module-$bootstrap_suffix\$/d"
6002done
6003for module in ${target_configdirs} ; do
6004 if test -z "${no_recursion}" \
6005 && test -f ${target_subdir}/${module}/Makefile; then
6006 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6007 rm -f ${target_subdir}/${module}/Makefile
6008 fi
6009 extrasub="$extrasub
6010/^@if target-$module\$/d
6011/^@endif target-$module\$/d
6012/^@if target-$module-$bootstrap_suffix\$/d
6013/^@endif target-$module-$bootstrap_suffix\$/d"
6014done
6015
6016extrasub="$extrasub
6017/^@if /,/^@endif /d"
6018
6019# Create the serialization dependencies. This uses a temporary file.
6020
6021# Check whether --enable-serial-configure or --disable-serial-configure was given.
6022if test "${enable_serial_configure+set}" = set; then
6023 enableval="$enable_serial_configure"
6024
6025fi;
6026
6027case ${enable_serial_configure} in
6028 yes)
6029 enable_serial_build_configure=yes
6030 enable_serial_host_configure=yes
6031 enable_serial_target_configure=yes
6032 ;;
6033esac
6034
6035# These force 'configure's to be done one at a time, to avoid problems
6036# with contention over a shared config.cache.
6037rm -f serdep.tmp
6038echo '# serdep.tmp' > serdep.tmp
6039olditem=
6040test "x${enable_serial_build_configure}" = xyes &&
6041for item in ${build_configdirs} ; do
6042 case ${olditem} in
6043 "") ;;
6044 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6045 esac
6046 olditem=${item}
6047done
6048olditem=
6049test "x${enable_serial_host_configure}" = xyes &&
6050for item in ${configdirs} ; do
6051 case ${olditem} in
6052 "") ;;
6053 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6054 esac
6055 olditem=${item}
6056done
6057olditem=
6058test "x${enable_serial_target_configure}" = xyes &&
6059for item in ${target_configdirs} ; do
6060 case ${olditem} in
6061 "") ;;
6062 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6063 esac
6064 olditem=${item}
6065done
6066serialization_dependencies=serdep.tmp
6067
6068
6069# Base args. Strip norecursion, cache-file, srcdir, host, build,
6070# target, nonopt, and variable assignments. These are the ones we
6071# might not want to pass down to subconfigures. Also strip
6072# program-prefix, program-suffix, and program-transform-name, so that
6073# we can pass down a consistent program-transform-name.
6074baseargs=
6075keep_next=no
6076skip_next=no
6077eval "set -- $ac_configure_args"
6078for ac_arg
6079do
6080 if test X"$skip_next" = X"yes"; then
6081 skip_next=no
6082 continue
6083 fi
6084 if test X"$keep_next" = X"yes"; then
6085 case $ac_arg in
6086 *\'*)
6087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6088 esac
6089 baseargs="$baseargs '$ac_arg'"
6090 keep_next=no
6091 continue
6092 fi
6093
6094 # Handle separated arguments. Based on the logic generated by
6095 # autoconf 2.59.
6096 case $ac_arg in
6097 *=* | --config-cache | -C | -disable-* | --disable-* \
6098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6100 | -with-* | --with-* | -without-* | --without-* | --x)
6101 separate_arg=no
6102 ;;
6103 -*)
6104 separate_arg=yes
6105 ;;
6106 *)
6107 separate_arg=no
6108 ;;
6109 esac
6110
6111 case "$ac_arg" in
6112 --no*)
6113 continue
6114 ;;
6115 --c* | \
6116 --sr* | \
6117 --ho* | \
6118 --bu* | \
6119 --t* | \
6120 --program-* | \
6121 -cache_file* | \
6122 -srcdir* | \
6123 -host* | \
6124 -build* | \
6125 -target* | \
6126 -program-prefix* | \
6127 -program-suffix* | \
6128 -program-transform-name* )
6129 skip_next=$separate_arg
6130 continue
6131 ;;
6132 -*)
6133 # An option. Add it.
6134 case $ac_arg in
6135 *\'*)
6136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6137 esac
6138 baseargs="$baseargs '$ac_arg'"
6139 keep_next=$separate_arg
6140 ;;
6141 *)
6142 # Either a variable assignment, or a nonopt (triplet). Don't
6143 # pass it down; let the Makefile handle this.
6144 continue
6145 ;;
6146 esac
6147done
6148# Remove the initial space we just introduced and, as these will be
6149# expanded by make, quote '$'.
6150baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6151
6152# Add in --program-transform-name, after --program-prefix and
6153# --program-suffix have been applied to it. Autoconf has already
6154# doubled dollar signs and backslashes in program_transform_name; we want
6155# the backslashes un-doubled, and then the entire thing wrapped in single
6156# quotes, because this will be expanded first by make and then by the shell.
6157# Also, because we want to override the logic in subdir configure scripts to
6158# choose program_transform_name, replace any s,x,x, with s,y,y,.
6159sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6160${program_transform_name}
6161EOF_SED
6162gcc_transform_name=`cat conftestsed.out`
6163rm -f conftestsed.out
6164baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6165if test "$silent" = yes; then
6166 baseargs="$baseargs --silent"
6167fi
6168
6169# For the build-side libraries, we just need to pretend we're native,
6170# and not use the same cache file. Multilibs are neither needed nor
6171# desired.
6172build_configargs="--cache-file=../config.cache ${baseargs}"
6173
6174# For host modules, accept cache file option, or specification as blank.
6175case "${cache_file}" in
6176"") # empty
6177 cache_file_option="" ;;
6178/* | [A-Za-z]:[\\/]* ) # absolute path
6179 cache_file_option="--cache-file=${cache_file}" ;;
6180*) # relative path
6181 cache_file_option="--cache-file=../${cache_file}" ;;
6182esac
6183
6184# Host dirs don't like to share a cache file either, horribly enough.
6185# This seems to be due to autoconf 2.5x stupidity.
6186host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6187
6188target_configargs=${baseargs}
6189
6190# Passing a --with-cross-host argument lets the target libraries know
6191# whether they are being built with a cross-compiler or being built
6192# native. However, it would be better to use other mechanisms to make the
6193# sorts of decisions they want to make on this basis. Please consider
6194# this option to be deprecated. FIXME.
6195if test x${is_cross_compiler} = xyes ; then
6196 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6197fi
6198
6199# Default to --enable-multilib.
6200if test x${enable_multilib} = x ; then
6201 target_configargs="--enable-multilib ${target_configargs}"
6202fi
6203
6204# Pass --with-newlib if appropriate. Note that target_configdirs has
6205# changed from the earlier setting of with_newlib.
6206if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6207 target_configargs="--with-newlib ${target_configargs}"
6208fi
6209
6210# Different target subdirs use different values of certain variables
6211# (notably CXX). Worse, multilibs use *lots* of different values.
6212# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6213# it doesn't automatically accept command-line overrides of them.
6214# This means it's not safe for target subdirs to share a cache file,
6215# which is disgusting, but there you have it. Hopefully this can be
6216# fixed in future. It's still worthwhile to use a cache file for each
6217# directory. I think.
6218
6219# Pass the appropriate --build, --host, --target and --cache-file arguments.
6220# We need to pass --target, as newer autoconf's requires consistency
6221# for target_alias and gcc doesn't manage it consistently.
6222target_configargs="--cache-file=./config.cache ${target_configargs}"
6223
6224FLAGS_FOR_TARGET=
6225case " $target_configdirs " in
6226 *" newlib "*)
6227 case " $target_configargs " in
6228 *" --with-newlib "*)
6229 case "$target" in
6230 *-cygwin*)
6231 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' ;;
6232 esac
6233
6234 # If we're not building GCC, don't discard standard headers.
6235 if test -d ${srcdir}/gcc; then
6236 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6237
6238 if test "${build}" != "${host}"; then
6239 # On Canadian crosses, CC_FOR_TARGET will have already been set
6240 # by `configure', so we won't have an opportunity to add -Bgcc/
6241 # to it. This is right: we don't want to search that directory
6242 # for binaries, but we want the header files in there, so add
6243 # them explicitly.
6244 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6245
6246 # Someone might think of using the pre-installed headers on
6247 # Canadian crosses, in case the installed compiler is not fully
6248 # compatible with the compiler being built. In this case, it
6249 # would be better to flag an error than risking having
6250 # incompatible object files being constructed. We can't
6251 # guarantee that an error will be flagged, but let's hope the
6252 # compiler will do it, when presented with incompatible header
6253 # files.
6254 fi
6255 fi
6256
6257 case "${target}-${is_cross_compiler}" in
6258 i[3456789]86-*-linux*-no)
6259 # Here host == target, so we don't need to build gcc,
6260 # so we don't want to discard standard headers.
6261 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6262 ;;
6263 *)
6264 # If we're building newlib, use its generic headers last, but search
6265 # for any libc-related directories first (so make it the last -B
6266 # switch).
6267 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6268
6269 # If we're building libgloss, find the startup file, simulator library
6270 # and linker script.
6271 case " $target_configdirs " in
6272 *" libgloss "*)
6273 # Look for startup file, simulator library and maybe linker script.
6274 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6275 # Look for libnosys.a in case the target needs it.
6276 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6277 # Most targets have the linker script in the source directory.
6278 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 ;;
6284 esac
6285 ;;
6286esac
6287case "$target" in
6288*-mingw*)
6289 # Can't be handled as Cygwin above since Mingw does not use newlib.
6290 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' ;;
6291esac
6292
6293# Allow the user to override the flags for
6294# our build compiler if desired.
6295if test x"${build}" = x"${host}" ; then
6296 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6297 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6298 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6299fi
6300
6301# On Canadian crosses, we'll be searching the right directories for
6302# the previously-installed cross compiler, so don't bother to add
6303# flags for directories within the install tree of the compiler
6304# being built; programs in there won't even run.
6305if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6306 # Search for pre-installed headers if nothing else fits.
6307 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6308fi
6309
6310if test "x${use_gnu_ld}" = x &&
6311 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6312 # Arrange for us to find uninstalled linker scripts.
6313 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6314fi
6315
6316# Search for other target-specific linker scripts and such.
6317case "${target}" in
6318 mep*)
6319 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6320 ;;
6321esac
6322
6323# Makefile fragments.
6324for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6325do
6326 eval fragval=\$$frag
6327 if test $fragval != /dev/null; then
6328 eval $frag=${srcdir}/$fragval
6329 fi
6330done
6331
6332
6333
6334
6335
6336# Miscellanea: directories, flags, etc.
6337
6338
6339
6340
6341
6342
6343
6344
6345# Build module lists & subconfigure args.
6346
6347
6348
6349# Host module lists & subconfigure args.
6350
6351
6352
6353# Target module lists & subconfigure args.
6354
6355
6356
6357# Build tools.
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375# Generate default definitions for YACC, M4, LEX and other programs that run
6376# on the build machine. These are used if the Makefile can't locate these
6377# programs in objdir.
6378MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6379
6380for ac_prog in 'bison -y' byacc yacc
6381do
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383set dummy $ac_prog; ac_word=$2
6384echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386if test "${ac_cv_prog_YACC+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 if test -n "$YACC"; then
6390 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_YACC="$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403done
6404done
6405
6406fi
6407fi
6408YACC=$ac_cv_prog_YACC
6409if test -n "$YACC"; then
6410 echo "$as_me:$LINENO: result: $YACC" >&5
6411echo "${ECHO_T}$YACC" >&6
6412else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415fi
6416
6417 test -n "$YACC" && break
6418done
6419test -n "$YACC" || YACC="$MISSING bison -y"
6420
6421case " $build_configdirs " in
6422 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6423 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6424esac
6425
6426for ac_prog in bison
6427do
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429set dummy $ac_prog; ac_word=$2
6430echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6432if test "${ac_cv_prog_BISON+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435 if test -n "$BISON"; then
6436 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_BISON="$ac_prog"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449done
6450done
6451
6452fi
6453fi
6454BISON=$ac_cv_prog_BISON
6455if test -n "$BISON"; then
6456 echo "$as_me:$LINENO: result: $BISON" >&5
6457echo "${ECHO_T}$BISON" >&6
6458else
6459 echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6
6461fi
6462
6463 test -n "$BISON" && break
6464done
6465test -n "$BISON" || BISON="$MISSING bison"
6466
6467case " $build_configdirs " in
6468 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6469esac
6470
6471for ac_prog in gm4 gnum4 m4
6472do
6473 # Extract the first word of "$ac_prog", so it can be a program name with args.
6474set dummy $ac_prog; ac_word=$2
6475echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477if test "${ac_cv_prog_M4+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 if test -n "$M4"; then
6481 ac_cv_prog_M4="$M4" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_M4="$ac_prog"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494done
6495done
6496
6497fi
6498fi
6499M4=$ac_cv_prog_M4
6500if test -n "$M4"; then
6501 echo "$as_me:$LINENO: result: $M4" >&5
6502echo "${ECHO_T}$M4" >&6
6503else
6504 echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6
6506fi
6507
6508 test -n "$M4" && break
6509done
6510test -n "$M4" || M4="$MISSING m4"
6511
6512case " $build_configdirs " in
6513 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6514esac
6515
6516for ac_prog in flex lex
6517do
6518 # Extract the first word of "$ac_prog", so it can be a program name with args.
6519set dummy $ac_prog; ac_word=$2
6520echo "$as_me:$LINENO: checking for $ac_word" >&5
6521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522if test "${ac_cv_prog_LEX+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 if test -n "$LEX"; then
6526 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_LEX="$ac_prog"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539done
6540done
6541
6542fi
6543fi
6544LEX=$ac_cv_prog_LEX
6545if test -n "$LEX"; then
6546 echo "$as_me:$LINENO: result: $LEX" >&5
6547echo "${ECHO_T}$LEX" >&6
6548else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551fi
6552
6553 test -n "$LEX" && break
6554done
6555test -n "$LEX" || LEX="$MISSING flex"
6556
6557case " $build_configdirs " in
6558 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6559 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6560esac
6561
6562for ac_prog in flex
6563do
6564 # Extract the first word of "$ac_prog", so it can be a program name with args.
6565set dummy $ac_prog; ac_word=$2
6566echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6568if test "${ac_cv_prog_FLEX+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 if test -n "$FLEX"; then
6572 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_FLEX="$ac_prog"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587
6588fi
6589fi
6590FLEX=$ac_cv_prog_FLEX
6591if test -n "$FLEX"; then
6592 echo "$as_me:$LINENO: result: $FLEX" >&5
6593echo "${ECHO_T}$FLEX" >&6
6594else
6595 echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6
6597fi
6598
6599 test -n "$FLEX" && break
6600done
6601test -n "$FLEX" || FLEX="$MISSING flex"
6602
6603case " $build_configdirs " in
6604 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6605esac
6606
6607for ac_prog in makeinfo
6608do
6609 # Extract the first word of "$ac_prog", so it can be a program name with args.
6610set dummy $ac_prog; ac_word=$2
6611echo "$as_me:$LINENO: checking for $ac_word" >&5
6612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6613if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616 if test -n "$MAKEINFO"; then
6617 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_MAKEINFO="$ac_prog"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631done
6632
6633fi
6634fi
6635MAKEINFO=$ac_cv_prog_MAKEINFO
6636if test -n "$MAKEINFO"; then
6637 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6638echo "${ECHO_T}$MAKEINFO" >&6
6639else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642fi
6643
6644 test -n "$MAKEINFO" && break
6645done
6646test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6647
6648case " $build_configdirs " in
6649 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6650 *)
6651
6652 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6653 # higher, else we use the "missing" dummy.
6654 if ${MAKEINFO} --version \
6655 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6656 :
6657 else
6658 MAKEINFO="$MISSING makeinfo"
6659 fi
6660 ;;
6661
6662esac
6663
6664# FIXME: expect and dejagnu may become build tools?
6665
6666for ac_prog in expect
6667do
6668 # Extract the first word of "$ac_prog", so it can be a program name with args.
6669set dummy $ac_prog; ac_word=$2
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672if test "${ac_cv_prog_EXPECT+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 if test -n "$EXPECT"; then
6676 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_EXPECT="$ac_prog"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691
6692fi
6693fi
6694EXPECT=$ac_cv_prog_EXPECT
6695if test -n "$EXPECT"; then
6696 echo "$as_me:$LINENO: result: $EXPECT" >&5
6697echo "${ECHO_T}$EXPECT" >&6
6698else
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
6701fi
6702
6703 test -n "$EXPECT" && break
6704done
6705test -n "$EXPECT" || EXPECT="expect"
6706
6707case " $configdirs " in
6708 *" expect "*)
6709 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6710 ;;
6711esac
6712
6713for ac_prog in runtest
6714do
6715 # Extract the first word of "$ac_prog", so it can be a program name with args.
6716set dummy $ac_prog; ac_word=$2
6717echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719if test "${ac_cv_prog_RUNTEST+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721else
6722 if test -n "$RUNTEST"; then
6723 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_RUNTEST="$ac_prog"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738
6739fi
6740fi
6741RUNTEST=$ac_cv_prog_RUNTEST
6742if test -n "$RUNTEST"; then
6743 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6744echo "${ECHO_T}$RUNTEST" >&6
6745else
6746 echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6
6748fi
6749
6750 test -n "$RUNTEST" && break
6751done
6752test -n "$RUNTEST" || RUNTEST="runtest"
6753
6754case " $configdirs " in
6755 *" dejagnu "*)
6756 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6757 ;;
6758esac
6759
6760
6761# Host tools.
6762ncn_tool_prefix=
6763test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6764ncn_target_tool_prefix=
6765test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6766
6767
6768
6769if test -n "$AR"; then
6770 ac_cv_prog_AR=$AR
6771elif test -n "$ac_cv_prog_AR"; then
6772 AR=$ac_cv_prog_AR
6773fi
6774
6775if test -n "$ac_cv_prog_AR"; then
6776 for ncn_progname in ar; do
6777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6778set dummy ${ncn_progname}; ac_word=$2
6779echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6781if test "${ac_cv_prog_AR+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 if test -n "$AR"; then
6785 ac_cv_prog_AR="$AR" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_AR="${ncn_progname}"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799done
6800
6801fi
6802fi
6803AR=$ac_cv_prog_AR
6804if test -n "$AR"; then
6805 echo "$as_me:$LINENO: result: $AR" >&5
6806echo "${ECHO_T}$AR" >&6
6807else
6808 echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6
6810fi
6811
6812 done
6813fi
6814
6815for ncn_progname in ar; do
6816 if test -n "$ncn_tool_prefix"; then
6817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6818set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6819echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6821if test "${ac_cv_prog_AR+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 if test -n "$AR"; then
6825 ac_cv_prog_AR="$AR" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840
6841fi
6842fi
6843AR=$ac_cv_prog_AR
6844if test -n "$AR"; then
6845 echo "$as_me:$LINENO: result: $AR" >&5
6846echo "${ECHO_T}$AR" >&6
6847else
6848 echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6
6850fi
6851
6852 fi
6853 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6855set dummy ${ncn_progname}; ac_word=$2
6856echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6858if test "${ac_cv_prog_AR+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$AR"; then
6862 ac_cv_prog_AR="$AR" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871 ac_cv_prog_AR="${ncn_progname}"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
6877
6878fi
6879fi
6880AR=$ac_cv_prog_AR
6881if test -n "$AR"; then
6882 echo "$as_me:$LINENO: result: $AR" >&5
6883echo "${ECHO_T}$AR" >&6
6884else
6885 echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6
6887fi
6888
6889 fi
6890 test -n "$ac_cv_prog_AR" && break
6891done
6892
6893if test -z "$ac_cv_prog_AR" ; then
6894 set dummy ar
6895 if test $build = $host ; then
6896 AR="$2"
6897 else
6898 AR="${ncn_tool_prefix}$2"
6899 fi
6900fi
6901
6902
6903
6904if test -n "$AS"; then
6905 ac_cv_prog_AS=$AS
6906elif test -n "$ac_cv_prog_AS"; then
6907 AS=$ac_cv_prog_AS
6908fi
6909
6910if test -n "$ac_cv_prog_AS"; then
6911 for ncn_progname in as; do
6912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6913set dummy ${ncn_progname}; ac_word=$2
6914echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916if test "${ac_cv_prog_AS+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 if test -n "$AS"; then
6920 ac_cv_prog_AS="$AS" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_AS="${ncn_progname}"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935
6936fi
6937fi
6938AS=$ac_cv_prog_AS
6939if test -n "$AS"; then
6940 echo "$as_me:$LINENO: result: $AS" >&5
6941echo "${ECHO_T}$AS" >&6
6942else
6943 echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6
6945fi
6946
6947 done
6948fi
6949
6950for ncn_progname in as; do
6951 if test -n "$ncn_tool_prefix"; then
6952 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6953set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6954echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6956if test "${ac_cv_prog_AS+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 if test -n "$AS"; then
6960 ac_cv_prog_AS="$AS" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975
6976fi
6977fi
6978AS=$ac_cv_prog_AS
6979if test -n "$AS"; then
6980 echo "$as_me:$LINENO: result: $AS" >&5
6981echo "${ECHO_T}$AS" >&6
6982else
6983 echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
6985fi
6986
6987 fi
6988 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6990set dummy ${ncn_progname}; ac_word=$2
6991echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6993if test "${ac_cv_prog_AS+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996 if test -n "$AS"; then
6997 ac_cv_prog_AS="$AS" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_AS="${ncn_progname}"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012
7013fi
7014fi
7015AS=$ac_cv_prog_AS
7016if test -n "$AS"; then
7017 echo "$as_me:$LINENO: result: $AS" >&5
7018echo "${ECHO_T}$AS" >&6
7019else
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022fi
7023
7024 fi
7025 test -n "$ac_cv_prog_AS" && break
7026done
7027
7028if test -z "$ac_cv_prog_AS" ; then
7029 set dummy as
7030 if test $build = $host ; then
7031 AS="$2"
7032 else
7033 AS="${ncn_tool_prefix}$2"
7034 fi
7035fi
7036
7037
7038
7039if test -n "$DLLTOOL"; then
7040 ac_cv_prog_DLLTOOL=$DLLTOOL
7041elif test -n "$ac_cv_prog_DLLTOOL"; then
7042 DLLTOOL=$ac_cv_prog_DLLTOOL
7043fi
7044
7045if test -n "$ac_cv_prog_DLLTOOL"; then
7046 for ncn_progname in dlltool; do
7047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7048set dummy ${ncn_progname}; ac_word=$2
7049echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7051if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 if test -n "$DLLTOOL"; then
7055 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_DLLTOOL="${ncn_progname}"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070
7071fi
7072fi
7073DLLTOOL=$ac_cv_prog_DLLTOOL
7074if test -n "$DLLTOOL"; then
7075 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7076echo "${ECHO_T}$DLLTOOL" >&6
7077else
7078 echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6
7080fi
7081
7082 done
7083fi
7084
7085for ncn_progname in dlltool; do
7086 if test -n "$ncn_tool_prefix"; then
7087 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7088set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7089echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094 if test -n "$DLLTOOL"; then
7095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110
7111fi
7112fi
7113DLLTOOL=$ac_cv_prog_DLLTOOL
7114if test -n "$DLLTOOL"; then
7115 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7116echo "${ECHO_T}$DLLTOOL" >&6
7117else
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
7120fi
7121
7122 fi
7123 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7125set dummy ${ncn_progname}; ac_word=$2
7126echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7128if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131 if test -n "$DLLTOOL"; then
7132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_DLLTOOL="${ncn_progname}"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145done
7146done
7147
7148fi
7149fi
7150DLLTOOL=$ac_cv_prog_DLLTOOL
7151if test -n "$DLLTOOL"; then
7152 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7153echo "${ECHO_T}$DLLTOOL" >&6
7154else
7155 echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6
7157fi
7158
7159 fi
7160 test -n "$ac_cv_prog_DLLTOOL" && break
7161done
7162
7163if test -z "$ac_cv_prog_DLLTOOL" ; then
7164 set dummy dlltool
7165 if test $build = $host ; then
7166 DLLTOOL="$2"
7167 else
7168 DLLTOOL="${ncn_tool_prefix}$2"
7169 fi
7170fi
7171
7172
7173
7174if test -n "$LD"; then
7175 ac_cv_prog_LD=$LD
7176elif test -n "$ac_cv_prog_LD"; then
7177 LD=$ac_cv_prog_LD
7178fi
7179
7180if test -n "$ac_cv_prog_LD"; then
7181 for ncn_progname in ld; do
7182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7183set dummy ${ncn_progname}; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_LD+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 if test -n "$LD"; then
7190 ac_cv_prog_LD="$LD" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_LD="${ncn_progname}"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7202 fi
7203done
7204done
7205
7206fi
7207fi
7208LD=$ac_cv_prog_LD
7209if test -n "$LD"; then
7210 echo "$as_me:$LINENO: result: $LD" >&5
7211echo "${ECHO_T}$LD" >&6
7212else
7213 echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215fi
7216
7217 done
7218fi
7219
7220for ncn_progname in ld; do
7221 if test -n "$ncn_tool_prefix"; then
7222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7223set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226if test "${ac_cv_prog_LD+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 if test -n "$LD"; then
7230 ac_cv_prog_LD="$LD" # Let the user override the test.
7231else
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
7246fi
7247fi
7248LD=$ac_cv_prog_LD
7249if test -n "$LD"; then
7250 echo "$as_me:$LINENO: result: $LD" >&5
7251echo "${ECHO_T}$LD" >&6
7252else
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
7255fi
7256
7257 fi
7258 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7260set dummy ${ncn_progname}; ac_word=$2
7261echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263if test "${ac_cv_prog_LD+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 if test -n "$LD"; then
7267 ac_cv_prog_LD="$LD" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_LD="${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281done
7282
7283fi
7284fi
7285LD=$ac_cv_prog_LD
7286if test -n "$LD"; then
7287 echo "$as_me:$LINENO: result: $LD" >&5
7288echo "${ECHO_T}$LD" >&6
7289else
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
7292fi
7293
7294 fi
7295 test -n "$ac_cv_prog_LD" && break
7296done
7297
7298if test -z "$ac_cv_prog_LD" ; then
7299 set dummy ld
7300 if test $build = $host ; then
7301 LD="$2"
7302 else
7303 LD="${ncn_tool_prefix}$2"
7304 fi
7305fi
7306
7307
7308
7309if test -n "$LIPO"; then
7310 ac_cv_prog_LIPO=$LIPO
7311elif test -n "$ac_cv_prog_LIPO"; then
7312 LIPO=$ac_cv_prog_LIPO
7313fi
7314
7315if test -n "$ac_cv_prog_LIPO"; then
7316 for ncn_progname in lipo; do
7317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7318set dummy ${ncn_progname}; ac_word=$2
7319echo "$as_me:$LINENO: checking for $ac_word" >&5
7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7321if test "${ac_cv_prog_LIPO+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324 if test -n "$LIPO"; then
7325 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7326else
7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_LIPO="${ncn_progname}"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338done
7339done
7340
7341fi
7342fi
7343LIPO=$ac_cv_prog_LIPO
7344if test -n "$LIPO"; then
7345 echo "$as_me:$LINENO: result: $LIPO" >&5
7346echo "${ECHO_T}$LIPO" >&6
7347else
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350fi
7351
7352 done
7353fi
7354
7355for ncn_progname in lipo; do
7356 if test -n "$ncn_tool_prefix"; then
7357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361if test "${ac_cv_prog_LIPO+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 if test -n "$LIPO"; then
7365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380
7381fi
7382fi
7383LIPO=$ac_cv_prog_LIPO
7384if test -n "$LIPO"; then
7385 echo "$as_me:$LINENO: result: $LIPO" >&5
7386echo "${ECHO_T}$LIPO" >&6
7387else
7388 echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
7390fi
7391
7392 fi
7393 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7395set dummy ${ncn_progname}; ac_word=$2
7396echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398if test "${ac_cv_prog_LIPO+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 if test -n "$LIPO"; then
7402 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_LIPO="${ncn_progname}"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416done
7417
7418fi
7419fi
7420LIPO=$ac_cv_prog_LIPO
7421if test -n "$LIPO"; then
7422 echo "$as_me:$LINENO: result: $LIPO" >&5
7423echo "${ECHO_T}$LIPO" >&6
7424else
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
7427fi
7428
7429 fi
7430 test -n "$ac_cv_prog_LIPO" && break
7431done
7432
7433if test -z "$ac_cv_prog_LIPO" ; then
7434 set dummy lipo
7435 if test $build = $host ; then
7436 LIPO="$2"
7437 else
7438 LIPO="${ncn_tool_prefix}$2"
7439 fi
7440fi
7441
7442
7443
7444if test -n "$NM"; then
7445 ac_cv_prog_NM=$NM
7446elif test -n "$ac_cv_prog_NM"; then
7447 NM=$ac_cv_prog_NM
7448fi
7449
7450if test -n "$ac_cv_prog_NM"; then
7451 for ncn_progname in nm; do
7452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7453set dummy ${ncn_progname}; ac_word=$2
7454echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456if test "${ac_cv_prog_NM+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 if test -n "$NM"; then
7460 ac_cv_prog_NM="$NM" # Let the user override the test.
7461else
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_NM="${ncn_progname}"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473done
7474done
7475
7476fi
7477fi
7478NM=$ac_cv_prog_NM
7479if test -n "$NM"; then
7480 echo "$as_me:$LINENO: result: $NM" >&5
7481echo "${ECHO_T}$NM" >&6
7482else
7483 echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
7485fi
7486
7487 done
7488fi
7489
7490for ncn_progname in nm; do
7491 if test -n "$ncn_tool_prefix"; then
7492 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7493set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7494echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7496if test "${ac_cv_prog_NM+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 if test -n "$NM"; then
7500 ac_cv_prog_NM="$NM" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514done
7515
7516fi
7517fi
7518NM=$ac_cv_prog_NM
7519if test -n "$NM"; then
7520 echo "$as_me:$LINENO: result: $NM" >&5
7521echo "${ECHO_T}$NM" >&6
7522else
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525fi
7526
7527 fi
7528 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7530set dummy ${ncn_progname}; ac_word=$2
7531echo "$as_me:$LINENO: checking for $ac_word" >&5
7532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7533if test "${ac_cv_prog_NM+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536 if test -n "$NM"; then
7537 ac_cv_prog_NM="$NM" # Let the user override the test.
7538else
7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_NM="${ncn_progname}"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552
7553fi
7554fi
7555NM=$ac_cv_prog_NM
7556if test -n "$NM"; then
7557 echo "$as_me:$LINENO: result: $NM" >&5
7558echo "${ECHO_T}$NM" >&6
7559else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562fi
7563
7564 fi
7565 test -n "$ac_cv_prog_NM" && break
7566done
7567
7568if test -z "$ac_cv_prog_NM" ; then
7569 set dummy nm
7570 if test $build = $host ; then
7571 NM="$2"
7572 else
7573 NM="${ncn_tool_prefix}$2"
7574 fi
7575fi
7576
7577
7578
7579if test -n "$RANLIB"; then
7580 ac_cv_prog_RANLIB=$RANLIB
7581elif test -n "$ac_cv_prog_RANLIB"; then
7582 RANLIB=$ac_cv_prog_RANLIB
7583fi
7584
7585if test -n "$ac_cv_prog_RANLIB"; then
7586 for ncn_progname in ranlib; do
7587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7588set dummy ${ncn_progname}; ac_word=$2
7589echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591if test "${ac_cv_prog_RANLIB+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 if test -n "$RANLIB"; then
7595 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_RANLIB="${ncn_progname}"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610
7611fi
7612fi
7613RANLIB=$ac_cv_prog_RANLIB
7614if test -n "$RANLIB"; then
7615 echo "$as_me:$LINENO: result: $RANLIB" >&5
7616echo "${ECHO_T}$RANLIB" >&6
7617else
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620fi
7621
7622 done
7623fi
7624
7625for ncn_progname in ranlib; do
7626 if test -n "$ncn_tool_prefix"; then
7627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7629echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631if test "${ac_cv_prog_RANLIB+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 if test -n "$RANLIB"; then
7635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7636else
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649done
7650
7651fi
7652fi
7653RANLIB=$ac_cv_prog_RANLIB
7654if test -n "$RANLIB"; then
7655 echo "$as_me:$LINENO: result: $RANLIB" >&5
7656echo "${ECHO_T}$RANLIB" >&6
7657else
7658 echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
7660fi
7661
7662 fi
7663 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7665set dummy ${ncn_progname}; ac_word=$2
7666echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7668if test "${ac_cv_prog_RANLIB+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 if test -n "$RANLIB"; then
7672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_prog_RANLIB="${ncn_progname}"
7682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 break 2
7684 fi
7685done
7686done
7687
7688fi
7689fi
7690RANLIB=$ac_cv_prog_RANLIB
7691if test -n "$RANLIB"; then
7692 echo "$as_me:$LINENO: result: $RANLIB" >&5
7693echo "${ECHO_T}$RANLIB" >&6
7694else
7695 echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6
7697fi
7698
7699 fi
7700 test -n "$ac_cv_prog_RANLIB" && break
7701done
7702
7703if test -z "$ac_cv_prog_RANLIB" ; then
7704 RANLIB=":"
7705fi
7706
7707
7708
7709if test -n "$STRIP"; then
7710 ac_cv_prog_STRIP=$STRIP
7711elif test -n "$ac_cv_prog_STRIP"; then
7712 STRIP=$ac_cv_prog_STRIP
7713fi
7714
7715if test -n "$ac_cv_prog_STRIP"; then
7716 for ncn_progname in strip; do
7717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7718set dummy ${ncn_progname}; ac_word=$2
7719echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721if test "${ac_cv_prog_STRIP+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724 if test -n "$STRIP"; then
7725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_STRIP="${ncn_progname}"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738done
7739done
7740
7741fi
7742fi
7743STRIP=$ac_cv_prog_STRIP
7744if test -n "$STRIP"; then
7745 echo "$as_me:$LINENO: result: $STRIP" >&5
7746echo "${ECHO_T}$STRIP" >&6
7747else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750fi
7751
7752 done
7753fi
7754
7755for ncn_progname in strip; do
7756 if test -n "$ncn_tool_prefix"; then
7757 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7758set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7759echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7761if test "${ac_cv_prog_STRIP+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764 if test -n "$STRIP"; then
7765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779done
7780
7781fi
7782fi
7783STRIP=$ac_cv_prog_STRIP
7784if test -n "$STRIP"; then
7785 echo "$as_me:$LINENO: result: $STRIP" >&5
7786echo "${ECHO_T}$STRIP" >&6
7787else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790fi
7791
7792 fi
7793 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7795set dummy ${ncn_progname}; ac_word=$2
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_STRIP+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801 if test -n "$STRIP"; then
7802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_STRIP="${ncn_progname}"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815done
7816done
7817
7818fi
7819fi
7820STRIP=$ac_cv_prog_STRIP
7821if test -n "$STRIP"; then
7822 echo "$as_me:$LINENO: result: $STRIP" >&5
7823echo "${ECHO_T}$STRIP" >&6
7824else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827fi
7828
7829 fi
7830 test -n "$ac_cv_prog_STRIP" && break
7831done
7832
7833if test -z "$ac_cv_prog_STRIP" ; then
7834 STRIP=":"
7835fi
7836
7837
7838
7839if test -n "$WINDRES"; then
7840 ac_cv_prog_WINDRES=$WINDRES
7841elif test -n "$ac_cv_prog_WINDRES"; then
7842 WINDRES=$ac_cv_prog_WINDRES
7843fi
7844
7845if test -n "$ac_cv_prog_WINDRES"; then
7846 for ncn_progname in windres; do
7847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7848set dummy ${ncn_progname}; ac_word=$2
7849echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7851if test "${ac_cv_prog_WINDRES+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 if test -n "$WINDRES"; then
7855 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_WINDRES="${ncn_progname}"
7865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868done
7869done
7870
7871fi
7872fi
7873WINDRES=$ac_cv_prog_WINDRES
7874if test -n "$WINDRES"; then
7875 echo "$as_me:$LINENO: result: $WINDRES" >&5
7876echo "${ECHO_T}$WINDRES" >&6
7877else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880fi
7881
7882 done
7883fi
7884
7885for ncn_progname in windres; do
7886 if test -n "$ncn_tool_prefix"; then
7887 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_prog_WINDRES+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 if test -n "$WINDRES"; then
7895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
7910
7911fi
7912fi
7913WINDRES=$ac_cv_prog_WINDRES
7914if test -n "$WINDRES"; then
7915 echo "$as_me:$LINENO: result: $WINDRES" >&5
7916echo "${ECHO_T}$WINDRES" >&6
7917else
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
7920fi
7921
7922 fi
7923 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7925set dummy ${ncn_progname}; ac_word=$2
7926echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928if test "${ac_cv_prog_WINDRES+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 if test -n "$WINDRES"; then
7932 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_WINDRES="${ncn_progname}"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947
7948fi
7949fi
7950WINDRES=$ac_cv_prog_WINDRES
7951if test -n "$WINDRES"; then
7952 echo "$as_me:$LINENO: result: $WINDRES" >&5
7953echo "${ECHO_T}$WINDRES" >&6
7954else
7955 echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6
7957fi
7958
7959 fi
7960 test -n "$ac_cv_prog_WINDRES" && break
7961done
7962
7963if test -z "$ac_cv_prog_WINDRES" ; then
7964 set dummy windres
7965 if test $build = $host ; then
7966 WINDRES="$2"
7967 else
7968 WINDRES="${ncn_tool_prefix}$2"
7969 fi
7970fi
7971
7972
7973
7974if test -n "$WINDMC"; then
7975 ac_cv_prog_WINDMC=$WINDMC
7976elif test -n "$ac_cv_prog_WINDMC"; then
7977 WINDMC=$ac_cv_prog_WINDMC
7978fi
7979
7980if test -n "$ac_cv_prog_WINDMC"; then
7981 for ncn_progname in windmc; do
7982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7983set dummy ${ncn_progname}; ac_word=$2
7984echo "$as_me:$LINENO: checking for $ac_word" >&5
7985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7986if test "${ac_cv_prog_WINDMC+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989 if test -n "$WINDMC"; then
7990 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_WINDMC="${ncn_progname}"
8000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003done
8004done
8005
8006fi
8007fi
8008WINDMC=$ac_cv_prog_WINDMC
8009if test -n "$WINDMC"; then
8010 echo "$as_me:$LINENO: result: $WINDMC" >&5
8011echo "${ECHO_T}$WINDMC" >&6
8012else
8013 echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
8015fi
8016
8017 done
8018fi
8019
8020for ncn_progname in windmc; do
8021 if test -n "$ncn_tool_prefix"; then
8022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8023set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8024echo "$as_me:$LINENO: checking for $ac_word" >&5
8025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8026if test "${ac_cv_prog_WINDMC+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 if test -n "$WINDMC"; then
8030 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043done
8044done
8045
8046fi
8047fi
8048WINDMC=$ac_cv_prog_WINDMC
8049if test -n "$WINDMC"; then
8050 echo "$as_me:$LINENO: result: $WINDMC" >&5
8051echo "${ECHO_T}$WINDMC" >&6
8052else
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
8055fi
8056
8057 fi
8058 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8060set dummy ${ncn_progname}; ac_word=$2
8061echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063if test "${ac_cv_prog_WINDMC+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066 if test -n "$WINDMC"; then
8067 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_WINDMC="${ncn_progname}"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080done
8081done
8082
8083fi
8084fi
8085WINDMC=$ac_cv_prog_WINDMC
8086if test -n "$WINDMC"; then
8087 echo "$as_me:$LINENO: result: $WINDMC" >&5
8088echo "${ECHO_T}$WINDMC" >&6
8089else
8090 echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
8092fi
8093
8094 fi
8095 test -n "$ac_cv_prog_WINDMC" && break
8096done
8097
8098if test -z "$ac_cv_prog_WINDMC" ; then
8099 set dummy windmc
8100 if test $build = $host ; then
8101 WINDMC="$2"
8102 else
8103 WINDMC="${ncn_tool_prefix}$2"
8104 fi
8105fi
8106
8107
8108
8109if test -n "$OBJCOPY"; then
8110 ac_cv_prog_OBJCOPY=$OBJCOPY
8111elif test -n "$ac_cv_prog_OBJCOPY"; then
8112 OBJCOPY=$ac_cv_prog_OBJCOPY
8113fi
8114
8115if test -n "$ac_cv_prog_OBJCOPY"; then
8116 for ncn_progname in objcopy; do
8117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8118set dummy ${ncn_progname}; ac_word=$2
8119echo "$as_me:$LINENO: checking for $ac_word" >&5
8120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8121if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 if test -n "$OBJCOPY"; then
8125 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8126else
8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_OBJCOPY="${ncn_progname}"
8135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138done
8139done
8140
8141fi
8142fi
8143OBJCOPY=$ac_cv_prog_OBJCOPY
8144if test -n "$OBJCOPY"; then
8145 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8146echo "${ECHO_T}$OBJCOPY" >&6
8147else
8148 echo "$as_me:$LINENO: result: no" >&5
8149echo "${ECHO_T}no" >&6
8150fi
8151
8152 done
8153fi
8154
8155for ncn_progname in objcopy; do
8156 if test -n "$ncn_tool_prefix"; then
8157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8161if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164 if test -n "$OBJCOPY"; then
8165 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8166else
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
8181fi
8182fi
8183OBJCOPY=$ac_cv_prog_OBJCOPY
8184if test -n "$OBJCOPY"; then
8185 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8186echo "${ECHO_T}$OBJCOPY" >&6
8187else
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
8190fi
8191
8192 fi
8193 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195set dummy ${ncn_progname}; ac_word=$2
8196echo "$as_me:$LINENO: checking for $ac_word" >&5
8197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 if test -n "$OBJCOPY"; then
8202 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8203else
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_OBJCOPY="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215done
8216done
8217
8218fi
8219fi
8220OBJCOPY=$ac_cv_prog_OBJCOPY
8221if test -n "$OBJCOPY"; then
8222 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8223echo "${ECHO_T}$OBJCOPY" >&6
8224else
8225 echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6
8227fi
8228
8229 fi
8230 test -n "$ac_cv_prog_OBJCOPY" && break
8231done
8232
8233if test -z "$ac_cv_prog_OBJCOPY" ; then
8234 set dummy objcopy
8235 if test $build = $host ; then
8236 OBJCOPY="$2"
8237 else
8238 OBJCOPY="${ncn_tool_prefix}$2"
8239 fi
8240fi
8241
8242
8243
8244if test -n "$OBJDUMP"; then
8245 ac_cv_prog_OBJDUMP=$OBJDUMP
8246elif test -n "$ac_cv_prog_OBJDUMP"; then
8247 OBJDUMP=$ac_cv_prog_OBJDUMP
8248fi
8249
8250if test -n "$ac_cv_prog_OBJDUMP"; then
8251 for ncn_progname in objdump; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
8254echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8256if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 if test -n "$OBJDUMP"; then
8260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_OBJDUMP="${ncn_progname}"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274done
8275
8276fi
8277fi
8278OBJDUMP=$ac_cv_prog_OBJDUMP
8279if test -n "$OBJDUMP"; then
8280 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8281echo "${ECHO_T}$OBJDUMP" >&6
8282else
8283 echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6
8285fi
8286
8287 done
8288fi
8289
8290for ncn_progname in objdump; do
8291 if test -n "$ncn_tool_prefix"; then
8292 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8293set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8294echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8296if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 if test -n "$OBJDUMP"; then
8300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314done
8315
8316fi
8317fi
8318OBJDUMP=$ac_cv_prog_OBJDUMP
8319if test -n "$OBJDUMP"; then
8320 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8321echo "${ECHO_T}$OBJDUMP" >&6
8322else
8323 echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
8325fi
8326
8327 fi
8328 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8330set dummy ${ncn_progname}; ac_word=$2
8331echo "$as_me:$LINENO: checking for $ac_word" >&5
8332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8333if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336 if test -n "$OBJDUMP"; then
8337 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8338else
8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_OBJDUMP="${ncn_progname}"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350done
8351done
8352
8353fi
8354fi
8355OBJDUMP=$ac_cv_prog_OBJDUMP
8356if test -n "$OBJDUMP"; then
8357 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8358echo "${ECHO_T}$OBJDUMP" >&6
8359else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362fi
8363
8364 fi
8365 test -n "$ac_cv_prog_OBJDUMP" && break
8366done
8367
8368if test -z "$ac_cv_prog_OBJDUMP" ; then
8369 set dummy objdump
8370 if test $build = $host ; then
8371 OBJDUMP="$2"
8372 else
8373 OBJDUMP="${ncn_tool_prefix}$2"
8374 fi
8375fi
8376
8377
8378
8379
8380
8381
8382# Target tools.
8383
8384# Check whether --with-build-time-tools or --without-build-time-tools was given.
8385if test "${with_build_time_tools+set}" = set; then
8386 withval="$with_build_time_tools"
8387 case x"$withval" in
8388 x/*) ;;
8389 *)
8390 with_build_time_tools=
8391 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8392echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8393 ;;
8394 esac
8395else
8396 with_build_time_tools=
8397fi;
8398
8399
8400
8401if test -n "$CC_FOR_TARGET"; then
8402 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8403elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8404 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8405fi
8406
8407if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8408 for ncn_progname in cc gcc; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_progname}; ac_word=$2
8411echo "$as_me:$LINENO: checking for $ac_word" >&5
8412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8413if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416 if test -n "$CC_FOR_TARGET"; then
8417 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431done
8432
8433fi
8434fi
8435CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8436if test -n "$CC_FOR_TARGET"; then
8437 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8438echo "${ECHO_T}$CC_FOR_TARGET" >&6
8439else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442fi
8443
8444 done
8445fi
8446
8447if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8448 for ncn_progname in cc gcc; do
8449 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8450echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8451 if test -x $with_build_time_tools/${ncn_progname}; then
8452 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 break
8456 else
8457 echo "$as_me:$LINENO: result: no" >&5
8458echo "${ECHO_T}no" >&6
8459 fi
8460 done
8461fi
8462
8463if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8464 for ncn_progname in cc gcc; do
8465 if test -n "$ncn_target_tool_prefix"; then
8466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8467set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 if test -n "$CC_FOR_TARGET"; then
8474 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488done
8489
8490fi
8491fi
8492CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8493if test -n "$CC_FOR_TARGET"; then
8494 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8495echo "${ECHO_T}$CC_FOR_TARGET" >&6
8496else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499fi
8500
8501 fi
8502 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504set dummy ${ncn_progname}; ac_word=$2
8505echo "$as_me:$LINENO: checking for $ac_word" >&5
8506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8507if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510 if test -n "$CC_FOR_TARGET"; then
8511 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524done
8525done
8526
8527fi
8528fi
8529CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8530if test -n "$CC_FOR_TARGET"; then
8531 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8532echo "${ECHO_T}$CC_FOR_TARGET" >&6
8533else
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
8536fi
8537
8538 fi
8539 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8540 done
8541fi
8542
8543if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8544 set dummy cc gcc
8545 if test $build = $target ; then
8546 CC_FOR_TARGET="$2"
8547 else
8548 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8549 fi
8550else
8551 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8552fi
8553
8554
8555
8556if test -n "$CXX_FOR_TARGET"; then
8557 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8558elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8559 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8560fi
8561
8562if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8563 for ncn_progname in c++ g++ cxx gxx; do
8564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_progname}; ac_word=$2
8566echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570else
8571 if test -n "$CXX_FOR_TARGET"; then
8572 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586done
8587
8588fi
8589fi
8590CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8591if test -n "$CXX_FOR_TARGET"; then
8592 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8593echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8594else
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
8597fi
8598
8599 done
8600fi
8601
8602if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8603 for ncn_progname in c++ g++ cxx gxx; do
8604 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8605echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8606 if test -x $with_build_time_tools/${ncn_progname}; then
8607 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8608 echo "$as_me:$LINENO: result: yes" >&5
8609echo "${ECHO_T}yes" >&6
8610 break
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
8614 fi
8615 done
8616fi
8617
8618if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8619 for ncn_progname in c++ g++ cxx gxx; do
8620 if test -n "$ncn_target_tool_prefix"; then
8621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8622set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627else
8628 if test -n "$CXX_FOR_TARGET"; then
8629 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8630else
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
8645fi
8646fi
8647CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8648if test -n "$CXX_FOR_TARGET"; then
8649 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8650echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8651else
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
8654fi
8655
8656 fi
8657 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8659set dummy ${ncn_progname}; ac_word=$2
8660echo "$as_me:$LINENO: checking for $ac_word" >&5
8661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664else
8665 if test -n "$CXX_FOR_TARGET"; then
8666 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8667else
8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679done
8680done
8681
8682fi
8683fi
8684CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8685if test -n "$CXX_FOR_TARGET"; then
8686 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8687echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8688else
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
8691fi
8692
8693 fi
8694 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8695 done
8696fi
8697
8698if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8699 set dummy c++ g++ cxx gxx
8700 if test $build = $target ; then
8701 CXX_FOR_TARGET="$2"
8702 else
8703 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8704 fi
8705else
8706 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8707fi
8708
8709
8710
8711if test -n "$GCC_FOR_TARGET"; then
8712 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8713elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8714 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8715fi
8716
8717if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8718 for ncn_progname in gcc; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720set dummy ${ncn_progname}; ac_word=$2
8721echo "$as_me:$LINENO: checking for $ac_word" >&5
8722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8723if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else
8726 if test -n "$GCC_FOR_TARGET"; then
8727 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8728else
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8739 fi
8740done
8741done
8742
8743fi
8744fi
8745GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8746if test -n "$GCC_FOR_TARGET"; then
8747 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8748echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8749else
8750 echo "$as_me:$LINENO: result: no" >&5
8751echo "${ECHO_T}no" >&6
8752fi
8753
8754 done
8755fi
8756
8757if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8758 for ncn_progname in gcc; do
8759 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8760echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8761 if test -x $with_build_time_tools/${ncn_progname}; then
8762 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8763 echo "$as_me:$LINENO: result: yes" >&5
8764echo "${ECHO_T}yes" >&6
8765 break
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770 done
8771fi
8772
8773if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8774 for ncn_progname in gcc; do
8775 if test -n "$ncn_target_tool_prefix"; then
8776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8777set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782else
8783 if test -n "$GCC_FOR_TARGET"; then
8784 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797done
8798done
8799
8800fi
8801fi
8802GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8803if test -n "$GCC_FOR_TARGET"; then
8804 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8805echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8806else
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
8809fi
8810
8811 fi
8812 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8814set dummy ${ncn_progname}; ac_word=$2
8815echo "$as_me:$LINENO: checking for $ac_word" >&5
8816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 if test -n "$GCC_FOR_TARGET"; then
8821 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8822else
8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834done
8835done
8836
8837fi
8838fi
8839GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8840if test -n "$GCC_FOR_TARGET"; then
8841 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8842echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8843else
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
8846fi
8847
8848 fi
8849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8850 done
8851fi
8852
8853if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8854 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8855else
8856 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8857fi
8858
8859
8860
8861if test -n "$GCJ_FOR_TARGET"; then
8862 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8863elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8864 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8865fi
8866
8867if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8868 for ncn_progname in gcj; do
8869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8870set dummy ${ncn_progname}; ac_word=$2
8871echo "$as_me:$LINENO: checking for $ac_word" >&5
8872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875else
8876 if test -n "$GCJ_FOR_TARGET"; then
8877 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8878else
8879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH
8881do
8882 IFS=$as_save_IFS
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 break 2
8889 fi
8890done
8891done
8892
8893fi
8894fi
8895GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8896if test -n "$GCJ_FOR_TARGET"; then
8897 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8898echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8899else
8900 echo "$as_me:$LINENO: result: no" >&5
8901echo "${ECHO_T}no" >&6
8902fi
8903
8904 done
8905fi
8906
8907if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8908 for ncn_progname in gcj; do
8909 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8910echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8911 if test -x $with_build_time_tools/${ncn_progname}; then
8912 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8913 echo "$as_me:$LINENO: result: yes" >&5
8914echo "${ECHO_T}yes" >&6
8915 break
8916 else
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
8919 fi
8920 done
8921fi
8922
8923if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8924 for ncn_progname in gcj; do
8925 if test -n "$ncn_target_tool_prefix"; then
8926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 if test -n "$GCJ_FOR_TARGET"; then
8934 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948done
8949
8950fi
8951fi
8952GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8953if test -n "$GCJ_FOR_TARGET"; then
8954 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8955echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8956else
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
8959fi
8960
8961 fi
8962 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8964set dummy ${ncn_progname}; ac_word=$2
8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969else
8970 if test -n "$GCJ_FOR_TARGET"; then
8971 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8972else
8973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974for as_dir in $PATH
8975do
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8983 fi
8984done
8985done
8986
8987fi
8988fi
8989GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8990if test -n "$GCJ_FOR_TARGET"; then
8991 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8992echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8993else
8994 echo "$as_me:$LINENO: result: no" >&5
8995echo "${ECHO_T}no" >&6
8996fi
8997
8998 fi
8999 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9000 done
9001fi
9002
9003if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9004 set dummy gcj
9005 if test $build = $target ; then
9006 GCJ_FOR_TARGET="$2"
9007 else
9008 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9009 fi
9010else
9011 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9012fi
9013
9014
9015
9016if test -n "$GFORTRAN_FOR_TARGET"; then
9017 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9018elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9019 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9020fi
9021
9022if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9023 for ncn_progname in gfortran; do
9024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9025set dummy ${ncn_progname}; ac_word=$2
9026echo "$as_me:$LINENO: checking for $ac_word" >&5
9027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9028if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031 if test -n "$GFORTRAN_FOR_TARGET"; then
9032 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9033else
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9041 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 break 2
9044 fi
9045done
9046done
9047
9048fi
9049fi
9050GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9051if test -n "$GFORTRAN_FOR_TARGET"; then
9052 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9053echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9054else
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
9057fi
9058
9059 done
9060fi
9061
9062if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9063 for ncn_progname in gfortran; do
9064 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9065echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9066 if test -x $with_build_time_tools/${ncn_progname}; then
9067 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
9070 break
9071 else
9072 echo "$as_me:$LINENO: result: no" >&5
9073echo "${ECHO_T}no" >&6
9074 fi
9075 done
9076fi
9077
9078if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9079 for ncn_progname in gfortran; do
9080 if test -n "$ncn_target_tool_prefix"; then
9081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9082set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9083echo "$as_me:$LINENO: checking for $ac_word" >&5
9084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9085if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087else
9088 if test -n "$GFORTRAN_FOR_TARGET"; then
9089 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9090else
9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9101 fi
9102done
9103done
9104
9105fi
9106fi
9107GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9108if test -n "$GFORTRAN_FOR_TARGET"; then
9109 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9110echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9111else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114fi
9115
9116 fi
9117 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9119set dummy ${ncn_progname}; ac_word=$2
9120echo "$as_me:$LINENO: checking for $ac_word" >&5
9121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9122if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124else
9125 if test -n "$GFORTRAN_FOR_TARGET"; then
9126 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9138 fi
9139done
9140done
9141
9142fi
9143fi
9144GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9145if test -n "$GFORTRAN_FOR_TARGET"; then
9146 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9147echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9148else
9149 echo "$as_me:$LINENO: result: no" >&5
9150echo "${ECHO_T}no" >&6
9151fi
9152
9153 fi
9154 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9155 done
9156fi
9157
9158if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9159 set dummy gfortran
9160 if test $build = $target ; then
9161 GFORTRAN_FOR_TARGET="$2"
9162 else
9163 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9164 fi
9165else
9166 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9167fi
9168
9169
9170
9171cat > conftest.c << \EOF
9172#ifdef __GNUC__
9173 gcc_yay;
9174#endif
9175EOF
9176if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9177 have_gcc_for_target=yes
9178else
9179 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9180 have_gcc_for_target=no
9181fi
9182rm conftest.c
9183
9184
9185
9186
9187if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9188 if test -n "$with_build_time_tools"; then
9189 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9190echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9191 if test -x $with_build_time_tools/ar; then
9192 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9193 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9194 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9195echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9196 else
9197 echo "$as_me:$LINENO: result: no" >&5
9198echo "${ECHO_T}no" >&6
9199 fi
9200 elif test $build != $host && test $have_gcc_for_target = yes; then
9201 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9202 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9203 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9204 fi
9205fi
9206if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9207 # Extract the first word of "ar", so it can be a program name with args.
9208set dummy ar; ac_word=$2
9209echo "$as_me:$LINENO: checking for $ac_word" >&5
9210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 case $AR_FOR_TARGET in
9215 [\\/]* | ?:[\\/]*)
9216 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9217 ;;
9218 *)
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $gcc_cv_tool_dirs
9221do
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_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230done
9231done
9232
9233 ;;
9234esac
9235fi
9236AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9237
9238if test -n "$AR_FOR_TARGET"; then
9239 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9240echo "${ECHO_T}$AR_FOR_TARGET" >&6
9241else
9242 echo "$as_me:$LINENO: result: no" >&5
9243echo "${ECHO_T}no" >&6
9244fi
9245
9246fi
9247if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9248
9249
9250if test -n "$AR_FOR_TARGET"; then
9251 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9252elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9253 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9254fi
9255
9256if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9257 for ncn_progname in ar; do
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259set dummy ${ncn_progname}; ac_word=$2
9260echo "$as_me:$LINENO: checking for $ac_word" >&5
9261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265 if test -n "$AR_FOR_TARGET"; then
9266 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9267else
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9278 fi
9279done
9280done
9281
9282fi
9283fi
9284AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9285if test -n "$AR_FOR_TARGET"; then
9286 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9287echo "${ECHO_T}$AR_FOR_TARGET" >&6
9288else
9289 echo "$as_me:$LINENO: result: no" >&5
9290echo "${ECHO_T}no" >&6
9291fi
9292
9293 done
9294fi
9295
9296if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9297 for ncn_progname in ar; do
9298 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9299echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9300 if test -x $with_build_time_tools/${ncn_progname}; then
9301 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 break
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309 done
9310fi
9311
9312if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9313 for ncn_progname in ar; do
9314 if test -n "$ncn_target_tool_prefix"; then
9315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9317echo "$as_me:$LINENO: checking for $ac_word" >&5
9318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9319if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321else
9322 if test -n "$AR_FOR_TARGET"; then
9323 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9324else
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9332 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336done
9337done
9338
9339fi
9340fi
9341AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9342if test -n "$AR_FOR_TARGET"; then
9343 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9344echo "${ECHO_T}$AR_FOR_TARGET" >&6
9345else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348fi
9349
9350 fi
9351 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_progname}; ac_word=$2
9354echo "$as_me:$LINENO: checking for $ac_word" >&5
9355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9356if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358else
9359 if test -n "$AR_FOR_TARGET"; then
9360 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373done
9374done
9375
9376fi
9377fi
9378AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9379if test -n "$AR_FOR_TARGET"; then
9380 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9381echo "${ECHO_T}$AR_FOR_TARGET" >&6
9382else
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
9385fi
9386
9387 fi
9388 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9389 done
9390fi
9391
9392if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9393 set dummy ar
9394 if test $build = $target ; then
9395 AR_FOR_TARGET="$2"
9396 else
9397 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9398 fi
9399else
9400 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9401fi
9402
9403else
9404 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9405fi
9406
9407
9408
9409
9410if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9411 if test -n "$with_build_time_tools"; then
9412 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9413echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9414 if test -x $with_build_time_tools/as; then
9415 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9416 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9417 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9418echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9419 else
9420 echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
9422 fi
9423 elif test $build != $host && test $have_gcc_for_target = yes; then
9424 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9425 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9426 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9427 fi
9428fi
9429if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9430 # Extract the first word of "as", so it can be a program name with args.
9431set dummy as; ac_word=$2
9432echo "$as_me:$LINENO: checking for $ac_word" >&5
9433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9434if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436else
9437 case $AS_FOR_TARGET in
9438 [\\/]* | ?:[\\/]*)
9439 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9440 ;;
9441 *)
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $gcc_cv_tool_dirs
9444do
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_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9452 fi
9453done
9454done
9455
9456 ;;
9457esac
9458fi
9459AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9460
9461if test -n "$AS_FOR_TARGET"; then
9462 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9463echo "${ECHO_T}$AS_FOR_TARGET" >&6
9464else
9465 echo "$as_me:$LINENO: result: no" >&5
9466echo "${ECHO_T}no" >&6
9467fi
9468
9469fi
9470if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9471
9472
9473if test -n "$AS_FOR_TARGET"; then
9474 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9475elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9476 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9477fi
9478
9479if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9480 for ncn_progname in as; do
9481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9482set dummy ${ncn_progname}; ac_word=$2
9483echo "$as_me:$LINENO: checking for $ac_word" >&5
9484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9485if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 if test -n "$AS_FOR_TARGET"; then
9489 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9490else
9491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492for as_dir in $PATH
9493do
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9498 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9501 fi
9502done
9503done
9504
9505fi
9506fi
9507AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9508if test -n "$AS_FOR_TARGET"; then
9509 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9510echo "${ECHO_T}$AS_FOR_TARGET" >&6
9511else
9512 echo "$as_me:$LINENO: result: no" >&5
9513echo "${ECHO_T}no" >&6
9514fi
9515
9516 done
9517fi
9518
9519if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9520 for ncn_progname in as; do
9521 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9522echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9523 if test -x $with_build_time_tools/${ncn_progname}; then
9524 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9525 echo "$as_me:$LINENO: result: yes" >&5
9526echo "${ECHO_T}yes" >&6
9527 break
9528 else
9529 echo "$as_me:$LINENO: result: no" >&5
9530echo "${ECHO_T}no" >&6
9531 fi
9532 done
9533fi
9534
9535if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9536 for ncn_progname in as; do
9537 if test -n "$ncn_target_tool_prefix"; then
9538 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9539set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9540echo "$as_me:$LINENO: checking for $ac_word" >&5
9541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9542if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545 if test -n "$AS_FOR_TARGET"; then
9546 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9547else
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9558 fi
9559done
9560done
9561
9562fi
9563fi
9564AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9565if test -n "$AS_FOR_TARGET"; then
9566 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9567echo "${ECHO_T}$AS_FOR_TARGET" >&6
9568else
9569 echo "$as_me:$LINENO: result: no" >&5
9570echo "${ECHO_T}no" >&6
9571fi
9572
9573 fi
9574 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9576set dummy ${ncn_progname}; ac_word=$2
9577echo "$as_me:$LINENO: checking for $ac_word" >&5
9578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9579if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582 if test -n "$AS_FOR_TARGET"; then
9583 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9584else
9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586for as_dir in $PATH
9587do
9588 IFS=$as_save_IFS
9589 test -z "$as_dir" && as_dir=.
9590 for ac_exec_ext in '' $ac_executable_extensions; do
9591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9594 break 2
9595 fi
9596done
9597done
9598
9599fi
9600fi
9601AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9602if test -n "$AS_FOR_TARGET"; then
9603 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9604echo "${ECHO_T}$AS_FOR_TARGET" >&6
9605else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608fi
9609
9610 fi
9611 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9612 done
9613fi
9614
9615if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9616 set dummy as
9617 if test $build = $target ; then
9618 AS_FOR_TARGET="$2"
9619 else
9620 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9621 fi
9622else
9623 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9624fi
9625
9626else
9627 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9628fi
9629
9630
9631
9632
9633if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9634 if test -n "$with_build_time_tools"; then
9635 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9636echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9637 if test -x $with_build_time_tools/dlltool; then
9638 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9639 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9640 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9641echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9642 else
9643 echo "$as_me:$LINENO: result: no" >&5
9644echo "${ECHO_T}no" >&6
9645 fi
9646 elif test $build != $host && test $have_gcc_for_target = yes; then
9647 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9648 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9649 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9650 fi
9651fi
9652if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9653 # Extract the first word of "dlltool", so it can be a program name with args.
9654set dummy dlltool; ac_word=$2
9655echo "$as_me:$LINENO: checking for $ac_word" >&5
9656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9657if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660 case $DLLTOOL_FOR_TARGET in
9661 [\\/]* | ?:[\\/]*)
9662 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9663 ;;
9664 *)
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $gcc_cv_tool_dirs
9667do
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_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9675 fi
9676done
9677done
9678
9679 ;;
9680esac
9681fi
9682DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9683
9684if test -n "$DLLTOOL_FOR_TARGET"; then
9685 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9686echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9687else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690fi
9691
9692fi
9693if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9694
9695
9696if test -n "$DLLTOOL_FOR_TARGET"; then
9697 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9698elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9699 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9700fi
9701
9702if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9703 for ncn_progname in dlltool; do
9704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9705set dummy ${ncn_progname}; ac_word=$2
9706echo "$as_me:$LINENO: checking for $ac_word" >&5
9707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else
9711 if test -n "$DLLTOOL_FOR_TARGET"; then
9712 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9713else
9714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715for as_dir in $PATH
9716do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
9719 for ac_exec_ext in '' $ac_executable_extensions; do
9720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9721 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 break 2
9724 fi
9725done
9726done
9727
9728fi
9729fi
9730DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9731if test -n "$DLLTOOL_FOR_TARGET"; then
9732 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9733echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9734else
9735 echo "$as_me:$LINENO: result: no" >&5
9736echo "${ECHO_T}no" >&6
9737fi
9738
9739 done
9740fi
9741
9742if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9743 for ncn_progname in dlltool; do
9744 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9745echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9746 if test -x $with_build_time_tools/${ncn_progname}; then
9747 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
9750 break
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753echo "${ECHO_T}no" >&6
9754 fi
9755 done
9756fi
9757
9758if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9759 for ncn_progname in dlltool; do
9760 if test -n "$ncn_target_tool_prefix"; then
9761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9763echo "$as_me:$LINENO: checking for $ac_word" >&5
9764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9765if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 if test -n "$DLLTOOL_FOR_TARGET"; then
9769 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783done
9784
9785fi
9786fi
9787DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9788if test -n "$DLLTOOL_FOR_TARGET"; then
9789 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9790echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9791else
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
9794fi
9795
9796 fi
9797 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9799set dummy ${ncn_progname}; ac_word=$2
9800echo "$as_me:$LINENO: checking for $ac_word" >&5
9801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9802if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 if test -n "$DLLTOOL_FOR_TARGET"; then
9806 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9807else
9808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809for as_dir in $PATH
9810do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819done
9820done
9821
9822fi
9823fi
9824DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9825if test -n "$DLLTOOL_FOR_TARGET"; then
9826 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9827echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9828else
9829 echo "$as_me:$LINENO: result: no" >&5
9830echo "${ECHO_T}no" >&6
9831fi
9832
9833 fi
9834 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9835 done
9836fi
9837
9838if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9839 set dummy dlltool
9840 if test $build = $target ; then
9841 DLLTOOL_FOR_TARGET="$2"
9842 else
9843 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9844 fi
9845else
9846 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9847fi
9848
9849else
9850 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9851fi
9852
9853
9854
9855
9856if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9857 if test -n "$with_build_time_tools"; then
9858 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9859echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9860 if test -x $with_build_time_tools/ld; then
9861 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9862 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9863 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9864echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9865 else
9866 echo "$as_me:$LINENO: result: no" >&5
9867echo "${ECHO_T}no" >&6
9868 fi
9869 elif test $build != $host && test $have_gcc_for_target = yes; then
9870 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9871 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9872 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9873 fi
9874fi
9875if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9876 # Extract the first word of "ld", so it can be a program name with args.
9877set dummy ld; ac_word=$2
9878echo "$as_me:$LINENO: checking for $ac_word" >&5
9879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9880if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882else
9883 case $LD_FOR_TARGET in
9884 [\\/]* | ?:[\\/]*)
9885 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9886 ;;
9887 *)
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889for as_dir in $gcc_cv_tool_dirs
9890do
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_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9898 fi
9899done
9900done
9901
9902 ;;
9903esac
9904fi
9905LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9906
9907if test -n "$LD_FOR_TARGET"; then
9908 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9909echo "${ECHO_T}$LD_FOR_TARGET" >&6
9910else
9911 echo "$as_me:$LINENO: result: no" >&5
9912echo "${ECHO_T}no" >&6
9913fi
9914
9915fi
9916if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9917
9918
9919if test -n "$LD_FOR_TARGET"; then
9920 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9921elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9922 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9923fi
9924
9925if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9926 for ncn_progname in ld; do
9927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9928set dummy ${ncn_progname}; ac_word=$2
9929echo "$as_me:$LINENO: checking for $ac_word" >&5
9930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9931if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934 if test -n "$LD_FOR_TARGET"; then
9935 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9944 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9947 fi
9948done
9949done
9950
9951fi
9952fi
9953LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9954if test -n "$LD_FOR_TARGET"; then
9955 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9956echo "${ECHO_T}$LD_FOR_TARGET" >&6
9957else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960fi
9961
9962 done
9963fi
9964
9965if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9966 for ncn_progname in ld; do
9967 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9969 if test -x $with_build_time_tools/${ncn_progname}; then
9970 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9971 echo "$as_me:$LINENO: result: yes" >&5
9972echo "${ECHO_T}yes" >&6
9973 break
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
9977 fi
9978 done
9979fi
9980
9981if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9982 for ncn_progname in ld; do
9983 if test -n "$ncn_target_tool_prefix"; then
9984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9986echo "$as_me:$LINENO: checking for $ac_word" >&5
9987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9988if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990else
9991 if test -n "$LD_FOR_TARGET"; then
9992 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9993else
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005done
10006done
10007
10008fi
10009fi
10010LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10011if test -n "$LD_FOR_TARGET"; then
10012 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10013echo "${ECHO_T}$LD_FOR_TARGET" >&6
10014else
10015 echo "$as_me:$LINENO: result: no" >&5
10016echo "${ECHO_T}no" >&6
10017fi
10018
10019 fi
10020 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10022set dummy ${ncn_progname}; ac_word=$2
10023echo "$as_me:$LINENO: checking for $ac_word" >&5
10024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10025if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 if test -n "$LD_FOR_TARGET"; then
10029 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10030else
10031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032for as_dir in $PATH
10033do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042done
10043done
10044
10045fi
10046fi
10047LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10048if test -n "$LD_FOR_TARGET"; then
10049 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10050echo "${ECHO_T}$LD_FOR_TARGET" >&6
10051else
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
10054fi
10055
10056 fi
10057 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10058 done
10059fi
10060
10061if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10062 set dummy ld
10063 if test $build = $target ; then
10064 LD_FOR_TARGET="$2"
10065 else
10066 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10067 fi
10068else
10069 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10070fi
10071
10072else
10073 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10074fi
10075
10076
10077
10078
10079if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10080 if test -n "$with_build_time_tools"; then
10081 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10082echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10083 if test -x $with_build_time_tools/lipo; then
10084 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10085 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10086 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10087echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10088 else
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
10091 fi
10092 elif test $build != $host && test $have_gcc_for_target = yes; then
10093 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10094 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10095 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10096 fi
10097fi
10098if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10099 # Extract the first word of "lipo", so it can be a program name with args.
10100set dummy lipo; ac_word=$2
10101echo "$as_me:$LINENO: checking for $ac_word" >&5
10102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106 case $LIPO_FOR_TARGET in
10107 [\\/]* | ?:[\\/]*)
10108 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10109 ;;
10110 *)
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $gcc_cv_tool_dirs
10113do
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_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122done
10123done
10124
10125 ;;
10126esac
10127fi
10128LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10129
10130if test -n "$LIPO_FOR_TARGET"; then
10131 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10132echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10133else
10134 echo "$as_me:$LINENO: result: no" >&5
10135echo "${ECHO_T}no" >&6
10136fi
10137
10138fi
10139if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10140
10141
10142if test -n "$LIPO_FOR_TARGET"; then
10143 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10144elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10145 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10146fi
10147
10148if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10149 for ncn_progname in lipo; do
10150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10151set dummy ${ncn_progname}; ac_word=$2
10152echo "$as_me:$LINENO: checking for $ac_word" >&5
10153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10154if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157 if test -n "$LIPO_FOR_TARGET"; then
10158 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10159else
10160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161for as_dir in $PATH
10162do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10170 fi
10171done
10172done
10173
10174fi
10175fi
10176LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10177if test -n "$LIPO_FOR_TARGET"; then
10178 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10179echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10180else
10181 echo "$as_me:$LINENO: result: no" >&5
10182echo "${ECHO_T}no" >&6
10183fi
10184
10185 done
10186fi
10187
10188if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10189 for ncn_progname in lipo; do
10190 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10191echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10192 if test -x $with_build_time_tools/${ncn_progname}; then
10193 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10194 echo "$as_me:$LINENO: result: yes" >&5
10195echo "${ECHO_T}yes" >&6
10196 break
10197 else
10198 echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
10200 fi
10201 done
10202fi
10203
10204if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10205 for ncn_progname in lipo; do
10206 if test -n "$ncn_target_tool_prefix"; then
10207 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10208set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10209echo "$as_me:$LINENO: checking for $ac_word" >&5
10210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10211if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 if test -n "$LIPO_FOR_TARGET"; then
10215 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10224 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229done
10230
10231fi
10232fi
10233LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10234if test -n "$LIPO_FOR_TARGET"; then
10235 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10236echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10237else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240fi
10241
10242 fi
10243 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245set dummy ${ncn_progname}; ac_word=$2
10246echo "$as_me:$LINENO: checking for $ac_word" >&5
10247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10248if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250else
10251 if test -n "$LIPO_FOR_TARGET"; then
10252 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10253else
10254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255for as_dir in $PATH
10256do
10257 IFS=$as_save_IFS
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10263 break 2
10264 fi
10265done
10266done
10267
10268fi
10269fi
10270LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10271if test -n "$LIPO_FOR_TARGET"; then
10272 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10273echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10274else
10275 echo "$as_me:$LINENO: result: no" >&5
10276echo "${ECHO_T}no" >&6
10277fi
10278
10279 fi
10280 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10281 done
10282fi
10283
10284if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10285 set dummy lipo
10286 if test $build = $target ; then
10287 LIPO_FOR_TARGET="$2"
10288 else
10289 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10290 fi
10291else
10292 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10293fi
10294
10295else
10296 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10297fi
10298
10299
10300
10301
10302if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10303 if test -n "$with_build_time_tools"; then
10304 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10305echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10306 if test -x $with_build_time_tools/nm; then
10307 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10308 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10309 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10310echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10311 else
10312 echo "$as_me:$LINENO: result: no" >&5
10313echo "${ECHO_T}no" >&6
10314 fi
10315 elif test $build != $host && test $have_gcc_for_target = yes; then
10316 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10317 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10318 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10319 fi
10320fi
10321if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10322 # Extract the first word of "nm", so it can be a program name with args.
10323set dummy nm; ac_word=$2
10324echo "$as_me:$LINENO: checking for $ac_word" >&5
10325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10326if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 case $NM_FOR_TARGET in
10330 [\\/]* | ?:[\\/]*)
10331 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10332 ;;
10333 *)
10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $gcc_cv_tool_dirs
10336do
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_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345done
10346done
10347
10348 ;;
10349esac
10350fi
10351NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10352
10353if test -n "$NM_FOR_TARGET"; then
10354 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10355echo "${ECHO_T}$NM_FOR_TARGET" >&6
10356else
10357 echo "$as_me:$LINENO: result: no" >&5
10358echo "${ECHO_T}no" >&6
10359fi
10360
10361fi
10362if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10363
10364
10365if test -n "$NM_FOR_TARGET"; then
10366 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10367elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10368 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10369fi
10370
10371if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10372 for ncn_progname in nm; do
10373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10374set dummy ${ncn_progname}; ac_word=$2
10375echo "$as_me:$LINENO: checking for $ac_word" >&5
10376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10377if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380 if test -n "$NM_FOR_TARGET"; then
10381 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10382else
10383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384for as_dir in $PATH
10385do
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10390 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10393 fi
10394done
10395done
10396
10397fi
10398fi
10399NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10400if test -n "$NM_FOR_TARGET"; then
10401 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10402echo "${ECHO_T}$NM_FOR_TARGET" >&6
10403else
10404 echo "$as_me:$LINENO: result: no" >&5
10405echo "${ECHO_T}no" >&6
10406fi
10407
10408 done
10409fi
10410
10411if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10412 for ncn_progname in nm; do
10413 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10414echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10415 if test -x $with_build_time_tools/${ncn_progname}; then
10416 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10417 echo "$as_me:$LINENO: result: yes" >&5
10418echo "${ECHO_T}yes" >&6
10419 break
10420 else
10421 echo "$as_me:$LINENO: result: no" >&5
10422echo "${ECHO_T}no" >&6
10423 fi
10424 done
10425fi
10426
10427if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10428 for ncn_progname in nm; do
10429 if test -n "$ncn_target_tool_prefix"; then
10430 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10431set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10432echo "$as_me:$LINENO: checking for $ac_word" >&5
10433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10434if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437 if test -n "$NM_FOR_TARGET"; then
10438 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10439else
10440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441for as_dir in $PATH
10442do
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10450 fi
10451done
10452done
10453
10454fi
10455fi
10456NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10457if test -n "$NM_FOR_TARGET"; then
10458 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10459echo "${ECHO_T}$NM_FOR_TARGET" >&6
10460else
10461 echo "$as_me:$LINENO: result: no" >&5
10462echo "${ECHO_T}no" >&6
10463fi
10464
10465 fi
10466 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10468set dummy ${ncn_progname}; ac_word=$2
10469echo "$as_me:$LINENO: checking for $ac_word" >&5
10470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10471if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 if test -n "$NM_FOR_TARGET"; then
10475 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10476else
10477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in $PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 break 2
10487 fi
10488done
10489done
10490
10491fi
10492fi
10493NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10494if test -n "$NM_FOR_TARGET"; then
10495 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10496echo "${ECHO_T}$NM_FOR_TARGET" >&6
10497else
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
10500fi
10501
10502 fi
10503 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10504 done
10505fi
10506
10507if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10508 set dummy nm
10509 if test $build = $target ; then
10510 NM_FOR_TARGET="$2"
10511 else
10512 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10513 fi
10514else
10515 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10516fi
10517
10518else
10519 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10520fi
10521
10522
10523
10524
10525if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10526 if test -n "$with_build_time_tools"; then
10527 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10528echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10529 if test -x $with_build_time_tools/objdump; then
10530 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10531 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10532 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10533echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10534 else
10535 echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
10537 fi
10538 elif test $build != $host && test $have_gcc_for_target = yes; then
10539 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10540 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10541 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10542 fi
10543fi
10544if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10545 # Extract the first word of "objdump", so it can be a program name with args.
10546set dummy objdump; ac_word=$2
10547echo "$as_me:$LINENO: checking for $ac_word" >&5
10548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552 case $OBJDUMP_FOR_TARGET in
10553 [\\/]* | ?:[\\/]*)
10554 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10555 ;;
10556 *)
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $gcc_cv_tool_dirs
10559do
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_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568done
10569done
10570
10571 ;;
10572esac
10573fi
10574OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10575
10576if test -n "$OBJDUMP_FOR_TARGET"; then
10577 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10578echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10579else
10580 echo "$as_me:$LINENO: result: no" >&5
10581echo "${ECHO_T}no" >&6
10582fi
10583
10584fi
10585if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10586
10587
10588if test -n "$OBJDUMP_FOR_TARGET"; then
10589 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10590elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10591 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10592fi
10593
10594if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10595 for ncn_progname in objdump; do
10596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10597set dummy ${ncn_progname}; ac_word=$2
10598echo "$as_me:$LINENO: checking for $ac_word" >&5
10599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10600if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603 if test -n "$OBJDUMP_FOR_TARGET"; then
10604 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10605else
10606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607for as_dir in $PATH
10608do
10609 IFS=$as_save_IFS
10610 test -z "$as_dir" && as_dir=.
10611 for ac_exec_ext in '' $ac_executable_extensions; do
10612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10613 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10615 break 2
10616 fi
10617done
10618done
10619
10620fi
10621fi
10622OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10623if test -n "$OBJDUMP_FOR_TARGET"; then
10624 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10625echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10626else
10627 echo "$as_me:$LINENO: result: no" >&5
10628echo "${ECHO_T}no" >&6
10629fi
10630
10631 done
10632fi
10633
10634if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10635 for ncn_progname in objdump; do
10636 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10637echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10638 if test -x $with_build_time_tools/${ncn_progname}; then
10639 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10640 echo "$as_me:$LINENO: result: yes" >&5
10641echo "${ECHO_T}yes" >&6
10642 break
10643 else
10644 echo "$as_me:$LINENO: result: no" >&5
10645echo "${ECHO_T}no" >&6
10646 fi
10647 done
10648fi
10649
10650if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10651 for ncn_progname in objdump; do
10652 if test -n "$ncn_target_tool_prefix"; then
10653 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10654set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10657if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 if test -n "$OBJDUMP_FOR_TARGET"; then
10661 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10662else
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675done
10676
10677fi
10678fi
10679OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10680if test -n "$OBJDUMP_FOR_TARGET"; then
10681 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10682echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10683else
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
10686fi
10687
10688 fi
10689 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10691set dummy ${ncn_progname}; ac_word=$2
10692echo "$as_me:$LINENO: checking for $ac_word" >&5
10693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10694if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 if test -n "$OBJDUMP_FOR_TARGET"; then
10698 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711done
10712done
10713
10714fi
10715fi
10716OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10717if test -n "$OBJDUMP_FOR_TARGET"; then
10718 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10719echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10720else
10721 echo "$as_me:$LINENO: result: no" >&5
10722echo "${ECHO_T}no" >&6
10723fi
10724
10725 fi
10726 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10727 done
10728fi
10729
10730if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10731 set dummy objdump
10732 if test $build = $target ; then
10733 OBJDUMP_FOR_TARGET="$2"
10734 else
10735 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10736 fi
10737else
10738 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10739fi
10740
10741else
10742 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10743fi
10744
10745
10746
10747
10748if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10749 if test -n "$with_build_time_tools"; then
10750 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10751echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10752 if test -x $with_build_time_tools/ranlib; then
10753 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10754 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10755 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10756echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10757 else
10758 echo "$as_me:$LINENO: result: no" >&5
10759echo "${ECHO_T}no" >&6
10760 fi
10761 elif test $build != $host && test $have_gcc_for_target = yes; then
10762 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10763 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10764 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10765 fi
10766fi
10767if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10768 # Extract the first word of "ranlib", so it can be a program name with args.
10769set dummy ranlib; ac_word=$2
10770echo "$as_me:$LINENO: checking for $ac_word" >&5
10771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10772if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 case $RANLIB_FOR_TARGET in
10776 [\\/]* | ?:[\\/]*)
10777 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10778 ;;
10779 *)
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781for as_dir in $gcc_cv_tool_dirs
10782do
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_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10790 fi
10791done
10792done
10793
10794 ;;
10795esac
10796fi
10797RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10798
10799if test -n "$RANLIB_FOR_TARGET"; then
10800 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10801echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10802else
10803 echo "$as_me:$LINENO: result: no" >&5
10804echo "${ECHO_T}no" >&6
10805fi
10806
10807fi
10808if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10809
10810
10811if test -n "$RANLIB_FOR_TARGET"; then
10812 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10813elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10814 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10815fi
10816
10817if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10818 for ncn_progname in ranlib; do
10819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10820set dummy ${ncn_progname}; ac_word=$2
10821echo "$as_me:$LINENO: checking for $ac_word" >&5
10822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10823if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 if test -n "$RANLIB_FOR_TARGET"; then
10827 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10828else
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10839 fi
10840done
10841done
10842
10843fi
10844fi
10845RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10846if test -n "$RANLIB_FOR_TARGET"; then
10847 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10848echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10849else
10850 echo "$as_me:$LINENO: result: no" >&5
10851echo "${ECHO_T}no" >&6
10852fi
10853
10854 done
10855fi
10856
10857if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10858 for ncn_progname in ranlib; do
10859 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10860echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10861 if test -x $with_build_time_tools/${ncn_progname}; then
10862 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10863 echo "$as_me:$LINENO: result: yes" >&5
10864echo "${ECHO_T}yes" >&6
10865 break
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869 fi
10870 done
10871fi
10872
10873if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10874 for ncn_progname in ranlib; do
10875 if test -n "$ncn_target_tool_prefix"; then
10876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10877set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10878echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10880if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 if test -n "$RANLIB_FOR_TARGET"; then
10884 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898done
10899
10900fi
10901fi
10902RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10903if test -n "$RANLIB_FOR_TARGET"; then
10904 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10905echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10906else
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
10909fi
10910
10911 fi
10912 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10914set dummy ${ncn_progname}; ac_word=$2
10915echo "$as_me:$LINENO: checking for $ac_word" >&5
10916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919else
10920 if test -n "$RANLIB_FOR_TARGET"; then
10921 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935done
10936
10937fi
10938fi
10939RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10940if test -n "$RANLIB_FOR_TARGET"; then
10941 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10942echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10943else
10944 echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6
10946fi
10947
10948 fi
10949 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10950 done
10951fi
10952
10953if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10954 set dummy ranlib
10955 if test $build = $target ; then
10956 RANLIB_FOR_TARGET="$2"
10957 else
10958 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10959 fi
10960else
10961 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10962fi
10963
10964else
10965 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10966fi
10967
10968
10969
10970
10971if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10972 if test -n "$with_build_time_tools"; then
10973 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10974echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10975 if test -x $with_build_time_tools/strip; then
10976 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10977 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10978 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10979echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10980 else
10981 echo "$as_me:$LINENO: result: no" >&5
10982echo "${ECHO_T}no" >&6
10983 fi
10984 elif test $build != $host && test $have_gcc_for_target = yes; then
10985 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10986 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10987 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10988 fi
10989fi
10990if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10991 # Extract the first word of "strip", so it can be a program name with args.
10992set dummy strip; ac_word=$2
10993echo "$as_me:$LINENO: checking for $ac_word" >&5
10994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 case $STRIP_FOR_TARGET in
10999 [\\/]* | ?:[\\/]*)
11000 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11001 ;;
11002 *)
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $gcc_cv_tool_dirs
11005do
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_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015done
11016
11017 ;;
11018esac
11019fi
11020STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11021
11022if test -n "$STRIP_FOR_TARGET"; then
11023 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11024echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11025else
11026 echo "$as_me:$LINENO: result: no" >&5
11027echo "${ECHO_T}no" >&6
11028fi
11029
11030fi
11031if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11032
11033
11034if test -n "$STRIP_FOR_TARGET"; then
11035 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11036elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11037 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11038fi
11039
11040if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11041 for ncn_progname in strip; do
11042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11043set dummy ${ncn_progname}; ac_word=$2
11044echo "$as_me:$LINENO: checking for $ac_word" >&5
11045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11046if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 if test -n "$STRIP_FOR_TARGET"; then
11050 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11051else
11052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053for as_dir in $PATH
11054do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11062 fi
11063done
11064done
11065
11066fi
11067fi
11068STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11069if test -n "$STRIP_FOR_TARGET"; then
11070 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11071echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11072else
11073 echo "$as_me:$LINENO: result: no" >&5
11074echo "${ECHO_T}no" >&6
11075fi
11076
11077 done
11078fi
11079
11080if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11081 for ncn_progname in strip; do
11082 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11083echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11084 if test -x $with_build_time_tools/${ncn_progname}; then
11085 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11086 echo "$as_me:$LINENO: result: yes" >&5
11087echo "${ECHO_T}yes" >&6
11088 break
11089 else
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092 fi
11093 done
11094fi
11095
11096if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11097 for ncn_progname in strip; do
11098 if test -n "$ncn_target_tool_prefix"; then
11099 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11100set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11101echo "$as_me:$LINENO: checking for $ac_word" >&5
11102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11103if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 if test -n "$STRIP_FOR_TARGET"; then
11107 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11108else
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120done
11121done
11122
11123fi
11124fi
11125STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11126if test -n "$STRIP_FOR_TARGET"; then
11127 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11128echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11129else
11130 echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6
11132fi
11133
11134 fi
11135 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11137set dummy ${ncn_progname}; ac_word=$2
11138echo "$as_me:$LINENO: checking for $ac_word" >&5
11139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11140if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142else
11143 if test -n "$STRIP_FOR_TARGET"; then
11144 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11145else
11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147for as_dir in $PATH
11148do
11149 IFS=$as_save_IFS
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11153 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157done
11158done
11159
11160fi
11161fi
11162STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11163if test -n "$STRIP_FOR_TARGET"; then
11164 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11165echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11166else
11167 echo "$as_me:$LINENO: result: no" >&5
11168echo "${ECHO_T}no" >&6
11169fi
11170
11171 fi
11172 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11173 done
11174fi
11175
11176if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11177 set dummy strip
11178 if test $build = $target ; then
11179 STRIP_FOR_TARGET="$2"
11180 else
11181 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11182 fi
11183else
11184 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11185fi
11186
11187else
11188 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11189fi
11190
11191
11192
11193
11194if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11195 if test -n "$with_build_time_tools"; then
11196 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11197echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11198 if test -x $with_build_time_tools/windres; then
11199 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11200 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11201 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11202echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11203 else
11204 echo "$as_me:$LINENO: result: no" >&5
11205echo "${ECHO_T}no" >&6
11206 fi
11207 elif test $build != $host && test $have_gcc_for_target = yes; then
11208 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11209 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11210 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11211 fi
11212fi
11213if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11214 # Extract the first word of "windres", so it can be a program name with args.
11215set dummy windres; ac_word=$2
11216echo "$as_me:$LINENO: checking for $ac_word" >&5
11217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 case $WINDRES_FOR_TARGET in
11222 [\\/]* | ?:[\\/]*)
11223 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11224 ;;
11225 *)
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227for as_dir in $gcc_cv_tool_dirs
11228do
11229 IFS=$as_save_IFS
11230 test -z "$as_dir" && as_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11235 break 2
11236 fi
11237done
11238done
11239
11240 ;;
11241esac
11242fi
11243WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11244
11245if test -n "$WINDRES_FOR_TARGET"; then
11246 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11247echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11248else
11249 echo "$as_me:$LINENO: result: no" >&5
11250echo "${ECHO_T}no" >&6
11251fi
11252
11253fi
11254if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11255
11256
11257if test -n "$WINDRES_FOR_TARGET"; then
11258 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11259elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11261fi
11262
11263if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11264 for ncn_progname in windres; do
11265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11266set dummy ${ncn_progname}; ac_word=$2
11267echo "$as_me:$LINENO: checking for $ac_word" >&5
11268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11269if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271else
11272 if test -n "$WINDRES_FOR_TARGET"; then
11273 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11274else
11275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276for as_dir in $PATH
11277do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11282 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286done
11287done
11288
11289fi
11290fi
11291WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11292if test -n "$WINDRES_FOR_TARGET"; then
11293 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11294echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11295else
11296 echo "$as_me:$LINENO: result: no" >&5
11297echo "${ECHO_T}no" >&6
11298fi
11299
11300 done
11301fi
11302
11303if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11304 for ncn_progname in windres; do
11305 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11306echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11307 if test -x $with_build_time_tools/${ncn_progname}; then
11308 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11309 echo "$as_me:$LINENO: result: yes" >&5
11310echo "${ECHO_T}yes" >&6
11311 break
11312 else
11313 echo "$as_me:$LINENO: result: no" >&5
11314echo "${ECHO_T}no" >&6
11315 fi
11316 done
11317fi
11318
11319if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11320 for ncn_progname in windres; do
11321 if test -n "$ncn_target_tool_prefix"; then
11322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11323set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11324echo "$as_me:$LINENO: checking for $ac_word" >&5
11325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11326if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328else
11329 if test -n "$WINDRES_FOR_TARGET"; then
11330 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11331else
11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $PATH
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11342 fi
11343done
11344done
11345
11346fi
11347fi
11348WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11349if test -n "$WINDRES_FOR_TARGET"; then
11350 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11351echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11352else
11353 echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6
11355fi
11356
11357 fi
11358 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11360set dummy ${ncn_progname}; ac_word=$2
11361echo "$as_me:$LINENO: checking for $ac_word" >&5
11362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11363if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366 if test -n "$WINDRES_FOR_TARGET"; then
11367 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11368else
11369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370for as_dir in $PATH
11371do
11372 IFS=$as_save_IFS
11373 test -z "$as_dir" && as_dir=.
11374 for ac_exec_ext in '' $ac_executable_extensions; do
11375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11376 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11378 break 2
11379 fi
11380done
11381done
11382
11383fi
11384fi
11385WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11386if test -n "$WINDRES_FOR_TARGET"; then
11387 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11388echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11389else
11390 echo "$as_me:$LINENO: result: no" >&5
11391echo "${ECHO_T}no" >&6
11392fi
11393
11394 fi
11395 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11396 done
11397fi
11398
11399if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11400 set dummy windres
11401 if test $build = $target ; then
11402 WINDRES_FOR_TARGET="$2"
11403 else
11404 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11405 fi
11406else
11407 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11408fi
11409
11410else
11411 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11412fi
11413
11414
11415
11416
11417if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11418 if test -n "$with_build_time_tools"; then
11419 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11420echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11421 if test -x $with_build_time_tools/windmc; then
11422 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11423 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11424 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11425echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11426 else
11427 echo "$as_me:$LINENO: result: no" >&5
11428echo "${ECHO_T}no" >&6
11429 fi
11430 elif test $build != $host && test $have_gcc_for_target = yes; then
11431 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11432 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11433 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11434 fi
11435fi
11436if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11437 # Extract the first word of "windmc", so it can be a program name with args.
11438set dummy windmc; ac_word=$2
11439echo "$as_me:$LINENO: checking for $ac_word" >&5
11440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11441if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 case $WINDMC_FOR_TARGET in
11445 [\\/]* | ?:[\\/]*)
11446 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11447 ;;
11448 *)
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450for as_dir in $gcc_cv_tool_dirs
11451do
11452 IFS=$as_save_IFS
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11458 break 2
11459 fi
11460done
11461done
11462
11463 ;;
11464esac
11465fi
11466WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11467
11468if test -n "$WINDMC_FOR_TARGET"; then
11469 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11470echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11471else
11472 echo "$as_me:$LINENO: result: no" >&5
11473echo "${ECHO_T}no" >&6
11474fi
11475
11476fi
11477if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11478
11479
11480if test -n "$WINDMC_FOR_TARGET"; then
11481 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11482elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11483 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11484fi
11485
11486if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11487 for ncn_progname in windmc; do
11488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11489set dummy ${ncn_progname}; ac_word=$2
11490echo "$as_me:$LINENO: checking for $ac_word" >&5
11491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11492if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 if test -n "$WINDMC_FOR_TARGET"; then
11496 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11497else
11498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499for as_dir in $PATH
11500do
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_exec_ext in '' $ac_executable_extensions; do
11504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 break 2
11508 fi
11509done
11510done
11511
11512fi
11513fi
11514WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11515if test -n "$WINDMC_FOR_TARGET"; then
11516 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11517echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11518else
11519 echo "$as_me:$LINENO: result: no" >&5
11520echo "${ECHO_T}no" >&6
11521fi
11522
11523 done
11524fi
11525
11526if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11527 for ncn_progname in windmc; do
11528 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11529echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11530 if test -x $with_build_time_tools/${ncn_progname}; then
11531 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11532 echo "$as_me:$LINENO: result: yes" >&5
11533echo "${ECHO_T}yes" >&6
11534 break
11535 else
11536 echo "$as_me:$LINENO: result: no" >&5
11537echo "${ECHO_T}no" >&6
11538 fi
11539 done
11540fi
11541
11542if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11543 for ncn_progname in windmc; do
11544 if test -n "$ncn_target_tool_prefix"; then
11545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11547echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 if test -n "$WINDMC_FOR_TARGET"; then
11553 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
11568
11569fi
11570fi
11571WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11572if test -n "$WINDMC_FOR_TARGET"; then
11573 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11574echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11575else
11576 echo "$as_me:$LINENO: result: no" >&5
11577echo "${ECHO_T}no" >&6
11578fi
11579
11580 fi
11581 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11583set dummy ${ncn_progname}; ac_word=$2
11584echo "$as_me:$LINENO: checking for $ac_word" >&5
11585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11586if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 if test -n "$WINDMC_FOR_TARGET"; then
11590 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11591else
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11599 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603done
11604done
11605
11606fi
11607fi
11608WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11609if test -n "$WINDMC_FOR_TARGET"; then
11610 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11611echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11612else
11613 echo "$as_me:$LINENO: result: no" >&5
11614echo "${ECHO_T}no" >&6
11615fi
11616
11617 fi
11618 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11619 done
11620fi
11621
11622if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11623 set dummy windmc
11624 if test $build = $target ; then
11625 WINDMC_FOR_TARGET="$2"
11626 else
11627 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11628 fi
11629else
11630 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11631fi
11632
11633else
11634 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11635fi
11636
11637
11638RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11639
11640echo "$as_me:$LINENO: checking where to find the target ar" >&5
11641echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11642if test "x${build}" != "x${host}" ; then
11643 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11644 # We already found the complete path
11645 ac_dir=`dirname $AR_FOR_TARGET`
11646 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11647echo "${ECHO_T}pre-installed in $ac_dir" >&6
11648 else
11649 # Canadian cross, just use what we found
11650 echo "$as_me:$LINENO: result: pre-installed" >&5
11651echo "${ECHO_T}pre-installed" >&6
11652 fi
11653else
11654 ok=yes
11655 case " ${configdirs} " in
11656 *" binutils "*) ;;
11657 *) ok=no ;;
11658 esac
11659
11660 if test $ok = yes; then
11661 # An in-tree tool is available and we can use it
11662 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11663 echo "$as_me:$LINENO: result: just compiled" >&5
11664echo "${ECHO_T}just compiled" >&6
11665 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11666 # We already found the complete path
11667 ac_dir=`dirname $AR_FOR_TARGET`
11668 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11669echo "${ECHO_T}pre-installed in $ac_dir" >&6
11670 elif test "x$target" = "x$host"; then
11671 # We can use an host tool
11672 AR_FOR_TARGET='$(AR)'
11673 echo "$as_me:$LINENO: result: host tool" >&5
11674echo "${ECHO_T}host tool" >&6
11675 else
11676 # We need a cross tool
11677 echo "$as_me:$LINENO: result: pre-installed" >&5
11678echo "${ECHO_T}pre-installed" >&6
11679 fi
11680fi
11681
11682echo "$as_me:$LINENO: checking where to find the target as" >&5
11683echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11684if test "x${build}" != "x${host}" ; then
11685 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11686 # We already found the complete path
11687 ac_dir=`dirname $AS_FOR_TARGET`
11688 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11689echo "${ECHO_T}pre-installed in $ac_dir" >&6
11690 else
11691 # Canadian cross, just use what we found
11692 echo "$as_me:$LINENO: result: pre-installed" >&5
11693echo "${ECHO_T}pre-installed" >&6
11694 fi
11695else
11696 ok=yes
11697 case " ${configdirs} " in
11698 *" gas "*) ;;
11699 *) ok=no ;;
11700 esac
11701
11702 if test $ok = yes; then
11703 # An in-tree tool is available and we can use it
11704 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11705 echo "$as_me:$LINENO: result: just compiled" >&5
11706echo "${ECHO_T}just compiled" >&6
11707 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11708 # We already found the complete path
11709 ac_dir=`dirname $AS_FOR_TARGET`
11710 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11711echo "${ECHO_T}pre-installed in $ac_dir" >&6
11712 elif test "x$target" = "x$host"; then
11713 # We can use an host tool
11714 AS_FOR_TARGET='$(AS)'
11715 echo "$as_me:$LINENO: result: host tool" >&5
11716echo "${ECHO_T}host tool" >&6
11717 else
11718 # We need a cross tool
11719 echo "$as_me:$LINENO: result: pre-installed" >&5
11720echo "${ECHO_T}pre-installed" >&6
11721 fi
11722fi
11723
11724echo "$as_me:$LINENO: checking where to find the target cc" >&5
11725echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11726if test "x${build}" != "x${host}" ; then
11727 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11728 # We already found the complete path
11729 ac_dir=`dirname $CC_FOR_TARGET`
11730 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11731echo "${ECHO_T}pre-installed in $ac_dir" >&6
11732 else
11733 # Canadian cross, just use what we found
11734 echo "$as_me:$LINENO: result: pre-installed" >&5
11735echo "${ECHO_T}pre-installed" >&6
11736 fi
11737else
11738 ok=yes
11739 case " ${configdirs} " in
11740 *" gcc "*) ;;
11741 *) ok=no ;;
11742 esac
11743
11744 if test $ok = yes; then
11745 # An in-tree tool is available and we can use it
11746 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11747 echo "$as_me:$LINENO: result: just compiled" >&5
11748echo "${ECHO_T}just compiled" >&6
11749 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11750 # We already found the complete path
11751 ac_dir=`dirname $CC_FOR_TARGET`
11752 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11753echo "${ECHO_T}pre-installed in $ac_dir" >&6
11754 elif test "x$target" = "x$host"; then
11755 # We can use an host tool
11756 CC_FOR_TARGET='$(CC)'
11757 echo "$as_me:$LINENO: result: host tool" >&5
11758echo "${ECHO_T}host tool" >&6
11759 else
11760 # We need a cross tool
11761 echo "$as_me:$LINENO: result: pre-installed" >&5
11762echo "${ECHO_T}pre-installed" >&6
11763 fi
11764fi
11765
11766echo "$as_me:$LINENO: checking where to find the target c++" >&5
11767echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11768if test "x${build}" != "x${host}" ; then
11769 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11770 # We already found the complete path
11771 ac_dir=`dirname $CXX_FOR_TARGET`
11772 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11773echo "${ECHO_T}pre-installed in $ac_dir" >&6
11774 else
11775 # Canadian cross, just use what we found
11776 echo "$as_me:$LINENO: result: pre-installed" >&5
11777echo "${ECHO_T}pre-installed" >&6
11778 fi
11779else
11780 ok=yes
11781 case " ${configdirs} " in
11782 *" gcc "*) ;;
11783 *) ok=no ;;
11784 esac
11785 case ,${enable_languages}, in
11786 *,c++,*) ;;
11787 *) ok=no ;;
11788 esac
11789 if test $ok = yes; then
11790 # An in-tree tool is available and we can use it
11791 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'
11792 echo "$as_me:$LINENO: result: just compiled" >&5
11793echo "${ECHO_T}just compiled" >&6
11794 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11795 # We already found the complete path
11796 ac_dir=`dirname $CXX_FOR_TARGET`
11797 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11798echo "${ECHO_T}pre-installed in $ac_dir" >&6
11799 elif test "x$target" = "x$host"; then
11800 # We can use an host tool
11801 CXX_FOR_TARGET='$(CXX)'
11802 echo "$as_me:$LINENO: result: host tool" >&5
11803echo "${ECHO_T}host tool" >&6
11804 else
11805 # We need a cross tool
11806 echo "$as_me:$LINENO: result: pre-installed" >&5
11807echo "${ECHO_T}pre-installed" >&6
11808 fi
11809fi
11810
11811echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11812echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11813if test "x${build}" != "x${host}" ; then
11814 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11815 # We already found the complete path
11816 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11817 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11818echo "${ECHO_T}pre-installed in $ac_dir" >&6
11819 else
11820 # Canadian cross, just use what we found
11821 echo "$as_me:$LINENO: result: pre-installed" >&5
11822echo "${ECHO_T}pre-installed" >&6
11823 fi
11824else
11825 ok=yes
11826 case " ${configdirs} " in
11827 *" gcc "*) ;;
11828 *) ok=no ;;
11829 esac
11830 case ,${enable_languages}, in
11831 *,c++,*) ;;
11832 *) ok=no ;;
11833 esac
11834 if test $ok = yes; then
11835 # An in-tree tool is available and we can use it
11836 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'
11837 echo "$as_me:$LINENO: result: just compiled" >&5
11838echo "${ECHO_T}just compiled" >&6
11839 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11840 # We already found the complete path
11841 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11842 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11843echo "${ECHO_T}pre-installed in $ac_dir" >&6
11844 elif test "x$target" = "x$host"; then
11845 # We can use an host tool
11846 RAW_CXX_FOR_TARGET='$(CXX)'
11847 echo "$as_me:$LINENO: result: host tool" >&5
11848echo "${ECHO_T}host tool" >&6
11849 else
11850 # We need a cross tool
11851 echo "$as_me:$LINENO: result: pre-installed" >&5
11852echo "${ECHO_T}pre-installed" >&6
11853 fi
11854fi
11855
11856echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11857echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11858if test "x${build}" != "x${host}" ; then
11859 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11860 # We already found the complete path
11861 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11862 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11863echo "${ECHO_T}pre-installed in $ac_dir" >&6
11864 else
11865 # Canadian cross, just use what we found
11866 echo "$as_me:$LINENO: result: pre-installed" >&5
11867echo "${ECHO_T}pre-installed" >&6
11868 fi
11869else
11870 ok=yes
11871 case " ${configdirs} " in
11872 *" binutils "*) ;;
11873 *) ok=no ;;
11874 esac
11875
11876 if test $ok = yes; then
11877 # An in-tree tool is available and we can use it
11878 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11879 echo "$as_me:$LINENO: result: just compiled" >&5
11880echo "${ECHO_T}just compiled" >&6
11881 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11882 # We already found the complete path
11883 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11884 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11885echo "${ECHO_T}pre-installed in $ac_dir" >&6
11886 elif test "x$target" = "x$host"; then
11887 # We can use an host tool
11888 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11889 echo "$as_me:$LINENO: result: host tool" >&5
11890echo "${ECHO_T}host tool" >&6
11891 else
11892 # We need a cross tool
11893 echo "$as_me:$LINENO: result: pre-installed" >&5
11894echo "${ECHO_T}pre-installed" >&6
11895 fi
11896fi
11897
11898echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11899echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11900if test "x${build}" != "x${host}" ; then
11901 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11902 # We already found the complete path
11903 ac_dir=`dirname $GCC_FOR_TARGET`
11904 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11905echo "${ECHO_T}pre-installed in $ac_dir" >&6
11906 else
11907 # Canadian cross, just use what we found
11908 echo "$as_me:$LINENO: result: pre-installed" >&5
11909echo "${ECHO_T}pre-installed" >&6
11910 fi
11911else
11912 ok=yes
11913 case " ${configdirs} " in
11914 *" gcc "*) ;;
11915 *) ok=no ;;
11916 esac
11917
11918 if test $ok = yes; then
11919 # An in-tree tool is available and we can use it
11920 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11921 echo "$as_me:$LINENO: result: just compiled" >&5
11922echo "${ECHO_T}just compiled" >&6
11923 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11924 # We already found the complete path
11925 ac_dir=`dirname $GCC_FOR_TARGET`
11926 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11927echo "${ECHO_T}pre-installed in $ac_dir" >&6
11928 elif test "x$target" = "x$host"; then
11929 # We can use an host tool
11930 GCC_FOR_TARGET='$()'
11931 echo "$as_me:$LINENO: result: host tool" >&5
11932echo "${ECHO_T}host tool" >&6
11933 else
11934 # We need a cross tool
11935 echo "$as_me:$LINENO: result: pre-installed" >&5
11936echo "${ECHO_T}pre-installed" >&6
11937 fi
11938fi
11939
11940echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11941echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11942if test "x${build}" != "x${host}" ; then
11943 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11944 # We already found the complete path
11945 ac_dir=`dirname $GCJ_FOR_TARGET`
11946 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11947echo "${ECHO_T}pre-installed in $ac_dir" >&6
11948 else
11949 # Canadian cross, just use what we found
11950 echo "$as_me:$LINENO: result: pre-installed" >&5
11951echo "${ECHO_T}pre-installed" >&6
11952 fi
11953else
11954 ok=yes
11955 case " ${configdirs} " in
11956 *" gcc "*) ;;
11957 *) ok=no ;;
11958 esac
11959 case ,${enable_languages}, in
11960 *,java,*) ;;
11961 *) ok=no ;;
11962 esac
11963 if test $ok = yes; then
11964 # An in-tree tool is available and we can use it
11965 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11966 echo "$as_me:$LINENO: result: just compiled" >&5
11967echo "${ECHO_T}just compiled" >&6
11968 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11969 # We already found the complete path
11970 ac_dir=`dirname $GCJ_FOR_TARGET`
11971 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11972echo "${ECHO_T}pre-installed in $ac_dir" >&6
11973 elif test "x$target" = "x$host"; then
11974 # We can use an host tool
11975 GCJ_FOR_TARGET='$(GCJ)'
11976 echo "$as_me:$LINENO: result: host tool" >&5
11977echo "${ECHO_T}host tool" >&6
11978 else
11979 # We need a cross tool
11980 echo "$as_me:$LINENO: result: pre-installed" >&5
11981echo "${ECHO_T}pre-installed" >&6
11982 fi
11983fi
11984
11985echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11986echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11987if test "x${build}" != "x${host}" ; then
11988 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11989 # We already found the complete path
11990 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11991 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11992echo "${ECHO_T}pre-installed in $ac_dir" >&6
11993 else
11994 # Canadian cross, just use what we found
11995 echo "$as_me:$LINENO: result: pre-installed" >&5
11996echo "${ECHO_T}pre-installed" >&6
11997 fi
11998else
11999 ok=yes
12000 case " ${configdirs} " in
12001 *" gcc "*) ;;
12002 *) ok=no ;;
12003 esac
12004 case ,${enable_languages}, in
12005 *,fortran,*) ;;
12006 *) ok=no ;;
12007 esac
12008 if test $ok = yes; then
12009 # An in-tree tool is available and we can use it
12010 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12011 echo "$as_me:$LINENO: result: just compiled" >&5
12012echo "${ECHO_T}just compiled" >&6
12013 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12014 # We already found the complete path
12015 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12016 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12017echo "${ECHO_T}pre-installed in $ac_dir" >&6
12018 elif test "x$target" = "x$host"; then
12019 # We can use an host tool
12020 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12021 echo "$as_me:$LINENO: result: host tool" >&5
12022echo "${ECHO_T}host tool" >&6
12023 else
12024 # We need a cross tool
12025 echo "$as_me:$LINENO: result: pre-installed" >&5
12026echo "${ECHO_T}pre-installed" >&6
12027 fi
12028fi
12029
12030echo "$as_me:$LINENO: checking where to find the target ld" >&5
12031echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12032if test "x${build}" != "x${host}" ; then
12033 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12034 # We already found the complete path
12035 ac_dir=`dirname $LD_FOR_TARGET`
12036 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12037echo "${ECHO_T}pre-installed in $ac_dir" >&6
12038 else
12039 # Canadian cross, just use what we found
12040 echo "$as_me:$LINENO: result: pre-installed" >&5
12041echo "${ECHO_T}pre-installed" >&6
12042 fi
12043else
12044 ok=yes
12045 case " ${configdirs} " in
12046 *" ld "*) ;;
12047 *) ok=no ;;
12048 esac
12049
12050 if test $ok = yes; then
12051 # An in-tree tool is available and we can use it
12052 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12053 echo "$as_me:$LINENO: result: just compiled" >&5
12054echo "${ECHO_T}just compiled" >&6
12055 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12056 # We already found the complete path
12057 ac_dir=`dirname $LD_FOR_TARGET`
12058 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12059echo "${ECHO_T}pre-installed in $ac_dir" >&6
12060 elif test "x$target" = "x$host"; then
12061 # We can use an host tool
12062 LD_FOR_TARGET='$(LD)'
12063 echo "$as_me:$LINENO: result: host tool" >&5
12064echo "${ECHO_T}host tool" >&6
12065 else
12066 # We need a cross tool
12067 echo "$as_me:$LINENO: result: pre-installed" >&5
12068echo "${ECHO_T}pre-installed" >&6
12069 fi
12070fi
12071
12072echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12073echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12074if test "x${build}" != "x${host}" ; then
12075 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12076 # We already found the complete path
12077 ac_dir=`dirname $LIPO_FOR_TARGET`
12078 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12079echo "${ECHO_T}pre-installed in $ac_dir" >&6
12080 else
12081 # Canadian cross, just use what we found
12082 echo "$as_me:$LINENO: result: pre-installed" >&5
12083echo "${ECHO_T}pre-installed" >&6
12084 fi
12085else
12086 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12087 # We already found the complete path
12088 ac_dir=`dirname $LIPO_FOR_TARGET`
12089 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12090echo "${ECHO_T}pre-installed in $ac_dir" >&6
12091 elif test "x$target" = "x$host"; then
12092 # We can use an host tool
12093 LIPO_FOR_TARGET='$(LIPO)'
12094 echo "$as_me:$LINENO: result: host tool" >&5
12095echo "${ECHO_T}host tool" >&6
12096 else
12097 # We need a cross tool
12098 echo "$as_me:$LINENO: result: pre-installed" >&5
12099echo "${ECHO_T}pre-installed" >&6
12100 fi
12101fi
12102
12103echo "$as_me:$LINENO: checking where to find the target nm" >&5
12104echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12105if test "x${build}" != "x${host}" ; then
12106 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12107 # We already found the complete path
12108 ac_dir=`dirname $NM_FOR_TARGET`
12109 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12110echo "${ECHO_T}pre-installed in $ac_dir" >&6
12111 else
12112 # Canadian cross, just use what we found
12113 echo "$as_me:$LINENO: result: pre-installed" >&5
12114echo "${ECHO_T}pre-installed" >&6
12115 fi
12116else
12117 ok=yes
12118 case " ${configdirs} " in
12119 *" binutils "*) ;;
12120 *) ok=no ;;
12121 esac
12122
12123 if test $ok = yes; then
12124 # An in-tree tool is available and we can use it
12125 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12126 echo "$as_me:$LINENO: result: just compiled" >&5
12127echo "${ECHO_T}just compiled" >&6
12128 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12129 # We already found the complete path
12130 ac_dir=`dirname $NM_FOR_TARGET`
12131 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12132echo "${ECHO_T}pre-installed in $ac_dir" >&6
12133 elif test "x$target" = "x$host"; then
12134 # We can use an host tool
12135 NM_FOR_TARGET='$(NM)'
12136 echo "$as_me:$LINENO: result: host tool" >&5
12137echo "${ECHO_T}host tool" >&6
12138 else
12139 # We need a cross tool
12140 echo "$as_me:$LINENO: result: pre-installed" >&5
12141echo "${ECHO_T}pre-installed" >&6
12142 fi
12143fi
12144
12145echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12146echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12147if test "x${build}" != "x${host}" ; then
12148 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12149 # We already found the complete path
12150 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12152echo "${ECHO_T}pre-installed in $ac_dir" >&6
12153 else
12154 # Canadian cross, just use what we found
12155 echo "$as_me:$LINENO: result: pre-installed" >&5
12156echo "${ECHO_T}pre-installed" >&6
12157 fi
12158else
12159 ok=yes
12160 case " ${configdirs} " in
12161 *" binutils "*) ;;
12162 *) ok=no ;;
12163 esac
12164
12165 if test $ok = yes; then
12166 # An in-tree tool is available and we can use it
12167 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12168 echo "$as_me:$LINENO: result: just compiled" >&5
12169echo "${ECHO_T}just compiled" >&6
12170 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12171 # We already found the complete path
12172 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12173 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12174echo "${ECHO_T}pre-installed in $ac_dir" >&6
12175 elif test "x$target" = "x$host"; then
12176 # We can use an host tool
12177 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12178 echo "$as_me:$LINENO: result: host tool" >&5
12179echo "${ECHO_T}host tool" >&6
12180 else
12181 # We need a cross tool
12182 echo "$as_me:$LINENO: result: pre-installed" >&5
12183echo "${ECHO_T}pre-installed" >&6
12184 fi
12185fi
12186
12187echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12188echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12189if test "x${build}" != "x${host}" ; then
12190 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12191 # We already found the complete path
12192 ac_dir=`dirname $RANLIB_FOR_TARGET`
12193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12194echo "${ECHO_T}pre-installed in $ac_dir" >&6
12195 else
12196 # Canadian cross, just use what we found
12197 echo "$as_me:$LINENO: result: pre-installed" >&5
12198echo "${ECHO_T}pre-installed" >&6
12199 fi
12200else
12201 ok=yes
12202 case " ${configdirs} " in
12203 *" binutils "*) ;;
12204 *) ok=no ;;
12205 esac
12206
12207 if test $ok = yes; then
12208 # An in-tree tool is available and we can use it
12209 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12210 echo "$as_me:$LINENO: result: just compiled" >&5
12211echo "${ECHO_T}just compiled" >&6
12212 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12213 # We already found the complete path
12214 ac_dir=`dirname $RANLIB_FOR_TARGET`
12215 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12216echo "${ECHO_T}pre-installed in $ac_dir" >&6
12217 elif test "x$target" = "x$host"; then
12218 # We can use an host tool
12219 RANLIB_FOR_TARGET='$(RANLIB)'
12220 echo "$as_me:$LINENO: result: host tool" >&5
12221echo "${ECHO_T}host tool" >&6
12222 else
12223 # We need a cross tool
12224 echo "$as_me:$LINENO: result: pre-installed" >&5
12225echo "${ECHO_T}pre-installed" >&6
12226 fi
12227fi
12228
12229echo "$as_me:$LINENO: checking where to find the target strip" >&5
12230echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12231if test "x${build}" != "x${host}" ; then
12232 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12233 # We already found the complete path
12234 ac_dir=`dirname $STRIP_FOR_TARGET`
12235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12236echo "${ECHO_T}pre-installed in $ac_dir" >&6
12237 else
12238 # Canadian cross, just use what we found
12239 echo "$as_me:$LINENO: result: pre-installed" >&5
12240echo "${ECHO_T}pre-installed" >&6
12241 fi
12242else
12243 ok=yes
12244 case " ${configdirs} " in
12245 *" binutils "*) ;;
12246 *) ok=no ;;
12247 esac
12248
12249 if test $ok = yes; then
12250 # An in-tree tool is available and we can use it
12251 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12252 echo "$as_me:$LINENO: result: just compiled" >&5
12253echo "${ECHO_T}just compiled" >&6
12254 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12255 # We already found the complete path
12256 ac_dir=`dirname $STRIP_FOR_TARGET`
12257 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12258echo "${ECHO_T}pre-installed in $ac_dir" >&6
12259 elif test "x$target" = "x$host"; then
12260 # We can use an host tool
12261 STRIP_FOR_TARGET='$(STRIP)'
12262 echo "$as_me:$LINENO: result: host tool" >&5
12263echo "${ECHO_T}host tool" >&6
12264 else
12265 # We need a cross tool
12266 echo "$as_me:$LINENO: result: pre-installed" >&5
12267echo "${ECHO_T}pre-installed" >&6
12268 fi
12269fi
12270
12271echo "$as_me:$LINENO: checking where to find the target windres" >&5
12272echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12273if test "x${build}" != "x${host}" ; then
12274 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12275 # We already found the complete path
12276 ac_dir=`dirname $WINDRES_FOR_TARGET`
12277 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12278echo "${ECHO_T}pre-installed in $ac_dir" >&6
12279 else
12280 # Canadian cross, just use what we found
12281 echo "$as_me:$LINENO: result: pre-installed" >&5
12282echo "${ECHO_T}pre-installed" >&6
12283 fi
12284else
12285 ok=yes
12286 case " ${configdirs} " in
12287 *" binutils "*) ;;
12288 *) ok=no ;;
12289 esac
12290
12291 if test $ok = yes; then
12292 # An in-tree tool is available and we can use it
12293 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12294 echo "$as_me:$LINENO: result: just compiled" >&5
12295echo "${ECHO_T}just compiled" >&6
12296 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12297 # We already found the complete path
12298 ac_dir=`dirname $WINDRES_FOR_TARGET`
12299 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12300echo "${ECHO_T}pre-installed in $ac_dir" >&6
12301 elif test "x$target" = "x$host"; then
12302 # We can use an host tool
12303 WINDRES_FOR_TARGET='$(WINDRES)'
12304 echo "$as_me:$LINENO: result: host tool" >&5
12305echo "${ECHO_T}host tool" >&6
12306 else
12307 # We need a cross tool
12308 echo "$as_me:$LINENO: result: pre-installed" >&5
12309echo "${ECHO_T}pre-installed" >&6
12310 fi
12311fi
12312
12313echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12314echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12315if test "x${build}" != "x${host}" ; then
12316 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12317 # We already found the complete path
12318 ac_dir=`dirname $WINDMC_FOR_TARGET`
12319 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12320echo "${ECHO_T}pre-installed in $ac_dir" >&6
12321 else
12322 # Canadian cross, just use what we found
12323 echo "$as_me:$LINENO: result: pre-installed" >&5
12324echo "${ECHO_T}pre-installed" >&6
12325 fi
12326else
12327 ok=yes
12328 case " ${configdirs} " in
12329 *" binutils "*) ;;
12330 *) ok=no ;;
12331 esac
12332
12333 if test $ok = yes; then
12334 # An in-tree tool is available and we can use it
12335 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12336 echo "$as_me:$LINENO: result: just compiled" >&5
12337echo "${ECHO_T}just compiled" >&6
12338 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12339 # We already found the complete path
12340 ac_dir=`dirname $WINDMC_FOR_TARGET`
12341 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12342echo "${ECHO_T}pre-installed in $ac_dir" >&6
12343 elif test "x$target" = "x$host"; then
12344 # We can use an host tool
12345 WINDMC_FOR_TARGET='$(WINDMC)'
12346 echo "$as_me:$LINENO: result: host tool" >&5
12347echo "${ECHO_T}host tool" >&6
12348 else
12349 # We need a cross tool
12350 echo "$as_me:$LINENO: result: pre-installed" >&5
12351echo "${ECHO_T}pre-installed" >&6
12352 fi
12353fi
12354
12355
12356
12357
12358
12359# Certain tools may need extra flags.
12360AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12361RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12362NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12363
12364# When building target libraries, except in a Canadian cross, we use
12365# the same toolchain as the compiler we just built.
12366COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12367COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12368COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12369if test $host = $build; then
12370 case " $configdirs " in
12371 *" gcc "*)
12372 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12373 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12374 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12375 ;;
12376 esac
12377fi
12378
12379
12380
12381
12382
12383echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12384echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12385# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12386if test "${enable_maintainer_mode+set}" = set; then
12387 enableval="$enable_maintainer_mode"
12388 USE_MAINTAINER_MODE=$enableval
12389else
12390 USE_MAINTAINER_MODE=no
12391fi;
12392echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12393echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12394
12395
12396if test "$USE_MAINTAINER_MODE" = yes; then
12397 MAINTAINER_MODE_TRUE=
12398 MAINTAINER_MODE_FALSE='#'
12399else
12400 MAINTAINER_MODE_TRUE='#'
12401 MAINTAINER_MODE_FALSE=
12402fi
12403MAINT=$MAINTAINER_MODE_TRUE
12404
12405# ---------------------
12406# GCC bootstrap support
12407# ---------------------
12408
12409# Stage specific cflags for build.
12410stage1_cflags="-g"
12411case $build in
12412 vax-*-*)
12413 case ${GCC} in
12414 yes) stage1_cflags="-g -Wa,-J" ;;
12415 *) stage1_cflags="-g -J" ;;
12416 esac ;;
12417esac
12418
12419# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12420if test "$GCC" = yes; then
12421 saved_CFLAGS="$CFLAGS"
12422
12423 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12424 CFLAGS="$CFLAGS -fkeep-inline-functions"
12425 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12426echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12427 cat >conftest.$ac_ext <<_ACEOF
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433
12434#if (__GNUC__ < 3) \
12435 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12436 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12437#error http://gcc.gnu.org/PR29382
12438#endif
12439
12440int
12441main ()
12442{
12443
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448rm -f conftest.$ac_objext
12449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450 (eval $ac_compile) 2>conftest.er1
12451 ac_status=$?
12452 grep -v '^ *+' conftest.er1 >conftest.err
12453 rm -f conftest.er1
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_c_werror_flag"
12458 || test ! -s conftest.err'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 echo "$as_me:$LINENO: result: yes" >&5
12471echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12472else
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
12476echo "$as_me:$LINENO: result: no" >&5
12477echo "${ECHO_T}no" >&6
12478fi
12479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12480
12481 CFLAGS="$saved_CFLAGS"
12482fi
12483
12484
12485
12486# Enable --enable-checking in stage1 of the compiler.
12487# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12488if test "${enable_stage1_checking+set}" = set; then
12489 enableval="$enable_stage1_checking"
12490 stage1_checking=--enable-checking=${enable_stage1_checking}
12491else
12492 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12493 stage1_checking=--enable-checking=yes,types
12494else
12495 stage1_checking=--enable-checking=$enable_checking,types
12496fi
12497fi;
12498
12499
12500# Enable -Werror in bootstrap stage2 and later.
12501# Check whether --enable-werror or --disable-werror was given.
12502if test "${enable_werror+set}" = set; then
12503 enableval="$enable_werror"
12504
12505else
12506 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12507 enable_werror=yes
12508else
12509 enable_werror=no
12510fi
12511fi;
12512case ${enable_werror} in
12513 yes) stage2_werror_flag="--enable-werror-always" ;;
12514 *) stage2_werror_flag="" ;;
12515esac
12516
12517
12518# Flags needed to enable html installing and building
12519
12520# Check whether --with-datarootdir or --without-datarootdir was given.
12521if test "${with_datarootdir+set}" = set; then
12522 withval="$with_datarootdir"
12523 datarootdir="\${prefix}/${withval}"
12524else
12525 datarootdir="\${prefix}/share"
12526fi;
12527
12528
12529# Check whether --with-docdir or --without-docdir was given.
12530if test "${with_docdir+set}" = set; then
12531 withval="$with_docdir"
12532 docdir="\${prefix}/${withval}"
12533else
12534 docdir="\${datarootdir}/doc"
12535fi;
12536
12537
12538# Check whether --with-pdfdir or --without-pdfdir was given.
12539if test "${with_pdfdir+set}" = set; then
12540 withval="$with_pdfdir"
12541 pdfdir="\${prefix}/${withval}"
12542else
12543 pdfdir="\${docdir}"
12544fi;
12545
12546
12547# Check whether --with-htmldir or --without-htmldir was given.
12548if test "${with_htmldir+set}" = set; then
12549 withval="$with_htmldir"
12550 htmldir="\${prefix}/${withval}"
12551else
12552 htmldir="\${docdir}"
12553fi;
12554
12555
12556
12557
12558
12559
12560 ac_config_files="$ac_config_files Makefile"
12561cat >confcache <<\_ACEOF
12562# This file is a shell script that caches the results of configure
12563# tests run on this system so they can be shared between configure
12564# scripts and configure runs, see configure's option --config-cache.
12565# It is not useful on other systems. If it contains results you don't
12566# want to keep, you may remove or edit it.
12567#
12568# config.status only pays attention to the cache file if you give it
12569# the --recheck option to rerun configure.
12570#
12571# `ac_cv_env_foo' variables (set or unset) will be overridden when
12572# loading this file, other *unset* `ac_cv_foo' will be assigned the
12573# following values.
12574
12575_ACEOF
12576
12577# The following way of writing the cache mishandles newlines in values,
12578# but we know of no workaround that is simple, portable, and efficient.
12579# So, don't put newlines in cache variables' values.
12580# Ultrix sh set writes to stderr and can't be redirected directly,
12581# and sets the high bit in the cache file unless we assign to the vars.
12582{
12583 (set) 2>&1 |
12584 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12585 *ac_space=\ *)
12586 # `set' does not quote correctly, so add quotes (double-quote
12587 # substitution turns \\\\ into \\, and sed turns \\ into \).
12588 sed -n \
12589 "s/'/'\\\\''/g;
12590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12591 ;;
12592 *)
12593 # `set' quotes correctly as required by POSIX, so do not add quotes.
12594 sed -n \
12595 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12596 ;;
12597 esac;
12598} |
12599 sed '
12600 t clear
12601 : clear
12602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12603 t end
12604 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12605 : end' >>confcache
12606if diff $cache_file confcache >/dev/null 2>&1; then :; else
12607 if test -w $cache_file; then
12608 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12609 cat confcache >$cache_file
12610 else
12611 echo "not updating unwritable cache $cache_file"
12612 fi
12613fi
12614rm -f confcache
12615
12616test "x$prefix" = xNONE && prefix=$ac_default_prefix
12617# Let make expand exec_prefix.
12618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12619
12620# VPATH may cause trouble with some makes, so we remove $(srcdir),
12621# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12622# trailing colons and then remove the whole line if VPATH becomes empty
12623# (actually we leave an empty line to preserve line numbers).
12624if test "x$srcdir" = x.; then
12625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12626s/:*\$(srcdir):*/:/;
12627s/:*\${srcdir}:*/:/;
12628s/:*@srcdir@:*/:/;
12629s/^\([^=]*=[ ]*\):*/\1/;
12630s/:*$//;
12631s/^[^=]*=[ ]*$//;
12632}'
12633fi
12634
12635# Transform confdefs.h into DEFS.
12636# Protect against shell expansion while executing Makefile rules.
12637# Protect against Makefile macro expansion.
12638#
12639# If the first sed substitution is executed (which looks for macros that
12640# take arguments), then we branch to the quote section. Otherwise,
12641# look for a macro that doesn't take arguments.
12642cat >confdef2opt.sed <<\_ACEOF
12643t clear
12644: clear
12645s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12646t quote
12647s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12648t quote
12649d
12650: quote
12651s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12652s,\[,\\&,g
12653s,\],\\&,g
12654s,\$,$$,g
12655p
12656_ACEOF
12657# We use echo to avoid assuming a particular line-breaking character.
12658# The extra dot is to prevent the shell from consuming trailing
12659# line-breaks from the sub-command output. A line-break within
12660# single-quotes doesn't work because, if this script is created in a
12661# platform that uses two characters for line-breaks (e.g., DOS), tr
12662# would break.
12663ac_LF_and_DOT=`echo; echo .`
12664DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12665rm -f confdef2opt.sed
12666
12667
12668ac_libobjs=
12669ac_ltlibobjs=
12670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12671 # 1. Remove the extension, and $U if already installed.
12672 ac_i=`echo "$ac_i" |
12673 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12674 # 2. Add them.
12675 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12676 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12677done
12678LIBOBJS=$ac_libobjs
12679
12680LTLIBOBJS=$ac_ltlibobjs
12681
12682
12683
12684: ${CONFIG_STATUS=./config.status}
12685ac_clean_files_save=$ac_clean_files
12686ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12687{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12688echo "$as_me: creating $CONFIG_STATUS" >&6;}
12689cat >$CONFIG_STATUS <<_ACEOF
12690#! $SHELL
12691# Generated by $as_me.
12692# Run this file to recreate the current configuration.
12693# Compiler output produced by configure, useful for debugging
12694# configure, is in config.log if it exists.
12695
12696debug=false
12697ac_cs_recheck=false
12698ac_cs_silent=false
12699SHELL=\${CONFIG_SHELL-$SHELL}
12700_ACEOF
12701
12702cat >>$CONFIG_STATUS <<\_ACEOF
12703## --------------------- ##
12704## M4sh Initialization. ##
12705## --------------------- ##
12706
12707# Be Bourne compatible
12708if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12709 emulate sh
12710 NULLCMD=:
12711 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12712 # is contrary to our usage. Disable this feature.
12713 alias -g '${1+"$@"}'='"$@"'
12714elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12715 set -o posix
12716fi
12717DUALCASE=1; export DUALCASE # for MKS sh
12718
12719# Support unset when possible.
12720if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12721 as_unset=unset
12722else
12723 as_unset=false
12724fi
12725
12726
12727# Work around bugs in pre-3.0 UWIN ksh.
12728$as_unset ENV MAIL MAILPATH
12729PS1='$ '
12730PS2='> '
12731PS4='+ '
12732
12733# NLS nuisances.
12734for as_var in \
12735 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12736 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12737 LC_TELEPHONE LC_TIME
12738do
12739 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12740 eval $as_var=C; export $as_var
12741 else
12742 $as_unset $as_var
12743 fi
12744done
12745
12746# Required to use basename.
12747if expr a : '\(a\)' >/dev/null 2>&1; then
12748 as_expr=expr
12749else
12750 as_expr=false
12751fi
12752
12753if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12754 as_basename=basename
12755else
12756 as_basename=false
12757fi
12758
12759
12760# Name of the executable.
12761as_me=`$as_basename "$0" ||
12762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12763 X"$0" : 'X\(//\)$' \| \
12764 X"$0" : 'X\(/\)$' \| \
12765 . : '\(.\)' 2>/dev/null ||
12766echo X/"$0" |
12767 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12768 /^X\/\(\/\/\)$/{ s//\1/; q; }
12769 /^X\/\(\/\).*/{ s//\1/; q; }
12770 s/.*/./; q'`
12771
12772
12773# PATH needs CR, and LINENO needs CR and PATH.
12774# Avoid depending upon Character Ranges.
12775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12778as_cr_digits='0123456789'
12779as_cr_alnum=$as_cr_Letters$as_cr_digits
12780
12781# The user is always right.
12782if test "${PATH_SEPARATOR+set}" != set; then
12783 echo "#! /bin/sh" >conf$$.sh
12784 echo "exit 0" >>conf$$.sh
12785 chmod +x conf$$.sh
12786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12787 PATH_SEPARATOR=';'
12788 else
12789 PATH_SEPARATOR=:
12790 fi
12791 rm -f conf$$.sh
12792fi
12793
12794
12795 as_lineno_1=$LINENO
12796 as_lineno_2=$LINENO
12797 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12798 test "x$as_lineno_1" != "x$as_lineno_2" &&
12799 test "x$as_lineno_3" = "x$as_lineno_2" || {
12800 # Find who we are. Look in the path if we contain no path at all
12801 # relative or not.
12802 case $0 in
12803 *[\\/]* ) as_myself=$0 ;;
12804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805for as_dir in $PATH
12806do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12810done
12811
12812 ;;
12813 esac
12814 # We did not find ourselves, most probably we were run as `sh COMMAND'
12815 # in which case we are not to be found in the path.
12816 if test "x$as_myself" = x; then
12817 as_myself=$0
12818 fi
12819 if test ! -f "$as_myself"; then
12820 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12821echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12822 { (exit 1); exit 1; }; }
12823 fi
12824 case $CONFIG_SHELL in
12825 '')
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for as_base in sh bash ksh sh5; do
12832 case $as_dir in
12833 /*)
12834 if ("$as_dir/$as_base" -c '
12835 as_lineno_1=$LINENO
12836 as_lineno_2=$LINENO
12837 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12838 test "x$as_lineno_1" != "x$as_lineno_2" &&
12839 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12840 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12841 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12842 CONFIG_SHELL=$as_dir/$as_base
12843 export CONFIG_SHELL
12844 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12845 fi;;
12846 esac
12847 done
12848done
12849;;
12850 esac
12851
12852 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12853 # uniformly replaced by the line number. The first 'sed' inserts a
12854 # line-number line before each line; the second 'sed' does the real
12855 # work. The second script uses 'N' to pair each line-number line
12856 # with the numbered line, and appends trailing '-' during
12857 # substitution so that $LINENO is not a special case at line end.
12858 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12859 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12860 sed '=' <$as_myself |
12861 sed '
12862 N
12863 s,$,-,
12864 : loop
12865 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12866 t loop
12867 s,-$,,
12868 s,^['$as_cr_digits']*\n,,
12869 ' >$as_me.lineno &&
12870 chmod +x $as_me.lineno ||
12871 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12872echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12873 { (exit 1); exit 1; }; }
12874
12875 # Don't try to exec as it changes $[0], causing all sort of problems
12876 # (the dirname of $[0] is not the place where we might find the
12877 # original and so on. Autoconf is especially sensible to this).
12878 . ./$as_me.lineno
12879 # Exit status is that of the last command.
12880 exit
12881}
12882
12883
12884case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12885 *c*,-n*) ECHO_N= ECHO_C='
12886' ECHO_T=' ' ;;
12887 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12888 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12889esac
12890
12891if expr a : '\(a\)' >/dev/null 2>&1; then
12892 as_expr=expr
12893else
12894 as_expr=false
12895fi
12896
12897rm -f conf$$ conf$$.exe conf$$.file
12898echo >conf$$.file
12899if ln -s conf$$.file conf$$ 2>/dev/null; then
12900 # We could just check for DJGPP; but this test a) works b) is more generic
12901 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12902 if test -f conf$$.exe; then
12903 # Don't use ln at all; we don't have any links
12904 as_ln_s='cp -p'
12905 else
12906 as_ln_s='ln -s'
12907 fi
12908elif ln conf$$.file conf$$ 2>/dev/null; then
12909 as_ln_s=ln
12910else
12911 as_ln_s='cp -p'
12912fi
12913rm -f conf$$ conf$$.exe conf$$.file
12914
12915if mkdir -p . 2>/dev/null; then
12916 as_mkdir_p=:
12917else
12918 test -d ./-p && rmdir ./-p
12919 as_mkdir_p=false
12920fi
12921
12922as_executable_p="test -f"
12923
12924# Sed expression to map a string onto a valid CPP name.
12925as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12926
12927# Sed expression to map a string onto a valid variable name.
12928as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12929
12930
12931# IFS
12932# We need space, tab and new line, in precisely that order.
12933as_nl='
12934'
12935IFS=" $as_nl"
12936
12937# CDPATH.
12938$as_unset CDPATH
12939
12940exec 6>&1
12941
12942# Open the log real soon, to keep \$[0] and so on meaningful, and to
12943# report actual input values of CONFIG_FILES etc. instead of their
12944# values after options handling. Logging --version etc. is OK.
12945exec 5>>config.log
12946{
12947 echo
12948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12949## Running $as_me. ##
12950_ASBOX
12951} >&5
12952cat >&5 <<_CSEOF
12953
12954This file was extended by $as_me, which was
12955generated by GNU Autoconf 2.59. Invocation command line was
12956
12957 CONFIG_FILES = $CONFIG_FILES
12958 CONFIG_HEADERS = $CONFIG_HEADERS
12959 CONFIG_LINKS = $CONFIG_LINKS
12960 CONFIG_COMMANDS = $CONFIG_COMMANDS
12961 $ $0 $@
12962
12963_CSEOF
12964echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12965echo >&5
12966_ACEOF
12967
12968# Files that config.status was made for.
12969if test -n "$ac_config_files"; then
12970 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12971fi
12972
12973if test -n "$ac_config_headers"; then
12974 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12975fi
12976
12977if test -n "$ac_config_links"; then
12978 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12979fi
12980
12981if test -n "$ac_config_commands"; then
12982 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12983fi
12984
12985cat >>$CONFIG_STATUS <<\_ACEOF
12986
12987ac_cs_usage="\
12988\`$as_me' instantiates files from templates according to the
12989current configuration.
12990
12991Usage: $0 [OPTIONS] [FILE]...
12992
12993 -h, --help print this help, then exit
12994 -V, --version print version number, then exit
12995 -q, --quiet do not print progress messages
12996 -d, --debug don't remove temporary files
12997 --recheck update $as_me by reconfiguring in the same conditions
12998 --file=FILE[:TEMPLATE]
12999 instantiate the configuration file FILE
13000
13001Configuration files:
13002$config_files
13003
13004Report bugs to <bug-autoconf@gnu.org>."
13005_ACEOF
13006
13007cat >>$CONFIG_STATUS <<_ACEOF
13008ac_cs_version="\\
13009config.status
13010configured by $0, generated by GNU Autoconf 2.59,
13011 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13012
13013Copyright (C) 2003 Free Software Foundation, Inc.
13014This config.status script is free software; the Free Software Foundation
13015gives unlimited permission to copy, distribute and modify it."
13016srcdir=$srcdir
13017INSTALL="$INSTALL"
13018_ACEOF
13019
13020cat >>$CONFIG_STATUS <<\_ACEOF
13021# If no file are specified by the user, then we need to provide default
13022# value. By we need to know if files were specified by the user.
13023ac_need_defaults=:
13024while test $# != 0
13025do
13026 case $1 in
13027 --*=*)
13028 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13029 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13030 ac_shift=:
13031 ;;
13032 -*)
13033 ac_option=$1
13034 ac_optarg=$2
13035 ac_shift=shift
13036 ;;
13037 *) # This is not an option, so the user has probably given explicit
13038 # arguments.
13039 ac_option=$1
13040 ac_need_defaults=false;;
13041 esac
13042
13043 case $ac_option in
13044 # Handling of the options.
13045_ACEOF
13046cat >>$CONFIG_STATUS <<\_ACEOF
13047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13048 ac_cs_recheck=: ;;
13049 --version | --vers* | -V )
13050 echo "$ac_cs_version"; exit 0 ;;
13051 --he | --h)
13052 # Conflict between --help and --header
13053 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13054Try \`$0 --help' for more information." >&5
13055echo "$as_me: error: ambiguous option: $1
13056Try \`$0 --help' for more information." >&2;}
13057 { (exit 1); exit 1; }; };;
13058 --help | --hel | -h )
13059 echo "$ac_cs_usage"; exit 0 ;;
13060 --debug | --d* | -d )
13061 debug=: ;;
13062 --file | --fil | --fi | --f )
13063 $ac_shift
13064 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13065 ac_need_defaults=false;;
13066 --header | --heade | --head | --hea )
13067 $ac_shift
13068 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13069 ac_need_defaults=false;;
13070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13071 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13072 ac_cs_silent=: ;;
13073
13074 # This is an error.
13075 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13076Try \`$0 --help' for more information." >&5
13077echo "$as_me: error: unrecognized option: $1
13078Try \`$0 --help' for more information." >&2;}
13079 { (exit 1); exit 1; }; } ;;
13080
13081 *) ac_config_targets="$ac_config_targets $1" ;;
13082
13083 esac
13084 shift
13085done
13086
13087ac_configure_extra_args=
13088
13089if $ac_cs_silent; then
13090 exec 6>/dev/null
13091 ac_configure_extra_args="$ac_configure_extra_args --silent"
13092fi
13093
13094_ACEOF
13095cat >>$CONFIG_STATUS <<_ACEOF
13096if \$ac_cs_recheck; then
13097 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13098 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13099fi
13100
13101_ACEOF
13102
13103
13104
13105
13106
13107cat >>$CONFIG_STATUS <<\_ACEOF
13108for ac_config_target in $ac_config_targets
13109do
13110 case "$ac_config_target" in
13111 # Handling of arguments.
13112 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13113 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13114echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13115 { (exit 1); exit 1; }; };;
13116 esac
13117done
13118
13119# If the user did not use the arguments to specify the items to instantiate,
13120# then the envvar interface is used. Set only those that are not.
13121# We use the long form for the default assignment because of an extremely
13122# bizarre bug on SunOS 4.1.3.
13123if $ac_need_defaults; then
13124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13125fi
13126
13127# Have a temporary directory for convenience. Make it in the build tree
13128# simply because there is no reason to put it here, and in addition,
13129# creating and moving files from /tmp can sometimes cause problems.
13130# Create a temporary directory, and hook for its removal unless debugging.
13131$debug ||
13132{
13133 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13134 trap '{ (exit 1); exit 1; }' 1 2 13 15
13135}
13136
13137# Create a (secure) tmp directory for tmp files.
13138
13139{
13140 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13141 test -n "$tmp" && test -d "$tmp"
13142} ||
13143{
13144 tmp=./confstat$$-$RANDOM
13145 (umask 077 && mkdir $tmp)
13146} ||
13147{
13148 echo "$me: cannot create a temporary directory in ." >&2
13149 { (exit 1); exit 1; }
13150}
13151
13152_ACEOF
13153
13154cat >>$CONFIG_STATUS <<_ACEOF
13155
13156#
13157# CONFIG_FILES section.
13158#
13159
13160# No need to generate the scripts if there are no CONFIG_FILES.
13161# This happens for instance when ./config.status config.h
13162if test -n "\$CONFIG_FILES"; then
13163 # Protect against being on the right side of a sed subst in config.status.
13164 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13165 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13166s,@SHELL@,$SHELL,;t t
13167s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13168s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13169s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13170s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13171s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13172s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13173s,@exec_prefix@,$exec_prefix,;t t
13174s,@prefix@,$prefix,;t t
13175s,@program_transform_name@,$program_transform_name,;t t
13176s,@bindir@,$bindir,;t t
13177s,@sbindir@,$sbindir,;t t
13178s,@libexecdir@,$libexecdir,;t t
13179s,@datadir@,$datadir,;t t
13180s,@sysconfdir@,$sysconfdir,;t t
13181s,@sharedstatedir@,$sharedstatedir,;t t
13182s,@localstatedir@,$localstatedir,;t t
13183s,@libdir@,$libdir,;t t
13184s,@includedir@,$includedir,;t t
13185s,@oldincludedir@,$oldincludedir,;t t
13186s,@infodir@,$infodir,;t t
13187s,@mandir@,$mandir,;t t
13188s,@build_alias@,$build_alias,;t t
13189s,@host_alias@,$host_alias,;t t
13190s,@target_alias@,$target_alias,;t t
13191s,@DEFS@,$DEFS,;t t
13192s,@ECHO_C@,$ECHO_C,;t t
13193s,@ECHO_N@,$ECHO_N,;t t
13194s,@ECHO_T@,$ECHO_T,;t t
13195s,@LIBS@,$LIBS,;t t
13196s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13197s,@build@,$build,;t t
13198s,@build_cpu@,$build_cpu,;t t
13199s,@build_vendor@,$build_vendor,;t t
13200s,@build_os@,$build_os,;t t
13201s,@build_noncanonical@,$build_noncanonical,;t t
13202s,@host_noncanonical@,$host_noncanonical,;t t
13203s,@target_noncanonical@,$target_noncanonical,;t t
13204s,@host@,$host,;t t
13205s,@host_cpu@,$host_cpu,;t t
13206s,@host_vendor@,$host_vendor,;t t
13207s,@host_os@,$host_os,;t t
13208s,@target@,$target,;t t
13209s,@target_cpu@,$target_cpu,;t t
13210s,@target_vendor@,$target_vendor,;t t
13211s,@target_os@,$target_os,;t t
13212s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13213s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13214s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13215s,@LN@,$LN,;t t
13216s,@LN_S@,$LN_S,;t t
13217s,@build_libsubdir@,$build_libsubdir,;t t
13218s,@build_subdir@,$build_subdir,;t t
13219s,@host_subdir@,$host_subdir,;t t
13220s,@target_subdir@,$target_subdir,;t t
13221s,@CC@,$CC,;t t
13222s,@CFLAGS@,$CFLAGS,;t t
13223s,@LDFLAGS@,$LDFLAGS,;t t
13224s,@CPPFLAGS@,$CPPFLAGS,;t t
13225s,@ac_ct_CC@,$ac_ct_CC,;t t
13226s,@EXEEXT@,$EXEEXT,;t t
13227s,@OBJEXT@,$OBJEXT,;t t
13228s,@CXX@,$CXX,;t t
13229s,@CXXFLAGS@,$CXXFLAGS,;t t
13230s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13231s,@GNATBIND@,$GNATBIND,;t t
13232s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13233s,@GNATMAKE@,$GNATMAKE,;t t
13234s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13235s,@do_compare@,$do_compare,;t t
13236s,@gmplibs@,$gmplibs,;t t
13237s,@gmpinc@,$gmpinc,;t t
13238s,@ppllibs@,$ppllibs,;t t
13239s,@pplinc@,$pplinc,;t t
13240s,@clooglibs@,$clooglibs,;t t
13241s,@clooginc@,$clooginc,;t t
13242s,@stage1_languages@,$stage1_languages,;t t
13243s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13244s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13245s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13246s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13247s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13248s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13249s,@tooldir@,$tooldir,;t t
13250s,@build_tooldir@,$build_tooldir,;t t
13251s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13252s,@GDB_TK@,$GDB_TK,;t t
13253s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13254s,@build_configargs@,$build_configargs,;t t
13255s,@build_configdirs@,$build_configdirs,;t t
13256s,@host_configargs@,$host_configargs,;t t
13257s,@configdirs@,$configdirs,;t t
13258s,@target_configargs@,$target_configargs,;t t
13259s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13260s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13261s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13262s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13263s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13264s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13265s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13266s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13267s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13268s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13269s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13270s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13271s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13272s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13273s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13274s,@config_shell@,$config_shell,;t t
13275s,@YACC@,$YACC,;t t
13276s,@BISON@,$BISON,;t t
13277s,@M4@,$M4,;t t
13278s,@LEX@,$LEX,;t t
13279s,@FLEX@,$FLEX,;t t
13280s,@MAKEINFO@,$MAKEINFO,;t t
13281s,@EXPECT@,$EXPECT,;t t
13282s,@RUNTEST@,$RUNTEST,;t t
13283s,@AR@,$AR,;t t
13284s,@AS@,$AS,;t t
13285s,@DLLTOOL@,$DLLTOOL,;t t
13286s,@LD@,$LD,;t t
13287s,@LIPO@,$LIPO,;t t
13288s,@NM@,$NM,;t t
13289s,@RANLIB@,$RANLIB,;t t
13290s,@STRIP@,$STRIP,;t t
13291s,@WINDRES@,$WINDRES,;t t
13292s,@WINDMC@,$WINDMC,;t t
13293s,@OBJCOPY@,$OBJCOPY,;t t
13294s,@OBJDUMP@,$OBJDUMP,;t t
13295s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13296s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13297s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13298s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13299s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13300s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13301s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13302s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13303s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13304s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13305s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13306s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13307s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13308s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13309s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13310s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13311s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13312s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13313s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13314s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13315s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13316s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13317s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13318s,@MAINT@,$MAINT,;t t
13319s,@stage1_cflags@,$stage1_cflags,;t t
13320s,@stage1_checking@,$stage1_checking,;t t
13321s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13322s,@datarootdir@,$datarootdir,;t t
13323s,@docdir@,$docdir,;t t
13324s,@pdfdir@,$pdfdir,;t t
13325s,@htmldir@,$htmldir,;t t
13326s,@LIBOBJS@,$LIBOBJS,;t t
13327s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13328/@serialization_dependencies@/r $serialization_dependencies
13329s,@serialization_dependencies@,,;t t
13330/@host_makefile_frag@/r $host_makefile_frag
13331s,@host_makefile_frag@,,;t t
13332/@target_makefile_frag@/r $target_makefile_frag
13333s,@target_makefile_frag@,,;t t
13334/@alphaieee_frag@/r $alphaieee_frag
13335s,@alphaieee_frag@,,;t t
13336/@ospace_frag@/r $ospace_frag
13337s,@ospace_frag@,,;t t
13338CEOF
13339
13340_ACEOF
13341
13342 cat >>$CONFIG_STATUS <<\_ACEOF
13343 # Split the substitutions into bite-sized pieces for seds with
13344 # small command number limits, like on Digital OSF/1 and HP-UX.
13345 ac_max_sed_lines=48
13346 ac_sed_frag=1 # Number of current file.
13347 ac_beg=1 # First line for current file.
13348 ac_end=$ac_max_sed_lines # Line after last line for current file.
13349 ac_more_lines=:
13350 ac_sed_cmds=
13351 while $ac_more_lines; do
13352 if test $ac_beg -gt 1; then
13353 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13354 else
13355 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13356 fi
13357 if test ! -s $tmp/subs.frag; then
13358 ac_more_lines=false
13359 else
13360 # The purpose of the label and of the branching condition is to
13361 # speed up the sed processing (if there are no `@' at all, there
13362 # is no need to browse any of the substitutions).
13363 # These are the two extra sed commands mentioned above.
13364 (echo ':t
13365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13366 if test -z "$ac_sed_cmds"; then
13367 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13368 else
13369 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13370 fi
13371 ac_sed_frag=`expr $ac_sed_frag + 1`
13372 ac_beg=$ac_end
13373 ac_end=`expr $ac_end + $ac_max_sed_lines`
13374 fi
13375 done
13376 if test -z "$ac_sed_cmds"; then
13377 ac_sed_cmds=cat
13378 fi
13379fi # test -n "$CONFIG_FILES"
13380
13381_ACEOF
13382cat >>$CONFIG_STATUS <<\_ACEOF
13383for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13385 case $ac_file in
13386 - | *:- | *:-:* ) # input from stdin
13387 cat >$tmp/stdin
13388 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13390 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13392 * ) ac_file_in=$ac_file.in ;;
13393 esac
13394
13395 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13396 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13398 X"$ac_file" : 'X\(//\)[^/]' \| \
13399 X"$ac_file" : 'X\(//\)$' \| \
13400 X"$ac_file" : 'X\(/\)' \| \
13401 . : '\(.\)' 2>/dev/null ||
13402echo X"$ac_file" |
13403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13405 /^X\(\/\/\)$/{ s//\1/; q; }
13406 /^X\(\/\).*/{ s//\1/; q; }
13407 s/.*/./; q'`
13408 { if $as_mkdir_p; then
13409 mkdir -p "$ac_dir"
13410 else
13411 as_dir="$ac_dir"
13412 as_dirs=
13413 while test ! -d "$as_dir"; do
13414 as_dirs="$as_dir $as_dirs"
13415 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13417 X"$as_dir" : 'X\(//\)[^/]' \| \
13418 X"$as_dir" : 'X\(//\)$' \| \
13419 X"$as_dir" : 'X\(/\)' \| \
13420 . : '\(.\)' 2>/dev/null ||
13421echo X"$as_dir" |
13422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13424 /^X\(\/\/\)$/{ s//\1/; q; }
13425 /^X\(\/\).*/{ s//\1/; q; }
13426 s/.*/./; q'`
13427 done
13428 test ! -n "$as_dirs" || mkdir $as_dirs
13429 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13430echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13431 { (exit 1); exit 1; }; }; }
13432
13433 ac_builddir=.
13434
13435if test "$ac_dir" != .; then
13436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13437 # A "../" for each directory in $ac_dir_suffix.
13438 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13439else
13440 ac_dir_suffix= ac_top_builddir=
13441fi
13442
13443case $srcdir in
13444 .) # No --srcdir option. We are building in place.
13445 ac_srcdir=.
13446 if test -z "$ac_top_builddir"; then
13447 ac_top_srcdir=.
13448 else
13449 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13450 fi ;;
13451 [\\/]* | ?:[\\/]* ) # Absolute path.
13452 ac_srcdir=$srcdir$ac_dir_suffix;
13453 ac_top_srcdir=$srcdir ;;
13454 *) # Relative path.
13455 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13456 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13457esac
13458
13459# Do not use `cd foo && pwd` to compute absolute paths, because
13460# the directories may not exist.
13461case `pwd` in
13462.) ac_abs_builddir="$ac_dir";;
13463*)
13464 case "$ac_dir" in
13465 .) ac_abs_builddir=`pwd`;;
13466 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13467 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13468 esac;;
13469esac
13470case $ac_abs_builddir in
13471.) ac_abs_top_builddir=${ac_top_builddir}.;;
13472*)
13473 case ${ac_top_builddir}. in
13474 .) ac_abs_top_builddir=$ac_abs_builddir;;
13475 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13476 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13477 esac;;
13478esac
13479case $ac_abs_builddir in
13480.) ac_abs_srcdir=$ac_srcdir;;
13481*)
13482 case $ac_srcdir in
13483 .) ac_abs_srcdir=$ac_abs_builddir;;
13484 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13485 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13486 esac;;
13487esac
13488case $ac_abs_builddir in
13489.) ac_abs_top_srcdir=$ac_top_srcdir;;
13490*)
13491 case $ac_top_srcdir in
13492 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13493 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13494 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13495 esac;;
13496esac
13497
13498
13499 case $INSTALL in
13500 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13501 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13502 esac
13503
13504 if test x"$ac_file" != x-; then
13505 { echo "$as_me:$LINENO: creating $ac_file" >&5
13506echo "$as_me: creating $ac_file" >&6;}
13507 rm -f "$ac_file"
13508 fi
13509 # Let's still pretend it is `configure' which instantiates (i.e., don't
13510 # use $as_me), people would be surprised to read:
13511 # /* config.h. Generated by config.status. */
13512 if test x"$ac_file" = x-; then
13513 configure_input=
13514 else
13515 configure_input="$ac_file. "
13516 fi
13517 configure_input=$configure_input"Generated from `echo $ac_file_in |
13518 sed 's,.*/,,'` by configure."
13519
13520 # First look for the input files in the build tree, otherwise in the
13521 # src tree.
13522 ac_file_inputs=`IFS=:
13523 for f in $ac_file_in; do
13524 case $f in
13525 -) echo $tmp/stdin ;;
13526 [\\/$]*)
13527 # Absolute (can't be DOS-style, as IFS=:)
13528 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13529echo "$as_me: error: cannot find input file: $f" >&2;}
13530 { (exit 1); exit 1; }; }
13531 echo "$f";;
13532 *) # Relative
13533 if test -f "$f"; then
13534 # Build tree
13535 echo "$f"
13536 elif test -f "$srcdir/$f"; then
13537 # Source tree
13538 echo "$srcdir/$f"
13539 else
13540 # /dev/null tree
13541 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13542echo "$as_me: error: cannot find input file: $f" >&2;}
13543 { (exit 1); exit 1; }; }
13544 fi;;
13545 esac
13546 done` || { (exit 1); exit 1; }
13547_ACEOF
13548cat >>$CONFIG_STATUS <<_ACEOF
13549 sed "$ac_vpsub
13550$extrasub
13551_ACEOF
13552cat >>$CONFIG_STATUS <<\_ACEOF
13553:t
13554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13555s,@configure_input@,$configure_input,;t t
13556s,@srcdir@,$ac_srcdir,;t t
13557s,@abs_srcdir@,$ac_abs_srcdir,;t t
13558s,@top_srcdir@,$ac_top_srcdir,;t t
13559s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13560s,@builddir@,$ac_builddir,;t t
13561s,@abs_builddir@,$ac_abs_builddir,;t t
13562s,@top_builddir@,$ac_top_builddir,;t t
13563s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13564s,@INSTALL@,$ac_INSTALL,;t t
13565" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13566 rm -f $tmp/stdin
13567 if test x"$ac_file" != x-; then
13568 mv $tmp/out $ac_file
13569 else
13570 cat $tmp/out
13571 rm -f $tmp/out
13572 fi
13573
13574done
13575_ACEOF
13576
13577cat >>$CONFIG_STATUS <<\_ACEOF
13578
13579{ (exit 0); exit 0; }
13580_ACEOF
13581chmod +x $CONFIG_STATUS
13582ac_clean_files=$ac_clean_files_save
13583
13584
13585# configure is writing to config.log, and then calls config.status.
13586# config.status does its own redirection, appending to config.log.
13587# Unfortunately, on DOS this fails, as config.log is still kept open
13588# by configure, so config.status won't be able to write to it; its
13589# output is simply discarded. So we exec the FD to /dev/null,
13590# effectively closing config.log, so it can be properly (re)opened and
13591# appended to by config.status. When coming back to configure, we
13592# need to make the FD available again.
13593if test "$no_create" != yes; then
13594 ac_cs_success=:
13595 ac_config_status_args=
13596 test "$silent" = yes &&
13597 ac_config_status_args="$ac_config_status_args --quiet"
13598 exec 5>/dev/null
13599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13600 exec 5>>config.log
13601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13602 # would make configure fail if this is the last instruction.
13603 $ac_cs_success || { (exit 1); exit 1; }
13604fi
13605
This page took 0.070598 seconds and 4 git commands to generate.