Makefile.def: Remove libjava.
[platform/upstream/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
682 AWK
683 SED
684 LN_S
685 LN
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_compressed_debug_sections
757 enable_libquadmath
758 enable_libquadmath_support
759 enable_libada
760 enable_libssp
761 enable_libstdcxx
762 enable_liboffloadmic
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_stage1_libs
776 with_stage1_ldflags
777 with_boot_libs
778 with_boot_ldflags
779 with_isl
780 with_isl_include
781 with_isl_lib
782 enable_isl_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 with_build_sysroot
788 with_debug_prefix_map
789 with_build_config
790 enable_vtable_verify
791 enable_serial_configure
792 with_build_time_tools
793 enable_maintainer_mode
794 enable_stage1_checking
795 enable_werror
796 enable_host_shared
797 '
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 build_configargs
810 host_configargs
811 target_configargs
812 AR
813 AS
814 DLLTOOL
815 LD
816 LIPO
817 NM
818 RANLIB
819 STRIP
820 WINDRES
821 WINDMC
822 OBJCOPY
823 OBJDUMP
824 READELF
825 CC_FOR_TARGET
826 CXX_FOR_TARGET
827 GCC_FOR_TARGET
828 GCJ_FOR_TARGET
829 GFORTRAN_FOR_TARGET
830 GOC_FOR_TARGET
831 AR_FOR_TARGET
832 AS_FOR_TARGET
833 DLLTOOL_FOR_TARGET
834 LD_FOR_TARGET
835 LIPO_FOR_TARGET
836 NM_FOR_TARGET
837 OBJCOPY_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *)    ac_optarg=yes ;;
908   esac
909
910   # Accept the important Cygnus configure options, so we can diagnose typos.
911
912   case $ac_dashdash$ac_option in
913   --)
914     ac_dashdash=yes ;;
915
916   -bindir | --bindir | --bindi | --bind | --bin | --bi)
917     ac_prev=bindir ;;
918   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919     bindir=$ac_optarg ;;
920
921   -build | --build | --buil | --bui | --bu)
922     ac_prev=build_alias ;;
923   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924     build_alias=$ac_optarg ;;
925
926   -cache-file | --cache-file | --cache-fil | --cache-fi \
927   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928     ac_prev=cache_file ;;
929   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931     cache_file=$ac_optarg ;;
932
933   --config-cache | -C)
934     cache_file=config.cache ;;
935
936   -datadir | --datadir | --datadi | --datad)
937     ac_prev=datadir ;;
938   -datadir=* | --datadir=* | --datadi=* | --datad=*)
939     datadir=$ac_optarg ;;
940
941   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942   | --dataroo | --dataro | --datar)
943     ac_prev=datarootdir ;;
944   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946     datarootdir=$ac_optarg ;;
947
948   -disable-* | --disable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=no ;;
963
964   -docdir | --docdir | --docdi | --doc | --do)
965     ac_prev=docdir ;;
966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967     docdir=$ac_optarg ;;
968
969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970     ac_prev=dvidir ;;
971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972     dvidir=$ac_optarg ;;
973
974   -enable-* | --enable-*)
975     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976     # Reject names that are not valid shell variable names.
977     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978       as_fn_error "invalid feature name: $ac_useropt"
979     ac_useropt_orig=$ac_useropt
980     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981     case $ac_user_opts in
982       *"
983 "enable_$ac_useropt"
984 "*) ;;
985       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986          ac_unrecognized_sep=', ';;
987     esac
988     eval enable_$ac_useropt=\$ac_optarg ;;
989
990   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992   | --exec | --exe | --ex)
993     ac_prev=exec_prefix ;;
994   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996   | --exec=* | --exe=* | --ex=*)
997     exec_prefix=$ac_optarg ;;
998
999   -gas | --gas | --ga | --g)
1000     # Obsolete; use --with-gas.
1001     with_gas=yes ;;
1002
1003   -help | --help | --hel | --he | -h)
1004     ac_init_help=long ;;
1005   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006     ac_init_help=recursive ;;
1007   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008     ac_init_help=short ;;
1009
1010   -host | --host | --hos | --ho)
1011     ac_prev=host_alias ;;
1012   -host=* | --host=* | --hos=* | --ho=*)
1013     host_alias=$ac_optarg ;;
1014
1015   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016     ac_prev=htmldir ;;
1017   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018   | --ht=*)
1019     htmldir=$ac_optarg ;;
1020
1021   -includedir | --includedir | --includedi | --included | --include \
1022   | --includ | --inclu | --incl | --inc)
1023     ac_prev=includedir ;;
1024   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025   | --includ=* | --inclu=* | --incl=* | --inc=*)
1026     includedir=$ac_optarg ;;
1027
1028   -infodir | --infodir | --infodi | --infod | --info | --inf)
1029     ac_prev=infodir ;;
1030   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031     infodir=$ac_optarg ;;
1032
1033   -libdir | --libdir | --libdi | --libd)
1034     ac_prev=libdir ;;
1035   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036     libdir=$ac_optarg ;;
1037
1038   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039   | --libexe | --libex | --libe)
1040     ac_prev=libexecdir ;;
1041   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042   | --libexe=* | --libex=* | --libe=*)
1043     libexecdir=$ac_optarg ;;
1044
1045   -localedir | --localedir | --localedi | --localed | --locale)
1046     ac_prev=localedir ;;
1047   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048     localedir=$ac_optarg ;;
1049
1050   -localstatedir | --localstatedir | --localstatedi | --localstated \
1051   | --localstate | --localstat | --localsta | --localst | --locals)
1052     ac_prev=localstatedir ;;
1053   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055     localstatedir=$ac_optarg ;;
1056
1057   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058     ac_prev=mandir ;;
1059   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060     mandir=$ac_optarg ;;
1061
1062   -nfp | --nfp | --nf)
1063     # Obsolete; use --without-fp.
1064     with_fp=no ;;
1065
1066   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067   | --no-cr | --no-c | -n)
1068     no_create=yes ;;
1069
1070   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072     no_recursion=yes ;;
1073
1074   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076   | --oldin | --oldi | --old | --ol | --o)
1077     ac_prev=oldincludedir ;;
1078   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081     oldincludedir=$ac_optarg ;;
1082
1083   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084     ac_prev=prefix ;;
1085   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086     prefix=$ac_optarg ;;
1087
1088   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089   | --program-pre | --program-pr | --program-p)
1090     ac_prev=program_prefix ;;
1091   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093     program_prefix=$ac_optarg ;;
1094
1095   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096   | --program-suf | --program-su | --program-s)
1097     ac_prev=program_suffix ;;
1098   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100     program_suffix=$ac_optarg ;;
1101
1102   -program-transform-name | --program-transform-name \
1103   | --program-transform-nam | --program-transform-na \
1104   | --program-transform-n | --program-transform- \
1105   | --program-transform | --program-transfor \
1106   | --program-transfo | --program-transf \
1107   | --program-trans | --program-tran \
1108   | --progr-tra | --program-tr | --program-t)
1109     ac_prev=program_transform_name ;;
1110   -program-transform-name=* | --program-transform-name=* \
1111   | --program-transform-nam=* | --program-transform-na=* \
1112   | --program-transform-n=* | --program-transform-=* \
1113   | --program-transform=* | --program-transfor=* \
1114   | --program-transfo=* | --program-transf=* \
1115   | --program-trans=* | --program-tran=* \
1116   | --progr-tra=* | --program-tr=* | --program-t=*)
1117     program_transform_name=$ac_optarg ;;
1118
1119   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120     ac_prev=pdfdir ;;
1121   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122     pdfdir=$ac_optarg ;;
1123
1124   -psdir | --psdir | --psdi | --psd | --ps)
1125     ac_prev=psdir ;;
1126   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127     psdir=$ac_optarg ;;
1128
1129   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130   | -silent | --silent | --silen | --sile | --sil)
1131     silent=yes ;;
1132
1133   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134     ac_prev=sbindir ;;
1135   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136   | --sbi=* | --sb=*)
1137     sbindir=$ac_optarg ;;
1138
1139   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141   | --sharedst | --shareds | --shared | --share | --shar \
1142   | --sha | --sh)
1143     ac_prev=sharedstatedir ;;
1144   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147   | --sha=* | --sh=*)
1148     sharedstatedir=$ac_optarg ;;
1149
1150   -site | --site | --sit)
1151     ac_prev=site ;;
1152   -site=* | --site=* | --sit=*)
1153     site=$ac_optarg ;;
1154
1155   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156     ac_prev=srcdir ;;
1157   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158     srcdir=$ac_optarg ;;
1159
1160   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161   | --syscon | --sysco | --sysc | --sys | --sy)
1162     ac_prev=sysconfdir ;;
1163   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165     sysconfdir=$ac_optarg ;;
1166
1167   -target | --target | --targe | --targ | --tar | --ta | --t)
1168     ac_prev=target_alias ;;
1169   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170     target_alias=$ac_optarg ;;
1171
1172   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173     verbose=yes ;;
1174
1175   -version | --version | --versio | --versi | --vers | -V)
1176     ac_init_version=: ;;
1177
1178   -with-* | --with-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error "invalid package name: $ac_useropt"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=\$ac_optarg ;;
1193
1194   -without-* | --without-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error "invalid package name: $ac_useropt"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=no ;;
1209
1210   --x)
1211     # Obsolete; use --with-x.
1212     with_x=yes ;;
1213
1214   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215   | --x-incl | --x-inc | --x-in | --x-i)
1216     ac_prev=x_includes ;;
1217   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219     x_includes=$ac_optarg ;;
1220
1221   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223     ac_prev=x_libraries ;;
1224   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226     x_libraries=$ac_optarg ;;
1227
1228   -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1230     ;;
1231
1232   *=*)
1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234     # Reject names that are not valid shell variable names.
1235     case $ac_envvar in #(
1236       '' | [0-9]* | *[!_$as_cr_alnum]* )
1237       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238     esac
1239     eval $ac_envvar=\$ac_optarg
1240     export $ac_envvar ;;
1241
1242   *)
1243     # FIXME: should be removed in autoconf 3.0.
1244     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248     ;;
1249
1250   esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255   as_fn_error "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259   case $enable_option_checking in
1260     no) ;;
1261     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263   esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   # Remove trailing slashes.
1274   case $ac_val in
1275     */ )
1276       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277       eval $ac_var=\$ac_val;;
1278   esac
1279   # Be sure to have absolute directory names.
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299     If a cross compiler is detected then cross compile mode will be used." >&2
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316   as_fn_error "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321   ac_srcdir_defaulted=yes
1322   # Try the directory containing this script, then the parent directory.
1323   ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325          X"$as_myself" : 'X\(//\)[^/]' \| \
1326          X"$as_myself" : 'X\(//\)$' \| \
1327          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)[^/].*/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\).*/{
1342             s//\1/
1343             q
1344           }
1345           s/.*/./; q'`
1346   srcdir=$ac_confdir
1347   if test ! -r "$srcdir/$ac_unique_file"; then
1348     srcdir=..
1349   fi
1350 else
1351   ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360         pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363   srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372   *" "*)
1373     as_fn_error "path to source, $srcdir, contains spaces"
1374     ;;
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR            user executables [EPREFIX/bin]
1427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR        program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR            object code libraries [EPREFIX/lib]
1433   --includedir=DIR        C header files [PREFIX/include]
1434   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR           info documentation [DATAROOTDIR/info]
1438   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR            man documentation [DATAROOTDIR/man]
1440   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1441   --htmldir=DIR           html documentation [DOCDIR]
1442   --dvidir=DIR            dvi documentation [DOCDIR]
1443   --pdfdir=DIR            pdf documentation [DOCDIR]
1444   --psdir=DIR             ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457   --target=TARGET   configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462
1463   cat <<\_ACEOF
1464
1465 Optional Features:
1466   --disable-option-checking  ignore unrecognized --enable/--with options
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-as-accelerator-for=ARG
1470                           build as offload target compiler. Specify offload
1471                           host triple by ARG
1472   --enable-offload-targets=LIST
1473                           enable offloading to devices from comma-separated
1474                           LIST of TARGET[=DIR]. Use optional path to find
1475                           offload target compiler during the build
1476   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1477   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1478   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1479                           Enable compressed debug sections for gas, gold or ld
1480                           by default
1481   --disable-libquadmath   do not build libquadmath directory
1482   --disable-libquadmath-support
1483                           disable libquadmath support for Fortran
1484   --enable-libada         build libada directory
1485   --enable-libssp         build libssp directory
1486   --disable-libstdcxx     do not build libstdc++-v3 directory
1487   --enable-liboffloadmic=ARG
1488                           build liboffloadmic [ARG={no,host,target}]
1489   --enable-bootstrap      enable bootstrapping [yes if native build]
1490   --disable-isl-version-check
1491                           disable check for isl version
1492   --enable-lto            enable link time optimization support
1493   --enable-linker-plugin-configure-flags=FLAGS
1494                           additional flags for configuring linker plugins
1495                           [none]
1496   --enable-linker-plugin-flags=FLAGS
1497                           additional flags for configuring and building linker
1498                           plugins [none]
1499   --enable-stage1-languages[=all]
1500                           choose additional languages to build during stage1.
1501                           Mostly useful for compiler development
1502   --enable-vtable-verify  Enable vtable verification feature
1503   --enable-serial-[{host,target,build}-]configure
1504                           force sequential configuration of sub-packages for
1505                           the host, target or build machine, or all
1506                           sub-packages
1507   --enable-maintainer-mode
1508                           enable make rules and dependencies not useful (and
1509                           sometimes confusing) to the casual installer
1510   --enable-stage1-checking[=all]
1511                           choose additional checking for stage1 of the
1512                           compiler
1513   --enable-werror         enable -Werror in bootstrap stage2 and later
1514   --enable-host-shared    build host code as shared libraries
1515
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1520   --with-system-zlib      use installed libz
1521   --with-mpc=PATH         specify prefix directory for installed MPC package.
1522                           Equivalent to --with-mpc-include=PATH/include plus
1523                           --with-mpc-lib=PATH/lib
1524   --with-mpc-include=PATH specify directory for installed MPC include files
1525   --with-mpc-lib=PATH     specify directory for the installed MPC library
1526   --with-mpfr-dir=PATH    this option has been REMOVED
1527   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1528                           Equivalent to --with-mpfr-include=PATH/include plus
1529                           --with-mpfr-lib=PATH/lib
1530   --with-mpfr-include=PATH
1531                           specify directory for installed MPFR include files
1532   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1533   --with-gmp-dir=PATH     this option has been REMOVED
1534   --with-gmp=PATH         specify prefix directory for the installed GMP
1535                           package. Equivalent to
1536                           --with-gmp-include=PATH/include plus
1537                           --with-gmp-lib=PATH/lib
1538   --with-gmp-include=PATH specify directory for installed GMP include files
1539   --with-gmp-lib=PATH     specify directory for the installed GMP library
1540   --with-stage1-libs=LIBS libraries for stage1
1541   --with-stage1-ldflags=FLAGS
1542                           linker flags for stage1
1543   --with-boot-libs=LIBS   libraries for stage2 and later
1544   --with-boot-ldflags=FLAGS
1545                           linker flags for stage2 and later
1546   --with-isl=PATH         Specify prefix directory for the installed isl
1547                           package. Equivalent to
1548                           --with-isl-include=PATH/include plus
1549                           --with-isl-lib=PATH/lib
1550   --with-isl-include=PATH Specify directory for installed isl include files
1551   --with-isl-lib=PATH     Specify the directory for the installed isl library
1552   --with-build-sysroot=SYSROOT
1553                           use sysroot as the system root during the build
1554   --with-debug-prefix-map='A=B C=D ...'
1555                           map A to B, C to D ... in debug information
1556   --with-build-config='NAME NAME2...'
1557                           use config/NAME.mk build configuration
1558   --with-build-time-tools=PATH
1559                           use given path to find target tools during the build
1560
1561 Some influential environment variables:
1562   CC          C compiler command
1563   CFLAGS      C compiler flags
1564   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1565               nonstandard directory <lib dir>
1566   LIBS        libraries to pass to the linker, e.g. -l<library>
1567   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568               you have headers in a nonstandard directory <include dir>
1569   CXX         C++ compiler command
1570   CXXFLAGS    C++ compiler flags
1571   build_configargs
1572               additional configure arguments for build directories
1573   host_configargs
1574               additional configure arguments for host directories
1575   target_configargs
1576               additional configure arguments for target directories
1577   AR          AR for the host
1578   AS          AS for the host
1579   DLLTOOL     DLLTOOL for the host
1580   LD          LD for the host
1581   LIPO        LIPO for the host
1582   NM          NM for the host
1583   RANLIB      RANLIB for the host
1584   STRIP       STRIP for the host
1585   WINDRES     WINDRES for the host
1586   WINDMC      WINDMC for the host
1587   OBJCOPY     OBJCOPY for the host
1588   OBJDUMP     OBJDUMP for the host
1589   READELF     READELF for the host
1590   CC_FOR_TARGET
1591               CC for the target
1592   CXX_FOR_TARGET
1593               CXX for the target
1594   GCC_FOR_TARGET
1595               GCC for the target
1596   GCJ_FOR_TARGET
1597               GCJ for the target
1598   GFORTRAN_FOR_TARGET
1599               GFORTRAN for the target
1600   GOC_FOR_TARGET
1601               GOC for the target
1602   AR_FOR_TARGET
1603               AR for the target
1604   AS_FOR_TARGET
1605               AS for the target
1606   DLLTOOL_FOR_TARGET
1607               DLLTOOL for the target
1608   LD_FOR_TARGET
1609               LD for the target
1610   LIPO_FOR_TARGET
1611               LIPO for the target
1612   NM_FOR_TARGET
1613               NM for the target
1614   OBJCOPY_FOR_TARGET
1615               OBJCOPY for the target
1616   OBJDUMP_FOR_TARGET
1617               OBJDUMP for the target
1618   RANLIB_FOR_TARGET
1619               RANLIB for the target
1620   READELF_FOR_TARGET
1621               READELF for the target
1622   STRIP_FOR_TARGET
1623               STRIP for the target
1624   WINDRES_FOR_TARGET
1625               WINDRES for the target
1626   WINDMC_FOR_TARGET
1627               WINDMC for the target
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638   # If there are subdirs, report their specific --help.
1639   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640     test -d "$ac_dir" ||
1641       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642       continue
1643     ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649   # A ".." for each directory in $ac_dir_suffix.
1650   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651   case $ac_top_builddir_sub in
1652   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654   esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662   .)  # We are building in place.
1663     ac_srcdir=.
1664     ac_top_srcdir=$ac_top_builddir_sub
1665     ac_abs_top_srcdir=$ac_pwd ;;
1666   [\\/]* | ?:[\\/]* )  # Absolute name.
1667     ac_srcdir=$srcdir$ac_dir_suffix;
1668     ac_top_srcdir=$srcdir
1669     ac_abs_top_srcdir=$srcdir ;;
1670   *) # Relative name.
1671     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672     ac_top_srcdir=$ac_top_build_prefix$srcdir
1673     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677     cd "$ac_dir" || { ac_status=$?; continue; }
1678     # Check for guested configure.
1679     if test -f "$ac_srcdir/configure.gnu"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682     elif test -f "$ac_srcdir/configure"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure" --help=recursive
1685     else
1686       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687     fi || ac_status=$?
1688     cd "$ac_pwd" || { ac_status=$?; break; }
1689   done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694   cat <<\_ACEOF
1695 configure
1696 generated by GNU Autoconf 2.64
1697
1698 Copyright (C) 2009 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702   exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   rm -f conftest.$ac_objext
1716   if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_compile") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } && {
1732          test -z "$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        } && test -s conftest.$ac_objext; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740         ac_retval=1
1741 fi
1742   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743   return $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   rm -f conftest.$ac_objext
1754   if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_compile") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && {
1770          test -z "$ac_cxx_werror_flag" ||
1771          test ! -s conftest.err
1772        } && test -s conftest.$ac_objext; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778         ac_retval=1
1779 fi
1780   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781   return $ac_retval
1782
1783 } # ac_fn_cxx_try_compile
1784
1785 # ac_fn_cxx_try_link LINENO
1786 # -------------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_link ()
1789 {
1790   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791   rm -f conftest.$ac_objext conftest$ac_exeext
1792   if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_link") 2>conftest.err
1800   ac_status=$?
1801   if test -s conftest.err; then
1802     grep -v '^ *+' conftest.err >conftest.er1
1803     cat conftest.er1 >&5
1804     mv -f conftest.er1 conftest.err
1805   fi
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; } && {
1808          test -z "$ac_cxx_werror_flag" ||
1809          test ! -s conftest.err
1810        } && test -s conftest$ac_exeext && {
1811          test "$cross_compiling" = yes ||
1812          $as_test_x conftest$ac_exeext
1813        }; then :
1814   ac_retval=0
1815 else
1816   $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819         ac_retval=1
1820 fi
1821   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823   # interfere with the next link command; also delete a directory that is
1824   # left behind by Apple's compiler.  We do this before executing the actions.
1825   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827   return $ac_retval
1828
1829 } # ac_fn_cxx_try_link
1830
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_link ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   rm -f conftest.$ac_objext conftest$ac_exeext
1838   if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_link") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && {
1854          test -z "$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        } && test -s conftest$ac_exeext && {
1857          test "$cross_compiling" = yes ||
1858          $as_test_x conftest$ac_exeext
1859        }; then :
1860   ac_retval=0
1861 else
1862   $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865         ac_retval=1
1866 fi
1867   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869   # interfere with the next link command; also delete a directory that is
1870   # left behind by Apple's compiler.  We do this before executing the actions.
1871   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873   return $ac_retval
1874
1875 } # ac_fn_c_try_link
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by $as_me, which was
1881 generated by GNU Autoconf 2.64.  Invocation command line was
1882
1883   $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1901
1902 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1903 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1906 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1907 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1908 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917     $as_echo "PATH: $as_dir"
1918   done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944   for ac_arg
1945   do
1946     case $ac_arg in
1947     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949     | -silent | --silent | --silen | --sile | --sil)
1950       continue ;;
1951     *\'*)
1952       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953     esac
1954     case $ac_pass in
1955     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956     2)
1957       as_fn_append ac_configure_args1 " '$ac_arg'"
1958       if test $ac_must_keep_next = true; then
1959         ac_must_keep_next=false # Got value, back to normal.
1960       else
1961         case $ac_arg in
1962           *=* | --config-cache | -C | -disable-* | --disable-* \
1963           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965           | -with-* | --with-* | -without-* | --without-* | --x)
1966             case "$ac_configure_args0 " in
1967               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968             esac
1969             ;;
1970           -* ) ac_must_keep_next=true ;;
1971         esac
1972       fi
1973       as_fn_append ac_configure_args " '$ac_arg'"
1974       ;;
1975     esac
1976   done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log.  We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987   # Save into config.log some information that might help in debugging.
1988   {
1989     echo
1990
1991     cat <<\_ASBOX
1992 ## ---------------- ##
1993 ## Cache variables. ##
1994 ## ---------------- ##
1995 _ASBOX
1996     echo
1997     # The following way of writing the cache mishandles newlines in values,
1998 (
1999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000     eval ac_val=\$$ac_var
2001     case $ac_val in #(
2002     *${as_nl}*)
2003       case $ac_var in #(
2004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006       esac
2007       case $ac_var in #(
2008       _ | IFS | as_nl) ;; #(
2009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010       *) { eval $ac_var=; unset $ac_var;} ;;
2011       esac ;;
2012     esac
2013   done
2014   (set) 2>&1 |
2015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016     *${as_nl}ac_space=\ *)
2017       sed -n \
2018         "s/'\''/'\''\\\\'\'''\''/g;
2019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020       ;; #(
2021     *)
2022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023       ;;
2024     esac |
2025     sort
2026 )
2027     echo
2028
2029     cat <<\_ASBOX
2030 ## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##
2033 _ASBOX
2034     echo
2035     for ac_var in $ac_subst_vars
2036     do
2037       eval ac_val=\$$ac_var
2038       case $ac_val in
2039       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040       esac
2041       $as_echo "$ac_var='\''$ac_val'\''"
2042     done | sort
2043     echo
2044
2045     if test -n "$ac_subst_files"; then
2046       cat <<\_ASBOX
2047 ## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##
2050 _ASBOX
2051       echo
2052       for ac_var in $ac_subst_files
2053       do
2054         eval ac_val=\$$ac_var
2055         case $ac_val in
2056         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057         esac
2058         $as_echo "$ac_var='\''$ac_val'\''"
2059       done | sort
2060       echo
2061     fi
2062
2063     if test -s confdefs.h; then
2064       cat <<\_ASBOX
2065 ## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##
2068 _ASBOX
2069       echo
2070       cat confdefs.h
2071       echo
2072     fi
2073     test "$ac_signal" != 0 &&
2074       $as_echo "$as_me: caught signal $ac_signal"
2075     $as_echo "$as_me: exit $exit_status"
2076   } >&5
2077   rm -f core *.core core.conftest.* &&
2078     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079     exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2085
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2088
2089 $as_echo "/* confdefs.h */" > confdefs.h
2090
2091 # Predefined preprocessor variables.
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2116
2117
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123   ac_site_file1=$CONFIG_SITE
2124 elif test "x$prefix" != xNONE; then
2125   ac_site_file1=$prefix/share/config.site
2126   ac_site_file2=$prefix/etc/config.site
2127 else
2128   ac_site_file1=$ac_default_prefix/share/config.site
2129   ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133   test "x$ac_site_file" = xNONE && continue
2134   if test -r "$ac_site_file"; then
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137     sed 's/^/| /' "$ac_site_file" >&5
2138     . "$ac_site_file"
2139   fi
2140 done
2141
2142 if test -r "$cache_file"; then
2143   # Some versions of bash will fail to source /dev/null (special
2144   # files actually), so we avoid doing that.
2145   if test -f "$cache_file"; then
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148     case $cache_file in
2149       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150       *)                      . "./$cache_file";;
2151     esac
2152   fi
2153 else
2154   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156   >$cache_file
2157 fi
2158
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164   eval ac_new_set=\$ac_env_${ac_var}_set
2165   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166   eval ac_new_val=\$ac_env_${ac_var}_value
2167   case $ac_old_set,$ac_new_set in
2168     set,)
2169       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171       ac_cache_corrupted=: ;;
2172     ,set)
2173       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175       ac_cache_corrupted=: ;;
2176     ,);;
2177     *)
2178       if test "x$ac_old_val" != "x$ac_new_val"; then
2179         # differences in whitespace do not lead to failure.
2180         ac_old_val_w=`echo x $ac_old_val`
2181         ac_new_val_w=`echo x $ac_new_val`
2182         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185           ac_cache_corrupted=:
2186         else
2187           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189           eval $ac_var=\$ac_old_val
2190         fi
2191         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2192 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2193         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2195       fi;;
2196   esac
2197   # Pass precious variables to config.status.
2198   if test "$ac_new_set" = set; then
2199     case $ac_new_val in
2200     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201     *) ac_arg=$ac_var=$ac_new_val ;;
2202     esac
2203     case " $ac_configure_args " in
2204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2205       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206     esac
2207   fi
2208 done
2209 if $ac_cache_corrupted; then
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234 progname=$0
2235 # if PWD already has a value, it is probably wrong.
2236 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2237
2238 # Export original configure arguments for use by sub-configures.
2239 # Quote arguments with shell meta charatcers.
2240 TOPLEVEL_CONFIGURE_ARGUMENTS=
2241 set -- "$progname" "$@"
2242 for ac_arg
2243 do
2244   case "$ac_arg" in
2245   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2246     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2247     # if the argument is of the form -foo=baz, quote the baz part only
2248     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2249   *) ;;
2250   esac
2251   # Add the quoted argument to the list.
2252   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2253 done
2254 if test "$silent" = yes; then
2255   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2256 fi
2257 # Remove the initial space we just introduced and, as these will be
2258 # expanded by make, quote '$'.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2260
2261
2262 # Find the build, host, and target systems.
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265   for ac_t in install-sh install.sh shtool; do
2266     if test -f "$ac_dir/$ac_t"; then
2267       ac_aux_dir=$ac_dir
2268       ac_install_sh="$ac_aux_dir/$ac_t -c"
2269       break 2
2270     fi
2271   done
2272 done
2273 if test -z "$ac_aux_dir"; then
2274   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2284
2285
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2291 $as_echo_n "checking build system type... " >&6; }
2292 if test "${ac_cv_build+set}" = set; then :
2293   $as_echo_n "(cached) " >&6
2294 else
2295   ac_build_alias=$build_alias
2296 test "x$ac_build_alias" = x &&
2297   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2298 test "x$ac_build_alias" = x &&
2299   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2305 $as_echo "$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2309 esac
2310 build=$ac_cv_build
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_build
2313 shift
2314 build_cpu=$1
2315 build_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 build_os=$*
2320 IFS=$ac_save_IFS
2321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322
2323
2324  case ${build_alias} in
2325   "") build_noncanonical=${build} ;;
2326   *) build_noncanonical=${build_alias} ;;
2327 esac
2328
2329
2330
2331  case ${host_alias} in
2332   "") host_noncanonical=${build_noncanonical} ;;
2333   *) host_noncanonical=${host_alias} ;;
2334 esac
2335
2336
2337
2338  case ${target_alias} in
2339   "") target_noncanonical=${host_noncanonical} ;;
2340   *) target_noncanonical=${target_alias} ;;
2341 esac
2342
2343
2344
2345
2346 test "$host_noncanonical" = "$target_noncanonical" &&
2347   test "$program_prefix$program_suffix$program_transform_name" = \
2348     NONENONEs,x,x, &&
2349   program_transform_name=s,y,y,
2350
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2352 $as_echo_n "checking host system type... " >&6; }
2353 if test "${ac_cv_host+set}" = set; then :
2354   $as_echo_n "(cached) " >&6
2355 else
2356   if test "x$host_alias" = x; then
2357   ac_cv_host=$ac_cv_build
2358 else
2359   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2360     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2361 fi
2362
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2365 $as_echo "$ac_cv_host" >&6; }
2366 case $ac_cv_host in
2367 *-*-*) ;;
2368 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2369 esac
2370 host=$ac_cv_host
2371 ac_save_IFS=$IFS; IFS='-'
2372 set x $ac_cv_host
2373 shift
2374 host_cpu=$1
2375 host_vendor=$2
2376 shift; shift
2377 # Remember, the first character of IFS is used to create $*,
2378 # except with old shells:
2379 host_os=$*
2380 IFS=$ac_save_IFS
2381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2385 $as_echo_n "checking target system type... " >&6; }
2386 if test "${ac_cv_target+set}" = set; then :
2387   $as_echo_n "(cached) " >&6
2388 else
2389   if test "x$target_alias" = x; then
2390   ac_cv_target=$ac_cv_host
2391 else
2392   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2393     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2394 fi
2395
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2398 $as_echo "$ac_cv_target" >&6; }
2399 case $ac_cv_target in
2400 *-*-*) ;;
2401 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2402 esac
2403 target=$ac_cv_target
2404 ac_save_IFS=$IFS; IFS='-'
2405 set x $ac_cv_target
2406 shift
2407 target_cpu=$1
2408 target_vendor=$2
2409 shift; shift
2410 # Remember, the first character of IFS is used to create $*,
2411 # except with old shells:
2412 target_os=$*
2413 IFS=$ac_save_IFS
2414 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415
2416
2417 # The aliases save the names the user supplied, while $host etc.
2418 # will get canonicalized.
2419 test -n "$target_alias" &&
2420   test "$program_prefix$program_suffix$program_transform_name" = \
2421     NONENONEs,x,x, &&
2422   program_prefix=${target_alias}-
2423
2424 test "$program_prefix" != NONE &&
2425   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2426 # Use a double $ so make ignores it.
2427 test "$program_suffix" != NONE &&
2428   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2429 # Double any \ or $.
2430 # By default was `s,x,x', remove it if useless.
2431 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2432 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2433
2434
2435
2436 # Get 'install' or 'install-sh' and its variants.
2437 # Find a good install program.  We prefer a C program (faster),
2438 # so one script is as good as another.  But avoid the broken or
2439 # incompatible versions:
2440 # SysV /etc/install, /usr/sbin/install
2441 # SunOS /usr/etc/install
2442 # IRIX /sbin/install
2443 # AIX /bin/install
2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448 # OS/2's system install, which has a completely different semantic
2449 # ./install, which can be erroneously created by make from ./install.sh.
2450 # Reject install programs that cannot install multiple files.
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2453 if test -z "$INSTALL"; then
2454 if test "${ac_cv_path_install+set}" = set; then :
2455   $as_echo_n "(cached) " >&6
2456 else
2457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462     # Account for people who put trailing slashes in PATH elements.
2463 case $as_dir/ in #((
2464   ./ | .// | /[cC]/* | \
2465   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467   /usr/ucb/* ) ;;
2468   *)
2469     # OSF1 and SCO ODT 3.0 have their own names for install.
2470     # Don't use installbsd from OSF since it installs stuff as root
2471     # by default.
2472     for ac_prog in ginstall scoinst install; do
2473       for ac_exec_ext in '' $ac_executable_extensions; do
2474         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2475           if test $ac_prog = install &&
2476             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477             # AIX install.  It has an incompatible calling convention.
2478             :
2479           elif test $ac_prog = install &&
2480             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481             # program-specific install script used by HP pwplus--don't use.
2482             :
2483           else
2484             rm -rf conftest.one conftest.two conftest.dir
2485             echo one > conftest.one
2486             echo two > conftest.two
2487             mkdir conftest.dir
2488             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489               test -s conftest.one && test -s conftest.two &&
2490               test -s conftest.dir/conftest.one &&
2491               test -s conftest.dir/conftest.two
2492             then
2493               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494               break 3
2495             fi
2496           fi
2497         fi
2498       done
2499     done
2500     ;;
2501 esac
2502
2503   done
2504 IFS=$as_save_IFS
2505
2506 rm -rf conftest.one conftest.two conftest.dir
2507
2508 fi
2509   if test "${ac_cv_path_install+set}" = set; then
2510     INSTALL=$ac_cv_path_install
2511   else
2512     # As a last resort, use the slow shell script.  Don't cache a
2513     # value for INSTALL within a source directory, because that will
2514     # break other packages using the cache if that directory is
2515     # removed, or if the value is a relative name.
2516     INSTALL=$ac_install_sh
2517   fi
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2520 $as_echo "$INSTALL" >&6; }
2521
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2531 $as_echo_n "checking whether ln works... " >&6; }
2532 if test "${acx_cv_prog_LN+set}" = set; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   rm -f conftestdata_t
2536 echo >conftestdata_f
2537 if ln conftestdata_f conftestdata_t 2>/dev/null
2538 then
2539   acx_cv_prog_LN=ln
2540 else
2541   acx_cv_prog_LN=no
2542 fi
2543 rm -f conftestdata_f conftestdata_t
2544
2545 fi
2546 if test $acx_cv_prog_LN = no; then
2547   LN="cp"
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2549 $as_echo "no, using $LN" >&6; }
2550 else
2551   LN="$acx_cv_prog_LN"
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2554 fi
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2557 $as_echo_n "checking whether ln -s works... " >&6; }
2558 LN_S=$as_ln_s
2559 if test "$LN_S" = "ln -s"; then
2560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562 else
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2564 $as_echo "no, using $LN_S" >&6; }
2565 fi
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2568 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2569 if test "${ac_cv_path_SED+set}" = set; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2573      for ac_i in 1 2 3 4 5 6 7; do
2574        ac_script="$ac_script$as_nl$ac_script"
2575      done
2576      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2577      { ac_script=; unset ac_script;}
2578      if test -z "$SED"; then
2579   ac_path_SED_found=false
2580   # Loop through the user's path and test for each of PROGNAME-LIST
2581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     for ac_prog in sed gsed; do
2587     for ac_exec_ext in '' $ac_executable_extensions; do
2588       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2589       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2590 # Check for GNU ac_path_SED and select it if it is found.
2591   # Check for GNU $ac_path_SED
2592 case `"$ac_path_SED" --version 2>&1` in
2593 *GNU*)
2594   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2595 *)
2596   ac_count=0
2597   $as_echo_n 0123456789 >"conftest.in"
2598   while :
2599   do
2600     cat "conftest.in" "conftest.in" >"conftest.tmp"
2601     mv "conftest.tmp" "conftest.in"
2602     cp "conftest.in" "conftest.nl"
2603     $as_echo '' >> "conftest.nl"
2604     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2605     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2606     as_fn_arith $ac_count + 1 && ac_count=$as_val
2607     if test $ac_count -gt ${ac_path_SED_max-0}; then
2608       # Best one so far, save it but keep looking for a better one
2609       ac_cv_path_SED="$ac_path_SED"
2610       ac_path_SED_max=$ac_count
2611     fi
2612     # 10*(2^10) chars as input seems more than enough
2613     test $ac_count -gt 10 && break
2614   done
2615   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2616 esac
2617
2618       $ac_path_SED_found && break 3
2619     done
2620   done
2621   done
2622 IFS=$as_save_IFS
2623   if test -z "$ac_cv_path_SED"; then
2624     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2625   fi
2626 else
2627   ac_cv_path_SED=$SED
2628 fi
2629
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2632 $as_echo "$ac_cv_path_SED" >&6; }
2633  SED="$ac_cv_path_SED"
2634   rm -f conftest.sed
2635
2636 for ac_prog in gawk mawk nawk awk
2637 do
2638   # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_AWK+set}" = set; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test -n "$AWK"; then
2646   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_AWK="$ac_prog"
2656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660   done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 AWK=$ac_cv_prog_AWK
2666 if test -n "$AWK"; then
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2668 $as_echo "$AWK" >&6; }
2669 else
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675   test -n "$AWK" && break
2676 done
2677
2678
2679 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2680
2681 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2682 # a relative path.
2683 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2684   INSTALL="${srcpwd}/install-sh -c"
2685 fi
2686
2687 # Set srcdir to "." if that's what it is.
2688 # This is important for multilib support.
2689 pwd=`${PWDCMD-pwd}`
2690 if test "${pwd}" = "${srcpwd}" ; then
2691   srcdir=.
2692 fi
2693
2694 topsrcdir=$srcpwd
2695
2696 extra_host_args=
2697
2698 ### To add a new directory to the tree, first choose whether it is a target
2699 ### or a host dependent tool.  Then put it into the appropriate list
2700 ### (library or tools, host or target), doing a dependency sort.
2701
2702 # Subdirs will be configured in the order listed in build_configdirs,
2703 # configdirs, or target_configdirs; see the serialization section below.
2704
2705 # Dependency sorting is only needed when *configuration* must be done in
2706 # a particular order.  In all cases a dependency should be specified in
2707 # the Makefile, whether or not it's implicitly specified here.
2708
2709 # Double entries in build_configdirs, configdirs, or target_configdirs may
2710 # cause circular dependencies and break everything horribly.
2711
2712 # these library is used by various programs built for the build
2713 # environment
2714 #
2715 build_libs="build-libiberty build-libcpp"
2716
2717 # these tools are built for the build environment
2718 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2719
2720 # these libraries are used by various programs built for the host environment
2721 #f
2722 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2723
2724 # these tools are built for the host environment
2725 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2726 # know that we are building the simulator.
2727 # binutils, gas and ld appear in that order because it makes sense to run
2728 # "make check" in that particular order.
2729 # If --enable-gold is used, "gold" may replace "ld".
2730 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2731
2732 # these libraries are built for the target environment, and are built after
2733 # the host libraries and the host tools (which may be a cross compiler)
2734 # Note that libiberty is not a target library.
2735 target_libraries="target-libgcc \
2736                 target-libbacktrace \
2737                 target-libgloss \
2738                 target-newlib \
2739                 target-libgomp \
2740                 target-libcilkrts \
2741                 target-liboffloadmic \
2742                 target-libatomic \
2743                 target-libitm \
2744                 target-libstdc++-v3 \
2745                 target-libsanitizer \
2746                 target-libvtv \
2747                 target-libmpx \
2748                 target-libssp \
2749                 target-libquadmath \
2750                 target-libgfortran \
2751                 target-libobjc \
2752                 target-libada \
2753                 target-libgo"
2754
2755 # these tools are built using the target libraries, and are intended to
2756 # run only in the target environment
2757 #
2758 # note: any program that *uses* libraries that are in the "target_libraries"
2759 # list belongs in this list.
2760 #
2761 target_tools="target-rda"
2762
2763 ################################################################################
2764
2765 ## All tools belong in one of the four categories, and are assigned above
2766 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2767 ## is important because configure will choke if they ever get through.
2768 ## ${configdirs} is directories we build using the host tools.
2769 ## ${target_configdirs} is directories we build using the target tools.
2770 configdirs=`echo ${host_libs} ${host_tools}`
2771 target_configdirs=`echo ${target_libraries} ${target_tools}`
2772 build_configdirs=`echo ${build_libs} ${build_tools}`
2773
2774
2775
2776 ################################################################################
2777
2778 srcname="gnu development package"
2779
2780 # This gets set non-empty for some net releases of packages.
2781 appdirs=""
2782
2783 # Define is_cross_compiler to save on calls to 'test'.
2784 is_cross_compiler=
2785 if test x"${host}" = x"${target}" ; then
2786   is_cross_compiler=no
2787 else
2788   is_cross_compiler=yes
2789 fi
2790
2791 # Find the build and target subdir names.
2792
2793 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2794 # have matching libraries, they should use host libraries: Makefile.tpl
2795 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2796 # However, they still use the build modules, because the corresponding
2797 # host modules (e.g. bison) are only built for the host when bootstrap
2798 # finishes. So:
2799 # - build_subdir is where we find build modules, and never changes.
2800 # - build_libsubdir is where we find build libraries, and can be overridden.
2801
2802 # Prefix 'build-' so this never conflicts with target_subdir.
2803 build_subdir="build-${build_noncanonical}"
2804
2805 # Check whether --with-build-libsubdir was given.
2806 if test "${with_build_libsubdir+set}" = set; then :
2807   withval=$with_build_libsubdir; build_libsubdir="$withval"
2808 else
2809   build_libsubdir="$build_subdir"
2810 fi
2811
2812 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2813 if ( test $srcdir = . && test -d gcc ) \
2814    || test -d $srcdir/../host-${host_noncanonical}; then
2815   host_subdir="host-${host_noncanonical}"
2816 else
2817   host_subdir=.
2818 fi
2819 # No prefix.
2820 target_subdir=${target_noncanonical}
2821
2822 # Be sure to cover against remnants of an in-tree build.
2823 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2824   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2825 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2826 fi
2827
2828 # Skipdirs are removed silently.
2829 skipdirs=
2830 # Noconfigdirs are removed loudly.
2831 noconfigdirs=""
2832
2833 use_gnu_ld=
2834 # Make sure we don't let GNU ld be added if we didn't want it.
2835 if test x$with_gnu_ld = xno ; then
2836   use_gnu_ld=no
2837   noconfigdirs="$noconfigdirs ld gold"
2838 fi
2839
2840 use_gnu_as=
2841 # Make sure we don't let GNU as be added if we didn't want it.
2842 if test x$with_gnu_as = xno ; then
2843   use_gnu_as=no
2844   noconfigdirs="$noconfigdirs gas"
2845 fi
2846
2847 use_included_zlib=
2848
2849 # Check whether --with-system-zlib was given.
2850 if test "${with_system_zlib+set}" = set; then :
2851   withval=$with_system_zlib;
2852 fi
2853
2854 # Make sure we don't let ZLIB be added if we didn't want it.
2855 if test x$with_system_zlib = xyes ; then
2856   use_included_zlib=no
2857   noconfigdirs="$noconfigdirs zlib"
2858 fi
2859
2860 # some tools are so dependent upon X11 that if we're not building with X,
2861 # it's not even worth trying to configure, much less build, that tool.
2862
2863 case ${with_x} in
2864   yes | "") ;; # the default value for this tree is that X11 is available
2865   no)
2866     skipdirs="${skipdirs} tk itcl libgui"
2867     # We won't be able to build gdbtk without X.
2868     enable_gdbtk=no
2869     ;;
2870   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2871 esac
2872
2873 # Some are only suitable for cross toolchains.
2874 # Remove these if host=target.
2875 cross_only="target-libgloss target-newlib target-opcodes"
2876
2877 case $is_cross_compiler in
2878   no) skipdirs="${skipdirs} ${cross_only}" ;;
2879 esac
2880
2881 # If both --with-headers and --with-libs are specified, default to
2882 # --without-newlib.
2883 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2884    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2885   if test x"${with_newlib}" = x ; then
2886     with_newlib=no
2887   fi
2888 fi
2889
2890 # Recognize --with-newlib/--without-newlib.
2891 case ${with_newlib} in
2892   no) skipdirs="${skipdirs} target-newlib" ;;
2893   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2894 esac
2895
2896 # Check whether --enable-as-accelerator-for was given.
2897 if test "${enable_as_accelerator_for+set}" = set; then :
2898   enableval=$enable_as_accelerator_for;
2899 fi
2900
2901
2902 # Check whether --enable-offload-targets was given.
2903 if test "${enable_offload_targets+set}" = set; then :
2904   enableval=$enable_offload_targets;
2905   if test x"$enable_offload_targets" = x; then
2906     as_fn_error "no offload targets specified" "$LINENO" 5
2907   fi
2908
2909 else
2910   enable_offload_targets=
2911 fi
2912
2913
2914 # Handle --enable-gold, --enable-ld.
2915 # --disable-gold [--enable-ld]
2916 #     Build only ld.  Default option.
2917 # --enable-gold [--enable-ld]
2918 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2919 #     as "ld.bfd" and "ld".
2920 # --enable-gold=default [--enable-ld]
2921 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2922 #     install ld as "ld.bfd".
2923 # --enable-gold[=default] --disable-ld
2924 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2925 # --enable-gold --enable-ld=default
2926 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2927 #     and ld.bfd).
2928 #     In other words, ld is default
2929 # --enable-gold=default --enable-ld=default
2930 #     Error.
2931
2932 default_ld=
2933 # Check whether --enable-gold was given.
2934 if test "${enable_gold+set}" = set; then :
2935   enableval=$enable_gold; ENABLE_GOLD=$enableval
2936 else
2937   ENABLE_GOLD=no
2938 fi
2939
2940 case "${ENABLE_GOLD}" in
2941   yes|default)
2942     # Check for ELF target.
2943     is_elf=no
2944     case "${target}" in
2945       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2946       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2947       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2948       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2949         case "${target}" in
2950           *-*-linux*aout* | *-*-linux*oldld*)
2951             ;;
2952           *)
2953             is_elf=yes
2954             ;;
2955         esac
2956     esac
2957
2958     if test "$is_elf" = "yes"; then
2959       # Check for target supported by gold.
2960       case "${target}" in
2961         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2962         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2963           configdirs="$configdirs gold"
2964           if test x${ENABLE_GOLD} = xdefault; then
2965             default_ld=gold
2966           fi
2967           ENABLE_GOLD=yes
2968           ;;
2969       esac
2970     fi
2971     ;;
2972   no)
2973     ;;
2974   *)
2975     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2976     ;;
2977 esac
2978
2979 # Check whether --enable-ld was given.
2980 if test "${enable_ld+set}" = set; then :
2981   enableval=$enable_ld; ENABLE_LD=$enableval
2982 else
2983   ENABLE_LD=yes
2984 fi
2985
2986
2987 case "${ENABLE_LD}" in
2988   default)
2989     if test x${default_ld} != x; then
2990       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2991     fi
2992     ;;
2993   yes)
2994     ;;
2995   no)
2996     if test x${ENABLE_GOLD} != xyes; then
2997       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2998 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2999     fi
3000     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3001     ;;
3002   *)
3003     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3004     ;;
3005 esac
3006
3007 # PR gas/19109
3008 # Decide the default method for compressing debug sections.
3009 # Provide a configure time option to override our default.
3010 # Check whether --enable-compressed_debug_sections was given.
3011 if test "${enable_compressed_debug_sections+set}" = set; then :
3012   enableval=$enable_compressed_debug_sections;
3013   if test x"$enable_compressed_debug_sections" = xyes; then
3014     as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3015   fi
3016
3017 else
3018   enable_compressed_debug_sections=
3019 fi
3020
3021
3022 # Configure extra directories which are host specific
3023
3024 case "${host}" in
3025   *-cygwin*)
3026     configdirs="$configdirs libtermcap" ;;
3027 esac
3028
3029 # A target can indicate whether a language isn't supported for some reason.
3030 # Only spaces may be used in this macro; not newlines or tabs.
3031 unsupported_languages=
3032
3033 # Remove more programs from consideration, based on the host or
3034 # target this usually means that a port of the program doesn't
3035 # exist yet.
3036
3037 case "${host}" in
3038   i[3456789]86-*-msdosdjgpp*)
3039     noconfigdirs="$noconfigdirs tcl tk itcl"
3040     ;;
3041 esac
3042
3043
3044 # Check whether --enable-libquadmath was given.
3045 if test "${enable_libquadmath+set}" = set; then :
3046   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3047 else
3048   ENABLE_LIBQUADMATH=yes
3049 fi
3050
3051 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3052   noconfigdirs="$noconfigdirs target-libquadmath"
3053 fi
3054
3055
3056 # Check whether --enable-libquadmath-support was given.
3057 if test "${enable_libquadmath_support+set}" = set; then :
3058   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3059 else
3060   ENABLE_LIBQUADMATH_SUPPORT=yes
3061 fi
3062
3063 enable_libquadmath_support=
3064 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3065   enable_libquadmath_support=no
3066 fi
3067
3068
3069 # Check whether --enable-libada was given.
3070 if test "${enable_libada+set}" = set; then :
3071   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3072 else
3073   ENABLE_LIBADA=yes
3074 fi
3075
3076 if test "${ENABLE_LIBADA}" != "yes" ; then
3077   noconfigdirs="$noconfigdirs gnattools"
3078 fi
3079
3080 # Check whether --enable-libssp was given.
3081 if test "${enable_libssp+set}" = set; then :
3082   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3083 else
3084   ENABLE_LIBSSP=yes
3085 fi
3086
3087
3088 # Check whether --enable-libstdcxx was given.
3089 if test "${enable_libstdcxx+set}" = set; then :
3090   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3091 else
3092   ENABLE_LIBSTDCXX=default
3093 fi
3094
3095 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3096   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3097 fi
3098
3099 # If this is accelerator compiler and its target is intelmic we enable
3100 # target liboffloadmic by default.  If this is compiler with offloading
3101 # for intelmic we enable host liboffloadmic by default.  Otherwise
3102 # liboffloadmic is disabled by default.
3103 # Check whether --enable-liboffloadmic was given.
3104 if test "${enable_liboffloadmic+set}" = set; then :
3105   enableval=$enable_liboffloadmic; case "$enableval" in
3106   no | host | target)
3107     enable_liboffloadmic=$enableval ;;
3108   *)
3109     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3110 esac
3111 else
3112   if test x"$enable_as_accelerator_for" != x; then
3113   case "${target}" in
3114     *-intelmic-* | *-intelmicemul-*)
3115       enable_liboffloadmic=target
3116       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3117       ;;
3118     *)
3119       enable_liboffloadmic=no
3120       ;;
3121   esac
3122 else
3123   case "${enable_offload_targets}" in
3124     *-intelmic-* | *-intelmicemul-*)
3125       enable_liboffloadmic=host
3126       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3127       ;;
3128     *)
3129       enable_liboffloadmic=no
3130       ;;
3131     esac
3132 fi
3133 fi
3134
3135
3136
3137 # Enable libgomp by default on hosted POSIX systems, and a few others.
3138 if test x$enable_libgomp = x ; then
3139     case "${target}" in
3140     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3141         ;;
3142     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3143         ;;
3144     *-*-solaris2* | *-*-hpux11*)
3145         ;;
3146     *-*-darwin* | *-*-aix*)
3147         ;;
3148     nvptx*-*-*)
3149         ;;
3150     *)
3151         noconfigdirs="$noconfigdirs target-libgomp"
3152         ;;
3153     esac
3154 fi
3155
3156 # Disable libatomic on unsupported systems.
3157 if test -d ${srcdir}/libatomic; then
3158     if test x$enable_libatomic = x; then
3159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160 $as_echo_n "checking for libatomic support... " >&6; }
3161         if (srcdir=${srcdir}/libatomic; \
3162                 . ${srcdir}/configure.tgt; \
3163                 test -n "$UNSUPPORTED")
3164         then
3165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167             noconfigdirs="$noconfigdirs target-libatomic"
3168         else
3169             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171         fi
3172     fi
3173 fi
3174
3175 # Disable libcilkrts on unsupported systems.
3176 if test -d ${srcdir}/libcilkrts; then
3177     if test x$enable_libcilkrts = x; then
3178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179 $as_echo_n "checking for libcilkrts support... " >&6; }
3180         if (srcdir=${srcdir}/libcilkrts; \
3181                 . ${srcdir}/configure.tgt; \
3182                 test -n "$UNSUPPORTED")
3183         then
3184             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186             noconfigdirs="$noconfigdirs target-libcilkrts"
3187         else
3188             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3190         fi
3191     fi
3192 fi
3193
3194 # Disable liboffloadmic on unsupported systems.
3195 if test -d ${srcdir}/liboffloadmic; then
3196     if test x$enable_liboffloadmic != xno; then
3197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3198 $as_echo_n "checking for liboffloadmic support... " >&6; }
3199         if (srcdir=${srcdir}/liboffloadmic; \
3200                 . ${srcdir}/configure.tgt; \
3201                 test -n "$UNSUPPORTED")
3202         then
3203             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205             noconfigdirs="$noconfigdirs target-liboffloadmic"
3206         else
3207             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3209         fi
3210     fi
3211 fi
3212
3213 # Disable libitm on unsupported systems.
3214 if test -d ${srcdir}/libitm; then
3215     if test x$enable_libitm = x; then
3216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3217 $as_echo_n "checking for libitm support... " >&6; }
3218         if (srcdir=${srcdir}/libitm; \
3219                 . ${srcdir}/configure.tgt; \
3220                 test -n "$UNSUPPORTED")
3221         then
3222             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224             noconfigdirs="$noconfigdirs target-libitm"
3225         else
3226             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228         fi
3229     fi
3230 fi
3231
3232 # Disable libsanitizer on unsupported systems.
3233 if test -d ${srcdir}/libsanitizer; then
3234     if test x$enable_libsanitizer = x; then
3235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3236 $as_echo_n "checking for libsanitizer support... " >&6; }
3237         if (srcdir=${srcdir}/libsanitizer; \
3238                 . ${srcdir}/configure.tgt; \
3239                 test -n "$UNSUPPORTED")
3240         then
3241             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243             noconfigdirs="$noconfigdirs target-libsanitizer"
3244         else
3245             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3247         fi
3248     fi
3249 fi
3250
3251 # Disable libvtv on unsupported systems.
3252 if test -d ${srcdir}/libvtv; then
3253     if test x$enable_libvtv = x; then
3254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3255 $as_echo_n "checking for libvtv support... " >&6; }
3256         if (srcdir=${srcdir}/libvtv; \
3257                 . ${srcdir}/configure.tgt; \
3258                 test "$VTV_SUPPORTED" != "yes")
3259         then
3260             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262             noconfigdirs="$noconfigdirs target-libvtv"
3263         else
3264             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3266         fi
3267     fi
3268 fi
3269
3270
3271 # Enable libmpx on supported systems by request.
3272 if test -d ${srcdir}/libmpx; then
3273     if test x$enable_libmpx = x; then
3274        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3275 $as_echo_n "checking for libmpx support... " >&6; }
3276        if (srcdir=${srcdir}/libmpx; \
3277                . ${srcdir}/configure.tgt; \
3278                test "$LIBMPX_SUPPORTED" != "yes")
3279        then
3280            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282            noconfigdirs="$noconfigdirs target-libmpx"
3283        else
3284            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286        fi
3287     fi
3288 fi
3289
3290
3291
3292 # Disable libquadmath for some systems.
3293 case "${target}" in
3294   avr-*-*)
3295     noconfigdirs="$noconfigdirs target-libquadmath"
3296     ;;
3297   # libquadmath is unused on AIX and libquadmath build process use of
3298   # LD_LIBRARY_PATH can break AIX bootstrap.
3299   powerpc-*-aix* | rs6000-*-aix*)
3300     noconfigdirs="$noconfigdirs target-libquadmath"
3301     ;;
3302 esac
3303
3304 # Disable libssp for some systems.
3305 case "${target}" in
3306   avr-*-*)
3307     # No hosted I/O support.
3308     noconfigdirs="$noconfigdirs target-libssp"
3309     ;;
3310   powerpc-*-aix* | rs6000-*-aix*)
3311     noconfigdirs="$noconfigdirs target-libssp"
3312     ;;
3313   rl78-*-*)
3314     # libssp uses a misaligned load to trigger a fault, but the RL78
3315     # doesn't fault for those - instead, it gives a build-time error
3316     # for explicit misaligned loads.
3317     noconfigdirs="$noconfigdirs target-libssp"
3318     ;;
3319   visium-*-*)
3320     # No hosted I/O support.
3321     noconfigdirs="$noconfigdirs target-libssp"
3322     ;;
3323 esac
3324
3325 # Disable libstdc++-v3 for some systems.
3326 # Allow user to override this if they pass --enable-libstdc++-v3
3327 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3328   case "${target}" in
3329     *-*-vxworks*)
3330       # VxWorks uses the Dinkumware C++ library.
3331       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3332       ;;
3333     arm*-wince-pe*)
3334       # the C++ libraries don't build on top of CE's C libraries
3335       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3336       ;;
3337     avr-*-*)
3338       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3339       ;;
3340     ft32-*-*)
3341       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3342       ;;
3343   esac
3344 fi
3345
3346 # Disable Fortran for some systems.
3347 case "${target}" in
3348   mmix-*-*)
3349     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3350     unsupported_languages="$unsupported_languages fortran"
3351     ;;
3352 esac
3353
3354 # Disable libgo for some systems where it is known to not work.
3355 # For testing, you can easily override this with --enable-libgo.
3356 if test x$enable_libgo = x; then
3357     case "${target}" in
3358     *-*-darwin*)
3359         # PR 46986
3360         noconfigdirs="$noconfigdirs target-libgo"
3361         ;;
3362     *-*-cygwin* | *-*-mingw*)
3363         noconfigdirs="$noconfigdirs target-libgo"
3364         ;;
3365     *-*-aix*)
3366         noconfigdirs="$noconfigdirs target-libgo"
3367         ;;
3368     esac
3369 fi
3370
3371 # Default libgloss CPU subdirectory.
3372 libgloss_dir="$target_cpu"
3373
3374 case "${target}" in
3375   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3376     libgloss_dir=wince
3377     ;;
3378   aarch64*-*-* )
3379     libgloss_dir=aarch64
3380     ;;
3381   arm*-*-*)
3382     libgloss_dir=arm
3383     ;;
3384   cris-*-* | crisv32-*-*)
3385     libgloss_dir=cris
3386     ;;
3387   hppa*-*-*)
3388     libgloss_dir=pa
3389     ;;
3390   i[3456789]86-*-*)
3391     libgloss_dir=i386
3392     ;;
3393   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3394     libgloss_dir=m68hc11
3395     ;;
3396   m68*-*-* | fido-*-*)
3397     libgloss_dir=m68k
3398     ;;
3399   mips*-*-*)
3400     libgloss_dir=mips
3401     ;;
3402   powerpc*-*-*)
3403     libgloss_dir=rs6000
3404     ;;
3405   sparc*-*-*)
3406     libgloss_dir=sparc
3407     ;;
3408 esac
3409
3410 # Disable newlib and libgloss for various target OSes.
3411 case "${target}" in
3412   alpha*-dec-osf*)
3413     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414     ;;
3415   i[3456789]86-*-linux*)
3416     # This section makes it possible to build newlib natively on linux.
3417     # If we are using a cross compiler then don't configure newlib.
3418     if test x${is_cross_compiler} != xno ; then
3419       noconfigdirs="$noconfigdirs target-newlib"
3420     fi
3421     noconfigdirs="$noconfigdirs target-libgloss"
3422     # If we are not using a cross compiler, do configure newlib.
3423     # Note however, that newlib will only be configured in this situation
3424     # if the --with-newlib option has been given, because otherwise
3425     # 'target-newlib' will appear in skipdirs.
3426     ;;
3427   i[3456789]86-*-rdos*)
3428     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429     ;;
3430   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3431     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3432     ;;
3433   sparc-*-sunos4*)
3434     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3435     ;;
3436   *-*-aix*)
3437     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3438     ;;
3439   *-*-beos*)
3440     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3441     ;;
3442   *-*-chorusos)
3443     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444     ;;
3445   *-*-dragonfly*)
3446     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3447     ;;
3448   *-*-freebsd*)
3449     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3450     ;;
3451   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3452     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3453     ;;
3454   *-*-lynxos*)
3455     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3456     ;;
3457   *-*-mingw*)
3458     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3459     ;;
3460   *-*-netbsd*)
3461     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3462     ;;
3463   *-*-netware*)
3464     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3465     ;;
3466   *-*-tpf*)
3467     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3468     ;;
3469   *-*-uclinux*)
3470     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3471     ;;
3472   *-*-vxworks*)
3473     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3474     ;;
3475 esac
3476
3477 case "${target}" in
3478   *-*-chorusos)
3479     ;;
3480   aarch64-*-darwin*)
3481     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3482     noconfigdirs="$noconfigdirs sim target-rda"
3483     ;;
3484   arm-*-darwin*)
3485     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3486     noconfigdirs="$noconfigdirs sim target-rda"
3487     ;;
3488   powerpc-*-darwin*)
3489     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3490     noconfigdirs="$noconfigdirs sim target-rda"
3491     ;;
3492   i[3456789]86-*-darwin*)
3493     noconfigdirs="$noconfigdirs ld gprof"
3494     noconfigdirs="$noconfigdirs sim target-rda"
3495     ;;
3496   x86_64-*-darwin[912]*)
3497     noconfigdirs="$noconfigdirs ld gas gprof"
3498     noconfigdirs="$noconfigdirs sim target-rda"
3499     ;;
3500   *-*-darwin*)
3501     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3502     noconfigdirs="$noconfigdirs sim target-rda"
3503     ;;
3504   *-*-dragonfly*)
3505     ;;
3506   *-*-freebsd*)
3507     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3508         && test -f /usr/local/include/gmp.h; then
3509       with_gmp=/usr/local
3510     fi
3511     ;;
3512   *-*-kaos*)
3513     # Remove unsupported stuff on all kaOS configurations.
3514     noconfigdirs="$noconfigdirs target-libgloss"
3515     ;;
3516   *-*-netbsd*)
3517     ;;
3518   *-*-netware*)
3519     ;;
3520   *-*-phoenix*)
3521     noconfigdirs="$noconfigdirs target-libgloss"
3522     ;;
3523   *-*-rtems*)
3524     noconfigdirs="$noconfigdirs target-libgloss"
3525     # this is not caught below because this stanza matches earlier
3526     case $target in
3527       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3528     esac
3529     ;;
3530     # The tpf target doesn't support gdb yet.
3531   *-*-tpf*)
3532     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3533     ;;
3534   *-*-uclinux*)
3535     noconfigdirs="$noconfigdirs target-rda"
3536     ;;
3537   *-*-vxworks*)
3538     ;;
3539   alpha*-dec-osf*)
3540     # ld works, but does not support shared libraries.
3541     # gas doesn't generate exception information.
3542     noconfigdirs="$noconfigdirs gas ld"
3543     ;;
3544   alpha*-*-*vms*)
3545     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3546     ;;
3547   alpha*-*-*)
3548     # newlib is not 64 bit ready
3549     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550     ;;
3551   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3552     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3553     ;;
3554   arc*-*-*)
3555     noconfigdirs="$noconfigdirs sim"
3556     ;;
3557   arm-*-pe*)
3558     noconfigdirs="$noconfigdirs target-libgloss"
3559     ;;
3560   arm-*-riscix*)
3561     noconfigdirs="$noconfigdirs ld target-libgloss"
3562     ;;
3563   avr-*-*)
3564     if test x${with_avrlibc} != xno; then
3565       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566     fi
3567     ;;
3568   c4x-*-* | tic4x-*-*)
3569     noconfigdirs="$noconfigdirs target-libgloss"
3570     ;;
3571   tic54x-*-*)
3572     noconfigdirs="$noconfigdirs target-libgloss gdb"
3573     ;;
3574   d10v-*-*)
3575     noconfigdirs="$noconfigdirs target-libgloss"
3576     ;;
3577   d30v-*-*)
3578     noconfigdirs="$noconfigdirs gdb"
3579     ;;
3580   fr30-*-elf*)
3581     noconfigdirs="$noconfigdirs gdb"
3582     ;;
3583   ft32-*-*)
3584     noconfigdirs="$noconfigdirs target-rda gprof"
3585     ;;
3586   moxie-*-*)
3587     noconfigdirs="$noconfigdirs"
3588     ;;
3589   h8300*-*-*)
3590     noconfigdirs="$noconfigdirs target-libgloss"
3591     ;;
3592   h8500-*-*)
3593     noconfigdirs="$noconfigdirs target-libgloss"
3594     ;;
3595   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3596     ;;
3597   hppa*64*-*-hpux*)
3598     noconfigdirs="$noconfigdirs gdb"
3599     ;;
3600   hppa*-*-hpux11*)
3601     noconfigdirs="$noconfigdirs gdb ld"
3602     ;;
3603   hppa*64*-*-linux*)
3604     ;;
3605   hppa*-*-linux*)
3606     ;;
3607   hppa*-*-*elf* | \
3608   hppa*-*-lites* | \
3609   hppa*-*-openbsd* | \
3610   hppa*64*-*-*)
3611     ;;
3612   hppa*-*-pro*)
3613     ;;
3614   hppa*-*-*)
3615     noconfigdirs="$noconfigdirs ld"
3616     ;;
3617   i960-*-*)
3618     noconfigdirs="$noconfigdirs gdb"
3619     ;;
3620   ia64*-*-elf*)
3621     # No gdb support yet.
3622     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3623     ;;
3624   ia64*-**-hpux*)
3625     # No ld support yet.
3626     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3627     ;;
3628   ia64*-*-*vms*)
3629     # No ld support yet.
3630     noconfigdirs="$noconfigdirs libgui itcl ld"
3631     ;;
3632   i[3456789]86-w64-mingw*)
3633     ;;
3634   i[3456789]86-*-mingw*)
3635     target_configdirs="$target_configdirs target-winsup"
3636     ;;
3637   *-*-cygwin*)
3638     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3639     noconfigdirs="$noconfigdirs target-libgloss"
3640     # always build newlib if winsup directory is present.
3641     if test -d "$srcdir/winsup/cygwin"; then
3642       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3643     elif test -d "$srcdir/newlib"; then
3644       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3645     fi
3646     ;;
3647   i[3456789]86-*-pe)
3648     noconfigdirs="$noconfigdirs target-libgloss"
3649     ;;
3650   i[3456789]86-*-sco3.2v5*)
3651     # The linker does not yet know about weak symbols in COFF,
3652     # and is not configured to handle mixed ELF and COFF.
3653     noconfigdirs="$noconfigdirs ld target-libgloss"
3654     ;;
3655   i[3456789]86-*-sco*)
3656     noconfigdirs="$noconfigdirs gprof target-libgloss"
3657     ;;
3658   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3659     noconfigdirs="$noconfigdirs target-libgloss"
3660     ;;
3661   i[3456789]86-*-sysv4*)
3662     noconfigdirs="$noconfigdirs target-libgloss"
3663     ;;
3664   i[3456789]86-*-beos*)
3665     noconfigdirs="$noconfigdirs gdb"
3666     ;;
3667   i[3456789]86-*-rdos*)
3668     noconfigdirs="$noconfigdirs gdb"
3669     ;;
3670   mmix-*-*)
3671     noconfigdirs="$noconfigdirs gdb"
3672     ;;
3673   mt-*-*)
3674     noconfigdirs="$noconfigdirs sim"
3675     ;;
3676   powerpc-*-aix*)
3677     # copied from rs6000-*-* entry
3678     noconfigdirs="$noconfigdirs gprof"
3679     ;;
3680   powerpc*-*-winnt* | powerpc*-*-pe*)
3681     target_configdirs="$target_configdirs target-winsup"
3682     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3683     # always build newlib.
3684     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3685     ;;
3686     # This is temporary until we can link against shared libraries
3687   powerpcle-*-solaris*)
3688     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3689     ;;
3690   powerpc-*-beos*)
3691     noconfigdirs="$noconfigdirs gdb"
3692     ;;
3693   rs6000-*-lynxos*)
3694     noconfigdirs="$noconfigdirs gprof"
3695     ;;
3696   rs6000-*-aix*)
3697     noconfigdirs="$noconfigdirs gprof"
3698     ;;
3699   rs6000-*-*)
3700     noconfigdirs="$noconfigdirs gprof"
3701     ;;
3702   m68k-apollo-*)
3703     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3704     ;;
3705   microblaze*)
3706     noconfigdirs="$noconfigdirs gprof"
3707     ;;
3708   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3709     if test x$with_newlib = xyes; then
3710       noconfigdirs="$noconfigdirs gprof"
3711     fi
3712     ;;
3713   mips*-*-irix5*)
3714     noconfigdirs="$noconfigdirs gprof target-libgloss"
3715     ;;
3716   mips*-*-irix6*)
3717     noconfigdirs="$noconfigdirs gprof target-libgloss"
3718     ;;
3719   mips*-*-bsd*)
3720     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3721     ;;
3722   mips*-*-linux*)
3723     ;;
3724   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3725   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3726     noconfigdirs="$noconfigdirs ld gas gprof"
3727     ;;
3728   mips*-*-*)
3729     noconfigdirs="$noconfigdirs gprof"
3730     ;;
3731   nvptx*-*-*)
3732     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3733     ;;
3734   or1k*-*-*)
3735     noconfigdirs="$noconfigdirs gdb"
3736     ;;
3737   sh-*-*)
3738     case "${target}" in
3739       sh*-*-elf)
3740          ;;
3741       *)
3742          noconfigdirs="$noconfigdirs target-libgloss" ;;
3743     esac
3744     ;;
3745   sparc-*-sunos4*)
3746     if test x${is_cross_compiler} = xno ; then
3747            use_gnu_ld=no
3748     fi
3749     ;;
3750   tic6x-*-*)
3751     noconfigdirs="$noconfigdirs sim"
3752     ;;
3753   tilepro*-*-* | tilegx*-*-*)
3754     noconfigdirs="$noconfigdirs sim"
3755     ;;
3756   v810-*-*)
3757     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3758     ;;
3759   vax-*-*)
3760     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761     ;;
3762 esac
3763
3764 # If we aren't building newlib, then don't build libgloss, since libgloss
3765 # depends upon some newlib header files.
3766 case "${noconfigdirs}" in
3767   *target-libgloss*) ;;
3768   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3769 esac
3770
3771 # Work in distributions that contain no compiler tools, like Autoconf.
3772 host_makefile_frag=/dev/null
3773 if test -d ${srcdir}/config ; then
3774 case "${host}" in
3775   i[3456789]86-*-msdosdjgpp*)
3776     host_makefile_frag="config/mh-djgpp"
3777     ;;
3778   *-cygwin*)
3779
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3781 $as_echo_n "checking to see if cat works as expected... " >&6; }
3782 echo a >cygwin-cat-check
3783 if test `cat cygwin-cat-check` = a ; then
3784   rm cygwin-cat-check
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3786 $as_echo "yes" >&6; }
3787 else
3788   rm cygwin-cat-check
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3791   as_fn_error "The cat command does not ignore carriage return characters.
3792   Please either mount the build directory in binary mode or run the following
3793   commands before running any configure script:
3794 set -o igncr
3795 export SHELLOPTS
3796   " "$LINENO" 5
3797 fi
3798
3799     host_makefile_frag="config/mh-cygwin"
3800     ;;
3801   *-mingw*)
3802     host_makefile_frag="config/mh-mingw"
3803     ;;
3804   alpha*-linux*)
3805     host_makefile_frag="config/mh-alpha-linux"
3806     ;;
3807   hppa*-hp-hpux10*)
3808     host_makefile_frag="config/mh-pa-hpux10"
3809     ;;
3810   hppa*-hp-hpux*)
3811     host_makefile_frag="config/mh-pa"
3812     ;;
3813   hppa*-*)
3814     host_makefile_frag="config/mh-pa"
3815     ;;
3816   *-*-darwin*)
3817     host_makefile_frag="config/mh-darwin"
3818     ;;
3819   powerpc-*-aix*)
3820     host_makefile_frag="config/mh-ppc-aix"
3821     ;;
3822   rs6000-*-aix*)
3823     host_makefile_frag="config/mh-ppc-aix"
3824     ;;
3825 esac
3826 fi
3827
3828 if test "${build}" != "${host}" ; then
3829   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3830   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3831   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3832   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3833   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3834   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3835   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3836   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3837   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3838   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3839   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3840   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3841   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3842 else
3843   AR_FOR_BUILD="\$(AR)"
3844   AS_FOR_BUILD="\$(AS)"
3845   CC_FOR_BUILD="\$(CC)"
3846   CXX_FOR_BUILD="\$(CXX)"
3847   GCJ_FOR_BUILD="\$(GCJ)"
3848   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3849   GOC_FOR_BUILD="\$(GOC)"
3850   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3851   LD_FOR_BUILD="\$(LD)"
3852   NM_FOR_BUILD="\$(NM)"
3853   RANLIB_FOR_BUILD="\$(RANLIB)"
3854   WINDRES_FOR_BUILD="\$(WINDRES)"
3855   WINDMC_FOR_BUILD="\$(WINDMC)"
3856 fi
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 if test -n "$ac_tool_prefix"; then
3864   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_CC+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   if test -n "$CC"; then
3872   ac_cv_prog_CC="$CC" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877   IFS=$as_save_IFS
3878   test -z "$as_dir" && as_dir=.
3879     for ac_exec_ext in '' $ac_executable_extensions; do
3880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883     break 2
3884   fi
3885 done
3886   done
3887 IFS=$as_save_IFS
3888
3889 fi
3890 fi
3891 CC=$ac_cv_prog_CC
3892 if test -n "$CC"; then
3893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894 $as_echo "$CC" >&6; }
3895 else
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899
3900
3901 fi
3902 if test -z "$ac_cv_prog_CC"; then
3903   ac_ct_CC=$CC
3904   # Extract the first word of "gcc", so it can be a program name with args.
3905 set dummy gcc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   if test -n "$ac_ct_CC"; then
3912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_exec_ext in '' $ac_executable_extensions; do
3920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921     ac_cv_prog_ac_ct_CC="gcc"
3922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923     break 2
3924   fi
3925 done
3926   done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3935 else
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940   if test "x$ac_ct_CC" = x; then
3941     CC=""
3942   else
3943     case $cross_compiling:$ac_tool_warned in
3944 yes:)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947 ac_tool_warned=yes ;;
3948 esac
3949     CC=$ac_ct_CC
3950   fi
3951 else
3952   CC="$ac_cv_prog_CC"
3953 fi
3954
3955 if test -z "$CC"; then
3956           if test -n "$ac_tool_prefix"; then
3957     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}cc; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_CC+set}" = set; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   if test -n "$CC"; then
3965   ac_cv_prog_CC="$CC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974     ac_cv_prog_CC="${ac_tool_prefix}cc"
3975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979   done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 CC=$ac_cv_prog_CC
3985 if test -n "$CC"; then
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987 $as_echo "$CC" >&6; }
3988 else
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993
3994   fi
3995 fi
3996 if test -z "$CC"; then
3997   # Extract the first word of "cc", so it can be a program name with args.
3998 set dummy cc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -n "$CC"; then
4005   ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007   ac_prog_rejected=no
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013     for ac_exec_ext in '' $ac_executable_extensions; do
4014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016        ac_prog_rejected=yes
4017        continue
4018      fi
4019     ac_cv_prog_CC="cc"
4020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024   done
4025 IFS=$as_save_IFS
4026
4027 if test $ac_prog_rejected = yes; then
4028   # We found a bogon in the path, so make sure we never use it.
4029   set dummy $ac_cv_prog_CC
4030   shift
4031   if test $# != 0; then
4032     # We chose a different compiler from the bogus one.
4033     # However, it has the same basename, so the bogon will be chosen
4034     # first if we set CC to just the basename; use the full file name.
4035     shift
4036     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4037   fi
4038 fi
4039 fi
4040 fi
4041 CC=$ac_cv_prog_CC
4042 if test -n "$CC"; then
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4044 $as_echo "$CC" >&6; }
4045 else
4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050
4051 fi
4052 if test -z "$CC"; then
4053   if test -n "$ac_tool_prefix"; then
4054   for ac_prog in cl.exe
4055   do
4056     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_CC+set}" = set; then :
4061   $as_echo_n "(cached) " >&6
4062 else
4063   if test -n "$CC"; then
4064   ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071     for ac_exec_ext in '' $ac_executable_extensions; do
4072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078   done
4079 IFS=$as_save_IFS
4080
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4087 else
4088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093     test -n "$CC" && break
4094   done
4095 fi
4096 if test -z "$CC"; then
4097   ac_ct_CC=$CC
4098   for ac_prog in cl.exe
4099 do
4100   # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -n "$ac_ct_CC"; then
4108   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117     ac_cv_prog_ac_ct_CC="$ac_prog"
4118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122   done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4130 $as_echo "$ac_ct_CC" >&6; }
4131 else
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135
4136
4137   test -n "$ac_ct_CC" && break
4138 done
4139
4140   if test "x$ac_ct_CC" = x; then
4141     CC=""
4142   else
4143     case $cross_compiling:$ac_tool_warned in
4144 yes:)
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147 ac_tool_warned=yes ;;
4148 esac
4149     CC=$ac_ct_CC
4150   fi
4151 fi
4152
4153 fi
4154
4155
4156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error "no acceptable C compiler found in \$PATH
4159 See \`config.log' for more details." "$LINENO" 5; }
4160
4161 # Provide some information about the compiler.
4162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4163 set X $ac_compile
4164 ac_compiler=$2
4165 for ac_option in --version -v -V -qversion; do
4166   { { ac_try="$ac_compiler $ac_option >&5"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172 $as_echo "$ac_try_echo"; } >&5
4173   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4174   ac_status=$?
4175   if test -s conftest.err; then
4176     sed '10a\
4177 ... rest of stderr output deleted ...
4178          10q' conftest.err >conftest.er1
4179     cat conftest.er1 >&5
4180     rm -f conftest.er1 conftest.err
4181   fi
4182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183   test $ac_status = 0; }
4184 done
4185
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h.  */
4188
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 ac_clean_files_save=$ac_clean_files
4198 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4199 # Try to create an executable without -o first, disregard a.out.
4200 # It will help us diagnose broken compilers, and finding out an intuition
4201 # of exeext.
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4203 $as_echo_n "checking for C compiler default output file name... " >&6; }
4204 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4205
4206 # The possible output files:
4207 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4208
4209 ac_rmfiles=
4210 for ac_file in $ac_files
4211 do
4212   case $ac_file in
4213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4214     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4215   esac
4216 done
4217 rm -f $ac_rmfiles
4218
4219 if { { ac_try="$ac_link_default"
4220 case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4225 $as_echo "$ac_try_echo"; } >&5
4226   (eval "$ac_link_default") 2>&5
4227   ac_status=$?
4228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229   test $ac_status = 0; }; then :
4230   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4232 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4233 # so that the user can short-circuit this test for compilers unknown to
4234 # Autoconf.
4235 for ac_file in $ac_files ''
4236 do
4237   test -f "$ac_file" || continue
4238   case $ac_file in
4239     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4240         ;;
4241     [ab].out )
4242         # We found the default executable, but exeext='' is most
4243         # certainly right.
4244         break;;
4245     *.* )
4246         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4247         then :; else
4248            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249         fi
4250         # We set ac_cv_exeext here because the later test for it is not
4251         # safe: cross compilers may not add the suffix if given an `-o'
4252         # argument, so we may need to know it at that point already.
4253         # Even if this section looks crufty: it has the advantage of
4254         # actually working.
4255         break;;
4256     * )
4257         break;;
4258   esac
4259 done
4260 test "$ac_cv_exeext" = no && ac_cv_exeext=
4261
4262 else
4263   ac_file=''
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4266 $as_echo "$ac_file" >&6; }
4267 if test -z "$ac_file"; then :
4268   $as_echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 { as_fn_set_status 77
4274 as_fn_error "C compiler cannot create executables
4275 See \`config.log' for more details." "$LINENO" 5; }; }
4276 fi
4277 ac_exeext=$ac_cv_exeext
4278
4279 # Check that the compiler produces executables we can run.  If not, either
4280 # the compiler is broken, or we cross compile.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4282 $as_echo_n "checking whether the C compiler works... " >&6; }
4283 # If not cross compiling, check that we can run a simple program.
4284 if test "$cross_compiling" != yes; then
4285   if { ac_try='./$ac_file'
4286   { { case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295   test $ac_status = 0; }; }; then
4296     cross_compiling=no
4297   else
4298     if test "$cross_compiling" = maybe; then
4299         cross_compiling=yes
4300     else
4301         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error "cannot run C compiled programs.
4304 If you meant to cross compile, use \`--host'.
4305 See \`config.log' for more details." "$LINENO" 5; }
4306     fi
4307   fi
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310 $as_echo "yes" >&6; }
4311
4312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4313 ac_clean_files=$ac_clean_files_save
4314 # Check that the compiler produces executables we can run.  If not, either
4315 # the compiler is broken, or we cross compile.
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4317 $as_echo_n "checking whether we are cross compiling... " >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4319 $as_echo "$cross_compiling" >&6; }
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4322 $as_echo_n "checking for suffix of executables... " >&6; }
4323 if { { ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330   (eval "$ac_link") 2>&5
4331   ac_status=$?
4332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333   test $ac_status = 0; }; then :
4334   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4335 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4336 # work properly (i.e., refer to `conftest.exe'), while it won't with
4337 # `rm'.
4338 for ac_file in conftest.exe conftest conftest.*; do
4339   test -f "$ac_file" || continue
4340   case $ac_file in
4341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4343           break;;
4344     * ) break;;
4345   esac
4346 done
4347 else
4348   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350 as_fn_error "cannot compute suffix of executables: cannot compile and link
4351 See \`config.log' for more details." "$LINENO" 5; }
4352 fi
4353 rm -f conftest$ac_cv_exeext
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4355 $as_echo "$ac_cv_exeext" >&6; }
4356
4357 rm -f conftest.$ac_ext
4358 EXEEXT=$ac_cv_exeext
4359 ac_exeext=$EXEEXT
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4361 $as_echo_n "checking for suffix of object files... " >&6; }
4362 if test "${ac_cv_objext+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest.o conftest.obj
4377 if { { ac_try="$ac_compile"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_compile") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; }; then :
4388   for ac_file in conftest.o conftest.obj conftest.*; do
4389   test -f "$ac_file" || continue;
4390   case $ac_file in
4391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4392     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4393        break;;
4394   esac
4395 done
4396 else
4397   $as_echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error "cannot compute suffix of object files: cannot compile
4403 See \`config.log' for more details." "$LINENO" 5; }
4404 fi
4405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4408 $as_echo "$ac_cv_objext" >&6; }
4409 OBJEXT=$ac_cv_objext
4410 ac_objext=$OBJEXT
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4413 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418
4419 int
4420 main ()
4421 {
4422 #ifndef __GNUC__
4423        choke me
4424 #endif
4425
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 if ac_fn_c_try_compile "$LINENO"; then :
4431   ac_compiler_gnu=yes
4432 else
4433   ac_compiler_gnu=no
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4437
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4441 if test $ac_compiler_gnu = yes; then
4442   GCC=yes
4443 else
4444   GCC=
4445 fi
4446 ac_test_CFLAGS=${CFLAGS+set}
4447 ac_save_CFLAGS=$CFLAGS
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4450 if test "${ac_cv_prog_cc_g+set}" = set; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453   ac_save_c_werror_flag=$ac_c_werror_flag
4454    ac_c_werror_flag=yes
4455    ac_cv_prog_cc_g=no
4456    CFLAGS="-g"
4457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459
4460 int
4461 main ()
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469   ac_cv_prog_cc_g=yes
4470 else
4471   CFLAGS=""
4472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h.  */
4474
4475 int
4476 main ()
4477 {
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484
4485 else
4486   ac_c_werror_flag=$ac_save_c_werror_flag
4487          CFLAGS="-g"
4488          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 int
4492 main ()
4493 {
4494
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500   ac_cv_prog_cc_g=yes
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507    ac_c_werror_flag=$ac_save_c_werror_flag
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4510 $as_echo "$ac_cv_prog_cc_g" >&6; }
4511 if test "$ac_test_CFLAGS" = set; then
4512   CFLAGS=$ac_save_CFLAGS
4513 elif test $ac_cv_prog_cc_g = yes; then
4514   if test "$GCC" = yes; then
4515     CFLAGS="-g -O2"
4516   else
4517     CFLAGS="-g"
4518   fi
4519 else
4520   if test "$GCC" = yes; then
4521     CFLAGS="-O2"
4522   else
4523     CFLAGS=
4524   fi
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4528 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   ac_cv_prog_cc_c89=no
4532 ac_save_CC=$CC
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h.  */
4535 #include <stdarg.h>
4536 #include <stdio.h>
4537 #include <sys/types.h>
4538 #include <sys/stat.h>
4539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4540 struct buf { int x; };
4541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4542 static char *e (p, i)
4543      char **p;
4544      int i;
4545 {
4546   return p[i];
4547 }
4548 static char *f (char * (*g) (char **, int), char **p, ...)
4549 {
4550   char *s;
4551   va_list v;
4552   va_start (v,p);
4553   s = g (p, va_arg (v,int));
4554   va_end (v);
4555   return s;
4556 }
4557
4558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4559    function prototypes and stuff, but not '\xHH' hex character constants.
4560    These don't provoke an error unfortunately, instead are silently treated
4561    as 'x'.  The following induces an error, until -std is added to get
4562    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4563    array size at least.  It's necessary to write '\x00'==0 to get something
4564    that's true only with -std.  */
4565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4566
4567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4568    inside strings and character constants.  */
4569 #define FOO(x) 'x'
4570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4571
4572 int test (int i, double x);
4573 struct s1 {int (*f) (int a);};
4574 struct s2 {int (*f) (double a);};
4575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4576 int argc;
4577 char **argv;
4578 int
4579 main ()
4580 {
4581 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4587         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4588 do
4589   CC="$ac_save_CC $ac_arg"
4590   if ac_fn_c_try_compile "$LINENO"; then :
4591   ac_cv_prog_cc_c89=$ac_arg
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext
4594   test "x$ac_cv_prog_cc_c89" != "xno" && break
4595 done
4596 rm -f conftest.$ac_ext
4597 CC=$ac_save_CC
4598
4599 fi
4600 # AC_CACHE_VAL
4601 case "x$ac_cv_prog_cc_c89" in
4602   x)
4603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4604 $as_echo "none needed" >&6; } ;;
4605   xno)
4606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4607 $as_echo "unsupported" >&6; } ;;
4608   *)
4609     CC="$CC $ac_cv_prog_cc_c89"
4610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4612 esac
4613 if test "x$ac_cv_prog_cc_c89" != xno; then :
4614
4615 fi
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622
4623 ac_ext=cpp
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628 if test -z "$CXX"; then
4629   if test -n "$CCC"; then
4630     CXX=$CCC
4631   else
4632     if test -n "$ac_tool_prefix"; then
4633   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4634   do
4635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_CXX+set}" = set; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642   if test -n "$CXX"; then
4643   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657   done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 CXX=$ac_cv_prog_CXX
4663 if test -n "$CXX"; then
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4665 $as_echo "$CXX" >&6; }
4666 else
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672     test -n "$CXX" && break
4673   done
4674 fi
4675 if test -z "$CXX"; then
4676   ac_ct_CXX=$CXX
4677   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4678 do
4679   # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -n "$ac_ct_CXX"; then
4687   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696     ac_cv_prog_ac_ct_CXX="$ac_prog"
4697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701   done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4707 if test -n "$ac_ct_CXX"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4709 $as_echo "$ac_ct_CXX" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715
4716   test -n "$ac_ct_CXX" && break
4717 done
4718
4719   if test "x$ac_ct_CXX" = x; then
4720     CXX="g++"
4721   else
4722     case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728     CXX=$ac_ct_CXX
4729   fi
4730 fi
4731
4732   fi
4733 fi
4734 # Provide some information about the compiler.
4735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4736 set X $ac_compile
4737 ac_compiler=$2
4738 for ac_option in --version -v -V -qversion; do
4739   { { ac_try="$ac_compiler $ac_option >&5"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747   ac_status=$?
4748   if test -s conftest.err; then
4749     sed '10a\
4750 ... rest of stderr output deleted ...
4751          10q' conftest.err >conftest.er1
4752     cat conftest.er1 >&5
4753     rm -f conftest.er1 conftest.err
4754   fi
4755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756   test $ac_status = 0; }
4757 done
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4760 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766
4767 int
4768 main ()
4769 {
4770 #ifndef __GNUC__
4771        choke me
4772 #endif
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 if ac_fn_cxx_try_compile "$LINENO"; then :
4779   ac_compiler_gnu=yes
4780 else
4781   ac_compiler_gnu=no
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4788 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4789 if test $ac_compiler_gnu = yes; then
4790   GXX=yes
4791 else
4792   GXX=
4793 fi
4794 ac_test_CXXFLAGS=${CXXFLAGS+set}
4795 ac_save_CXXFLAGS=$CXXFLAGS
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4797 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4798 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4802    ac_cxx_werror_flag=yes
4803    ac_cv_prog_cxx_g=no
4804    CXXFLAGS="-g"
4805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 if ac_fn_cxx_try_compile "$LINENO"; then :
4817   ac_cv_prog_cxx_g=yes
4818 else
4819   CXXFLAGS=""
4820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_cxx_try_compile "$LINENO"; then :
4832
4833 else
4834   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4835          CXXFLAGS="-g"
4836          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838
4839 int
4840 main ()
4841 {
4842
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 if ac_fn_cxx_try_compile "$LINENO"; then :
4848   ac_cv_prog_cxx_g=yes
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4858 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4859 if test "$ac_test_CXXFLAGS" = set; then
4860   CXXFLAGS=$ac_save_CXXFLAGS
4861 elif test $ac_cv_prog_cxx_g = yes; then
4862   if test "$GXX" = yes; then
4863     CXXFLAGS="-g -O2"
4864   else
4865     CXXFLAGS="-g"
4866   fi
4867 else
4868   if test "$GXX" = yes; then
4869     CXXFLAGS="-O2"
4870   else
4871     CXXFLAGS=
4872   fi
4873 fi
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880
4881 # We must set the default linker to the linker used by gcc for the correct
4882 # operation of libtool.  If LD is not defined and we are using gcc, try to
4883 # set the LD default to the ld used by gcc.
4884 if test -z "$LD"; then
4885   if test "$GCC" = yes; then
4886     case $build in
4887     *-*-mingw*)
4888       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4889     *)
4890       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4891     esac
4892     case $gcc_prog_ld in
4893     # Accept absolute paths.
4894     [\\/]* | [A-Za-z]:[\\/]*)
4895       LD="$gcc_prog_ld" ;;
4896     esac
4897   fi
4898 fi
4899
4900 # Check whether -static-libstdc++ -static-libgcc is supported.
4901 have_static_libs=no
4902 if test "$GCC" = yes; then
4903   saved_LDFLAGS="$LDFLAGS"
4904
4905   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4907 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4908   ac_ext=cpp
4909 ac_cpp='$CXXCPP $CPPFLAGS'
4910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4913
4914
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h.  */
4917
4918 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4919 #error -static-libstdc++ not implemented
4920 #endif
4921 int main() {}
4922 _ACEOF
4923 if ac_fn_cxx_try_link "$LINENO"; then :
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4925 $as_echo "yes" >&6; }; have_static_libs=yes
4926 else
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext \
4931     conftest$ac_exeext conftest.$ac_ext
4932   ac_ext=c
4933 ac_cpp='$CPP $CPPFLAGS'
4934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
4938
4939   LDFLAGS="$saved_LDFLAGS"
4940 fi
4941
4942
4943
4944
4945 if test -n "$ac_tool_prefix"; then
4946   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4947 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -n "$GNATBIND"; then
4954   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968   done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
4973 GNATBIND=$ac_cv_prog_GNATBIND
4974 if test -n "$GNATBIND"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4976 $as_echo "$GNATBIND" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983 fi
4984 if test -z "$ac_cv_prog_GNATBIND"; then
4985   ac_ct_GNATBIND=$GNATBIND
4986   # Extract the first word of "gnatbind", so it can be a program name with args.
4987 set dummy gnatbind; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   if test -n "$ac_ct_GNATBIND"; then
4994   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5014 if test -n "$ac_ct_GNATBIND"; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5016 $as_echo "$ac_ct_GNATBIND" >&6; }
5017 else
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022   if test "x$ac_ct_GNATBIND" = x; then
5023     GNATBIND="no"
5024   else
5025     case $cross_compiling:$ac_tool_warned in
5026 yes:)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned=yes ;;
5030 esac
5031     GNATBIND=$ac_ct_GNATBIND
5032   fi
5033 else
5034   GNATBIND="$ac_cv_prog_GNATBIND"
5035 fi
5036
5037 if test -n "$ac_tool_prefix"; then
5038   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if test -n "$GNATMAKE"; then
5046   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053     for ac_exec_ext in '' $ac_executable_extensions; do
5054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057     break 2
5058   fi
5059 done
5060   done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 GNATMAKE=$ac_cv_prog_GNATMAKE
5066 if test -n "$GNATMAKE"; then
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5068 $as_echo "$GNATMAKE" >&6; }
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 fi
5076 if test -z "$ac_cv_prog_GNATMAKE"; then
5077   ac_ct_GNATMAKE=$GNATMAKE
5078   # Extract the first word of "gnatmake", so it can be a program name with args.
5079 set dummy gnatmake; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   if test -n "$ac_ct_GNATMAKE"; then
5086   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5106 if test -n "$ac_ct_GNATMAKE"; then
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5108 $as_echo "$ac_ct_GNATMAKE" >&6; }
5109 else
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114   if test "x$ac_ct_GNATMAKE" = x; then
5115     GNATMAKE="no"
5116   else
5117     case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123     GNATMAKE=$ac_ct_GNATMAKE
5124   fi
5125 else
5126   GNATMAKE="$ac_cv_prog_GNATMAKE"
5127 fi
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5130 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5131 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   cat >conftest.adb <<EOF
5135 procedure conftest is begin null; end conftest;
5136 EOF
5137 acx_cv_cc_gcc_supports_ada=no
5138 # There is a bug in old released versions of GCC which causes the
5139 # driver to exit successfully when the appropriate language module
5140 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5141 # Therefore we must check for the error message as well as an
5142 # unsuccessful exit.
5143 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5144 # given a .adb file, but produce no object file.  So we must check
5145 # if an object file was really produced to guard against this.
5146 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5147 if test x"$errors" = x && test -f conftest.$ac_objext; then
5148   acx_cv_cc_gcc_supports_ada=yes
5149 fi
5150 rm -f conftest.*
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5153 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5154
5155 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5156   have_gnat=yes
5157 else
5158   have_gnat=no
5159 fi
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5162 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5163 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166    echo abfoo >t1
5167   echo cdfoo >t2
5168   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5169   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5170     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5171       :
5172     else
5173       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5174     fi
5175   fi
5176   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5177     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5178       :
5179     else
5180       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5181     fi
5182   fi
5183   rm t1 t2
5184
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5187 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5188 do_compare="$gcc_cv_prog_cmp_skip"
5189
5190
5191
5192 # Check whether --enable-bootstrap was given.
5193 if test "${enable_bootstrap+set}" = set; then :
5194   enableval=$enable_bootstrap;
5195 else
5196   enable_bootstrap=default
5197 fi
5198
5199
5200 # Issue errors and warnings for invalid/strange bootstrap combinations.
5201 if test -r $srcdir/gcc/configure; then
5202   have_compiler=yes
5203 else
5204   have_compiler=no
5205 fi
5206
5207 case "$have_compiler:$host:$target:$enable_bootstrap" in
5208   *:*:*:no) ;;
5209
5210   # Default behavior.  Enable bootstrap if we have a compiler
5211   # and we are in a native configuration.
5212   yes:$build:$build:default)
5213     enable_bootstrap=yes ;;
5214
5215   *:*:*:default)
5216     enable_bootstrap=no ;;
5217
5218   # We have a compiler and we are in a native configuration, bootstrap is ok
5219   yes:$build:$build:yes)
5220     ;;
5221
5222   # Other configurations, but we have a compiler.  Assume the user knows
5223   # what he's doing.
5224   yes:*:*:yes)
5225     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5226 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5227     ;;
5228
5229   # No compiler: if they passed --enable-bootstrap explicitly, fail
5230   no:*:*:yes)
5231     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5232
5233   # Fail if wrong command line
5234   *)
5235     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5236     ;;
5237 esac
5238
5239 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5240 # C++98 compiler can still start the bootstrap.
5241 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5242   CXX="$CXX -std=gnu++98"
5243 fi
5244
5245 # Used for setting $lt_cv_objdir
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5247 $as_echo_n "checking for objdir... " >&6; }
5248 if test "${lt_cv_objdir+set}" = set; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   rm -f .libs 2>/dev/null
5252 mkdir .libs 2>/dev/null
5253 if test -d .libs; then
5254   lt_cv_objdir=.libs
5255 else
5256   # MS-DOS does not allow filenames that begin with a dot.
5257   lt_cv_objdir=_libs
5258 fi
5259 rmdir .libs 2>/dev/null
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5262 $as_echo "$lt_cv_objdir" >&6; }
5263 objdir=$lt_cv_objdir
5264
5265
5266
5267
5268
5269 cat >>confdefs.h <<_ACEOF
5270 #define LT_OBJDIR "$lt_cv_objdir/"
5271 _ACEOF
5272
5273
5274
5275 # Check for GMP, MPFR and MPC
5276 gmplibs="-lmpc -lmpfr -lgmp"
5277 gmpinc=
5278 have_gmp=no
5279
5280 # Specify a location for mpc
5281 # check for this first so it ends up on the link line before mpfr.
5282
5283 # Check whether --with-mpc was given.
5284 if test "${with_mpc+set}" = set; then :
5285   withval=$with_mpc;
5286 fi
5287
5288
5289 # Check whether --with-mpc-include was given.
5290 if test "${with_mpc_include+set}" = set; then :
5291   withval=$with_mpc_include;
5292 fi
5293
5294
5295 # Check whether --with-mpc-lib was given.
5296 if test "${with_mpc_lib+set}" = set; then :
5297   withval=$with_mpc_lib;
5298 fi
5299
5300
5301 if test "x$with_mpc" != x; then
5302   gmplibs="-L$with_mpc/lib $gmplibs"
5303   gmpinc="-I$with_mpc/include $gmpinc"
5304 fi
5305 if test "x$with_mpc_include" != x; then
5306   gmpinc="-I$with_mpc_include $gmpinc"
5307 fi
5308 if test "x$with_mpc_lib" != x; then
5309   gmplibs="-L$with_mpc_lib $gmplibs"
5310 fi
5311 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5312   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5313   gmpinc='-I$$s/mpc/src '"$gmpinc"
5314   # Do not test the mpc version.  Assume that it is sufficient, since
5315   # it is in the source tree, and the library has not been built yet
5316   # but it would be included on the link line in the version check below
5317   # hence making the test fail.
5318   have_gmp=yes
5319 fi
5320
5321 # Specify a location for mpfr
5322 # check for this first so it ends up on the link line before gmp.
5323
5324 # Check whether --with-mpfr-dir was given.
5325 if test "${with_mpfr_dir+set}" = set; then :
5326   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5327 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5328 fi
5329
5330
5331
5332 # Check whether --with-mpfr was given.
5333 if test "${with_mpfr+set}" = set; then :
5334   withval=$with_mpfr;
5335 fi
5336
5337
5338 # Check whether --with-mpfr-include was given.
5339 if test "${with_mpfr_include+set}" = set; then :
5340   withval=$with_mpfr_include;
5341 fi
5342
5343
5344 # Check whether --with-mpfr-lib was given.
5345 if test "${with_mpfr_lib+set}" = set; then :
5346   withval=$with_mpfr_lib;
5347 fi
5348
5349
5350 if test "x$with_mpfr" != x; then
5351   gmplibs="-L$with_mpfr/lib $gmplibs"
5352   gmpinc="-I$with_mpfr/include $gmpinc"
5353 fi
5354 if test "x$with_mpfr_include" != x; then
5355   gmpinc="-I$with_mpfr_include $gmpinc"
5356 fi
5357 if test "x$with_mpfr_lib" != x; then
5358   gmplibs="-L$with_mpfr_lib $gmplibs"
5359 fi
5360 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5361   # MPFR v3.1.0 moved the sources into a src sub-directory.
5362   if ! test -d ${srcdir}/mpfr/src; then
5363     as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5364   fi
5365   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5366   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5367   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5368   # Do not test the mpfr version.  Assume that it is sufficient, since
5369   # it is in the source tree, and the library has not been built yet
5370   # but it would be included on the link line in the version check below
5371   # hence making the test fail.
5372   have_gmp=yes
5373 fi
5374
5375 # Specify a location for gmp
5376
5377 # Check whether --with-gmp-dir was given.
5378 if test "${with_gmp_dir+set}" = set; then :
5379   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5380 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5381 fi
5382
5383
5384
5385 # Check whether --with-gmp was given.
5386 if test "${with_gmp+set}" = set; then :
5387   withval=$with_gmp;
5388 fi
5389
5390
5391 # Check whether --with-gmp-include was given.
5392 if test "${with_gmp_include+set}" = set; then :
5393   withval=$with_gmp_include;
5394 fi
5395
5396
5397 # Check whether --with-gmp-lib was given.
5398 if test "${with_gmp_lib+set}" = set; then :
5399   withval=$with_gmp_lib;
5400 fi
5401
5402
5403
5404 if test "x$with_gmp" != x; then
5405   gmplibs="-L$with_gmp/lib $gmplibs"
5406   gmpinc="-I$with_gmp/include $gmpinc"
5407 fi
5408 if test "x$with_gmp_include" != x; then
5409   gmpinc="-I$with_gmp_include $gmpinc"
5410 fi
5411 if test "x$with_gmp_lib" != x; then
5412   gmplibs="-L$with_gmp_lib $gmplibs"
5413 fi
5414 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5415   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5416   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5417   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5418   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5419   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5420   # Do not test the gmp version.  Assume that it is sufficient, since
5421   # it is in the source tree, and the library has not been built yet
5422   # but it would be included on the link line in the version check below
5423   # hence making the test fail.
5424   have_gmp=yes
5425 fi
5426
5427 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5428   have_gmp=yes
5429   saved_CFLAGS="$CFLAGS"
5430   CFLAGS="$CFLAGS $gmpinc"
5431   # Check for the recommended and required versions of GMP.
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5433 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5434
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h.  */
5437 #include "gmp.h"
5438 int
5439 main ()
5440 {
5441
5442   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5443   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5444   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5445   choke me
5446   #endif
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h.  */
5455 #include <gmp.h>
5456 int
5457 main ()
5458 {
5459
5460   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5461   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5462   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5463   choke me
5464   #endif
5465
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5475 $as_echo "buggy but acceptable" >&6; }
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }; have_gmp=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483
5484   # If we have GMP, check the MPFR version.
5485   if test x"$have_gmp" = xyes; then
5486     # Check for the recommended and required versions of MPFR.
5487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5488 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h.  */
5491 #include <gmp.h>
5492     #include <mpfr.h>
5493 int
5494 main ()
5495 {
5496
5497     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5498     choke me
5499     #endif
5500
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h.  */
5508 #include <gmp.h>
5509     #include <mpfr.h>
5510 int
5511 main ()
5512 {
5513
5514     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5515     choke me
5516     #endif
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5524 $as_echo "yes" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5527 $as_echo "buggy but acceptable" >&6; }
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 else
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }; have_gmp=no
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535   fi
5536
5537   # Check for the MPC header version.
5538   if test x"$have_gmp" = xyes ; then
5539     # Check for the recommended and required versions of MPC.
5540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5541 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h.  */
5544 #include <mpc.h>
5545 int
5546 main ()
5547 {
5548
5549     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5550     choke me
5551     #endif
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h.  */
5560 #include <mpc.h>
5561 int
5562 main ()
5563 {
5564
5565     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5566     choke me
5567     #endif
5568
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5578 $as_echo "buggy but acceptable" >&6; }
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }; have_gmp=no
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586   fi
5587
5588   # Now check the MPFR library.
5589   if test x"$have_gmp" = xyes; then
5590     saved_LIBS="$LIBS"
5591     LIBS="$LIBS $gmplibs"
5592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5593 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h.  */
5596 #include <mpc.h>
5597 int
5598 main ()
5599 {
5600
5601     mpfr_t n;
5602     mpfr_t x;
5603     mpc_t c;
5604     int t;
5605     mpfr_init (n);
5606     mpfr_init (x);
5607     mpfr_atan2 (n, n, x, GMP_RNDN);
5608     mpfr_erfc (n, x, GMP_RNDN);
5609     mpfr_subnormalize (x, t, GMP_RNDN);
5610     mpfr_clear(n);
5611     mpfr_clear(x);
5612     mpc_init2 (c, 53);
5613     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5614     mpc_cosh (c, c, MPC_RNDNN);
5615     mpc_pow (c, c, c, MPC_RNDNN);
5616     mpc_acosh (c, c, MPC_RNDNN);
5617     mpc_clear (c);
5618
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 if ac_fn_c_try_link "$LINENO"; then :
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625 $as_echo "yes" >&6; }
5626 else
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }; have_gmp=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext \
5631     conftest$ac_exeext conftest.$ac_ext
5632     LIBS="$saved_LIBS"
5633   fi
5634
5635   CFLAGS="$saved_CFLAGS"
5636
5637 # The library versions listed in the error message below should match
5638 # the HARD-minimums enforced above.
5639   if test x$have_gmp != xyes; then
5640     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5641 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5642 their locations.  Source code for these libraries can be found at
5643 their respective hosting sites as well as at
5644 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5645 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5646 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5647 make sure that you have installed both the libraries and the header
5648 files.  They may be located in separate packages." "$LINENO" 5
5649   fi
5650 fi
5651
5652 # Flags needed for both GMP, MPFR and/or MPC.
5653
5654
5655
5656
5657
5658
5659
5660 # Libraries to use for stage1 or when not bootstrapping.
5661
5662 # Check whether --with-stage1-libs was given.
5663 if test "${with_stage1_libs+set}" = set; then :
5664   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5665    stage1_libs=
5666  else
5667    stage1_libs=$withval
5668  fi
5669 else
5670   stage1_libs=
5671 fi
5672
5673
5674
5675 # Linker flags to use for stage1 or when not bootstrapping.
5676
5677 # Check whether --with-stage1-ldflags was given.
5678 if test "${with_stage1_ldflags+set}" = set; then :
5679   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5680    stage1_ldflags=
5681  else
5682    stage1_ldflags=$withval
5683  fi
5684 else
5685   stage1_ldflags=
5686  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5687  # if supported.  But if the user explicitly specified the libraries to use,
5688  # trust that they are doing what they want.
5689  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5690    stage1_ldflags="-static-libstdc++ -static-libgcc"
5691  fi
5692 fi
5693
5694
5695
5696 # Libraries to use for stage2 and later builds.
5697
5698 # Check whether --with-boot-libs was given.
5699 if test "${with_boot_libs+set}" = set; then :
5700   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5701    poststage1_libs=
5702  else
5703    poststage1_libs=$withval
5704  fi
5705 else
5706   poststage1_libs=
5707 fi
5708
5709
5710
5711 # Linker flags to use for stage2 and later builds.
5712
5713 # Check whether --with-boot-ldflags was given.
5714 if test "${with_boot_ldflags+set}" = set; then :
5715   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5716    poststage1_ldflags=
5717  else
5718    poststage1_ldflags=$withval
5719  fi
5720 else
5721   poststage1_ldflags=
5722  # In stages 2 and 3, default to linking libstdc++ and libgcc
5723  # statically.  But if the user explicitly specified the libraries to
5724  # use, trust that they are doing what they want.
5725  if test "$poststage1_libs" = ""; then
5726    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5727  fi
5728 fi
5729
5730
5731
5732 # GCC GRAPHITE dependency isl.
5733 # Basic setup is inlined here, actual checks are in config/isl.m4
5734
5735
5736 # Check whether --with-isl was given.
5737 if test "${with_isl+set}" = set; then :
5738   withval=$with_isl;
5739 fi
5740
5741
5742 # Treat --without-isl as a request to disable
5743 # GRAPHITE support and skip all following checks.
5744 if test "x$with_isl" != "xno"; then
5745   # Check for isl
5746
5747
5748 # Check whether --with-isl-include was given.
5749 if test "${with_isl_include+set}" = set; then :
5750   withval=$with_isl_include;
5751 fi
5752
5753
5754 # Check whether --with-isl-lib was given.
5755 if test "${with_isl_lib+set}" = set; then :
5756   withval=$with_isl_lib;
5757 fi
5758
5759
5760   # Check whether --enable-isl-version-check was given.
5761 if test "${enable_isl_version_check+set}" = set; then :
5762   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5763 else
5764   ENABLE_ISL_CHECK=yes
5765 fi
5766
5767
5768   # Initialize isllibs and islinc.
5769   case $with_isl in
5770     no)
5771       isllibs=
5772       islinc=
5773       ;;
5774     "" | yes)
5775       ;;
5776     *)
5777       isllibs="-L$with_isl/lib"
5778       islinc="-I$with_isl/include"
5779       ;;
5780   esac
5781   if test "x${with_isl_include}" != x ; then
5782     islinc="-I$with_isl_include"
5783   fi
5784   if test "x${with_isl_lib}" != x; then
5785     isllibs="-L$with_isl_lib"
5786   fi
5787         if test "x${islinc}" = x && test "x${isllibs}" = x \
5788      && test -d ${srcdir}/isl; then
5789     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5790     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5791     ENABLE_ISL_CHECK=no
5792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5793 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5794   fi
5795
5796   isllibs="${isllibs} -lisl"
5797
5798
5799
5800   if test "${ENABLE_ISL_CHECK}" = yes ; then
5801     _isl_saved_CFLAGS=$CFLAGS
5802     _isl_saved_LDFLAGS=$LDFLAGS
5803     _isl_saved_LIBS=$LIBS
5804
5805     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5806     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5807     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5808
5809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5810 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h.  */
5813 #include <isl/ctx.h>
5814 int
5815 main ()
5816 {
5817 isl_ctx_get_max_operations (isl_ctx_alloc ());
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823   gcc_cv_isl=yes
5824 else
5825   gcc_cv_isl=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828     conftest$ac_exeext conftest.$ac_ext
5829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5830 $as_echo "$gcc_cv_isl" >&6; }
5831
5832     if test "${gcc_cv_isl}" = no ; then
5833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5834 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5835     fi
5836
5837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5838 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841 #include <isl/schedule.h>
5842 int
5843 main ()
5844 {
5845 isl_options_set_schedule_serialize_sccs (NULL, 0);
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 if ac_fn_c_try_link "$LINENO"; then :
5851   ac_has_isl_options_set_schedule_serialize_sccs=yes
5852 else
5853   ac_has_isl_options_set_schedule_serialize_sccs=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext \
5856     conftest$ac_exeext conftest.$ac_ext
5857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5858 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5859
5860     if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5861       islver="0.15"
5862
5863     fi
5864
5865     CFLAGS=$_isl_saved_CFLAGS
5866     LDFLAGS=$_isl_saved_LDFLAGS
5867     LIBS=$_isl_saved_LIBS
5868   fi
5869
5870
5871
5872
5873
5874
5875   if test "x${with_isl}" = xno; then
5876     graphite_requested=no
5877   elif test "x${with_isl}" != x \
5878     || test "x${with_isl_include}" != x \
5879     || test "x${with_isl_lib}" != x ; then
5880     graphite_requested=yes
5881   else
5882     graphite_requested=no
5883   fi
5884
5885
5886
5887   if test "${gcc_cv_isl}" = no ; then
5888     isllibs=
5889     islinc=
5890   fi
5891
5892   if test "${graphite_requested}" = yes \
5893     && test "x${isllibs}" = x \
5894     && test "x${islinc}" = x ; then
5895
5896     as_fn_error "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
5897   fi
5898
5899
5900 fi
5901
5902 # If the isl check failed, disable builds of in-tree variant of isl
5903 if test "x$with_isl" = xno ||
5904    test "x$gcc_cv_isl" = xno; then
5905   noconfigdirs="$noconfigdirs isl"
5906   islinc=
5907 fi
5908
5909
5910
5911
5912 # Check for LTO support.
5913 # Check whether --enable-lto was given.
5914 if test "${enable_lto+set}" = set; then :
5915   enableval=$enable_lto; enable_lto=$enableval
5916 else
5917   enable_lto=yes; default_enable_lto=yes
5918 fi
5919
5920
5921
5922
5923
5924 target_elf=no
5925 case $target in
5926   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5927   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5928   alpha*-dec-osf* | hppa[12]*-*-hpux* | \
5929   nvptx-*-none)
5930     target_elf=no
5931     ;;
5932   *)
5933     target_elf=yes
5934     ;;
5935 esac
5936
5937 if test $target_elf = yes; then :
5938   # ELF platforms build the lto-plugin always.
5939   build_lto_plugin=yes
5940
5941 else
5942   if test x"$default_enable_lto" = x"yes" ; then
5943     case $target in
5944       *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
5945       # On other non-ELF platforms, LTO has yet to be validated.
5946       *) enable_lto=no ;;
5947     esac
5948   else
5949   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5950   # It would also be nice to check the binutils support, but we don't
5951   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5952   # warn during gcc/ subconfigure; unless you're bootstrapping with
5953   # -flto it won't be needed until after installation anyway.
5954     case $target in
5955       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
5956       *) if test x"$enable_lto" = x"yes"; then
5957         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5958         fi
5959       ;;
5960     esac
5961   fi
5962   # Among non-ELF, only Windows platforms support the lto-plugin so far.
5963   # Build it unless LTO was explicitly disabled.
5964   case $target in
5965     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5966     *) ;;
5967   esac
5968
5969 fi
5970
5971
5972 # Check whether --enable-linker-plugin-configure-flags was given.
5973 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
5974   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
5975 else
5976   extra_linker_plugin_configure_flags=
5977 fi
5978
5979
5980 # Check whether --enable-linker-plugin-flags was given.
5981 if test "${enable_linker_plugin_flags+set}" = set; then :
5982   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
5983 else
5984   extra_linker_plugin_flags=
5985 fi
5986
5987
5988
5989
5990 # By default, C and C++ are the only stage 1 languages.
5991 stage1_languages=,c,
5992
5993 # Target libraries that we bootstrap.
5994 bootstrap_target_libs=,target-libgcc,
5995
5996 # Figure out what language subdirectories are present.
5997 # Look if the user specified --enable-languages="..."; if not, use
5998 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5999 # go away some day.
6000 # NB:  embedded tabs in this IF block -- do not untabify
6001 if test -d ${srcdir}/gcc; then
6002   if test x"${enable_languages+set}" != xset; then
6003     if test x"${LANGUAGES+set}" = xset; then
6004       enable_languages="${LANGUAGES}"
6005         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6006     else
6007       enable_languages=all
6008     fi
6009   else
6010     if test x"${enable_languages}" = x ||
6011        test x"${enable_languages}" = xyes;
6012        then
6013       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6014       exit 1
6015     fi
6016   fi
6017   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6018
6019   # 'f95' is the old name for the 'fortran' language. We issue a warning
6020   # and make the substitution.
6021   case ,${enable_languages}, in
6022     *,f95,*)
6023       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6024       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6025       ;;
6026   esac
6027
6028   # If bootstrapping, C++ must be enabled.
6029   case ",$enable_languages,:$enable_bootstrap" in
6030     *,c++,*:*) ;;
6031     *:yes)
6032       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6033         enable_languages="${enable_languages},c++"
6034       else
6035         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6036       fi
6037       ;;
6038   esac
6039
6040   # First scan to see if an enabled language requires some other language.
6041   # We assume that a given config-lang.in will list all the language
6042   # front ends it requires, even if some are required indirectly.
6043   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6044     case ${lang_frag} in
6045       ..) ;;
6046       # The odd quoting in the next line works around
6047       # an apparent bug in bash 1.12 on linux.
6048       ${srcdir}/gcc/[*]/config-lang.in) ;;
6049       *)
6050         # From the config-lang.in, get $language, $lang_requires, and
6051         # $lang_requires_boot_languages.
6052         language=
6053         lang_requires=
6054         lang_requires_boot_languages=
6055         . ${lang_frag}
6056         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6057           case ,${enable_languages}, in
6058             *,$other,*) ;;
6059             *,all,*) ;;
6060             *,$language,*)
6061               echo " \`$other' language required by \`$language'; enabling" 1>&2
6062               enable_languages="${enable_languages},${other}"
6063               ;;
6064           esac
6065         done
6066         for other in ${lang_requires_boot_languages} ; do
6067           if test "$other" != "c"; then
6068             case ,${enable_stage1_languages}, in
6069               *,$other,*) ;;
6070               *,all,*) ;;
6071               *)
6072                 case ,${enable_languages}, in
6073                   *,$language,*)
6074                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6075                     enable_stage1_languages="$enable_stage1_languages,${other}"
6076                     ;;
6077                 esac
6078                 ;;
6079             esac
6080           fi
6081         done
6082         ;;
6083     esac
6084   done
6085
6086   new_enable_languages=,c,
6087
6088   # If LTO is enabled, add the LTO front end.
6089   if test "$enable_lto" = "yes" ; then
6090     case ,${enable_languages}, in
6091       *,lto,*) ;;
6092       *) enable_languages="${enable_languages},lto" ;;
6093     esac
6094     if test "${build_lto_plugin}" = "yes" ; then
6095       configdirs="$configdirs lto-plugin"
6096     fi
6097   fi
6098
6099   # If we're building an offloading compiler, add the LTO front end.
6100   if test x"$enable_as_accelerator_for" != x ; then
6101     case ,${enable_languages}, in
6102       *,lto,*) ;;
6103       *) enable_languages="${enable_languages},lto" ;;
6104     esac
6105   fi
6106
6107   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6108   potential_languages=,c,
6109
6110   enabled_target_libs=
6111   disabled_target_libs=
6112
6113   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6114     case ${lang_frag} in
6115       ..) ;;
6116       # The odd quoting in the next line works around
6117       # an apparent bug in bash 1.12 on linux.
6118       ${srcdir}/gcc/[*]/config-lang.in) ;;
6119       *)
6120         # From the config-lang.in, get $language, $target_libs,
6121         # $lang_dirs, $boot_language, and $build_by_default
6122         language=
6123         target_libs=
6124         lang_dirs=
6125         subdir_requires=
6126         boot_language=no
6127         build_by_default=yes
6128         . ${lang_frag}
6129         if test x${language} = x; then
6130           echo "${lang_frag} doesn't set \$language." 1>&2
6131           exit 1
6132         fi
6133
6134         if test "$language" = "c++"; then
6135           boot_language=yes
6136         fi
6137
6138         add_this_lang=no
6139         case ,${enable_languages}, in
6140           *,${language},*)
6141             # Language was explicitly selected; include it
6142             # unless it is C, which is enabled by default.
6143             if test "$language" != "c"; then
6144               add_this_lang=yes
6145             fi
6146             ;;
6147           *,all,*)
6148             # 'all' was selected, select it if it is a default language
6149             if test "$language" != "c"; then
6150               add_this_lang=${build_by_default}
6151             fi
6152             ;;
6153         esac
6154
6155         # Disable languages that need other directories if these aren't available.
6156         for i in $subdir_requires; do
6157           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6158           case ,${enable_languages}, in
6159             *,${language},*)
6160               # Specifically requested language; tell them.
6161               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6162               ;;
6163             *)
6164               # Silently disable.
6165               add_this_lang=unsupported
6166               ;;
6167           esac
6168         done
6169
6170         # Disable Ada if no preexisting GNAT is available.
6171         case ,${enable_languages},:${language}:${have_gnat} in
6172           *,${language},*:ada:no)
6173             # Specifically requested language; tell them.
6174             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6175             ;;
6176           *:ada:no)
6177             # Silently disable.
6178             add_this_lang=unsupported
6179             ;;
6180         esac
6181
6182         # Disable a language that is unsupported by the target.
6183         case " $unsupported_languages " in
6184           *" $language "*)
6185             add_this_lang=unsupported
6186             ;;
6187         esac
6188
6189         case $add_this_lang in
6190           unsupported)
6191             # Remove language-dependent dirs.
6192             disabled_target_libs="$disabled_target_libs $target_libs"
6193             noconfigdirs="$noconfigdirs $lang_dirs"
6194             ;;
6195           no)
6196             # Remove language-dependent dirs; still show language as supported.
6197             disabled_target_libs="$disabled_target_libs $target_libs"
6198             noconfigdirs="$noconfigdirs $lang_dirs"
6199             potential_languages="${potential_languages}${language},"
6200             ;;
6201           yes)
6202             new_enable_languages="${new_enable_languages}${language},"
6203             potential_languages="${potential_languages}${language},"
6204             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6205             enabled_target_libs="$enabled_target_libs $target_libs"
6206             case "${boot_language}:,$enable_stage1_languages," in
6207               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6208                 # Add to (comma-separated) list of stage 1 languages.
6209                 case ",$stage1_languages," in
6210                   *,$language,* | ,yes, | ,all,) ;;
6211                   *) stage1_languages="${stage1_languages}${language}," ;;
6212                 esac
6213                 # We need to bootstrap any supporting libraries.
6214                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6215                 ;;
6216             esac
6217             ;;
6218         esac
6219         ;;
6220     esac
6221   done
6222
6223   # Add target libraries which are only needed for disabled languages
6224   # to noconfigdirs.
6225   if test -n "$disabled_target_libs"; then
6226     for dir in $disabled_target_libs; do
6227       case " $enabled_target_libs " in
6228       *" ${dir} "*) ;;
6229       *) noconfigdirs="$noconfigdirs $dir" ;;
6230       esac
6231     done
6232   fi
6233
6234   # Check whether --enable-stage1-languages was given.
6235 if test "${enable_stage1_languages+set}" = set; then :
6236   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6237     ,no,|,,)
6238       # Set it to something that will have no effect in the loop below
6239       enable_stage1_languages=c ;;
6240     ,yes,)
6241       enable_stage1_languages=`echo $new_enable_languages | \
6242         sed -e "s/^,//" -e "s/,$//" ` ;;
6243     *,all,*)
6244       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6245         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6246   esac
6247
6248   # Add "good" languages from enable_stage1_languages to stage1_languages,
6249   # while "bad" languages go in missing_languages.  Leave no duplicates.
6250   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6251     case $potential_languages in
6252       *,$i,*)
6253         case $stage1_languages in
6254           *,$i,*) ;;
6255           *) stage1_languages="$stage1_languages$i," ;;
6256         esac ;;
6257       *)
6258         case $missing_languages in
6259           *,$i,*) ;;
6260           *) missing_languages="$missing_languages$i," ;;
6261         esac ;;
6262      esac
6263   done
6264 fi
6265
6266
6267   # Remove leading/trailing commas that were added for simplicity
6268   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6269   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6270   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6271   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6272
6273   if test "x$missing_languages" != x; then
6274     as_fn_error "
6275 The following requested languages could not be built: ${missing_languages}
6276 Supported languages are: ${potential_languages}" "$LINENO" 5
6277   fi
6278   if test "x$new_enable_languages" != "x$enable_languages"; then
6279     echo The following languages will be built: ${new_enable_languages}
6280     enable_languages="$new_enable_languages"
6281   fi
6282
6283
6284   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6285 fi
6286
6287 # Handle --disable-<component> generically.
6288 for dir in $configdirs $build_configdirs $target_configdirs ; do
6289   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6290   varname=`echo $dirname | sed -e s/+/_/g`
6291   if eval test x\${enable_${varname}} "=" xno ; then
6292     noconfigdirs="$noconfigdirs $dir"
6293   fi
6294 done
6295
6296 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6297 case ,${enable_languages}, in
6298   *,c++,*)
6299     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6300     case "${noconfigdirs}" in
6301       *target-libstdc++-v3*)
6302         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6303         ;;
6304       *) ;;
6305     esac
6306     ;;
6307   *)
6308     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6309     ;;
6310 esac
6311
6312 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6313 # $build_configdirs and $target_configdirs.
6314 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6315
6316 notsupp=""
6317 for dir in . $skipdirs $noconfigdirs ; do
6318   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6319   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6320     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6321     if test -r $srcdir/$dirname/configure ; then
6322       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6323         true
6324       else
6325         notsupp="$notsupp $dir"
6326       fi
6327     fi
6328   fi
6329   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6330     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6331     if test -r $srcdir/$dirname/configure ; then
6332       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6333         true
6334       else
6335         notsupp="$notsupp $dir"
6336       fi
6337     fi
6338   fi
6339   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6341     if test -r $srcdir/$dirname/configure ; then
6342       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6343         true
6344       else
6345         notsupp="$notsupp $dir"
6346       fi
6347     fi
6348   fi
6349 done
6350
6351 # Quietly strip out all directories which aren't configurable in this tree.
6352 # This relies on all configurable subdirectories being autoconfiscated, which
6353 # is now the case.
6354 build_configdirs_all="$build_configdirs"
6355 build_configdirs=
6356 for i in ${build_configdirs_all} ; do
6357   j=`echo $i | sed -e s/build-//g`
6358   if test -f ${srcdir}/$j/configure ; then
6359     build_configdirs="${build_configdirs} $i"
6360   fi
6361 done
6362
6363 configdirs_all="$configdirs"
6364 configdirs=
6365 for i in ${configdirs_all} ; do
6366   if test -f ${srcdir}/$i/configure ; then
6367     configdirs="${configdirs} $i"
6368   fi
6369 done
6370
6371 target_configdirs_all="$target_configdirs"
6372 target_configdirs=
6373 for i in ${target_configdirs_all} ; do
6374   j=`echo $i | sed -e s/target-//g`
6375   if test -f ${srcdir}/$j/configure ; then
6376     target_configdirs="${target_configdirs} $i"
6377   fi
6378 done
6379
6380 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6381 # so we have to add it after the preceding checks.
6382 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6383 then
6384   case " $configdirs " in
6385     *" libiberty "*)
6386       # If we can build libiberty, we can also build libiberty-linker-plugin.
6387       configdirs="$configdirs libiberty-linker-plugin"
6388       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6389         --with-libiberty=../libiberty-linker-plugin";;
6390     *)
6391       as_fn_error "libiberty missing" "$LINENO" 5;;
6392   esac
6393 fi
6394
6395 # Sometimes we have special requirements for the host libiberty.
6396 extra_host_libiberty_configure_flags=
6397 extra_host_zlib_configure_flags=
6398 case " $configdirs " in
6399   *" lto-plugin "* | *" libcc1 "*)
6400     # When these are to be built as shared libraries, the same applies to
6401     # libiberty.
6402     extra_host_libiberty_configure_flags=--enable-shared
6403     ;;
6404   *" bfd "*)
6405     # When bfd is to be built as a shared library, the same applies to
6406     # zlib.
6407     if test "$enable_shared" = "yes"; then
6408       extra_host_zlib_configure_flags=--enable-host-shared
6409     fi
6410     ;;
6411 esac
6412
6413
6414
6415 # Produce a warning message for the subdirs we can't configure.
6416 # This isn't especially interesting in the Cygnus tree, but in the individual
6417 # FSF releases, it's important to let people know when their machine isn't
6418 # supported by the one or two programs in a package.
6419
6420 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6421   # If $appdirs is non-empty, at least one of those directories must still
6422   # be configured, or we error out.  (E.g., if the gas release supports a
6423   # specified target in some subdirs but not the gas subdir, we shouldn't
6424   # pretend that all is well.)
6425   if test -n "$appdirs" ; then
6426     for dir in $appdirs ; do
6427       if test -r $dir/Makefile.in ; then
6428         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6429           appdirs=""
6430           break
6431         fi
6432         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6433           appdirs=""
6434           break
6435         fi
6436       fi
6437     done
6438     if test -n "$appdirs" ; then
6439       echo "*** This configuration is not supported by this package." 1>&2
6440       exit 1
6441     fi
6442   fi
6443   # Okay, some application will build, or we don't care to check.  Still
6444   # notify of subdirs not getting built.
6445   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6446   echo "    ${notsupp}" 1>&2
6447   echo "    (Any other directories should still work fine.)" 1>&2
6448 fi
6449
6450 case "$host" in
6451   *msdosdjgpp*)
6452     enable_gdbtk=no ;;
6453 esac
6454
6455 # To find our prefix, in gcc_cv_tool_prefix.
6456
6457 # The user is always right.
6458 if test "${PATH_SEPARATOR+set}" != set; then
6459   echo "#! /bin/sh" >conf$$.sh
6460   echo  "exit 0"   >>conf$$.sh
6461   chmod +x conf$$.sh
6462   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6463     PATH_SEPARATOR=';'
6464   else
6465     PATH_SEPARATOR=:
6466   fi
6467   rm -f conf$$.sh
6468 fi
6469
6470
6471
6472 if test "x$exec_prefix" = xNONE; then
6473         if test "x$prefix" = xNONE; then
6474                 gcc_cv_tool_prefix=$ac_default_prefix
6475         else
6476                 gcc_cv_tool_prefix=$prefix
6477         fi
6478 else
6479         gcc_cv_tool_prefix=$exec_prefix
6480 fi
6481
6482 # If there is no compiler in the tree, use the PATH only.  In any
6483 # case, if there is no compiler in the tree nobody should use
6484 # AS_FOR_TARGET and LD_FOR_TARGET.
6485 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6486     gcc_version=`cat $srcdir/gcc/BASE-VER`
6487     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6488     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6489     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6490     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6491     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6492     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6493 else
6494     gcc_cv_tool_dirs=
6495 fi
6496
6497 if test x$build = x$target && test -n "$md_exec_prefix"; then
6498         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6499 fi
6500
6501
6502
6503 copy_dirs=
6504
6505
6506 # Check whether --with-build-sysroot was given.
6507 if test "${with_build_sysroot+set}" = set; then :
6508   withval=$with_build_sysroot; if test x"$withval" != x ; then
6509      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6510    fi
6511 else
6512   SYSROOT_CFLAGS_FOR_TARGET=
6513 fi
6514
6515
6516
6517
6518 # Check whether --with-debug-prefix-map was given.
6519 if test "${with_debug_prefix_map+set}" = set; then :
6520   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6521      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6522      for debug_map in $withval; do
6523        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6524      done
6525    fi
6526 else
6527   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6528 fi
6529
6530
6531
6532 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6533 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6534 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6535 # We want to ensure that TARGET libraries (which we know are built with
6536 # gcc) are built with "-O2 -g", so include those options when setting
6537 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6538 if test "x$CFLAGS_FOR_TARGET" = x; then
6539   if test "x${is_cross_compiler}" = xyes; then
6540     CFLAGS_FOR_TARGET="-g -O2"
6541   else
6542     CFLAGS_FOR_TARGET=$CFLAGS
6543     case " $CFLAGS " in
6544       *" -O2 "*) ;;
6545       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6546     esac
6547     case " $CFLAGS " in
6548       *" -g "* | *" -g3 "*) ;;
6549       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6550     esac
6551   fi
6552 fi
6553
6554
6555 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6556   if test "x${is_cross_compiler}" = xyes; then
6557     CXXFLAGS_FOR_TARGET="-g -O2"
6558   else
6559     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6560     case " $CXXFLAGS " in
6561       *" -O2 "*) ;;
6562       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6563     esac
6564     case " $CXXFLAGS " in
6565       *" -g "* | *" -g3 "*) ;;
6566       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6567     esac
6568   fi
6569 fi
6570
6571
6572
6573
6574 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6575 # the named directory are copied to $(tooldir)/sys-include.
6576 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6577   if test x${is_cross_compiler} = xno ; then
6578     echo 1>&2 '***' --with-headers is only supported when cross compiling
6579     exit 1
6580   fi
6581   if test x"${with_headers}" != xyes ; then
6582     x=${gcc_cv_tool_prefix}
6583     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6584   fi
6585 fi
6586
6587 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6588 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6589 # are permitted.
6590 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6591   if test x${is_cross_compiler} = xno ; then
6592     echo 1>&2 '***' --with-libs is only supported when cross compiling
6593     exit 1
6594   fi
6595   if test x"${with_libs}" != xyes ; then
6596     # Copy the libraries in reverse order, so that files in the first named
6597     # library override files in subsequent libraries.
6598     x=${gcc_cv_tool_prefix}
6599     for l in ${with_libs}; do
6600       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6601     done
6602   fi
6603 fi
6604
6605 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6606 #
6607 # This is done by determining whether or not the appropriate directory
6608 # is available, and by checking whether or not specific configurations
6609 # have requested that this magic not happen.
6610 #
6611 # The command line options always override the explicit settings in
6612 # configure.ac, and the settings in configure.ac override this magic.
6613 #
6614 # If the default for a toolchain is to use GNU as and ld, and you don't
6615 # want to do that, then you should use the --without-gnu-as and
6616 # --without-gnu-ld options for the configure script.  Similarly, if
6617 # the default is to use the included zlib and you don't want to do that,
6618 # you should use the --with-system-zlib option for the configure script.
6619
6620 if test x${use_gnu_as} = x &&
6621    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6622   with_gnu_as=yes
6623   extra_host_args="$extra_host_args --with-gnu-as"
6624 fi
6625
6626 if test x${use_gnu_ld} = x &&
6627    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6628   with_gnu_ld=yes
6629   extra_host_args="$extra_host_args --with-gnu-ld"
6630 fi
6631
6632 if test x${use_included_zlib} = x &&
6633    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6634   :
6635 else
6636   with_system_zlib=yes
6637   extra_host_args="$extra_host_args --with-system-zlib"
6638 fi
6639
6640 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6641 # can detect this case.
6642
6643 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6644   with_newlib=yes
6645   extra_host_args="$extra_host_args --with-newlib"
6646 fi
6647
6648 # Handle ${copy_dirs}
6649 set fnord ${copy_dirs}
6650 shift
6651 while test $# != 0 ; do
6652   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6653     :
6654   else
6655     echo Copying $1 to $2
6656
6657     # Use the install script to create the directory and all required
6658     # parent directories.
6659     if test -d $2 ; then
6660       :
6661     else
6662       echo >config.temp
6663       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6664     fi
6665
6666     # Copy the directory, assuming we have tar.
6667     # FIXME: Should we use B in the second tar?  Not all systems support it.
6668     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6669
6670     # It is the responsibility of the user to correctly adjust all
6671     # symlinks.  If somebody can figure out how to handle them correctly
6672     # here, feel free to add the code.
6673
6674     echo $1 > $2/COPIED
6675   fi
6676   shift; shift
6677 done
6678
6679 # Determine a target-dependent exec_prefix that the installed
6680 # gcc will search in.  Keep this list sorted by triplet, with
6681 # the *-*-osname triplets last.
6682 md_exec_prefix=
6683 case "${target}" in
6684   i[34567]86-pc-msdosdjgpp*)
6685     md_exec_prefix=/dev/env/DJDIR/bin
6686     ;;
6687   *-*-hpux* | \
6688   *-*-nto-qnx* | \
6689   *-*-solaris2*)
6690     md_exec_prefix=/usr/ccs/bin
6691     ;;
6692 esac
6693
6694 extra_arflags_for_target=
6695 extra_nmflags_for_target=
6696 extra_ranlibflags_for_target=
6697 target_makefile_frag=/dev/null
6698 case "${target}" in
6699   spu-*-*)
6700     target_makefile_frag="config/mt-spu"
6701     ;;
6702   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6703     target_makefile_frag="config/mt-sde"
6704     ;;
6705   mipsisa*-*-elfoabi*)
6706     target_makefile_frag="config/mt-mips-elfoabi"
6707     ;;
6708   mips*-*-*linux* | mips*-*-gnu*)
6709     target_makefile_frag="config/mt-mips-gnu"
6710     ;;
6711   nios2-*-elf*)
6712     target_makefile_frag="config/mt-nios2-elf"
6713     ;;
6714   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6715     target_makefile_frag="config/mt-gnu"
6716     ;;
6717   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6718     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6719     # commands to handle both 32-bit and 64-bit objects.  These flags are
6720     # harmless if we're using GNU nm or ar.
6721     extra_arflags_for_target=" -X32_64"
6722     extra_nmflags_for_target=" -B -X32_64"
6723     ;;
6724 esac
6725
6726 alphaieee_frag=/dev/null
6727 case $target in
6728   alpha*-*-*)
6729     # This just makes sure to use the -mieee option to build target libs.
6730     # This should probably be set individually by each library.
6731     alphaieee_frag="config/mt-alphaieee"
6732     ;;
6733 esac
6734
6735 # If --enable-target-optspace always use -Os instead of -O2 to build
6736 # the target libraries, similarly if it is not specified, use -Os
6737 # on selected platforms.
6738 ospace_frag=/dev/null
6739 case "${enable_target_optspace}:${target}" in
6740   yes:*)
6741     ospace_frag="config/mt-ospace"
6742     ;;
6743   :d30v-*)
6744     ospace_frag="config/mt-d30v"
6745     ;;
6746   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6747     ospace_frag="config/mt-ospace"
6748     ;;
6749   no:* | :*)
6750     ;;
6751   *)
6752     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6753     ;;
6754 esac
6755
6756 # Some systems (e.g., one of the i386-aix systems the gas testers are
6757 # using) don't handle "\$" correctly, so don't use it here.
6758 tooldir='${exec_prefix}'/${target_noncanonical}
6759 build_tooldir=${tooldir}
6760
6761 # Create a .gdbinit file which runs the one in srcdir
6762 # and tells GDB to look there for source files.
6763
6764 if test -r ${srcdir}/.gdbinit ; then
6765   case ${srcdir} in
6766     .) ;;
6767     *) cat > ./.gdbinit <<EOF
6768 # ${NO_EDIT}
6769 dir ${srcdir}
6770 dir .
6771 source ${srcdir}/.gdbinit
6772 EOF
6773     ;;
6774   esac
6775 fi
6776
6777 # Make sure that the compiler is able to generate an executable.  If it
6778 # can't, we are probably in trouble.  We don't care whether we can run the
6779 # executable--we might be using a cross compiler--we only care whether it
6780 # can be created.  At this point the main configure script has set CC.
6781 we_are_ok=no
6782 echo "int main () { return 0; }" > conftest.c
6783 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6784 if test $? = 0 ; then
6785   if test -s conftest || test -s conftest.exe ; then
6786     we_are_ok=yes
6787   fi
6788 fi
6789 case $we_are_ok in
6790   no)
6791     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6792     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6793     rm -f conftest*
6794     exit 1
6795     ;;
6796 esac
6797 rm -f conftest*
6798
6799 # Decide which environment variable is used to find dynamic libraries.
6800 case "${host}" in
6801   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6802   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6803   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6804   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6805 esac
6806
6807 # On systems where the dynamic library environment variable is PATH,
6808 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6809 # built executables to PATH.
6810 if test "$RPATH_ENVVAR" = PATH; then
6811   GCC_SHLIB_SUBDIR=/shlib
6812 else
6813   GCC_SHLIB_SUBDIR=
6814 fi
6815
6816 # Adjust the toplevel makefile according to whether bootstrap was selected.
6817 case $enable_bootstrap in
6818   yes)
6819     bootstrap_suffix=bootstrap
6820     BUILD_CONFIG=bootstrap-debug
6821     ;;
6822   no)
6823     bootstrap_suffix=no-bootstrap
6824     BUILD_CONFIG=
6825     ;;
6826 esac
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6829 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6830
6831
6832 # Check whether --with-build-config was given.
6833 if test "${with_build_config+set}" = set; then :
6834   withval=$with_build_config; case $with_build_config in
6835    yes) with_build_config= ;;
6836    no) with_build_config= BUILD_CONFIG= ;;
6837    esac
6838 fi
6839
6840
6841 if test "x${with_build_config}" != x; then
6842   BUILD_CONFIG=$with_build_config
6843 else
6844   case $BUILD_CONFIG in
6845   bootstrap-debug)
6846     if echo "int f (void) { return 0; }" > conftest.c &&
6847        ${CC} -c conftest.c &&
6848        mv conftest.o conftest.o.g0 &&
6849        ${CC} -c -g conftest.c &&
6850        mv conftest.o conftest.o.g &&
6851        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6852       :
6853     else
6854       BUILD_CONFIG=
6855     fi
6856     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6857     ;;
6858   esac
6859 fi
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6861 $as_echo "$BUILD_CONFIG" >&6; }
6862
6863
6864 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6866 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6867 # Check whether --enable-vtable-verify was given.
6868 if test "${enable_vtable_verify+set}" = set; then :
6869   enableval=$enable_vtable_verify; case "$enableval" in
6870  yes) enable_vtable_verify=yes ;;
6871  no)  enable_vtable_verify=no ;;
6872  *)   enable_vtable_verify=no;;
6873  esac
6874 else
6875   enable_vtable_verify=no
6876 fi
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6879 $as_echo "$enable_vtable_verify" >&6; }
6880
6881 # Record target_configdirs and the configure arguments for target and
6882 # build configuration in Makefile.
6883 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6884 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6885 bootstrap_fixincludes=no
6886
6887 # If we are building libgomp, bootstrap it.
6888 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6889   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6890 fi
6891
6892 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
6893 # or bootstrap-ubsan, bootstrap it.
6894 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
6895   case "$BUILD_CONFIG" in
6896     *bootstrap-asan* | *bootstrap-ubsan* )
6897       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
6898       bootstrap_fixincludes=yes
6899       ;;
6900   esac
6901 fi
6902
6903 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
6904 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
6905    test "$enable_vtable_verify" != no; then
6906   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
6907 fi
6908
6909 # If we are building libmpx, bootstrap it.
6910 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
6911   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
6912 fi
6913
6914 # Determine whether gdb needs tk/tcl or not.
6915 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6916 # and in that case we want gdb to be built without tk.  Ugh!
6917 # In fact I believe gdb is the *only* package directly dependent on tk,
6918 # so we should be able to put the 'maybe's in unconditionally and
6919 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6920 # 100% sure that that's safe though.
6921
6922 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6923 case "$enable_gdbtk" in
6924   no)
6925     GDB_TK="" ;;
6926   yes)
6927     GDB_TK="${gdb_tk}" ;;
6928   *)
6929     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6930     # distro.  Eventually someone will fix this and move Insight, nee
6931     # gdbtk to a separate directory.
6932     if test -d ${srcdir}/gdb/gdbtk ; then
6933       GDB_TK="${gdb_tk}"
6934     else
6935       GDB_TK=""
6936     fi
6937     ;;
6938 esac
6939 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6940 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6941
6942 # Strip out unwanted targets.
6943
6944 # While at that, we remove Makefiles if we were started for recursive
6945 # configuration, so that the top-level Makefile reconfigures them,
6946 # like we used to do when configure itself was recursive.
6947
6948 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6949 # but now we're fixing up the Makefile ourselves with the additional
6950 # commands passed to AC_CONFIG_FILES.  Use separate variables
6951 # extrasub-{build,host,target} not because there is any reason to split
6952 # the substitutions up that way, but only to remain below the limit of
6953 # 99 commands in a script, for HP-UX sed.
6954 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6955
6956 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6957   yes:yes:*\ gold\ *:*,c++,*) ;;
6958   yes:yes:*\ gold\ *:*)
6959     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6960     ;;
6961 esac
6962
6963 extrasub_build=
6964 for module in ${build_configdirs} ; do
6965   if test -z "${no_recursion}" \
6966      && test -f ${build_subdir}/${module}/Makefile; then
6967     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6968     rm -f ${build_subdir}/${module}/Makefile
6969   fi
6970   extrasub_build="$extrasub_build
6971 /^@if build-$module\$/d
6972 /^@endif build-$module\$/d
6973 /^@if build-$module-$bootstrap_suffix\$/d
6974 /^@endif build-$module-$bootstrap_suffix\$/d"
6975 done
6976 extrasub_host=
6977 for module in ${configdirs} ; do
6978   if test -z "${no_recursion}"; then
6979     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6980       if test -f ${file}; then
6981         echo 1>&2 "*** removing ${file} to force reconfigure"
6982         rm -f ${file}
6983       fi
6984     done
6985   fi
6986   case ${module},${bootstrap_fixincludes} in
6987     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
6988     *) host_bootstrap_suffix=$bootstrap_suffix ;;
6989   esac
6990   extrasub_host="$extrasub_host
6991 /^@if $module\$/d
6992 /^@endif $module\$/d
6993 /^@if $module-$host_bootstrap_suffix\$/d
6994 /^@endif $module-$host_bootstrap_suffix\$/d"
6995 done
6996 extrasub_target=
6997 for module in ${target_configdirs} ; do
6998   if test -z "${no_recursion}" \
6999      && test -f ${target_subdir}/${module}/Makefile; then
7000     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7001     rm -f ${target_subdir}/${module}/Makefile
7002   fi
7003
7004   # We only bootstrap target libraries listed in bootstrap_target_libs.
7005   case $bootstrap_target_libs in
7006     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7007     *) target_bootstrap_suffix=no-bootstrap ;;
7008   esac
7009
7010   extrasub_target="$extrasub_target
7011 /^@if target-$module\$/d
7012 /^@endif target-$module\$/d
7013 /^@if target-$module-$target_bootstrap_suffix\$/d
7014 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7015 done
7016
7017 # Do the final fixup along with target modules.
7018 extrasub_target="$extrasub_target
7019 /^@if /,/^@endif /d"
7020
7021 # Create the serialization dependencies.  This uses a temporary file.
7022
7023 # Check whether --enable-serial-configure was given.
7024 if test "${enable_serial_configure+set}" = set; then :
7025   enableval=$enable_serial_configure;
7026 fi
7027
7028
7029 case ${enable_serial_configure} in
7030   yes)
7031     enable_serial_build_configure=yes
7032     enable_serial_host_configure=yes
7033     enable_serial_target_configure=yes
7034     ;;
7035 esac
7036
7037 # These force 'configure's to be done one at a time, to avoid problems
7038 # with contention over a shared config.cache.
7039 rm -f serdep.tmp
7040 echo '# serdep.tmp' > serdep.tmp
7041 olditem=
7042 test "x${enable_serial_build_configure}" = xyes &&
7043 for item in ${build_configdirs} ; do
7044   case ${olditem} in
7045     "") ;;
7046     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7047   esac
7048   olditem=${item}
7049 done
7050 olditem=
7051 test "x${enable_serial_host_configure}" = xyes &&
7052 for item in ${configdirs} ; do
7053   case ${olditem} in
7054     "") ;;
7055     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7056   esac
7057   olditem=${item}
7058 done
7059 olditem=
7060 test "x${enable_serial_target_configure}" = xyes &&
7061 for item in ${target_configdirs} ; do
7062   case ${olditem} in
7063     "") ;;
7064     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7065   esac
7066   olditem=${item}
7067 done
7068 serialization_dependencies=serdep.tmp
7069
7070
7071 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7072 # target, nonopt, and variable assignments.  These are the ones we
7073 # might not want to pass down to subconfigures.  The exception being
7074 # --cache-file=/dev/null, which is used to turn off the use of cache
7075 # files altogether, and which should be passed on to subconfigures.
7076 # Also strip program-prefix, program-suffix, and program-transform-name,
7077 # so that we can pass down a consistent program-transform-name.
7078 baseargs=
7079 tbaseargs=
7080 keep_next=no
7081 skip_next=no
7082 eval "set -- $ac_configure_args"
7083 for ac_arg
7084 do
7085   if test X"$skip_next" = X"yes"; then
7086     skip_next=no
7087     continue
7088   fi
7089   if test X"$keep_next" = X"yes"; then
7090     case $ac_arg in
7091       *\'*)
7092         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7093     esac
7094     baseargs="$baseargs '$ac_arg'"
7095     tbaseargs="$tbaseargs '$ac_arg'"
7096     keep_next=no
7097     continue
7098   fi
7099
7100   # Handle separated arguments.  Based on the logic generated by
7101   # autoconf 2.59.
7102   case $ac_arg in
7103     *=* | --config-cache | -C | -disable-* | --disable-* \
7104       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7105       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7106       | -with-* | --with-* | -without-* | --without-* | --x)
7107       separate_arg=no
7108       ;;
7109     -*)
7110       separate_arg=yes
7111       ;;
7112     *)
7113       separate_arg=no
7114       ;;
7115   esac
7116
7117   skip_targ=no
7118   case $ac_arg in
7119
7120   --with-* | --without-*)
7121     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7122
7123     case $libopt in
7124     *[-_]include)
7125       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7126       ;;
7127     *[-_]lib)
7128       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7129       ;;
7130     *)
7131       lib=$libopt
7132       ;;
7133     esac
7134
7135
7136     case $lib in
7137     mpc | mpfr | gmp | isl)
7138       # If we're processing --with-$lib, --with-$lib-include or
7139       # --with-$lib-lib, for one of the libs above, and target is
7140       # different from host, don't pass the current argument to any
7141       # target library's configure.
7142       if test x$is_cross_compiler = xyes; then
7143         skip_targ=yes
7144       fi
7145       ;;
7146     esac
7147     ;;
7148   esac
7149
7150   case "$ac_arg" in
7151     --cache-file=/dev/null | \
7152     -cache-file=/dev/null )
7153       # Handled here to avoid the test to skip args below.
7154       baseargs="$baseargs '$ac_arg'"
7155       tbaseargs="$tbaseargs '$ac_arg'"
7156       # Assert: $separate_arg should always be no.
7157       keep_next=$separate_arg
7158       ;;
7159     --no*)
7160       continue
7161       ;;
7162     --c* | \
7163     --sr* | \
7164     --ho* | \
7165     --bu* | \
7166     --t* | \
7167     --program-* | \
7168     -cache_file* | \
7169     -srcdir* | \
7170     -host* | \
7171     -build* | \
7172     -target* | \
7173     -program-prefix* | \
7174     -program-suffix* | \
7175     -program-transform-name* )
7176       skip_next=$separate_arg
7177       continue
7178       ;;
7179     -*)
7180       # An option.  Add it.
7181       case $ac_arg in
7182         *\'*)
7183           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7184       esac
7185       baseargs="$baseargs '$ac_arg'"
7186       if test X"$skip_targ" = Xno; then
7187         tbaseargs="$tbaseargs '$ac_arg'"
7188       fi
7189       keep_next=$separate_arg
7190       ;;
7191     *)
7192       # Either a variable assignment, or a nonopt (triplet).  Don't
7193       # pass it down; let the Makefile handle this.
7194       continue
7195       ;;
7196   esac
7197 done
7198 # Remove the initial space we just introduced and, as these will be
7199 # expanded by make, quote '$'.
7200 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7201
7202 # Add in --program-transform-name, after --program-prefix and
7203 # --program-suffix have been applied to it.  Autoconf has already
7204 # doubled dollar signs and backslashes in program_transform_name; we want
7205 # the backslashes un-doubled, and then the entire thing wrapped in single
7206 # quotes, because this will be expanded first by make and then by the shell.
7207 # Also, because we want to override the logic in subdir configure scripts to
7208 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7209 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7210 ${program_transform_name}
7211 EOF_SED
7212 gcc_transform_name=`cat conftestsed.out`
7213 rm -f conftestsed.out
7214 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7215 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7216 if test "$silent" = yes; then
7217   baseargs="$baseargs --silent"
7218   tbaseargs="$tbaseargs --silent"
7219 fi
7220 baseargs="$baseargs --disable-option-checking"
7221 tbaseargs="$tbaseargs --disable-option-checking"
7222
7223 # Record and document user additions to sub configure arguments.
7224
7225
7226
7227
7228 # For the build-side libraries, we just need to pretend we're native,
7229 # and not use the same cache file.  Multilibs are neither needed nor
7230 # desired.  We can't even use the same cache file for all build-side
7231 # libraries, as they're compiled differently; some with C, some with
7232 # C++ or with different feature-enabling options.
7233 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7234
7235 # For host modules, accept cache file option, or specification as blank.
7236 case "${cache_file}" in
7237 "") # empty
7238   cache_file_option="" ;;
7239 /* | [A-Za-z]:[\\/]* ) # absolute path
7240   cache_file_option="--cache-file=${cache_file}" ;;
7241 *) # relative path
7242   cache_file_option="--cache-file=../${cache_file}" ;;
7243 esac
7244
7245 # Host dirs don't like to share a cache file either, horribly enough.
7246 # This seems to be due to autoconf 2.5x stupidity.
7247 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7248
7249 target_configargs="$target_configargs ${tbaseargs}"
7250
7251 # Passing a --with-cross-host argument lets the target libraries know
7252 # whether they are being built with a cross-compiler or being built
7253 # native.  However, it would be better to use other mechanisms to make the
7254 # sorts of decisions they want to make on this basis.  Please consider
7255 # this option to be deprecated.  FIXME.
7256 if test x${is_cross_compiler} = xyes ; then
7257   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7258 fi
7259
7260 # Special user-friendly check for native x86_64-linux build, if
7261 # multilib is not explicitly enabled.
7262 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7263   x86_64-*linux*:yes:$build:$build:)
7264     # Make sure we have a development environment that handles 32-bit
7265     dev64=no
7266     echo "int main () { return 0; }" > conftest.c
7267     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7268     if test $? = 0 ; then
7269       if test -s conftest || test -s conftest.exe ; then
7270         dev64=yes
7271       fi
7272     fi
7273     rm -f conftest*
7274     if test x${dev64} != xyes ; then
7275       as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7276     fi
7277     ;;
7278 esac
7279
7280 # Default to --enable-multilib.
7281 if test x${enable_multilib} = x ; then
7282   target_configargs="--enable-multilib ${target_configargs}"
7283 fi
7284
7285 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7286 # changed from the earlier setting of with_newlib.
7287 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7288   target_configargs="--with-newlib ${target_configargs}"
7289 fi
7290
7291 # Different target subdirs use different values of certain variables
7292 # (notably CXX).  Worse, multilibs use *lots* of different values.
7293 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7294 # it doesn't automatically accept command-line overrides of them.
7295 # This means it's not safe for target subdirs to share a cache file,
7296 # which is disgusting, but there you have it.  Hopefully this can be
7297 # fixed in future.  It's still worthwhile to use a cache file for each
7298 # directory.  I think.
7299
7300 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7301 # We need to pass --target, as newer autoconf's requires consistency
7302 # for target_alias and gcc doesn't manage it consistently.
7303 target_configargs="--cache-file=./config.cache ${target_configargs}"
7304
7305 FLAGS_FOR_TARGET=
7306 case " $target_configdirs " in
7307  *" newlib "*)
7308   case " $target_configargs " in
7309   *" --with-newlib "*)
7310    case "$target" in
7311     *-cygwin*)
7312       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7313       ;;
7314    esac
7315
7316    # If we're not building GCC, don't discard standard headers.
7317    if test -d ${srcdir}/gcc; then
7318      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7319
7320      if test "${build}" != "${host}"; then
7321        # On Canadian crosses, CC_FOR_TARGET will have already been set
7322        # by `configure', so we won't have an opportunity to add -Bgcc/
7323        # to it.  This is right: we don't want to search that directory
7324        # for binaries, but we want the header files in there, so add
7325        # them explicitly.
7326        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7327
7328        # Someone might think of using the pre-installed headers on
7329        # Canadian crosses, in case the installed compiler is not fully
7330        # compatible with the compiler being built.  In this case, it
7331        # would be better to flag an error than risking having
7332        # incompatible object files being constructed.  We can't
7333        # guarantee that an error will be flagged, but let's hope the
7334        # compiler will do it, when presented with incompatible header
7335        # files.
7336      fi
7337    fi
7338
7339    case "${target}-${is_cross_compiler}" in
7340    i[3456789]86-*-linux*-no)
7341       # Here host == target, so we don't need to build gcc,
7342       # so we don't want to discard standard headers.
7343       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7344       ;;
7345    *)
7346       # If we're building newlib, use its generic headers last, but search
7347       # for any libc-related directories first (so make it the last -B
7348       # switch).
7349       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7350
7351       # If we're building libgloss, find the startup file, simulator library
7352       # and linker script.
7353       case " $target_configdirs " in
7354         *" libgloss "*)
7355         # Look for startup file, simulator library and maybe linker script.
7356         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7357         # Look for libnosys.a in case the target needs it.
7358         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7359         # Most targets have the linker script in the source directory.
7360         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7361         ;;
7362       esac
7363       ;;
7364    esac
7365    ;;
7366   esac
7367   ;;
7368 esac
7369
7370 case "$target" in
7371   x86_64-*mingw* | *-w64-mingw*)
7372   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7373   # however, use a symlink named 'mingw' in ${prefix} .
7374     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7375     ;;
7376   *-mingw*)
7377   # MinGW can't be handled as Cygwin above since it does not use newlib.
7378     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'
7379     ;;
7380 esac
7381
7382 # Allow the user to override the flags for
7383 # our build compiler if desired.
7384 if test x"${build}" = x"${host}" ; then
7385   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7386   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7387   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7388 fi
7389
7390 # On Canadian crosses, we'll be searching the right directories for
7391 # the previously-installed cross compiler, so don't bother to add
7392 # flags for directories within the install tree of the compiler
7393 # being built; programs in there won't even run.
7394 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7395   # Search for pre-installed headers if nothing else fits.
7396   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7397 fi
7398
7399 if test "x${use_gnu_ld}" = x &&
7400    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7401   # Arrange for us to find uninstalled linker scripts.
7402   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7403 fi
7404
7405 # Search for other target-specific linker scripts and such.
7406 case "${target}" in
7407   mep*)
7408     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7409     ;;
7410 esac
7411
7412 # Makefile fragments.
7413 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7414 do
7415   eval fragval=\$$frag
7416   if test $fragval != /dev/null; then
7417     eval $frag=${srcdir}/$fragval
7418   fi
7419 done
7420
7421
7422
7423
7424
7425 # Miscellanea: directories, flags, etc.
7426
7427
7428
7429
7430
7431
7432
7433
7434 # Build module lists & subconfigure args.
7435
7436
7437
7438 # Host module lists & subconfigure args.
7439
7440
7441
7442
7443 # Target module lists & subconfigure args.
7444
7445
7446
7447 # Build tools.
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 # Generate default definitions for YACC, M4, LEX and other programs that run
7466 # on the build machine.  These are used if the Makefile can't locate these
7467 # programs in objdir.
7468 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7469
7470 for ac_prog in 'bison -y' byacc yacc
7471 do
7472   # Extract the first word of "$ac_prog", so it can be a program name with args.
7473 set dummy $ac_prog; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if test "${ac_cv_prog_YACC+set}" = set; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$YACC"; then
7480   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489     ac_cv_prog_YACC="$ac_prog"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 YACC=$ac_cv_prog_YACC
7500 if test -n "$YACC"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7502 $as_echo "$YACC" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509   test -n "$YACC" && break
7510 done
7511 test -n "$YACC" || YACC="$MISSING bison -y"
7512
7513 case " $build_configdirs " in
7514   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7515 esac
7516
7517 for ac_prog in bison
7518 do
7519   # Extract the first word of "$ac_prog", so it can be a program name with args.
7520 set dummy $ac_prog; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_prog_BISON+set}" = set; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526   if test -n "$BISON"; then
7527   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532   IFS=$as_save_IFS
7533   test -z "$as_dir" && as_dir=.
7534     for ac_exec_ext in '' $ac_executable_extensions; do
7535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536     ac_cv_prog_BISON="$ac_prog"
7537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538     break 2
7539   fi
7540 done
7541   done
7542 IFS=$as_save_IFS
7543
7544 fi
7545 fi
7546 BISON=$ac_cv_prog_BISON
7547 if test -n "$BISON"; then
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7549 $as_echo "$BISON" >&6; }
7550 else
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7553 fi
7554
7555
7556   test -n "$BISON" && break
7557 done
7558 test -n "$BISON" || BISON="$MISSING bison"
7559
7560 case " $build_configdirs " in
7561   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7562 esac
7563
7564 for ac_prog in gm4 gnum4 m4
7565 do
7566   # Extract the first word of "$ac_prog", so it can be a program name with args.
7567 set dummy $ac_prog; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if test "${ac_cv_prog_M4+set}" = set; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test -n "$M4"; then
7574   ac_cv_prog_M4="$M4" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581     for ac_exec_ext in '' $ac_executable_extensions; do
7582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583     ac_cv_prog_M4="$ac_prog"
7584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588   done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 M4=$ac_cv_prog_M4
7594 if test -n "$M4"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7596 $as_echo "$M4" >&6; }
7597 else
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602
7603   test -n "$M4" && break
7604 done
7605 test -n "$M4" || M4="$MISSING m4"
7606
7607 case " $build_configdirs " in
7608   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7609 esac
7610
7611 for ac_prog in flex lex
7612 do
7613   # Extract the first word of "$ac_prog", so it can be a program name with args.
7614 set dummy $ac_prog; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_LEX+set}" = set; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -n "$LEX"; then
7621   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630     ac_cv_prog_LEX="$ac_prog"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 LEX=$ac_cv_prog_LEX
7641 if test -n "$LEX"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7643 $as_echo "$LEX" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650   test -n "$LEX" && break
7651 done
7652 test -n "$LEX" || LEX="$MISSING flex"
7653
7654 case " $build_configdirs " in
7655   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7656   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7657 esac
7658
7659 for ac_prog in flex
7660 do
7661   # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy $ac_prog; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if test "${ac_cv_prog_FLEX+set}" = set; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$FLEX"; then
7669   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_prog_FLEX="$ac_prog"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 FLEX=$ac_cv_prog_FLEX
7689 if test -n "$FLEX"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7691 $as_echo "$FLEX" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698   test -n "$FLEX" && break
7699 done
7700 test -n "$FLEX" || FLEX="$MISSING flex"
7701
7702 case " $build_configdirs " in
7703   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7704 esac
7705
7706 for ac_prog in makeinfo
7707 do
7708   # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$MAKEINFO"; then
7716   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_prog_MAKEINFO="$ac_prog"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 MAKEINFO=$ac_cv_prog_MAKEINFO
7736 if test -n "$MAKEINFO"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7738 $as_echo "$MAKEINFO" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745   test -n "$MAKEINFO" && break
7746 done
7747 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7748
7749 case " $build_configdirs " in
7750   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7751   *)
7752
7753     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7754     # higher, else we use the "missing" dummy.
7755     if ${MAKEINFO} --version \
7756        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7757       :
7758     else
7759       MAKEINFO="$MISSING makeinfo"
7760     fi
7761     ;;
7762
7763 esac
7764
7765 # FIXME: expect and dejagnu may become build tools?
7766
7767 for ac_prog in expect
7768 do
7769   # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$EXPECT"; then
7777   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786     ac_cv_prog_EXPECT="$ac_prog"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 EXPECT=$ac_cv_prog_EXPECT
7797 if test -n "$EXPECT"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7799 $as_echo "$EXPECT" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806   test -n "$EXPECT" && break
7807 done
7808 test -n "$EXPECT" || EXPECT="expect"
7809
7810 case " $configdirs " in
7811   *" expect "*)
7812     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7813     ;;
7814 esac
7815
7816 for ac_prog in runtest
7817 do
7818   # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -n "$RUNTEST"; then
7826   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835     ac_cv_prog_RUNTEST="$ac_prog"
7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 RUNTEST=$ac_cv_prog_RUNTEST
7846 if test -n "$RUNTEST"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7848 $as_echo "$RUNTEST" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855   test -n "$RUNTEST" && break
7856 done
7857 test -n "$RUNTEST" || RUNTEST="runtest"
7858
7859 case " $configdirs " in
7860   *" dejagnu "*)
7861     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7862     ;;
7863 esac
7864
7865
7866 # Host tools.
7867 ncn_tool_prefix=
7868 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7869 ncn_target_tool_prefix=
7870 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7871
7872
7873
7874 if test -n "$AR"; then
7875   ac_cv_prog_AR=$AR
7876 elif test -n "$ac_cv_prog_AR"; then
7877   AR=$ac_cv_prog_AR
7878 fi
7879
7880 if test -n "$ac_cv_prog_AR"; then
7881   for ncn_progname in ar; do
7882     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7883 set dummy ${ncn_progname}; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_AR+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$AR"; then
7890   ac_cv_prog_AR="$AR" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_AR="${ncn_progname}"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 AR=$ac_cv_prog_AR
7910 if test -n "$AR"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7912 $as_echo "$AR" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919   done
7920 fi
7921
7922 for ncn_progname in ar; do
7923   if test -n "$ncn_tool_prefix"; then
7924     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7925 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_AR+set}" = set; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   if test -n "$AR"; then
7932   ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946   done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 AR=$ac_cv_prog_AR
7952 if test -n "$AR"; then
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7954 $as_echo "$AR" >&6; }
7955 else
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961   fi
7962   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7963     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7964 set dummy ${ncn_progname}; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if test "${ac_cv_prog_AR+set}" = set; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   if test -n "$AR"; then
7971   ac_cv_prog_AR="$AR" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976   IFS=$as_save_IFS
7977   test -z "$as_dir" && as_dir=.
7978     for ac_exec_ext in '' $ac_executable_extensions; do
7979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980     ac_cv_prog_AR="${ncn_progname}"
7981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982     break 2
7983   fi
7984 done
7985   done
7986 IFS=$as_save_IFS
7987
7988 fi
7989 fi
7990 AR=$ac_cv_prog_AR
7991 if test -n "$AR"; then
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7993 $as_echo "$AR" >&6; }
7994 else
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999
8000   fi
8001   test -n "$ac_cv_prog_AR" && break
8002 done
8003
8004 if test -z "$ac_cv_prog_AR" ; then
8005   set dummy ar
8006   if test $build = $host ; then
8007     AR="$2"
8008   else
8009     AR="${ncn_tool_prefix}$2"
8010   fi
8011 fi
8012
8013
8014
8015 if test -n "$AS"; then
8016   ac_cv_prog_AS=$AS
8017 elif test -n "$ac_cv_prog_AS"; then
8018   AS=$ac_cv_prog_AS
8019 fi
8020
8021 if test -n "$ac_cv_prog_AS"; then
8022   for ncn_progname in as; do
8023     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8024 set dummy ${ncn_progname}; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_AS+set}" = set; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   if test -n "$AS"; then
8031   ac_cv_prog_AS="$AS" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040     ac_cv_prog_AS="${ncn_progname}"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 AS=$ac_cv_prog_AS
8051 if test -n "$AS"; then
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8053 $as_echo "$AS" >&6; }
8054 else
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059
8060   done
8061 fi
8062
8063 for ncn_progname in as; do
8064   if test -n "$ncn_tool_prefix"; then
8065     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8066 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_AS+set}" = set; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   if test -n "$AS"; then
8073   ac_cv_prog_AS="$AS" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080     for ac_exec_ext in '' $ac_executable_extensions; do
8081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087   done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 AS=$ac_cv_prog_AS
8093 if test -n "$AS"; then
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8095 $as_echo "$AS" >&6; }
8096 else
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102   fi
8103   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8104     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8105 set dummy ${ncn_progname}; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_prog_AS+set}" = set; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   if test -n "$AS"; then
8112   ac_cv_prog_AS="$AS" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119     for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_prog_AS="${ncn_progname}"
8122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126   done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 AS=$ac_cv_prog_AS
8132 if test -n "$AS"; then
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8134 $as_echo "$AS" >&6; }
8135 else
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140
8141   fi
8142   test -n "$ac_cv_prog_AS" && break
8143 done
8144
8145 if test -z "$ac_cv_prog_AS" ; then
8146   set dummy as
8147   if test $build = $host ; then
8148     AS="$2"
8149   else
8150     AS="${ncn_tool_prefix}$2"
8151   fi
8152 fi
8153
8154
8155
8156 if test -n "$DLLTOOL"; then
8157   ac_cv_prog_DLLTOOL=$DLLTOOL
8158 elif test -n "$ac_cv_prog_DLLTOOL"; then
8159   DLLTOOL=$ac_cv_prog_DLLTOOL
8160 fi
8161
8162 if test -n "$ac_cv_prog_DLLTOOL"; then
8163   for ncn_progname in dlltool; do
8164     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8165 set dummy ${ncn_progname}; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   if test -n "$DLLTOOL"; then
8172   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181     ac_cv_prog_DLLTOOL="${ncn_progname}"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188
8189 fi
8190 fi
8191 DLLTOOL=$ac_cv_prog_DLLTOOL
8192 if test -n "$DLLTOOL"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8194 $as_echo "$DLLTOOL" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199
8200
8201   done
8202 fi
8203
8204 for ncn_progname in dlltool; do
8205   if test -n "$ncn_tool_prefix"; then
8206     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8207 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 $as_echo_n "checking for $ac_word... " >&6; }
8210 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   if test -n "$DLLTOOL"; then
8214   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8215 else
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH
8218 do
8219   IFS=$as_save_IFS
8220   test -z "$as_dir" && as_dir=.
8221     for ac_exec_ext in '' $ac_executable_extensions; do
8222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225     break 2
8226   fi
8227 done
8228   done
8229 IFS=$as_save_IFS
8230
8231 fi
8232 fi
8233 DLLTOOL=$ac_cv_prog_DLLTOOL
8234 if test -n "$DLLTOOL"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8236 $as_echo "$DLLTOOL" >&6; }
8237 else
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243   fi
8244   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8245     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8246 set dummy ${ncn_progname}; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   if test -n "$DLLTOOL"; then
8253   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258   IFS=$as_save_IFS
8259   test -z "$as_dir" && as_dir=.
8260     for ac_exec_ext in '' $ac_executable_extensions; do
8261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262     ac_cv_prog_DLLTOOL="${ncn_progname}"
8263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264     break 2
8265   fi
8266 done
8267   done
8268 IFS=$as_save_IFS
8269
8270 fi
8271 fi
8272 DLLTOOL=$ac_cv_prog_DLLTOOL
8273 if test -n "$DLLTOOL"; then
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8275 $as_echo "$DLLTOOL" >&6; }
8276 else
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281
8282   fi
8283   test -n "$ac_cv_prog_DLLTOOL" && break
8284 done
8285
8286 if test -z "$ac_cv_prog_DLLTOOL" ; then
8287   set dummy dlltool
8288   if test $build = $host ; then
8289     DLLTOOL="$2"
8290   else
8291     DLLTOOL="${ncn_tool_prefix}$2"
8292   fi
8293 fi
8294
8295
8296
8297 if test -n "$LD"; then
8298   ac_cv_prog_LD=$LD
8299 elif test -n "$ac_cv_prog_LD"; then
8300   LD=$ac_cv_prog_LD
8301 fi
8302
8303 if test -n "$ac_cv_prog_LD"; then
8304   for ncn_progname in ld; do
8305     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8306 set dummy ${ncn_progname}; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_LD+set}" = set; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$LD"; then
8313   ac_cv_prog_LD="$LD" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_prog_LD="${ncn_progname}"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 LD=$ac_cv_prog_LD
8333 if test -n "$LD"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8335 $as_echo "$LD" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342   done
8343 fi
8344
8345 for ncn_progname in ld; do
8346   if test -n "$ncn_tool_prefix"; then
8347     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8348 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_LD+set}" = set; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   if test -n "$LD"; then
8355   ac_cv_prog_LD="$LD" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360   IFS=$as_save_IFS
8361   test -z "$as_dir" && as_dir=.
8362     for ac_exec_ext in '' $ac_executable_extensions; do
8363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366     break 2
8367   fi
8368 done
8369   done
8370 IFS=$as_save_IFS
8371
8372 fi
8373 fi
8374 LD=$ac_cv_prog_LD
8375 if test -n "$LD"; then
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8377 $as_echo "$LD" >&6; }
8378 else
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384   fi
8385   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8386     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8387 set dummy ${ncn_progname}; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_LD+set}" = set; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   if test -n "$LD"; then
8394   ac_cv_prog_LD="$LD" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399   IFS=$as_save_IFS
8400   test -z "$as_dir" && as_dir=.
8401     for ac_exec_ext in '' $ac_executable_extensions; do
8402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403     ac_cv_prog_LD="${ncn_progname}"
8404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405     break 2
8406   fi
8407 done
8408   done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 LD=$ac_cv_prog_LD
8414 if test -n "$LD"; then
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8416 $as_echo "$LD" >&6; }
8417 else
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423   fi
8424   test -n "$ac_cv_prog_LD" && break
8425 done
8426
8427 if test -z "$ac_cv_prog_LD" ; then
8428   set dummy ld
8429   if test $build = $host ; then
8430     LD="$2"
8431   else
8432     LD="${ncn_tool_prefix}$2"
8433   fi
8434 fi
8435
8436
8437
8438 if test -n "$LIPO"; then
8439   ac_cv_prog_LIPO=$LIPO
8440 elif test -n "$ac_cv_prog_LIPO"; then
8441   LIPO=$ac_cv_prog_LIPO
8442 fi
8443
8444 if test -n "$ac_cv_prog_LIPO"; then
8445   for ncn_progname in lipo; do
8446     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8447 set dummy ${ncn_progname}; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_prog_LIPO+set}" = set; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453   if test -n "$LIPO"; then
8454   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459   IFS=$as_save_IFS
8460   test -z "$as_dir" && as_dir=.
8461     for ac_exec_ext in '' $ac_executable_extensions; do
8462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463     ac_cv_prog_LIPO="${ncn_progname}"
8464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465     break 2
8466   fi
8467 done
8468   done
8469 IFS=$as_save_IFS
8470
8471 fi
8472 fi
8473 LIPO=$ac_cv_prog_LIPO
8474 if test -n "$LIPO"; then
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8476 $as_echo "$LIPO" >&6; }
8477 else
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483   done
8484 fi
8485
8486 for ncn_progname in lipo; do
8487   if test -n "$ncn_tool_prefix"; then
8488     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8489 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_prog_LIPO+set}" = set; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   if test -n "$LIPO"; then
8496   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501   IFS=$as_save_IFS
8502   test -z "$as_dir" && as_dir=.
8503     for ac_exec_ext in '' $ac_executable_extensions; do
8504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507     break 2
8508   fi
8509 done
8510   done
8511 IFS=$as_save_IFS
8512
8513 fi
8514 fi
8515 LIPO=$ac_cv_prog_LIPO
8516 if test -n "$LIPO"; then
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8518 $as_echo "$LIPO" >&6; }
8519 else
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524
8525   fi
8526   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8527     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8528 set dummy ${ncn_progname}; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if test "${ac_cv_prog_LIPO+set}" = set; then :
8532   $as_echo_n "(cached) " >&6
8533 else
8534   if test -n "$LIPO"; then
8535   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542     for ac_exec_ext in '' $ac_executable_extensions; do
8543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8544     ac_cv_prog_LIPO="${ncn_progname}"
8545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549   done
8550 IFS=$as_save_IFS
8551
8552 fi
8553 fi
8554 LIPO=$ac_cv_prog_LIPO
8555 if test -n "$LIPO"; then
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8557 $as_echo "$LIPO" >&6; }
8558 else
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563
8564   fi
8565   test -n "$ac_cv_prog_LIPO" && break
8566 done
8567
8568 if test -z "$ac_cv_prog_LIPO" ; then
8569   set dummy lipo
8570   if test $build = $host ; then
8571     LIPO="$2"
8572   else
8573     LIPO="${ncn_tool_prefix}$2"
8574   fi
8575 fi
8576
8577
8578
8579 if test -n "$NM"; then
8580   ac_cv_prog_NM=$NM
8581 elif test -n "$ac_cv_prog_NM"; then
8582   NM=$ac_cv_prog_NM
8583 fi
8584
8585 if test -n "$ac_cv_prog_NM"; then
8586   for ncn_progname in nm; do
8587     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8588 set dummy ${ncn_progname}; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if test "${ac_cv_prog_NM+set}" = set; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   if test -n "$NM"; then
8595   ac_cv_prog_NM="$NM" # Let the user override the test.
8596 else
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8599 do
8600   IFS=$as_save_IFS
8601   test -z "$as_dir" && as_dir=.
8602     for ac_exec_ext in '' $ac_executable_extensions; do
8603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604     ac_cv_prog_NM="${ncn_progname}"
8605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606     break 2
8607   fi
8608 done
8609   done
8610 IFS=$as_save_IFS
8611
8612 fi
8613 fi
8614 NM=$ac_cv_prog_NM
8615 if test -n "$NM"; then
8616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8617 $as_echo "$NM" >&6; }
8618 else
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8621 fi
8622
8623
8624   done
8625 fi
8626
8627 for ncn_progname in nm; do
8628   if test -n "$ncn_tool_prefix"; then
8629     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8630 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if test "${ac_cv_prog_NM+set}" = set; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   if test -n "$NM"; then
8637   ac_cv_prog_NM="$NM" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644     for ac_exec_ext in '' $ac_executable_extensions; do
8645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651   done
8652 IFS=$as_save_IFS
8653
8654 fi
8655 fi
8656 NM=$ac_cv_prog_NM
8657 if test -n "$NM"; then
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8659 $as_echo "$NM" >&6; }
8660 else
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 fi
8664
8665
8666   fi
8667   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8668     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8669 set dummy ${ncn_progname}; ac_word=$2
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 $as_echo_n "checking for $ac_word... " >&6; }
8672 if test "${ac_cv_prog_NM+set}" = set; then :
8673   $as_echo_n "(cached) " >&6
8674 else
8675   if test -n "$NM"; then
8676   ac_cv_prog_NM="$NM" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683     for ac_exec_ext in '' $ac_executable_extensions; do
8684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685     ac_cv_prog_NM="${ncn_progname}"
8686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690   done
8691 IFS=$as_save_IFS
8692
8693 fi
8694 fi
8695 NM=$ac_cv_prog_NM
8696 if test -n "$NM"; then
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8698 $as_echo "$NM" >&6; }
8699 else
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8702 fi
8703
8704
8705   fi
8706   test -n "$ac_cv_prog_NM" && break
8707 done
8708
8709 if test -z "$ac_cv_prog_NM" ; then
8710   set dummy nm
8711   if test $build = $host ; then
8712     NM="$2"
8713   else
8714     NM="${ncn_tool_prefix}$2"
8715   fi
8716 fi
8717
8718
8719
8720 if test -n "$RANLIB"; then
8721   ac_cv_prog_RANLIB=$RANLIB
8722 elif test -n "$ac_cv_prog_RANLIB"; then
8723   RANLIB=$ac_cv_prog_RANLIB
8724 fi
8725
8726 if test -n "$ac_cv_prog_RANLIB"; then
8727   for ncn_progname in ranlib; do
8728     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8729 set dummy ${ncn_progname}; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   if test -n "$RANLIB"; then
8736   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745     ac_cv_prog_RANLIB="${ncn_progname}"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752
8753 fi
8754 fi
8755 RANLIB=$ac_cv_prog_RANLIB
8756 if test -n "$RANLIB"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8758 $as_echo "$RANLIB" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764
8765   done
8766 fi
8767
8768 for ncn_progname in ranlib; do
8769   if test -n "$ncn_tool_prefix"; then
8770     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8771 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   if test -n "$RANLIB"; then
8778   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783   IFS=$as_save_IFS
8784   test -z "$as_dir" && as_dir=.
8785     for ac_exec_ext in '' $ac_executable_extensions; do
8786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789     break 2
8790   fi
8791 done
8792   done
8793 IFS=$as_save_IFS
8794
8795 fi
8796 fi
8797 RANLIB=$ac_cv_prog_RANLIB
8798 if test -n "$RANLIB"; then
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8800 $as_echo "$RANLIB" >&6; }
8801 else
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 fi
8805
8806
8807   fi
8808   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8809     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8810 set dummy ${ncn_progname}; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   if test -n "$RANLIB"; then
8817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8818 else
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8821 do
8822   IFS=$as_save_IFS
8823   test -z "$as_dir" && as_dir=.
8824     for ac_exec_ext in '' $ac_executable_extensions; do
8825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826     ac_cv_prog_RANLIB="${ncn_progname}"
8827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828     break 2
8829   fi
8830 done
8831   done
8832 IFS=$as_save_IFS
8833
8834 fi
8835 fi
8836 RANLIB=$ac_cv_prog_RANLIB
8837 if test -n "$RANLIB"; then
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8839 $as_echo "$RANLIB" >&6; }
8840 else
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8843 fi
8844
8845
8846   fi
8847   test -n "$ac_cv_prog_RANLIB" && break
8848 done
8849
8850 if test -z "$ac_cv_prog_RANLIB" ; then
8851   RANLIB="true"
8852 fi
8853
8854
8855
8856 if test -n "$STRIP"; then
8857   ac_cv_prog_STRIP=$STRIP
8858 elif test -n "$ac_cv_prog_STRIP"; then
8859   STRIP=$ac_cv_prog_STRIP
8860 fi
8861
8862 if test -n "$ac_cv_prog_STRIP"; then
8863   for ncn_progname in strip; do
8864     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8865 set dummy ${ncn_progname}; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_prog_STRIP+set}" = set; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   if test -n "$STRIP"; then
8872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877   IFS=$as_save_IFS
8878   test -z "$as_dir" && as_dir=.
8879     for ac_exec_ext in '' $ac_executable_extensions; do
8880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8881     ac_cv_prog_STRIP="${ncn_progname}"
8882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883     break 2
8884   fi
8885 done
8886   done
8887 IFS=$as_save_IFS
8888
8889 fi
8890 fi
8891 STRIP=$ac_cv_prog_STRIP
8892 if test -n "$STRIP"; then
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8894 $as_echo "$STRIP" >&6; }
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900
8901   done
8902 fi
8903
8904 for ncn_progname in strip; do
8905   if test -n "$ncn_tool_prefix"; then
8906     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8907 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if test "${ac_cv_prog_STRIP+set}" = set; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913   if test -n "$STRIP"; then
8914   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   test -z "$as_dir" && as_dir=.
8921     for ac_exec_ext in '' $ac_executable_extensions; do
8922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925     break 2
8926   fi
8927 done
8928   done
8929 IFS=$as_save_IFS
8930
8931 fi
8932 fi
8933 STRIP=$ac_cv_prog_STRIP
8934 if test -n "$STRIP"; then
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8936 $as_echo "$STRIP" >&6; }
8937 else
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940 fi
8941
8942
8943   fi
8944   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8945     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8946 set dummy ${ncn_progname}; ac_word=$2
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 $as_echo_n "checking for $ac_word... " >&6; }
8949 if test "${ac_cv_prog_STRIP+set}" = set; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   if test -n "$STRIP"; then
8953   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958   IFS=$as_save_IFS
8959   test -z "$as_dir" && as_dir=.
8960     for ac_exec_ext in '' $ac_executable_extensions; do
8961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8962     ac_cv_prog_STRIP="${ncn_progname}"
8963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964     break 2
8965   fi
8966 done
8967   done
8968 IFS=$as_save_IFS
8969
8970 fi
8971 fi
8972 STRIP=$ac_cv_prog_STRIP
8973 if test -n "$STRIP"; then
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8975 $as_echo "$STRIP" >&6; }
8976 else
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 fi
8980
8981
8982   fi
8983   test -n "$ac_cv_prog_STRIP" && break
8984 done
8985
8986 if test -z "$ac_cv_prog_STRIP" ; then
8987   STRIP="true"
8988 fi
8989
8990
8991
8992 if test -n "$WINDRES"; then
8993   ac_cv_prog_WINDRES=$WINDRES
8994 elif test -n "$ac_cv_prog_WINDRES"; then
8995   WINDRES=$ac_cv_prog_WINDRES
8996 fi
8997
8998 if test -n "$ac_cv_prog_WINDRES"; then
8999   for ncn_progname in windres; do
9000     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9005   $as_echo_n "(cached) " >&6
9006 else
9007   if test -n "$WINDRES"; then
9008   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013   IFS=$as_save_IFS
9014   test -z "$as_dir" && as_dir=.
9015     for ac_exec_ext in '' $ac_executable_extensions; do
9016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9017     ac_cv_prog_WINDRES="${ncn_progname}"
9018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019     break 2
9020   fi
9021 done
9022   done
9023 IFS=$as_save_IFS
9024
9025 fi
9026 fi
9027 WINDRES=$ac_cv_prog_WINDRES
9028 if test -n "$WINDRES"; then
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9030 $as_echo "$WINDRES" >&6; }
9031 else
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035
9036
9037   done
9038 fi
9039
9040 for ncn_progname in windres; do
9041   if test -n "$ncn_tool_prefix"; then
9042     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   if test -n "$WINDRES"; then
9050   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 WINDRES=$ac_cv_prog_WINDRES
9070 if test -n "$WINDRES"; then
9071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9072 $as_echo "$WINDRES" >&6; }
9073 else
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079   fi
9080   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9081     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9082 set dummy ${ncn_progname}; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if test -n "$WINDRES"; then
9089   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094   IFS=$as_save_IFS
9095   test -z "$as_dir" && as_dir=.
9096     for ac_exec_ext in '' $ac_executable_extensions; do
9097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9098     ac_cv_prog_WINDRES="${ncn_progname}"
9099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100     break 2
9101   fi
9102 done
9103   done
9104 IFS=$as_save_IFS
9105
9106 fi
9107 fi
9108 WINDRES=$ac_cv_prog_WINDRES
9109 if test -n "$WINDRES"; then
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9111 $as_echo "$WINDRES" >&6; }
9112 else
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117
9118   fi
9119   test -n "$ac_cv_prog_WINDRES" && break
9120 done
9121
9122 if test -z "$ac_cv_prog_WINDRES" ; then
9123   set dummy windres
9124   if test $build = $host ; then
9125     WINDRES="$2"
9126   else
9127     WINDRES="${ncn_tool_prefix}$2"
9128   fi
9129 fi
9130
9131
9132
9133 if test -n "$WINDMC"; then
9134   ac_cv_prog_WINDMC=$WINDMC
9135 elif test -n "$ac_cv_prog_WINDMC"; then
9136   WINDMC=$ac_cv_prog_WINDMC
9137 fi
9138
9139 if test -n "$ac_cv_prog_WINDMC"; then
9140   for ncn_progname in windmc; do
9141     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9142 set dummy ${ncn_progname}; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   if test -n "$WINDMC"; then
9149   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156     for ac_exec_ext in '' $ac_executable_extensions; do
9157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158     ac_cv_prog_WINDMC="${ncn_progname}"
9159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160     break 2
9161   fi
9162 done
9163   done
9164 IFS=$as_save_IFS
9165
9166 fi
9167 fi
9168 WINDMC=$ac_cv_prog_WINDMC
9169 if test -n "$WINDMC"; then
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9171 $as_echo "$WINDMC" >&6; }
9172 else
9173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177
9178   done
9179 fi
9180
9181 for ncn_progname in windmc; do
9182   if test -n "$ncn_tool_prefix"; then
9183     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9184 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9186 $as_echo_n "checking for $ac_word... " >&6; }
9187 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   if test -n "$WINDMC"; then
9191   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9192 else
9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 for as_dir in $PATH
9195 do
9196   IFS=$as_save_IFS
9197   test -z "$as_dir" && as_dir=.
9198     for ac_exec_ext in '' $ac_executable_extensions; do
9199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9200     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9202     break 2
9203   fi
9204 done
9205   done
9206 IFS=$as_save_IFS
9207
9208 fi
9209 fi
9210 WINDMC=$ac_cv_prog_WINDMC
9211 if test -n "$WINDMC"; then
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9213 $as_echo "$WINDMC" >&6; }
9214 else
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9216 $as_echo "no" >&6; }
9217 fi
9218
9219
9220   fi
9221   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9222     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9223 set dummy ${ncn_progname}; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   if test -n "$WINDMC"; then
9230   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9231 else
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9234 do
9235   IFS=$as_save_IFS
9236   test -z "$as_dir" && as_dir=.
9237     for ac_exec_ext in '' $ac_executable_extensions; do
9238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239     ac_cv_prog_WINDMC="${ncn_progname}"
9240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241     break 2
9242   fi
9243 done
9244   done
9245 IFS=$as_save_IFS
9246
9247 fi
9248 fi
9249 WINDMC=$ac_cv_prog_WINDMC
9250 if test -n "$WINDMC"; then
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9252 $as_echo "$WINDMC" >&6; }
9253 else
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9256 fi
9257
9258
9259   fi
9260   test -n "$ac_cv_prog_WINDMC" && break
9261 done
9262
9263 if test -z "$ac_cv_prog_WINDMC" ; then
9264   set dummy windmc
9265   if test $build = $host ; then
9266     WINDMC="$2"
9267   else
9268     WINDMC="${ncn_tool_prefix}$2"
9269   fi
9270 fi
9271
9272
9273
9274 if test -n "$OBJCOPY"; then
9275   ac_cv_prog_OBJCOPY=$OBJCOPY
9276 elif test -n "$ac_cv_prog_OBJCOPY"; then
9277   OBJCOPY=$ac_cv_prog_OBJCOPY
9278 fi
9279
9280 if test -n "$ac_cv_prog_OBJCOPY"; then
9281   for ncn_progname in objcopy; do
9282     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9283 set dummy ${ncn_progname}; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   if test -n "$OBJCOPY"; then
9290   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297     for ac_exec_ext in '' $ac_executable_extensions; do
9298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299     ac_cv_prog_OBJCOPY="${ncn_progname}"
9300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304   done
9305 IFS=$as_save_IFS
9306
9307 fi
9308 fi
9309 OBJCOPY=$ac_cv_prog_OBJCOPY
9310 if test -n "$OBJCOPY"; then
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9312 $as_echo "$OBJCOPY" >&6; }
9313 else
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9316 fi
9317
9318
9319   done
9320 fi
9321
9322 for ncn_progname in objcopy; do
9323   if test -n "$ncn_tool_prefix"; then
9324     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9325 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327 $as_echo_n "checking for $ac_word... " >&6; }
9328 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   if test -n "$OBJCOPY"; then
9332   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9333 else
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in $PATH
9336 do
9337   IFS=$as_save_IFS
9338   test -z "$as_dir" && as_dir=.
9339     for ac_exec_ext in '' $ac_executable_extensions; do
9340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343     break 2
9344   fi
9345 done
9346   done
9347 IFS=$as_save_IFS
9348
9349 fi
9350 fi
9351 OBJCOPY=$ac_cv_prog_OBJCOPY
9352 if test -n "$OBJCOPY"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9354 $as_echo "$OBJCOPY" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359
9360
9361   fi
9362   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9363     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9364 set dummy ${ncn_progname}; ac_word=$2
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 $as_echo_n "checking for $ac_word... " >&6; }
9367 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   if test -n "$OBJCOPY"; then
9371   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9372 else
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9375 do
9376   IFS=$as_save_IFS
9377   test -z "$as_dir" && as_dir=.
9378     for ac_exec_ext in '' $ac_executable_extensions; do
9379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380     ac_cv_prog_OBJCOPY="${ncn_progname}"
9381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382     break 2
9383   fi
9384 done
9385   done
9386 IFS=$as_save_IFS
9387
9388 fi
9389 fi
9390 OBJCOPY=$ac_cv_prog_OBJCOPY
9391 if test -n "$OBJCOPY"; then
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9393 $as_echo "$OBJCOPY" >&6; }
9394 else
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9397 fi
9398
9399
9400   fi
9401   test -n "$ac_cv_prog_OBJCOPY" && break
9402 done
9403
9404 if test -z "$ac_cv_prog_OBJCOPY" ; then
9405   set dummy objcopy
9406   if test $build = $host ; then
9407     OBJCOPY="$2"
9408   else
9409     OBJCOPY="${ncn_tool_prefix}$2"
9410   fi
9411 fi
9412
9413
9414
9415 if test -n "$OBJDUMP"; then
9416   ac_cv_prog_OBJDUMP=$OBJDUMP
9417 elif test -n "$ac_cv_prog_OBJDUMP"; then
9418   OBJDUMP=$ac_cv_prog_OBJDUMP
9419 fi
9420
9421 if test -n "$ac_cv_prog_OBJDUMP"; then
9422   for ncn_progname in objdump; do
9423     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9424 set dummy ${ncn_progname}; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430   if test -n "$OBJDUMP"; then
9431   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9435 do
9436   IFS=$as_save_IFS
9437   test -z "$as_dir" && as_dir=.
9438     for ac_exec_ext in '' $ac_executable_extensions; do
9439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440     ac_cv_prog_OBJDUMP="${ncn_progname}"
9441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442     break 2
9443   fi
9444 done
9445   done
9446 IFS=$as_save_IFS
9447
9448 fi
9449 fi
9450 OBJDUMP=$ac_cv_prog_OBJDUMP
9451 if test -n "$OBJDUMP"; then
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9453 $as_echo "$OBJDUMP" >&6; }
9454 else
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459
9460   done
9461 fi
9462
9463 for ncn_progname in objdump; do
9464   if test -n "$ncn_tool_prefix"; then
9465     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9466 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9470   $as_echo_n "(cached) " >&6
9471 else
9472   if test -n "$OBJDUMP"; then
9473   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9474 else
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9477 do
9478   IFS=$as_save_IFS
9479   test -z "$as_dir" && as_dir=.
9480     for ac_exec_ext in '' $ac_executable_extensions; do
9481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9482     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484     break 2
9485   fi
9486 done
9487   done
9488 IFS=$as_save_IFS
9489
9490 fi
9491 fi
9492 OBJDUMP=$ac_cv_prog_OBJDUMP
9493 if test -n "$OBJDUMP"; then
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9495 $as_echo "$OBJDUMP" >&6; }
9496 else
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9498 $as_echo "no" >&6; }
9499 fi
9500
9501
9502   fi
9503   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9504     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9505 set dummy ${ncn_progname}; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9509   $as_echo_n "(cached) " >&6
9510 else
9511   if test -n "$OBJDUMP"; then
9512   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9513 else
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517   IFS=$as_save_IFS
9518   test -z "$as_dir" && as_dir=.
9519     for ac_exec_ext in '' $ac_executable_extensions; do
9520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521     ac_cv_prog_OBJDUMP="${ncn_progname}"
9522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523     break 2
9524   fi
9525 done
9526   done
9527 IFS=$as_save_IFS
9528
9529 fi
9530 fi
9531 OBJDUMP=$ac_cv_prog_OBJDUMP
9532 if test -n "$OBJDUMP"; then
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9534 $as_echo "$OBJDUMP" >&6; }
9535 else
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 $as_echo "no" >&6; }
9538 fi
9539
9540
9541   fi
9542   test -n "$ac_cv_prog_OBJDUMP" && break
9543 done
9544
9545 if test -z "$ac_cv_prog_OBJDUMP" ; then
9546   set dummy objdump
9547   if test $build = $host ; then
9548     OBJDUMP="$2"
9549   else
9550     OBJDUMP="${ncn_tool_prefix}$2"
9551   fi
9552 fi
9553
9554
9555
9556 if test -n "$READELF"; then
9557   ac_cv_prog_READELF=$READELF
9558 elif test -n "$ac_cv_prog_READELF"; then
9559   READELF=$ac_cv_prog_READELF
9560 fi
9561
9562 if test -n "$ac_cv_prog_READELF"; then
9563   for ncn_progname in readelf; do
9564     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9565 set dummy ${ncn_progname}; ac_word=$2
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567 $as_echo_n "checking for $ac_word... " >&6; }
9568 if test "${ac_cv_prog_READELF+set}" = set; then :
9569   $as_echo_n "(cached) " >&6
9570 else
9571   if test -n "$READELF"; then
9572   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9573 else
9574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9576 do
9577   IFS=$as_save_IFS
9578   test -z "$as_dir" && as_dir=.
9579     for ac_exec_ext in '' $ac_executable_extensions; do
9580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9581     ac_cv_prog_READELF="${ncn_progname}"
9582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583     break 2
9584   fi
9585 done
9586   done
9587 IFS=$as_save_IFS
9588
9589 fi
9590 fi
9591 READELF=$ac_cv_prog_READELF
9592 if test -n "$READELF"; then
9593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9594 $as_echo "$READELF" >&6; }
9595 else
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9598 fi
9599
9600
9601   done
9602 fi
9603
9604 for ncn_progname in readelf; do
9605   if test -n "$ncn_tool_prefix"; then
9606     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9607 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if test "${ac_cv_prog_READELF+set}" = set; then :
9611   $as_echo_n "(cached) " >&6
9612 else
9613   if test -n "$READELF"; then
9614   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9615 else
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617 for as_dir in $PATH
9618 do
9619   IFS=$as_save_IFS
9620   test -z "$as_dir" && as_dir=.
9621     for ac_exec_ext in '' $ac_executable_extensions; do
9622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9623     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625     break 2
9626   fi
9627 done
9628   done
9629 IFS=$as_save_IFS
9630
9631 fi
9632 fi
9633 READELF=$ac_cv_prog_READELF
9634 if test -n "$READELF"; then
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9636 $as_echo "$READELF" >&6; }
9637 else
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9640 fi
9641
9642
9643   fi
9644   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9645     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9646 set dummy ${ncn_progname}; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if test "${ac_cv_prog_READELF+set}" = set; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   if test -n "$READELF"; then
9653   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9654 else
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9657 do
9658   IFS=$as_save_IFS
9659   test -z "$as_dir" && as_dir=.
9660     for ac_exec_ext in '' $ac_executable_extensions; do
9661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9662     ac_cv_prog_READELF="${ncn_progname}"
9663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664     break 2
9665   fi
9666 done
9667   done
9668 IFS=$as_save_IFS
9669
9670 fi
9671 fi
9672 READELF=$ac_cv_prog_READELF
9673 if test -n "$READELF"; then
9674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9675 $as_echo "$READELF" >&6; }
9676 else
9677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9679 fi
9680
9681
9682   fi
9683   test -n "$ac_cv_prog_READELF" && break
9684 done
9685
9686 if test -z "$ac_cv_prog_READELF" ; then
9687   set dummy readelf
9688   if test $build = $host ; then
9689     READELF="$2"
9690   else
9691     READELF="${ncn_tool_prefix}$2"
9692   fi
9693 fi
9694
9695
9696
9697
9698
9699
9700 # Target tools.
9701
9702 # Check whether --with-build-time-tools was given.
9703 if test "${with_build_time_tools+set}" = set; then :
9704   withval=$with_build_time_tools; case x"$withval" in
9705      x/*) ;;
9706      *)
9707        with_build_time_tools=
9708        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9709 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9710        ;;
9711    esac
9712 else
9713   with_build_time_tools=
9714 fi
9715
9716
9717
9718
9719 if test -n "$CC_FOR_TARGET"; then
9720   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9721 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9722   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9723 fi
9724
9725 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9726   for ncn_progname in cc gcc; do
9727     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9728 set dummy ${ncn_progname}; ac_word=$2
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9730 $as_echo_n "checking for $ac_word... " >&6; }
9731 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9732   $as_echo_n "(cached) " >&6
9733 else
9734   if test -n "$CC_FOR_TARGET"; then
9735   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9736 else
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738 for as_dir in $PATH
9739 do
9740   IFS=$as_save_IFS
9741   test -z "$as_dir" && as_dir=.
9742     for ac_exec_ext in '' $ac_executable_extensions; do
9743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9744     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746     break 2
9747   fi
9748 done
9749   done
9750 IFS=$as_save_IFS
9751
9752 fi
9753 fi
9754 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9755 if test -n "$CC_FOR_TARGET"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9757 $as_echo "$CC_FOR_TARGET" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762
9763
9764   done
9765 fi
9766
9767 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9768   for ncn_progname in cc gcc; do
9769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9770 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9771     if test -x $with_build_time_tools/${ncn_progname}; then
9772       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9774 $as_echo "yes" >&6; }
9775       break
9776     else
9777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9779     fi
9780   done
9781 fi
9782
9783 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9784   for ncn_progname in cc gcc; do
9785     if test -n "$ncn_target_tool_prefix"; then
9786       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9787 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789 $as_echo_n "checking for $ac_word... " >&6; }
9790 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9791   $as_echo_n "(cached) " >&6
9792 else
9793   if test -n "$CC_FOR_TARGET"; then
9794   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9795 else
9796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 for as_dir in $PATH
9798 do
9799   IFS=$as_save_IFS
9800   test -z "$as_dir" && as_dir=.
9801     for ac_exec_ext in '' $ac_executable_extensions; do
9802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9803     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9805     break 2
9806   fi
9807 done
9808   done
9809 IFS=$as_save_IFS
9810
9811 fi
9812 fi
9813 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9814 if test -n "$CC_FOR_TARGET"; then
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9816 $as_echo "$CC_FOR_TARGET" >&6; }
9817 else
9818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9820 fi
9821
9822
9823     fi
9824     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9825       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9826 set dummy ${ncn_progname}; ac_word=$2
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9828 $as_echo_n "checking for $ac_word... " >&6; }
9829 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9830   $as_echo_n "(cached) " >&6
9831 else
9832   if test -n "$CC_FOR_TARGET"; then
9833   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9834 else
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9837 do
9838   IFS=$as_save_IFS
9839   test -z "$as_dir" && as_dir=.
9840     for ac_exec_ext in '' $ac_executable_extensions; do
9841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9844     break 2
9845   fi
9846 done
9847   done
9848 IFS=$as_save_IFS
9849
9850 fi
9851 fi
9852 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9853 if test -n "$CC_FOR_TARGET"; then
9854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9855 $as_echo "$CC_FOR_TARGET" >&6; }
9856 else
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9859 fi
9860
9861
9862     fi
9863     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9864   done
9865 fi
9866
9867 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9868   set dummy cc gcc
9869   if test $build = $target ; then
9870     CC_FOR_TARGET="$2"
9871   else
9872     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9873   fi
9874 else
9875   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9876 fi
9877
9878
9879
9880 if test -n "$CXX_FOR_TARGET"; then
9881   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9882 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9883   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9884 fi
9885
9886 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9887   for ncn_progname in c++ g++ cxx gxx; do
9888     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9889 set dummy ${ncn_progname}; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9893   $as_echo_n "(cached) " >&6
9894 else
9895   if test -n "$CXX_FOR_TARGET"; then
9896   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9897 else
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903     for ac_exec_ext in '' $ac_executable_extensions; do
9904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910   done
9911 IFS=$as_save_IFS
9912
9913 fi
9914 fi
9915 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9916 if test -n "$CXX_FOR_TARGET"; then
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9918 $as_echo "$CXX_FOR_TARGET" >&6; }
9919 else
9920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 fi
9923
9924
9925   done
9926 fi
9927
9928 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9929   for ncn_progname in c++ g++ cxx gxx; do
9930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9931 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9932     if test -x $with_build_time_tools/${ncn_progname}; then
9933       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9934       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9935 $as_echo "yes" >&6; }
9936       break
9937     else
9938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9940     fi
9941   done
9942 fi
9943
9944 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9945   for ncn_progname in c++ g++ cxx gxx; do
9946     if test -n "$ncn_target_tool_prefix"; then
9947       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9948 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   if test -n "$CXX_FOR_TARGET"; then
9955   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960   IFS=$as_save_IFS
9961   test -z "$as_dir" && as_dir=.
9962     for ac_exec_ext in '' $ac_executable_extensions; do
9963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966     break 2
9967   fi
9968 done
9969   done
9970 IFS=$as_save_IFS
9971
9972 fi
9973 fi
9974 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9975 if test -n "$CXX_FOR_TARGET"; then
9976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9977 $as_echo "$CXX_FOR_TARGET" >&6; }
9978 else
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 fi
9982
9983
9984     fi
9985     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9986       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9987 set dummy ${ncn_progname}; ac_word=$2
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9989 $as_echo_n "checking for $ac_word... " >&6; }
9990 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9991   $as_echo_n "(cached) " >&6
9992 else
9993   if test -n "$CXX_FOR_TARGET"; then
9994   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9995 else
9996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997 for as_dir in $PATH
9998 do
9999   IFS=$as_save_IFS
10000   test -z "$as_dir" && as_dir=.
10001     for ac_exec_ext in '' $ac_executable_extensions; do
10002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10003     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10005     break 2
10006   fi
10007 done
10008   done
10009 IFS=$as_save_IFS
10010
10011 fi
10012 fi
10013 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10014 if test -n "$CXX_FOR_TARGET"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10016 $as_echo "$CXX_FOR_TARGET" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021
10022
10023     fi
10024     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10025   done
10026 fi
10027
10028 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10029   set dummy c++ g++ cxx gxx
10030   if test $build = $target ; then
10031     CXX_FOR_TARGET="$2"
10032   else
10033     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10034   fi
10035 else
10036   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10037 fi
10038
10039
10040
10041 if test -n "$GCC_FOR_TARGET"; then
10042   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10043 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10044   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10045 fi
10046
10047 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10048   for ncn_progname in gcc; do
10049     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10050 set dummy ${ncn_progname}; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   if test -n "$GCC_FOR_TARGET"; then
10057   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064     for ac_exec_ext in '' $ac_executable_extensions; do
10065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071   done
10072 IFS=$as_save_IFS
10073
10074 fi
10075 fi
10076 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10077 if test -n "$GCC_FOR_TARGET"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10079 $as_echo "$GCC_FOR_TARGET" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085
10086   done
10087 fi
10088
10089 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10090   for ncn_progname in gcc; do
10091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10092 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10093     if test -x $with_build_time_tools/${ncn_progname}; then
10094       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10095       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10096 $as_echo "yes" >&6; }
10097       break
10098     else
10099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10101     fi
10102   done
10103 fi
10104
10105 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10106   for ncn_progname in gcc; do
10107     if test -n "$ncn_target_tool_prefix"; then
10108       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10109 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   if test -n "$GCC_FOR_TARGET"; then
10116   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10120 do
10121   IFS=$as_save_IFS
10122   test -z "$as_dir" && as_dir=.
10123     for ac_exec_ext in '' $ac_executable_extensions; do
10124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10125     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127     break 2
10128   fi
10129 done
10130   done
10131 IFS=$as_save_IFS
10132
10133 fi
10134 fi
10135 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10136 if test -n "$GCC_FOR_TARGET"; then
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10138 $as_echo "$GCC_FOR_TARGET" >&6; }
10139 else
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145     fi
10146     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10147       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10148 set dummy ${ncn_progname}; ac_word=$2
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 $as_echo_n "checking for $ac_word... " >&6; }
10151 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10152   $as_echo_n "(cached) " >&6
10153 else
10154   if test -n "$GCC_FOR_TARGET"; then
10155   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10156 else
10157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158 for as_dir in $PATH
10159 do
10160   IFS=$as_save_IFS
10161   test -z "$as_dir" && as_dir=.
10162     for ac_exec_ext in '' $ac_executable_extensions; do
10163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10164     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166     break 2
10167   fi
10168 done
10169   done
10170 IFS=$as_save_IFS
10171
10172 fi
10173 fi
10174 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10175 if test -n "$GCC_FOR_TARGET"; then
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10177 $as_echo "$GCC_FOR_TARGET" >&6; }
10178 else
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182
10183
10184     fi
10185     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10186   done
10187 fi
10188
10189 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10190   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10191 else
10192   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10193 fi
10194
10195
10196
10197 if test -n "$GCJ_FOR_TARGET"; then
10198   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10199 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10200   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10201 fi
10202
10203 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10204   for ncn_progname in gcj; do
10205     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10206 set dummy ${ncn_progname}; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10210   $as_echo_n "(cached) " >&6
10211 else
10212   if test -n "$GCJ_FOR_TARGET"; then
10213   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10217 do
10218   IFS=$as_save_IFS
10219   test -z "$as_dir" && as_dir=.
10220     for ac_exec_ext in '' $ac_executable_extensions; do
10221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224     break 2
10225   fi
10226 done
10227   done
10228 IFS=$as_save_IFS
10229
10230 fi
10231 fi
10232 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10233 if test -n "$GCJ_FOR_TARGET"; then
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10235 $as_echo "$GCJ_FOR_TARGET" >&6; }
10236 else
10237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242   done
10243 fi
10244
10245 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10246   for ncn_progname in gcj; do
10247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10248 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10249     if test -x $with_build_time_tools/${ncn_progname}; then
10250       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10252 $as_echo "yes" >&6; }
10253       break
10254     else
10255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257     fi
10258   done
10259 fi
10260
10261 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10262   for ncn_progname in gcj; do
10263     if test -n "$ncn_target_tool_prefix"; then
10264       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267 $as_echo_n "checking for $ac_word... " >&6; }
10268 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10269   $as_echo_n "(cached) " >&6
10270 else
10271   if test -n "$GCJ_FOR_TARGET"; then
10272   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10273 else
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10276 do
10277   IFS=$as_save_IFS
10278   test -z "$as_dir" && as_dir=.
10279     for ac_exec_ext in '' $ac_executable_extensions; do
10280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283     break 2
10284   fi
10285 done
10286   done
10287 IFS=$as_save_IFS
10288
10289 fi
10290 fi
10291 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10292 if test -n "$GCJ_FOR_TARGET"; then
10293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10294 $as_echo "$GCJ_FOR_TARGET" >&6; }
10295 else
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10298 fi
10299
10300
10301     fi
10302     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10303       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10304 set dummy ${ncn_progname}; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   if test -n "$GCJ_FOR_TARGET"; then
10311   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318     for ac_exec_ext in '' $ac_executable_extensions; do
10319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325   done
10326 IFS=$as_save_IFS
10327
10328 fi
10329 fi
10330 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10331 if test -n "$GCJ_FOR_TARGET"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10333 $as_echo "$GCJ_FOR_TARGET" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338
10339
10340     fi
10341     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10342   done
10343 fi
10344
10345 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10346   set dummy gcj
10347   if test $build = $target ; then
10348     GCJ_FOR_TARGET="$2"
10349   else
10350     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10351   fi
10352 else
10353   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10354 fi
10355
10356
10357
10358 if test -n "$GFORTRAN_FOR_TARGET"; then
10359   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10360 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10361   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10362 fi
10363
10364 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10365   for ncn_progname in gfortran; do
10366     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10367 set dummy ${ncn_progname}; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10371   $as_echo_n "(cached) " >&6
10372 else
10373   if test -n "$GFORTRAN_FOR_TARGET"; then
10374   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10375 else
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10378 do
10379   IFS=$as_save_IFS
10380   test -z "$as_dir" && as_dir=.
10381     for ac_exec_ext in '' $ac_executable_extensions; do
10382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10383     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385     break 2
10386   fi
10387 done
10388   done
10389 IFS=$as_save_IFS
10390
10391 fi
10392 fi
10393 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10394 if test -n "$GFORTRAN_FOR_TARGET"; then
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10396 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10397 else
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10400 fi
10401
10402
10403   done
10404 fi
10405
10406 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10407   for ncn_progname in gfortran; do
10408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10409 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10410     if test -x $with_build_time_tools/${ncn_progname}; then
10411       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10413 $as_echo "yes" >&6; }
10414       break
10415     else
10416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10418     fi
10419   done
10420 fi
10421
10422 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10423   for ncn_progname in gfortran; do
10424     if test -n "$ncn_target_tool_prefix"; then
10425       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10430   $as_echo_n "(cached) " >&6
10431 else
10432   if test -n "$GFORTRAN_FOR_TARGET"; then
10433   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10437 do
10438   IFS=$as_save_IFS
10439   test -z "$as_dir" && as_dir=.
10440     for ac_exec_ext in '' $ac_executable_extensions; do
10441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444     break 2
10445   fi
10446 done
10447   done
10448 IFS=$as_save_IFS
10449
10450 fi
10451 fi
10452 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10453 if test -n "$GFORTRAN_FOR_TARGET"; then
10454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10455 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10456 else
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 fi
10460
10461
10462     fi
10463     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10464       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10465 set dummy ${ncn_progname}; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10469   $as_echo_n "(cached) " >&6
10470 else
10471   if test -n "$GFORTRAN_FOR_TARGET"; then
10472   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10473 else
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 for as_dir in $PATH
10476 do
10477   IFS=$as_save_IFS
10478   test -z "$as_dir" && as_dir=.
10479     for ac_exec_ext in '' $ac_executable_extensions; do
10480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483     break 2
10484   fi
10485 done
10486   done
10487 IFS=$as_save_IFS
10488
10489 fi
10490 fi
10491 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10492 if test -n "$GFORTRAN_FOR_TARGET"; then
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10494 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499
10500
10501     fi
10502     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10503   done
10504 fi
10505
10506 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10507   set dummy gfortran
10508   if test $build = $target ; then
10509     GFORTRAN_FOR_TARGET="$2"
10510   else
10511     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10512   fi
10513 else
10514   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10515 fi
10516
10517
10518
10519 if test -n "$GOC_FOR_TARGET"; then
10520   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10521 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10522   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10523 fi
10524
10525 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10526   for ncn_progname in gccgo; do
10527     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_progname}; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   if test -n "$GOC_FOR_TARGET"; then
10535   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10539 do
10540   IFS=$as_save_IFS
10541   test -z "$as_dir" && as_dir=.
10542     for ac_exec_ext in '' $ac_executable_extensions; do
10543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546     break 2
10547   fi
10548 done
10549   done
10550 IFS=$as_save_IFS
10551
10552 fi
10553 fi
10554 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10555 if test -n "$GOC_FOR_TARGET"; then
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10557 $as_echo "$GOC_FOR_TARGET" >&6; }
10558 else
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 fi
10562
10563
10564   done
10565 fi
10566
10567 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10568   for ncn_progname in gccgo; do
10569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10570 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10571     if test -x $with_build_time_tools/${ncn_progname}; then
10572       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; }
10575       break
10576     else
10577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579     fi
10580   done
10581 fi
10582
10583 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10584   for ncn_progname in gccgo; do
10585     if test -n "$ncn_target_tool_prefix"; then
10586       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10587 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10591   $as_echo_n "(cached) " >&6
10592 else
10593   if test -n "$GOC_FOR_TARGET"; then
10594   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10595 else
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10598 do
10599   IFS=$as_save_IFS
10600   test -z "$as_dir" && as_dir=.
10601     for ac_exec_ext in '' $ac_executable_extensions; do
10602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10603     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605     break 2
10606   fi
10607 done
10608   done
10609 IFS=$as_save_IFS
10610
10611 fi
10612 fi
10613 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10614 if test -n "$GOC_FOR_TARGET"; then
10615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10616 $as_echo "$GOC_FOR_TARGET" >&6; }
10617 else
10618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; }
10620 fi
10621
10622
10623     fi
10624     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10625       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10626 set dummy ${ncn_progname}; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   if test -n "$GOC_FOR_TARGET"; then
10633   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10634 else
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10637 do
10638   IFS=$as_save_IFS
10639   test -z "$as_dir" && as_dir=.
10640     for ac_exec_ext in '' $ac_executable_extensions; do
10641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10642     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10644     break 2
10645   fi
10646 done
10647   done
10648 IFS=$as_save_IFS
10649
10650 fi
10651 fi
10652 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10653 if test -n "$GOC_FOR_TARGET"; then
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10655 $as_echo "$GOC_FOR_TARGET" >&6; }
10656 else
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659 fi
10660
10661
10662     fi
10663     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10664   done
10665 fi
10666
10667 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10668   set dummy gccgo
10669   if test $build = $target ; then
10670     GOC_FOR_TARGET="$2"
10671   else
10672     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10673   fi
10674 else
10675   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10676 fi
10677
10678
10679
10680 cat > conftest.c << \EOF
10681 #ifdef __GNUC__
10682   gcc_yay;
10683 #endif
10684 EOF
10685 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10686   have_gcc_for_target=yes
10687 else
10688   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10689   have_gcc_for_target=no
10690 fi
10691 rm conftest.c
10692
10693
10694
10695
10696 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10697   if test -n "$with_build_time_tools"; then
10698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10699 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10700     if test -x $with_build_time_tools/ar; then
10701       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10702       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10703       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10704 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10705     else
10706       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10708     fi
10709   elif test $build != $host && test $have_gcc_for_target = yes; then
10710     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10711     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10712     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10713   fi
10714 fi
10715 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10716   # Extract the first word of "ar", so it can be a program name with args.
10717 set dummy ar; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10721   $as_echo_n "(cached) " >&6
10722 else
10723   case $AR_FOR_TARGET in
10724   [\\/]* | ?:[\\/]*)
10725   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10726   ;;
10727   *)
10728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $gcc_cv_tool_dirs
10730 do
10731   IFS=$as_save_IFS
10732   test -z "$as_dir" && as_dir=.
10733     for ac_exec_ext in '' $ac_executable_extensions; do
10734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10735     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737     break 2
10738   fi
10739 done
10740   done
10741 IFS=$as_save_IFS
10742
10743   ;;
10744 esac
10745 fi
10746 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10747 if test -n "$AR_FOR_TARGET"; then
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10749 $as_echo "$AR_FOR_TARGET" >&6; }
10750 else
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10754
10755
10756 fi
10757 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10758
10759
10760 if test -n "$AR_FOR_TARGET"; then
10761   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10762 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10763   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10764 fi
10765
10766 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10767   for ncn_progname in ar; do
10768     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769 set dummy ${ncn_progname}; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   if test -n "$AR_FOR_TARGET"; then
10776   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792
10793 fi
10794 fi
10795 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10796 if test -n "$AR_FOR_TARGET"; then
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10798 $as_echo "$AR_FOR_TARGET" >&6; }
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803
10804
10805   done
10806 fi
10807
10808 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10809   for ncn_progname in ar; do
10810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10812     if test -x $with_build_time_tools/${ncn_progname}; then
10813       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815 $as_echo "yes" >&6; }
10816       break
10817     else
10818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 $as_echo "no" >&6; }
10820     fi
10821   done
10822 fi
10823
10824 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10825   for ncn_progname in ar; do
10826     if test -n "$ncn_target_tool_prefix"; then
10827       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830 $as_echo_n "checking for $ac_word... " >&6; }
10831 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   if test -n "$AR_FOR_TARGET"; then
10835   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10836 else
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10839 do
10840   IFS=$as_save_IFS
10841   test -z "$as_dir" && as_dir=.
10842     for ac_exec_ext in '' $ac_executable_extensions; do
10843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10844     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846     break 2
10847   fi
10848 done
10849   done
10850 IFS=$as_save_IFS
10851
10852 fi
10853 fi
10854 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10855 if test -n "$AR_FOR_TARGET"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10857 $as_echo "$AR_FOR_TARGET" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862
10863
10864     fi
10865     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10866       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867 set dummy ${ncn_progname}; ac_word=$2
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869 $as_echo_n "checking for $ac_word... " >&6; }
10870 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10871   $as_echo_n "(cached) " >&6
10872 else
10873   if test -n "$AR_FOR_TARGET"; then
10874   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10875 else
10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10878 do
10879   IFS=$as_save_IFS
10880   test -z "$as_dir" && as_dir=.
10881     for ac_exec_ext in '' $ac_executable_extensions; do
10882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10883     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885     break 2
10886   fi
10887 done
10888   done
10889 IFS=$as_save_IFS
10890
10891 fi
10892 fi
10893 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10894 if test -n "$AR_FOR_TARGET"; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10896 $as_echo "$AR_FOR_TARGET" >&6; }
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901
10902
10903     fi
10904     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10905   done
10906 fi
10907
10908 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10909   set dummy ar
10910   if test $build = $target ; then
10911     AR_FOR_TARGET="$2"
10912   else
10913     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10914   fi
10915 else
10916   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10917 fi
10918
10919 else
10920   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10921 fi
10922
10923
10924
10925
10926 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10927   if test -n "$with_build_time_tools"; then
10928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10929 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10930     if test -x $with_build_time_tools/as; then
10931       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10932       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10934 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10935     else
10936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938     fi
10939   elif test $build != $host && test $have_gcc_for_target = yes; then
10940     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10941     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10942     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10943   fi
10944 fi
10945 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10946   # Extract the first word of "as", so it can be a program name with args.
10947 set dummy as; ac_word=$2
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10949 $as_echo_n "checking for $ac_word... " >&6; }
10950 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10951   $as_echo_n "(cached) " >&6
10952 else
10953   case $AS_FOR_TARGET in
10954   [\\/]* | ?:[\\/]*)
10955   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10956   ;;
10957   *)
10958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $gcc_cv_tool_dirs
10960 do
10961   IFS=$as_save_IFS
10962   test -z "$as_dir" && as_dir=.
10963     for ac_exec_ext in '' $ac_executable_extensions; do
10964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967     break 2
10968   fi
10969 done
10970   done
10971 IFS=$as_save_IFS
10972
10973   ;;
10974 esac
10975 fi
10976 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10977 if test -n "$AS_FOR_TARGET"; then
10978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10979 $as_echo "$AS_FOR_TARGET" >&6; }
10980 else
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 fi
10984
10985
10986 fi
10987 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10988
10989
10990 if test -n "$AS_FOR_TARGET"; then
10991   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10992 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10993   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10994 fi
10995
10996 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10997   for ncn_progname in as; do
10998     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10999 set dummy ${ncn_progname}; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11003   $as_echo_n "(cached) " >&6
11004 else
11005   if test -n "$AS_FOR_TARGET"; then
11006   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11010 do
11011   IFS=$as_save_IFS
11012   test -z "$as_dir" && as_dir=.
11013     for ac_exec_ext in '' $ac_executable_extensions; do
11014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11015     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017     break 2
11018   fi
11019 done
11020   done
11021 IFS=$as_save_IFS
11022
11023 fi
11024 fi
11025 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11026 if test -n "$AS_FOR_TARGET"; then
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11028 $as_echo "$AS_FOR_TARGET" >&6; }
11029 else
11030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11032 fi
11033
11034
11035   done
11036 fi
11037
11038 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11039   for ncn_progname in as; do
11040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11041 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11042     if test -x $with_build_time_tools/${ncn_progname}; then
11043       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045 $as_echo "yes" >&6; }
11046       break
11047     else
11048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050     fi
11051   done
11052 fi
11053
11054 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11055   for ncn_progname in as; do
11056     if test -n "$ncn_target_tool_prefix"; then
11057       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11058 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   if test -n "$AS_FOR_TARGET"; then
11065   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11066 else
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070   IFS=$as_save_IFS
11071   test -z "$as_dir" && as_dir=.
11072     for ac_exec_ext in '' $ac_executable_extensions; do
11073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11074     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076     break 2
11077   fi
11078 done
11079   done
11080 IFS=$as_save_IFS
11081
11082 fi
11083 fi
11084 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11085 if test -n "$AS_FOR_TARGET"; then
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11087 $as_echo "$AS_FOR_TARGET" >&6; }
11088 else
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091 fi
11092
11093
11094     fi
11095     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11096       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11097 set dummy ${ncn_progname}; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11101   $as_echo_n "(cached) " >&6
11102 else
11103   if test -n "$AS_FOR_TARGET"; then
11104   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109   IFS=$as_save_IFS
11110   test -z "$as_dir" && as_dir=.
11111     for ac_exec_ext in '' $ac_executable_extensions; do
11112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115     break 2
11116   fi
11117 done
11118   done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11124 if test -n "$AS_FOR_TARGET"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11126 $as_echo "$AS_FOR_TARGET" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133     fi
11134     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11135   done
11136 fi
11137
11138 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11139   set dummy as
11140   if test $build = $target ; then
11141     AS_FOR_TARGET="$2"
11142   else
11143     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11144   fi
11145 else
11146   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11147 fi
11148
11149 else
11150   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11151 fi
11152
11153
11154
11155
11156 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11157   if test -n "$with_build_time_tools"; then
11158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11159 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11160     if test -x $with_build_time_tools/dlltool; then
11161       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11162       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11164 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11165     else
11166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168     fi
11169   elif test $build != $host && test $have_gcc_for_target = yes; then
11170     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11171     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11172     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11173   fi
11174 fi
11175 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11176   # Extract the first word of "dlltool", so it can be a program name with args.
11177 set dummy dlltool; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 $as_echo_n "checking for $ac_word... " >&6; }
11180 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   case $DLLTOOL_FOR_TARGET in
11184   [\\/]* | ?:[\\/]*)
11185   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11186   ;;
11187   *)
11188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189 for as_dir in $gcc_cv_tool_dirs
11190 do
11191   IFS=$as_save_IFS
11192   test -z "$as_dir" && as_dir=.
11193     for ac_exec_ext in '' $ac_executable_extensions; do
11194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197     break 2
11198   fi
11199 done
11200   done
11201 IFS=$as_save_IFS
11202
11203   ;;
11204 esac
11205 fi
11206 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11207 if test -n "$DLLTOOL_FOR_TARGET"; then
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11209 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11210 else
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11213 fi
11214
11215
11216 fi
11217 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11218
11219
11220 if test -n "$DLLTOOL_FOR_TARGET"; then
11221   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11222 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11223   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11224 fi
11225
11226 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11227   for ncn_progname in dlltool; do
11228     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11229 set dummy ${ncn_progname}; ac_word=$2
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11231 $as_echo_n "checking for $ac_word... " >&6; }
11232 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11233   $as_echo_n "(cached) " >&6
11234 else
11235   if test -n "$DLLTOOL_FOR_TARGET"; then
11236   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11237 else
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241   IFS=$as_save_IFS
11242   test -z "$as_dir" && as_dir=.
11243     for ac_exec_ext in '' $ac_executable_extensions; do
11244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247     break 2
11248   fi
11249 done
11250   done
11251 IFS=$as_save_IFS
11252
11253 fi
11254 fi
11255 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11256 if test -n "$DLLTOOL_FOR_TARGET"; then
11257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11258 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11259 else
11260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11262 fi
11263
11264
11265   done
11266 fi
11267
11268 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11269   for ncn_progname in dlltool; do
11270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11271 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11272     if test -x $with_build_time_tools/${ncn_progname}; then
11273       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11275 $as_echo "yes" >&6; }
11276       break
11277     else
11278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280     fi
11281   done
11282 fi
11283
11284 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11285   for ncn_progname in dlltool; do
11286     if test -n "$ncn_target_tool_prefix"; then
11287       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11288 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 $as_echo_n "checking for $ac_word... " >&6; }
11291 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11292   $as_echo_n "(cached) " >&6
11293 else
11294   if test -n "$DLLTOOL_FOR_TARGET"; then
11295   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11296 else
11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298 for as_dir in $PATH
11299 do
11300   IFS=$as_save_IFS
11301   test -z "$as_dir" && as_dir=.
11302     for ac_exec_ext in '' $ac_executable_extensions; do
11303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11304     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306     break 2
11307   fi
11308 done
11309   done
11310 IFS=$as_save_IFS
11311
11312 fi
11313 fi
11314 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11315 if test -n "$DLLTOOL_FOR_TARGET"; then
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11317 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11318 else
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321 fi
11322
11323
11324     fi
11325     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11326       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11327 set dummy ${ncn_progname}; ac_word=$2
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11331   $as_echo_n "(cached) " >&6
11332 else
11333   if test -n "$DLLTOOL_FOR_TARGET"; then
11334   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11335 else
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $PATH
11338 do
11339   IFS=$as_save_IFS
11340   test -z "$as_dir" && as_dir=.
11341     for ac_exec_ext in '' $ac_executable_extensions; do
11342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345     break 2
11346   fi
11347 done
11348   done
11349 IFS=$as_save_IFS
11350
11351 fi
11352 fi
11353 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11354 if test -n "$DLLTOOL_FOR_TARGET"; then
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11356 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11357 else
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 $as_echo "no" >&6; }
11360 fi
11361
11362
11363     fi
11364     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11365   done
11366 fi
11367
11368 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11369   set dummy dlltool
11370   if test $build = $target ; then
11371     DLLTOOL_FOR_TARGET="$2"
11372   else
11373     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11374   fi
11375 else
11376   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11377 fi
11378
11379 else
11380   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11381 fi
11382
11383
11384
11385
11386 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11387   if test -n "$with_build_time_tools"; then
11388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11389 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11390     if test -x $with_build_time_tools/ld; then
11391       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11392       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11394 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11395     else
11396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398     fi
11399   elif test $build != $host && test $have_gcc_for_target = yes; then
11400     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11401     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11402     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11403   fi
11404 fi
11405 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11406   # Extract the first word of "ld", so it can be a program name with args.
11407 set dummy ld; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11411   $as_echo_n "(cached) " >&6
11412 else
11413   case $LD_FOR_TARGET in
11414   [\\/]* | ?:[\\/]*)
11415   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11416   ;;
11417   *)
11418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419 for as_dir in $gcc_cv_tool_dirs
11420 do
11421   IFS=$as_save_IFS
11422   test -z "$as_dir" && as_dir=.
11423     for ac_exec_ext in '' $ac_executable_extensions; do
11424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11425     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11427     break 2
11428   fi
11429 done
11430   done
11431 IFS=$as_save_IFS
11432
11433   ;;
11434 esac
11435 fi
11436 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11437 if test -n "$LD_FOR_TARGET"; then
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11439 $as_echo "$LD_FOR_TARGET" >&6; }
11440 else
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11443 fi
11444
11445
11446 fi
11447 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11448
11449
11450 if test -n "$LD_FOR_TARGET"; then
11451   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11452 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11453   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11454 fi
11455
11456 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11457   for ncn_progname in ld; do
11458     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11459 set dummy ${ncn_progname}; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11463   $as_echo_n "(cached) " >&6
11464 else
11465   if test -n "$LD_FOR_TARGET"; then
11466   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11467 else
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471   IFS=$as_save_IFS
11472   test -z "$as_dir" && as_dir=.
11473     for ac_exec_ext in '' $ac_executable_extensions; do
11474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477     break 2
11478   fi
11479 done
11480   done
11481 IFS=$as_save_IFS
11482
11483 fi
11484 fi
11485 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11486 if test -n "$LD_FOR_TARGET"; then
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11488 $as_echo "$LD_FOR_TARGET" >&6; }
11489 else
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11492 fi
11493
11494
11495   done
11496 fi
11497
11498 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11499   for ncn_progname in ld; do
11500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11502     if test -x $with_build_time_tools/${ncn_progname}; then
11503       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11506       break
11507     else
11508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510     fi
11511   done
11512 fi
11513
11514 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11515   for ncn_progname in ld; do
11516     if test -n "$ncn_target_tool_prefix"; then
11517       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520 $as_echo_n "checking for $ac_word... " >&6; }
11521 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   if test -n "$LD_FOR_TARGET"; then
11525   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11526 else
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11529 do
11530   IFS=$as_save_IFS
11531   test -z "$as_dir" && as_dir=.
11532     for ac_exec_ext in '' $ac_executable_extensions; do
11533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536     break 2
11537   fi
11538 done
11539   done
11540 IFS=$as_save_IFS
11541
11542 fi
11543 fi
11544 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11545 if test -n "$LD_FOR_TARGET"; then
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11547 $as_echo "$LD_FOR_TARGET" >&6; }
11548 else
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552
11553
11554     fi
11555     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11556       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557 set dummy ${ncn_progname}; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   if test -n "$LD_FOR_TARGET"; then
11564   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11565 else
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11568 do
11569   IFS=$as_save_IFS
11570   test -z "$as_dir" && as_dir=.
11571     for ac_exec_ext in '' $ac_executable_extensions; do
11572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575     break 2
11576   fi
11577 done
11578   done
11579 IFS=$as_save_IFS
11580
11581 fi
11582 fi
11583 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11584 if test -n "$LD_FOR_TARGET"; then
11585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11586 $as_echo "$LD_FOR_TARGET" >&6; }
11587 else
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589 $as_echo "no" >&6; }
11590 fi
11591
11592
11593     fi
11594     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11595   done
11596 fi
11597
11598 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11599   set dummy ld
11600   if test $build = $target ; then
11601     LD_FOR_TARGET="$2"
11602   else
11603     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11604   fi
11605 else
11606   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11607 fi
11608
11609 else
11610   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11611 fi
11612
11613
11614
11615
11616 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11617   if test -n "$with_build_time_tools"; then
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11619 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11620     if test -x $with_build_time_tools/lipo; then
11621       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11622       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11624 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11625     else
11626       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11628     fi
11629   elif test $build != $host && test $have_gcc_for_target = yes; then
11630     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11631     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11632     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11633   fi
11634 fi
11635 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11636   # Extract the first word of "lipo", so it can be a program name with args.
11637 set dummy lipo; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11641   $as_echo_n "(cached) " >&6
11642 else
11643   case $LIPO_FOR_TARGET in
11644   [\\/]* | ?:[\\/]*)
11645   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11646   ;;
11647   *)
11648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $gcc_cv_tool_dirs
11650 do
11651   IFS=$as_save_IFS
11652   test -z "$as_dir" && as_dir=.
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657     break 2
11658   fi
11659 done
11660   done
11661 IFS=$as_save_IFS
11662
11663   ;;
11664 esac
11665 fi
11666 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11667 if test -n "$LIPO_FOR_TARGET"; then
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11669 $as_echo "$LIPO_FOR_TARGET" >&6; }
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676 fi
11677 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11678
11679
11680 if test -n "$LIPO_FOR_TARGET"; then
11681   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11682 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11683   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11684 fi
11685
11686 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11687   for ncn_progname in lipo; do
11688     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11689 set dummy ${ncn_progname}; ac_word=$2
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691 $as_echo_n "checking for $ac_word... " >&6; }
11692 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11693   $as_echo_n "(cached) " >&6
11694 else
11695   if test -n "$LIPO_FOR_TARGET"; then
11696   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11697 else
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703     for ac_exec_ext in '' $ac_executable_extensions; do
11704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707     break 2
11708   fi
11709 done
11710   done
11711 IFS=$as_save_IFS
11712
11713 fi
11714 fi
11715 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11716 if test -n "$LIPO_FOR_TARGET"; then
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11718 $as_echo "$LIPO_FOR_TARGET" >&6; }
11719 else
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11722 fi
11723
11724
11725   done
11726 fi
11727
11728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11729   for ncn_progname in lipo; do
11730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11731 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11732     if test -x $with_build_time_tools/${ncn_progname}; then
11733       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11736       break
11737     else
11738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740     fi
11741   done
11742 fi
11743
11744 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11745   for ncn_progname in lipo; do
11746     if test -n "$ncn_target_tool_prefix"; then
11747       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11748 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11752   $as_echo_n "(cached) " >&6
11753 else
11754   if test -n "$LIPO_FOR_TARGET"; then
11755   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11756 else
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760   IFS=$as_save_IFS
11761   test -z "$as_dir" && as_dir=.
11762     for ac_exec_ext in '' $ac_executable_extensions; do
11763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766     break 2
11767   fi
11768 done
11769   done
11770 IFS=$as_save_IFS
11771
11772 fi
11773 fi
11774 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11775 if test -n "$LIPO_FOR_TARGET"; then
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11777 $as_echo "$LIPO_FOR_TARGET" >&6; }
11778 else
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782
11783
11784     fi
11785     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11786       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787 set dummy ${ncn_progname}; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   if test -n "$LIPO_FOR_TARGET"; then
11794   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799   IFS=$as_save_IFS
11800   test -z "$as_dir" && as_dir=.
11801     for ac_exec_ext in '' $ac_executable_extensions; do
11802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805     break 2
11806   fi
11807 done
11808   done
11809 IFS=$as_save_IFS
11810
11811 fi
11812 fi
11813 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11814 if test -n "$LIPO_FOR_TARGET"; then
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11816 $as_echo "$LIPO_FOR_TARGET" >&6; }
11817 else
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821
11822
11823     fi
11824     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11825   done
11826 fi
11827
11828 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11829   set dummy lipo
11830   if test $build = $target ; then
11831     LIPO_FOR_TARGET="$2"
11832   else
11833     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11834   fi
11835 else
11836   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11837 fi
11838
11839 else
11840   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11841 fi
11842
11843
11844
11845
11846 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11847   if test -n "$with_build_time_tools"; then
11848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11849 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11850     if test -x $with_build_time_tools/nm; then
11851       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11852       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11854 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11855     else
11856       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858     fi
11859   elif test $build != $host && test $have_gcc_for_target = yes; then
11860     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11861     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11862     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11863   fi
11864 fi
11865 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11866   # Extract the first word of "nm", so it can be a program name with args.
11867 set dummy nm; ac_word=$2
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869 $as_echo_n "checking for $ac_word... " >&6; }
11870 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11871   $as_echo_n "(cached) " >&6
11872 else
11873   case $NM_FOR_TARGET in
11874   [\\/]* | ?:[\\/]*)
11875   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11876   ;;
11877   *)
11878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $gcc_cv_tool_dirs
11880 do
11881   IFS=$as_save_IFS
11882   test -z "$as_dir" && as_dir=.
11883     for ac_exec_ext in '' $ac_executable_extensions; do
11884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11885     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887     break 2
11888   fi
11889 done
11890   done
11891 IFS=$as_save_IFS
11892
11893   ;;
11894 esac
11895 fi
11896 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11897 if test -n "$NM_FOR_TARGET"; then
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11899 $as_echo "$NM_FOR_TARGET" >&6; }
11900 else
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906 fi
11907 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11908
11909
11910 if test -n "$NM_FOR_TARGET"; then
11911   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11912 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11913   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11914 fi
11915
11916 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11917   for ncn_progname in nm; do
11918     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11919 set dummy ${ncn_progname}; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 $as_echo_n "checking for $ac_word... " >&6; }
11922 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   if test -n "$NM_FOR_TARGET"; then
11926   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11927 else
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11930 do
11931   IFS=$as_save_IFS
11932   test -z "$as_dir" && as_dir=.
11933     for ac_exec_ext in '' $ac_executable_extensions; do
11934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11935     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937     break 2
11938   fi
11939 done
11940   done
11941 IFS=$as_save_IFS
11942
11943 fi
11944 fi
11945 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11946 if test -n "$NM_FOR_TARGET"; then
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11948 $as_echo "$NM_FOR_TARGET" >&6; }
11949 else
11950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952 fi
11953
11954
11955   done
11956 fi
11957
11958 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11959   for ncn_progname in nm; do
11960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11961 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11962     if test -x $with_build_time_tools/${ncn_progname}; then
11963       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11966       break
11967     else
11968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970     fi
11971   done
11972 fi
11973
11974 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11975   for ncn_progname in nm; do
11976     if test -n "$ncn_target_tool_prefix"; then
11977       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980 $as_echo_n "checking for $ac_word... " >&6; }
11981 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   if test -n "$NM_FOR_TARGET"; then
11985   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11986 else
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990   IFS=$as_save_IFS
11991   test -z "$as_dir" && as_dir=.
11992     for ac_exec_ext in '' $ac_executable_extensions; do
11993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11994     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996     break 2
11997   fi
11998 done
11999   done
12000 IFS=$as_save_IFS
12001
12002 fi
12003 fi
12004 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12005 if test -n "$NM_FOR_TARGET"; then
12006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12007 $as_echo "$NM_FOR_TARGET" >&6; }
12008 else
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011 fi
12012
12013
12014     fi
12015     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12016       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12017 set dummy ${ncn_progname}; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   if test -n "$NM_FOR_TARGET"; then
12024   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12025 else
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029   IFS=$as_save_IFS
12030   test -z "$as_dir" && as_dir=.
12031     for ac_exec_ext in '' $ac_executable_extensions; do
12032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12033     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035     break 2
12036   fi
12037 done
12038   done
12039 IFS=$as_save_IFS
12040
12041 fi
12042 fi
12043 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12044 if test -n "$NM_FOR_TARGET"; then
12045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12046 $as_echo "$NM_FOR_TARGET" >&6; }
12047 else
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; }
12050 fi
12051
12052
12053     fi
12054     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12055   done
12056 fi
12057
12058 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12059   set dummy nm
12060   if test $build = $target ; then
12061     NM_FOR_TARGET="$2"
12062   else
12063     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12064   fi
12065 else
12066   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12067 fi
12068
12069 else
12070   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12071 fi
12072
12073
12074
12075
12076 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12077   if test -n "$with_build_time_tools"; then
12078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12079 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12080     if test -x $with_build_time_tools/objcopy; then
12081       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12082       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12084 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12085     else
12086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12088     fi
12089   elif test $build != $host && test $have_gcc_for_target = yes; then
12090     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12091     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12092     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12093   fi
12094 fi
12095 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12096   # Extract the first word of "objcopy", so it can be a program name with args.
12097 set dummy objcopy; ac_word=$2
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12099 $as_echo_n "checking for $ac_word... " >&6; }
12100 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12101   $as_echo_n "(cached) " >&6
12102 else
12103   case $OBJCOPY_FOR_TARGET in
12104   [\\/]* | ?:[\\/]*)
12105   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12106   ;;
12107   *)
12108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $gcc_cv_tool_dirs
12110 do
12111   IFS=$as_save_IFS
12112   test -z "$as_dir" && as_dir=.
12113     for ac_exec_ext in '' $ac_executable_extensions; do
12114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117     break 2
12118   fi
12119 done
12120   done
12121 IFS=$as_save_IFS
12122
12123   ;;
12124 esac
12125 fi
12126 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12127 if test -n "$OBJCOPY_FOR_TARGET"; then
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12129 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12130 else
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134
12135
12136 fi
12137 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12138
12139
12140 if test -n "$OBJCOPY_FOR_TARGET"; then
12141   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12142 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12143   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12144 fi
12145
12146 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12147   for ncn_progname in objcopy; do
12148     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12149 set dummy ${ncn_progname}; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12153   $as_echo_n "(cached) " >&6
12154 else
12155   if test -n "$OBJCOPY_FOR_TARGET"; then
12156   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161   IFS=$as_save_IFS
12162   test -z "$as_dir" && as_dir=.
12163     for ac_exec_ext in '' $ac_executable_extensions; do
12164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167     break 2
12168   fi
12169 done
12170   done
12171 IFS=$as_save_IFS
12172
12173 fi
12174 fi
12175 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12176 if test -n "$OBJCOPY_FOR_TARGET"; then
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12178 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12179 else
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185   done
12186 fi
12187
12188 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12189   for ncn_progname in objcopy; do
12190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12191 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12192     if test -x $with_build_time_tools/${ncn_progname}; then
12193       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; }
12196       break
12197     else
12198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12200     fi
12201   done
12202 fi
12203
12204 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12205   for ncn_progname in objcopy; do
12206     if test -n "$ncn_target_tool_prefix"; then
12207       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12208 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   if test -n "$OBJCOPY_FOR_TARGET"; then
12215   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12216 else
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220   IFS=$as_save_IFS
12221   test -z "$as_dir" && as_dir=.
12222     for ac_exec_ext in '' $ac_executable_extensions; do
12223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12224     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226     break 2
12227   fi
12228 done
12229   done
12230 IFS=$as_save_IFS
12231
12232 fi
12233 fi
12234 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12235 if test -n "$OBJCOPY_FOR_TARGET"; then
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12237 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12241 fi
12242
12243
12244     fi
12245     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12246       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12247 set dummy ${ncn_progname}; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253   if test -n "$OBJCOPY_FOR_TARGET"; then
12254   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12255 else
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12258 do
12259   IFS=$as_save_IFS
12260   test -z "$as_dir" && as_dir=.
12261     for ac_exec_ext in '' $ac_executable_extensions; do
12262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265     break 2
12266   fi
12267 done
12268   done
12269 IFS=$as_save_IFS
12270
12271 fi
12272 fi
12273 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12274 if test -n "$OBJCOPY_FOR_TARGET"; then
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12276 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12277 else
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282
12283     fi
12284     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12285   done
12286 fi
12287
12288 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12289   set dummy objcopy
12290   if test $build = $target ; then
12291     OBJCOPY_FOR_TARGET="$2"
12292   else
12293     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12294   fi
12295 else
12296   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12297 fi
12298
12299 else
12300   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12301 fi
12302
12303
12304
12305
12306 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12307   if test -n "$with_build_time_tools"; then
12308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12309 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12310     if test -x $with_build_time_tools/objdump; then
12311       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12312       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12314 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12315     else
12316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317 $as_echo "no" >&6; }
12318     fi
12319   elif test $build != $host && test $have_gcc_for_target = yes; then
12320     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12321     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12322     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12323   fi
12324 fi
12325 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12326   # Extract the first word of "objdump", so it can be a program name with args.
12327 set dummy objdump; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   case $OBJDUMP_FOR_TARGET in
12334   [\\/]* | ?:[\\/]*)
12335   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12336   ;;
12337   *)
12338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $gcc_cv_tool_dirs
12340 do
12341   IFS=$as_save_IFS
12342   test -z "$as_dir" && as_dir=.
12343     for ac_exec_ext in '' $ac_executable_extensions; do
12344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347     break 2
12348   fi
12349 done
12350   done
12351 IFS=$as_save_IFS
12352
12353   ;;
12354 esac
12355 fi
12356 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12359 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12360 else
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12363 fi
12364
12365
12366 fi
12367 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12368
12369
12370 if test -n "$OBJDUMP_FOR_TARGET"; then
12371   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12372 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12373   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12374 fi
12375
12376 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12377   for ncn_progname in objdump; do
12378     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12379 set dummy ${ncn_progname}; ac_word=$2
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 $as_echo_n "checking for $ac_word... " >&6; }
12382 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   if test -n "$OBJDUMP_FOR_TARGET"; then
12386   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12387 else
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH
12390 do
12391   IFS=$as_save_IFS
12392   test -z "$as_dir" && as_dir=.
12393     for ac_exec_ext in '' $ac_executable_extensions; do
12394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397     break 2
12398   fi
12399 done
12400   done
12401 IFS=$as_save_IFS
12402
12403 fi
12404 fi
12405 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12406 if test -n "$OBJDUMP_FOR_TARGET"; then
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12408 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12409 else
12410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412 fi
12413
12414
12415   done
12416 fi
12417
12418 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12419   for ncn_progname in objdump; do
12420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12421 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12422     if test -x $with_build_time_tools/${ncn_progname}; then
12423       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12424       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12426       break
12427     else
12428       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430     fi
12431   done
12432 fi
12433
12434 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12435   for ncn_progname in objdump; do
12436     if test -n "$ncn_target_tool_prefix"; then
12437       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12438 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440 $as_echo_n "checking for $ac_word... " >&6; }
12441 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   if test -n "$OBJDUMP_FOR_TARGET"; then
12445   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12446 else
12447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448 for as_dir in $PATH
12449 do
12450   IFS=$as_save_IFS
12451   test -z "$as_dir" && as_dir=.
12452     for ac_exec_ext in '' $ac_executable_extensions; do
12453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12454     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456     break 2
12457   fi
12458 done
12459   done
12460 IFS=$as_save_IFS
12461
12462 fi
12463 fi
12464 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12465 if test -n "$OBJDUMP_FOR_TARGET"; then
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12467 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12468 else
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12471 fi
12472
12473
12474     fi
12475     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12476       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12477 set dummy ${ncn_progname}; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   if test -n "$OBJDUMP_FOR_TARGET"; then
12484   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12485 else
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12488 do
12489   IFS=$as_save_IFS
12490   test -z "$as_dir" && as_dir=.
12491     for ac_exec_ext in '' $ac_executable_extensions; do
12492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495     break 2
12496   fi
12497 done
12498   done
12499 IFS=$as_save_IFS
12500
12501 fi
12502 fi
12503 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12504 if test -n "$OBJDUMP_FOR_TARGET"; then
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12506 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12507 else
12508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12510 fi
12511
12512
12513     fi
12514     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12515   done
12516 fi
12517
12518 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12519   set dummy objdump
12520   if test $build = $target ; then
12521     OBJDUMP_FOR_TARGET="$2"
12522   else
12523     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12524   fi
12525 else
12526   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12527 fi
12528
12529 else
12530   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12531 fi
12532
12533
12534
12535
12536 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12537   if test -n "$with_build_time_tools"; then
12538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12539 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12540     if test -x $with_build_time_tools/ranlib; then
12541       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12542       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12544 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12545     else
12546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548     fi
12549   elif test $build != $host && test $have_gcc_for_target = yes; then
12550     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12551     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12552     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12553   fi
12554 fi
12555 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12556   # Extract the first word of "ranlib", so it can be a program name with args.
12557 set dummy ranlib; ac_word=$2
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559 $as_echo_n "checking for $ac_word... " >&6; }
12560 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12561   $as_echo_n "(cached) " >&6
12562 else
12563   case $RANLIB_FOR_TARGET in
12564   [\\/]* | ?:[\\/]*)
12565   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12566   ;;
12567   *)
12568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $gcc_cv_tool_dirs
12570 do
12571   IFS=$as_save_IFS
12572   test -z "$as_dir" && as_dir=.
12573     for ac_exec_ext in '' $ac_executable_extensions; do
12574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577     break 2
12578   fi
12579 done
12580   done
12581 IFS=$as_save_IFS
12582
12583   ;;
12584 esac
12585 fi
12586 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12587 if test -n "$RANLIB_FOR_TARGET"; then
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12589 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12590 else
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12593 fi
12594
12595
12596 fi
12597 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12598
12599
12600 if test -n "$RANLIB_FOR_TARGET"; then
12601   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12602 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12603   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12604 fi
12605
12606 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12607   for ncn_progname in ranlib; do
12608     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12609 set dummy ${ncn_progname}; ac_word=$2
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12611 $as_echo_n "checking for $ac_word... " >&6; }
12612 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12613   $as_echo_n "(cached) " >&6
12614 else
12615   if test -n "$RANLIB_FOR_TARGET"; then
12616   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12617 else
12618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12619 for as_dir in $PATH
12620 do
12621   IFS=$as_save_IFS
12622   test -z "$as_dir" && as_dir=.
12623     for ac_exec_ext in '' $ac_executable_extensions; do
12624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12625     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12627     break 2
12628   fi
12629 done
12630   done
12631 IFS=$as_save_IFS
12632
12633 fi
12634 fi
12635 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12636 if test -n "$RANLIB_FOR_TARGET"; then
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12638 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12639 else
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641 $as_echo "no" >&6; }
12642 fi
12643
12644
12645   done
12646 fi
12647
12648 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12649   for ncn_progname in ranlib; do
12650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12651 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12652     if test -x $with_build_time_tools/${ncn_progname}; then
12653       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655 $as_echo "yes" >&6; }
12656       break
12657     else
12658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660     fi
12661   done
12662 fi
12663
12664 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12665   for ncn_progname in ranlib; do
12666     if test -n "$ncn_target_tool_prefix"; then
12667       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12668 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   if test -n "$RANLIB_FOR_TARGET"; then
12675   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12676 else
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12679 do
12680   IFS=$as_save_IFS
12681   test -z "$as_dir" && as_dir=.
12682     for ac_exec_ext in '' $ac_executable_extensions; do
12683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12684     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686     break 2
12687   fi
12688 done
12689   done
12690 IFS=$as_save_IFS
12691
12692 fi
12693 fi
12694 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12695 if test -n "$RANLIB_FOR_TARGET"; then
12696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12697 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701 fi
12702
12703
12704     fi
12705     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12706       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12707 set dummy ${ncn_progname}; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   if test -n "$RANLIB_FOR_TARGET"; then
12714   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721     for ac_exec_ext in '' $ac_executable_extensions; do
12722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725     break 2
12726   fi
12727 done
12728   done
12729 IFS=$as_save_IFS
12730
12731 fi
12732 fi
12733 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12734 if test -n "$RANLIB_FOR_TARGET"; then
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12736 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 fi
12741
12742
12743     fi
12744     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12745   done
12746 fi
12747
12748 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12749   set dummy ranlib
12750   if test $build = $target ; then
12751     RANLIB_FOR_TARGET="$2"
12752   else
12753     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12754   fi
12755 else
12756   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12757 fi
12758
12759 else
12760   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12761 fi
12762
12763
12764
12765
12766 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12767   if test -n "$with_build_time_tools"; then
12768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12769 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12770     if test -x $with_build_time_tools/readelf; then
12771       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12772       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12774 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12775     else
12776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778     fi
12779   elif test $build != $host && test $have_gcc_for_target = yes; then
12780     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12781     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12782     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12783   fi
12784 fi
12785 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12786   # Extract the first word of "readelf", so it can be a program name with args.
12787 set dummy readelf; ac_word=$2
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789 $as_echo_n "checking for $ac_word... " >&6; }
12790 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12791   $as_echo_n "(cached) " >&6
12792 else
12793   case $READELF_FOR_TARGET in
12794   [\\/]* | ?:[\\/]*)
12795   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12796   ;;
12797   *)
12798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $gcc_cv_tool_dirs
12800 do
12801   IFS=$as_save_IFS
12802   test -z "$as_dir" && as_dir=.
12803     for ac_exec_ext in '' $ac_executable_extensions; do
12804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12805     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807     break 2
12808   fi
12809 done
12810   done
12811 IFS=$as_save_IFS
12812
12813   ;;
12814 esac
12815 fi
12816 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12817 if test -n "$READELF_FOR_TARGET"; then
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12819 $as_echo "$READELF_FOR_TARGET" >&6; }
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12824
12825
12826 fi
12827 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12828
12829
12830 if test -n "$READELF_FOR_TARGET"; then
12831   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12832 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12833   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12834 fi
12835
12836 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12837   for ncn_progname in readelf; do
12838     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12839 set dummy ${ncn_progname}; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   if test -n "$READELF_FOR_TARGET"; then
12846   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12847 else
12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12855     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862
12863 fi
12864 fi
12865 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12866 if test -n "$READELF_FOR_TARGET"; then
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12868 $as_echo "$READELF_FOR_TARGET" >&6; }
12869 else
12870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12872 fi
12873
12874
12875   done
12876 fi
12877
12878 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12879   for ncn_progname in readelf; do
12880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12881 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12882     if test -x $with_build_time_tools/${ncn_progname}; then
12883       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 $as_echo "yes" >&6; }
12886       break
12887     else
12888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12890     fi
12891   done
12892 fi
12893
12894 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12895   for ncn_progname in readelf; do
12896     if test -n "$ncn_target_tool_prefix"; then
12897       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12898 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   if test -n "$READELF_FOR_TARGET"; then
12905   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12906 else
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12909 do
12910   IFS=$as_save_IFS
12911   test -z "$as_dir" && as_dir=.
12912     for ac_exec_ext in '' $ac_executable_extensions; do
12913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12914     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916     break 2
12917   fi
12918 done
12919   done
12920 IFS=$as_save_IFS
12921
12922 fi
12923 fi
12924 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12925 if test -n "$READELF_FOR_TARGET"; then
12926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12927 $as_echo "$READELF_FOR_TARGET" >&6; }
12928 else
12929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931 fi
12932
12933
12934     fi
12935     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12936       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937 set dummy ${ncn_progname}; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12941   $as_echo_n "(cached) " >&6
12942 else
12943   if test -n "$READELF_FOR_TARGET"; then
12944   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12945 else
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12948 do
12949   IFS=$as_save_IFS
12950   test -z "$as_dir" && as_dir=.
12951     for ac_exec_ext in '' $ac_executable_extensions; do
12952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955     break 2
12956   fi
12957 done
12958   done
12959 IFS=$as_save_IFS
12960
12961 fi
12962 fi
12963 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12964 if test -n "$READELF_FOR_TARGET"; then
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12966 $as_echo "$READELF_FOR_TARGET" >&6; }
12967 else
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12970 fi
12971
12972
12973     fi
12974     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12975   done
12976 fi
12977
12978 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12979   set dummy readelf
12980   if test $build = $target ; then
12981     READELF_FOR_TARGET="$2"
12982   else
12983     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12984   fi
12985 else
12986   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12987 fi
12988
12989 else
12990   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12991 fi
12992
12993
12994
12995
12996 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12997   if test -n "$with_build_time_tools"; then
12998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12999 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13000     if test -x $with_build_time_tools/strip; then
13001       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13002       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13003       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13004 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13005     else
13006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13008     fi
13009   elif test $build != $host && test $have_gcc_for_target = yes; then
13010     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13011     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13012     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13013   fi
13014 fi
13015 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13016   # Extract the first word of "strip", so it can be a program name with args.
13017 set dummy strip; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   case $STRIP_FOR_TARGET in
13024   [\\/]* | ?:[\\/]*)
13025   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13026   ;;
13027   *)
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $gcc_cv_tool_dirs
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_exec_ext in '' $ac_executable_extensions; do
13034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13035     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037     break 2
13038   fi
13039 done
13040   done
13041 IFS=$as_save_IFS
13042
13043   ;;
13044 esac
13045 fi
13046 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13047 if test -n "$STRIP_FOR_TARGET"; then
13048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13049 $as_echo "$STRIP_FOR_TARGET" >&6; }
13050 else
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054
13055
13056 fi
13057 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13058
13059
13060 if test -n "$STRIP_FOR_TARGET"; then
13061   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13062 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13063   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13064 fi
13065
13066 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13067   for ncn_progname in strip; do
13068     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13069 set dummy ${ncn_progname}; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   if test -n "$STRIP_FOR_TARGET"; then
13076   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13080 do
13081   IFS=$as_save_IFS
13082   test -z "$as_dir" && as_dir=.
13083     for ac_exec_ext in '' $ac_executable_extensions; do
13084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13085     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087     break 2
13088   fi
13089 done
13090   done
13091 IFS=$as_save_IFS
13092
13093 fi
13094 fi
13095 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13096 if test -n "$STRIP_FOR_TARGET"; then
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13098 $as_echo "$STRIP_FOR_TARGET" >&6; }
13099 else
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13102 fi
13103
13104
13105   done
13106 fi
13107
13108 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13109   for ncn_progname in strip; do
13110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13111 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13112     if test -x $with_build_time_tools/${ncn_progname}; then
13113       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13115 $as_echo "yes" >&6; }
13116       break
13117     else
13118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119 $as_echo "no" >&6; }
13120     fi
13121   done
13122 fi
13123
13124 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13125   for ncn_progname in strip; do
13126     if test -n "$ncn_target_tool_prefix"; then
13127       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13128 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130 $as_echo_n "checking for $ac_word... " >&6; }
13131 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134   if test -n "$STRIP_FOR_TARGET"; then
13135   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13136 else
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13139 do
13140   IFS=$as_save_IFS
13141   test -z "$as_dir" && as_dir=.
13142     for ac_exec_ext in '' $ac_executable_extensions; do
13143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13144     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146     break 2
13147   fi
13148 done
13149   done
13150 IFS=$as_save_IFS
13151
13152 fi
13153 fi
13154 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13155 if test -n "$STRIP_FOR_TARGET"; then
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13157 $as_echo "$STRIP_FOR_TARGET" >&6; }
13158 else
13159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161 fi
13162
13163
13164     fi
13165     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13166       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13167 set dummy ${ncn_progname}; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   if test -n "$STRIP_FOR_TARGET"; then
13174   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13175 else
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179   IFS=$as_save_IFS
13180   test -z "$as_dir" && as_dir=.
13181     for ac_exec_ext in '' $ac_executable_extensions; do
13182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185     break 2
13186   fi
13187 done
13188   done
13189 IFS=$as_save_IFS
13190
13191 fi
13192 fi
13193 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13194 if test -n "$STRIP_FOR_TARGET"; then
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13196 $as_echo "$STRIP_FOR_TARGET" >&6; }
13197 else
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201
13202
13203     fi
13204     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13205   done
13206 fi
13207
13208 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13209   set dummy strip
13210   if test $build = $target ; then
13211     STRIP_FOR_TARGET="$2"
13212   else
13213     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13214   fi
13215 else
13216   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13217 fi
13218
13219 else
13220   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13221 fi
13222
13223
13224
13225
13226 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13227   if test -n "$with_build_time_tools"; then
13228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13229 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13230     if test -x $with_build_time_tools/windres; then
13231       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13232       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13234 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13235     else
13236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237 $as_echo "no" >&6; }
13238     fi
13239   elif test $build != $host && test $have_gcc_for_target = yes; then
13240     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13241     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13242     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13243   fi
13244 fi
13245 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13246   # Extract the first word of "windres", so it can be a program name with args.
13247 set dummy windres; ac_word=$2
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249 $as_echo_n "checking for $ac_word... " >&6; }
13250 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13251   $as_echo_n "(cached) " >&6
13252 else
13253   case $WINDRES_FOR_TARGET in
13254   [\\/]* | ?:[\\/]*)
13255   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13256   ;;
13257   *)
13258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $gcc_cv_tool_dirs
13260 do
13261   IFS=$as_save_IFS
13262   test -z "$as_dir" && as_dir=.
13263     for ac_exec_ext in '' $ac_executable_extensions; do
13264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267     break 2
13268   fi
13269 done
13270   done
13271 IFS=$as_save_IFS
13272
13273   ;;
13274 esac
13275 fi
13276 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13277 if test -n "$WINDRES_FOR_TARGET"; then
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13279 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13280 else
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 fi
13284
13285
13286 fi
13287 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13288
13289
13290 if test -n "$WINDRES_FOR_TARGET"; then
13291   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13292 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13293   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13294 fi
13295
13296 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13297   for ncn_progname in windres; do
13298     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13299 set dummy ${ncn_progname}; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13303   $as_echo_n "(cached) " >&6
13304 else
13305   if test -n "$WINDRES_FOR_TARGET"; then
13306   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13310 do
13311   IFS=$as_save_IFS
13312   test -z "$as_dir" && as_dir=.
13313     for ac_exec_ext in '' $ac_executable_extensions; do
13314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317     break 2
13318   fi
13319 done
13320   done
13321 IFS=$as_save_IFS
13322
13323 fi
13324 fi
13325 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13326 if test -n "$WINDRES_FOR_TARGET"; then
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13328 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13329 else
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13332 fi
13333
13334
13335   done
13336 fi
13337
13338 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13339   for ncn_progname in windres; do
13340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13341 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13342     if test -x $with_build_time_tools/${ncn_progname}; then
13343       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13346       break
13347     else
13348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350     fi
13351   done
13352 fi
13353
13354 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13355   for ncn_progname in windres; do
13356     if test -n "$ncn_target_tool_prefix"; then
13357       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13358 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   if test -n "$WINDRES_FOR_TARGET"; then
13365   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13366 else
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $PATH
13369 do
13370   IFS=$as_save_IFS
13371   test -z "$as_dir" && as_dir=.
13372     for ac_exec_ext in '' $ac_executable_extensions; do
13373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13374     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13376     break 2
13377   fi
13378 done
13379   done
13380 IFS=$as_save_IFS
13381
13382 fi
13383 fi
13384 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13385 if test -n "$WINDRES_FOR_TARGET"; then
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13387 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13388 else
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13391 fi
13392
13393
13394     fi
13395     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13396       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13397 set dummy ${ncn_progname}; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13401   $as_echo_n "(cached) " >&6
13402 else
13403   if test -n "$WINDRES_FOR_TARGET"; then
13404   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409   IFS=$as_save_IFS
13410   test -z "$as_dir" && as_dir=.
13411     for ac_exec_ext in '' $ac_executable_extensions; do
13412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415     break 2
13416   fi
13417 done
13418   done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13424 if test -n "$WINDRES_FOR_TARGET"; then
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13426 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13427 else
13428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432
13433     fi
13434     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13435   done
13436 fi
13437
13438 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13439   set dummy windres
13440   if test $build = $target ; then
13441     WINDRES_FOR_TARGET="$2"
13442   else
13443     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13444   fi
13445 else
13446   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13447 fi
13448
13449 else
13450   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13451 fi
13452
13453
13454
13455
13456 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13457   if test -n "$with_build_time_tools"; then
13458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13459 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13460     if test -x $with_build_time_tools/windmc; then
13461       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13462       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13464 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13465     else
13466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468     fi
13469   elif test $build != $host && test $have_gcc_for_target = yes; then
13470     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13471     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13472     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13473   fi
13474 fi
13475 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13476   # Extract the first word of "windmc", so it can be a program name with args.
13477 set dummy windmc; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   case $WINDMC_FOR_TARGET in
13484   [\\/]* | ?:[\\/]*)
13485   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13486   ;;
13487   *)
13488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $gcc_cv_tool_dirs
13490 do
13491   IFS=$as_save_IFS
13492   test -z "$as_dir" && as_dir=.
13493     for ac_exec_ext in '' $ac_executable_extensions; do
13494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13495     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497     break 2
13498   fi
13499 done
13500   done
13501 IFS=$as_save_IFS
13502
13503   ;;
13504 esac
13505 fi
13506 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13509 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13510 else
13511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13513 fi
13514
13515
13516 fi
13517 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13518
13519
13520 if test -n "$WINDMC_FOR_TARGET"; then
13521   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13522 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13523   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13524 fi
13525
13526 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13527   for ncn_progname in windmc; do
13528     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13529 set dummy ${ncn_progname}; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   if test -n "$WINDMC_FOR_TARGET"; then
13536   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13540 do
13541   IFS=$as_save_IFS
13542   test -z "$as_dir" && as_dir=.
13543     for ac_exec_ext in '' $ac_executable_extensions; do
13544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13545     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547     break 2
13548   fi
13549 done
13550   done
13551 IFS=$as_save_IFS
13552
13553 fi
13554 fi
13555 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13556 if test -n "$WINDMC_FOR_TARGET"; then
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13558 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13559 else
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13562 fi
13563
13564
13565   done
13566 fi
13567
13568 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13569   for ncn_progname in windmc; do
13570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13571 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13572     if test -x $with_build_time_tools/${ncn_progname}; then
13573       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13575 $as_echo "yes" >&6; }
13576       break
13577     else
13578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13580     fi
13581   done
13582 fi
13583
13584 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13585   for ncn_progname in windmc; do
13586     if test -n "$ncn_target_tool_prefix"; then
13587       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13588 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13590 $as_echo_n "checking for $ac_word... " >&6; }
13591 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13592   $as_echo_n "(cached) " >&6
13593 else
13594   if test -n "$WINDMC_FOR_TARGET"; then
13595   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13596 else
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13599 do
13600   IFS=$as_save_IFS
13601   test -z "$as_dir" && as_dir=.
13602     for ac_exec_ext in '' $ac_executable_extensions; do
13603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13604     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13606     break 2
13607   fi
13608 done
13609   done
13610 IFS=$as_save_IFS
13611
13612 fi
13613 fi
13614 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13615 if test -n "$WINDMC_FOR_TARGET"; then
13616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13617 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13618 else
13619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13621 fi
13622
13623
13624     fi
13625     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13626       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13627 set dummy ${ncn_progname}; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13631   $as_echo_n "(cached) " >&6
13632 else
13633   if test -n "$WINDMC_FOR_TARGET"; then
13634   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13638 do
13639   IFS=$as_save_IFS
13640   test -z "$as_dir" && as_dir=.
13641     for ac_exec_ext in '' $ac_executable_extensions; do
13642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13643     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645     break 2
13646   fi
13647 done
13648   done
13649 IFS=$as_save_IFS
13650
13651 fi
13652 fi
13653 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13654 if test -n "$WINDMC_FOR_TARGET"; then
13655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13656 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13657 else
13658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13660 fi
13661
13662
13663     fi
13664     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13665   done
13666 fi
13667
13668 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13669   set dummy windmc
13670   if test $build = $target ; then
13671     WINDMC_FOR_TARGET="$2"
13672   else
13673     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13674   fi
13675 else
13676   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13677 fi
13678
13679 else
13680   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13681 fi
13682
13683
13684 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13685
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13687 $as_echo_n "checking where to find the target ar... " >&6; }
13688 if test "x${build}" != "x${host}" ; then
13689   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13690     # We already found the complete path
13691     ac_dir=`dirname $AR_FOR_TARGET`
13692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693 $as_echo "pre-installed in $ac_dir" >&6; }
13694   else
13695     # Canadian cross, just use what we found
13696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13698   fi
13699 else
13700   ok=yes
13701   case " ${configdirs} " in
13702     *" binutils "*) ;;
13703     *) ok=no ;;
13704   esac
13705
13706   if test $ok = yes; then
13707     # An in-tree tool is available and we can use it
13708     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13710 $as_echo "just compiled" >&6; }
13711   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13712     # We already found the complete path
13713     ac_dir=`dirname $AR_FOR_TARGET`
13714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715 $as_echo "pre-installed in $ac_dir" >&6; }
13716   elif test "x$target" = "x$host"; then
13717     # We can use an host tool
13718     AR_FOR_TARGET='$(AR)'
13719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13720 $as_echo "host tool" >&6; }
13721   else
13722     # We need a cross tool
13723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724 $as_echo "pre-installed" >&6; }
13725   fi
13726 fi
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13729 $as_echo_n "checking where to find the target as... " >&6; }
13730 if test "x${build}" != "x${host}" ; then
13731   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13732     # We already found the complete path
13733     ac_dir=`dirname $AS_FOR_TARGET`
13734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735 $as_echo "pre-installed in $ac_dir" >&6; }
13736   else
13737     # Canadian cross, just use what we found
13738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739 $as_echo "pre-installed" >&6; }
13740   fi
13741 else
13742   ok=yes
13743   case " ${configdirs} " in
13744     *" gas "*) ;;
13745     *) ok=no ;;
13746   esac
13747
13748   if test $ok = yes; then
13749     # An in-tree tool is available and we can use it
13750     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13752 $as_echo "just compiled" >&6; }
13753   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13754     # We already found the complete path
13755     ac_dir=`dirname $AS_FOR_TARGET`
13756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13757 $as_echo "pre-installed in $ac_dir" >&6; }
13758   elif test "x$target" = "x$host"; then
13759     # We can use an host tool
13760     AS_FOR_TARGET='$(AS)'
13761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13762 $as_echo "host tool" >&6; }
13763   else
13764     # We need a cross tool
13765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13766 $as_echo "pre-installed" >&6; }
13767   fi
13768 fi
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13771 $as_echo_n "checking where to find the target cc... " >&6; }
13772 if test "x${build}" != "x${host}" ; then
13773   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13774     # We already found the complete path
13775     ac_dir=`dirname $CC_FOR_TARGET`
13776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13777 $as_echo "pre-installed in $ac_dir" >&6; }
13778   else
13779     # Canadian cross, just use what we found
13780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781 $as_echo "pre-installed" >&6; }
13782   fi
13783 else
13784   ok=yes
13785   case " ${configdirs} " in
13786     *" gcc "*) ;;
13787     *) ok=no ;;
13788   esac
13789
13790   if test $ok = yes; then
13791     # An in-tree tool is available and we can use it
13792     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13794 $as_echo "just compiled" >&6; }
13795   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13796     # We already found the complete path
13797     ac_dir=`dirname $CC_FOR_TARGET`
13798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13799 $as_echo "pre-installed in $ac_dir" >&6; }
13800   elif test "x$target" = "x$host"; then
13801     # We can use an host tool
13802     CC_FOR_TARGET='$(CC)'
13803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13804 $as_echo "host tool" >&6; }
13805   else
13806     # We need a cross tool
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13808 $as_echo "pre-installed" >&6; }
13809   fi
13810 fi
13811
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13813 $as_echo_n "checking where to find the target c++... " >&6; }
13814 if test "x${build}" != "x${host}" ; then
13815   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13816     # We already found the complete path
13817     ac_dir=`dirname $CXX_FOR_TARGET`
13818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13819 $as_echo "pre-installed in $ac_dir" >&6; }
13820   else
13821     # Canadian cross, just use what we found
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13823 $as_echo "pre-installed" >&6; }
13824   fi
13825 else
13826   ok=yes
13827   case " ${configdirs} " in
13828     *" gcc "*) ;;
13829     *) ok=no ;;
13830   esac
13831   case ,${enable_languages}, in
13832     *,c++,*) ;;
13833     *) ok=no ;;
13834   esac
13835   if test $ok = yes; then
13836     # An in-tree tool is available and we can use it
13837     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13839 $as_echo "just compiled" >&6; }
13840   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13841     # We already found the complete path
13842     ac_dir=`dirname $CXX_FOR_TARGET`
13843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845   elif test "x$target" = "x$host"; then
13846     # We can use an host tool
13847     CXX_FOR_TARGET='$(CXX)'
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13849 $as_echo "host tool" >&6; }
13850   else
13851     # We need a cross tool
13852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13854   fi
13855 fi
13856
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13858 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13859 if test "x${build}" != "x${host}" ; then
13860   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13861     # We already found the complete path
13862     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864 $as_echo "pre-installed in $ac_dir" >&6; }
13865   else
13866     # Canadian cross, just use what we found
13867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13868 $as_echo "pre-installed" >&6; }
13869   fi
13870 else
13871   ok=yes
13872   case " ${configdirs} " in
13873     *" gcc "*) ;;
13874     *) ok=no ;;
13875   esac
13876   case ,${enable_languages}, in
13877     *,c++,*) ;;
13878     *) ok=no ;;
13879   esac
13880   if test $ok = yes; then
13881     # An in-tree tool is available and we can use it
13882     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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13884 $as_echo "just compiled" >&6; }
13885   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13886     # We already found the complete path
13887     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13889 $as_echo "pre-installed in $ac_dir" >&6; }
13890   elif test "x$target" = "x$host"; then
13891     # We can use an host tool
13892     RAW_CXX_FOR_TARGET='$(CXX)'
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13894 $as_echo "host tool" >&6; }
13895   else
13896     # We need a cross tool
13897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13899   fi
13900 fi
13901
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13903 $as_echo_n "checking where to find the target dlltool... " >&6; }
13904 if test "x${build}" != "x${host}" ; then
13905   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13906     # We already found the complete path
13907     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13909 $as_echo "pre-installed in $ac_dir" >&6; }
13910   else
13911     # Canadian cross, just use what we found
13912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913 $as_echo "pre-installed" >&6; }
13914   fi
13915 else
13916   ok=yes
13917   case " ${configdirs} " in
13918     *" binutils "*) ;;
13919     *) ok=no ;;
13920   esac
13921
13922   if test $ok = yes; then
13923     # An in-tree tool is available and we can use it
13924     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13926 $as_echo "just compiled" >&6; }
13927   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13928     # We already found the complete path
13929     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13931 $as_echo "pre-installed in $ac_dir" >&6; }
13932   elif test "x$target" = "x$host"; then
13933     # We can use an host tool
13934     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13935     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13936 $as_echo "host tool" >&6; }
13937   else
13938     # We need a cross tool
13939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13940 $as_echo "pre-installed" >&6; }
13941   fi
13942 fi
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13945 $as_echo_n "checking where to find the target gcc... " >&6; }
13946 if test "x${build}" != "x${host}" ; then
13947   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13948     # We already found the complete path
13949     ac_dir=`dirname $GCC_FOR_TARGET`
13950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951 $as_echo "pre-installed in $ac_dir" >&6; }
13952   else
13953     # Canadian cross, just use what we found
13954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955 $as_echo "pre-installed" >&6; }
13956   fi
13957 else
13958   ok=yes
13959   case " ${configdirs} " in
13960     *" gcc "*) ;;
13961     *) ok=no ;;
13962   esac
13963
13964   if test $ok = yes; then
13965     # An in-tree tool is available and we can use it
13966     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13968 $as_echo "just compiled" >&6; }
13969   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13970     # We already found the complete path
13971     ac_dir=`dirname $GCC_FOR_TARGET`
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973 $as_echo "pre-installed in $ac_dir" >&6; }
13974   elif test "x$target" = "x$host"; then
13975     # We can use an host tool
13976     GCC_FOR_TARGET='$()'
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13978 $as_echo "host tool" >&6; }
13979   else
13980     # We need a cross tool
13981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982 $as_echo "pre-installed" >&6; }
13983   fi
13984 fi
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13987 $as_echo_n "checking where to find the target gcj... " >&6; }
13988 if test "x${build}" != "x${host}" ; then
13989   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13990     # We already found the complete path
13991     ac_dir=`dirname $GCJ_FOR_TARGET`
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993 $as_echo "pre-installed in $ac_dir" >&6; }
13994   else
13995     # Canadian cross, just use what we found
13996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997 $as_echo "pre-installed" >&6; }
13998   fi
13999 else
14000   ok=yes
14001   case " ${configdirs} " in
14002     *" gcc "*) ;;
14003     *) ok=no ;;
14004   esac
14005   case ,${enable_languages}, in
14006     *,java,*) ;;
14007     *) ok=no ;;
14008   esac
14009   if test $ok = yes; then
14010     # An in-tree tool is available and we can use it
14011     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14013 $as_echo "just compiled" >&6; }
14014   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14015     # We already found the complete path
14016     ac_dir=`dirname $GCJ_FOR_TARGET`
14017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018 $as_echo "pre-installed in $ac_dir" >&6; }
14019   elif test "x$target" = "x$host"; then
14020     # We can use an host tool
14021     GCJ_FOR_TARGET='$(GCJ)'
14022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14023 $as_echo "host tool" >&6; }
14024   else
14025     # We need a cross tool
14026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14028   fi
14029 fi
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14032 $as_echo_n "checking where to find the target gfortran... " >&6; }
14033 if test "x${build}" != "x${host}" ; then
14034   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14035     # We already found the complete path
14036     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039   else
14040     # Canadian cross, just use what we found
14041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14042 $as_echo "pre-installed" >&6; }
14043   fi
14044 else
14045   ok=yes
14046   case " ${configdirs} " in
14047     *" gcc "*) ;;
14048     *) ok=no ;;
14049   esac
14050   case ,${enable_languages}, in
14051     *,fortran,*) ;;
14052     *) ok=no ;;
14053   esac
14054   if test $ok = yes; then
14055     # An in-tree tool is available and we can use it
14056     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14058 $as_echo "just compiled" >&6; }
14059   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14060     # We already found the complete path
14061     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14063 $as_echo "pre-installed in $ac_dir" >&6; }
14064   elif test "x$target" = "x$host"; then
14065     # We can use an host tool
14066     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14068 $as_echo "host tool" >&6; }
14069   else
14070     # We need a cross tool
14071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14072 $as_echo "pre-installed" >&6; }
14073   fi
14074 fi
14075
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14077 $as_echo_n "checking where to find the target gccgo... " >&6; }
14078 if test "x${build}" != "x${host}" ; then
14079   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14080     # We already found the complete path
14081     ac_dir=`dirname $GOC_FOR_TARGET`
14082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14083 $as_echo "pre-installed in $ac_dir" >&6; }
14084   else
14085     # Canadian cross, just use what we found
14086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14087 $as_echo "pre-installed" >&6; }
14088   fi
14089 else
14090   ok=yes
14091   case " ${configdirs} " in
14092     *" gcc "*) ;;
14093     *) ok=no ;;
14094   esac
14095   case ,${enable_languages}, in
14096     *,go,*) ;;
14097     *) ok=no ;;
14098   esac
14099   if test $ok = yes; then
14100     # An in-tree tool is available and we can use it
14101     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14103 $as_echo "just compiled" >&6; }
14104   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14105     # We already found the complete path
14106     ac_dir=`dirname $GOC_FOR_TARGET`
14107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14108 $as_echo "pre-installed in $ac_dir" >&6; }
14109   elif test "x$target" = "x$host"; then
14110     # We can use an host tool
14111     GOC_FOR_TARGET='$(GOC)'
14112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14113 $as_echo "host tool" >&6; }
14114   else
14115     # We need a cross tool
14116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14117 $as_echo "pre-installed" >&6; }
14118   fi
14119 fi
14120
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14122 $as_echo_n "checking where to find the target ld... " >&6; }
14123 if test "x${build}" != "x${host}" ; then
14124   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14125     # We already found the complete path
14126     ac_dir=`dirname $LD_FOR_TARGET`
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14128 $as_echo "pre-installed in $ac_dir" >&6; }
14129   else
14130     # Canadian cross, just use what we found
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133   fi
14134 else
14135   ok=yes
14136   case " ${configdirs} " in
14137     *" ld "*) ;;
14138     *) ok=no ;;
14139   esac
14140
14141   if test $ok = yes; then
14142     # An in-tree tool is available and we can use it
14143     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14145 $as_echo "just compiled" >&6; }
14146   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14147     # We already found the complete path
14148     ac_dir=`dirname $LD_FOR_TARGET`
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150 $as_echo "pre-installed in $ac_dir" >&6; }
14151   elif test "x$target" = "x$host"; then
14152     # We can use an host tool
14153     LD_FOR_TARGET='$(LD)'
14154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14155 $as_echo "host tool" >&6; }
14156   else
14157     # We need a cross tool
14158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14160   fi
14161 fi
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14164 $as_echo_n "checking where to find the target lipo... " >&6; }
14165 if test "x${build}" != "x${host}" ; then
14166   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14167     # We already found the complete path
14168     ac_dir=`dirname $LIPO_FOR_TARGET`
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14170 $as_echo "pre-installed in $ac_dir" >&6; }
14171   else
14172     # Canadian cross, just use what we found
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14175   fi
14176 else
14177   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14178     # We already found the complete path
14179     ac_dir=`dirname $LIPO_FOR_TARGET`
14180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181 $as_echo "pre-installed in $ac_dir" >&6; }
14182   elif test "x$target" = "x$host"; then
14183     # We can use an host tool
14184     LIPO_FOR_TARGET='$(LIPO)'
14185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186 $as_echo "host tool" >&6; }
14187   else
14188     # We need a cross tool
14189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14191   fi
14192 fi
14193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14195 $as_echo_n "checking where to find the target nm... " >&6; }
14196 if test "x${build}" != "x${host}" ; then
14197   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14198     # We already found the complete path
14199     ac_dir=`dirname $NM_FOR_TARGET`
14200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201 $as_echo "pre-installed in $ac_dir" >&6; }
14202   else
14203     # Canadian cross, just use what we found
14204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14206   fi
14207 else
14208   ok=yes
14209   case " ${configdirs} " in
14210     *" binutils "*) ;;
14211     *) ok=no ;;
14212   esac
14213
14214   if test $ok = yes; then
14215     # An in-tree tool is available and we can use it
14216     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218 $as_echo "just compiled" >&6; }
14219   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14220     # We already found the complete path
14221     ac_dir=`dirname $NM_FOR_TARGET`
14222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223 $as_echo "pre-installed in $ac_dir" >&6; }
14224   elif test "x$target" = "x$host"; then
14225     # We can use an host tool
14226     NM_FOR_TARGET='$(NM)'
14227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228 $as_echo "host tool" >&6; }
14229   else
14230     # We need a cross tool
14231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232 $as_echo "pre-installed" >&6; }
14233   fi
14234 fi
14235
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14237 $as_echo_n "checking where to find the target objcopy... " >&6; }
14238 if test "x${build}" != "x${host}" ; then
14239   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14240     # We already found the complete path
14241     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243 $as_echo "pre-installed in $ac_dir" >&6; }
14244   else
14245     # Canadian cross, just use what we found
14246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14248   fi
14249 else
14250   ok=yes
14251   case " ${configdirs} " in
14252     *" binutils "*) ;;
14253     *) ok=no ;;
14254   esac
14255
14256   if test $ok = yes; then
14257     # An in-tree tool is available and we can use it
14258     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260 $as_echo "just compiled" >&6; }
14261   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14262     # We already found the complete path
14263     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266   elif test "x$target" = "x$host"; then
14267     # We can use an host tool
14268     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270 $as_echo "host tool" >&6; }
14271   else
14272     # We need a cross tool
14273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14275   fi
14276 fi
14277
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14279 $as_echo_n "checking where to find the target objdump... " >&6; }
14280 if test "x${build}" != "x${host}" ; then
14281   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14282     # We already found the complete path
14283     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285 $as_echo "pre-installed in $ac_dir" >&6; }
14286   else
14287     # Canadian cross, just use what we found
14288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14290   fi
14291 else
14292   ok=yes
14293   case " ${configdirs} " in
14294     *" binutils "*) ;;
14295     *) ok=no ;;
14296   esac
14297
14298   if test $ok = yes; then
14299     # An in-tree tool is available and we can use it
14300     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302 $as_echo "just compiled" >&6; }
14303   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14304     # We already found the complete path
14305     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307 $as_echo "pre-installed in $ac_dir" >&6; }
14308   elif test "x$target" = "x$host"; then
14309     # We can use an host tool
14310     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312 $as_echo "host tool" >&6; }
14313   else
14314     # We need a cross tool
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316 $as_echo "pre-installed" >&6; }
14317   fi
14318 fi
14319
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14321 $as_echo_n "checking where to find the target ranlib... " >&6; }
14322 if test "x${build}" != "x${host}" ; then
14323   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14324     # We already found the complete path
14325     ac_dir=`dirname $RANLIB_FOR_TARGET`
14326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327 $as_echo "pre-installed in $ac_dir" >&6; }
14328   else
14329     # Canadian cross, just use what we found
14330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14332   fi
14333 else
14334   ok=yes
14335   case " ${configdirs} " in
14336     *" binutils "*) ;;
14337     *) ok=no ;;
14338   esac
14339
14340   if test $ok = yes; then
14341     # An in-tree tool is available and we can use it
14342     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344 $as_echo "just compiled" >&6; }
14345   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14346     # We already found the complete path
14347     ac_dir=`dirname $RANLIB_FOR_TARGET`
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350   elif test "x$target" = "x$host"; then
14351     # We can use an host tool
14352     RANLIB_FOR_TARGET='$(RANLIB)'
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354 $as_echo "host tool" >&6; }
14355   else
14356     # We need a cross tool
14357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358 $as_echo "pre-installed" >&6; }
14359   fi
14360 fi
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14363 $as_echo_n "checking where to find the target readelf... " >&6; }
14364 if test "x${build}" != "x${host}" ; then
14365   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14366     # We already found the complete path
14367     ac_dir=`dirname $READELF_FOR_TARGET`
14368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369 $as_echo "pre-installed in $ac_dir" >&6; }
14370   else
14371     # Canadian cross, just use what we found
14372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14374   fi
14375 else
14376   ok=yes
14377   case " ${configdirs} " in
14378     *" binutils "*) ;;
14379     *) ok=no ;;
14380   esac
14381
14382   if test $ok = yes; then
14383     # An in-tree tool is available and we can use it
14384     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14386 $as_echo "just compiled" >&6; }
14387   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14388     # We already found the complete path
14389     ac_dir=`dirname $READELF_FOR_TARGET`
14390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392   elif test "x$target" = "x$host"; then
14393     # We can use an host tool
14394     READELF_FOR_TARGET='$(READELF)'
14395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14396 $as_echo "host tool" >&6; }
14397   else
14398     # We need a cross tool
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400 $as_echo "pre-installed" >&6; }
14401   fi
14402 fi
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14405 $as_echo_n "checking where to find the target strip... " >&6; }
14406 if test "x${build}" != "x${host}" ; then
14407   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14408     # We already found the complete path
14409     ac_dir=`dirname $STRIP_FOR_TARGET`
14410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411 $as_echo "pre-installed in $ac_dir" >&6; }
14412   else
14413     # Canadian cross, just use what we found
14414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14416   fi
14417 else
14418   ok=yes
14419   case " ${configdirs} " in
14420     *" binutils "*) ;;
14421     *) ok=no ;;
14422   esac
14423
14424   if test $ok = yes; then
14425     # An in-tree tool is available and we can use it
14426     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14428 $as_echo "just compiled" >&6; }
14429   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14430     # We already found the complete path
14431     ac_dir=`dirname $STRIP_FOR_TARGET`
14432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14434   elif test "x$target" = "x$host"; then
14435     # We can use an host tool
14436     STRIP_FOR_TARGET='$(STRIP)'
14437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14438 $as_echo "host tool" >&6; }
14439   else
14440     # We need a cross tool
14441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14442 $as_echo "pre-installed" >&6; }
14443   fi
14444 fi
14445
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14447 $as_echo_n "checking where to find the target windres... " >&6; }
14448 if test "x${build}" != "x${host}" ; then
14449   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14450     # We already found the complete path
14451     ac_dir=`dirname $WINDRES_FOR_TARGET`
14452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14453 $as_echo "pre-installed in $ac_dir" >&6; }
14454   else
14455     # Canadian cross, just use what we found
14456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14458   fi
14459 else
14460   ok=yes
14461   case " ${configdirs} " in
14462     *" binutils "*) ;;
14463     *) ok=no ;;
14464   esac
14465
14466   if test $ok = yes; then
14467     # An in-tree tool is available and we can use it
14468     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14470 $as_echo "just compiled" >&6; }
14471   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14472     # We already found the complete path
14473     ac_dir=`dirname $WINDRES_FOR_TARGET`
14474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14475 $as_echo "pre-installed in $ac_dir" >&6; }
14476   elif test "x$target" = "x$host"; then
14477     # We can use an host tool
14478     WINDRES_FOR_TARGET='$(WINDRES)'
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14480 $as_echo "host tool" >&6; }
14481   else
14482     # We need a cross tool
14483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14484 $as_echo "pre-installed" >&6; }
14485   fi
14486 fi
14487
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14489 $as_echo_n "checking where to find the target windmc... " >&6; }
14490 if test "x${build}" != "x${host}" ; then
14491   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14492     # We already found the complete path
14493     ac_dir=`dirname $WINDMC_FOR_TARGET`
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14495 $as_echo "pre-installed in $ac_dir" >&6; }
14496   else
14497     # Canadian cross, just use what we found
14498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14499 $as_echo "pre-installed" >&6; }
14500   fi
14501 else
14502   ok=yes
14503   case " ${configdirs} " in
14504     *" binutils "*) ;;
14505     *) ok=no ;;
14506   esac
14507
14508   if test $ok = yes; then
14509     # An in-tree tool is available and we can use it
14510     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14512 $as_echo "just compiled" >&6; }
14513   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14514     # We already found the complete path
14515     ac_dir=`dirname $WINDMC_FOR_TARGET`
14516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14517 $as_echo "pre-installed in $ac_dir" >&6; }
14518   elif test "x$target" = "x$host"; then
14519     # We can use an host tool
14520     WINDMC_FOR_TARGET='$(WINDMC)'
14521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14522 $as_echo "host tool" >&6; }
14523   else
14524     # We need a cross tool
14525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14526 $as_echo "pre-installed" >&6; }
14527   fi
14528 fi
14529
14530
14531
14532
14533
14534 # Certain tools may need extra flags.
14535 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14536 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14537 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14538
14539 # When building target libraries, except in a Canadian cross, we use
14540 # the same toolchain as the compiler we just built.
14541 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14542 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14543 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14544 if test $host = $build; then
14545   case " $configdirs " in
14546     *" gcc "*)
14547       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14548       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14549       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14550       ;;
14551   esac
14552 fi
14553
14554
14555
14556
14557
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14559 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14560 # Check whether --enable-maintainer-mode was given.
14561 if test "${enable_maintainer_mode+set}" = set; then :
14562   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14563 else
14564   USE_MAINTAINER_MODE=no
14565 fi
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14568 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14569
14570
14571 if test "$USE_MAINTAINER_MODE" = yes; then
14572   MAINTAINER_MODE_TRUE=
14573   MAINTAINER_MODE_FALSE='#'
14574 else
14575   MAINTAINER_MODE_TRUE='#'
14576   MAINTAINER_MODE_FALSE=
14577 fi
14578 MAINT=$MAINTAINER_MODE_TRUE
14579
14580 # ---------------------
14581 # GCC bootstrap support
14582 # ---------------------
14583
14584 # Stage specific cflags for build.
14585 stage1_cflags="-g"
14586 case $build in
14587   vax-*-*)
14588     case ${GCC} in
14589       yes) stage1_cflags="-g -Wa,-J" ;;
14590       *) stage1_cflags="-g -J" ;;
14591     esac ;;
14592 esac
14593
14594
14595
14596 # Enable --enable-checking in stage1 of the compiler.
14597 # Check whether --enable-stage1-checking was given.
14598 if test "${enable_stage1_checking+set}" = set; then :
14599   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14600 else
14601   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14602   # For --disable-checking or implicit --enable-checking=release, avoid
14603   # setting --enable-checking=gc in the default stage1 checking for LTO
14604   # bootstraps.  See PR62077.
14605   case $BUILD_CONFIG in
14606     *lto*)
14607       stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14608     *)
14609       stage1_checking=--enable-checking=yes,types;;
14610   esac
14611   if test "x$enable_checking" = x && \
14612      test -d ${srcdir}/gcc && \
14613      test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14614     stage1_checking=--enable-checking=yes,types,extra
14615   fi
14616 else
14617   stage1_checking=--enable-checking=$enable_checking,types
14618 fi
14619 fi
14620
14621
14622
14623 # Enable -Werror in bootstrap stage2 and later.
14624 # Check whether --enable-werror was given.
14625 if test "${enable_werror+set}" = set; then :
14626   enableval=$enable_werror;
14627 else
14628   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14629   enable_werror=yes
14630 else
14631   enable_werror=no
14632 fi
14633 fi
14634
14635 case ${enable_werror} in
14636   yes) stage2_werror_flag="--enable-werror-always" ;;
14637   *) stage2_werror_flag="" ;;
14638 esac
14639
14640
14641 # Enable --enable-host-shared.
14642 # Check whether --enable-host-shared was given.
14643 if test "${enable_host_shared+set}" = set; then :
14644   enableval=$enable_host_shared; host_shared=$enableval
14645 else
14646   host_shared=no
14647 fi
14648
14649
14650
14651 # PR jit/64780: Require the user to explicitly specify
14652 # --enable-host-shared if the jit is enabled, hinting
14653 # that they might want to do a separate configure/build of
14654 # the jit, to avoid users from slowing down the rest of the
14655 # compiler by enabling the jit.
14656 if test ${host_shared} = "no" ; then
14657   case "${enable_languages}" in
14658     *jit*)
14659       as_fn_error "
14660 Enabling language \"jit\" requires --enable-host-shared.
14661
14662 --enable-host-shared typically slows the rest of the compiler down by
14663 a few %, so you must explicitly enable it.
14664
14665 If you want to build both the jit and the regular compiler, it is often
14666 best to do this via two separate configure/builds, in separate
14667 directories, to avoid imposing the performance cost of
14668 --enable-host-shared on the regular compiler." "$LINENO" 5
14669       ;;
14670     *)
14671       ;;
14672   esac
14673 fi
14674
14675 # Specify what files to not compare during bootstrap.
14676
14677 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14678 case "$target" in
14679   hppa*64*-*-hpux*) ;;
14680   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14681   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14682 esac
14683
14684
14685 ac_config_files="$ac_config_files Makefile"
14686
14687 cat >confcache <<\_ACEOF
14688 # This file is a shell script that caches the results of configure
14689 # tests run on this system so they can be shared between configure
14690 # scripts and configure runs, see configure's option --config-cache.
14691 # It is not useful on other systems.  If it contains results you don't
14692 # want to keep, you may remove or edit it.
14693 #
14694 # config.status only pays attention to the cache file if you give it
14695 # the --recheck option to rerun configure.
14696 #
14697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14699 # following values.
14700
14701 _ACEOF
14702
14703 # The following way of writing the cache mishandles newlines in values,
14704 # but we know of no workaround that is simple, portable, and efficient.
14705 # So, we kill variables containing newlines.
14706 # Ultrix sh set writes to stderr and can't be redirected directly,
14707 # and sets the high bit in the cache file unless we assign to the vars.
14708 (
14709   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14710     eval ac_val=\$$ac_var
14711     case $ac_val in #(
14712     *${as_nl}*)
14713       case $ac_var in #(
14714       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14716       esac
14717       case $ac_var in #(
14718       _ | IFS | as_nl) ;; #(
14719       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14720       *) { eval $ac_var=; unset $ac_var;} ;;
14721       esac ;;
14722     esac
14723   done
14724
14725   (set) 2>&1 |
14726     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14727     *${as_nl}ac_space=\ *)
14728       # `set' does not quote correctly, so add quotes: double-quote
14729       # substitution turns \\\\ into \\, and sed turns \\ into \.
14730       sed -n \
14731         "s/'/'\\\\''/g;
14732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14733       ;; #(
14734     *)
14735       # `set' quotes correctly as required by POSIX, so do not add quotes.
14736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14737       ;;
14738     esac |
14739     sort
14740 ) |
14741   sed '
14742      /^ac_cv_env_/b end
14743      t clear
14744      :clear
14745      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14746      t end
14747      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14748      :end' >>confcache
14749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14750   if test -w "$cache_file"; then
14751     test "x$cache_file" != "x/dev/null" &&
14752       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14753 $as_echo "$as_me: updating cache $cache_file" >&6;}
14754     cat confcache >$cache_file
14755   else
14756     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14758   fi
14759 fi
14760 rm -f confcache
14761
14762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14763 # Let make expand exec_prefix.
14764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14765
14766 # Transform confdefs.h into DEFS.
14767 # Protect against shell expansion while executing Makefile rules.
14768 # Protect against Makefile macro expansion.
14769 #
14770 # If the first sed substitution is executed (which looks for macros that
14771 # take arguments), then branch to the quote section.  Otherwise,
14772 # look for a macro that doesn't take arguments.
14773 ac_script='
14774 :mline
14775 /\\$/{
14776  N
14777  s,\\\n,,
14778  b mline
14779 }
14780 t clear
14781 :clear
14782 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14783 t quote
14784 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14785 t quote
14786 b any
14787 :quote
14788 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14789 s/\[/\\&/g
14790 s/\]/\\&/g
14791 s/\$/$$/g
14792 H
14793 :any
14794 ${
14795         g
14796         s/^\n//
14797         s/\n/ /g
14798         p
14799 }
14800 '
14801 DEFS=`sed -n "$ac_script" confdefs.h`
14802
14803
14804 ac_libobjs=
14805 ac_ltlibobjs=
14806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14807   # 1. Remove the extension, and $U if already installed.
14808   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14809   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14810   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14811   #    will be set to the directory where LIBOBJS objects are built.
14812   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14813   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14814 done
14815 LIBOBJS=$ac_libobjs
14816
14817 LTLIBOBJS=$ac_ltlibobjs
14818
14819
14820
14821 : ${CONFIG_STATUS=./config.status}
14822 ac_write_fail=0
14823 ac_clean_files_save=$ac_clean_files
14824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14827 as_write_fail=0
14828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14829 #! $SHELL
14830 # Generated by $as_me.
14831 # Run this file to recreate the current configuration.
14832 # Compiler output produced by configure, useful for debugging
14833 # configure, is in config.log if it exists.
14834
14835 debug=false
14836 ac_cs_recheck=false
14837 ac_cs_silent=false
14838
14839 SHELL=\${CONFIG_SHELL-$SHELL}
14840 export SHELL
14841 _ASEOF
14842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14843 ## -------------------- ##
14844 ## M4sh Initialization. ##
14845 ## -------------------- ##
14846
14847 # Be more Bourne compatible
14848 DUALCASE=1; export DUALCASE # for MKS sh
14849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14850   emulate sh
14851   NULLCMD=:
14852   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14853   # is contrary to our usage.  Disable this feature.
14854   alias -g '${1+"$@"}'='"$@"'
14855   setopt NO_GLOB_SUBST
14856 else
14857   case `(set -o) 2>/dev/null` in #(
14858   *posix*) :
14859     set -o posix ;; #(
14860   *) :
14861      ;;
14862 esac
14863 fi
14864
14865
14866 as_nl='
14867 '
14868 export as_nl
14869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14873 # Prefer a ksh shell builtin over an external printf program on Solaris,
14874 # but without wasting forks for bash or zsh.
14875 if test -z "$BASH_VERSION$ZSH_VERSION" \
14876     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14877   as_echo='print -r --'
14878   as_echo_n='print -rn --'
14879 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14880   as_echo='printf %s\n'
14881   as_echo_n='printf %s'
14882 else
14883   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14884     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14885     as_echo_n='/usr/ucb/echo -n'
14886   else
14887     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14888     as_echo_n_body='eval
14889       arg=$1;
14890       case $arg in #(
14891       *"$as_nl"*)
14892         expr "X$arg" : "X\\(.*\\)$as_nl";
14893         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14894       esac;
14895       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14896     '
14897     export as_echo_n_body
14898     as_echo_n='sh -c $as_echo_n_body as_echo'
14899   fi
14900   export as_echo_body
14901   as_echo='sh -c $as_echo_body as_echo'
14902 fi
14903
14904 # The user is always right.
14905 if test "${PATH_SEPARATOR+set}" != set; then
14906   PATH_SEPARATOR=:
14907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14908     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14909       PATH_SEPARATOR=';'
14910   }
14911 fi
14912
14913
14914 # IFS
14915 # We need space, tab and new line, in precisely that order.  Quoting is
14916 # there to prevent editors from complaining about space-tab.
14917 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14918 # splitting by setting IFS to empty value.)
14919 IFS=" ""        $as_nl"
14920
14921 # Find who we are.  Look in the path if we contain no directory separator.
14922 case $0 in #((
14923   *[\\/]* ) as_myself=$0 ;;
14924   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14925 for as_dir in $PATH
14926 do
14927   IFS=$as_save_IFS
14928   test -z "$as_dir" && as_dir=.
14929     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14930   done
14931 IFS=$as_save_IFS
14932
14933      ;;
14934 esac
14935 # We did not find ourselves, most probably we were run as `sh COMMAND'
14936 # in which case we are not to be found in the path.
14937 if test "x$as_myself" = x; then
14938   as_myself=$0
14939 fi
14940 if test ! -f "$as_myself"; then
14941   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14942   exit 1
14943 fi
14944
14945 # Unset variables that we do not need and which cause bugs (e.g. in
14946 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14947 # suppresses any "Segmentation fault" message there.  '((' could
14948 # trigger a bug in pdksh 5.2.14.
14949 for as_var in BASH_ENV ENV MAIL MAILPATH
14950 do eval test x\${$as_var+set} = xset \
14951   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14952 done
14953 PS1='$ '
14954 PS2='> '
14955 PS4='+ '
14956
14957 # NLS nuisances.
14958 LC_ALL=C
14959 export LC_ALL
14960 LANGUAGE=C
14961 export LANGUAGE
14962
14963 # CDPATH.
14964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14965
14966
14967 # as_fn_error ERROR [LINENO LOG_FD]
14968 # ---------------------------------
14969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14971 # script with status $?, using 1 if that was 0.
14972 as_fn_error ()
14973 {
14974   as_status=$?; test $as_status -eq 0 && as_status=1
14975   if test "$3"; then
14976     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14977     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14978   fi
14979   $as_echo "$as_me: error: $1" >&2
14980   as_fn_exit $as_status
14981 } # as_fn_error
14982
14983
14984 # as_fn_set_status STATUS
14985 # -----------------------
14986 # Set $? to STATUS, without forking.
14987 as_fn_set_status ()
14988 {
14989   return $1
14990 } # as_fn_set_status
14991
14992 # as_fn_exit STATUS
14993 # -----------------
14994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14995 as_fn_exit ()
14996 {
14997   set +e
14998   as_fn_set_status $1
14999   exit $1
15000 } # as_fn_exit
15001
15002 # as_fn_unset VAR
15003 # ---------------
15004 # Portably unset VAR.
15005 as_fn_unset ()
15006 {
15007   { eval $1=; unset $1;}
15008 }
15009 as_unset=as_fn_unset
15010 # as_fn_append VAR VALUE
15011 # ----------------------
15012 # Append the text in VALUE to the end of the definition contained in VAR. Take
15013 # advantage of any shell optimizations that allow amortized linear growth over
15014 # repeated appends, instead of the typical quadratic growth present in naive
15015 # implementations.
15016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15017   eval 'as_fn_append ()
15018   {
15019     eval $1+=\$2
15020   }'
15021 else
15022   as_fn_append ()
15023   {
15024     eval $1=\$$1\$2
15025   }
15026 fi # as_fn_append
15027
15028 # as_fn_arith ARG...
15029 # ------------------
15030 # Perform arithmetic evaluation on the ARGs, and store the result in the
15031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15032 # must be portable across $(()) and expr.
15033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15034   eval 'as_fn_arith ()
15035   {
15036     as_val=$(( $* ))
15037   }'
15038 else
15039   as_fn_arith ()
15040   {
15041     as_val=`expr "$@" || test $? -eq 1`
15042   }
15043 fi # as_fn_arith
15044
15045
15046 if expr a : '\(a\)' >/dev/null 2>&1 &&
15047    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15048   as_expr=expr
15049 else
15050   as_expr=false
15051 fi
15052
15053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15054   as_basename=basename
15055 else
15056   as_basename=false
15057 fi
15058
15059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15060   as_dirname=dirname
15061 else
15062   as_dirname=false
15063 fi
15064
15065 as_me=`$as_basename -- "$0" ||
15066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15067          X"$0" : 'X\(//\)$' \| \
15068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15069 $as_echo X/"$0" |
15070     sed '/^.*\/\([^/][^/]*\)\/*$/{
15071             s//\1/
15072             q
15073           }
15074           /^X\/\(\/\/\)$/{
15075             s//\1/
15076             q
15077           }
15078           /^X\/\(\/\).*/{
15079             s//\1/
15080             q
15081           }
15082           s/.*/./; q'`
15083
15084 # Avoid depending upon Character Ranges.
15085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15088 as_cr_digits='0123456789'
15089 as_cr_alnum=$as_cr_Letters$as_cr_digits
15090
15091 ECHO_C= ECHO_N= ECHO_T=
15092 case `echo -n x` in #(((((
15093 -n*)
15094   case `echo 'xy\c'` in
15095   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15096   xy)  ECHO_C='\c';;
15097   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15098        ECHO_T=' ';;
15099   esac;;
15100 *)
15101   ECHO_N='-n';;
15102 esac
15103
15104 rm -f conf$$ conf$$.exe conf$$.file
15105 if test -d conf$$.dir; then
15106   rm -f conf$$.dir/conf$$.file
15107 else
15108   rm -f conf$$.dir
15109   mkdir conf$$.dir 2>/dev/null
15110 fi
15111 if (echo >conf$$.file) 2>/dev/null; then
15112   if ln -s conf$$.file conf$$ 2>/dev/null; then
15113     as_ln_s='ln -s'
15114     # ... but there are two gotchas:
15115     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15116     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15117     # In both cases, we have to default to `cp -p'.
15118     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15119       as_ln_s='cp -p'
15120   elif ln conf$$.file conf$$ 2>/dev/null; then
15121     as_ln_s=ln
15122   else
15123     as_ln_s='cp -p'
15124   fi
15125 else
15126   as_ln_s='cp -p'
15127 fi
15128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15129 rmdir conf$$.dir 2>/dev/null
15130
15131
15132 # as_fn_mkdir_p
15133 # -------------
15134 # Create "$as_dir" as a directory, including parents if necessary.
15135 as_fn_mkdir_p ()
15136 {
15137
15138   case $as_dir in #(
15139   -*) as_dir=./$as_dir;;
15140   esac
15141   test -d "$as_dir" || eval $as_mkdir_p || {
15142     as_dirs=
15143     while :; do
15144       case $as_dir in #(
15145       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15146       *) as_qdir=$as_dir;;
15147       esac
15148       as_dirs="'$as_qdir' $as_dirs"
15149       as_dir=`$as_dirname -- "$as_dir" ||
15150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15151          X"$as_dir" : 'X\(//\)[^/]' \| \
15152          X"$as_dir" : 'X\(//\)$' \| \
15153          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15154 $as_echo X"$as_dir" |
15155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15156             s//\1/
15157             q
15158           }
15159           /^X\(\/\/\)[^/].*/{
15160             s//\1/
15161             q
15162           }
15163           /^X\(\/\/\)$/{
15164             s//\1/
15165             q
15166           }
15167           /^X\(\/\).*/{
15168             s//\1/
15169             q
15170           }
15171           s/.*/./; q'`
15172       test -d "$as_dir" && break
15173     done
15174     test -z "$as_dirs" || eval "mkdir $as_dirs"
15175   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15176
15177
15178 } # as_fn_mkdir_p
15179 if mkdir -p . 2>/dev/null; then
15180   as_mkdir_p='mkdir -p "$as_dir"'
15181 else
15182   test -d ./-p && rmdir ./-p
15183   as_mkdir_p=false
15184 fi
15185
15186 if test -x / >/dev/null 2>&1; then
15187   as_test_x='test -x'
15188 else
15189   if ls -dL / >/dev/null 2>&1; then
15190     as_ls_L_option=L
15191   else
15192     as_ls_L_option=
15193   fi
15194   as_test_x='
15195     eval sh -c '\''
15196       if test -d "$1"; then
15197         test -d "$1/.";
15198       else
15199         case $1 in #(
15200         -*)set "./$1";;
15201         esac;
15202         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15203         ???[sx]*):;;*)false;;esac;fi
15204     '\'' sh
15205   '
15206 fi
15207 as_executable_p=$as_test_x
15208
15209 # Sed expression to map a string onto a valid CPP name.
15210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15211
15212 # Sed expression to map a string onto a valid variable name.
15213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15214
15215
15216 exec 6>&1
15217 ## ----------------------------------- ##
15218 ## Main body of $CONFIG_STATUS script. ##
15219 ## ----------------------------------- ##
15220 _ASEOF
15221 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15222
15223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15224 # Save the log message, to keep $0 and so on meaningful, and to
15225 # report actual input values of CONFIG_FILES etc. instead of their
15226 # values after options handling.
15227 ac_log="
15228 This file was extended by $as_me, which was
15229 generated by GNU Autoconf 2.64.  Invocation command line was
15230
15231   CONFIG_FILES    = $CONFIG_FILES
15232   CONFIG_HEADERS  = $CONFIG_HEADERS
15233   CONFIG_LINKS    = $CONFIG_LINKS
15234   CONFIG_COMMANDS = $CONFIG_COMMANDS
15235   $ $0 $@
15236
15237 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15238 "
15239
15240 _ACEOF
15241
15242 case $ac_config_files in *"
15243 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15244 esac
15245
15246
15247
15248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 # Files that config.status was made for.
15250 config_files="$ac_config_files"
15251
15252 _ACEOF
15253
15254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15255 ac_cs_usage="\
15256 \`$as_me' instantiates files and other configuration actions
15257 from templates according to the current configuration.  Unless the files
15258 and actions are specified as TAGs, all are instantiated by default.
15259
15260 Usage: $0 [OPTION]... [TAG]...
15261
15262   -h, --help       print this help, then exit
15263   -V, --version    print version number and configuration settings, then exit
15264   -q, --quiet, --silent
15265                    do not print progress messages
15266   -d, --debug      don't remove temporary files
15267       --recheck    update $as_me by reconfiguring in the same conditions
15268       --file=FILE[:TEMPLATE]
15269                    instantiate the configuration file FILE
15270
15271 Configuration files:
15272 $config_files
15273
15274 Report bugs to the package provider."
15275
15276 _ACEOF
15277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15278 ac_cs_version="\\
15279 config.status
15280 configured by $0, generated by GNU Autoconf 2.64,
15281   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15282
15283 Copyright (C) 2009 Free Software Foundation, Inc.
15284 This config.status script is free software; the Free Software Foundation
15285 gives unlimited permission to copy, distribute and modify it."
15286
15287 ac_pwd='$ac_pwd'
15288 srcdir='$srcdir'
15289 INSTALL='$INSTALL'
15290 AWK='$AWK'
15291 test -n "\$AWK" || AWK=awk
15292 _ACEOF
15293
15294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15295 # The default lists apply if the user does not specify any file.
15296 ac_need_defaults=:
15297 while test $# != 0
15298 do
15299   case $1 in
15300   --*=*)
15301     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15302     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15303     ac_shift=:
15304     ;;
15305   *)
15306     ac_option=$1
15307     ac_optarg=$2
15308     ac_shift=shift
15309     ;;
15310   esac
15311
15312   case $ac_option in
15313   # Handling of the options.
15314   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15315     ac_cs_recheck=: ;;
15316   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15317     $as_echo "$ac_cs_version"; exit ;;
15318   --debug | --debu | --deb | --de | --d | -d )
15319     debug=: ;;
15320   --file | --fil | --fi | --f )
15321     $ac_shift
15322     case $ac_optarg in
15323     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15324     esac
15325     as_fn_append CONFIG_FILES " '$ac_optarg'"
15326     ac_need_defaults=false;;
15327   --he | --h |  --help | --hel | -h )
15328     $as_echo "$ac_cs_usage"; exit ;;
15329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15331     ac_cs_silent=: ;;
15332
15333   # This is an error.
15334   -*) as_fn_error "unrecognized option: \`$1'
15335 Try \`$0 --help' for more information." ;;
15336
15337   *) as_fn_append ac_config_targets " $1"
15338      ac_need_defaults=false ;;
15339
15340   esac
15341   shift
15342 done
15343
15344 ac_configure_extra_args=
15345
15346 if $ac_cs_silent; then
15347   exec 6>/dev/null
15348   ac_configure_extra_args="$ac_configure_extra_args --silent"
15349 fi
15350
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 if \$ac_cs_recheck; then
15354   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15355   shift
15356   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15357   CONFIG_SHELL='$SHELL'
15358   export CONFIG_SHELL
15359   exec "\$@"
15360 fi
15361
15362 _ACEOF
15363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364 exec 5>>config.log
15365 {
15366   echo
15367   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15368 ## Running $as_me. ##
15369 _ASBOX
15370   $as_echo "$ac_log"
15371 } >&5
15372
15373 _ACEOF
15374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15375 #
15376 # INIT-COMMANDS
15377 #
15378 extrasub_build="$extrasub_build"
15379    extrasub_host="$extrasub_host"
15380    extrasub_target="$extrasub_target"
15381
15382 _ACEOF
15383
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385
15386 # Handling of arguments.
15387 for ac_config_target in $ac_config_targets
15388 do
15389   case $ac_config_target in
15390     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15391
15392   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15393   esac
15394 done
15395
15396
15397 # If the user did not use the arguments to specify the items to instantiate,
15398 # then the envvar interface is used.  Set only those that are not.
15399 # We use the long form for the default assignment because of an extremely
15400 # bizarre bug on SunOS 4.1.3.
15401 if $ac_need_defaults; then
15402   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15403 fi
15404
15405 # Have a temporary directory for convenience.  Make it in the build tree
15406 # simply because there is no reason against having it here, and in addition,
15407 # creating and moving files from /tmp can sometimes cause problems.
15408 # Hook for its removal unless debugging.
15409 # Note that there is a small window in which the directory will not be cleaned:
15410 # after its creation but before its name has been assigned to `$tmp'.
15411 $debug ||
15412 {
15413   tmp=
15414   trap 'exit_status=$?
15415   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15416 ' 0
15417   trap 'as_fn_exit 1' 1 2 13 15
15418 }
15419 # Create a (secure) tmp directory for tmp files.
15420
15421 {
15422   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15423   test -n "$tmp" && test -d "$tmp"
15424 }  ||
15425 {
15426   tmp=./conf$$-$RANDOM
15427   (umask 077 && mkdir "$tmp")
15428 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15429
15430 # Set up the scripts for CONFIG_FILES section.
15431 # No need to generate them if there are no CONFIG_FILES.
15432 # This happens for instance with `./config.status config.h'.
15433 if test -n "$CONFIG_FILES"; then
15434
15435 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15436   ac_cs_awk_getline=:
15437   ac_cs_awk_pipe_init=
15438   ac_cs_awk_read_file='
15439       while ((getline aline < (F[key])) > 0)
15440         print(aline)
15441       close(F[key])'
15442   ac_cs_awk_pipe_fini=
15443 else
15444   ac_cs_awk_getline=false
15445   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15446   ac_cs_awk_read_file='
15447       print "|#_!!_#|"
15448       print "cat " F[key] " &&"
15449       '$ac_cs_awk_pipe_init
15450   # The final `:' finishes the AND list.
15451   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15452 fi
15453 ac_cr=`echo X | tr X '\015'`
15454 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15455 # But we know of no other shell where ac_cr would be empty at this
15456 # point, so we can use a bashism as a fallback.
15457 if test "x$ac_cr" = x; then
15458   eval ac_cr=\$\'\\r\'
15459 fi
15460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15462   ac_cs_awk_cr='\r'
15463 else
15464   ac_cs_awk_cr=$ac_cr
15465 fi
15466
15467 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15468 _ACEOF
15469
15470 # Create commands to substitute file output variables.
15471 {
15472   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15473   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15474   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15475   echo "_ACAWK" &&
15476   echo "_ACEOF"
15477 } >conf$$files.sh &&
15478 . ./conf$$files.sh ||
15479   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15480 rm -f conf$$files.sh
15481
15482 {
15483   echo "cat >conf$$subs.awk <<_ACEOF" &&
15484   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15485   echo "_ACEOF"
15486 } >conf$$subs.sh ||
15487   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15488 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15489 ac_delim='%!_!# '
15490 for ac_last_try in false false false false false :; do
15491   . ./conf$$subs.sh ||
15492     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15493
15494   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15495   if test $ac_delim_n = $ac_delim_num; then
15496     break
15497   elif $ac_last_try; then
15498     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15499   else
15500     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15501   fi
15502 done
15503 rm -f conf$$subs.sh
15504
15505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15506 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15507 _ACEOF
15508 sed -n '
15509 h
15510 s/^/S["/; s/!.*/"]=/
15511 p
15512 g
15513 s/^[^!]*!//
15514 :repl
15515 t repl
15516 s/'"$ac_delim"'$//
15517 t delim
15518 :nl
15519 h
15520 s/\(.\{148\}\).*/\1/
15521 t more1
15522 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15523 p
15524 n
15525 b repl
15526 :more1
15527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15528 p
15529 g
15530 s/.\{148\}//
15531 t nl
15532 :delim
15533 h
15534 s/\(.\{148\}\).*/\1/
15535 t more2
15536 s/["\\]/\\&/g; s/^/"/; s/$/"/
15537 p
15538 b
15539 :more2
15540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15541 p
15542 g
15543 s/.\{148\}//
15544 t delim
15545 ' <conf$$subs.awk | sed '
15546 /^[^""]/{
15547   N
15548   s/\n//
15549 }
15550 ' >>$CONFIG_STATUS || ac_write_fail=1
15551 rm -f conf$$subs.awk
15552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15553 _ACAWK
15554 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15555   for (key in S) S_is_set[key] = 1
15556   FS = "\a"
15557   \$ac_cs_awk_pipe_init
15558 }
15559 {
15560   line = $ 0
15561   nfields = split(line, field, "@")
15562   substed = 0
15563   len = length(field[1])
15564   for (i = 2; i < nfields; i++) {
15565     key = field[i]
15566     keylen = length(key)
15567     if (S_is_set[key]) {
15568       value = S[key]
15569       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15570       len += length(value) + length(field[++i])
15571       substed = 1
15572     } else
15573       len += 1 + keylen
15574   }
15575   if (nfields == 3 && !substed) {
15576     key = field[2]
15577     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15578       \$ac_cs_awk_read_file
15579       next
15580     }
15581   }
15582   print line
15583 }
15584 \$ac_cs_awk_pipe_fini
15585 _ACAWK
15586 _ACEOF
15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15589   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15590 else
15591   cat
15592 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15593   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15594 _ACEOF
15595
15596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15598 # trailing colons and then remove the whole line if VPATH becomes empty
15599 # (actually we leave an empty line to preserve line numbers).
15600 if test "x$srcdir" = x.; then
15601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15602 s/:*\$(srcdir):*/:/
15603 s/:*\${srcdir}:*/:/
15604 s/:*@srcdir@:*/:/
15605 s/^\([^=]*=[     ]*\):*/\1/
15606 s/:*$//
15607 s/^[^=]*=[       ]*$//
15608 }'
15609 fi
15610
15611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15612 fi # test -n "$CONFIG_FILES"
15613
15614
15615 eval set X "  :F $CONFIG_FILES      "
15616 shift
15617 for ac_tag
15618 do
15619   case $ac_tag in
15620   :[FHLC]) ac_mode=$ac_tag; continue;;
15621   esac
15622   case $ac_mode$ac_tag in
15623   :[FHL]*:*);;
15624   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15625   :[FH]-) ac_tag=-:-;;
15626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15627   esac
15628   ac_save_IFS=$IFS
15629   IFS=:
15630   set x $ac_tag
15631   IFS=$ac_save_IFS
15632   shift
15633   ac_file=$1
15634   shift
15635
15636   case $ac_mode in
15637   :L) ac_source=$1;;
15638   :[FH])
15639     ac_file_inputs=
15640     for ac_f
15641     do
15642       case $ac_f in
15643       -) ac_f="$tmp/stdin";;
15644       *) # Look for the file first in the build tree, then in the source tree
15645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15646          # because $ac_f cannot contain `:'.
15647          test -f "$ac_f" ||
15648            case $ac_f in
15649            [\\/$]*) false;;
15650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15651            esac ||
15652            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15653       esac
15654       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15655       as_fn_append ac_file_inputs " '$ac_f'"
15656     done
15657
15658     # Let's still pretend it is `configure' which instantiates (i.e., don't
15659     # use $as_me), people would be surprised to read:
15660     #    /* config.h.  Generated by config.status.  */
15661     configure_input='Generated from '`
15662           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15663         `' by configure.'
15664     if test x"$ac_file" != x-; then
15665       configure_input="$ac_file.  $configure_input"
15666       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15667 $as_echo "$as_me: creating $ac_file" >&6;}
15668     fi
15669     # Neutralize special characters interpreted by sed in replacement strings.
15670     case $configure_input in #(
15671     *\&* | *\|* | *\\* )
15672        ac_sed_conf_input=`$as_echo "$configure_input" |
15673        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15674     *) ac_sed_conf_input=$configure_input;;
15675     esac
15676
15677     case $ac_tag in
15678     *:-:* | *:-) cat >"$tmp/stdin" \
15679       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15680     esac
15681     ;;
15682   esac
15683
15684   ac_dir=`$as_dirname -- "$ac_file" ||
15685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15686          X"$ac_file" : 'X\(//\)[^/]' \| \
15687          X"$ac_file" : 'X\(//\)$' \| \
15688          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15689 $as_echo X"$ac_file" |
15690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15691             s//\1/
15692             q
15693           }
15694           /^X\(\/\/\)[^/].*/{
15695             s//\1/
15696             q
15697           }
15698           /^X\(\/\/\)$/{
15699             s//\1/
15700             q
15701           }
15702           /^X\(\/\).*/{
15703             s//\1/
15704             q
15705           }
15706           s/.*/./; q'`
15707   as_dir="$ac_dir"; as_fn_mkdir_p
15708   ac_builddir=.
15709
15710 case "$ac_dir" in
15711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15712 *)
15713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15714   # A ".." for each directory in $ac_dir_suffix.
15715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15716   case $ac_top_builddir_sub in
15717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15719   esac ;;
15720 esac
15721 ac_abs_top_builddir=$ac_pwd
15722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15723 # for backward compatibility:
15724 ac_top_builddir=$ac_top_build_prefix
15725
15726 case $srcdir in
15727   .)  # We are building in place.
15728     ac_srcdir=.
15729     ac_top_srcdir=$ac_top_builddir_sub
15730     ac_abs_top_srcdir=$ac_pwd ;;
15731   [\\/]* | ?:[\\/]* )  # Absolute name.
15732     ac_srcdir=$srcdir$ac_dir_suffix;
15733     ac_top_srcdir=$srcdir
15734     ac_abs_top_srcdir=$srcdir ;;
15735   *) # Relative name.
15736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15737     ac_top_srcdir=$ac_top_build_prefix$srcdir
15738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15739 esac
15740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15741
15742
15743   case $ac_mode in
15744   :F)
15745   #
15746   # CONFIG_FILE
15747   #
15748
15749   case $INSTALL in
15750   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15751   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15752   esac
15753 _ACEOF
15754
15755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15756 # If the template does not know about datarootdir, expand it.
15757 # FIXME: This hack should be removed a few years after 2.60.
15758 ac_datarootdir_hack=; ac_datarootdir_seen=
15759 ac_sed_dataroot='
15760 /datarootdir/ {
15761   p
15762   q
15763 }
15764 /@datadir@/p
15765 /@docdir@/p
15766 /@infodir@/p
15767 /@localedir@/p
15768 /@mandir@/p'
15769 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15770 *datarootdir*) ac_datarootdir_seen=yes;;
15771 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15773 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15774 _ACEOF
15775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15776   ac_datarootdir_hack='
15777   s&@datadir@&$datadir&g
15778   s&@docdir@&$docdir&g
15779   s&@infodir@&$infodir&g
15780   s&@localedir@&$localedir&g
15781   s&@mandir@&$mandir&g
15782   s&\\\${datarootdir}&$datarootdir&g' ;;
15783 esac
15784 _ACEOF
15785
15786 # Neutralize VPATH when `$srcdir' = `.'.
15787 # Shell code in configure.ac might set extrasub.
15788 # FIXME: do we really want to maintain this feature?
15789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15790 ac_sed_extra="$ac_vpsub
15791 $extrasub
15792 _ACEOF
15793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794 :t
15795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15796 s|@configure_input@|$ac_sed_conf_input|;t t
15797 s&@top_builddir@&$ac_top_builddir_sub&;t t
15798 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15799 s&@srcdir@&$ac_srcdir&;t t
15800 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15801 s&@top_srcdir@&$ac_top_srcdir&;t t
15802 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15803 s&@builddir@&$ac_builddir&;t t
15804 s&@abs_builddir@&$ac_abs_builddir&;t t
15805 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15806 s&@INSTALL@&$ac_INSTALL&;t t
15807 $ac_datarootdir_hack
15808 "
15809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15810 if $ac_cs_awk_getline; then
15811   $AWK -f "$tmp/subs.awk"
15812 else
15813   $AWK -f "$tmp/subs.awk" | $SHELL
15814 fi >$tmp/out \
15815   || as_fn_error "could not create $ac_file" "$LINENO" 5
15816
15817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15818   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15819   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15820   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15821 which seems to be undefined.  Please make sure it is defined." >&5
15822 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15823 which seems to be undefined.  Please make sure it is defined." >&2;}
15824
15825   rm -f "$tmp/stdin"
15826   case $ac_file in
15827   -) cat "$tmp/out" && rm -f "$tmp/out";;
15828   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15829   esac \
15830   || as_fn_error "could not create $ac_file" "$LINENO" 5
15831  ;;
15832
15833
15834
15835   esac
15836
15837
15838   case $ac_file$ac_mode in
15839     "Makefile":F) sed "$extrasub_build" Makefile |
15840    sed "$extrasub_host" |
15841    sed "$extrasub_target" > mf$$
15842    mv -f mf$$ Makefile ;;
15843
15844   esac
15845 done # for ac_tag
15846
15847
15848 as_fn_exit 0
15849 _ACEOF
15850 ac_clean_files=$ac_clean_files_save
15851
15852 test $ac_write_fail = 0 ||
15853   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15854
15855
15856 # configure is writing to config.log, and then calls config.status.
15857 # config.status does its own redirection, appending to config.log.
15858 # Unfortunately, on DOS this fails, as config.log is still kept open
15859 # by configure, so config.status won't be able to write to it; its
15860 # output is simply discarded.  So we exec the FD to /dev/null,
15861 # effectively closing config.log, so it can be properly (re)opened and
15862 # appended to by config.status.  When coming back to configure, we
15863 # need to make the FD available again.
15864 if test "$no_create" != yes; then
15865   ac_cs_success=:
15866   ac_config_status_args=
15867   test "$silent" = yes &&
15868     ac_config_status_args="$ac_config_status_args --quiet"
15869   exec 5>/dev/null
15870   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15871   exec 5>>config.log
15872   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15873   # would make configure fail if this is the last instruction.
15874   $ac_cs_success || as_fn_exit $?
15875 fi
15876 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15878 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15879 fi
15880