OSDN Git Service

PR bootstrap/30753
[pf3gnuchains/pf3gnuchains3x.git] / configure
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
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $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.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740
741 #
742 # Report the --help message.
743 #
744 if test "$ac_init_help" = "long"; then
745   # Omit some internal or obsolete options to make the list less imposing.
746   # This message is too long to be a string in the A/UX 3.1 sh.
747   cat <<_ACEOF
748 \`configure' configures this package to adapt to many kinds of systems.
749
750 Usage: $0 [OPTION]... [VAR=VALUE]...
751
752 To assign environment variables (e.g., CC, CFLAGS...), specify them as
753 VAR=VALUE.  See below for descriptions of some of the useful variables.
754
755 Defaults for the options are specified in brackets.
756
757 Configuration:
758   -h, --help              display this help and exit
759       --help=short        display options specific to this package
760       --help=recursive    display the short help of all the included packages
761   -V, --version           display version information and exit
762   -q, --quiet, --silent   do not print \`checking...' messages
763       --cache-file=FILE   cache test results in FILE [disabled]
764   -C, --config-cache      alias for \`--cache-file=config.cache'
765   -n, --no-create         do not create output files
766       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
767
768 _ACEOF
769
770   cat <<_ACEOF
771 Installation directories:
772   --prefix=PREFIX         install architecture-independent files in PREFIX
773                           [$ac_default_prefix]
774   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
775                           [PREFIX]
776
777 By default, \`make install' will install all the files in
778 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
779 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780 for instance \`--prefix=\$HOME'.
781
782 For better control, use the options below.
783
784 Fine tuning of the installation directories:
785   --bindir=DIR           user executables [EPREFIX/bin]
786   --sbindir=DIR          system admin executables [EPREFIX/sbin]
787   --libexecdir=DIR       program executables [EPREFIX/libexec]
788   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
789   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
790   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
791   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
792   --libdir=DIR           object code libraries [EPREFIX/lib]
793   --includedir=DIR       C header files [PREFIX/include]
794   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
795   --infodir=DIR          info documentation [PREFIX/info]
796   --mandir=DIR           man documentation [PREFIX/man]
797 _ACEOF
798
799   cat <<\_ACEOF
800
801 Program names:
802   --program-prefix=PREFIX            prepend PREFIX to installed program names
803   --program-suffix=SUFFIX            append SUFFIX to installed program names
804   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
805
806 System types:
807   --build=BUILD     configure for building on BUILD [guessed]
808   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
809   --target=TARGET   configure for building compilers for TARGET [HOST]
810 _ACEOF
811 fi
812
813 if test -n "$ac_init_help"; then
814
815   cat <<\_ACEOF
816
817 Optional Features:
818   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
819   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
820   --enable-libada        Builds libada directory
821   --enable-libssp        Builds libssp directory
822   --enable-stage1-languages=all   choose additional languages to build during
823                           stage1.  Mostly useful for compiler development.
824   --enable-objc-gc       enable the use of Boehm's garbage collector with
825                           the GNU Objective-C runtime.
826   --enable-bootstrap           Enable bootstrapping yes if native build
827   --enable-serial-{host,target,build}-configure
828                           Force sequential configuration of
829                           sub-packages for the host, target or build
830                           machine, or all sub-packages
831   --enable-maintainer-mode enable make rules and dependencies not useful
832                           (and sometimes confusing) to the casual installer
833   --enable-stage1-checking=all   choose additional checking for stage1
834                           of the compiler.
835   --enable-werror         enable -Werror in bootstrap stage2 and later
836
837 Optional Packages:
838   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
839   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
840   --with-build-libsubdir=DIR  Directory where to find libraries for build system
841   --with-mpfr-dir=PATH    This option has been REMOVED
842   --with-mpfr=PATH        Specify prefix directory for installed MPFR package
843                           Equivalent to --with-mpfr-include=PATH/include
844                           plus --with-mpfr-lib=PATH/lib
845   --with-mpfr-include=PATH
846                           Specify directory for installed MPFR include files
847   --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library
848   --with-gmp-dir=PATH     This option has been REMOVED
849   --with-gmp=PATH         Specify prefix directory for the installed GMP package
850                           Equivalent to --with-gmp-include=PATH/include
851                           plus --with-gmp-lib=PATH/lib
852   --with-gmp-include=PATH Specify directory for installed GMP include files
853   --with-gmp-lib=PATH     Specify the directory for the installed GMP library
854   --with-build-sysroot=sysroot
855                           use sysroot as the system root during the build
856   --with-build-time-tools=path
857                           use given path to find target tools during the build
858   --with-datarootdir    Use datarootdir as the data root directory.
859   --with-docdir Install documentation in this directory.
860   --with-htmldir        Install html in this directory.
861
862 Some influential environment variables:
863   CC          C compiler command
864   CFLAGS      C compiler flags
865   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866               nonstandard directory <lib dir>
867   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868               headers in a nonstandard directory <include dir>
869   CXX         C++ compiler command
870   CXXFLAGS    C++ compiler flags
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879   # If there are subdirs, report their specific --help.
880   ac_popdir=`pwd`
881   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882     test -d $ac_dir || continue
883     ac_builddir=.
884
885 if test "$ac_dir" != .; then
886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887   # A "../" for each directory in $ac_dir_suffix.
888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890   ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894   .)  # No --srcdir option.  We are building in place.
895     ac_srcdir=.
896     if test -z "$ac_top_builddir"; then
897        ac_top_srcdir=.
898     else
899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900     fi ;;
901   [\\/]* | ?:[\\/]* )  # Absolute path.
902     ac_srcdir=$srcdir$ac_dir_suffix;
903     ac_top_srcdir=$srcdir ;;
904   *) # Relative path.
905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914   case "$ac_dir" in
915   .) ac_abs_builddir=`pwd`;;
916   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917   *) ac_abs_builddir=`pwd`/"$ac_dir";;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923   case ${ac_top_builddir}. in
924   .) ac_abs_top_builddir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932   case $ac_srcdir in
933   .) ac_abs_srcdir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936   esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941   case $ac_top_srcdir in
942   .) ac_abs_top_srcdir=$ac_abs_builddir;;
943   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945   esac;;
946 esac
947
948     cd $ac_dir
949     # Check for guested configure; otherwise get Cygnus style configure.
950     if test -f $ac_srcdir/configure.gnu; then
951       echo
952       $SHELL $ac_srcdir/configure.gnu  --help=recursive
953     elif test -f $ac_srcdir/configure; then
954       echo
955       $SHELL $ac_srcdir/configure  --help=recursive
956     elif test -f $ac_srcdir/configure.ac ||
957            test -f $ac_srcdir/configure.in; then
958       echo
959       $ac_configure --help
960     else
961       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962     fi
963     cd $ac_popdir
964   done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969   cat <<\_ACEOF
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975   exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59.  Invocation command line was
984
985   $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
1003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016   IFS=$as_save_IFS
1017   test -z "$as_dir" && as_dir=.
1018   echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045   for ac_arg
1046   do
1047     case $ac_arg in
1048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050     | -silent | --silent | --silen | --sile | --sil)
1051       continue ;;
1052     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054     esac
1055     case $ac_pass in
1056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057     2)
1058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059       if test $ac_must_keep_next = true; then
1060         ac_must_keep_next=false # Got value, back to normal.
1061       else
1062         case $ac_arg in
1063           *=* | --config-cache | -C | -disable-* | --disable-* \
1064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066           | -with-* | --with-* | -without-* | --without-* | --x)
1067             case "$ac_configure_args0 " in
1068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069             esac
1070             ;;
1071           -* ) ac_must_keep_next=true ;;
1072         esac
1073       fi
1074       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075       # Get rid of the leading space.
1076       ac_sep=" "
1077       ;;
1078     esac
1079   done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log.  We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090   # Save into config.log some information that might help in debugging.
1091   {
1092     echo
1093
1094     cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099     echo
1100     # The following way of writing the cache mishandles newlines in values,
1101 {
1102   (set) 2>&1 |
1103     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104     *ac_space=\ *)
1105       sed -n \
1106         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108       ;;
1109     *)
1110       sed -n \
1111         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112       ;;
1113     esac;
1114 }
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122     echo
1123     for ac_var in $ac_subst_vars
1124     do
1125       eval ac_val=$`echo $ac_var`
1126       echo "$ac_var='"'"'$ac_val'"'"'"
1127     done | sort
1128     echo
1129
1130     if test -n "$ac_subst_files"; then
1131       cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136       echo
1137       for ac_var in $ac_subst_files
1138       do
1139         eval ac_val=$`echo $ac_var`
1140         echo "$ac_var='"'"'$ac_val'"'"'"
1141       done | sort
1142       echo
1143     fi
1144
1145     if test -s confdefs.h; then
1146       cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151       echo
1152       sed "/^$/d" confdefs.h | sort
1153       echo
1154     fi
1155     test "$ac_signal" != 0 &&
1156       echo "$as_me: caught signal $ac_signal"
1157     echo "$as_me: exit $exit_status"
1158   } >&5
1159   rm -f core *.core &&
1160   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161     exit $exit_status
1162      ' 0
1163 for ac_signal in 1 2 13 15; do
1164   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203   if test "x$prefix" != xNONE; then
1204     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205   else
1206     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207   fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210   if test -r "$ac_site_file"; then
1211     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213     sed 's/^/| /' "$ac_site_file" >&5
1214     . "$ac_site_file"
1215   fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219   # Some versions of bash will fail to source /dev/null (special
1220   # files actually), so we avoid doing that.
1221   if test -f "$cache_file"; then
1222     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224     case $cache_file in
1225       [\\/]* | ?:[\\/]* ) . $cache_file;;
1226       *)                      . ./$cache_file;;
1227     esac
1228   fi
1229 else
1230   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232   >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241   eval ac_new_set=\$ac_env_${ac_var}_set
1242   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243   eval ac_new_val="\$ac_env_${ac_var}_value"
1244   case $ac_old_set,$ac_new_set in
1245     set,)
1246       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248       ac_cache_corrupted=: ;;
1249     ,set)
1250       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252       ac_cache_corrupted=: ;;
1253     ,);;
1254     *)
1255       if test "x$ac_old_val" != "x$ac_new_val"; then
1256         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1259 echo "$as_me:   former value:  $ac_old_val" >&2;}
1260         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1261 echo "$as_me:   current value: $ac_new_val" >&2;}
1262         ac_cache_corrupted=:
1263       fi;;
1264   esac
1265   # Pass precious variables to config.status.
1266   if test "$ac_new_set" = set; then
1267     case $ac_new_val in
1268     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270     *) ac_arg=$ac_var=$ac_new_val ;;
1271     esac
1272     case " $ac_configure_args " in
1273       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1274       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275     esac
1276   fi
1277 done
1278 if $ac_cache_corrupted; then
1279   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283    { (exit 1); exit 1; }; }
1284 fi
1285
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312 # Find the build, host, and target systems.
1313 ac_aux_dir=
1314 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1315   if test -f $ac_dir/install-sh; then
1316     ac_aux_dir=$ac_dir
1317     ac_install_sh="$ac_aux_dir/install-sh -c"
1318     break
1319   elif test -f $ac_dir/install.sh; then
1320     ac_aux_dir=$ac_dir
1321     ac_install_sh="$ac_aux_dir/install.sh -c"
1322     break
1323   elif test -f $ac_dir/shtool; then
1324     ac_aux_dir=$ac_dir
1325     ac_install_sh="$ac_aux_dir/shtool install -c"
1326     break
1327   fi
1328 done
1329 if test -z "$ac_aux_dir"; then
1330   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332    { (exit 1); exit 1; }; }
1333 fi
1334 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1337
1338 # Make sure we can run config.sub.
1339 $ac_config_sub sun4 >/dev/null 2>&1 ||
1340   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342    { (exit 1); exit 1; }; }
1343
1344 echo "$as_me:$LINENO: checking build system type" >&5
1345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346 if test "${ac_cv_build+set}" = set; then
1347   echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349   ac_cv_build_alias=$build_alias
1350 test -z "$ac_cv_build_alias" &&
1351   ac_cv_build_alias=`$ac_config_guess`
1352 test -z "$ac_cv_build_alias" &&
1353   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355    { (exit 1); exit 1; }; }
1356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359    { (exit 1); exit 1; }; }
1360
1361 fi
1362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363 echo "${ECHO_T}$ac_cv_build" >&6
1364 build=$ac_cv_build
1365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368
1369
1370  case ${build_alias} in
1371   "") build_noncanonical=${build} ;;
1372   *) build_noncanonical=${build_alias} ;;
1373 esac
1374
1375
1376
1377  case ${host_alias} in
1378   "") host_noncanonical=${build_noncanonical} ;;
1379   *) host_noncanonical=${host_alias} ;;
1380 esac
1381
1382
1383
1384  case ${target_alias} in
1385   "") target_noncanonical=${host_noncanonical} ;;
1386   *) target_noncanonical=${target_alias} ;;
1387 esac
1388
1389
1390
1391
1392 test "$host_noncanonical" = "$target_noncanonical" &&
1393   test "$program_prefix$program_suffix$program_transform_name" = \
1394     NONENONEs,x,x, &&
1395   program_transform_name=s,y,y,
1396
1397 echo "$as_me:$LINENO: checking host system type" >&5
1398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399 if test "${ac_cv_host+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_host_alias=$host_alias
1403 test -z "$ac_cv_host_alias" &&
1404   ac_cv_host_alias=$ac_cv_build_alias
1405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408    { (exit 1); exit 1; }; }
1409
1410 fi
1411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412 echo "${ECHO_T}$ac_cv_host" >&6
1413 host=$ac_cv_host
1414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419 echo "$as_me:$LINENO: checking target system type" >&5
1420 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421 if test "${ac_cv_target+set}" = set; then
1422   echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424   ac_cv_target_alias=$target_alias
1425 test "x$ac_cv_target_alias" = "x" &&
1426   ac_cv_target_alias=$ac_cv_host_alias
1427 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430    { (exit 1); exit 1; }; }
1431
1432 fi
1433 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434 echo "${ECHO_T}$ac_cv_target" >&6
1435 target=$ac_cv_target
1436 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439
1440
1441 # The aliases save the names the user supplied, while $host etc.
1442 # will get canonicalized.
1443 test -n "$target_alias" &&
1444   test "$program_prefix$program_suffix$program_transform_name" = \
1445     NONENONEs,x,x, &&
1446   program_prefix=${target_alias}-
1447 test "$program_prefix" != NONE &&
1448   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE &&
1451   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452 # Double any \ or $.  echo might interpret backslashes.
1453 # By default was `s,x,x', remove it if useless.
1454 cat <<\_ACEOF >conftest.sed
1455 s/[\\$]/&&/g;s/;s,x,x,$//
1456 _ACEOF
1457 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458 rm conftest.sed
1459
1460
1461
1462 # Get 'install' or 'install-sh' and its variants.
1463 # Find a good install program.  We prefer a C program (faster),
1464 # so one script is as good as another.  But avoid the broken or
1465 # incompatible versions:
1466 # SysV /etc/install, /usr/sbin/install
1467 # SunOS /usr/etc/install
1468 # IRIX /sbin/install
1469 # AIX /bin/install
1470 # AmigaOS /C/install, which installs bootblocks on floppy discs
1471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1474 # OS/2's system install, which has a completely different semantic
1475 # ./install, which can be erroneously created by make from ./install.sh.
1476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1478 if test -z "$INSTALL"; then
1479 if test "${ac_cv_path_install+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   # Account for people who put trailing slashes in PATH elements.
1488 case $as_dir/ in
1489   ./ | .// | /cC/* | \
1490   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492   /usr/ucb/* ) ;;
1493   *)
1494     # OSF1 and SCO ODT 3.0 have their own names for install.
1495     # Don't use installbsd from OSF since it installs stuff as root
1496     # by default.
1497     for ac_prog in ginstall scoinst install; do
1498       for ac_exec_ext in '' $ac_executable_extensions; do
1499         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1500           if test $ac_prog = install &&
1501             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1502             # AIX install.  It has an incompatible calling convention.
1503             :
1504           elif test $ac_prog = install &&
1505             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506             # program-specific install script used by HP pwplus--don't use.
1507             :
1508           else
1509             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510             break 3
1511           fi
1512         fi
1513       done
1514     done
1515     ;;
1516 esac
1517 done
1518
1519
1520 fi
1521   if test "${ac_cv_path_install+set}" = set; then
1522     INSTALL=$ac_cv_path_install
1523   else
1524     # As a last resort, use the slow shell script.  We don't cache a
1525     # path for INSTALL within a source directory, because that will
1526     # break other packages using the cache if that directory is
1527     # removed, or if the path is relative.
1528     INSTALL=$ac_install_sh
1529   fi
1530 fi
1531 echo "$as_me:$LINENO: result: $INSTALL" >&5
1532 echo "${ECHO_T}$INSTALL" >&6
1533
1534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535 # It thinks the first close brace ends the variable substitution.
1536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1537
1538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1539
1540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1541
1542 echo "$as_me:$LINENO: checking whether ln works" >&5
1543 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544 if test "${acx_cv_prog_LN+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   rm -f conftestdata_t
1548 echo >conftestdata_f
1549 if ln conftestdata_f conftestdata_t 2>/dev/null
1550 then
1551   acx_cv_prog_LN=ln
1552 else
1553   acx_cv_prog_LN=no
1554 fi
1555 rm -f conftestdata_f conftestdata_t
1556
1557 fi
1558 if test $acx_cv_prog_LN = no; then
1559   LN="cp"
1560   echo "$as_me:$LINENO: result: no, using $LN" >&5
1561 echo "${ECHO_T}no, using $LN" >&6
1562 else
1563   LN="$acx_cv_prog_LN"
1564   echo "$as_me:$LINENO: result: yes" >&5
1565 echo "${ECHO_T}yes" >&6
1566 fi
1567
1568 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570 LN_S=$as_ln_s
1571 if test "$LN_S" = "ln -s"; then
1572   echo "$as_me:$LINENO: result: yes" >&5
1573 echo "${ECHO_T}yes" >&6
1574 else
1575   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576 echo "${ECHO_T}no, using $LN_S" >&6
1577 fi
1578
1579
1580 ### we might need to use some other shell than /bin/sh for running subshells
1581 ### If we are on Windows, search for the shell.  This will permit people
1582 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583 ### without also having to set CONFIG_SHELL.  This code will work when
1584 ### using bash, which sets OSTYPE.
1585 case "${OSTYPE}" in
1586 *win32*)
1587   if test x${CONFIG_SHELL} = x ; then
1588     if test ! -f /bin/sh ; then
1589       if test x${SHELL} != x && test -f ${SHELL} ; then
1590         CONFIG_SHELL=${SHELL}
1591         export CONFIG_SHELL
1592       else
1593         for prog in sh sh.exe bash bash.exe; do
1594           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
1595           for dir in $PATH; do
1596             test -z "$dir" && dir=.
1597             if test -f $dir/$prog; then
1598               CONFIG_SHELL=$dir/$prog
1599               export CONFIG_SHELL
1600               break
1601             fi
1602           done
1603           IFS="$save_ifs"
1604           test -n "${CONFIG_SHELL}" && break
1605         done
1606       fi
1607     fi
1608   fi
1609   ;;
1610 esac
1611
1612 config_shell=${CONFIG_SHELL-/bin/sh}
1613
1614 progname=$0
1615 # if PWD already has a value, it is probably wrong.
1616 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1617
1618 # Export original configure arguments for use by sub-configures.  These
1619 # will be expanded by make, so quote '$'.
1620 tmp="$progname $@"
1621 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1622 $tmp
1623 EOF_SED
1624 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1625 rm -f conftestsed.out
1626
1627
1628 moveifchange=${srcdir}/move-if-change
1629
1630 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1631
1632 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
1633 # a relative path.
1634 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1635   INSTALL="${srcpwd}/install-sh -c"
1636 fi
1637
1638 # Set srcdir to "." if that's what it is.
1639 # This is important for multilib support.
1640 pwd=`${PWDCMD-pwd}`
1641 if test "${pwd}" = "${srcpwd}" ; then
1642   srcdir=.
1643 fi
1644
1645 topsrcdir=$srcpwd
1646
1647 extra_host_args=
1648
1649 ### To add a new directory to the tree, first choose whether it is a target
1650 ### or a host dependent tool.  Then put it into the appropriate list
1651 ### (library or tools, host or target), doing a dependency sort.
1652
1653 # Subdirs will be configured in the order listed in build_configdirs,
1654 # configdirs, or target_configdirs; see the serialization section below.
1655
1656 # Dependency sorting is only needed when *configuration* must be done in
1657 # a particular order.  In all cases a dependency should be specified in
1658 # the Makefile, whether or not it's implicitly specified here.
1659
1660 # Double entries in build_configdirs, configdirs, or target_configdirs may
1661 # cause circular dependencies and break everything horribly.
1662
1663 # these library is used by various programs built for the build
1664 # environment
1665 #
1666 build_libs="build-libiberty"
1667
1668 # these tools are built for the build environment
1669 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1670
1671 # these libraries are used by various programs built for the host environment
1672 #
1673 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1674
1675 # these tools are built for the host environment
1676 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1677 # know that we are building the simulator.
1678 # binutils, gas and ld appear in that order because it makes sense to run
1679 # "make check" in that particular order.
1680 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1681
1682 # libgcj represents the runtime libraries only used by gcj.
1683 libgcj="target-libffi \
1684         target-zlib \
1685         target-qthreads \
1686         target-libjava"
1687
1688 # these libraries are built for the target environment, and are built after
1689 # the host libraries and the host tools (which may be a cross compiler)
1690 #
1691 target_libraries="target-libiberty \
1692                 target-libgcc \
1693                 target-libgloss \
1694                 target-newlib \
1695                 target-libstdc++-v3 \
1696                 target-libmudflap \
1697                 target-libssp \
1698                 target-libgfortran \
1699                 target-boehm-gc \
1700                 ${libgcj} \
1701                 target-libobjc \
1702                 target-libada \
1703                 target-libgomp"
1704
1705 # these tools are built using the target libraries, and are intended to
1706 # run only in the target environment
1707 #
1708 # note: any program that *uses* libraries that are in the "target_libraries"
1709 # list belongs in this list.  those programs are also very likely
1710 # candidates for the "native_only" list which follows
1711 #
1712 target_tools="target-examples target-groff target-gperf target-rda"
1713
1714 ################################################################################
1715
1716 ## All tools belong in one of the four categories, and are assigned above
1717 ## We assign ${configdirs} this way to remove all embedded newlines.  This
1718 ## is important because configure will choke if they ever get through.
1719 ## ${configdirs} is directories we build using the host tools.
1720 ## ${target_configdirs} is directories we build using the target tools.
1721 configdirs=`echo ${host_libs} ${host_tools}`
1722 target_configdirs=`echo ${target_libraries} ${target_tools}`
1723 build_configdirs=`echo ${build_libs} ${build_tools}`
1724
1725 ################################################################################
1726
1727 srcname="gnu development package"
1728
1729 # This gets set non-empty for some net releases of packages.
1730 appdirs=""
1731
1732 # Define is_cross_compiler to save on calls to 'test'.
1733 is_cross_compiler=
1734 if test x"${host}" = x"${target}" ; then
1735   is_cross_compiler=no
1736 else
1737   is_cross_compiler=yes
1738 fi
1739
1740 # Find the build and target subdir names.
1741
1742 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1743 # have matching libraries, they should use host libraries: Makefile.tpl
1744 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1745 # However, they still use the build modules, because the corresponding
1746 # host modules (e.g. bison) are only built for the host when bootstrap
1747 # finishes. So:
1748 # - build_subdir is where we find build modules, and never changes.
1749 # - build_libsubdir is where we find build libraries, and can be overridden.
1750
1751 # Prefix 'build-' so this never conflicts with target_subdir.
1752 build_subdir="build-${build_noncanonical}"
1753
1754 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1755 if test "${with_build_libsubdir+set}" = set; then
1756   withval="$with_build_libsubdir"
1757   build_libsubdir="$withval"
1758 else
1759   build_libsubdir="$build_subdir"
1760 fi;
1761 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1762 if ( test $srcdir = . && test -d gcc ) \
1763    || test -d $srcdir/../host-${host_noncanonical}; then
1764   host_subdir="host-${host_noncanonical}"
1765 else
1766   host_subdir=.
1767 fi
1768 # No prefix.
1769 target_subdir=${target_noncanonical}
1770
1771
1772 # Skipdirs are removed silently.
1773 skipdirs=
1774 # Noconfigdirs are removed loudly.
1775 noconfigdirs=""
1776
1777 use_gnu_ld=
1778 # Make sure we don't let GNU ld be added if we didn't want it.
1779 if test x$with_gnu_ld = xno ; then
1780   use_gnu_ld=no
1781   noconfigdirs="$noconfigdirs ld"
1782 fi
1783
1784 use_gnu_as=
1785 # Make sure we don't let GNU as be added if we didn't want it.
1786 if test x$with_gnu_as = xno ; then
1787   use_gnu_as=no
1788   noconfigdirs="$noconfigdirs gas"
1789 fi
1790
1791 # some tools are so dependent upon X11 that if we're not building with X,
1792 # it's not even worth trying to configure, much less build, that tool.
1793
1794 case ${with_x} in
1795   yes | "") ;; # the default value for this tree is that X11 is available
1796   no)
1797     skipdirs="${skipdirs} tk itcl libgui"
1798     # We won't be able to build gdbtk without X.
1799     enable_gdbtk=no
1800     ;;
1801   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1802 esac
1803
1804 # Some tools are only suitable for building in a "native" situation.
1805 # Remove these if host!=target.
1806 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1807
1808 # Similarly, some are only suitable for cross toolchains.
1809 # Remove these if host=target.
1810 cross_only="target-libgloss target-newlib target-opcodes"
1811
1812 case $is_cross_compiler in
1813   no) skipdirs="${skipdirs} ${cross_only}" ;;
1814   yes) skipdirs="${skipdirs} ${native_only}" ;;
1815 esac
1816
1817 # If both --with-headers and --with-libs are specified, default to
1818 # --without-newlib.
1819 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1820    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1821   if test x"${with_newlib}" = x ; then
1822     with_newlib=no
1823   fi
1824 fi
1825
1826 # Recognize --with-newlib/--without-newlib.
1827 case ${with_newlib} in
1828   no) skipdirs="${skipdirs} target-newlib" ;;
1829   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1830 esac
1831
1832 # Configure extra directories which are host specific
1833
1834 case "${host}" in
1835   *-cygwin*)
1836     configdirs="$configdirs libtermcap" ;;
1837 esac
1838
1839 # A target can indicate whether a language isn't supported for some reason.
1840 # Only spaces may be used in this macro; not newlines or tabs.
1841 unsupported_languages=
1842
1843 # Remove more programs from consideration, based on the host or
1844 # target this usually means that a port of the program doesn't
1845 # exist yet.
1846
1847 case "${host}" in
1848   hppa*64*-*-*)
1849     noconfigdirs="$noconfigdirs byacc"
1850     ;;
1851   i[3456789]86-*-vsta)
1852     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1853     ;;
1854   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1855     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1856     ;;
1857   x86_64-*-mingw*)
1858     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1859     ;;
1860   i[3456789]86-*-mingw32*)
1861     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1862     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1863     ;;
1864   i[3456789]86-*-beos*)
1865     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1866     ;;
1867   *-*-cygwin*)
1868     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1869     ;;
1870   *-*-netbsd*)
1871     noconfigdirs="$noconfigdirs rcs"
1872     ;;
1873   ppc*-*-pe)
1874     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1875     ;;
1876   powerpc-*-beos*)
1877     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1878     ;;
1879 esac
1880
1881
1882 # Check whether --enable-libada or --disable-libada was given.
1883 if test "${enable_libada+set}" = set; then
1884   enableval="$enable_libada"
1885   ENABLE_LIBADA=$enableval
1886 else
1887   ENABLE_LIBADA=yes
1888 fi;
1889 if test "${ENABLE_LIBADA}" != "yes" ; then
1890   noconfigdirs="$noconfigdirs gnattools"
1891 fi
1892
1893 # Check whether --enable-libssp or --disable-libssp was given.
1894 if test "${enable_libssp+set}" = set; then
1895   enableval="$enable_libssp"
1896   ENABLE_LIBSSP=$enableval
1897 else
1898   ENABLE_LIBSSP=yes
1899 fi;
1900
1901 # Save it here so that, even in case of --enable-libgcj, if the Java
1902 # front-end isn't enabled, we still get libgcj disabled.
1903 libgcj_saved=$libgcj
1904 case $enable_libgcj in
1905 yes)
1906   # If we reset it here, it won't get added to noconfigdirs in the
1907   # target-specific build rules, so it will be forcibly enabled
1908   # (unless the Java language itself isn't enabled).
1909   libgcj=
1910   ;;
1911 no)
1912   # Make sure we get it printed in the list of not supported target libs.
1913   noconfigdirs="$noconfigdirs ${libgcj}"
1914   ;;
1915 esac
1916
1917
1918 # Disable libmudflap on some systems.
1919 if test x$enable_libmudflap = x ; then
1920     case "${target}" in
1921     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1922         # Enable libmudflap by default in GNU and friends.
1923         ;;
1924     *-*-freebsd*)
1925         # Enable libmudflap by default in FreeBSD.
1926         ;;
1927     *)
1928         # Disable it by default everywhere else.
1929         noconfigdirs="$noconfigdirs target-libmudflap"
1930         ;;
1931     esac
1932 fi
1933
1934 # Disable libgomp on non POSIX hosted systems.
1935 if test x$enable_libgomp = x ; then
1936     # Enable libgomp by default on hosted POSIX systems.
1937     case "${target}" in
1938     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1939         ;;
1940     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1941         ;;
1942     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1943         ;;
1944     *-*-darwin* | *-*-aix*)
1945         ;;
1946     *)
1947         noconfigdirs="$noconfigdirs target-libgomp"
1948         ;;
1949     esac
1950 fi
1951
1952
1953 case "${target}" in
1954   *-*-chorusos)
1955     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1956     ;;
1957   powerpc-*-darwin* | i[3456789]86-*-darwin*)
1958     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1959     noconfigdirs="$noconfigdirs sim target-rda"
1960     ;;
1961   *-*-darwin*)
1962     noconfigdirs="$noconfigdirs ld gas gdb gprof"
1963     noconfigdirs="$noconfigdirs sim target-rda"
1964     noconfigdirs="$noconfigdirs ${libgcj}"
1965     ;;
1966   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1967     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1968     ;;
1969   *-*-freebsd*)
1970     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1971     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1972         && test -f /usr/local/include/gmp.h; then
1973       with_gmp=/usr/local
1974     fi
1975
1976     # Skip some stuff that's unsupported on some FreeBSD configurations.
1977     case "${target}" in
1978       i*86-*-*) ;;
1979       alpha*-*-*) ;;
1980       *)
1981         noconfigdirs="$noconfigdirs ${libgcj}"
1982         ;;
1983     esac
1984     ;;
1985   *-*-kaos*)
1986     # Remove unsupported stuff on all kaOS configurations.
1987     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1988     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1989     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1990     noconfigdirs="$noconfigdirs target-libgloss"
1991     ;;
1992   *-*-netbsd*)
1993     # Skip some stuff on all NetBSD configurations.
1994     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1995
1996     # Skip some stuff that's unsupported on some NetBSD configurations.
1997     case "${target}" in
1998       i*86-*-netbsdelf*) ;;
1999       arm*-*-netbsdelf*) ;;
2000       *)
2001         noconfigdirs="$noconfigdirs ${libgcj}"
2002         ;;
2003     esac
2004     ;;
2005   *-*-netware*)
2006     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2007     ;;
2008   *-*-rtems*)
2009     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2010     ;;
2011     # The tpf target doesn't support gdb yet.
2012   *-*-tpf*)
2013     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2014     ;;
2015   *-*-uclinux*)
2016     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2017     ;;
2018   *-*-vxworks*)
2019     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2020     ;;
2021   alpha*-dec-osf*)
2022     # ld works, but does not support shared libraries.
2023     # newlib is not 64 bit ready.  I'm not sure about fileutils.
2024     # gas doesn't generate exception information.
2025     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2026     ;;
2027   alpha*-*-*vms*)
2028     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2029     ;;
2030   alpha*-*-linux*)
2031     # newlib is not 64 bit ready
2032     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2033     ;;
2034   alpha*-*-*)
2035     # newlib is not 64 bit ready
2036     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2037     ;;
2038   am33_2.0-*-linux*)
2039     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2040     ;;
2041   sh-*-linux*)
2042     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2043     ;;
2044   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2045     noconfigdirs="$noconfigdirs ${libgcj}"
2046     noconfigdirs="$noconfigdirs target-examples"
2047     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2048     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2049     noconfigdirs="$noconfigdirs expect dejagnu"
2050     # the C++ libraries don't build on top of CE's C libraries
2051     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2052     noconfigdirs="$noconfigdirs target-newlib"
2053     case "${host}" in
2054       *-*-cygwin*) ;; # keep gdb and readline
2055       *) noconfigdirs="$noconfigdirs gdb readline"
2056          ;;
2057     esac
2058     ;;
2059   arc-*-*)
2060     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2061     ;;
2062   arm-semi-aof )
2063     ;;
2064   arm-*-coff | strongarm-*-coff | xscale-*-coff)
2065     noconfigdirs="$noconfigdirs ${libgcj}"
2066     ;;
2067   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2068     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2069     ;;
2070   arm*-*-linux-gnueabi)
2071     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2072     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2073     ;;
2074   arm*-*-symbianelf*)
2075     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2076     ;;
2077   arm-*-pe*)
2078     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2079     ;;
2080   thumb-*-coff)
2081     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2082     ;;
2083   thumb-*-elf)
2084     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2085     ;;
2086   thumb-*-pe)
2087     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2088     ;;
2089   arm-*-riscix*)
2090     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2091     ;;
2092   avr-*-*)
2093     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2094     ;;
2095   bfin-*-*)
2096     noconfigdirs="$noconfigdirs gdb"
2097     if test x${is_cross_compiler} != xno ; then
2098       target_configdirs="${target_configdirs} target-bsp target-cygmon"
2099     fi
2100     ;;
2101   c4x-*-* | tic4x-*-*)
2102     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2103     ;;
2104   c54x*-*-* | tic54x-*-*)
2105     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2106     ;;
2107   cris-*-* | crisv32-*-*)
2108     unsupported_languages="$unsupported_languages java"
2109     case "${target}" in
2110       *-*-aout)
2111         unsupported_languages="$unsupported_languages fortran"
2112         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2113       *-*-elf)
2114         unsupported_languages="$unsupported_languages fortran"
2115         noconfigdirs="$noconfigdirs target-boehm-gc";;
2116       *-*-linux*)
2117         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2118       *)
2119         unsupported_languages="$unsupported_languages fortran"
2120         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2121     esac
2122     ;;
2123   crx-*-*)
2124     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2125     ;;
2126   d10v-*-*)
2127     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2128     ;;
2129   d30v-*-*)
2130     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2131     ;;
2132   fr30-*-elf*)
2133     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2134     ;;
2135   frv-*-*)
2136     noconfigdirs="$noconfigdirs ${libgcj}"
2137     ;;
2138   h8300*-*-*)
2139     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2140     ;;
2141   h8500-*-*)
2142     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2143     ;;
2144   hppa1.1-*-osf* | hppa1.1-*-bsd* )
2145     ;;
2146   hppa*64*-*-linux* | parisc*64*-*-linux*)
2147     # In this case, it's because the hppa64-linux target is for
2148     # the kernel only at this point and has no libc, and thus no
2149     # headers, crt*.o, etc., all of which are needed by these.
2150     noconfigdirs="$noconfigdirs target-zlib"
2151     ;;
2152   parisc*-*-linux* | hppa*-*-linux*)
2153     ;;
2154   hppa*-*-*elf* | \
2155   hppa*-*-lites* | \
2156   hppa*-*-openbsd* | \
2157   hppa*64*-*-*)
2158     noconfigdirs="$noconfigdirs ${libgcj}"
2159     ;;
2160   hppa*-hp-hpux11*)
2161     noconfigdirs="$noconfigdirs ld shellutils"
2162     ;;
2163   hppa*-*-*)
2164     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2165     # build on HP-UX 10.20.
2166     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2167     ;;
2168   i960-*-*)
2169     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2170     ;;
2171   ia64*-*-elf*)
2172     # No gdb support yet.
2173     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2174     ;;
2175   ia64*-**-hpux*)
2176     # No gdb or ld support yet.
2177     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2178     ;;
2179   i370-*-opened*)
2180     ;;
2181   i[3456789]86-*-coff | i[3456789]86-*-elf)
2182     noconfigdirs="$noconfigdirs ${libgcj}"
2183     ;;
2184   i[3456789]86-*-linux*)
2185     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2186     # not build java stuff by default.
2187     case "${target}" in
2188       *-*-*libc1*)
2189         noconfigdirs="$noconfigdirs ${libgcj}";;
2190     esac
2191
2192     # This section makes it possible to build newlib natively on linux.
2193     # If we are using a cross compiler then don't configure newlib.
2194     if test x${is_cross_compiler} != xno ; then
2195       noconfigdirs="$noconfigdirs target-newlib"
2196     fi
2197     noconfigdirs="$noconfigdirs target-libgloss"
2198     # If we are not using a cross compiler, do configure newlib.
2199     # Note however, that newlib will only be configured in this situation
2200     # if the --with-newlib option has been given, because otherwise
2201     # 'target-newlib' will appear in skipdirs.
2202     ;;
2203   i[3456789]86-*-mingw32*)
2204     target_configdirs="$target_configdirs target-winsup"
2205     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2206     ;;
2207   x86_64-*-mingw*)
2208     target_configdirs="$target_configdirs target-winsup"
2209     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2210     ;;
2211   *-*-cygwin*)
2212     target_configdirs="$target_configdirs target-libtermcap target-winsup"
2213     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2214     # always build newlib if winsup directory is present.
2215     if test -d "$srcdir/winsup/cygwin"; then
2216       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2217     elif test -d "$srcdir/newlib"; then
2218       echo "Warning: winsup/cygwin is missing so newlib can't be built."
2219     fi
2220     ;;
2221   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2222   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2223     ;;
2224   i[3456789]86-*-pe)
2225     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2226     ;;
2227   i[3456789]86-*-sco3.2v5*)
2228     # The linker does not yet know about weak symbols in COFF,
2229     # and is not configured to handle mixed ELF and COFF.
2230     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2231     ;;
2232   i[3456789]86-*-sco*)
2233     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2234     ;;
2235   i[3456789]86-*-solaris2*)
2236     noconfigdirs="$noconfigdirs target-libgloss"
2237     ;;
2238   i[3456789]86-*-sysv4*)
2239     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2240     ;;
2241   i[3456789]86-*-beos*)
2242     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2243     ;;
2244   i[3456789]86-*-rdos*)
2245     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2246     ;;
2247   m32r-*-*)
2248     noconfigdirs="$noconfigdirs ${libgcj}"
2249     ;;
2250   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2251     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2252     ;;
2253   m68k-*-elf*)
2254     noconfigdirs="$noconfigdirs ${libgcj}"
2255     ;;
2256   m68k-*-coff*)
2257     noconfigdirs="$noconfigdirs ${libgcj}"
2258     ;;
2259   mcore-*-pe*)
2260   # The EPOC C++ environment does not support exceptions or rtti,
2261   # and so building libstdc++-v3 tends not to always work.
2262     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2263     ;;
2264   mmix-*-*)
2265     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2266     unsupported_languages="$unsupported_languages fortran java"
2267     ;;
2268   mn10200-*-*)
2269     noconfigdirs="$noconfigdirs ${libgcj}"
2270     ;;
2271   mn10300-*-*)
2272     noconfigdirs="$noconfigdirs ${libgcj}"
2273     ;;
2274   mt-*-*)
2275     noconfigdirs="$noconfigdirs sim"
2276     ;;
2277   powerpc-*-aix*)
2278     # copied from rs6000-*-* entry
2279     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2280     ;;
2281   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2282     target_configdirs="$target_configdirs target-winsup"
2283     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2284     # always build newlib.
2285     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2286     ;;
2287     # This is temporary until we can link against shared libraries
2288   powerpcle-*-solaris*)
2289     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2290     ;;
2291   powerpc-*-beos*)
2292     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2293     ;;
2294   powerpc-*-eabi)
2295     noconfigdirs="$noconfigdirs ${libgcj}"
2296     ;;
2297   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2298     ;;
2299   rs6000-*-lynxos*)
2300     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2301     ;;
2302   rs6000-*-aix*)
2303     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2304     ;;
2305   rs6000-*-*)
2306     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2307     ;;
2308   m68k-apollo-*)
2309     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2310     ;;
2311   mips*-*-irix5*)
2312     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2313     ;;
2314   mips*-*-irix6*)
2315     # Linking libjava exceeds command-line length limits on at least
2316     # IRIX 6.2, but not on IRIX 6.5.
2317     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2318     # <oldham@codesourcery.com>
2319     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2320     ;;
2321   mips*-*-bsd*)
2322     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2323     ;;
2324   mips64*-*-linux*)
2325     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2326     ;;
2327   mips*-*-linux*)
2328     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2329     ;;
2330   mips*-*-*)
2331     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2332     ;;
2333   romp-*-*)
2334     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2335     ;;
2336   sh-*-* | sh64-*-*)
2337     case "${host}" in
2338       i[3456789]86-*-vsta) ;; # don't add gprof back in
2339       i[3456789]86-*-go32*) ;; # don't add gprof back in
2340       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2341       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2342     esac
2343     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2344     ;;
2345   sparc-*-elf*)
2346     noconfigdirs="$noconfigdirs ${libgcj}"
2347     ;;
2348   sparc64-*-elf*)
2349     noconfigdirs="$noconfigdirs ${libgcj}"
2350     ;;
2351   sparclite-*-*)
2352     noconfigdirs="$noconfigdirs ${libgcj}"
2353     ;;
2354   sparc-*-sunos4*)
2355     noconfigdirs="$noconfigdirs ${libgcj}"
2356     if test x${is_cross_compiler} != xno ; then
2357            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2358     else
2359            use_gnu_ld=no
2360     fi
2361     ;;
2362   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2363     noconfigdirs="$noconfigdirs ${libgcj}"
2364     ;;
2365   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2366     ;;
2367   spu-*-*)
2368     skipdirs="target-libssp"
2369     ;;
2370   v810-*-*)
2371     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2372     ;;
2373   v850-*-*)
2374     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2375     ;;
2376   v850e-*-*)
2377     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2378     ;;
2379   v850ea-*-*)
2380     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2381     ;;
2382   vax-*-vms)
2383     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2384     ;;
2385   vax-*-*)
2386     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2387     ;;
2388   xtensa-*-*)
2389     noconfigdirs="$noconfigdirs ${libgcj}"
2390     ;;
2391   ip2k-*-*)
2392     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2393     ;;
2394   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2395     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2396     ;;
2397   *-*-lynxos*)
2398     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2399     ;;
2400   *-*-*)
2401     noconfigdirs="$noconfigdirs ${libgcj}"
2402     ;;
2403 esac
2404
2405 # If we aren't building newlib, then don't build libgloss, since libgloss
2406 # depends upon some newlib header files.
2407 case "${noconfigdirs}" in
2408   *target-libgloss*) ;;
2409   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2410 esac
2411
2412 # Work in distributions that contain no compiler tools, like Autoconf.
2413 tentative_cc=""
2414 host_makefile_frag=/dev/null
2415 if test -d ${srcdir}/config ; then
2416 case "${host}" in
2417   m68k-hp-hpux*)
2418     # Avoid "too much defining" errors from HPUX compiler.
2419     tentative_cc="cc -Wp,-H256000"
2420     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2421     # If it's HP/UX ar, this should be harmless.
2422     RANLIB="ar ts"
2423     ;;
2424   m68k-apollo-sysv*)
2425     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2426     ;;
2427   m68k-apollo-bsd*)
2428     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
2429     # chokes on bfd, the compiler won't let you assign integers to enums, and
2430     # other problems.  Defining CC to gcc is a questionable way to say "don't use
2431     # the apollo compiler" (the preferred version of GCC could be called cc,
2432     # or whatever), but I'm not sure leaving CC as cc is any better...
2433     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2434     # Used to have BISON=yacc.
2435     tentative_cc=gcc
2436     ;;
2437   m88k-dg-dgux*)
2438     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2439     ;;
2440   m88k-harris-cxux*)
2441     # Under CX/UX, we want to tell the compiler to use ANSI mode.
2442     tentative_cc="cc -Xa"
2443     host_makefile_frag="config/mh-cxux"
2444     ;;
2445   m88k-motorola-sysv*)
2446     ;;
2447   mips*-dec-ultrix*)
2448     tentative_cc="cc -Wf,-XNg1000"
2449     host_makefile_frag="config/mh-decstation"
2450     ;;
2451   mips*-nec-sysv4*)
2452     # The C compiler on NEC MIPS SVR4 needs bigger tables.
2453     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2454     host_makefile_frag="config/mh-necv4"
2455     ;;
2456   mips*-sgi-irix4*)
2457     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
2458     # environment.  Also bump switch table size so that cp-parse will
2459     # compile.  Bump string length limit so linker builds.
2460     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2461     ;;
2462   mips*-*-sysv4*)
2463     host_makefile_frag="config/mh-sysv4"
2464     ;;
2465   mips*-*-sysv*)
2466     # This is for a MIPS running RISC/os 4.52C.
2467
2468     # This is needed for GDB, but needs to be in the top-level make because
2469     # if a library is compiled with the bsd headers and gets linked with the
2470     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2471     # a different size).
2472     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
2473     # known except to select the sysv environment.  Could we use /proc instead?
2474     # These "sysv environments" and "bsd environments" often end up being a pain.
2475     #
2476     # This is not part of CFLAGS because perhaps not all C compilers have this
2477     # option.
2478     tentative_cc="cc -systype sysv"
2479     ;;
2480   i370-ibm-opened*)
2481     tentative_cc="c89"
2482     ;;
2483   i[3456789]86-*-sysv5*)
2484     host_makefile_frag="config/mh-sysv5"
2485     ;;
2486   i[3456789]86-*-dgux*)
2487     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2488     host_makefile_frag="config/mh-dgux386"
2489     ;;
2490   i[3456789]86-ncr-sysv4.3*)
2491     # The MetaWare compiler will generate a copyright message unless you
2492     # turn it off by adding the -Hnocopyr flag.
2493     tentative_cc="cc -Hnocopyr"
2494     ;;
2495   i[3456789]86-ncr-sysv4*)
2496     # for an NCR 3000 (i486/SVR4) system.
2497     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2498     # This compiler not only emits obnoxious copyright messages every time
2499     # you run it, but it chokes and dies on a whole bunch of GNU source
2500     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2501     tentative_cc="/usr/ccs/ATT/cc"
2502     host_makefile_frag="config/mh-ncr3000"
2503     ;;
2504   i[3456789]86-*-sco3.2v5*)
2505     ;;
2506   i[3456789]86-*-sco*)
2507     # The native C compiler botches some simple uses of const.  Unfortunately,
2508     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2509     tentative_cc="cc -Dconst="
2510     host_makefile_frag="config/mh-sco"
2511     ;;
2512   i[3456789]86-*-udk*)
2513     host_makefile_frag="config/mh-sysv5"
2514     ;;
2515   i[3456789]86-*-solaris2*)
2516     host_makefile_frag="config/mh-sysv4"
2517     ;;
2518   i[3456789]86-*-msdosdjgpp*)
2519     host_makefile_frag="config/mh-djgpp"
2520     ;;
2521   *-cygwin*)
2522     host_makefile_frag="config/mh-cygwin"
2523     ;;
2524   *-mingw32*)
2525     ;;
2526   *-mingw64*)
2527     ;;
2528   *-interix*)
2529     host_makefile_frag="config/mh-interix"
2530     ;;
2531   vax-*-ultrix2*)
2532     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2533     tentative_cc=gcc
2534     ;;
2535   *-*-solaris2*)
2536     host_makefile_frag="config/mh-solaris"
2537     ;;
2538   m68k-sun-sunos*)
2539     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2540     # without overflowing the jump tables (-J says to use a 32 bit table)
2541     tentative_cc="cc -J"
2542     ;;
2543   *-hp-hpux*)
2544     tentative_cc="cc -Wp,-H256000"
2545     ;;
2546   *-*-hiux*)
2547     tentative_cc="cc -Wp,-H256000"
2548     ;;
2549   rs6000-*-lynxos*)
2550     # /bin/cc is less than useful for our purposes.  Always use GCC
2551     tentative_cc="/usr/cygnus/progressive/bin/gcc"
2552     host_makefile_frag="config/mh-lynxrs6k"
2553     ;;
2554   powerpc-*-darwin*)
2555     host_makefile_frag="config/mh-ppc-darwin"
2556     ;;
2557   powerpc-*-aix*)
2558     host_makefile_frag="config/mh-ppc-aix"
2559     ;;
2560   rs6000-*-aix*)
2561     host_makefile_frag="config/mh-ppc-aix"
2562     ;;
2563   *-*-lynxos*)
2564     # /bin/cc is less than useful for our purposes.  Always use GCC
2565     tentative_cc="/bin/gcc"
2566     ;;
2567   *-*-sysv4*)
2568     host_makefile_frag="config/mh-sysv4"
2569     ;;
2570   # This is placed last to prevent interfering with the cases above.
2571   i[3456789]86-*-*)
2572     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2573     host_makefile_frag="config/mh-x86omitfp"
2574     ;;
2575 esac
2576 fi
2577
2578 # If we aren't going to be using gcc, see if we can extract a definition
2579 # of CC from the fragment.
2580 # Actually, use the 'pre-extracted' version above.
2581 if test -z "${CC}" && test "${build}" = "${host}" ; then
2582   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2583   found=
2584   for dir in $PATH; do
2585     test -z "$dir" && dir=.
2586     if test -f $dir/gcc; then
2587       found=yes
2588       break
2589     fi
2590   done
2591   IFS="$save_ifs"
2592   if test -z "${found}" && test -n "${tentative_cc}" ; then
2593     CC=$tentative_cc
2594   fi
2595 fi
2596
2597 if test "${build}" != "${host}" ; then
2598   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2599 else
2600   CC_FOR_BUILD="\$(CC)"
2601 fi
2602
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$CC"; then
2617   ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637   echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6
2639 else
2640   echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6
2642 fi
2643
2644 fi
2645 if test -z "$ac_cv_prog_CC"; then
2646   ac_ct_CC=$CC
2647   # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -n "$ac_ct_CC"; then
2655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664     ac_cv_prog_ac_ct_CC="gcc"
2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680 fi
2681
2682   CC=$ac_ct_CC
2683 else
2684   CC="$ac_cv_prog_CC"
2685 fi
2686
2687 if test -z "$CC"; then
2688   if test -n "$ac_tool_prefix"; then
2689   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -n "$CC"; then
2697   ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706     ac_cv_prog_CC="${ac_tool_prefix}cc"
2707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712
2713 fi
2714 fi
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717   echo "$as_me:$LINENO: result: $CC" >&5
2718 echo "${ECHO_T}$CC" >&6
2719 else
2720   echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2722 fi
2723
2724 fi
2725 if test -z "$ac_cv_prog_CC"; then
2726   ac_ct_CC=$CC
2727   # Extract the first word of "cc", so it can be a program name with args.
2728 set dummy cc; ac_word=$2
2729 echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   if test -n "$ac_ct_CC"; then
2735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742   for ac_exec_ext in '' $ac_executable_extensions; do
2743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744     ac_cv_prog_ac_ct_CC="cc"
2745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749 done
2750
2751 fi
2752 fi
2753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756 echo "${ECHO_T}$ac_ct_CC" >&6
2757 else
2758   echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6
2760 fi
2761
2762   CC=$ac_ct_CC
2763 else
2764   CC="$ac_cv_prog_CC"
2765 fi
2766
2767 fi
2768 if test -z "$CC"; then
2769   # Extract the first word of "cc", so it can be a program name with args.
2770 set dummy cc; ac_word=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CC+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   if test -n "$CC"; then
2777   ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779   ac_prog_rejected=no
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788        ac_prog_rejected=yes
2789        continue
2790      fi
2791     ac_cv_prog_CC="cc"
2792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793     break 2
2794   fi
2795 done
2796 done
2797
2798 if test $ac_prog_rejected = yes; then
2799   # We found a bogon in the path, so make sure we never use it.
2800   set dummy $ac_cv_prog_CC
2801   shift
2802   if test $# != 0; then
2803     # We chose a different compiler from the bogus one.
2804     # However, it has the same basename, so the bogon will be chosen
2805     # first if we set CC to just the basename; use the full file name.
2806     shift
2807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2808   fi
2809 fi
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814   echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6
2816 else
2817   echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2819 fi
2820
2821 fi
2822 if test -z "$CC"; then
2823   if test -n "$ac_tool_prefix"; then
2824   for ac_prog in cl
2825   do
2826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   if test -n "$CC"; then
2834   ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841   for ac_exec_ext in '' $ac_executable_extensions; do
2842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848 done
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854   echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6
2856 else
2857   echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859 fi
2860
2861     test -n "$CC" && break
2862   done
2863 fi
2864 if test -z "$CC"; then
2865   ac_ct_CC=$CC
2866   for ac_prog in cl
2867 do
2868   # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   if test -n "$ac_ct_CC"; then
2876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883   for ac_exec_ext in '' $ac_executable_extensions; do
2884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_ac_ct_CC="$ac_prog"
2886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890 done
2891
2892 fi
2893 fi
2894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895 if test -n "$ac_ct_CC"; then
2896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897 echo "${ECHO_T}$ac_ct_CC" >&6
2898 else
2899   echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2901 fi
2902
2903   test -n "$ac_ct_CC" && break
2904 done
2905
2906   CC=$ac_ct_CC
2907 fi
2908
2909 fi
2910
2911
2912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&2;}
2916    { (exit 1); exit 1; }; }
2917
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO:" \
2920      "checking for C compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923   (eval $ac_compiler --version </dev/null >&5) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928   (eval $ac_compiler -v </dev/null >&5) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933   (eval $ac_compiler -V </dev/null >&5) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944
2945 int
2946 main ()
2947 {
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2957 # of exeext.
2958 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2960 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2962   (eval $ac_link_default) 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; then
2966   # Find the output, starting from the most likely.  This scheme is
2967 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2968 # resort.
2969
2970 # Be careful to initialize this variable, since it used to be cached.
2971 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2972 ac_cv_exeext=
2973 # b.out is created by i960 compilers.
2974 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2975 do
2976   test -f "$ac_file" || continue
2977   case $ac_file in
2978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2979         ;;
2980     conftest.$ac_ext )
2981         # This is the source file.
2982         ;;
2983     [ab].out )
2984         # We found the default executable, but exeext='' is most
2985         # certainly right.
2986         break;;
2987     *.* )
2988         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989         # FIXME: I believe we export ac_cv_exeext for Libtool,
2990         # but it would be cool to find out if it's true.  Does anybody
2991         # maintain Libtool? --akim.
2992         export ac_cv_exeext
2993         break;;
2994     * )
2995         break;;
2996   esac
2997 done
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&2;}
3006    { (exit 77); exit 77; }; }
3007 fi
3008
3009 ac_exeext=$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6
3012
3013 # Check the compiler produces executables we can run.  If not, either
3014 # the compiler is broken, or we cross compile.
3015 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020   if { ac_try='./$ac_file'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026     cross_compiling=no
3027   else
3028     if test "$cross_compiling" = maybe; then
3029         cross_compiling=yes
3030     else
3031         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&2;}
3037    { (exit 1); exit 1; }; }
3038     fi
3039   fi
3040 fi
3041 echo "$as_me:$LINENO: result: yes" >&5
3042 echo "${ECHO_T}yes" >&6
3043
3044 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 # Check the compiler produces executables we can run.  If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3050 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051 echo "${ECHO_T}$cross_compiling" >&6
3052
3053 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056   (eval $ac_link) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; then
3060   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3063 # `rm'.
3064 for ac_file in conftest.exe conftest conftest.*; do
3065   test -f "$ac_file" || continue
3066   case $ac_file in
3067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3068     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069           export ac_cv_exeext
3070           break;;
3071     * ) break;;
3072   esac
3073 done
3074 else
3075   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&2;}
3079    { (exit 1); exit 1; }; }
3080 fi
3081
3082 rm -f conftest$ac_cv_exeext
3083 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084 echo "${ECHO_T}$ac_cv_exeext" >&6
3085
3086 rm -f conftest.$ac_ext
3087 EXEEXT=$ac_cv_exeext
3088 ac_exeext=$EXEEXT
3089 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3091 if test "${ac_cv_objext+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.o conftest.obj
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; then
3115   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3116   case $ac_file in
3117     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3118     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119        break;;
3120   esac
3121 done
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }
3131 fi
3132
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134 fi
3135 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 echo "${ECHO_T}$ac_cv_objext" >&6
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154 #ifndef __GNUC__
3155        choke me
3156 #endif
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_c_werror_flag"
3172                          || test ! -s conftest.err'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_compiler_gnu=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ac_compiler_gnu=no
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194 fi
3195 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197 GCC=`test $ac_compiler_gnu = yes && echo yes`
3198 ac_test_CFLAGS=${CFLAGS+set}
3199 ac_save_CFLAGS=$CFLAGS
3200 CFLAGS="-g"
3201 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223   (eval $ac_compile) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"
3231                          || test ! -s conftest.err'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; } &&
3237          { ac_try='test -s conftest.$ac_objext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_prog_cc_g=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_cv_prog_cc_g=no
3249 fi
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3254 if test "$ac_test_CFLAGS" = set; then
3255   CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257   if test "$GCC" = yes; then
3258     CFLAGS="-g -O2"
3259   else
3260     CFLAGS="-g"
3261   fi
3262 else
3263   if test "$GCC" = yes; then
3264     CFLAGS="-O2"
3265   else
3266     CFLAGS=
3267   fi
3268 fi
3269 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_cv_prog_cc_stdc=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290      char **p;
3291      int i;
3292 {
3293   return p[i];
3294 }
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3296 {
3297   char *s;
3298   va_list v;
3299   va_start (v,p);
3300   s = g (p, va_arg (v,int));
3301   va_end (v);
3302   return s;
3303 }
3304
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3306    function prototypes and stuff, but not '\xHH' hex character constants.
3307    These don't provoke an error unfortunately, instead are silently treated
3308    as 'x'.  The following induces an error, until -std1 is added to get
3309    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3310    array size at least.  It's necessary to write '\x00'==0 to get something
3311    that's true only with -std1.  */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314 int test (int i, double x);
3315 struct s1 {int (*f) (int a);};
3316 struct s2 {int (*f) (double a);};
3317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 int argc;
3319 char **argv;
3320 int
3321 main ()
3322 {
3323 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 # Don't try gcc -ansi; that turns off useful extensions and
3329 # breaks some systems' header files.
3330 # AIX                   -qlanglvl=ansi
3331 # Ultrix and OSF/1      -std1
3332 # HP-UX 10.20 and later -Ae
3333 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3334 # SVR4                  -Xc -D__EXTENSIONS__
3335 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 do
3337   CC="$ac_save_CC $ac_arg"
3338   rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340   (eval $ac_compile) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   ac_cv_prog_cc_stdc=$ac_arg
3361 break
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 fi
3367 rm -f conftest.err conftest.$ac_objext
3368 done
3369 rm -f conftest.$ac_ext conftest.$ac_objext
3370 CC=$ac_save_CC
3371
3372 fi
3373
3374 case "x$ac_cv_prog_cc_stdc" in
3375   x|xno)
3376     echo "$as_me:$LINENO: result: none needed" >&5
3377 echo "${ECHO_T}none needed" >&6 ;;
3378   *)
3379     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381     CC="$CC $ac_cv_prog_cc_stdc" ;;
3382 esac
3383
3384 # Some people use a C++ compiler to compile C.  Since we use `exit',
3385 # in C++ we need to declare it.  In case someone uses the same compiler
3386 # for both compiling C and C++ we need to have the C++ compiler decide
3387 # the declaration of exit, since it's the most demanding environment.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #ifndef __cplusplus
3390   choke me
3391 #endif
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395   (eval $ac_compile) 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } &&
3402          { ac_try='test -z "$ac_c_werror_flag"
3403                          || test ! -s conftest.err'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; } &&
3409          { ac_try='test -s conftest.$ac_objext'
3410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411   (eval $ac_try) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; }; then
3415   for ac_declaration in \
3416    '' \
3417    'extern "C" void std::exit (int) throw (); using std::exit;' \
3418    'extern "C" void std::exit (int); using std::exit;' \
3419    'extern "C" void exit (int) throw ();' \
3420    'extern "C" void exit (int);' \
3421    'void exit (int);'
3422 do
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 $ac_declaration
3430 #include <stdlib.h>
3431 int
3432 main ()
3433 {
3434 exit (42);
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441   (eval $ac_compile) 2>conftest.er1
3442   ac_status=$?
3443   grep -v '^ *+' conftest.er1 >conftest.err
3444   rm -f conftest.er1
3445   cat conftest.err >&5
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } &&
3448          { ac_try='test -z "$ac_c_werror_flag"
3449                          || test ! -s conftest.err'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; } &&
3455          { ac_try='test -s conftest.$ac_objext'
3456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457   (eval $ac_try) 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; }; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 continue
3467 fi
3468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 $ac_declaration
3476 int
3477 main ()
3478 {
3479 exit (42);
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486   (eval $ac_compile) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_c_werror_flag"
3494                          || test ! -s conftest.err'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; } &&
3500          { ac_try='test -s conftest.$ac_objext'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; }; then
3506   break
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 fi
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 done
3514 rm -f conftest*
3515 if test -n "$ac_declaration"; then
3516   echo '#ifdef __cplusplus' >>confdefs.h
3517   echo $ac_declaration      >>confdefs.h
3518   echo '#endif'             >>confdefs.h
3519 fi
3520
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 fi
3526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533 ac_ext=cc
3534 ac_cpp='$CXXCPP $CPPFLAGS'
3535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538 if test -n "$ac_tool_prefix"; then
3539   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3540   do
3541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_CXX+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if test -n "$CXX"; then
3549   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556   for ac_exec_ext in '' $ac_executable_extensions; do
3557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563 done
3564
3565 fi
3566 fi
3567 CXX=$ac_cv_prog_CXX
3568 if test -n "$CXX"; then
3569   echo "$as_me:$LINENO: result: $CXX" >&5
3570 echo "${ECHO_T}$CXX" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575
3576     test -n "$CXX" && break
3577   done
3578 fi
3579 if test -z "$CXX"; then
3580   ac_ct_CXX=$CXX
3581   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3582 do
3583   # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$ac_ct_CXX"; then
3591   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_ac_ct_CXX="$ac_prog"
3601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606
3607 fi
3608 fi
3609 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3610 if test -n "$ac_ct_CXX"; then
3611   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3612 echo "${ECHO_T}$ac_ct_CXX" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618   test -n "$ac_ct_CXX" && break
3619 done
3620 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3621
3622   CXX=$ac_ct_CXX
3623 fi
3624
3625
3626 # Provide some information about the compiler.
3627 echo "$as_me:$LINENO:" \
3628      "checking for C++ compiler version" >&5
3629 ac_compiler=`set X $ac_compile; echo $2`
3630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3631   (eval $ac_compiler --version </dev/null >&5) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }
3635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3636   (eval $ac_compiler -v </dev/null >&5) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }
3640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3641   (eval $ac_compiler -V </dev/null >&5) 2>&5
3642   ac_status=$?
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); }
3645
3646 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3647 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3648 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657
3658 int
3659 main ()
3660 {
3661 #ifndef __GNUC__
3662        choke me
3663 #endif
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671   (eval $ac_compile) 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678          { ac_try='test -z "$ac_cxx_werror_flag"
3679                          || test ! -s conftest.err'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; } &&
3685          { ac_try='test -s conftest.$ac_objext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   ac_compiler_gnu=yes
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_compiler_gnu=no
3697 fi
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3700
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3704 GXX=`test $ac_compiler_gnu = yes && echo yes`
3705 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS=$CXXFLAGS
3707 CXXFLAGS="-g"
3708 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3710 if test "${ac_cv_prog_cxx_g+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h.  */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730   (eval $ac_compile) 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } &&
3737          { ac_try='test -z "$ac_cxx_werror_flag"
3738                          || test ! -s conftest.err'
3739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740   (eval $ac_try) 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; } &&
3744          { ac_try='test -s conftest.$ac_objext'
3745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746   (eval $ac_try) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   ac_cv_prog_cxx_g=yes
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 ac_cv_prog_cxx_g=no
3756 fi
3757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3761 if test "$ac_test_CXXFLAGS" = set; then
3762   CXXFLAGS=$ac_save_CXXFLAGS
3763 elif test $ac_cv_prog_cxx_g = yes; then
3764   if test "$GXX" = yes; then
3765     CXXFLAGS="-g -O2"
3766   else
3767     CXXFLAGS="-g"
3768   fi
3769 else
3770   if test "$GXX" = yes; then
3771     CXXFLAGS="-O2"
3772   else
3773     CXXFLAGS=
3774   fi
3775 fi
3776 for ac_declaration in \
3777    '' \
3778    'extern "C" void std::exit (int) throw (); using std::exit;' \
3779    'extern "C" void std::exit (int); using std::exit;' \
3780    'extern "C" void exit (int) throw ();' \
3781    'extern "C" void exit (int);' \
3782    'void exit (int);'
3783 do
3784   cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h.  */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h.  */
3790 $ac_declaration
3791 #include <stdlib.h>
3792 int
3793 main ()
3794 {
3795 exit (42);
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802   (eval $ac_compile) 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } &&
3809          { ac_try='test -z "$ac_cxx_werror_flag"
3810                          || test ! -s conftest.err'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; } &&
3816          { ac_try='test -s conftest.$ac_objext'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; }; then
3822   :
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 continue
3828 fi
3829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 $ac_declaration
3837 int
3838 main ()
3839 {
3840 exit (42);
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847   (eval $ac_compile) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_cxx_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   break
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 fi
3873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 done
3875 rm -f conftest*
3876 if test -n "$ac_declaration"; then
3877   echo '#ifdef __cplusplus' >>confdefs.h
3878   echo $ac_declaration      >>confdefs.h
3879   echo '#endif'             >>confdefs.h
3880 fi
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888
3889 # We must set the default linker to the linker used by gcc for the correct
3890 # operation of libtool.  If LD is not defined and we are using gcc, try to
3891 # set the LD default to the ld used by gcc.
3892 if test -z "$LD"; then
3893   if test "$GCC" = yes; then
3894     case $build in
3895     *-*-mingw*)
3896       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3897     *)
3898       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3899     esac
3900     case $gcc_prog_ld in
3901     # Accept absolute paths.
3902     [\\/]* | [A-Za-z]:[\\/]*)
3903       LD="$gcc_prog_ld" ;;
3904     esac
3905   fi
3906 fi
3907
3908
3909
3910
3911 if test -n "$ac_tool_prefix"; then
3912   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   if test -n "$GNATBIND"; then
3920   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936 fi
3937 fi
3938 GNATBIND=$ac_cv_prog_GNATBIND
3939 if test -n "$GNATBIND"; then
3940   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3941 echo "${ECHO_T}$GNATBIND" >&6
3942 else
3943   echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3945 fi
3946
3947 fi
3948 if test -z "$ac_cv_prog_GNATBIND"; then
3949   ac_ct_GNATBIND=$GNATBIND
3950   # Extract the first word of "gnatbind", so it can be a program name with args.
3951 set dummy gnatbind; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if test -n "$ac_ct_GNATBIND"; then
3958   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_exec_ext in '' $ac_executable_extensions; do
3966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969     break 2
3970   fi
3971 done
3972 done
3973
3974   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3975 fi
3976 fi
3977 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3978 if test -n "$ac_ct_GNATBIND"; then
3979   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3980 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986   GNATBIND=$ac_ct_GNATBIND
3987 else
3988   GNATBIND="$ac_cv_prog_GNATBIND"
3989 fi
3990
3991 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3992 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3993 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   cat >conftest.adb <<EOF
3997 procedure conftest is begin null; end conftest;
3998 EOF
3999 acx_cv_cc_gcc_supports_ada=no
4000 # There is a bug in old released versions of GCC which causes the
4001 # driver to exit successfully when the appropriate language module
4002 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4003 # Therefore we must check for the error message as well as an
4004 # unsuccessful exit.
4005 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4006 # given a .adb file, but produce no object file.  So we must check
4007 # if an object file was really produced to guard against this.
4008 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4009 if test x"$errors" = x && test -f conftest.$ac_objext; then
4010   acx_cv_cc_gcc_supports_ada=yes
4011 fi
4012 rm -f conftest.*
4013 fi
4014 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4015 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4016
4017 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4018   have_gnat=yes
4019 else
4020   have_gnat=no
4021 fi
4022
4023 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4024 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4025 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028    echo abfoo >t1
4029   echo cdfoo >t2
4030   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4031   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4032     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4033       :
4034     else
4035       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4036     fi
4037   fi
4038   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4039     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4040       :
4041     else
4042       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4043     fi
4044   fi
4045   rm t1 t2
4046
4047 fi
4048 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4049 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4050 do_compare="$gcc_cv_prog_cmp_skip"
4051
4052
4053
4054 # Check for GMP and MPFR
4055 gmplibs="-lmpfr -lgmp"
4056 gmpinc=
4057 have_gmp=no
4058
4059 # Specify a location for mpfr
4060 # check for this first so it ends up on the link line before gmp.
4061
4062 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4063 if test "${with_mpfr_dir+set}" = set; then
4064   withval="$with_mpfr_dir"
4065   { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4066 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4067 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4068 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4069    { (exit 1); exit 1; }; }
4070 fi;
4071
4072
4073 # Check whether --with-mpfr or --without-mpfr was given.
4074 if test "${with_mpfr+set}" = set; then
4075   withval="$with_mpfr"
4076
4077 fi;
4078
4079 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4080 if test "${with_mpfr_include+set}" = set; then
4081   withval="$with_mpfr_include"
4082
4083 fi;
4084
4085 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4086 if test "${with_mpfr_lib+set}" = set; then
4087   withval="$with_mpfr_lib"
4088
4089 fi;
4090
4091 if test "x$with_mpfr" != x; then
4092   gmplibs="-L$with_mpfr/lib $gmplibs"
4093   gmpinc="-I$with_mpfr/include"
4094 fi
4095 if test "x$with_mpfr_include" != x; then
4096   gmpinc="-I$with_mpfr_include"
4097 fi
4098 if test "x$with_mpfr_lib" != x; then
4099   gmplibs="-L$with_mpfr_lib $gmplibs"
4100 fi
4101 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4102   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4103   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4104   # Do not test the mpfr version.  Assume that it is sufficient, since
4105   # it is in the source tree, and the library has not been built yet
4106   # but it would be included on the link line in the version check below
4107   # hence making the test fail.
4108   have_gmp=yes
4109 fi
4110
4111 # Specify a location for gmp
4112
4113 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4114 if test "${with_gmp_dir+set}" = set; then
4115   withval="$with_gmp_dir"
4116   { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4117 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4118 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4119 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4120    { (exit 1); exit 1; }; }
4121 fi;
4122
4123
4124 # Check whether --with-gmp or --without-gmp was given.
4125 if test "${with_gmp+set}" = set; then
4126   withval="$with_gmp"
4127
4128 fi;
4129
4130 # Check whether --with-gmp_include or --without-gmp_include was given.
4131 if test "${with_gmp_include+set}" = set; then
4132   withval="$with_gmp_include"
4133
4134 fi;
4135
4136 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4137 if test "${with_gmp_lib+set}" = set; then
4138   withval="$with_gmp_lib"
4139
4140 fi;
4141
4142
4143 if test "x$with_gmp" != x; then
4144   gmplibs="-L$with_gmp/lib $gmplibs"
4145   gmpinc="-I$with_gmp/include $gmpinc"
4146 fi
4147 if test "x$with_gmp_include" != x; then
4148   gmpinc="-I$with_gmp_include $gmpinc"
4149 fi
4150 if test "x$with_gmp_lib" != x; then
4151   gmplibs="-L$with_gmp_lib $gmplibs"
4152 fi
4153 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4154   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4155   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4156   # Do not test the gmp version.  Assume that it is sufficient, since
4157   # it is in the source tree, and the library has not been built yet
4158   # but it would be included on the link line in the version check below
4159   # hence making the test fail.
4160   have_gmp=yes
4161 fi
4162
4163 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4164   have_gmp=yes
4165   saved_CFLAGS="$CFLAGS"
4166   CFLAGS="$CFLAGS $gmpinc"
4167   # Check GMP actually works
4168   echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4169 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4170
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include "gmp.h"
4178 int
4179 main ()
4180 {
4181
4182   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4183   choke me
4184   #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192   (eval $ac_compile) 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -z "$ac_c_werror_flag"
4200                          || test ! -s conftest.err'
4201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202   (eval $ac_try) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; } &&
4206          { ac_try='test -s conftest.$ac_objext'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   echo "$as_me:$LINENO: result: yes" >&5
4213 echo "${ECHO_T}yes" >&6
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; have_gmp=no
4220 fi
4221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4222
4223   if test x"$have_gmp" = xyes; then
4224     saved_LIBS="$LIBS"
4225     LIBS="$LIBS $gmplibs"
4226         echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4227 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4228     cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <gmp.h>
4235     #include <mpfr.h>
4236 int
4237 main ()
4238 {
4239
4240     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4241     choke me
4242     #endif
4243     mpfr_t n; mpfr_init(n);
4244     mpfr_t x; mpfr_init(x);
4245     int t;
4246     mpfr_atan2 (n, n, x, GMP_RNDN);
4247     mpfr_erfc (n, x, GMP_RNDN);
4248     mpfr_subnormalize (x, t, GMP_RNDN);
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256   (eval $ac_link) 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } &&
4263          { ac_try='test -z "$ac_c_werror_flag"
4264                          || test ! -s conftest.err'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; } &&
4270          { ac_try='test -s conftest$ac_exeext'
4271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272   (eval $ac_try) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 #include <gmp.h>
4283     #include <mpfr.h>
4284 int
4285 main ()
4286 {
4287
4288     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4289     choke me
4290     #endif
4291     mpfr_t n; mpfr_init(n);
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299   (eval $ac_link) 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -z "$ac_c_werror_flag"
4307                          || test ! -s conftest.err'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest$ac_exeext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   echo "$as_me:$LINENO: result: yes" >&5
4320 echo "${ECHO_T}yes" >&6
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4326 echo "${ECHO_T}buggy but acceptable" >&6
4327 fi
4328 rm -f conftest.err conftest.$ac_objext \
4329       conftest$ac_exeext conftest.$ac_ext
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; have_gmp=no
4336 fi
4337 rm -f conftest.err conftest.$ac_objext \
4338       conftest$ac_exeext conftest.$ac_ext
4339       LIBS="$saved_LIBS"
4340   fi
4341   CFLAGS="$saved_CFLAGS"
4342
4343   if test x$have_gmp != xyes; then
4344     { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4345 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4346 Copies of these libraries' source code can be found at their respective
4347 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4348 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4349 If you obtained GMP and/or MPFR from a vendor distribution package, make
4350 sure that you have installed both the libraries and the header files.
4351 They may be located in separate packages." >&5
4352 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4353 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4354 Copies of these libraries' source code can be found at their respective
4355 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4356 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4357 If you obtained GMP and/or MPFR from a vendor distribution package, make
4358 sure that you have installed both the libraries and the header files.
4359 They may be located in separate packages." >&2;}
4360    { (exit 1); exit 1; }; }
4361   fi
4362 fi
4363
4364 # Flags needed for both GMP and/or MPFR
4365
4366
4367
4368 # By default, C is the only stage 1 language.
4369 stage1_languages=,c,
4370
4371 # Figure out what language subdirectories are present.
4372 # Look if the user specified --enable-languages="..."; if not, use
4373 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4374 # go away some day.
4375 # NB:  embedded tabs in this IF block -- do not untabify
4376 if test -d ${srcdir}/gcc; then
4377   if test x"${enable_languages+set}" != xset; then
4378     if test x"${LANGUAGES+set}" = xset; then
4379       enable_languages="${LANGUAGES}"
4380         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4381     else
4382       enable_languages=all
4383     fi
4384   else
4385     if test x"${enable_languages}" = x ||
4386        test x"${enable_languages}" = xyes;
4387        then
4388       echo configure.in: --enable-languages needs at least one language argument 1>&2
4389       exit 1
4390     fi
4391   fi
4392   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
4393
4394   # 'f95' is the old name for the 'fortran' language. We issue a warning
4395   # and make the substitution.
4396   case ,${enable_languages}, in
4397     *,f95,*)
4398       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4399       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4400       ;;
4401   esac
4402
4403   # First scan to see if an enabled language requires some other language.
4404   # We assume that a given config-lang.in will list all the language
4405   # front ends it requires, even if some are required indirectly.
4406   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4407     case ${lang_frag} in
4408       ..) ;;
4409       # The odd quoting in the next line works around
4410       # an apparent bug in bash 1.12 on linux.
4411       ${srcdir}/gcc/[*]/config-lang.in) ;;
4412       *)
4413         # From the config-lang.in, get $language, $lang_requires
4414         language=
4415         lang_requires=
4416         . ${lang_frag}
4417         for other in ${lang_requires} ; do
4418           case ,${enable_languages}, in
4419             *,$other,*) ;;
4420             *,all,*) ;;
4421             *,$language,*)
4422               echo " \`$other' language required by \`$language'; enabling" 1>&2
4423               enable_languages="${enable_languages},${other}"
4424               ;;
4425           esac
4426         done
4427         ;;
4428     esac
4429   done
4430
4431   new_enable_languages=,c,
4432   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4433   potential_languages=,c,
4434
4435   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4436     case ${lang_frag} in
4437       ..) ;;
4438       # The odd quoting in the next line works around
4439       # an apparent bug in bash 1.12 on linux.
4440       ${srcdir}/gcc/[*]/config-lang.in) ;;
4441       *)
4442         # From the config-lang.in, get $language, $target_libs,
4443         # $lang_dirs, $boot_language, and $build_by_default
4444         language=
4445         target_libs=
4446         lang_dirs=
4447         subdir_requires=
4448         boot_language=no
4449         build_by_default=yes
4450         . ${lang_frag}
4451         if test x${language} = x; then
4452           echo "${lang_frag} doesn't set \$language." 1>&2
4453           exit 1
4454         fi
4455
4456         case ,${enable_languages}, in
4457           *,${language},*)
4458             # Language was explicitly selected; include it.
4459             add_this_lang=yes
4460             ;;
4461           *,all,*)
4462             # 'all' was selected, select it if it is a default language
4463             add_this_lang=${build_by_default}
4464             ;;
4465           *)
4466             add_this_lang=no
4467             ;;
4468         esac
4469
4470         # Disable languages that need other directories if these aren't available.
4471         for i in $subdir_requires; do
4472           test -f "$srcdir/gcc/$i/config-lang.in" && continue
4473           case ,${enable_languages}, in
4474             *,${language},*)
4475               # Specifically requested language; tell them.
4476               { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4477 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4478    { (exit 1); exit 1; }; }
4479               ;;
4480             *)
4481               # Silently disable.
4482               add_this_lang=unsupported
4483               ;;
4484           esac
4485         done
4486
4487         # Disable Ada if no preexisting GNAT is available.
4488         case ,${enable_languages},:${language}:${have_gnat} in
4489           *,${language},*:ada:no)
4490             # Specifically requested language; tell them.
4491             { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4492 echo "$as_me: error: GNAT is required to build $language" >&2;}
4493    { (exit 1); exit 1; }; }
4494             ;;
4495           *:ada:no)
4496             # Silently disable.
4497             add_this_lang=unsupported
4498             ;;
4499         esac
4500
4501         # Disable a language that is unsupported by the target.
4502         case " $unsupported_languages " in
4503           *" $language "*)
4504             add_this_lang=unsupported
4505             ;;
4506         esac
4507
4508         case $add_this_lang in
4509           unsupported)
4510             # Remove language-dependent dirs.
4511             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4512             ;;
4513           no)
4514             # Remove language-dependent dirs; still show language as supported.
4515             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4516             potential_languages="${potential_languages}${language},"
4517             ;;
4518           yes)
4519             new_enable_languages="${new_enable_languages}${language},"
4520             potential_languages="${potential_languages}${language},"
4521             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4522             case ${boot_language} in
4523               yes)
4524                 # Add to (comma-separated) list of stage 1 languages.
4525                 stage1_languages="${stage1_languages}${language},"
4526                 ;;
4527             esac
4528             ;;
4529         esac
4530         ;;
4531     esac
4532   done
4533
4534   # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4535 if test "${enable_stage1_languages+set}" = set; then
4536   enableval="$enable_stage1_languages"
4537   case ,${enable_stage1_languages}, in
4538     ,no,|,,)
4539       # Set it to something that will have no effect in the loop below
4540       enable_stage1_languages=c ;;
4541     ,yes,)
4542       enable_stage1_languages=`echo $new_enable_languages | \
4543         sed -e "s/^,//" -e "s/,$//" ` ;;
4544     *,all,*)
4545       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4546         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4547   esac
4548
4549   # Add "good" languages from enable_stage1_languages to stage1_languages,
4550   # while "bad" languages go in missing_languages.  Leave no duplicates.
4551   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4552     case $potential_languages in
4553       *,$i,*)
4554         case $stage1_languages in
4555           *,$i,*) ;;
4556           *) stage1_languages="$stage1_languages$i," ;;
4557         esac ;;
4558       *)
4559         case $missing_languages in
4560           *,$i,*) ;;
4561           *) missing_languages="$missing_languages$i," ;;
4562         esac ;;
4563      esac
4564   done
4565 fi;
4566
4567   # Remove leading/trailing commas that were added for simplicity
4568   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4569   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4570   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4571   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4572
4573   if test "x$missing_languages" != x; then
4574     { { echo "$as_me:$LINENO: error:
4575 The following requested languages could not be built: ${missing_languages}
4576 Supported languages are: ${potential_languages}" >&5
4577 echo "$as_me: error:
4578 The following requested languages could not be built: ${missing_languages}
4579 Supported languages are: ${potential_languages}" >&2;}
4580    { (exit 1); exit 1; }; }
4581   fi
4582   if test "x$new_enable_languages" != "x$enable_languages"; then
4583     echo The following languages will be built: ${new_enable_languages}
4584     enable_languages="$new_enable_languages"
4585   fi
4586
4587
4588   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4589 fi
4590
4591 # Handle --disable-<component> generically.
4592 for dir in $configdirs $build_configdirs $target_configdirs ; do
4593   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4594   if eval test x\${enable_${dirname}} "=" xno ; then
4595     noconfigdirs="$noconfigdirs $dir"
4596   fi
4597 done
4598
4599 # Check for Boehm's garbage collector
4600 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4601 if test "${enable_objc_gc+set}" = set; then
4602   enableval="$enable_objc_gc"
4603   case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4604   *,objc,*:*:yes:*target-boehm-gc*)
4605     { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4606 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4607    { (exit 1); exit 1; }; }
4608     ;;
4609 esac
4610 fi;
4611
4612 # Make sure we only build Boehm's garbage collector if required.
4613 case ,${enable_languages},:${enable_objc_gc} in
4614   *,objc,*:yes)
4615     # Keep target-boehm-gc if requested for Objective-C.
4616     ;;
4617   *)
4618     # Otherwise remove target-boehm-gc depending on target-libjava.
4619     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4620       noconfigdirs="$noconfigdirs target-boehm-gc"
4621     fi
4622     ;;
4623 esac
4624
4625 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4626 # $build_configdirs and $target_configdirs.
4627 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4628
4629 notsupp=""
4630 for dir in . $skipdirs $noconfigdirs ; do
4631   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4632   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4633     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4634     if test -r $srcdir/$dirname/configure ; then
4635       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4636         true
4637       else
4638         notsupp="$notsupp $dir"
4639       fi
4640     fi
4641   fi
4642   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4643     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4644     if test -r $srcdir/$dirname/configure ; then
4645       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4646         true
4647       else
4648         notsupp="$notsupp $dir"
4649       fi
4650     fi
4651   fi
4652   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4653     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4654     if test -r $srcdir/$dirname/configure ; then
4655       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4656         true
4657       else
4658         notsupp="$notsupp $dir"
4659       fi
4660     fi
4661   fi
4662 done
4663
4664 # Sometimes the tools are distributed with libiberty but with no other
4665 # libraries.  In that case, we don't want to build target-libiberty.
4666 # Don't let libgcc imply libiberty either.
4667 if test -n "${target_configdirs}" ; then
4668   libgcc=
4669   others=
4670   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4671     if test "$i" = "libgcc"; then
4672       libgcc=target-libgcc
4673     elif test "$i" != "libiberty" ; then
4674       if test -r $srcdir/$i/configure ; then
4675         others=yes;
4676         break;
4677       fi
4678     fi
4679   done
4680   if test -z "${others}" ; then
4681     target_configdirs=$libgcc
4682   fi
4683 fi
4684
4685 # Quietly strip out all directories which aren't configurable in this tree.
4686 # This relies on all configurable subdirectories being autoconfiscated, which
4687 # is now the case.
4688 build_configdirs_all="$build_configdirs"
4689 build_configdirs=
4690 for i in ${build_configdirs_all} ; do
4691   j=`echo $i | sed -e s/build-//g`
4692   if test -f ${srcdir}/$j/configure ; then
4693     build_configdirs="${build_configdirs} $i"
4694   fi
4695 done
4696
4697 configdirs_all="$configdirs"
4698 configdirs=
4699 for i in ${configdirs_all} ; do
4700   if test -f ${srcdir}/$i/configure ; then
4701     configdirs="${configdirs} $i"
4702   fi
4703 done
4704
4705 target_configdirs_all="$target_configdirs"
4706 target_configdirs=
4707 for i in ${target_configdirs_all} ; do
4708   j=`echo $i | sed -e s/target-//g`
4709   if test -f ${srcdir}/$j/configure ; then
4710     target_configdirs="${target_configdirs} $i"
4711   fi
4712 done
4713
4714 # Produce a warning message for the subdirs we can't configure.
4715 # This isn't especially interesting in the Cygnus tree, but in the individual
4716 # FSF releases, it's important to let people know when their machine isn't
4717 # supported by the one or two programs in a package.
4718
4719 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4720   # If $appdirs is non-empty, at least one of those directories must still
4721   # be configured, or we error out.  (E.g., if the gas release supports a
4722   # specified target in some subdirs but not the gas subdir, we shouldn't
4723   # pretend that all is well.)
4724   if test -n "$appdirs" ; then
4725     for dir in $appdirs ; do
4726       if test -r $dir/Makefile.in ; then
4727         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4728           appdirs=""
4729           break
4730         fi
4731         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4732           appdirs=""
4733           break
4734         fi
4735       fi
4736     done
4737     if test -n "$appdirs" ; then
4738       echo "*** This configuration is not supported by this package." 1>&2
4739       exit 1
4740     fi
4741   fi
4742   # Okay, some application will build, or we don't care to check.  Still
4743   # notify of subdirs not getting built.
4744   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4745   echo "    ${notsupp}" 1>&2
4746   echo "    (Any other directories should still work fine.)" 1>&2
4747 fi
4748
4749 case "$host" in
4750   *msdosdjgpp*)
4751     enable_gdbtk=no ;;
4752 esac
4753
4754 # To find our prefix, in gcc_cv_tool_prefix.
4755
4756 # The user is always right.
4757 if test "${PATH_SEPARATOR+set}" != set; then
4758   echo "#! /bin/sh" >conf$$.sh
4759   echo  "exit 0"   >>conf$$.sh
4760   chmod +x conf$$.sh
4761   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4762     PATH_SEPARATOR=';'
4763   else
4764     PATH_SEPARATOR=:
4765   fi
4766   rm -f conf$$.sh
4767 fi
4768
4769
4770
4771 if test "x$exec_prefix" = xNONE; then
4772         if test "x$prefix" = xNONE; then
4773                 gcc_cv_tool_prefix=$ac_default_prefix
4774         else
4775                 gcc_cv_tool_prefix=$prefix
4776         fi
4777 else
4778         gcc_cv_tool_prefix=$exec_prefix
4779 fi
4780
4781 # If there is no compiler in the tree, use the PATH only.  In any
4782 # case, if there is no compiler in the tree nobody should use
4783 # AS_FOR_TARGET and LD_FOR_TARGET.
4784 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4785     gcc_version=`cat $srcdir/gcc/BASE-VER`
4786     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4787     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4788     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4789     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4790     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4791     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4792 else
4793     gcc_cv_tool_dirs=
4794 fi
4795
4796 if test x$build = x$target && test -n "$md_exec_prefix"; then
4797         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4798 fi
4799
4800
4801
4802 copy_dirs=
4803
4804
4805 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4806 if test "${with_build_sysroot+set}" = set; then
4807   withval="$with_build_sysroot"
4808   if test x"$withval" != x ; then
4809      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4810    fi
4811 else
4812   SYSROOT_CFLAGS_FOR_TARGET=
4813 fi;
4814
4815
4816 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
4817 # the named directory are copied to $(tooldir)/sys-include.
4818 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4819   if test x${is_cross_compiler} = xno ; then
4820     echo 1>&2 '***' --with-headers is only supported when cross compiling
4821     exit 1
4822   fi
4823   if test x"${with_headers}" != xyes ; then
4824     x=${gcc_cv_tool_prefix}
4825     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4826   fi
4827 fi
4828
4829 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
4830 # the name directories are copied to $(tooldir)/lib.  Multiple directories
4831 # are permitted.
4832 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4833   if test x${is_cross_compiler} = xno ; then
4834     echo 1>&2 '***' --with-libs is only supported when cross compiling
4835     exit 1
4836   fi
4837   if test x"${with_libs}" != xyes ; then
4838     # Copy the libraries in reverse order, so that files in the first named
4839     # library override files in subsequent libraries.
4840     x=${gcc_cv_tool_prefix}
4841     for l in ${with_libs}; do
4842       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4843     done
4844   fi
4845 fi
4846
4847 # Set with_gnu_as and with_gnu_ld as appropriate.
4848 #
4849 # This is done by determining whether or not the appropriate directory
4850 # is available, and by checking whether or not specific configurations
4851 # have requested that this magic not happen.
4852 #
4853 # The command line options always override the explicit settings in
4854 # configure.in, and the settings in configure.in override this magic.
4855 #
4856 # If the default for a toolchain is to use GNU as and ld, and you don't
4857 # want to do that, then you should use the --without-gnu-as and
4858 # --without-gnu-ld options for the configure script.
4859
4860 if test x${use_gnu_as} = x &&
4861    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4862   with_gnu_as=yes
4863   extra_host_args="$extra_host_args --with-gnu-as"
4864 fi
4865
4866 if test x${use_gnu_ld} = x &&
4867    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4868   with_gnu_ld=yes
4869   extra_host_args="$extra_host_args --with-gnu-ld"
4870 fi
4871
4872 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4873 # can detect this case.
4874
4875 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4876   with_newlib=yes
4877   extra_host_args="$extra_host_args --with-newlib"
4878 fi
4879
4880 # Handle ${copy_dirs}
4881 set fnord ${copy_dirs}
4882 shift
4883 while test $# != 0 ; do
4884   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4885     :
4886   else
4887     echo Copying $1 to $2
4888
4889     # Use the install script to create the directory and all required
4890     # parent directories.
4891     if test -d $2 ; then
4892       :
4893     else
4894       echo >config.temp
4895       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4896     fi
4897
4898     # Copy the directory, assuming we have tar.
4899     # FIXME: Should we use B in the second tar?  Not all systems support it.
4900     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4901
4902     # It is the responsibility of the user to correctly adjust all
4903     # symlinks.  If somebody can figure out how to handle them correctly
4904     # here, feel free to add the code.
4905
4906     echo $1 > $2/COPIED
4907   fi
4908   shift; shift
4909 done
4910
4911 # Determine a target-dependent exec_prefix that the installed
4912 # gcc will search in.  Keep this list sorted by triplet, with
4913 # the *-*-osname triplets last.
4914 md_exec_prefix=
4915 case "${target}" in
4916   alpha*-*-*vms*)
4917     md_exec_prefix=/gnu/lib/gcc-lib
4918     ;;
4919   i3456786-pc-msdosdjgpp*)
4920     md_exec_prefix=/dev/env/DJDIR/bin
4921     ;;
4922   i3456786-*-sco3.2v5*)
4923     if test $with_gnu_as = yes; then
4924       md_exec_prefix=/usr/gnu/bin
4925     else
4926       md_exec_prefix=/usr/ccs/bin/elf
4927     fi
4928     ;;
4929
4930   mn10300-*-* | \
4931   powerpc-*-chorusos* | \
4932   powerpc*-*-eabi* | \
4933   powerpc*-*-sysv* | \
4934   powerpc*-*-kaos* | \
4935   s390x-ibm-tpf*)
4936     md_exec_prefix=/usr/ccs/bin
4937     ;;
4938   sparc64-*-elf*)
4939     ;;
4940   v850*-*-*)
4941     md_exec_prefix=/usr/ccs/bin
4942     ;;
4943   xtensa-*-elf*)
4944     ;;
4945
4946   *-*-beos* | \
4947   *-*-elf* | \
4948   *-*-hpux* | \
4949   *-*-netware* | \
4950   *-*-nto-qnx* | \
4951   *-*-rtems* | \
4952   *-*-solaris2* | \
4953   *-*-sysv45* | \
4954   *-*-vxworks* | \
4955   *-wrs-windiss)
4956     md_exec_prefix=/usr/ccs/bin
4957     ;;
4958 esac
4959
4960 extra_arflags_for_target=
4961 extra_nmflags_for_target=
4962 extra_ranlibflags_for_target=
4963 target_makefile_frag=/dev/null
4964 case "${target}" in
4965   mep*-*-*)
4966     target_makefile_frag="config/mt-mep"
4967     ;;
4968   spu-*-*)
4969     target_makefile_frag="config/mt-spu"
4970     ;;
4971   *-*-netware*)
4972     target_makefile_frag="config/mt-netware"
4973     ;;
4974   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4975     target_makefile_frag="config/mt-gnu"
4976     ;;
4977   *-*-aix4.[3456789]* | *-*-aix[56789].*)
4978     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
4979     # commands to handle both 32-bit and 64-bit objects.  These flags are
4980     # harmless if we're using GNU nm or ar.
4981     extra_arflags_for_target=" -X32_64"
4982     extra_nmflags_for_target=" -B -X32_64"
4983     ;;
4984   *-*-darwin*)
4985     # ranlib from Darwin requires the -c flag to look at common symbols.
4986     extra_ranlibflags_for_target=" -c"
4987     ;;
4988   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4989     target_makefile_frag="config/mt-wince"
4990     ;;
4991 esac
4992
4993 alphaieee_frag=/dev/null
4994 case $target in
4995   alpha*-*-*)
4996     # This just makes sure to use the -mieee option to build target libs.
4997     # This should probably be set individually by each library.
4998     alphaieee_frag="config/mt-alphaieee"
4999     ;;
5000 esac
5001
5002 # If --enable-target-optspace always use -Os instead of -O2 to build
5003 # the target libraries, similarly if it is not specified, use -Os
5004 # on selected platforms.
5005 ospace_frag=/dev/null
5006 case "${enable_target_optspace}:${target}" in
5007   yes:*)
5008     ospace_frag="config/mt-ospace"
5009     ;;
5010   :d30v-*)
5011     ospace_frag="config/mt-d30v"
5012     ;;
5013   :m32r-* | :d10v-* | :fr30-*)
5014     ospace_frag="config/mt-ospace"
5015     ;;
5016   no:* | :*)
5017     ;;
5018   *)
5019     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5020     ;;
5021 esac
5022
5023 # Default to using --with-stabs for certain targets.
5024 if test x${with_stabs} = x ; then
5025   case "${target}" in
5026   mips*-*-irix[56]*)
5027     ;;
5028   mips*-*-* | alpha*-*-osf*)
5029     with_stabs=yes;
5030     extra_host_args="${extra_host_args} --with-stabs"
5031     ;;
5032   esac
5033 fi
5034
5035 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
5036 # them automatically.
5037 case "${host}" in
5038   hppa*64*-*-hpux11*)
5039     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5040     ;;
5041 esac
5042
5043 # Some systems (e.g., one of the i386-aix systems the gas testers are
5044 # using) don't handle "\$" correctly, so don't use it here.
5045 tooldir='${exec_prefix}'/${target_noncanonical}
5046 build_tooldir=${tooldir}
5047
5048 # Create a .gdbinit file which runs the one in srcdir
5049 # and tells GDB to look there for source files.
5050
5051 if test -r ${srcdir}/.gdbinit ; then
5052   case ${srcdir} in
5053     .) ;;
5054     *) cat > ./.gdbinit <<EOF
5055 # ${NO_EDIT}
5056 dir ${srcdir}
5057 dir .
5058 source ${srcdir}/.gdbinit
5059 EOF
5060     ;;
5061   esac
5062 fi
5063
5064 # Make sure that the compiler is able to generate an executable.  If it
5065 # can't, we are probably in trouble.  We don't care whether we can run the
5066 # executable--we might be using a cross compiler--we only care whether it
5067 # can be created.  At this point the main configure script has set CC.
5068 we_are_ok=no
5069 echo "int main () { return 0; }" > conftest.c
5070 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5071 if test $? = 0 ; then
5072   if test -s conftest || test -s conftest.exe ; then
5073     we_are_ok=yes
5074   fi
5075 fi
5076 case $we_are_ok in
5077   no)
5078     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5079     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5080     rm -f conftest*
5081     exit 1
5082     ;;
5083 esac
5084 rm -f conftest*
5085
5086 # The Solaris /usr/ucb/cc compiler does not appear to work.
5087 case "${host}" in
5088   sparc-sun-solaris2*)
5089       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5090       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5091           could_use=
5092           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5093           if test -d /opt/cygnus/bin ; then
5094               if test "$could_use" = "" ; then
5095                   could_use="/opt/cygnus/bin"
5096               else
5097                   could_use="$could_use or /opt/cygnus/bin"
5098               fi
5099           fi
5100         if test "$could_use" = "" ; then
5101             echo "Warning: compilation may fail because you're using"
5102             echo "/usr/ucb/cc.  You should change your PATH or CC "
5103             echo "variable and rerun configure."
5104         else
5105             echo "Warning: compilation may fail because you're using"
5106             echo "/usr/ucb/cc, when you should use the C compiler from"
5107             echo "$could_use.  You should change your"
5108             echo "PATH or CC variable and rerun configure."
5109         fi
5110       fi
5111   ;;
5112 esac
5113
5114 case "${host}" in
5115   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5116   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5117   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5118 esac
5119
5120 # Record target_configdirs and the configure arguments for target and
5121 # build configuration in Makefile.
5122 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5123 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5124
5125 # Determine whether gdb needs tk/tcl or not.
5126 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5127 # and in that case we want gdb to be built without tk.  Ugh!
5128 # In fact I believe gdb is the *only* package directly dependent on tk,
5129 # so we should be able to put the 'maybe's in unconditionally and
5130 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
5131 # 100% sure that that's safe though.
5132
5133 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5134 case "$enable_gdbtk" in
5135   no)
5136     GDB_TK="" ;;
5137   yes)
5138     GDB_TK="${gdb_tk}" ;;
5139   *)
5140     # Only add the dependency on gdbtk when GDBtk is part of the gdb
5141     # distro.  Eventually someone will fix this and move Insight, nee
5142     # gdbtk to a separate directory.
5143     if test -d ${srcdir}/gdb/gdbtk ; then
5144       GDB_TK="${gdb_tk}"
5145     else
5146       GDB_TK=""
5147     fi
5148     ;;
5149 esac
5150 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5151 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5152
5153 # Strip out unwanted targets.
5154
5155 # While at that, we remove Makefiles if we were started for recursive
5156 # configuration, so that the top-level Makefile reconfigures them,
5157 # like we used to do when configure itself was recursive.
5158
5159 # Loop over modules.  $extrasub must be used with care, limiting as
5160 # much as possible the usage of range addresses.  That's because autoconf
5161 # splits the sed script to overcome limits in the number of commands,
5162 # and relying on carefully-timed sed passes may turn out to be very hard
5163 # to maintain later.  In this particular case, you just have to be careful
5164 # not to nest @if/@endif pairs, because configure will not warn you at all.
5165
5166 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5167 if test "${enable_bootstrap+set}" = set; then
5168   enableval="$enable_bootstrap"
5169
5170 else
5171   enable_bootstrap=default
5172 fi;
5173
5174 # Issue errors and warnings for invalid/strange bootstrap combinations.
5175 case "$configdirs" in
5176   *gcc*) have_compiler=yes ;;
5177   *) have_compiler=no ;;
5178 esac
5179
5180 case "$have_compiler:$host:$target:$enable_bootstrap" in
5181   *:*:*:no) ;;
5182
5183   # Default behavior.  Enable bootstrap if we have a compiler
5184   # and we are in a native configuration.
5185   yes:$build:$build:default)
5186     enable_bootstrap=yes ;;
5187
5188   *:*:*:default)
5189     enable_bootstrap=no ;;
5190
5191   # We have a compiler and we are in a native configuration, bootstrap is ok
5192   yes:$build:$build:yes)
5193     ;;
5194
5195   # Other configurations, but we have a compiler.  Assume the user knows
5196   # what he's doing.
5197   yes:*:*:yes)
5198     { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5199 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5200     ;;
5201
5202   # No compiler: if they passed --enable-bootstrap explicitly, fail
5203   no:*:*:yes)
5204     { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5205 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207
5208   # Fail if wrong command line
5209   *)
5210     { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5211 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5212    { (exit 1); exit 1; }; }
5213     ;;
5214 esac
5215
5216 # Adjust the toplevel makefile according to whether bootstrap was selected.
5217 case "$enable_bootstrap" in
5218   yes)
5219     bootstrap_suffix=bootstrap ;;
5220   no)
5221     bootstrap_suffix=no-bootstrap ;;
5222 esac
5223
5224 for module in ${build_configdirs} ; do
5225   if test -z "${no_recursion}" \
5226      && test -f ${build_subdir}/${module}/Makefile; then
5227     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5228     rm -f ${build_subdir}/${module}/Makefile
5229   fi
5230   extrasub="$extrasub
5231 /^@if build-$module\$/d
5232 /^@endif build-$module\$/d
5233 /^@if build-$module-$bootstrap_suffix\$/d
5234 /^@endif build-$module-$bootstrap_suffix\$/d"
5235 done
5236 for module in ${configdirs} ; do
5237   if test -z "${no_recursion}"; then
5238     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5239       if test -f ${file}; then
5240         echo 1>&2 "*** removing ${file} to force reconfigure"
5241         rm -f ${file}
5242       fi
5243     done
5244   fi
5245   extrasub="$extrasub
5246 /^@if $module\$/d
5247 /^@endif $module\$/d
5248 /^@if $module-$bootstrap_suffix\$/d
5249 /^@endif $module-$bootstrap_suffix\$/d"
5250 done
5251 for module in ${target_configdirs} ; do
5252   if test -z "${no_recursion}" \
5253      && test -f ${target_subdir}/${module}/Makefile; then
5254     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5255     rm -f ${target_subdir}/${module}/Makefile
5256   fi
5257   extrasub="$extrasub
5258 /^@if target-$module\$/d
5259 /^@endif target-$module\$/d
5260 /^@if target-$module-$bootstrap_suffix\$/d
5261 /^@endif target-$module-$bootstrap_suffix\$/d"
5262 done
5263
5264 extrasub="$extrasub
5265 /^@if /,/^@endif /d"
5266
5267 # Create the serialization dependencies.  This uses a temporary file.
5268
5269 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5270 if test "${enable_serial_configure+set}" = set; then
5271   enableval="$enable_serial_configure"
5272
5273 fi;
5274
5275 case ${enable_serial_configure} in
5276   yes)
5277     enable_serial_build_configure=yes
5278     enable_serial_host_configure=yes
5279     enable_serial_target_configure=yes
5280     ;;
5281 esac
5282
5283 # These force 'configure's to be done one at a time, to avoid problems
5284 # with contention over a shared config.cache.
5285 rm -f serdep.tmp
5286 echo '# serdep.tmp' > serdep.tmp
5287 olditem=
5288 test "x${enable_serial_build_configure}" = xyes &&
5289 for item in ${build_configdirs} ; do
5290   case ${olditem} in
5291     "") ;;
5292     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5293   esac
5294   olditem=${item}
5295 done
5296 olditem=
5297 test "x${enable_serial_host_configure}" = xyes &&
5298 for item in ${configdirs} ; do
5299   case ${olditem} in
5300     "") ;;
5301     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5302   esac
5303   olditem=${item}
5304 done
5305 olditem=
5306 test "x${enable_serial_target_configure}" = xyes &&
5307 for item in ${target_configdirs} ; do
5308   case ${olditem} in
5309     "") ;;
5310     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5311   esac
5312   olditem=${item}
5313 done
5314 serialization_dependencies=serdep.tmp
5315
5316
5317 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
5318 # target, nonopt, and variable assignments.  These are the ones we
5319 # might not want to pass down to subconfigures.  Also strip
5320 # program-prefix, program-suffix, and program-transform-name, so that
5321 # we can pass down a consistent program-transform-name.
5322 baseargs=
5323 keep_next=no
5324 skip_next=no
5325 eval "set -- $ac_configure_args"
5326 for ac_arg
5327 do
5328   if test X"$skip_next" = X"yes"; then
5329     skip_next=no
5330     continue
5331   fi
5332   if test X"$keep_next" = X"yes"; then
5333     case $ac_arg in
5334       *\'*)
5335         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5336     esac
5337     baseargs="$baseargs '$ac_arg'"
5338     keep_next=no
5339     continue
5340   fi
5341
5342   # Handle separated arguments.  Based on the logic generated by
5343   # autoconf 2.59.
5344   case $ac_arg in
5345     *=* | --config-cache | -C | -disable-* | --disable-* \
5346       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5347       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5348       | -with-* | --with-* | -without-* | --without-* | --x)
5349       separate_arg=no
5350       ;;
5351     -*)
5352       separate_arg=yes
5353       ;;
5354     *)
5355       separate_arg=no
5356       ;;
5357   esac
5358
5359   case "$ac_arg" in
5360     --no*)
5361       continue
5362       ;;
5363     --c* | \
5364     --sr* | \
5365     --ho* | \
5366     --bu* | \
5367     --t* | \
5368     --program-* | \
5369     -cache_file* | \
5370     -srcdir* | \
5371     -host* | \
5372     -build* | \
5373     -target* | \
5374     -program-prefix* | \
5375     -program-suffix* | \
5376     -program-transform-name* )
5377       skip_next=$separate_arg
5378       continue
5379       ;;
5380     -*)
5381       # An option.  Add it.
5382       case $ac_arg in
5383         *\'*)
5384           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5385       esac
5386       baseargs="$baseargs '$ac_arg'"
5387       keep_next=$separate_arg
5388       ;;
5389     *)
5390       # Either a variable assignment, or a nonopt (triplet).  Don't
5391       # pass it down; let the Makefile handle this.
5392       continue
5393       ;;
5394   esac
5395 done
5396 # Remove the initial space we just introduced and, as these will be
5397 # expanded by make, quote '$'.
5398 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5399
5400 # Add in --program-transform-name, after --program-prefix and
5401 # --program-suffix have been applied to it.  Autoconf has already
5402 # doubled dollar signs and backslashes in program_transform_name; we want
5403 # the backslashes un-doubled, and then the entire thing wrapped in single
5404 # quotes, because this will be expanded first by make and then by the shell.
5405 # Also, because we want to override the logic in subdir configure scripts to
5406 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5407 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5408 ${program_transform_name}
5409 EOF_SED
5410 gcc_transform_name=`cat conftestsed.out`
5411 rm -f conftestsed.out
5412 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5413
5414 # For the build-side libraries, we just need to pretend we're native,
5415 # and not use the same cache file.  Multilibs are neither needed nor
5416 # desired.
5417 build_configargs="--cache-file=../config.cache ${baseargs}"
5418
5419 # For host modules, accept cache file option, or specification as blank.
5420 case "${cache_file}" in
5421 "") # empty
5422   cache_file_option="" ;;
5423 /* | [A-Za-z]:[\\/]* ) # absolute path
5424   cache_file_option="--cache-file=${cache_file}" ;;
5425 *) # relative path
5426   cache_file_option="--cache-file=../${cache_file}" ;;
5427 esac
5428
5429 # Host dirs don't like to share a cache file either, horribly enough.
5430 # This seems to be due to autoconf 2.5x stupidity.
5431 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5432
5433 target_configargs=${baseargs}
5434
5435 # Passing a --with-cross-host argument lets the target libraries know
5436 # whether they are being built with a cross-compiler or being built
5437 # native.  However, it would be better to use other mechanisms to make the
5438 # sorts of decisions they want to make on this basis.  Please consider
5439 # this option to be deprecated.  FIXME.
5440 if test x${is_cross_compiler} = xyes ; then
5441   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5442 fi
5443
5444 # Default to --enable-multilib.
5445 if test x${enable_multilib} = x ; then
5446   target_configargs="--enable-multilib ${target_configargs}"
5447 fi
5448
5449 # Pass --with-newlib if appropriate.  Note that target_configdirs has
5450 # changed from the earlier setting of with_newlib.
5451 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5452   target_configargs="--with-newlib ${target_configargs}"
5453 fi
5454
5455 # Different target subdirs use different values of certain variables
5456 # (notably CXX).  Worse, multilibs use *lots* of different values.
5457 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5458 # it doesn't automatically accept command-line overrides of them.
5459 # This means it's not safe for target subdirs to share a cache file,
5460 # which is disgusting, but there you have it.  Hopefully this can be
5461 # fixed in future.  It's still worthwhile to use a cache file for each
5462 # directory.  I think.
5463
5464 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5465 # We need to pass --target, as newer autoconf's requires consistency
5466 # for target_alias and gcc doesn't manage it consistently.
5467 target_configargs="--cache-file=./config.cache ${target_configargs}"
5468
5469 FLAGS_FOR_TARGET=
5470 case " $target_configdirs " in
5471  *" newlib "*)
5472   case " $target_configargs " in
5473   *" --with-newlib "*)
5474    case "$target" in
5475    *-cygwin*)
5476      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' ;;
5477    esac
5478
5479    # If we're not building GCC, don't discard standard headers.
5480    if test -d ${srcdir}/gcc; then
5481      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5482
5483      if test "${build}" != "${host}"; then
5484        # On Canadian crosses, CC_FOR_TARGET will have already been set
5485        # by `configure', so we won't have an opportunity to add -Bgcc/
5486        # to it.  This is right: we don't want to search that directory
5487        # for binaries, but we want the header files in there, so add
5488        # them explicitly.
5489        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5490
5491        # Someone might think of using the pre-installed headers on
5492        # Canadian crosses, in case the installed compiler is not fully
5493        # compatible with the compiler being built.  In this case, it
5494        # would be better to flag an error than risking having
5495        # incompatible object files being constructed.  We can't
5496        # guarantee that an error will be flagged, but let's hope the
5497        # compiler will do it, when presented with incompatible header
5498        # files.
5499      fi
5500    fi
5501
5502    case "${target}-${is_cross_compiler}" in
5503    i[3456789]86-*-linux*-no)
5504       # Here host == target, so we don't need to build gcc,
5505       # so we don't want to discard standard headers.
5506       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5507       ;;
5508    *)
5509       # If we're building newlib, use its generic headers last, but search
5510       # for any libc-related directories first (so make it the last -B
5511       # switch).
5512       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5513       ;;
5514    esac
5515    ;;
5516   esac
5517   ;;
5518 esac
5519 case "$target" in
5520 *-mingw*)
5521   # Can't be handled as Cygwin above since Mingw does not use newlib.
5522   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' ;;
5523 esac
5524
5525 # Allow the user to override the flags for
5526 # our build compiler if desired.
5527 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5528
5529 # On Canadian crosses, we'll be searching the right directories for
5530 # the previously-installed cross compiler, so don't bother to add
5531 # flags for directories within the install tree of the compiler
5532 # being built; programs in there won't even run.
5533 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5534   # Search for pre-installed headers if nothing else fits.
5535   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5536 fi
5537
5538 if test "x${use_gnu_ld}" = x &&
5539    echo " ${configdirs} " | grep " ld " > /dev/null ; then
5540   # Arrange for us to find uninstalled linker scripts.
5541   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5542 fi
5543
5544 # Search for other target-specific linker scripts and such.
5545 case "${target}" in
5546   m32c-*-* )
5547     if test -d ${srcdir}/libgloss/m32c; then
5548       # This is for crt0.o
5549       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5550       # This is for r8c.ld
5551       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5552       # This is for libnosys.a
5553       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5554     fi
5555     ;;
5556   mep*)
5557     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5558     ;;
5559 esac
5560
5561 # Makefile fragments.
5562 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5563 do
5564   eval fragval=\$$frag
5565   if test $fragval != /dev/null; then
5566     eval $frag=${srcdir}/$fragval
5567   fi
5568 done
5569
5570
5571
5572
5573
5574 # Miscellanea: directories, flags, etc.
5575
5576
5577
5578
5579
5580
5581
5582 # Build module lists & subconfigure args.
5583
5584
5585
5586 # Host module lists & subconfigure args.
5587
5588
5589
5590 # Target module lists & subconfigure args.
5591
5592
5593
5594 # Build tools.
5595
5596
5597
5598 # Generate default definitions for YACC, M4, LEX and other programs that run
5599 # on the build machine.  These are used if the Makefile can't locate these
5600 # programs in objdir.
5601 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5602
5603 for ac_prog in 'bison -y' byacc yacc
5604 do
5605   # Extract the first word of "$ac_prog", so it can be a program name with args.
5606 set dummy $ac_prog; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_YACC+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$YACC"; then
5613   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_YACC="$ac_prog"
5623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628
5629 fi
5630 fi
5631 YACC=$ac_cv_prog_YACC
5632 if test -n "$YACC"; then
5633   echo "$as_me:$LINENO: result: $YACC" >&5
5634 echo "${ECHO_T}$YACC" >&6
5635 else
5636   echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640   test -n "$YACC" && break
5641 done
5642 test -n "$YACC" || YACC="$MISSING bison -y"
5643
5644 case " $build_configdirs " in
5645   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5646   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5647 esac
5648
5649 for ac_prog in bison
5650 do
5651   # Extract the first word of "$ac_prog", so it can be a program name with args.
5652 set dummy $ac_prog; ac_word=$2
5653 echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655 if test "${ac_cv_prog_BISON+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   if test -n "$BISON"; then
5659   ac_cv_prog_BISON="$BISON" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664   IFS=$as_save_IFS
5665   test -z "$as_dir" && as_dir=.
5666   for ac_exec_ext in '' $ac_executable_extensions; do
5667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668     ac_cv_prog_BISON="$ac_prog"
5669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670     break 2
5671   fi
5672 done
5673 done
5674
5675 fi
5676 fi
5677 BISON=$ac_cv_prog_BISON
5678 if test -n "$BISON"; then
5679   echo "$as_me:$LINENO: result: $BISON" >&5
5680 echo "${ECHO_T}$BISON" >&6
5681 else
5682   echo "$as_me:$LINENO: result: no" >&5
5683 echo "${ECHO_T}no" >&6
5684 fi
5685
5686   test -n "$BISON" && break
5687 done
5688 test -n "$BISON" || BISON="$MISSING bison"
5689
5690 case " $build_configdirs " in
5691   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5692 esac
5693
5694 for ac_prog in gm4 gnum4 m4
5695 do
5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700 if test "${ac_cv_prog_M4+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$M4"; then
5704   ac_cv_prog_M4="$M4" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713     ac_cv_prog_M4="$ac_prog"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719
5720 fi
5721 fi
5722 M4=$ac_cv_prog_M4
5723 if test -n "$M4"; then
5724   echo "$as_me:$LINENO: result: $M4" >&5
5725 echo "${ECHO_T}$M4" >&6
5726 else
5727   echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6
5729 fi
5730
5731   test -n "$M4" && break
5732 done
5733 test -n "$M4" || M4="$MISSING m4"
5734
5735 case " $build_configdirs " in
5736   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5737 esac
5738
5739 for ac_prog in flex lex
5740 do
5741   # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_LEX+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   if test -n "$LEX"; then
5749   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756   for ac_exec_ext in '' $ac_executable_extensions; do
5757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_prog_LEX="$ac_prog"
5759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763 done
5764
5765 fi
5766 fi
5767 LEX=$ac_cv_prog_LEX
5768 if test -n "$LEX"; then
5769   echo "$as_me:$LINENO: result: $LEX" >&5
5770 echo "${ECHO_T}$LEX" >&6
5771 else
5772   echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774 fi
5775
5776   test -n "$LEX" && break
5777 done
5778 test -n "$LEX" || LEX="$MISSING flex"
5779
5780 case " $build_configdirs " in
5781   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5782   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5783 esac
5784
5785 for ac_prog in flex
5786 do
5787   # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791 if test "${ac_cv_prog_FLEX+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   if test -n "$FLEX"; then
5795   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800   IFS=$as_save_IFS
5801   test -z "$as_dir" && as_dir=.
5802   for ac_exec_ext in '' $ac_executable_extensions; do
5803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804     ac_cv_prog_FLEX="$ac_prog"
5805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809 done
5810
5811 fi
5812 fi
5813 FLEX=$ac_cv_prog_FLEX
5814 if test -n "$FLEX"; then
5815   echo "$as_me:$LINENO: result: $FLEX" >&5
5816 echo "${ECHO_T}$FLEX" >&6
5817 else
5818   echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5820 fi
5821
5822   test -n "$FLEX" && break
5823 done
5824 test -n "$FLEX" || FLEX="$MISSING flex"
5825
5826 case " $build_configdirs " in
5827   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5828 esac
5829
5830 for ac_prog in makeinfo
5831 do
5832   # Extract the first word of "$ac_prog", so it can be a program name with args.
5833 set dummy $ac_prog; ac_word=$2
5834 echo "$as_me:$LINENO: checking for $ac_word" >&5
5835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   if test -n "$MAKEINFO"; then
5840   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_MAKEINFO="$ac_prog"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855
5856 fi
5857 fi
5858 MAKEINFO=$ac_cv_prog_MAKEINFO
5859 if test -n "$MAKEINFO"; then
5860   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5861 echo "${ECHO_T}$MAKEINFO" >&6
5862 else
5863   echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5865 fi
5866
5867   test -n "$MAKEINFO" && break
5868 done
5869 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5870
5871 case " $build_configdirs " in
5872   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5873   *)
5874
5875     # For an installed makeinfo, we require it to be from texinfo 4.4 or
5876     # higher, else we use the "missing" dummy.
5877     if ${MAKEINFO} --version \
5878        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5879       :
5880     else
5881       MAKEINFO="$MISSING makeinfo"
5882     fi
5883     ;;
5884
5885 esac
5886
5887 # FIXME: expect and dejagnu may become build tools?
5888
5889 for ac_prog in expect
5890 do
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_EXPECT+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$EXPECT"; then
5899   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_EXPECT="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914
5915 fi
5916 fi
5917 EXPECT=$ac_cv_prog_EXPECT
5918 if test -n "$EXPECT"; then
5919   echo "$as_me:$LINENO: result: $EXPECT" >&5
5920 echo "${ECHO_T}$EXPECT" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   test -n "$EXPECT" && break
5927 done
5928 test -n "$EXPECT" || EXPECT="expect"
5929
5930 case " $configdirs " in
5931   *" expect "*)
5932     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5933     ;;
5934 esac
5935
5936 for ac_prog in runtest
5937 do
5938   # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_RUNTEST+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   if test -n "$RUNTEST"; then
5946   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953   for ac_exec_ext in '' $ac_executable_extensions; do
5954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955     ac_cv_prog_RUNTEST="$ac_prog"
5956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960 done
5961
5962 fi
5963 fi
5964 RUNTEST=$ac_cv_prog_RUNTEST
5965 if test -n "$RUNTEST"; then
5966   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5967 echo "${ECHO_T}$RUNTEST" >&6
5968 else
5969   echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5971 fi
5972
5973   test -n "$RUNTEST" && break
5974 done
5975 test -n "$RUNTEST" || RUNTEST="runtest"
5976
5977 case " $configdirs " in
5978   *" dejagnu "*)
5979     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
5980     ;;
5981 esac
5982
5983
5984 # Host tools.
5985 ncn_tool_prefix=
5986 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5987 ncn_target_tool_prefix=
5988 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5989
5990  for ncn_progname in ar; do
5991   if test -n "$ncn_tool_prefix"; then
5992     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5993 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_prog_AR+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   if test -n "$AR"; then
6000   ac_cv_prog_AR="$AR" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for ac_exec_ext in '' $ac_executable_extensions; do
6008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014 done
6015
6016 fi
6017 fi
6018 AR=$ac_cv_prog_AR
6019 if test -n "$AR"; then
6020   echo "$as_me:$LINENO: result: $AR" >&5
6021 echo "${ECHO_T}$AR" >&6
6022 else
6023   echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025 fi
6026
6027   fi
6028   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6029     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6030 set dummy ${ncn_progname}; ac_word=$2
6031 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 if test "${ac_cv_prog_AR+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   if test -n "$AR"; then
6037   ac_cv_prog_AR="$AR" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044   for ac_exec_ext in '' $ac_executable_extensions; do
6045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046     ac_cv_prog_AR="${ncn_progname}"
6047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051 done
6052
6053 fi
6054 fi
6055 AR=$ac_cv_prog_AR
6056 if test -n "$AR"; then
6057   echo "$as_me:$LINENO: result: $AR" >&5
6058 echo "${ECHO_T}$AR" >&6
6059 else
6060   echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6
6062 fi
6063
6064   fi
6065   test -n "$ac_cv_prog_AR" && break
6066 done
6067
6068 if test -z "$ac_cv_prog_AR" ; then
6069   set dummy ar
6070   if test $build = $host ; then
6071     AR="$2"
6072   else
6073     AR="${ncn_tool_prefix}$2"
6074   fi
6075 fi
6076
6077  for ncn_progname in as; do
6078   if test -n "$ncn_tool_prefix"; then
6079     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6080 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083 if test "${ac_cv_prog_AS+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   if test -n "$AS"; then
6087   ac_cv_prog_AS="$AS" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094   for ac_exec_ext in '' $ac_executable_extensions; do
6095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101 done
6102
6103 fi
6104 fi
6105 AS=$ac_cv_prog_AS
6106 if test -n "$AS"; then
6107   echo "$as_me:$LINENO: result: $AS" >&5
6108 echo "${ECHO_T}$AS" >&6
6109 else
6110   echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6
6112 fi
6113
6114   fi
6115   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6116     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6117 set dummy ${ncn_progname}; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_AS+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$AS"; then
6124   ac_cv_prog_AS="$AS" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133     ac_cv_prog_AS="${ncn_progname}"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139
6140 fi
6141 fi
6142 AS=$ac_cv_prog_AS
6143 if test -n "$AS"; then
6144   echo "$as_me:$LINENO: result: $AS" >&5
6145 echo "${ECHO_T}$AS" >&6
6146 else
6147   echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6149 fi
6150
6151   fi
6152   test -n "$ac_cv_prog_AS" && break
6153 done
6154
6155 if test -z "$ac_cv_prog_AS" ; then
6156   set dummy as
6157   if test $build = $host ; then
6158     AS="$2"
6159   else
6160     AS="${ncn_tool_prefix}$2"
6161   fi
6162 fi
6163
6164  for ncn_progname in dlltool; do
6165   if test -n "$ncn_tool_prefix"; then
6166     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6167 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6168 echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   if test -n "$DLLTOOL"; then
6174   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189
6190 fi
6191 fi
6192 DLLTOOL=$ac_cv_prog_DLLTOOL
6193 if test -n "$DLLTOOL"; then
6194   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6195 echo "${ECHO_T}$DLLTOOL" >&6
6196 else
6197   echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6
6199 fi
6200
6201   fi
6202   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6203     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6204 set dummy ${ncn_progname}; ac_word=$2
6205 echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   if test -n "$DLLTOOL"; then
6211   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218   for ac_exec_ext in '' $ac_executable_extensions; do
6219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_prog_DLLTOOL="${ncn_progname}"
6221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225 done
6226
6227 fi
6228 fi
6229 DLLTOOL=$ac_cv_prog_DLLTOOL
6230 if test -n "$DLLTOOL"; then
6231   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6232 echo "${ECHO_T}$DLLTOOL" >&6
6233 else
6234   echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6236 fi
6237
6238   fi
6239   test -n "$ac_cv_prog_DLLTOOL" && break
6240 done
6241
6242 if test -z "$ac_cv_prog_DLLTOOL" ; then
6243   set dummy dlltool
6244   if test $build = $host ; then
6245     DLLTOOL="$2"
6246   else
6247     DLLTOOL="${ncn_tool_prefix}$2"
6248   fi
6249 fi
6250
6251  for ncn_progname in ld; do
6252   if test -n "$ncn_tool_prefix"; then
6253     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6254 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6255 echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257 if test "${ac_cv_prog_LD+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   if test -n "$LD"; then
6261   ac_cv_prog_LD="$LD" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268   for ac_exec_ext in '' $ac_executable_extensions; do
6269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275 done
6276
6277 fi
6278 fi
6279 LD=$ac_cv_prog_LD
6280 if test -n "$LD"; then
6281   echo "$as_me:$LINENO: result: $LD" >&5
6282 echo "${ECHO_T}$LD" >&6
6283 else
6284   echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288   fi
6289   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6290     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6291 set dummy ${ncn_progname}; ac_word=$2
6292 echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294 if test "${ac_cv_prog_LD+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   if test -n "$LD"; then
6298   ac_cv_prog_LD="$LD" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307     ac_cv_prog_LD="${ncn_progname}"
6308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313
6314 fi
6315 fi
6316 LD=$ac_cv_prog_LD
6317 if test -n "$LD"; then
6318   echo "$as_me:$LINENO: result: $LD" >&5
6319 echo "${ECHO_T}$LD" >&6
6320 else
6321   echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6323 fi
6324
6325   fi
6326   test -n "$ac_cv_prog_LD" && break
6327 done
6328
6329 if test -z "$ac_cv_prog_LD" ; then
6330   set dummy ld
6331   if test $build = $host ; then
6332     LD="$2"
6333   else
6334     LD="${ncn_tool_prefix}$2"
6335   fi
6336 fi
6337
6338  for ncn_progname in lipo; do
6339   if test -n "$ncn_tool_prefix"; then
6340     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_LIPO+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   if test -n "$LIPO"; then
6348   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363
6364 fi
6365 fi
6366 LIPO=$ac_cv_prog_LIPO
6367 if test -n "$LIPO"; then
6368   echo "$as_me:$LINENO: result: $LIPO" >&5
6369 echo "${ECHO_T}$LIPO" >&6
6370 else
6371   echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6
6373 fi
6374
6375   fi
6376   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6377     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6378 set dummy ${ncn_progname}; ac_word=$2
6379 echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381 if test "${ac_cv_prog_LIPO+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   if test -n "$LIPO"; then
6385   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392   for ac_exec_ext in '' $ac_executable_extensions; do
6393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_prog_LIPO="${ncn_progname}"
6395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399 done
6400
6401 fi
6402 fi
6403 LIPO=$ac_cv_prog_LIPO
6404 if test -n "$LIPO"; then
6405   echo "$as_me:$LINENO: result: $LIPO" >&5
6406 echo "${ECHO_T}$LIPO" >&6
6407 else
6408   echo "$as_me:$LINENO: result: no" >&5
6409 echo "${ECHO_T}no" >&6
6410 fi
6411
6412   fi
6413   test -n "$ac_cv_prog_LIPO" && break
6414 done
6415
6416 if test -z "$ac_cv_prog_LIPO" ; then
6417   set dummy lipo
6418   if test $build = $host ; then
6419     LIPO="$2"
6420   else
6421     LIPO="${ncn_tool_prefix}$2"
6422   fi
6423 fi
6424
6425  for ncn_progname in nm; do
6426   if test -n "$ncn_tool_prefix"; then
6427     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6428 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6429 echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431 if test "${ac_cv_prog_NM+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   if test -n "$NM"; then
6435   ac_cv_prog_NM="$NM" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442   for ac_exec_ext in '' $ac_executable_extensions; do
6443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449 done
6450
6451 fi
6452 fi
6453 NM=$ac_cv_prog_NM
6454 if test -n "$NM"; then
6455   echo "$as_me:$LINENO: result: $NM" >&5
6456 echo "${ECHO_T}$NM" >&6
6457 else
6458   echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6460 fi
6461
6462   fi
6463   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6464     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6465 set dummy ${ncn_progname}; ac_word=$2
6466 echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6468 if test "${ac_cv_prog_NM+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471   if test -n "$NM"; then
6472   ac_cv_prog_NM="$NM" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477   IFS=$as_save_IFS
6478   test -z "$as_dir" && as_dir=.
6479   for ac_exec_ext in '' $ac_executable_extensions; do
6480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481     ac_cv_prog_NM="${ncn_progname}"
6482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483     break 2
6484   fi
6485 done
6486 done
6487
6488 fi
6489 fi
6490 NM=$ac_cv_prog_NM
6491 if test -n "$NM"; then
6492   echo "$as_me:$LINENO: result: $NM" >&5
6493 echo "${ECHO_T}$NM" >&6
6494 else
6495   echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6
6497 fi
6498
6499   fi
6500   test -n "$ac_cv_prog_NM" && break
6501 done
6502
6503 if test -z "$ac_cv_prog_NM" ; then
6504   set dummy nm
6505   if test $build = $host ; then
6506     NM="$2"
6507   else
6508     NM="${ncn_tool_prefix}$2"
6509   fi
6510 fi
6511
6512  for ncn_progname in ranlib; do
6513   if test -n "$ncn_tool_prefix"; then
6514     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6515 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6516 echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518 if test "${ac_cv_prog_RANLIB+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   if test -n "$RANLIB"; then
6522   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529   for ac_exec_ext in '' $ac_executable_extensions; do
6530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536 done
6537
6538 fi
6539 fi
6540 RANLIB=$ac_cv_prog_RANLIB
6541 if test -n "$RANLIB"; then
6542   echo "$as_me:$LINENO: result: $RANLIB" >&5
6543 echo "${ECHO_T}$RANLIB" >&6
6544 else
6545   echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6
6547 fi
6548
6549   fi
6550   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6551     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6552 set dummy ${ncn_progname}; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_RANLIB+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$RANLIB"; then
6559   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568     ac_cv_prog_RANLIB="${ncn_progname}"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574
6575 fi
6576 fi
6577 RANLIB=$ac_cv_prog_RANLIB
6578 if test -n "$RANLIB"; then
6579   echo "$as_me:$LINENO: result: $RANLIB" >&5
6580 echo "${ECHO_T}$RANLIB" >&6
6581 else
6582   echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6584 fi
6585
6586   fi
6587   test -n "$ac_cv_prog_RANLIB" && break
6588 done
6589
6590 if test -z "$ac_cv_prog_RANLIB" ; then
6591   RANLIB=":"
6592 fi
6593
6594  for ncn_progname in strip; do
6595   if test -n "$ncn_tool_prefix"; then
6596     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6597 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6598 echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6600 if test "${ac_cv_prog_STRIP+set}" = set; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603   if test -n "$STRIP"; then
6604   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619
6620 fi
6621 fi
6622 STRIP=$ac_cv_prog_STRIP
6623 if test -n "$STRIP"; then
6624   echo "$as_me:$LINENO: result: $STRIP" >&5
6625 echo "${ECHO_T}$STRIP" >&6
6626 else
6627   echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6
6629 fi
6630
6631   fi
6632   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6633     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6634 set dummy ${ncn_progname}; ac_word=$2
6635 echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637 if test "${ac_cv_prog_STRIP+set}" = set; then
6638   echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640   if test -n "$STRIP"; then
6641   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650     ac_cv_prog_STRIP="${ncn_progname}"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656
6657 fi
6658 fi
6659 STRIP=$ac_cv_prog_STRIP
6660 if test -n "$STRIP"; then
6661   echo "$as_me:$LINENO: result: $STRIP" >&5
6662 echo "${ECHO_T}$STRIP" >&6
6663 else
6664   echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666 fi
6667
6668   fi
6669   test -n "$ac_cv_prog_STRIP" && break
6670 done
6671
6672 if test -z "$ac_cv_prog_STRIP" ; then
6673   STRIP=":"
6674 fi
6675
6676  for ncn_progname in windres; do
6677   if test -n "$ncn_tool_prefix"; then
6678     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6679 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6680 echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682 if test "${ac_cv_prog_WINDRES+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   if test -n "$WINDRES"; then
6686   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701
6702 fi
6703 fi
6704 WINDRES=$ac_cv_prog_WINDRES
6705 if test -n "$WINDRES"; then
6706   echo "$as_me:$LINENO: result: $WINDRES" >&5
6707 echo "${ECHO_T}$WINDRES" >&6
6708 else
6709   echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6711 fi
6712
6713   fi
6714   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6715     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6716 set dummy ${ncn_progname}; ac_word=$2
6717 echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719 if test "${ac_cv_prog_WINDRES+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   if test -n "$WINDRES"; then
6723   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
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_WINDRES="${ncn_progname}"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738
6739 fi
6740 fi
6741 WINDRES=$ac_cv_prog_WINDRES
6742 if test -n "$WINDRES"; then
6743   echo "$as_me:$LINENO: result: $WINDRES" >&5
6744 echo "${ECHO_T}$WINDRES" >&6
6745 else
6746   echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6
6748 fi
6749
6750   fi
6751   test -n "$ac_cv_prog_WINDRES" && break
6752 done
6753
6754 if test -z "$ac_cv_prog_WINDRES" ; then
6755   set dummy windres
6756   if test $build = $host ; then
6757     WINDRES="$2"
6758   else
6759     WINDRES="${ncn_tool_prefix}$2"
6760   fi
6761 fi
6762
6763  for ncn_progname in objcopy; do
6764   if test -n "$ncn_tool_prefix"; then
6765     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6766 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6767 echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6770   echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772   if test -n "$OBJCOPY"; then
6773   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780   for ac_exec_ext in '' $ac_executable_extensions; do
6781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787 done
6788
6789 fi
6790 fi
6791 OBJCOPY=$ac_cv_prog_OBJCOPY
6792 if test -n "$OBJCOPY"; then
6793   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6794 echo "${ECHO_T}$OBJCOPY" >&6
6795 else
6796   echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6
6798 fi
6799
6800   fi
6801   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6802     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6803 set dummy ${ncn_progname}; ac_word=$2
6804 echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   if test -n "$OBJCOPY"; then
6810   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817   for ac_exec_ext in '' $ac_executable_extensions; do
6818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819     ac_cv_prog_OBJCOPY="${ncn_progname}"
6820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824 done
6825
6826 fi
6827 fi
6828 OBJCOPY=$ac_cv_prog_OBJCOPY
6829 if test -n "$OBJCOPY"; then
6830   echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6831 echo "${ECHO_T}$OBJCOPY" >&6
6832 else
6833   echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6
6835 fi
6836
6837   fi
6838   test -n "$ac_cv_prog_OBJCOPY" && break
6839 done
6840
6841 if test -z "$ac_cv_prog_OBJCOPY" ; then
6842   set dummy objcopy
6843   if test $build = $host ; then
6844     OBJCOPY="$2"
6845   else
6846     OBJCOPY="${ncn_tool_prefix}$2"
6847   fi
6848 fi
6849
6850  for ncn_progname in objdump; do
6851   if test -n "$ncn_tool_prefix"; then
6852     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6853 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6854 echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$OBJDUMP"; then
6860   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875
6876 fi
6877 fi
6878 OBJDUMP=$ac_cv_prog_OBJDUMP
6879 if test -n "$OBJDUMP"; then
6880   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6881 echo "${ECHO_T}$OBJDUMP" >&6
6882 else
6883   echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885 fi
6886
6887   fi
6888   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6889     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6890 set dummy ${ncn_progname}; ac_word=$2
6891 echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   if test -n "$OBJDUMP"; then
6897   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906     ac_cv_prog_OBJDUMP="${ncn_progname}"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912
6913 fi
6914 fi
6915 OBJDUMP=$ac_cv_prog_OBJDUMP
6916 if test -n "$OBJDUMP"; then
6917   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6918 echo "${ECHO_T}$OBJDUMP" >&6
6919 else
6920   echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6
6922 fi
6923
6924   fi
6925   test -n "$ac_cv_prog_OBJDUMP" && break
6926 done
6927
6928 if test -z "$ac_cv_prog_OBJDUMP" ; then
6929   set dummy objdump
6930   if test $build = $host ; then
6931     OBJDUMP="$2"
6932   else
6933     OBJDUMP="${ncn_tool_prefix}$2"
6934   fi
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943 # Target tools.
6944
6945 # Check whether --with-build-time-tools or --without-build-time-tools was given.
6946 if test "${with_build_time_tools+set}" = set; then
6947   withval="$with_build_time_tools"
6948   case x"$withval" in
6949      x/*) ;;
6950      *)
6951        with_build_time_tools=
6952        { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6953 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
6954        ;;
6955    esac
6956 else
6957   with_build_time_tools=
6958 fi;
6959
6960  if test -n "$with_build_time_tools"; then
6961   for ncn_progname in cc gcc; do
6962     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6963 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
6964     if test -x $with_build_time_tools/${ncn_progname}; then
6965       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6966       echo "$as_me:$LINENO: result: yes" >&5
6967 echo "${ECHO_T}yes" >&6
6968       break
6969     else
6970       echo "$as_me:$LINENO: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6972     fi
6973   done
6974 fi
6975
6976 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6977   for ncn_progname in cc gcc; do
6978     if test -n "$ncn_target_tool_prefix"; then
6979       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6980 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6981 echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   if test -n "$CC_FOR_TARGET"; then
6987   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992   IFS=$as_save_IFS
6993   test -z "$as_dir" && as_dir=.
6994   for ac_exec_ext in '' $ac_executable_extensions; do
6995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998     break 2
6999   fi
7000 done
7001 done
7002
7003 fi
7004 fi
7005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7006 if test -n "$CC_FOR_TARGET"; then
7007   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7008 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7009 else
7010   echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6
7012 fi
7013
7014     fi
7015     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7016       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7017 set dummy ${ncn_progname}; ac_word=$2
7018 echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   if test -n "$CC_FOR_TARGET"; then
7024   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031   for ac_exec_ext in '' $ac_executable_extensions; do
7032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038 done
7039
7040 fi
7041 fi
7042 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7043 if test -n "$CC_FOR_TARGET"; then
7044   echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7045 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7046 else
7047   echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049 fi
7050
7051     fi
7052     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7053   done
7054 fi
7055
7056 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7057   set dummy cc gcc
7058   if test $build = $target ; then
7059     CC_FOR_TARGET="$2"
7060   else
7061     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7062   fi
7063 fi
7064
7065  if test -n "$with_build_time_tools"; then
7066   for ncn_progname in c++ g++ cxx gxx; do
7067     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7068 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7069     if test -x $with_build_time_tools/${ncn_progname}; then
7070       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7071       echo "$as_me:$LINENO: result: yes" >&5
7072 echo "${ECHO_T}yes" >&6
7073       break
7074     else
7075       echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6
7077     fi
7078   done
7079 fi
7080
7081 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7082   for ncn_progname in c++ g++ cxx gxx; do
7083     if test -n "$ncn_target_tool_prefix"; then
7084       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7086 echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7088 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   if test -n "$CXX_FOR_TARGET"; then
7092   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107
7108 fi
7109 fi
7110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7111 if test -n "$CXX_FOR_TARGET"; then
7112   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7113 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7114 else
7115   echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117 fi
7118
7119     fi
7120     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7121       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7122 set dummy ${ncn_progname}; ac_word=$2
7123 echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128   if test -n "$CXX_FOR_TARGET"; then
7129   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136   for ac_exec_ext in '' $ac_executable_extensions; do
7137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143 done
7144
7145 fi
7146 fi
7147 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7148 if test -n "$CXX_FOR_TARGET"; then
7149   echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7150 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7151 else
7152   echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6
7154 fi
7155
7156     fi
7157     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7158   done
7159 fi
7160
7161 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7162   set dummy c++ g++ cxx gxx
7163   if test $build = $target ; then
7164     CXX_FOR_TARGET="$2"
7165   else
7166     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
7167   fi
7168 fi
7169
7170  if test -n "$with_build_time_tools"; then
7171   for ncn_progname in gcc; do
7172     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7173 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7174     if test -x $with_build_time_tools/${ncn_progname}; then
7175       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7176       echo "$as_me:$LINENO: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178       break
7179     else
7180       echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182     fi
7183   done
7184 fi
7185
7186 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7187   for ncn_progname in gcc; do
7188     if test -n "$ncn_target_tool_prefix"; then
7189       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7191 echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7193 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   if test -n "$GCC_FOR_TARGET"; then
7197   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204   for ac_exec_ext in '' $ac_executable_extensions; do
7205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211 done
7212
7213 fi
7214 fi
7215 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7216 if test -n "$GCC_FOR_TARGET"; then
7217   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7218 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7219 else
7220   echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222 fi
7223
7224     fi
7225     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7226       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7227 set dummy ${ncn_progname}; ac_word=$2
7228 echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   if test -n "$GCC_FOR_TARGET"; then
7234   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249
7250 fi
7251 fi
7252 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7253 if test -n "$GCC_FOR_TARGET"; then
7254   echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7255 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7256 else
7257   echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259 fi
7260
7261     fi
7262     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7263   done
7264 fi
7265
7266 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7267   GCC_FOR_TARGET="${CC_FOR_TARGET}"
7268 fi
7269
7270  if test -n "$with_build_time_tools"; then
7271   for ncn_progname in gcj; do
7272     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7273 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7274     if test -x $with_build_time_tools/${ncn_progname}; then
7275       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7276       echo "$as_me:$LINENO: result: yes" >&5
7277 echo "${ECHO_T}yes" >&6
7278       break
7279     else
7280       echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6
7282     fi
7283   done
7284 fi
7285
7286 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7287   for ncn_progname in gcj; do
7288     if test -n "$ncn_target_tool_prefix"; then
7289       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7290 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   if test -n "$GCJ_FOR_TARGET"; then
7297   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312
7313 fi
7314 fi
7315 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7316 if test -n "$GCJ_FOR_TARGET"; then
7317   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7318 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7319 else
7320   echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7322 fi
7323
7324     fi
7325     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7326       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7327 set dummy ${ncn_progname}; ac_word=$2
7328 echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   if test -n "$GCJ_FOR_TARGET"; then
7334   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341   for ac_exec_ext in '' $ac_executable_extensions; do
7342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348 done
7349
7350 fi
7351 fi
7352 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7353 if test -n "$GCJ_FOR_TARGET"; then
7354   echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7355 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7356 else
7357   echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6
7359 fi
7360
7361     fi
7362     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7363   done
7364 fi
7365
7366 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7367   set dummy gcj
7368   if test $build = $target ; then
7369     GCJ_FOR_TARGET="$2"
7370   else
7371     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7372   fi
7373 fi
7374
7375  if test -n "$with_build_time_tools"; then
7376   for ncn_progname in gfortran; do
7377     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7378 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7379     if test -x $with_build_time_tools/${ncn_progname}; then
7380       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7381       echo "$as_me:$LINENO: result: yes" >&5
7382 echo "${ECHO_T}yes" >&6
7383       break
7384     else
7385       echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387     fi
7388   done
7389 fi
7390
7391 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7392   for ncn_progname in gfortran; do
7393     if test -n "$ncn_target_tool_prefix"; then
7394       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   if test -n "$GFORTRAN_FOR_TARGET"; then
7402   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
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_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417
7418 fi
7419 fi
7420 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7421 if test -n "$GFORTRAN_FOR_TARGET"; then
7422   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7423 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7424 else
7425   echo "$as_me:$LINENO: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7427 fi
7428
7429     fi
7430     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7431       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7432 set dummy ${ncn_progname}; ac_word=$2
7433 echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   if test -n "$GFORTRAN_FOR_TARGET"; then
7439   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446   for ac_exec_ext in '' $ac_executable_extensions; do
7447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453 done
7454
7455 fi
7456 fi
7457 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7458 if test -n "$GFORTRAN_FOR_TARGET"; then
7459   echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7460 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7461 else
7462   echo "$as_me:$LINENO: result: no" >&5
7463 echo "${ECHO_T}no" >&6
7464 fi
7465
7466     fi
7467     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7468   done
7469 fi
7470
7471 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7472   set dummy gfortran
7473   if test $build = $target ; then
7474     GFORTRAN_FOR_TARGET="$2"
7475   else
7476     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7477   fi
7478 fi
7479
7480
7481
7482 cat > conftest.c << \EOF
7483 #ifdef __GNUC__
7484   gcc_yay;
7485 #endif
7486 EOF
7487 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7488   have_gcc_for_target=yes
7489 else
7490   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7491   have_gcc_for_target=no
7492 fi
7493 rm conftest.c
7494
7495
7496
7497
7498 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7499   if test -n "$with_build_time_tools"; then
7500     echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7501 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
7502     if test -x $with_build_time_tools/ar; then
7503       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7504       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7505       echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7506 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7507     else
7508       echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510     fi
7511   elif test $build != $host && test $have_gcc_for_target = yes; then
7512     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7513     test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7514     ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7515   fi
7516 fi
7517 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7518   # Extract the first word of "ar", so it can be a program name with args.
7519 set dummy ar; ac_word=$2
7520 echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   case $AR_FOR_TARGET in
7526   [\\/]* | ?:[\\/]*)
7527   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7528   ;;
7529   *)
7530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $gcc_cv_tool_dirs
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535   for ac_exec_ext in '' $ac_executable_extensions; do
7536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542 done
7543
7544   ;;
7545 esac
7546 fi
7547 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7548
7549 if test -n "$AR_FOR_TARGET"; then
7550   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7551 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7552 else
7553   echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7555 fi
7556
7557 fi
7558 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7559    if test -n "$with_build_time_tools"; then
7560   for ncn_progname in ar; do
7561     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7562 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7563     if test -x $with_build_time_tools/${ncn_progname}; then
7564       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7565       echo "$as_me:$LINENO: result: yes" >&5
7566 echo "${ECHO_T}yes" >&6
7567       break
7568     else
7569       echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571     fi
7572   done
7573 fi
7574
7575 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7576   for ncn_progname in ar; do
7577     if test -n "$ncn_target_tool_prefix"; then
7578       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7580 echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7582 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   if test -n "$AR_FOR_TARGET"; then
7586   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593   for ac_exec_ext in '' $ac_executable_extensions; do
7594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600 done
7601
7602 fi
7603 fi
7604 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7605 if test -n "$AR_FOR_TARGET"; then
7606   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7607 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7608 else
7609   echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7611 fi
7612
7613     fi
7614     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7615       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7616 set dummy ${ncn_progname}; ac_word=$2
7617 echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   if test -n "$AR_FOR_TARGET"; then
7623   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630   for ac_exec_ext in '' $ac_executable_extensions; do
7631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637 done
7638
7639 fi
7640 fi
7641 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7642 if test -n "$AR_FOR_TARGET"; then
7643   echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7644 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7645 else
7646   echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7648 fi
7649
7650     fi
7651     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7652   done
7653 fi
7654
7655 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7656   set dummy ar
7657   if test $build = $target ; then
7658     AR_FOR_TARGET="$2"
7659   else
7660     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7661   fi
7662 fi
7663
7664 else
7665   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7666 fi
7667
7668
7669
7670
7671 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7672   if test -n "$with_build_time_tools"; then
7673     echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7674 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7675     if test -x $with_build_time_tools/as; then
7676       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7677       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7678       echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7679 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7680     else
7681       echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7683     fi
7684   elif test $build != $host && test $have_gcc_for_target = yes; then
7685     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7686     test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7687     ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7688   fi
7689 fi
7690 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7691   # Extract the first word of "as", so it can be a program name with args.
7692 set dummy as; ac_word=$2
7693 echo "$as_me:$LINENO: checking for $ac_word" >&5
7694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698   case $AS_FOR_TARGET in
7699   [\\/]* | ?:[\\/]*)
7700   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7701   ;;
7702   *)
7703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $gcc_cv_tool_dirs
7705 do
7706   IFS=$as_save_IFS
7707   test -z "$as_dir" && as_dir=.
7708   for ac_exec_ext in '' $ac_executable_extensions; do
7709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712     break 2
7713   fi
7714 done
7715 done
7716
7717   ;;
7718 esac
7719 fi
7720 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7721
7722 if test -n "$AS_FOR_TARGET"; then
7723   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7724 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7725 else
7726   echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7728 fi
7729
7730 fi
7731 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7732    if test -n "$with_build_time_tools"; then
7733   for ncn_progname in as; do
7734     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7735 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7736     if test -x $with_build_time_tools/${ncn_progname}; then
7737       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7738       echo "$as_me:$LINENO: result: yes" >&5
7739 echo "${ECHO_T}yes" >&6
7740       break
7741     else
7742       echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7744     fi
7745   done
7746 fi
7747
7748 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7749   for ncn_progname in as; do
7750     if test -n "$ncn_target_tool_prefix"; then
7751       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7753 echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   if test -n "$AS_FOR_TARGET"; then
7759   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774
7775 fi
7776 fi
7777 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7778 if test -n "$AS_FOR_TARGET"; then
7779   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7780 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7781 else
7782   echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6
7784 fi
7785
7786     fi
7787     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7788       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7789 set dummy ${ncn_progname}; ac_word=$2
7790 echo "$as_me:$LINENO: checking for $ac_word" >&5
7791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   if test -n "$AS_FOR_TARGET"; then
7796   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801   IFS=$as_save_IFS
7802   test -z "$as_dir" && as_dir=.
7803   for ac_exec_ext in '' $ac_executable_extensions; do
7804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807     break 2
7808   fi
7809 done
7810 done
7811
7812 fi
7813 fi
7814 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7815 if test -n "$AS_FOR_TARGET"; then
7816   echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7817 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7818 else
7819   echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6
7821 fi
7822
7823     fi
7824     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7825   done
7826 fi
7827
7828 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7829   set dummy as
7830   if test $build = $target ; then
7831     AS_FOR_TARGET="$2"
7832   else
7833     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7834   fi
7835 fi
7836
7837 else
7838   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7839 fi
7840
7841
7842
7843
7844 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7845   if test -n "$with_build_time_tools"; then
7846     echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7847 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7848     if test -x $with_build_time_tools/dlltool; then
7849       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7850       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7851       echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7852 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7853     else
7854       echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856     fi
7857   elif test $build != $host && test $have_gcc_for_target = yes; then
7858     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7859     test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7860     ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7861   fi
7862 fi
7863 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7864   # Extract the first word of "dlltool", so it can be a program name with args.
7865 set dummy dlltool; ac_word=$2
7866 echo "$as_me:$LINENO: checking for $ac_word" >&5
7867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   case $DLLTOOL_FOR_TARGET in
7872   [\\/]* | ?:[\\/]*)
7873   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7874   ;;
7875   *)
7876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $gcc_cv_tool_dirs
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881   for ac_exec_ext in '' $ac_executable_extensions; do
7882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888 done
7889
7890   ;;
7891 esac
7892 fi
7893 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7894
7895 if test -n "$DLLTOOL_FOR_TARGET"; then
7896   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7897 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7898 else
7899   echo "$as_me:$LINENO: result: no" >&5
7900 echo "${ECHO_T}no" >&6
7901 fi
7902
7903 fi
7904 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7905    if test -n "$with_build_time_tools"; then
7906   for ncn_progname in dlltool; do
7907     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7908 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7909     if test -x $with_build_time_tools/${ncn_progname}; then
7910       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7911       echo "$as_me:$LINENO: result: yes" >&5
7912 echo "${ECHO_T}yes" >&6
7913       break
7914     else
7915       echo "$as_me:$LINENO: result: no" >&5
7916 echo "${ECHO_T}no" >&6
7917     fi
7918   done
7919 fi
7920
7921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7922   for ncn_progname in dlltool; do
7923     if test -n "$ncn_target_tool_prefix"; then
7924       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7926 echo "$as_me:$LINENO: checking for $ac_word" >&5
7927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   if test -n "$DLLTOOL_FOR_TARGET"; then
7932   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
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_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946 done
7947
7948 fi
7949 fi
7950 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7951 if test -n "$DLLTOOL_FOR_TARGET"; then
7952   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7953 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7954 else
7955   echo "$as_me:$LINENO: result: no" >&5
7956 echo "${ECHO_T}no" >&6
7957 fi
7958
7959     fi
7960     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7961       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7962 set dummy ${ncn_progname}; ac_word=$2
7963 echo "$as_me:$LINENO: checking for $ac_word" >&5
7964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7965 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   if test -n "$DLLTOOL_FOR_TARGET"; then
7969   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976   for ac_exec_ext in '' $ac_executable_extensions; do
7977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983 done
7984
7985 fi
7986 fi
7987 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
7988 if test -n "$DLLTOOL_FOR_TARGET"; then
7989   echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7990 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7991 else
7992   echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6
7994 fi
7995
7996     fi
7997     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7998   done
7999 fi
8000
8001 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8002   set dummy dlltool
8003   if test $build = $target ; then
8004     DLLTOOL_FOR_TARGET="$2"
8005   else
8006     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8007   fi
8008 fi
8009
8010 else
8011   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8012 fi
8013
8014
8015
8016
8017 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8018   if test -n "$with_build_time_tools"; then
8019     echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8020 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
8021     if test -x $with_build_time_tools/ld; then
8022       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8023       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8024       echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8025 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
8026     else
8027       echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8029     fi
8030   elif test $build != $host && test $have_gcc_for_target = yes; then
8031     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8032     test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8033     ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8034   fi
8035 fi
8036 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8037   # Extract the first word of "ld", so it can be a program name with args.
8038 set dummy ld; ac_word=$2
8039 echo "$as_me:$LINENO: checking for $ac_word" >&5
8040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8041 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   case $LD_FOR_TARGET in
8045   [\\/]* | ?:[\\/]*)
8046   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8047   ;;
8048   *)
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $gcc_cv_tool_dirs
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054   for ac_exec_ext in '' $ac_executable_extensions; do
8055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061 done
8062
8063   ;;
8064 esac
8065 fi
8066 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8067
8068 if test -n "$LD_FOR_TARGET"; then
8069   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8070 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8071 else
8072   echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6
8074 fi
8075
8076 fi
8077 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8078    if test -n "$with_build_time_tools"; then
8079   for ncn_progname in ld; do
8080     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8081 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8082     if test -x $with_build_time_tools/${ncn_progname}; then
8083       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8084       echo "$as_me:$LINENO: result: yes" >&5
8085 echo "${ECHO_T}yes" >&6
8086       break
8087     else
8088       echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090     fi
8091   done
8092 fi
8093
8094 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8095   for ncn_progname in ld; do
8096     if test -n "$ncn_target_tool_prefix"; then
8097       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8098 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8099 echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   if test -n "$LD_FOR_TARGET"; then
8105   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110   IFS=$as_save_IFS
8111   test -z "$as_dir" && as_dir=.
8112   for ac_exec_ext in '' $ac_executable_extensions; do
8113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116     break 2
8117   fi
8118 done
8119 done
8120
8121 fi
8122 fi
8123 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8124 if test -n "$LD_FOR_TARGET"; then
8125   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8126 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8127 else
8128   echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6
8130 fi
8131
8132     fi
8133     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8134       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8135 set dummy ${ncn_progname}; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   if test -n "$LD_FOR_TARGET"; then
8142   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   for ac_exec_ext in '' $ac_executable_extensions; do
8150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156 done
8157
8158 fi
8159 fi
8160 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8161 if test -n "$LD_FOR_TARGET"; then
8162   echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8163 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8164 else
8165   echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6
8167 fi
8168
8169     fi
8170     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8171   done
8172 fi
8173
8174 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8175   set dummy ld
8176   if test $build = $target ; then
8177     LD_FOR_TARGET="$2"
8178   else
8179     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8180   fi
8181 fi
8182
8183 else
8184   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8185 fi
8186
8187
8188
8189
8190 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8191   if test -n "$with_build_time_tools"; then
8192     echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8193 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
8194     if test -x $with_build_time_tools/lipo; then
8195       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8196       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8197       echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8198 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
8199     else
8200       echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6
8202     fi
8203   elif test $build != $host && test $have_gcc_for_target = yes; then
8204     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8205     test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8206     ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8207   fi
8208 fi
8209 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8210   # Extract the first word of "lipo", so it can be a program name with args.
8211 set dummy lipo; ac_word=$2
8212 echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8214 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   case $LIPO_FOR_TARGET in
8218   [\\/]* | ?:[\\/]*)
8219   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8220   ;;
8221   *)
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $gcc_cv_tool_dirs
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227   for ac_exec_ext in '' $ac_executable_extensions; do
8228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234 done
8235
8236   ;;
8237 esac
8238 fi
8239 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8240
8241 if test -n "$LIPO_FOR_TARGET"; then
8242   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8243 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8244 else
8245   echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8247 fi
8248
8249 fi
8250 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8251    if test -n "$with_build_time_tools"; then
8252   for ncn_progname in lipo; do
8253     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8254 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8255     if test -x $with_build_time_tools/${ncn_progname}; then
8256       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8257       echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259       break
8260     else
8261       echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8263     fi
8264   done
8265 fi
8266
8267 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8268   for ncn_progname in lipo; do
8269     if test -n "$ncn_target_tool_prefix"; then
8270       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   if test -n "$LIPO_FOR_TARGET"; then
8278   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285   for ac_exec_ext in '' $ac_executable_extensions; do
8286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292 done
8293
8294 fi
8295 fi
8296 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8297 if test -n "$LIPO_FOR_TARGET"; then
8298   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8299 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8300 else
8301   echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8303 fi
8304
8305     fi
8306     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8307       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   if test -n "$LIPO_FOR_TARGET"; then
8315   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322   for ac_exec_ext in '' $ac_executable_extensions; do
8323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329 done
8330
8331 fi
8332 fi
8333 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8334 if test -n "$LIPO_FOR_TARGET"; then
8335   echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8336 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8337 else
8338   echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340 fi
8341
8342     fi
8343     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8344   done
8345 fi
8346
8347 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8348   set dummy lipo
8349   if test $build = $target ; then
8350     LIPO_FOR_TARGET="$2"
8351   else
8352     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8353   fi
8354 fi
8355
8356 else
8357   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8358 fi
8359
8360
8361
8362
8363 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8364   if test -n "$with_build_time_tools"; then
8365     echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8366 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
8367     if test -x $with_build_time_tools/nm; then
8368       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8369       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8370       echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8371 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8372     else
8373       echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6
8375     fi
8376   elif test $build != $host && test $have_gcc_for_target = yes; then
8377     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8378     test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8379     ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8380   fi
8381 fi
8382 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8383   # Extract the first word of "nm", so it can be a program name with args.
8384 set dummy nm; ac_word=$2
8385 echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8387 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   case $NM_FOR_TARGET in
8391   [\\/]* | ?:[\\/]*)
8392   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8393   ;;
8394   *)
8395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $gcc_cv_tool_dirs
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400   for ac_exec_ext in '' $ac_executable_extensions; do
8401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407 done
8408
8409   ;;
8410 esac
8411 fi
8412 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8413
8414 if test -n "$NM_FOR_TARGET"; then
8415   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8416 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8417 else
8418   echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8420 fi
8421
8422 fi
8423 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8424    if test -n "$with_build_time_tools"; then
8425   for ncn_progname in nm; do
8426     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8427 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8428     if test -x $with_build_time_tools/${ncn_progname}; then
8429       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8430       echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6
8432       break
8433     else
8434       echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6
8436     fi
8437   done
8438 fi
8439
8440 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8441   for ncn_progname in nm; do
8442     if test -n "$ncn_target_tool_prefix"; then
8443       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8445 echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8447 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   if test -n "$NM_FOR_TARGET"; then
8451   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456   IFS=$as_save_IFS
8457   test -z "$as_dir" && as_dir=.
8458   for ac_exec_ext in '' $ac_executable_extensions; do
8459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462     break 2
8463   fi
8464 done
8465 done
8466
8467 fi
8468 fi
8469 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8470 if test -n "$NM_FOR_TARGET"; then
8471   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8472 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8473 else
8474   echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6
8476 fi
8477
8478     fi
8479     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8480       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8481 set dummy ${ncn_progname}; ac_word=$2
8482 echo "$as_me:$LINENO: checking for $ac_word" >&5
8483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8484 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   if test -n "$NM_FOR_TARGET"; then
8488   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8492 do
8493   IFS=$as_save_IFS
8494   test -z "$as_dir" && as_dir=.
8495   for ac_exec_ext in '' $ac_executable_extensions; do
8496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499     break 2
8500   fi
8501 done
8502 done
8503
8504 fi
8505 fi
8506 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8507 if test -n "$NM_FOR_TARGET"; then
8508   echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8509 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8510 else
8511   echo "$as_me:$LINENO: result: no" >&5
8512 echo "${ECHO_T}no" >&6
8513 fi
8514
8515     fi
8516     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8517   done
8518 fi
8519
8520 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8521   set dummy nm
8522   if test $build = $target ; then
8523     NM_FOR_TARGET="$2"
8524   else
8525     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8526   fi
8527 fi
8528
8529 else
8530   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8531 fi
8532
8533
8534
8535
8536 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8537   if test -n "$with_build_time_tools"; then
8538     echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8539 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
8540     if test -x $with_build_time_tools/objdump; then
8541       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8542       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8543       echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8544 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8545     else
8546       echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6
8548     fi
8549   elif test $build != $host && test $have_gcc_for_target = yes; then
8550     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8551     test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8552     ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8553   fi
8554 fi
8555 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8556   # Extract the first word of "objdump", so it can be a program name with args.
8557 set dummy objdump; ac_word=$2
8558 echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8560 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   case $OBJDUMP_FOR_TARGET in
8564   [\\/]* | ?:[\\/]*)
8565   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8566   ;;
8567   *)
8568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $gcc_cv_tool_dirs
8570 do
8571   IFS=$as_save_IFS
8572   test -z "$as_dir" && as_dir=.
8573   for ac_exec_ext in '' $ac_executable_extensions; do
8574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577     break 2
8578   fi
8579 done
8580 done
8581
8582   ;;
8583 esac
8584 fi
8585 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8586
8587 if test -n "$OBJDUMP_FOR_TARGET"; then
8588   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8589 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8590 else
8591   echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6
8593 fi
8594
8595 fi
8596 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8597    if test -n "$with_build_time_tools"; then
8598   for ncn_progname in objdump; do
8599     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8600 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8601     if test -x $with_build_time_tools/${ncn_progname}; then
8602       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8603       echo "$as_me:$LINENO: result: yes" >&5
8604 echo "${ECHO_T}yes" >&6
8605       break
8606     else
8607       echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6
8609     fi
8610   done
8611 fi
8612
8613 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8614   for ncn_progname in objdump; do
8615     if test -n "$ncn_target_tool_prefix"; then
8616       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8617 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8618 echo "$as_me:$LINENO: checking for $ac_word" >&5
8619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623   if test -n "$OBJDUMP_FOR_TARGET"; then
8624   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8628 do
8629   IFS=$as_save_IFS
8630   test -z "$as_dir" && as_dir=.
8631   for ac_exec_ext in '' $ac_executable_extensions; do
8632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635     break 2
8636   fi
8637 done
8638 done
8639
8640 fi
8641 fi
8642 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8643 if test -n "$OBJDUMP_FOR_TARGET"; then
8644   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8645 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8646 else
8647   echo "$as_me:$LINENO: result: no" >&5
8648 echo "${ECHO_T}no" >&6
8649 fi
8650
8651     fi
8652     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8653       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_progname}; ac_word=$2
8655 echo "$as_me:$LINENO: checking for $ac_word" >&5
8656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   if test -n "$OBJDUMP_FOR_TARGET"; then
8661   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666   IFS=$as_save_IFS
8667   test -z "$as_dir" && as_dir=.
8668   for ac_exec_ext in '' $ac_executable_extensions; do
8669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672     break 2
8673   fi
8674 done
8675 done
8676
8677 fi
8678 fi
8679 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8680 if test -n "$OBJDUMP_FOR_TARGET"; then
8681   echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8682 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8683 else
8684   echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6
8686 fi
8687
8688     fi
8689     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8690   done
8691 fi
8692
8693 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8694   set dummy objdump
8695   if test $build = $target ; then
8696     OBJDUMP_FOR_TARGET="$2"
8697   else
8698     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8699   fi
8700 fi
8701
8702 else
8703   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8704 fi
8705
8706
8707
8708
8709 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8710   if test -n "$with_build_time_tools"; then
8711     echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8712 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8713     if test -x $with_build_time_tools/ranlib; then
8714       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8715       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8716       echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8717 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8718     else
8719       echo "$as_me:$LINENO: result: no" >&5
8720 echo "${ECHO_T}no" >&6
8721     fi
8722   elif test $build != $host && test $have_gcc_for_target = yes; then
8723     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8724     test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8725     ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8726   fi
8727 fi
8728 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8729   # Extract the first word of "ranlib", so it can be a program name with args.
8730 set dummy ranlib; ac_word=$2
8731 echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   case $RANLIB_FOR_TARGET in
8737   [\\/]* | ?:[\\/]*)
8738   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8739   ;;
8740   *)
8741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $gcc_cv_tool_dirs
8743 do
8744   IFS=$as_save_IFS
8745   test -z "$as_dir" && as_dir=.
8746   for ac_exec_ext in '' $ac_executable_extensions; do
8747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8750     break 2
8751   fi
8752 done
8753 done
8754
8755   ;;
8756 esac
8757 fi
8758 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8759
8760 if test -n "$RANLIB_FOR_TARGET"; then
8761   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8762 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8763 else
8764   echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8766 fi
8767
8768 fi
8769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8770    if test -n "$with_build_time_tools"; then
8771   for ncn_progname in ranlib; do
8772     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8773 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8774     if test -x $with_build_time_tools/${ncn_progname}; then
8775       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8776       echo "$as_me:$LINENO: result: yes" >&5
8777 echo "${ECHO_T}yes" >&6
8778       break
8779     else
8780       echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8782     fi
8783   done
8784 fi
8785
8786 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8787   for ncn_progname in ranlib; do
8788     if test -n "$ncn_target_tool_prefix"; then
8789       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8791 echo "$as_me:$LINENO: checking for $ac_word" >&5
8792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8793 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   if test -n "$RANLIB_FOR_TARGET"; then
8797   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804   for ac_exec_ext in '' $ac_executable_extensions; do
8805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811 done
8812
8813 fi
8814 fi
8815 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8816 if test -n "$RANLIB_FOR_TARGET"; then
8817   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8818 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8819 else
8820   echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6
8822 fi
8823
8824     fi
8825     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8826       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827 set dummy ${ncn_progname}; ac_word=$2
8828 echo "$as_me:$LINENO: checking for $ac_word" >&5
8829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8830 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   if test -n "$RANLIB_FOR_TARGET"; then
8834   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839   IFS=$as_save_IFS
8840   test -z "$as_dir" && as_dir=.
8841   for ac_exec_ext in '' $ac_executable_extensions; do
8842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845     break 2
8846   fi
8847 done
8848 done
8849
8850 fi
8851 fi
8852 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8853 if test -n "$RANLIB_FOR_TARGET"; then
8854   echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8855 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8856 else
8857   echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6
8859 fi
8860
8861     fi
8862     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8863   done
8864 fi
8865
8866 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8867   set dummy ranlib
8868   if test $build = $target ; then
8869     RANLIB_FOR_TARGET="$2"
8870   else
8871     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8872   fi
8873 fi
8874
8875 else
8876   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8877 fi
8878
8879
8880
8881
8882 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8883   if test -n "$with_build_time_tools"; then
8884     echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8885 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8886     if test -x $with_build_time_tools/strip; then
8887       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8888       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8889       echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8890 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8891     else
8892       echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8894     fi
8895   elif test $build != $host && test $have_gcc_for_target = yes; then
8896     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8897     test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8898     ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8899   fi
8900 fi
8901 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8902   # Extract the first word of "strip", so it can be a program name with args.
8903 set dummy strip; ac_word=$2
8904 echo "$as_me:$LINENO: checking for $ac_word" >&5
8905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   case $STRIP_FOR_TARGET in
8910   [\\/]* | ?:[\\/]*)
8911   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8912   ;;
8913   *)
8914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $gcc_cv_tool_dirs
8916 do
8917   IFS=$as_save_IFS
8918   test -z "$as_dir" && as_dir=.
8919   for ac_exec_ext in '' $ac_executable_extensions; do
8920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923     break 2
8924   fi
8925 done
8926 done
8927
8928   ;;
8929 esac
8930 fi
8931 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8932
8933 if test -n "$STRIP_FOR_TARGET"; then
8934   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8935 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8936 else
8937   echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8939 fi
8940
8941 fi
8942 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8943    if test -n "$with_build_time_tools"; then
8944   for ncn_progname in strip; do
8945     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8946 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8947     if test -x $with_build_time_tools/${ncn_progname}; then
8948       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8949       echo "$as_me:$LINENO: result: yes" >&5
8950 echo "${ECHO_T}yes" >&6
8951       break
8952     else
8953       echo "$as_me:$LINENO: result: no" >&5
8954 echo "${ECHO_T}no" >&6
8955     fi
8956   done
8957 fi
8958
8959 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8960   for ncn_progname in strip; do
8961     if test -n "$ncn_target_tool_prefix"; then
8962       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8964 echo "$as_me:$LINENO: checking for $ac_word" >&5
8965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8966 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   if test -n "$STRIP_FOR_TARGET"; then
8970   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977   for ac_exec_ext in '' $ac_executable_extensions; do
8978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984 done
8985
8986 fi
8987 fi
8988 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
8989 if test -n "$STRIP_FOR_TARGET"; then
8990   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8991 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
8992 else
8993   echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995 fi
8996
8997     fi
8998     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8999       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9000 set dummy ${ncn_progname}; ac_word=$2
9001 echo "$as_me:$LINENO: checking for $ac_word" >&5
9002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9003 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   if test -n "$STRIP_FOR_TARGET"; then
9007   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9008 else
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010 for as_dir in $PATH
9011 do
9012   IFS=$as_save_IFS
9013   test -z "$as_dir" && as_dir=.
9014   for ac_exec_ext in '' $ac_executable_extensions; do
9015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018     break 2
9019   fi
9020 done
9021 done
9022
9023 fi
9024 fi
9025 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9026 if test -n "$STRIP_FOR_TARGET"; then
9027   echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9028 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9029 else
9030   echo "$as_me:$LINENO: result: no" >&5
9031 echo "${ECHO_T}no" >&6
9032 fi
9033
9034     fi
9035     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9036   done
9037 fi
9038
9039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9040   set dummy strip
9041   if test $build = $target ; then
9042     STRIP_FOR_TARGET="$2"
9043   else
9044     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9045   fi
9046 fi
9047
9048 else
9049   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9050 fi
9051
9052
9053
9054
9055 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9056   if test -n "$with_build_time_tools"; then
9057     echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9058 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
9059     if test -x $with_build_time_tools/windres; then
9060       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9061       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9062       echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9063 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
9064     else
9065       echo "$as_me:$LINENO: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9067     fi
9068   elif test $build != $host && test $have_gcc_for_target = yes; then
9069     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9070     test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9071     ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9072   fi
9073 fi
9074 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9075   # Extract the first word of "windres", so it can be a program name with args.
9076 set dummy windres; ac_word=$2
9077 echo "$as_me:$LINENO: checking for $ac_word" >&5
9078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9079 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082   case $WINDRES_FOR_TARGET in
9083   [\\/]* | ?:[\\/]*)
9084   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9085   ;;
9086   *)
9087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $gcc_cv_tool_dirs
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092   for ac_exec_ext in '' $ac_executable_extensions; do
9093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099 done
9100
9101   ;;
9102 esac
9103 fi
9104 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9105
9106 if test -n "$WINDRES_FOR_TARGET"; then
9107   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9108 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9109 else
9110   echo "$as_me:$LINENO: result: no" >&5
9111 echo "${ECHO_T}no" >&6
9112 fi
9113
9114 fi
9115 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9116    if test -n "$with_build_time_tools"; then
9117   for ncn_progname in windres; do
9118     echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9119 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9120     if test -x $with_build_time_tools/${ncn_progname}; then
9121       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9122       echo "$as_me:$LINENO: result: yes" >&5
9123 echo "${ECHO_T}yes" >&6
9124       break
9125     else
9126       echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6
9128     fi
9129   done
9130 fi
9131
9132 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9133   for ncn_progname in windres; do
9134     if test -n "$ncn_target_tool_prefix"; then
9135       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9137 echo "$as_me:$LINENO: checking for $ac_word" >&5
9138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9139 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   if test -n "$WINDRES_FOR_TARGET"; then
9143   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9144 else
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9147 do
9148   IFS=$as_save_IFS
9149   test -z "$as_dir" && as_dir=.
9150   for ac_exec_ext in '' $ac_executable_extensions; do
9151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9152     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154     break 2
9155   fi
9156 done
9157 done
9158
9159 fi
9160 fi
9161 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9162 if test -n "$WINDRES_FOR_TARGET"; then
9163   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9164 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9165 else
9166   echo "$as_me:$LINENO: result: no" >&5
9167 echo "${ECHO_T}no" >&6
9168 fi
9169
9170     fi
9171     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9172       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9173 set dummy ${ncn_progname}; ac_word=$2
9174 echo "$as_me:$LINENO: checking for $ac_word" >&5
9175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9176 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179   if test -n "$WINDRES_FOR_TARGET"; then
9180   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9181 else
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9184 do
9185   IFS=$as_save_IFS
9186   test -z "$as_dir" && as_dir=.
9187   for ac_exec_ext in '' $ac_executable_extensions; do
9188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191     break 2
9192   fi
9193 done
9194 done
9195
9196 fi
9197 fi
9198 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9199 if test -n "$WINDRES_FOR_TARGET"; then
9200   echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9201 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9202 else
9203   echo "$as_me:$LINENO: result: no" >&5
9204 echo "${ECHO_T}no" >&6
9205 fi
9206
9207     fi
9208     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9209   done
9210 fi
9211
9212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9213   set dummy windres
9214   if test $build = $target ; then
9215     WINDRES_FOR_TARGET="$2"
9216   else
9217     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
9218   fi
9219 fi
9220
9221 else
9222   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9223 fi
9224
9225
9226 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9227
9228 echo "$as_me:$LINENO: checking where to find the target ar" >&5
9229 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
9230 if test "x${build}" != "x${host}" ; then
9231   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9232     # We already found the complete path
9233     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9234 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9235   else
9236     # Canadian cross, just use what we found
9237     echo "$as_me:$LINENO: result: pre-installed" >&5
9238 echo "${ECHO_T}pre-installed" >&6
9239   fi
9240 else
9241   ok=yes
9242   case " ${configdirs} " in
9243     *" binutils "*) ;;
9244     *) ok=no ;;
9245   esac
9246
9247   if test $ok = yes; then
9248     # An in-tree tool is available and we can use it
9249     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
9250     echo "$as_me:$LINENO: result: just compiled" >&5
9251 echo "${ECHO_T}just compiled" >&6
9252   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9253     # We already found the complete path
9254     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9255 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9256   elif test "x$target" = "x$host"; then
9257     # We can use an host tool
9258     AR_FOR_TARGET='$(AR)'
9259     echo "$as_me:$LINENO: result: host tool" >&5
9260 echo "${ECHO_T}host tool" >&6
9261   else
9262     # We need a cross tool
9263     echo "$as_me:$LINENO: result: pre-installed" >&5
9264 echo "${ECHO_T}pre-installed" >&6
9265   fi
9266 fi
9267
9268 echo "$as_me:$LINENO: checking where to find the target as" >&5
9269 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
9270 if test "x${build}" != "x${host}" ; then
9271   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9272     # We already found the complete path
9273     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9274 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9275   else
9276     # Canadian cross, just use what we found
9277     echo "$as_me:$LINENO: result: pre-installed" >&5
9278 echo "${ECHO_T}pre-installed" >&6
9279   fi
9280 else
9281   ok=yes
9282   case " ${configdirs} " in
9283     *" gas "*) ;;
9284     *) ok=no ;;
9285   esac
9286
9287   if test $ok = yes; then
9288     # An in-tree tool is available and we can use it
9289     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9290     echo "$as_me:$LINENO: result: just compiled" >&5
9291 echo "${ECHO_T}just compiled" >&6
9292   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9293     # We already found the complete path
9294     echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9295 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9296   elif test "x$target" = "x$host"; then
9297     # We can use an host tool
9298     AS_FOR_TARGET='$(AS)'
9299     echo "$as_me:$LINENO: result: host tool" >&5
9300 echo "${ECHO_T}host tool" >&6
9301   else
9302     # We need a cross tool
9303     echo "$as_me:$LINENO: result: pre-installed" >&5
9304 echo "${ECHO_T}pre-installed" >&6
9305   fi
9306 fi
9307
9308 echo "$as_me:$LINENO: checking where to find the target cc" >&5
9309 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
9310 if test "x${build}" != "x${host}" ; then
9311   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9312     # We already found the complete path
9313     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9314 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9315   else
9316     # Canadian cross, just use what we found
9317     echo "$as_me:$LINENO: result: pre-installed" >&5
9318 echo "${ECHO_T}pre-installed" >&6
9319   fi
9320 else
9321   ok=yes
9322   case " ${configdirs} " in
9323     *" gcc "*) ;;
9324     *) ok=no ;;
9325   esac
9326
9327   if test $ok = yes; then
9328     # An in-tree tool is available and we can use it
9329     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9330     echo "$as_me:$LINENO: result: just compiled" >&5
9331 echo "${ECHO_T}just compiled" >&6
9332   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9333     # We already found the complete path
9334     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9335 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9336   elif test "x$target" = "x$host"; then
9337     # We can use an host tool
9338     CC_FOR_TARGET='$(CC)'
9339     echo "$as_me:$LINENO: result: host tool" >&5
9340 echo "${ECHO_T}host tool" >&6
9341   else
9342     # We need a cross tool
9343     echo "$as_me:$LINENO: result: pre-installed" >&5
9344 echo "${ECHO_T}pre-installed" >&6
9345   fi
9346 fi
9347
9348 echo "$as_me:$LINENO: checking where to find the target c++" >&5
9349 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
9350 if test "x${build}" != "x${host}" ; then
9351   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9352     # We already found the complete path
9353     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9354 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9355   else
9356     # Canadian cross, just use what we found
9357     echo "$as_me:$LINENO: result: pre-installed" >&5
9358 echo "${ECHO_T}pre-installed" >&6
9359   fi
9360 else
9361   ok=yes
9362   case " ${configdirs} " in
9363     *" gcc "*) ;;
9364     *) ok=no ;;
9365   esac
9366   case ,${enable_languages}, in
9367     *,c++,*) ;;
9368     *) ok=no ;;
9369   esac
9370   if test $ok = yes; then
9371     # An in-tree tool is available and we can use it
9372     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'
9373     echo "$as_me:$LINENO: result: just compiled" >&5
9374 echo "${ECHO_T}just compiled" >&6
9375   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9376     # We already found the complete path
9377     echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9378 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9379   elif test "x$target" = "x$host"; then
9380     # We can use an host tool
9381     CXX_FOR_TARGET='$(CXX)'
9382     echo "$as_me:$LINENO: result: host tool" >&5
9383 echo "${ECHO_T}host tool" >&6
9384   else
9385     # We need a cross tool
9386     echo "$as_me:$LINENO: result: pre-installed" >&5
9387 echo "${ECHO_T}pre-installed" >&6
9388   fi
9389 fi
9390
9391 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9392 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
9393 if test "x${build}" != "x${host}" ; then
9394   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9395     # We already found the complete path
9396     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9397 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9398   else
9399     # Canadian cross, just use what we found
9400     echo "$as_me:$LINENO: result: pre-installed" >&5
9401 echo "${ECHO_T}pre-installed" >&6
9402   fi
9403 else
9404   ok=yes
9405   case " ${configdirs} " in
9406     *" gcc "*) ;;
9407     *) ok=no ;;
9408   esac
9409   case ,${enable_languages}, in
9410     *,c++,*) ;;
9411     *) ok=no ;;
9412   esac
9413   if test $ok = yes; then
9414     # An in-tree tool is available and we can use it
9415     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'
9416     echo "$as_me:$LINENO: result: just compiled" >&5
9417 echo "${ECHO_T}just compiled" >&6
9418   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9419     # We already found the complete path
9420     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9421 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9422   elif test "x$target" = "x$host"; then
9423     # We can use an host tool
9424     RAW_CXX_FOR_TARGET='$(CXX)'
9425     echo "$as_me:$LINENO: result: host tool" >&5
9426 echo "${ECHO_T}host tool" >&6
9427   else
9428     # We need a cross tool
9429     echo "$as_me:$LINENO: result: pre-installed" >&5
9430 echo "${ECHO_T}pre-installed" >&6
9431   fi
9432 fi
9433
9434 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9435 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
9436 if test "x${build}" != "x${host}" ; then
9437   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9438     # We already found the complete path
9439     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9440 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9441   else
9442     # Canadian cross, just use what we found
9443     echo "$as_me:$LINENO: result: pre-installed" >&5
9444 echo "${ECHO_T}pre-installed" >&6
9445   fi
9446 else
9447   ok=yes
9448   case " ${configdirs} " in
9449     *" binutils "*) ;;
9450     *) ok=no ;;
9451   esac
9452
9453   if test $ok = yes; then
9454     # An in-tree tool is available and we can use it
9455     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9456     echo "$as_me:$LINENO: result: just compiled" >&5
9457 echo "${ECHO_T}just compiled" >&6
9458   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9459     # We already found the complete path
9460     echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9461 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9462   elif test "x$target" = "x$host"; then
9463     # We can use an host tool
9464     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9465     echo "$as_me:$LINENO: result: host tool" >&5
9466 echo "${ECHO_T}host tool" >&6
9467   else
9468     # We need a cross tool
9469     echo "$as_me:$LINENO: result: pre-installed" >&5
9470 echo "${ECHO_T}pre-installed" >&6
9471   fi
9472 fi
9473
9474 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9475 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
9476 if test "x${build}" != "x${host}" ; then
9477   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9478     # We already found the complete path
9479     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9480 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9481   else
9482     # Canadian cross, just use what we found
9483     echo "$as_me:$LINENO: result: pre-installed" >&5
9484 echo "${ECHO_T}pre-installed" >&6
9485   fi
9486 else
9487   ok=yes
9488   case " ${configdirs} " in
9489     *" gcc "*) ;;
9490     *) ok=no ;;
9491   esac
9492
9493   if test $ok = yes; then
9494     # An in-tree tool is available and we can use it
9495     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9496     echo "$as_me:$LINENO: result: just compiled" >&5
9497 echo "${ECHO_T}just compiled" >&6
9498   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9499     # We already found the complete path
9500     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9501 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9502   elif test "x$target" = "x$host"; then
9503     # We can use an host tool
9504     GCC_FOR_TARGET='$()'
9505     echo "$as_me:$LINENO: result: host tool" >&5
9506 echo "${ECHO_T}host tool" >&6
9507   else
9508     # We need a cross tool
9509     echo "$as_me:$LINENO: result: pre-installed" >&5
9510 echo "${ECHO_T}pre-installed" >&6
9511   fi
9512 fi
9513
9514 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9515 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
9516 if test "x${build}" != "x${host}" ; then
9517   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9518     # We already found the complete path
9519     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9520 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9521   else
9522     # Canadian cross, just use what we found
9523     echo "$as_me:$LINENO: result: pre-installed" >&5
9524 echo "${ECHO_T}pre-installed" >&6
9525   fi
9526 else
9527   ok=yes
9528   case " ${configdirs} " in
9529     *" gcc "*) ;;
9530     *) ok=no ;;
9531   esac
9532   case ,${enable_languages}, in
9533     *,java,*) ;;
9534     *) ok=no ;;
9535   esac
9536   if test $ok = yes; then
9537     # An in-tree tool is available and we can use it
9538     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9539     echo "$as_me:$LINENO: result: just compiled" >&5
9540 echo "${ECHO_T}just compiled" >&6
9541   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9542     # We already found the complete path
9543     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9544 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9545   elif test "x$target" = "x$host"; then
9546     # We can use an host tool
9547     GCJ_FOR_TARGET='$(GCJ)'
9548     echo "$as_me:$LINENO: result: host tool" >&5
9549 echo "${ECHO_T}host tool" >&6
9550   else
9551     # We need a cross tool
9552     echo "$as_me:$LINENO: result: pre-installed" >&5
9553 echo "${ECHO_T}pre-installed" >&6
9554   fi
9555 fi
9556
9557 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9558 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9559 if test "x${build}" != "x${host}" ; then
9560   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9561     # We already found the complete path
9562     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9563 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9564   else
9565     # Canadian cross, just use what we found
9566     echo "$as_me:$LINENO: result: pre-installed" >&5
9567 echo "${ECHO_T}pre-installed" >&6
9568   fi
9569 else
9570   ok=yes
9571   case " ${configdirs} " in
9572     *" gcc "*) ;;
9573     *) ok=no ;;
9574   esac
9575   case ,${enable_languages}, in
9576     *,fortran,*) ;;
9577     *) ok=no ;;
9578   esac
9579   if test $ok = yes; then
9580     # An in-tree tool is available and we can use it
9581     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9582     echo "$as_me:$LINENO: result: just compiled" >&5
9583 echo "${ECHO_T}just compiled" >&6
9584   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9585     # We already found the complete path
9586     echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9587 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9588   elif test "x$target" = "x$host"; then
9589     # We can use an host tool
9590     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9591     echo "$as_me:$LINENO: result: host tool" >&5
9592 echo "${ECHO_T}host tool" >&6
9593   else
9594     # We need a cross tool
9595     echo "$as_me:$LINENO: result: pre-installed" >&5
9596 echo "${ECHO_T}pre-installed" >&6
9597   fi
9598 fi
9599
9600 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9601 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9602 if test "x${build}" != "x${host}" ; then
9603   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9604     # We already found the complete path
9605     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9606 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9607   else
9608     # Canadian cross, just use what we found
9609     echo "$as_me:$LINENO: result: pre-installed" >&5
9610 echo "${ECHO_T}pre-installed" >&6
9611   fi
9612 else
9613   ok=yes
9614   case " ${configdirs} " in
9615     *" ld "*) ;;
9616     *) ok=no ;;
9617   esac
9618
9619   if test $ok = yes; then
9620     # An in-tree tool is available and we can use it
9621     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9622     echo "$as_me:$LINENO: result: just compiled" >&5
9623 echo "${ECHO_T}just compiled" >&6
9624   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9625     # We already found the complete path
9626     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9627 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9628   elif test "x$target" = "x$host"; then
9629     # We can use an host tool
9630     LD_FOR_TARGET='$(LD)'
9631     echo "$as_me:$LINENO: result: host tool" >&5
9632 echo "${ECHO_T}host tool" >&6
9633   else
9634     # We need a cross tool
9635     echo "$as_me:$LINENO: result: pre-installed" >&5
9636 echo "${ECHO_T}pre-installed" >&6
9637   fi
9638 fi
9639
9640 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9641 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9642 if test "x${build}" != "x${host}" ; then
9643   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9644     # We already found the complete path
9645     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9646 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9647   else
9648     # Canadian cross, just use what we found
9649     echo "$as_me:$LINENO: result: pre-installed" >&5
9650 echo "${ECHO_T}pre-installed" >&6
9651   fi
9652 else
9653   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9654     # We already found the complete path
9655     echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9656 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9657   elif test "x$target" = "x$host"; then
9658     # We can use an host tool
9659     LIPO_FOR_TARGET='$(LIPO)'
9660     echo "$as_me:$LINENO: result: host tool" >&5
9661 echo "${ECHO_T}host tool" >&6
9662   else
9663     # We need a cross tool
9664     echo "$as_me:$LINENO: result: pre-installed" >&5
9665 echo "${ECHO_T}pre-installed" >&6
9666   fi
9667 fi
9668
9669 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9670 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9671 if test "x${build}" != "x${host}" ; then
9672   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9673     # We already found the complete path
9674     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9675 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9676   else
9677     # Canadian cross, just use what we found
9678     echo "$as_me:$LINENO: result: pre-installed" >&5
9679 echo "${ECHO_T}pre-installed" >&6
9680   fi
9681 else
9682   ok=yes
9683   case " ${configdirs} " in
9684     *" binutils "*) ;;
9685     *) ok=no ;;
9686   esac
9687
9688   if test $ok = yes; then
9689     # An in-tree tool is available and we can use it
9690     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9691     echo "$as_me:$LINENO: result: just compiled" >&5
9692 echo "${ECHO_T}just compiled" >&6
9693   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9694     # We already found the complete path
9695     echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9696 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9697   elif test "x$target" = "x$host"; then
9698     # We can use an host tool
9699     NM_FOR_TARGET='$(NM)'
9700     echo "$as_me:$LINENO: result: host tool" >&5
9701 echo "${ECHO_T}host tool" >&6
9702   else
9703     # We need a cross tool
9704     echo "$as_me:$LINENO: result: pre-installed" >&5
9705 echo "${ECHO_T}pre-installed" >&6
9706   fi
9707 fi
9708
9709 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9710 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9711 if test "x${build}" != "x${host}" ; then
9712   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9713     # We already found the complete path
9714     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9715 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9716   else
9717     # Canadian cross, just use what we found
9718     echo "$as_me:$LINENO: result: pre-installed" >&5
9719 echo "${ECHO_T}pre-installed" >&6
9720   fi
9721 else
9722   ok=yes
9723   case " ${configdirs} " in
9724     *" binutils "*) ;;
9725     *) ok=no ;;
9726   esac
9727
9728   if test $ok = yes; then
9729     # An in-tree tool is available and we can use it
9730     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9731     echo "$as_me:$LINENO: result: just compiled" >&5
9732 echo "${ECHO_T}just compiled" >&6
9733   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9734     # We already found the complete path
9735     echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9736 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9737   elif test "x$target" = "x$host"; then
9738     # We can use an host tool
9739     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9740     echo "$as_me:$LINENO: result: host tool" >&5
9741 echo "${ECHO_T}host tool" >&6
9742   else
9743     # We need a cross tool
9744     echo "$as_me:$LINENO: result: pre-installed" >&5
9745 echo "${ECHO_T}pre-installed" >&6
9746   fi
9747 fi
9748
9749 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9750 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9751 if test "x${build}" != "x${host}" ; then
9752   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9753     # We already found the complete path
9754     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9755 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9756   else
9757     # Canadian cross, just use what we found
9758     echo "$as_me:$LINENO: result: pre-installed" >&5
9759 echo "${ECHO_T}pre-installed" >&6
9760   fi
9761 else
9762   ok=yes
9763   case " ${configdirs} " in
9764     *" binutils "*) ;;
9765     *) ok=no ;;
9766   esac
9767
9768   if test $ok = yes; then
9769     # An in-tree tool is available and we can use it
9770     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9771     echo "$as_me:$LINENO: result: just compiled" >&5
9772 echo "${ECHO_T}just compiled" >&6
9773   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9774     # We already found the complete path
9775     echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9776 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9777   elif test "x$target" = "x$host"; then
9778     # We can use an host tool
9779     RANLIB_FOR_TARGET='$(RANLIB)'
9780     echo "$as_me:$LINENO: result: host tool" >&5
9781 echo "${ECHO_T}host tool" >&6
9782   else
9783     # We need a cross tool
9784     echo "$as_me:$LINENO: result: pre-installed" >&5
9785 echo "${ECHO_T}pre-installed" >&6
9786   fi
9787 fi
9788
9789 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9790 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9791 if test "x${build}" != "x${host}" ; then
9792   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9793     # We already found the complete path
9794     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9795 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9796   else
9797     # Canadian cross, just use what we found
9798     echo "$as_me:$LINENO: result: pre-installed" >&5
9799 echo "${ECHO_T}pre-installed" >&6
9800   fi
9801 else
9802   ok=yes
9803   case " ${configdirs} " in
9804     *" binutils "*) ;;
9805     *) ok=no ;;
9806   esac
9807
9808   if test $ok = yes; then
9809     # An in-tree tool is available and we can use it
9810     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9811     echo "$as_me:$LINENO: result: just compiled" >&5
9812 echo "${ECHO_T}just compiled" >&6
9813   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9814     # We already found the complete path
9815     echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9816 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9817   elif test "x$target" = "x$host"; then
9818     # We can use an host tool
9819     STRIP_FOR_TARGET='$(STRIP)'
9820     echo "$as_me:$LINENO: result: host tool" >&5
9821 echo "${ECHO_T}host tool" >&6
9822   else
9823     # We need a cross tool
9824     echo "$as_me:$LINENO: result: pre-installed" >&5
9825 echo "${ECHO_T}pre-installed" >&6
9826   fi
9827 fi
9828
9829 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9830 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9831 if test "x${build}" != "x${host}" ; then
9832   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9833     # We already found the complete path
9834     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9835 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9836   else
9837     # Canadian cross, just use what we found
9838     echo "$as_me:$LINENO: result: pre-installed" >&5
9839 echo "${ECHO_T}pre-installed" >&6
9840   fi
9841 else
9842   ok=yes
9843   case " ${configdirs} " in
9844     *" binutils "*) ;;
9845     *) ok=no ;;
9846   esac
9847
9848   if test $ok = yes; then
9849     # An in-tree tool is available and we can use it
9850     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9851     echo "$as_me:$LINENO: result: just compiled" >&5
9852 echo "${ECHO_T}just compiled" >&6
9853   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9854     # We already found the complete path
9855     echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9856 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9857   elif test "x$target" = "x$host"; then
9858     # We can use an host tool
9859     WINDRES_FOR_TARGET='$(WINDRES)'
9860     echo "$as_me:$LINENO: result: host tool" >&5
9861 echo "${ECHO_T}host tool" >&6
9862   else
9863     # We need a cross tool
9864     echo "$as_me:$LINENO: result: pre-installed" >&5
9865 echo "${ECHO_T}pre-installed" >&6
9866   fi
9867 fi
9868
9869
9870
9871
9872
9873 # Certain tools may need extra flags.
9874 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9875 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9876 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9877
9878 # When building target libraries, except in a Canadian cross, we use
9879 # the same toolchain as the compiler we just built.
9880 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9881 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9882 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9883 if test $host = $build; then
9884   case " $configdirs " in
9885     *" gcc "*)
9886       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9887       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9888       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9889       ;;
9890   esac
9891 fi
9892
9893
9894
9895
9896
9897 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9898 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9899 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9900 if test "${enable_maintainer_mode+set}" = set; then
9901   enableval="$enable_maintainer_mode"
9902   USE_MAINTAINER_MODE=$enableval
9903 else
9904   USE_MAINTAINER_MODE=no
9905 fi;
9906 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9907 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9908
9909
9910 if test "$USE_MAINTAINER_MODE" = yes; then
9911   MAINTAINER_MODE_TRUE=
9912   MAINTAINER_MODE_FALSE='#'
9913 else
9914   MAINTAINER_MODE_TRUE='#'
9915   MAINTAINER_MODE_FALSE=
9916 fi
9917 MAINT=$MAINTAINER_MODE_TRUE
9918
9919 # ---------------------
9920 # GCC bootstrap support
9921 # ---------------------
9922
9923 # Stage specific cflags for build.
9924 stage1_cflags="-g"
9925 case $build in
9926   vax-*-*)
9927     case ${GCC} in
9928       yes) stage1_cflags="-g -Wa,-J" ;;
9929       *) stage1_cflags="-g -J" ;;
9930     esac ;;
9931 esac
9932
9933 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9934 if test "$GCC" = yes; then
9935   saved_CFLAGS="$CFLAGS"
9936
9937   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9938   CFLAGS="$CFLAGS -fkeep-inline-functions"
9939   echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9940 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9941   cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h.  */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h.  */
9947
9948 int
9949 main ()
9950 {
9951
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958   (eval $ac_compile) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest.$ac_objext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   echo "$as_me:$LINENO: result: yes" >&5
9979 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988
9989   CFLAGS="$saved_CFLAGS"
9990 fi
9991
9992
9993
9994 # Enable --enable-checking in stage1 of the compiler.
9995 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9996 if test "${enable_stage1_checking+set}" = set; then
9997   enableval="$enable_stage1_checking"
9998   stage1_checking=--enable-checking=${enable_stage1_checking}
9999 else
10000   if test "x$enable_checking" = xno; then
10001   stage1_checking=--enable-checking
10002 else
10003   stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10004 fi
10005 fi;
10006
10007
10008 # Enable -Werror in bootstrap stage2 and later.
10009 # Check whether --enable-werror or --disable-werror was given.
10010 if test "${enable_werror+set}" = set; then
10011   enableval="$enable_werror"
10012
10013 else
10014   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
10015   enable_werror=yes
10016 else
10017   enable_werror=no
10018 fi
10019 fi;
10020 case ${enable_werror} in
10021   yes) stage2_werror_flag="--enable-werror-always" ;;
10022   *) stage2_werror_flag="" ;;
10023 esac
10024
10025
10026 # Flags needed to enable html installing and building
10027
10028 # Check whether --with-datarootdir or --without-datarootdir was given.
10029 if test "${with_datarootdir+set}" = set; then
10030   withval="$with_datarootdir"
10031   datarootdir="\${prefix}/${withval}"
10032 else
10033   datarootdir="\${prefix}/share"
10034 fi;
10035
10036
10037 # Check whether --with-docdir or --without-docdir was given.
10038 if test "${with_docdir+set}" = set; then
10039   withval="$with_docdir"
10040   docdir="\${prefix}/${withval}"
10041 else
10042   docdir="\${datarootdir}/doc"
10043 fi;
10044
10045
10046 # Check whether --with-htmldir or --without-htmldir was given.
10047 if test "${with_htmldir+set}" = set; then
10048   withval="$with_htmldir"
10049   htmldir="\${prefix}/${withval}"
10050 else
10051   htmldir="\${docdir}"
10052 fi;
10053
10054
10055
10056
10057
10058           ac_config_files="$ac_config_files Makefile"
10059 cat >confcache <<\_ACEOF
10060 # This file is a shell script that caches the results of configure
10061 # tests run on this system so they can be shared between configure
10062 # scripts and configure runs, see configure's option --config-cache.
10063 # It is not useful on other systems.  If it contains results you don't
10064 # want to keep, you may remove or edit it.
10065 #
10066 # config.status only pays attention to the cache file if you give it
10067 # the --recheck option to rerun configure.
10068 #
10069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10071 # following values.
10072
10073 _ACEOF
10074
10075 # The following way of writing the cache mishandles newlines in values,
10076 # but we know of no workaround that is simple, portable, and efficient.
10077 # So, don't put newlines in cache variables' values.
10078 # Ultrix sh set writes to stderr and can't be redirected directly,
10079 # and sets the high bit in the cache file unless we assign to the vars.
10080 {
10081   (set) 2>&1 |
10082     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10083     *ac_space=\ *)
10084       # `set' does not quote correctly, so add quotes (double-quote
10085       # substitution turns \\\\ into \\, and sed turns \\ into \).
10086       sed -n \
10087         "s/'/'\\\\''/g;
10088           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10089       ;;
10090     *)
10091       # `set' quotes correctly as required by POSIX, so do not add quotes.
10092       sed -n \
10093         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10094       ;;
10095     esac;
10096 } |
10097   sed '
10098      t clear
10099      : clear
10100      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10101      t end
10102      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10103      : end' >>confcache
10104 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10105   if test -w $cache_file; then
10106     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10107     cat confcache >$cache_file
10108   else
10109     echo "not updating unwritable cache $cache_file"
10110   fi
10111 fi
10112 rm -f confcache
10113
10114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10115 # Let make expand exec_prefix.
10116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10117
10118 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10119 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10120 # trailing colons and then remove the whole line if VPATH becomes empty
10121 # (actually we leave an empty line to preserve line numbers).
10122 if test "x$srcdir" = x.; then
10123   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10124 s/:*\$(srcdir):*/:/;
10125 s/:*\${srcdir}:*/:/;
10126 s/:*@srcdir@:*/:/;
10127 s/^\([^=]*=[     ]*\):*/\1/;
10128 s/:*$//;
10129 s/^[^=]*=[       ]*$//;
10130 }'
10131 fi
10132
10133 # Transform confdefs.h into DEFS.
10134 # Protect against shell expansion while executing Makefile rules.
10135 # Protect against Makefile macro expansion.
10136 #
10137 # If the first sed substitution is executed (which looks for macros that
10138 # take arguments), then we branch to the quote section.  Otherwise,
10139 # look for a macro that doesn't take arguments.
10140 cat >confdef2opt.sed <<\_ACEOF
10141 t clear
10142 : clear
10143 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
10144 t quote
10145 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
10146 t quote
10147 d
10148 : quote
10149 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
10150 s,\[,\\&,g
10151 s,\],\\&,g
10152 s,\$,$$,g
10153 p
10154 _ACEOF
10155 # We use echo to avoid assuming a particular line-breaking character.
10156 # The extra dot is to prevent the shell from consuming trailing
10157 # line-breaks from the sub-command output.  A line-break within
10158 # single-quotes doesn't work because, if this script is created in a
10159 # platform that uses two characters for line-breaks (e.g., DOS), tr
10160 # would break.
10161 ac_LF_and_DOT=`echo; echo .`
10162 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10163 rm -f confdef2opt.sed
10164
10165
10166 ac_libobjs=
10167 ac_ltlibobjs=
10168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10169   # 1. Remove the extension, and $U if already installed.
10170   ac_i=`echo "$ac_i" |
10171          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10172   # 2. Add them.
10173   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10174   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10175 done
10176 LIBOBJS=$ac_libobjs
10177
10178 LTLIBOBJS=$ac_ltlibobjs
10179
10180
10181
10182 : ${CONFIG_STATUS=./config.status}
10183 ac_clean_files_save=$ac_clean_files
10184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10185 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10186 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10187 cat >$CONFIG_STATUS <<_ACEOF
10188 #! $SHELL
10189 # Generated by $as_me.
10190 # Run this file to recreate the current configuration.
10191 # Compiler output produced by configure, useful for debugging
10192 # configure, is in config.log if it exists.
10193
10194 debug=false
10195 ac_cs_recheck=false
10196 ac_cs_silent=false
10197 SHELL=\${CONFIG_SHELL-$SHELL}
10198 _ACEOF
10199
10200 cat >>$CONFIG_STATUS <<\_ACEOF
10201 ## --------------------- ##
10202 ## M4sh Initialization.  ##
10203 ## --------------------- ##
10204
10205 # Be Bourne compatible
10206 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10207   emulate sh
10208   NULLCMD=:
10209   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10210   # is contrary to our usage.  Disable this feature.
10211   alias -g '${1+"$@"}'='"$@"'
10212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10213   set -o posix
10214 fi
10215 DUALCASE=1; export DUALCASE # for MKS sh
10216
10217 # Support unset when possible.
10218 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10219   as_unset=unset
10220 else
10221   as_unset=false
10222 fi
10223
10224
10225 # Work around bugs in pre-3.0 UWIN ksh.
10226 $as_unset ENV MAIL MAILPATH
10227 PS1='$ '
10228 PS2='> '
10229 PS4='+ '
10230
10231 # NLS nuisances.
10232 for as_var in \
10233   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10234   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10235   LC_TELEPHONE LC_TIME
10236 do
10237   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10238     eval $as_var=C; export $as_var
10239   else
10240     $as_unset $as_var
10241   fi
10242 done
10243
10244 # Required to use basename.
10245 if expr a : '\(a\)' >/dev/null 2>&1; then
10246   as_expr=expr
10247 else
10248   as_expr=false
10249 fi
10250
10251 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10252   as_basename=basename
10253 else
10254   as_basename=false
10255 fi
10256
10257
10258 # Name of the executable.
10259 as_me=`$as_basename "$0" ||
10260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10261          X"$0" : 'X\(//\)$' \| \
10262          X"$0" : 'X\(/\)$' \| \
10263          .     : '\(.\)' 2>/dev/null ||
10264 echo X/"$0" |
10265     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10266           /^X\/\(\/\/\)$/{ s//\1/; q; }
10267           /^X\/\(\/\).*/{ s//\1/; q; }
10268           s/.*/./; q'`
10269
10270
10271 # PATH needs CR, and LINENO needs CR and PATH.
10272 # Avoid depending upon Character Ranges.
10273 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10276 as_cr_digits='0123456789'
10277 as_cr_alnum=$as_cr_Letters$as_cr_digits
10278
10279 # The user is always right.
10280 if test "${PATH_SEPARATOR+set}" != set; then
10281   echo "#! /bin/sh" >conf$$.sh
10282   echo  "exit 0"   >>conf$$.sh
10283   chmod +x conf$$.sh
10284   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10285     PATH_SEPARATOR=';'
10286   else
10287     PATH_SEPARATOR=:
10288   fi
10289   rm -f conf$$.sh
10290 fi
10291
10292
10293   as_lineno_1=$LINENO
10294   as_lineno_2=$LINENO
10295   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10296   test "x$as_lineno_1" != "x$as_lineno_2" &&
10297   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10298   # Find who we are.  Look in the path if we contain no path at all
10299   # relative or not.
10300   case $0 in
10301     *[\\/]* ) as_myself=$0 ;;
10302     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10304 do
10305   IFS=$as_save_IFS
10306   test -z "$as_dir" && as_dir=.
10307   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10308 done
10309
10310        ;;
10311   esac
10312   # We did not find ourselves, most probably we were run as `sh COMMAND'
10313   # in which case we are not to be found in the path.
10314   if test "x$as_myself" = x; then
10315     as_myself=$0
10316   fi
10317   if test ! -f "$as_myself"; then
10318     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10319 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10320    { (exit 1); exit 1; }; }
10321   fi
10322   case $CONFIG_SHELL in
10323   '')
10324     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10326 do
10327   IFS=$as_save_IFS
10328   test -z "$as_dir" && as_dir=.
10329   for as_base in sh bash ksh sh5; do
10330          case $as_dir in
10331          /*)
10332            if ("$as_dir/$as_base" -c '
10333   as_lineno_1=$LINENO
10334   as_lineno_2=$LINENO
10335   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10336   test "x$as_lineno_1" != "x$as_lineno_2" &&
10337   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10338              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10339              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10340              CONFIG_SHELL=$as_dir/$as_base
10341              export CONFIG_SHELL
10342              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10343            fi;;
10344          esac
10345        done
10346 done
10347 ;;
10348   esac
10349
10350   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10351   # uniformly replaced by the line number.  The first 'sed' inserts a
10352   # line-number line before each line; the second 'sed' does the real
10353   # work.  The second script uses 'N' to pair each line-number line
10354   # with the numbered line, and appends trailing '-' during
10355   # substitution so that $LINENO is not a special case at line end.
10356   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10357   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10358   sed '=' <$as_myself |
10359     sed '
10360       N
10361       s,$,-,
10362       : loop
10363       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10364       t loop
10365       s,-$,,
10366       s,^['$as_cr_digits']*\n,,
10367     ' >$as_me.lineno &&
10368   chmod +x $as_me.lineno ||
10369     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10370 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10371    { (exit 1); exit 1; }; }
10372
10373   # Don't try to exec as it changes $[0], causing all sort of problems
10374   # (the dirname of $[0] is not the place where we might find the
10375   # original and so on.  Autoconf is especially sensible to this).
10376   . ./$as_me.lineno
10377   # Exit status is that of the last command.
10378   exit
10379 }
10380
10381
10382 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10383   *c*,-n*) ECHO_N= ECHO_C='
10384 ' ECHO_T='      ' ;;
10385   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10386   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10387 esac
10388
10389 if expr a : '\(a\)' >/dev/null 2>&1; then
10390   as_expr=expr
10391 else
10392   as_expr=false
10393 fi
10394
10395 rm -f conf$$ conf$$.exe conf$$.file
10396 echo >conf$$.file
10397 if ln -s conf$$.file conf$$ 2>/dev/null; then
10398   # We could just check for DJGPP; but this test a) works b) is more generic
10399   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10400   if test -f conf$$.exe; then
10401     # Don't use ln at all; we don't have any links
10402     as_ln_s='cp -p'
10403   else
10404     as_ln_s='ln -s'
10405   fi
10406 elif ln conf$$.file conf$$ 2>/dev/null; then
10407   as_ln_s=ln
10408 else
10409   as_ln_s='cp -p'
10410 fi
10411 rm -f conf$$ conf$$.exe conf$$.file
10412
10413 if mkdir -p . 2>/dev/null; then
10414   as_mkdir_p=:
10415 else
10416   test -d ./-p && rmdir ./-p
10417   as_mkdir_p=false
10418 fi
10419
10420 as_executable_p="test -f"
10421
10422 # Sed expression to map a string onto a valid CPP name.
10423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10424
10425 # Sed expression to map a string onto a valid variable name.
10426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10427
10428
10429 # IFS
10430 # We need space, tab and new line, in precisely that order.
10431 as_nl='
10432 '
10433 IFS="   $as_nl"
10434
10435 # CDPATH.
10436 $as_unset CDPATH
10437
10438 exec 6>&1
10439
10440 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10441 # report actual input values of CONFIG_FILES etc. instead of their
10442 # values after options handling.  Logging --version etc. is OK.
10443 exec 5>>config.log
10444 {
10445   echo
10446   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10447 ## Running $as_me. ##
10448 _ASBOX
10449 } >&5
10450 cat >&5 <<_CSEOF
10451
10452 This file was extended by $as_me, which was
10453 generated by GNU Autoconf 2.59.  Invocation command line was
10454
10455   CONFIG_FILES    = $CONFIG_FILES
10456   CONFIG_HEADERS  = $CONFIG_HEADERS
10457   CONFIG_LINKS    = $CONFIG_LINKS
10458   CONFIG_COMMANDS = $CONFIG_COMMANDS
10459   $ $0 $@
10460
10461 _CSEOF
10462 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10463 echo >&5
10464 _ACEOF
10465
10466 # Files that config.status was made for.
10467 if test -n "$ac_config_files"; then
10468   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10469 fi
10470
10471 if test -n "$ac_config_headers"; then
10472   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10473 fi
10474
10475 if test -n "$ac_config_links"; then
10476   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10477 fi
10478
10479 if test -n "$ac_config_commands"; then
10480   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10481 fi
10482
10483 cat >>$CONFIG_STATUS <<\_ACEOF
10484
10485 ac_cs_usage="\
10486 \`$as_me' instantiates files from templates according to the
10487 current configuration.
10488
10489 Usage: $0 [OPTIONS] [FILE]...
10490
10491   -h, --help       print this help, then exit
10492   -V, --version    print version number, then exit
10493   -q, --quiet      do not print progress messages
10494   -d, --debug      don't remove temporary files
10495       --recheck    update $as_me by reconfiguring in the same conditions
10496   --file=FILE[:TEMPLATE]
10497                    instantiate the configuration file FILE
10498
10499 Configuration files:
10500 $config_files
10501
10502 Report bugs to <bug-autoconf@gnu.org>."
10503 _ACEOF
10504
10505 cat >>$CONFIG_STATUS <<_ACEOF
10506 ac_cs_version="\\
10507 config.status
10508 configured by $0, generated by GNU Autoconf 2.59,
10509   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10510
10511 Copyright (C) 2003 Free Software Foundation, Inc.
10512 This config.status script is free software; the Free Software Foundation
10513 gives unlimited permission to copy, distribute and modify it."
10514 srcdir=$srcdir
10515 INSTALL="$INSTALL"
10516 _ACEOF
10517
10518 cat >>$CONFIG_STATUS <<\_ACEOF
10519 # If no file are specified by the user, then we need to provide default
10520 # value.  By we need to know if files were specified by the user.
10521 ac_need_defaults=:
10522 while test $# != 0
10523 do
10524   case $1 in
10525   --*=*)
10526     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10527     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10528     ac_shift=:
10529     ;;
10530   -*)
10531     ac_option=$1
10532     ac_optarg=$2
10533     ac_shift=shift
10534     ;;
10535   *) # This is not an option, so the user has probably given explicit
10536      # arguments.
10537      ac_option=$1
10538      ac_need_defaults=false;;
10539   esac
10540
10541   case $ac_option in
10542   # Handling of the options.
10543 _ACEOF
10544 cat >>$CONFIG_STATUS <<\_ACEOF
10545   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10546     ac_cs_recheck=: ;;
10547   --version | --vers* | -V )
10548     echo "$ac_cs_version"; exit 0 ;;
10549   --he | --h)
10550     # Conflict between --help and --header
10551     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10552 Try \`$0 --help' for more information." >&5
10553 echo "$as_me: error: ambiguous option: $1
10554 Try \`$0 --help' for more information." >&2;}
10555    { (exit 1); exit 1; }; };;
10556   --help | --hel | -h )
10557     echo "$ac_cs_usage"; exit 0 ;;
10558   --debug | --d* | -d )
10559     debug=: ;;
10560   --file | --fil | --fi | --f )
10561     $ac_shift
10562     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10563     ac_need_defaults=false;;
10564   --header | --heade | --head | --hea )
10565     $ac_shift
10566     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10567     ac_need_defaults=false;;
10568   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10569   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10570     ac_cs_silent=: ;;
10571
10572   # This is an error.
10573   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10574 Try \`$0 --help' for more information." >&5
10575 echo "$as_me: error: unrecognized option: $1
10576 Try \`$0 --help' for more information." >&2;}
10577    { (exit 1); exit 1; }; } ;;
10578
10579   *) ac_config_targets="$ac_config_targets $1" ;;
10580
10581   esac
10582   shift
10583 done
10584
10585 ac_configure_extra_args=
10586
10587 if $ac_cs_silent; then
10588   exec 6>/dev/null
10589   ac_configure_extra_args="$ac_configure_extra_args --silent"
10590 fi
10591
10592 _ACEOF
10593 cat >>$CONFIG_STATUS <<_ACEOF
10594 if \$ac_cs_recheck; then
10595   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10596   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10597 fi
10598
10599 _ACEOF
10600
10601
10602
10603
10604
10605 cat >>$CONFIG_STATUS <<\_ACEOF
10606 for ac_config_target in $ac_config_targets
10607 do
10608   case "$ac_config_target" in
10609   # Handling of arguments.
10610   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10611   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10613    { (exit 1); exit 1; }; };;
10614   esac
10615 done
10616
10617 # If the user did not use the arguments to specify the items to instantiate,
10618 # then the envvar interface is used.  Set only those that are not.
10619 # We use the long form for the default assignment because of an extremely
10620 # bizarre bug on SunOS 4.1.3.
10621 if $ac_need_defaults; then
10622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10623 fi
10624
10625 # Have a temporary directory for convenience.  Make it in the build tree
10626 # simply because there is no reason to put it here, and in addition,
10627 # creating and moving files from /tmp can sometimes cause problems.
10628 # Create a temporary directory, and hook for its removal unless debugging.
10629 $debug ||
10630 {
10631   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10632   trap '{ (exit 1); exit 1; }' 1 2 13 15
10633 }
10634
10635 # Create a (secure) tmp directory for tmp files.
10636
10637 {
10638   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10639   test -n "$tmp" && test -d "$tmp"
10640 }  ||
10641 {
10642   tmp=./confstat$$-$RANDOM
10643   (umask 077 && mkdir $tmp)
10644 } ||
10645 {
10646    echo "$me: cannot create a temporary directory in ." >&2
10647    { (exit 1); exit 1; }
10648 }
10649
10650 _ACEOF
10651
10652 cat >>$CONFIG_STATUS <<_ACEOF
10653
10654 #
10655 # CONFIG_FILES section.
10656 #
10657
10658 # No need to generate the scripts if there are no CONFIG_FILES.
10659 # This happens for instance when ./config.status config.h
10660 if test -n "\$CONFIG_FILES"; then
10661   # Protect against being on the right side of a sed subst in config.status.
10662   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10663    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10664 s,@SHELL@,$SHELL,;t t
10665 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10666 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10667 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10668 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10669 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10670 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10671 s,@exec_prefix@,$exec_prefix,;t t
10672 s,@prefix@,$prefix,;t t
10673 s,@program_transform_name@,$program_transform_name,;t t
10674 s,@bindir@,$bindir,;t t
10675 s,@sbindir@,$sbindir,;t t
10676 s,@libexecdir@,$libexecdir,;t t
10677 s,@datadir@,$datadir,;t t
10678 s,@sysconfdir@,$sysconfdir,;t t
10679 s,@sharedstatedir@,$sharedstatedir,;t t
10680 s,@localstatedir@,$localstatedir,;t t
10681 s,@libdir@,$libdir,;t t
10682 s,@includedir@,$includedir,;t t
10683 s,@oldincludedir@,$oldincludedir,;t t
10684 s,@infodir@,$infodir,;t t
10685 s,@mandir@,$mandir,;t t
10686 s,@build_alias@,$build_alias,;t t
10687 s,@host_alias@,$host_alias,;t t
10688 s,@target_alias@,$target_alias,;t t
10689 s,@DEFS@,$DEFS,;t t
10690 s,@ECHO_C@,$ECHO_C,;t t
10691 s,@ECHO_N@,$ECHO_N,;t t
10692 s,@ECHO_T@,$ECHO_T,;t t
10693 s,@LIBS@,$LIBS,;t t
10694 s,@build@,$build,;t t
10695 s,@build_cpu@,$build_cpu,;t t
10696 s,@build_vendor@,$build_vendor,;t t
10697 s,@build_os@,$build_os,;t t
10698 s,@build_noncanonical@,$build_noncanonical,;t t
10699 s,@host_noncanonical@,$host_noncanonical,;t t
10700 s,@target_noncanonical@,$target_noncanonical,;t t
10701 s,@host@,$host,;t t
10702 s,@host_cpu@,$host_cpu,;t t
10703 s,@host_vendor@,$host_vendor,;t t
10704 s,@host_os@,$host_os,;t t
10705 s,@target@,$target,;t t
10706 s,@target_cpu@,$target_cpu,;t t
10707 s,@target_vendor@,$target_vendor,;t t
10708 s,@target_os@,$target_os,;t t
10709 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10710 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10711 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10712 s,@LN@,$LN,;t t
10713 s,@LN_S@,$LN_S,;t t
10714 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10715 s,@build_libsubdir@,$build_libsubdir,;t t
10716 s,@build_subdir@,$build_subdir,;t t
10717 s,@host_subdir@,$host_subdir,;t t
10718 s,@target_subdir@,$target_subdir,;t t
10719 s,@CC@,$CC,;t t
10720 s,@CFLAGS@,$CFLAGS,;t t
10721 s,@LDFLAGS@,$LDFLAGS,;t t
10722 s,@CPPFLAGS@,$CPPFLAGS,;t t
10723 s,@ac_ct_CC@,$ac_ct_CC,;t t
10724 s,@EXEEXT@,$EXEEXT,;t t
10725 s,@OBJEXT@,$OBJEXT,;t t
10726 s,@CXX@,$CXX,;t t
10727 s,@CXXFLAGS@,$CXXFLAGS,;t t
10728 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10729 s,@GNATBIND@,$GNATBIND,;t t
10730 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10731 s,@do_compare@,$do_compare,;t t
10732 s,@gmplibs@,$gmplibs,;t t
10733 s,@gmpinc@,$gmpinc,;t t
10734 s,@stage1_languages@,$stage1_languages,;t t
10735 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10736 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10737 s,@tooldir@,$tooldir,;t t
10738 s,@build_tooldir@,$build_tooldir,;t t
10739 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10740 s,@GDB_TK@,$GDB_TK,;t t
10741 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10742 s,@build_configargs@,$build_configargs,;t t
10743 s,@build_configdirs@,$build_configdirs,;t t
10744 s,@host_configargs@,$host_configargs,;t t
10745 s,@configdirs@,$configdirs,;t t
10746 s,@target_configargs@,$target_configargs,;t t
10747 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10748 s,@config_shell@,$config_shell,;t t
10749 s,@YACC@,$YACC,;t t
10750 s,@BISON@,$BISON,;t t
10751 s,@M4@,$M4,;t t
10752 s,@LEX@,$LEX,;t t
10753 s,@FLEX@,$FLEX,;t t
10754 s,@MAKEINFO@,$MAKEINFO,;t t
10755 s,@EXPECT@,$EXPECT,;t t
10756 s,@RUNTEST@,$RUNTEST,;t t
10757 s,@AR@,$AR,;t t
10758 s,@AS@,$AS,;t t
10759 s,@DLLTOOL@,$DLLTOOL,;t t
10760 s,@LD@,$LD,;t t
10761 s,@LIPO@,$LIPO,;t t
10762 s,@NM@,$NM,;t t
10763 s,@RANLIB@,$RANLIB,;t t
10764 s,@STRIP@,$STRIP,;t t
10765 s,@WINDRES@,$WINDRES,;t t
10766 s,@OBJCOPY@,$OBJCOPY,;t t
10767 s,@OBJDUMP@,$OBJDUMP,;t t
10768 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10769 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10770 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10771 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10772 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10773 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10774 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10775 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10776 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10777 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10778 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10779 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10780 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10781 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10782 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10783 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10784 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10785 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10786 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10787 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10788 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10789 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10790 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10791 s,@MAINT@,$MAINT,;t t
10792 s,@stage1_cflags@,$stage1_cflags,;t t
10793 s,@stage1_checking@,$stage1_checking,;t t
10794 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10795 s,@datarootdir@,$datarootdir,;t t
10796 s,@docdir@,$docdir,;t t
10797 s,@htmldir@,$htmldir,;t t
10798 s,@LIBOBJS@,$LIBOBJS,;t t
10799 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10800 /@serialization_dependencies@/r $serialization_dependencies
10801 s,@serialization_dependencies@,,;t t
10802 /@host_makefile_frag@/r $host_makefile_frag
10803 s,@host_makefile_frag@,,;t t
10804 /@target_makefile_frag@/r $target_makefile_frag
10805 s,@target_makefile_frag@,,;t t
10806 /@alphaieee_frag@/r $alphaieee_frag
10807 s,@alphaieee_frag@,,;t t
10808 /@ospace_frag@/r $ospace_frag
10809 s,@ospace_frag@,,;t t
10810 CEOF
10811
10812 _ACEOF
10813
10814   cat >>$CONFIG_STATUS <<\_ACEOF
10815   # Split the substitutions into bite-sized pieces for seds with
10816   # small command number limits, like on Digital OSF/1 and HP-UX.
10817   ac_max_sed_lines=48
10818   ac_sed_frag=1 # Number of current file.
10819   ac_beg=1 # First line for current file.
10820   ac_end=$ac_max_sed_lines # Line after last line for current file.
10821   ac_more_lines=:
10822   ac_sed_cmds=
10823   while $ac_more_lines; do
10824     if test $ac_beg -gt 1; then
10825       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10826     else
10827       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10828     fi
10829     if test ! -s $tmp/subs.frag; then
10830       ac_more_lines=false
10831     else
10832       # The purpose of the label and of the branching condition is to
10833       # speed up the sed processing (if there are no `@' at all, there
10834       # is no need to browse any of the substitutions).
10835       # These are the two extra sed commands mentioned above.
10836       (echo ':t
10837   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10838       if test -z "$ac_sed_cmds"; then
10839         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10840       else
10841         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10842       fi
10843       ac_sed_frag=`expr $ac_sed_frag + 1`
10844       ac_beg=$ac_end
10845       ac_end=`expr $ac_end + $ac_max_sed_lines`
10846     fi
10847   done
10848   if test -z "$ac_sed_cmds"; then
10849     ac_sed_cmds=cat
10850   fi
10851 fi # test -n "$CONFIG_FILES"
10852
10853 _ACEOF
10854 cat >>$CONFIG_STATUS <<\_ACEOF
10855 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10856   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10857   case $ac_file in
10858   - | *:- | *:-:* ) # input from stdin
10859         cat >$tmp/stdin
10860         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10861         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10862   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10863         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10864   * )   ac_file_in=$ac_file.in ;;
10865   esac
10866
10867   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10868   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10870          X"$ac_file" : 'X\(//\)[^/]' \| \
10871          X"$ac_file" : 'X\(//\)$' \| \
10872          X"$ac_file" : 'X\(/\)' \| \
10873          .     : '\(.\)' 2>/dev/null ||
10874 echo X"$ac_file" |
10875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10877           /^X\(\/\/\)$/{ s//\1/; q; }
10878           /^X\(\/\).*/{ s//\1/; q; }
10879           s/.*/./; q'`
10880   { if $as_mkdir_p; then
10881     mkdir -p "$ac_dir"
10882   else
10883     as_dir="$ac_dir"
10884     as_dirs=
10885     while test ! -d "$as_dir"; do
10886       as_dirs="$as_dir $as_dirs"
10887       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10889          X"$as_dir" : 'X\(//\)[^/]' \| \
10890          X"$as_dir" : 'X\(//\)$' \| \
10891          X"$as_dir" : 'X\(/\)' \| \
10892          .     : '\(.\)' 2>/dev/null ||
10893 echo X"$as_dir" |
10894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10896           /^X\(\/\/\)$/{ s//\1/; q; }
10897           /^X\(\/\).*/{ s//\1/; q; }
10898           s/.*/./; q'`
10899     done
10900     test ! -n "$as_dirs" || mkdir $as_dirs
10901   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10903    { (exit 1); exit 1; }; }; }
10904
10905   ac_builddir=.
10906
10907 if test "$ac_dir" != .; then
10908   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10909   # A "../" for each directory in $ac_dir_suffix.
10910   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10911 else
10912   ac_dir_suffix= ac_top_builddir=
10913 fi
10914
10915 case $srcdir in
10916   .)  # No --srcdir option.  We are building in place.
10917     ac_srcdir=.
10918     if test -z "$ac_top_builddir"; then
10919        ac_top_srcdir=.
10920     else
10921        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10922     fi ;;
10923   [\\/]* | ?:[\\/]* )  # Absolute path.
10924     ac_srcdir=$srcdir$ac_dir_suffix;
10925     ac_top_srcdir=$srcdir ;;
10926   *) # Relative path.
10927     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10928     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10929 esac
10930
10931 # Do not use `cd foo && pwd` to compute absolute paths, because
10932 # the directories may not exist.
10933 case `pwd` in
10934 .) ac_abs_builddir="$ac_dir";;
10935 *)
10936   case "$ac_dir" in
10937   .) ac_abs_builddir=`pwd`;;
10938   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10939   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10940   esac;;
10941 esac
10942 case $ac_abs_builddir in
10943 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10944 *)
10945   case ${ac_top_builddir}. in
10946   .) ac_abs_top_builddir=$ac_abs_builddir;;
10947   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10948   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10949   esac;;
10950 esac
10951 case $ac_abs_builddir in
10952 .) ac_abs_srcdir=$ac_srcdir;;
10953 *)
10954   case $ac_srcdir in
10955   .) ac_abs_srcdir=$ac_abs_builddir;;
10956   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10957   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10958   esac;;
10959 esac
10960 case $ac_abs_builddir in
10961 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10962 *)
10963   case $ac_top_srcdir in
10964   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10965   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10966   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10967   esac;;
10968 esac
10969
10970
10971   case $INSTALL in
10972   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10973   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10974   esac
10975
10976   if test x"$ac_file" != x-; then
10977     { echo "$as_me:$LINENO: creating $ac_file" >&5
10978 echo "$as_me: creating $ac_file" >&6;}
10979     rm -f "$ac_file"
10980   fi
10981   # Let's still pretend it is `configure' which instantiates (i.e., don't
10982   # use $as_me), people would be surprised to read:
10983   #    /* config.h.  Generated by config.status.  */
10984   if test x"$ac_file" = x-; then
10985     configure_input=
10986   else
10987     configure_input="$ac_file.  "
10988   fi
10989   configure_input=$configure_input"Generated from `echo $ac_file_in |
10990                                      sed 's,.*/,,'` by configure."
10991
10992   # First look for the input files in the build tree, otherwise in the
10993   # src tree.
10994   ac_file_inputs=`IFS=:
10995     for f in $ac_file_in; do
10996       case $f in
10997       -) echo $tmp/stdin ;;
10998       [\\/$]*)
10999          # Absolute (can't be DOS-style, as IFS=:)
11000          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11001 echo "$as_me: error: cannot find input file: $f" >&2;}
11002    { (exit 1); exit 1; }; }
11003          echo "$f";;
11004       *) # Relative
11005          if test -f "$f"; then
11006            # Build tree
11007            echo "$f"
11008          elif test -f "$srcdir/$f"; then
11009            # Source tree
11010            echo "$srcdir/$f"
11011          else
11012            # /dev/null tree
11013            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11014 echo "$as_me: error: cannot find input file: $f" >&2;}
11015    { (exit 1); exit 1; }; }
11016          fi;;
11017       esac
11018     done` || { (exit 1); exit 1; }
11019 _ACEOF
11020 cat >>$CONFIG_STATUS <<_ACEOF
11021   sed "$ac_vpsub
11022 $extrasub
11023 _ACEOF
11024 cat >>$CONFIG_STATUS <<\_ACEOF
11025 :t
11026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11027 s,@configure_input@,$configure_input,;t t
11028 s,@srcdir@,$ac_srcdir,;t t
11029 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11030 s,@top_srcdir@,$ac_top_srcdir,;t t
11031 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11032 s,@builddir@,$ac_builddir,;t t
11033 s,@abs_builddir@,$ac_abs_builddir,;t t
11034 s,@top_builddir@,$ac_top_builddir,;t t
11035 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11036 s,@INSTALL@,$ac_INSTALL,;t t
11037 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11038   rm -f $tmp/stdin
11039   if test x"$ac_file" != x-; then
11040     mv $tmp/out $ac_file
11041   else
11042     cat $tmp/out
11043     rm -f $tmp/out
11044   fi
11045
11046 done
11047 _ACEOF
11048
11049 cat >>$CONFIG_STATUS <<\_ACEOF
11050
11051 { (exit 0); exit 0; }
11052 _ACEOF
11053 chmod +x $CONFIG_STATUS
11054 ac_clean_files=$ac_clean_files_save
11055
11056
11057 # configure is writing to config.log, and then calls config.status.
11058 # config.status does its own redirection, appending to config.log.
11059 # Unfortunately, on DOS this fails, as config.log is still kept open
11060 # by configure, so config.status won't be able to write to it; its
11061 # output is simply discarded.  So we exec the FD to /dev/null,
11062 # effectively closing config.log, so it can be properly (re)opened and
11063 # appended to by config.status.  When coming back to configure, we
11064 # need to make the FD available again.
11065 if test "$no_create" != yes; then
11066   ac_cs_success=:
11067   ac_config_status_args=
11068   test "$silent" = yes &&
11069     ac_config_status_args="$ac_config_status_args --quiet"
11070   exec 5>/dev/null
11071   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11072   exec 5>>config.log
11073   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11074   # would make configure fail if this is the last instruction.
11075   $ac_cs_success || { (exit 1); exit 1; }
11076 fi
11077