Clone remote breakpoints
[external/binutils.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 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
668 CXX
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
675 CC
676 EXTRA_CONFIGARGS_LIBJAVA
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_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
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_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CXX
809 CXXFLAGS
810 CCC
811 build_configargs
812 host_configargs
813 target_configargs
814 AR
815 AS
816 DLLTOOL
817 LD
818 LIPO
819 NM
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
846
847
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
869
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
895
896 ac_prev=
897 ac_dashdash=
898 for ac_option
899 do
900   # If the previous option needs an argument, assign it.
901   if test -n "$ac_prev"; then
902     eval $ac_prev=\$ac_option
903     ac_prev=
904     continue
905   fi
906
907   case $ac_option in
908   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909   *)    ac_optarg=yes ;;
910   esac
911
912   # Accept the important Cygnus configure options, so we can diagnose typos.
913
914   case $ac_dashdash$ac_option in
915   --)
916     ac_dashdash=yes ;;
917
918   -bindir | --bindir | --bindi | --bind | --bin | --bi)
919     ac_prev=bindir ;;
920   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921     bindir=$ac_optarg ;;
922
923   -build | --build | --buil | --bui | --bu)
924     ac_prev=build_alias ;;
925   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926     build_alias=$ac_optarg ;;
927
928   -cache-file | --cache-file | --cache-fil | --cache-fi \
929   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930     ac_prev=cache_file ;;
931   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933     cache_file=$ac_optarg ;;
934
935   --config-cache | -C)
936     cache_file=config.cache ;;
937
938   -datadir | --datadir | --datadi | --datad)
939     ac_prev=datadir ;;
940   -datadir=* | --datadir=* | --datadi=* | --datad=*)
941     datadir=$ac_optarg ;;
942
943   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944   | --dataroo | --dataro | --datar)
945     ac_prev=datarootdir ;;
946   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948     datarootdir=$ac_optarg ;;
949
950   -disable-* | --disable-*)
951     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954       as_fn_error "invalid feature name: $ac_useropt"
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=\$ac_optarg ;;
991
992   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994   | --exec | --exe | --ex)
995     ac_prev=exec_prefix ;;
996   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998   | --exec=* | --exe=* | --ex=*)
999     exec_prefix=$ac_optarg ;;
1000
1001   -gas | --gas | --ga | --g)
1002     # Obsolete; use --with-gas.
1003     with_gas=yes ;;
1004
1005   -help | --help | --hel | --he | -h)
1006     ac_init_help=long ;;
1007   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008     ac_init_help=recursive ;;
1009   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010     ac_init_help=short ;;
1011
1012   -host | --host | --hos | --ho)
1013     ac_prev=host_alias ;;
1014   -host=* | --host=* | --hos=* | --ho=*)
1015     host_alias=$ac_optarg ;;
1016
1017   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018     ac_prev=htmldir ;;
1019   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020   | --ht=*)
1021     htmldir=$ac_optarg ;;
1022
1023   -includedir | --includedir | --includedi | --included | --include \
1024   | --includ | --inclu | --incl | --inc)
1025     ac_prev=includedir ;;
1026   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027   | --includ=* | --inclu=* | --incl=* | --inc=*)
1028     includedir=$ac_optarg ;;
1029
1030   -infodir | --infodir | --infodi | --infod | --info | --inf)
1031     ac_prev=infodir ;;
1032   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033     infodir=$ac_optarg ;;
1034
1035   -libdir | --libdir | --libdi | --libd)
1036     ac_prev=libdir ;;
1037   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038     libdir=$ac_optarg ;;
1039
1040   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041   | --libexe | --libex | --libe)
1042     ac_prev=libexecdir ;;
1043   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044   | --libexe=* | --libex=* | --libe=*)
1045     libexecdir=$ac_optarg ;;
1046
1047   -localedir | --localedir | --localedi | --localed | --locale)
1048     ac_prev=localedir ;;
1049   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050     localedir=$ac_optarg ;;
1051
1052   -localstatedir | --localstatedir | --localstatedi | --localstated \
1053   | --localstate | --localstat | --localsta | --localst | --locals)
1054     ac_prev=localstatedir ;;
1055   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057     localstatedir=$ac_optarg ;;
1058
1059   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060     ac_prev=mandir ;;
1061   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062     mandir=$ac_optarg ;;
1063
1064   -nfp | --nfp | --nf)
1065     # Obsolete; use --without-fp.
1066     with_fp=no ;;
1067
1068   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069   | --no-cr | --no-c | -n)
1070     no_create=yes ;;
1071
1072   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074     no_recursion=yes ;;
1075
1076   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078   | --oldin | --oldi | --old | --ol | --o)
1079     ac_prev=oldincludedir ;;
1080   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083     oldincludedir=$ac_optarg ;;
1084
1085   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086     ac_prev=prefix ;;
1087   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088     prefix=$ac_optarg ;;
1089
1090   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091   | --program-pre | --program-pr | --program-p)
1092     ac_prev=program_prefix ;;
1093   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095     program_prefix=$ac_optarg ;;
1096
1097   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098   | --program-suf | --program-su | --program-s)
1099     ac_prev=program_suffix ;;
1100   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102     program_suffix=$ac_optarg ;;
1103
1104   -program-transform-name | --program-transform-name \
1105   | --program-transform-nam | --program-transform-na \
1106   | --program-transform-n | --program-transform- \
1107   | --program-transform | --program-transfor \
1108   | --program-transfo | --program-transf \
1109   | --program-trans | --program-tran \
1110   | --progr-tra | --program-tr | --program-t)
1111     ac_prev=program_transform_name ;;
1112   -program-transform-name=* | --program-transform-name=* \
1113   | --program-transform-nam=* | --program-transform-na=* \
1114   | --program-transform-n=* | --program-transform-=* \
1115   | --program-transform=* | --program-transfor=* \
1116   | --program-transfo=* | --program-transf=* \
1117   | --program-trans=* | --program-tran=* \
1118   | --progr-tra=* | --program-tr=* | --program-t=*)
1119     program_transform_name=$ac_optarg ;;
1120
1121   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122     ac_prev=pdfdir ;;
1123   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124     pdfdir=$ac_optarg ;;
1125
1126   -psdir | --psdir | --psdi | --psd | --ps)
1127     ac_prev=psdir ;;
1128   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129     psdir=$ac_optarg ;;
1130
1131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132   | -silent | --silent | --silen | --sile | --sil)
1133     silent=yes ;;
1134
1135   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136     ac_prev=sbindir ;;
1137   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138   | --sbi=* | --sb=*)
1139     sbindir=$ac_optarg ;;
1140
1141   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143   | --sharedst | --shareds | --shared | --share | --shar \
1144   | --sha | --sh)
1145     ac_prev=sharedstatedir ;;
1146   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149   | --sha=* | --sh=*)
1150     sharedstatedir=$ac_optarg ;;
1151
1152   -site | --site | --sit)
1153     ac_prev=site ;;
1154   -site=* | --site=* | --sit=*)
1155     site=$ac_optarg ;;
1156
1157   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158     ac_prev=srcdir ;;
1159   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160     srcdir=$ac_optarg ;;
1161
1162   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163   | --syscon | --sysco | --sysc | --sys | --sy)
1164     ac_prev=sysconfdir ;;
1165   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167     sysconfdir=$ac_optarg ;;
1168
1169   -target | --target | --targe | --targ | --tar | --ta | --t)
1170     ac_prev=target_alias ;;
1171   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172     target_alias=$ac_optarg ;;
1173
1174   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175     verbose=yes ;;
1176
1177   -version | --version | --versio | --versi | --vers | -V)
1178     ac_init_version=: ;;
1179
1180   -with-* | --with-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=\$ac_optarg ;;
1195
1196   -without-* | --without-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1232     ;;
1233
1234   *=*)
1235     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236     # Reject names that are not valid shell variable names.
1237     case $ac_envvar in #(
1238       '' | [0-9]* | *[!_$as_cr_alnum]* )
1239       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240     esac
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   as_fn_error "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261   case $enable_option_checking in
1262     no) ;;
1263     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265   esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270                 datadir sysconfdir sharedstatedir localstatedir includedir \
1271                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272                 libdir localedir mandir
1273 do
1274   eval ac_val=\$$ac_var
1275   # Remove trailing slashes.
1276   case $ac_val in
1277     */ )
1278       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279       eval $ac_var=\$ac_val;;
1280   esac
1281   # Be sure to have absolute directory names.
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   as_fn_error "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$as_myself" : 'X\(//\)[^/]' \| \
1328          X"$as_myself" : 'X\(//\)$' \| \
1329          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374   *" "*)
1375     as_fn_error "path to source, $srcdir, contains spaces"
1376     ;;
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459   --target=TARGET   configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464
1465   cat <<\_ACEOF
1466
1467 Optional Features:
1468   --disable-option-checking  ignore unrecognized --enable/--with options
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --enable-as-accelerator-for=ARG
1472                           build as offload target compiler. Specify offload
1473                           host triple by ARG
1474   --enable-offload-targets=LIST
1475                           enable offloading to devices from comma-separated
1476                           LIST of TARGET[=DIR]. Use optional path to find
1477                           offload target compiler during the build
1478   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1479   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1480   --disable-libquadmath   do not build libquadmath directory
1481   --disable-libquadmath-support
1482                           disable libquadmath support for Fortran
1483   --enable-libada         build libada directory
1484   --enable-libssp         build libssp directory
1485   --disable-libstdcxx     do not build libstdc++-v3 directory
1486   --enable-liboffloadmic=ARG
1487                           build liboffloadmic [ARG={no,host,target}]
1488   --enable-static-libjava[=ARG]
1489                           build static libjava [default=no]
1490   --enable-bootstrap      enable bootstrapping [yes if native build]
1491   --disable-isl-version-check
1492                           disable check for ISL version
1493   --enable-lto            enable link time optimization support
1494   --enable-linker-plugin-configure-flags=FLAGS
1495                           additional flags for configuring linker plugins
1496                           [none]
1497   --enable-linker-plugin-flags=FLAGS
1498                           additional flags for configuring and building linker
1499                           plugins [none]
1500   --enable-stage1-languages[=all]
1501                           choose additional languages to build during stage1.
1502                           Mostly useful for compiler development
1503   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1504                           Objective-C runtime
1505   --enable-vtable-verify    Enable vtable verification feature
1506   --enable-serial-[{host,target,build}-]configure
1507                           force sequential configuration of sub-packages for
1508                           the host, target or build machine, or all
1509                           sub-packages
1510   --enable-maintainer-mode
1511                           enable make rules and dependencies not useful (and
1512                           sometimes confusing) to the casual installer
1513   --enable-stage1-checking[=all]
1514                           choose additional checking for stage1 of the
1515                           compiler
1516   --enable-werror         enable -Werror in bootstrap stage2 and later
1517   --enable-host-shared    build host code as shared libraries
1518
1519 Optional Packages:
1520   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1523   --with-system-zlib      use installed libz
1524   --with-mpc=PATH         specify prefix directory for installed MPC package.
1525                           Equivalent to --with-mpc-include=PATH/include plus
1526                           --with-mpc-lib=PATH/lib
1527   --with-mpc-include=PATH specify directory for installed MPC include files
1528   --with-mpc-lib=PATH     specify directory for the installed MPC library
1529   --with-mpfr-dir=PATH    this option has been REMOVED
1530   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1531                           Equivalent to --with-mpfr-include=PATH/include plus
1532                           --with-mpfr-lib=PATH/lib
1533   --with-mpfr-include=PATH
1534                           specify directory for installed MPFR include files
1535   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1536   --with-gmp-dir=PATH     this option has been REMOVED
1537   --with-gmp=PATH         specify prefix directory for the installed GMP
1538                           package. Equivalent to
1539                           --with-gmp-include=PATH/include plus
1540                           --with-gmp-lib=PATH/lib
1541   --with-gmp-include=PATH specify directory for installed GMP include files
1542   --with-gmp-lib=PATH     specify directory for the installed GMP library
1543   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1544                           linking with PPL
1545   --with-stage1-libs=LIBS libraries for stage1
1546   --with-stage1-ldflags=FLAGS
1547                           linker flags for stage1
1548   --with-boot-libs=LIBS   libraries for stage2 and later
1549   --with-boot-ldflags=FLAGS
1550                           linker flags for stage2 and later
1551   --with-isl=PATH         Specify prefix directory for the installed ISL
1552                           package. Equivalent to
1553                           --with-isl-include=PATH/include plus
1554                           --with-isl-lib=PATH/lib
1555   --with-isl-include=PATH Specify directory for installed ISL include files
1556   --with-isl-lib=PATH     Specify the directory for the installed ISL library
1557   --with-build-sysroot=SYSROOT
1558                           use sysroot as the system root during the build
1559   --with-debug-prefix-map='A=B C=D ...'
1560                           map A to B, C to D ... in debug information
1561   --with-build-config='NAME NAME2...'
1562                           use config/NAME.mk build configuration
1563   --with-build-time-tools=PATH
1564                           use given path to find target tools during the build
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   build_configargs
1577               additional configure arguments for build directories
1578   host_configargs
1579               additional configure arguments for host directories
1580   target_configargs
1581               additional configure arguments for target directories
1582   AR          AR for the host
1583   AS          AS for the host
1584   DLLTOOL     DLLTOOL for the host
1585   LD          LD for the host
1586   LIPO        LIPO for the host
1587   NM          NM for the host
1588   RANLIB      RANLIB for the host
1589   STRIP       STRIP for the host
1590   WINDRES     WINDRES for the host
1591   WINDMC      WINDMC for the host
1592   OBJCOPY     OBJCOPY for the host
1593   OBJDUMP     OBJDUMP for the host
1594   READELF     READELF for the host
1595   CC_FOR_TARGET
1596               CC for the target
1597   CXX_FOR_TARGET
1598               CXX for the target
1599   GCC_FOR_TARGET
1600               GCC for the target
1601   GCJ_FOR_TARGET
1602               GCJ for the target
1603   GFORTRAN_FOR_TARGET
1604               GFORTRAN for the target
1605   GOC_FOR_TARGET
1606               GOC for the target
1607   AR_FOR_TARGET
1608               AR for the target
1609   AS_FOR_TARGET
1610               AS for the target
1611   DLLTOOL_FOR_TARGET
1612               DLLTOOL for the target
1613   LD_FOR_TARGET
1614               LD for the target
1615   LIPO_FOR_TARGET
1616               LIPO for the target
1617   NM_FOR_TARGET
1618               NM for the target
1619   OBJCOPY_FOR_TARGET
1620               OBJCOPY for the target
1621   OBJDUMP_FOR_TARGET
1622               OBJDUMP for the target
1623   RANLIB_FOR_TARGET
1624               RANLIB for the target
1625   READELF_FOR_TARGET
1626               READELF for the target
1627   STRIP_FOR_TARGET
1628               STRIP for the target
1629   WINDRES_FOR_TARGET
1630               WINDRES for the target
1631   WINDMC_FOR_TARGET
1632               WINDMC for the target
1633
1634 Use these variables to override the choices made by `configure' or to help
1635 it to find libraries and programs with nonstandard names/locations.
1636
1637 Report bugs to the package provider.
1638 _ACEOF
1639 ac_status=$?
1640 fi
1641
1642 if test "$ac_init_help" = "recursive"; then
1643   # If there are subdirs, report their specific --help.
1644   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645     test -d "$ac_dir" ||
1646       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1647       continue
1648     ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1654   # A ".." for each directory in $ac_dir_suffix.
1655   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1656   case $ac_top_builddir_sub in
1657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659   esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667   .)  # We are building in place.
1668     ac_srcdir=.
1669     ac_top_srcdir=$ac_top_builddir_sub
1670     ac_abs_top_srcdir=$ac_pwd ;;
1671   [\\/]* | ?:[\\/]* )  # Absolute name.
1672     ac_srcdir=$srcdir$ac_dir_suffix;
1673     ac_top_srcdir=$srcdir
1674     ac_abs_top_srcdir=$srcdir ;;
1675   *) # Relative name.
1676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677     ac_top_srcdir=$ac_top_build_prefix$srcdir
1678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682     cd "$ac_dir" || { ac_status=$?; continue; }
1683     # Check for guested configure.
1684     if test -f "$ac_srcdir/configure.gnu"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687     elif test -f "$ac_srcdir/configure"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure" --help=recursive
1690     else
1691       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692     fi || ac_status=$?
1693     cd "$ac_pwd" || { ac_status=$?; break; }
1694   done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699   cat <<\_ACEOF
1700 configure
1701 generated by GNU Autoconf 2.64
1702
1703 Copyright (C) 2009 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1706 _ACEOF
1707   exit
1708 fi
1709
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1713
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   rm -f conftest.$ac_objext
1721   if { { ac_try="$ac_compile"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_compile") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } && {
1737          test -z "$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        } && test -s conftest.$ac_objext; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745         ac_retval=1
1746 fi
1747   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748   return $ac_retval
1749
1750 } # ac_fn_c_try_compile
1751
1752 # ac_fn_cxx_try_compile LINENO
1753 # ----------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_cxx_try_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   rm -f conftest.$ac_objext
1759   if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_compile") 2>conftest.err
1767   ac_status=$?
1768   if test -s conftest.err; then
1769     grep -v '^ *+' conftest.err >conftest.er1
1770     cat conftest.er1 >&5
1771     mv -f conftest.er1 conftest.err
1772   fi
1773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774   test $ac_status = 0; } && {
1775          test -z "$ac_cxx_werror_flag" ||
1776          test ! -s conftest.err
1777        } && test -s conftest.$ac_objext; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786   return $ac_retval
1787
1788 } # ac_fn_cxx_try_compile
1789
1790 # ac_fn_cxx_try_link LINENO
1791 # -------------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_link ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   rm -f conftest.$ac_objext conftest$ac_exeext
1797   if { { ac_try="$ac_link"
1798 case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_link") 2>conftest.err
1805   ac_status=$?
1806   if test -s conftest.err; then
1807     grep -v '^ *+' conftest.err >conftest.er1
1808     cat conftest.er1 >&5
1809     mv -f conftest.er1 conftest.err
1810   fi
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && {
1813          test -z "$ac_cxx_werror_flag" ||
1814          test ! -s conftest.err
1815        } && test -s conftest$ac_exeext && {
1816          test "$cross_compiling" = yes ||
1817          $as_test_x conftest$ac_exeext
1818        }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824         ac_retval=1
1825 fi
1826   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828   # interfere with the next link command; also delete a directory that is
1829   # left behind by Apple's compiler.  We do this before executing the actions.
1830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832   return $ac_retval
1833
1834 } # ac_fn_cxx_try_link
1835
1836 # ac_fn_c_try_link LINENO
1837 # -----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_link ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   rm -f conftest.$ac_objext conftest$ac_exeext
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>conftest.err
1851   ac_status=$?
1852   if test -s conftest.err; then
1853     grep -v '^ *+' conftest.err >conftest.er1
1854     cat conftest.er1 >&5
1855     mv -f conftest.er1 conftest.err
1856   fi
1857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858   test $ac_status = 0; } && {
1859          test -z "$ac_c_werror_flag" ||
1860          test ! -s conftest.err
1861        } && test -s conftest$ac_exeext && {
1862          test "$cross_compiling" = yes ||
1863          $as_test_x conftest$ac_exeext
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874   # interfere with the next link command; also delete a directory that is
1875   # left behind by Apple's compiler.  We do this before executing the actions.
1876   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878   return $ac_retval
1879
1880 } # ac_fn_c_try_link
1881 cat >config.log <<_ACEOF
1882 This file contains any messages produced by compilers while
1883 running configure, to aid debugging if configure makes a mistake.
1884
1885 It was created by $as_me, which was
1886 generated by GNU Autoconf 2.64.  Invocation command line was
1887
1888   $ $0 $@
1889
1890 _ACEOF
1891 exec 5>>config.log
1892 {
1893 cat <<_ASUNAME
1894 ## --------- ##
1895 ## Platform. ##
1896 ## --------- ##
1897
1898 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903
1904 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1906
1907 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1908 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1909 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1911 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1912 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1913 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1914
1915 _ASUNAME
1916
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 for as_dir in $PATH
1919 do
1920   IFS=$as_save_IFS
1921   test -z "$as_dir" && as_dir=.
1922     $as_echo "PATH: $as_dir"
1923   done
1924 IFS=$as_save_IFS
1925
1926 } >&5
1927
1928 cat >&5 <<_ACEOF
1929
1930
1931 ## ----------- ##
1932 ## Core tests. ##
1933 ## ----------- ##
1934
1935 _ACEOF
1936
1937
1938 # Keep a trace of the command line.
1939 # Strip out --no-create and --no-recursion so they do not pile up.
1940 # Strip out --silent because we don't want to record it for future runs.
1941 # Also quote any args containing shell meta-characters.
1942 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_configure_args=
1944 ac_configure_args0=
1945 ac_configure_args1=
1946 ac_must_keep_next=false
1947 for ac_pass in 1 2
1948 do
1949   for ac_arg
1950   do
1951     case $ac_arg in
1952     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954     | -silent | --silent | --silen | --sile | --sil)
1955       continue ;;
1956     *\'*)
1957       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     esac
1959     case $ac_pass in
1960     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961     2)
1962       as_fn_append ac_configure_args1 " '$ac_arg'"
1963       if test $ac_must_keep_next = true; then
1964         ac_must_keep_next=false # Got value, back to normal.
1965       else
1966         case $ac_arg in
1967           *=* | --config-cache | -C | -disable-* | --disable-* \
1968           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970           | -with-* | --with-* | -without-* | --without-* | --x)
1971             case "$ac_configure_args0 " in
1972               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973             esac
1974             ;;
1975           -* ) ac_must_keep_next=true ;;
1976         esac
1977       fi
1978       as_fn_append ac_configure_args " '$ac_arg'"
1979       ;;
1980     esac
1981   done
1982 done
1983 { ac_configure_args0=; unset ac_configure_args0;}
1984 { ac_configure_args1=; unset ac_configure_args1;}
1985
1986 # When interrupted or exit'd, cleanup temporary files, and complete
1987 # config.log.  We remove comments because anyway the quotes in there
1988 # would cause problems or look ugly.
1989 # WARNING: Use '\'' to represent an apostrophe within the trap.
1990 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991 trap 'exit_status=$?
1992   # Save into config.log some information that might help in debugging.
1993   {
1994     echo
1995
1996     cat <<\_ASBOX
1997 ## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##
2000 _ASBOX
2001     echo
2002     # The following way of writing the cache mishandles newlines in values,
2003 (
2004   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005     eval ac_val=\$$ac_var
2006     case $ac_val in #(
2007     *${as_nl}*)
2008       case $ac_var in #(
2009       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011       esac
2012       case $ac_var in #(
2013       _ | IFS | as_nl) ;; #(
2014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015       *) { eval $ac_var=; unset $ac_var;} ;;
2016       esac ;;
2017     esac
2018   done
2019   (set) 2>&1 |
2020     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021     *${as_nl}ac_space=\ *)
2022       sed -n \
2023         "s/'\''/'\''\\\\'\'''\''/g;
2024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025       ;; #(
2026     *)
2027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028       ;;
2029     esac |
2030     sort
2031 )
2032     echo
2033
2034     cat <<\_ASBOX
2035 ## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##
2038 _ASBOX
2039     echo
2040     for ac_var in $ac_subst_vars
2041     do
2042       eval ac_val=\$$ac_var
2043       case $ac_val in
2044       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045       esac
2046       $as_echo "$ac_var='\''$ac_val'\''"
2047     done | sort
2048     echo
2049
2050     if test -n "$ac_subst_files"; then
2051       cat <<\_ASBOX
2052 ## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##
2055 _ASBOX
2056       echo
2057       for ac_var in $ac_subst_files
2058       do
2059         eval ac_val=\$$ac_var
2060         case $ac_val in
2061         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062         esac
2063         $as_echo "$ac_var='\''$ac_val'\''"
2064       done | sort
2065       echo
2066     fi
2067
2068     if test -s confdefs.h; then
2069       cat <<\_ASBOX
2070 ## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##
2073 _ASBOX
2074       echo
2075       cat confdefs.h
2076       echo
2077     fi
2078     test "$ac_signal" != 0 &&
2079       $as_echo "$as_me: caught signal $ac_signal"
2080     $as_echo "$as_me: exit $exit_status"
2081   } >&5
2082   rm -f core *.core core.conftest.* &&
2083     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084     exit $exit_status
2085 ' 0
2086 for ac_signal in 1 2 13 15; do
2087   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2088 done
2089 ac_signal=0
2090
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2093
2094 $as_echo "/* confdefs.h */" > confdefs.h
2095
2096 # Predefined preprocessor variables.
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2120 _ACEOF
2121
2122
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2125 ac_site_file1=NONE
2126 ac_site_file2=NONE
2127 if test -n "$CONFIG_SITE"; then
2128   ac_site_file1=$CONFIG_SITE
2129 elif test "x$prefix" != xNONE; then
2130   ac_site_file1=$prefix/share/config.site
2131   ac_site_file2=$prefix/etc/config.site
2132 else
2133   ac_site_file1=$ac_default_prefix/share/config.site
2134   ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138   test "x$ac_site_file" = xNONE && continue
2139   if test -r "$ac_site_file"; then
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142     sed 's/^/| /' "$ac_site_file" >&5
2143     . "$ac_site_file"
2144   fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148   # Some versions of bash will fail to source /dev/null (special
2149   # files actually), so we avoid doing that.
2150   if test -f "$cache_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153     case $cache_file in
2154       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155       *)                      . "./$cache_file";;
2156     esac
2157   fi
2158 else
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161   >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169   eval ac_new_set=\$ac_env_${ac_var}_set
2170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171   eval ac_new_val=\$ac_env_${ac_var}_value
2172   case $ac_old_set,$ac_new_set in
2173     set,)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,set)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,);;
2182     *)
2183       if test "x$ac_old_val" != "x$ac_new_val"; then
2184         # differences in whitespace do not lead to failure.
2185         ac_old_val_w=`echo x $ac_old_val`
2186         ac_new_val_w=`echo x $ac_new_val`
2187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190           ac_cache_corrupted=:
2191         else
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194           eval $ac_var=\$ac_old_val
2195         fi
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200       fi;;
2201   esac
2202   # Pass precious variables to config.status.
2203   if test "$ac_new_set" = set; then
2204     case $ac_new_val in
2205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     *) ac_arg=$ac_var=$ac_new_val ;;
2207     esac
2208     case " $ac_configure_args " in
2209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211     esac
2212   fi
2213 done
2214 if $ac_cache_corrupted; then
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239 progname=$0
2240 # if PWD already has a value, it is probably wrong.
2241 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242
2243 # Export original configure arguments for use by sub-configures.
2244 # Quote arguments with shell meta charatcers.
2245 TOPLEVEL_CONFIGURE_ARGUMENTS=
2246 set -- "$progname" "$@"
2247 for ac_arg
2248 do
2249   case "$ac_arg" in
2250   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2251     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2252     # if the argument is of the form -foo=baz, quote the baz part only
2253     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2254   *) ;;
2255   esac
2256   # Add the quoted argument to the list.
2257   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2258 done
2259 if test "$silent" = yes; then
2260   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261 fi
2262 # Remove the initial space we just introduced and, as these will be
2263 # expanded by make, quote '$'.
2264 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265
2266
2267 # Find the build, host, and target systems.
2268 ac_aux_dir=
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270   for ac_t in install-sh install.sh shtool; do
2271     if test -f "$ac_dir/$ac_t"; then
2272       ac_aux_dir=$ac_dir
2273       ac_install_sh="$ac_aux_dir/$ac_t -c"
2274       break 2
2275     fi
2276   done
2277 done
2278 if test -z "$ac_aux_dir"; then
2279   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 fi
2281
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2289
2290
2291 # Make sure we can run config.sub.
2292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2293   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2296 $as_echo_n "checking build system type... " >&6; }
2297 if test "${ac_cv_build+set}" = set; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   ac_build_alias=$build_alias
2301 test "x$ac_build_alias" = x &&
2302   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2303 test "x$ac_build_alias" = x &&
2304   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2305 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2306   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2310 $as_echo "$ac_cv_build" >&6; }
2311 case $ac_cv_build in
2312 *-*-*) ;;
2313 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2314 esac
2315 build=$ac_cv_build
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_build
2318 shift
2319 build_cpu=$1
2320 build_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 build_os=$*
2325 IFS=$ac_save_IFS
2326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327
2328
2329  case ${build_alias} in
2330   "") build_noncanonical=${build} ;;
2331   *) build_noncanonical=${build_alias} ;;
2332 esac
2333
2334
2335
2336  case ${host_alias} in
2337   "") host_noncanonical=${build_noncanonical} ;;
2338   *) host_noncanonical=${host_alias} ;;
2339 esac
2340
2341
2342
2343  case ${target_alias} in
2344   "") target_noncanonical=${host_noncanonical} ;;
2345   *) target_noncanonical=${target_alias} ;;
2346 esac
2347
2348
2349
2350
2351 test "$host_noncanonical" = "$target_noncanonical" &&
2352   test "$program_prefix$program_suffix$program_transform_name" = \
2353     NONENONEs,x,x, &&
2354   program_transform_name=s,y,y,
2355
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2357 $as_echo_n "checking host system type... " >&6; }
2358 if test "${ac_cv_host+set}" = set; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   if test "x$host_alias" = x; then
2362   ac_cv_host=$ac_cv_build
2363 else
2364   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2365     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2366 fi
2367
2368 fi
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2370 $as_echo "$ac_cv_host" >&6; }
2371 case $ac_cv_host in
2372 *-*-*) ;;
2373 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2374 esac
2375 host=$ac_cv_host
2376 ac_save_IFS=$IFS; IFS='-'
2377 set x $ac_cv_host
2378 shift
2379 host_cpu=$1
2380 host_vendor=$2
2381 shift; shift
2382 # Remember, the first character of IFS is used to create $*,
2383 # except with old shells:
2384 host_os=$*
2385 IFS=$ac_save_IFS
2386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387
2388
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2390 $as_echo_n "checking target system type... " >&6; }
2391 if test "${ac_cv_target+set}" = set; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   if test "x$target_alias" = x; then
2395   ac_cv_target=$ac_cv_host
2396 else
2397   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2398     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2399 fi
2400
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2403 $as_echo "$ac_cv_target" >&6; }
2404 case $ac_cv_target in
2405 *-*-*) ;;
2406 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2407 esac
2408 target=$ac_cv_target
2409 ac_save_IFS=$IFS; IFS='-'
2410 set x $ac_cv_target
2411 shift
2412 target_cpu=$1
2413 target_vendor=$2
2414 shift; shift
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2417 target_os=$*
2418 IFS=$ac_save_IFS
2419 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420
2421
2422 # The aliases save the names the user supplied, while $host etc.
2423 # will get canonicalized.
2424 test -n "$target_alias" &&
2425   test "$program_prefix$program_suffix$program_transform_name" = \
2426     NONENONEs,x,x, &&
2427   program_prefix=${target_alias}-
2428
2429 test "$program_prefix" != NONE &&
2430   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439
2440
2441 # Get 'install' or 'install-sh' and its variants.
2442 # Find a good install program.  We prefer a C program (faster),
2443 # so one script is as good as another.  But avoid the broken or
2444 # incompatible versions:
2445 # SysV /etc/install, /usr/sbin/install
2446 # SunOS /usr/etc/install
2447 # IRIX /sbin/install
2448 # AIX /bin/install
2449 # AmigaOS /C/install, which installs bootblocks on floppy discs
2450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2453 # OS/2's system install, which has a completely different semantic
2454 # ./install, which can be erroneously created by make from ./install.sh.
2455 # Reject install programs that cannot install multiple files.
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then :
2460   $as_echo_n "(cached) " >&6
2461 else
2462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     # Account for people who put trailing slashes in PATH elements.
2468 case $as_dir/ in #((
2469   ./ | .// | /[cC]/* | \
2470   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2471   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2472   /usr/ucb/* ) ;;
2473   *)
2474     # OSF1 and SCO ODT 3.0 have their own names for install.
2475     # Don't use installbsd from OSF since it installs stuff as root
2476     # by default.
2477     for ac_prog in ginstall scoinst install; do
2478       for ac_exec_ext in '' $ac_executable_extensions; do
2479         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2480           if test $ac_prog = install &&
2481             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482             # AIX install.  It has an incompatible calling convention.
2483             :
2484           elif test $ac_prog = install &&
2485             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # program-specific install script used by HP pwplus--don't use.
2487             :
2488           else
2489             rm -rf conftest.one conftest.two conftest.dir
2490             echo one > conftest.one
2491             echo two > conftest.two
2492             mkdir conftest.dir
2493             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2494               test -s conftest.one && test -s conftest.two &&
2495               test -s conftest.dir/conftest.one &&
2496               test -s conftest.dir/conftest.two
2497             then
2498               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2499               break 3
2500             fi
2501           fi
2502         fi
2503       done
2504     done
2505     ;;
2506 esac
2507
2508   done
2509 IFS=$as_save_IFS
2510
2511 rm -rf conftest.one conftest.two conftest.dir
2512
2513 fi
2514   if test "${ac_cv_path_install+set}" = set; then
2515     INSTALL=$ac_cv_path_install
2516   else
2517     # As a last resort, use the slow shell script.  Don't cache a
2518     # value for INSTALL within a source directory, because that will
2519     # break other packages using the cache if that directory is
2520     # removed, or if the value is a relative name.
2521     INSTALL=$ac_install_sh
2522   fi
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2525 $as_echo "$INSTALL" >&6; }
2526
2527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2528 # It thinks the first close brace ends the variable substitution.
2529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530
2531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532
2533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2536 $as_echo_n "checking whether ln works... " >&6; }
2537 if test "${acx_cv_prog_LN+set}" = set; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   rm -f conftestdata_t
2541 echo >conftestdata_f
2542 if ln conftestdata_f conftestdata_t 2>/dev/null
2543 then
2544   acx_cv_prog_LN=ln
2545 else
2546   acx_cv_prog_LN=no
2547 fi
2548 rm -f conftestdata_f conftestdata_t
2549
2550 fi
2551 if test $acx_cv_prog_LN = no; then
2552   LN="cp"
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2554 $as_echo "no, using $LN" >&6; }
2555 else
2556   LN="$acx_cv_prog_LN"
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2558 $as_echo "yes" >&6; }
2559 fi
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2562 $as_echo_n "checking whether ln -s works... " >&6; }
2563 LN_S=$as_ln_s
2564 if test "$LN_S" = "ln -s"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2569 $as_echo "no, using $LN_S" >&6; }
2570 fi
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2574 if test "${ac_cv_path_SED+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2578      for ac_i in 1 2 3 4 5 6 7; do
2579        ac_script="$ac_script$as_nl$ac_script"
2580      done
2581      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2582      { ac_script=; unset ac_script;}
2583      if test -z "$SED"; then
2584   ac_path_SED_found=false
2585   # Loop through the user's path and test for each of PROGNAME-LIST
2586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_prog in sed gsed; do
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2594       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2595 # Check for GNU ac_path_SED and select it if it is found.
2596   # Check for GNU $ac_path_SED
2597 case `"$ac_path_SED" --version 2>&1` in
2598 *GNU*)
2599   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600 *)
2601   ac_count=0
2602   $as_echo_n 0123456789 >"conftest.in"
2603   while :
2604   do
2605     cat "conftest.in" "conftest.in" >"conftest.tmp"
2606     mv "conftest.tmp" "conftest.in"
2607     cp "conftest.in" "conftest.nl"
2608     $as_echo '' >> "conftest.nl"
2609     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2610     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2611     as_fn_arith $ac_count + 1 && ac_count=$as_val
2612     if test $ac_count -gt ${ac_path_SED_max-0}; then
2613       # Best one so far, save it but keep looking for a better one
2614       ac_cv_path_SED="$ac_path_SED"
2615       ac_path_SED_max=$ac_count
2616     fi
2617     # 10*(2^10) chars as input seems more than enough
2618     test $ac_count -gt 10 && break
2619   done
2620   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2621 esac
2622
2623       $ac_path_SED_found && break 3
2624     done
2625   done
2626   done
2627 IFS=$as_save_IFS
2628   if test -z "$ac_cv_path_SED"; then
2629     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630   fi
2631 else
2632   ac_cv_path_SED=$SED
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2637 $as_echo "$ac_cv_path_SED" >&6; }
2638  SED="$ac_cv_path_SED"
2639   rm -f conftest.sed
2640
2641 for ac_prog in gawk mawk nawk awk
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_AWK+set}" = set; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$AWK"; then
2651   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_AWK="$ac_prog"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 AWK=$ac_cv_prog_AWK
2671 if test -n "$AWK"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2673 $as_echo "$AWK" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$AWK" && break
2681 done
2682
2683
2684 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685
2686 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2687 # a relative path.
2688 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2689   INSTALL="${srcpwd}/install-sh -c"
2690 fi
2691
2692 # Set srcdir to "." if that's what it is.
2693 # This is important for multilib support.
2694 pwd=`${PWDCMD-pwd}`
2695 if test "${pwd}" = "${srcpwd}" ; then
2696   srcdir=.
2697 fi
2698
2699 topsrcdir=$srcpwd
2700
2701 extra_host_args=
2702
2703 ### To add a new directory to the tree, first choose whether it is a target
2704 ### or a host dependent tool.  Then put it into the appropriate list
2705 ### (library or tools, host or target), doing a dependency sort.
2706
2707 # Subdirs will be configured in the order listed in build_configdirs,
2708 # configdirs, or target_configdirs; see the serialization section below.
2709
2710 # Dependency sorting is only needed when *configuration* must be done in
2711 # a particular order.  In all cases a dependency should be specified in
2712 # the Makefile, whether or not it's implicitly specified here.
2713
2714 # Double entries in build_configdirs, configdirs, or target_configdirs may
2715 # cause circular dependencies and break everything horribly.
2716
2717 # these library is used by various programs built for the build
2718 # environment
2719 #
2720 build_libs="build-libiberty build-libcpp"
2721
2722 # these tools are built for the build environment
2723 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724
2725 # these libraries are used by various programs built for the host environment
2726 #f
2727 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2728
2729 # these tools are built for the host environment
2730 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2731 # know that we are building the simulator.
2732 # binutils, gas and ld appear in that order because it makes sense to run
2733 # "make check" in that particular order.
2734 # If --enable-gold is used, "gold" may replace "ld".
2735 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"
2736
2737 # libgcj represents the runtime libraries only used by gcj.
2738 libgcj="target-libffi \
2739         target-zlib \
2740         target-libjava"
2741
2742 # these libraries are built for the target environment, and are built after
2743 # the host libraries and the host tools (which may be a cross compiler)
2744 # Note that libiberty is not a target library.
2745 target_libraries="target-libgcc \
2746                 target-libbacktrace \
2747                 target-libgloss \
2748                 target-newlib \
2749                 target-libgomp \
2750                 target-libcilkrts \
2751                 target-liboffloadmic \
2752                 target-libatomic \
2753                 target-libitm \
2754                 target-libstdc++-v3 \
2755                 target-libsanitizer \
2756                 target-libvtv \
2757                 target-libmpx \
2758                 target-libssp \
2759                 target-libquadmath \
2760                 target-libgfortran \
2761                 target-boehm-gc \
2762                 ${libgcj} \
2763                 target-libobjc \
2764                 target-libada \
2765                 target-libgo"
2766
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2769 #
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2772 #
2773 target_tools="target-rda"
2774
2775 ################################################################################
2776
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2785
2786
2787
2788 ################################################################################
2789
2790 srcname="gnu development package"
2791
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2794
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798   is_cross_compiler=no
2799 else
2800   is_cross_compiler=yes
2801 fi
2802
2803 # Find the build and target subdir names.
2804
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2816
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819   withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821   build_libsubdir="$build_subdir"
2822 fi
2823
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826    || test -d $srcdir/../host-${host_noncanonical}; then
2827   host_subdir="host-${host_noncanonical}"
2828 else
2829   host_subdir=.
2830 fi
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2833
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2836   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838 fi
2839
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2844
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848   use_gnu_ld=no
2849   noconfigdirs="$noconfigdirs ld gold"
2850 fi
2851
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855   use_gnu_as=no
2856   noconfigdirs="$noconfigdirs gas"
2857 fi
2858
2859 use_included_zlib=
2860
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863   withval=$with_system_zlib;
2864 fi
2865
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868   use_included_zlib=no
2869   noconfigdirs="$noconfigdirs zlib"
2870 fi
2871
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2874
2875 case ${with_x} in
2876   yes | "") ;; # the default value for this tree is that X11 is available
2877   no)
2878     skipdirs="${skipdirs} tk itcl libgui"
2879     # We won't be able to build gdbtk without X.
2880     enable_gdbtk=no
2881     ;;
2882   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2884
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2888
2889 case $is_cross_compiler in
2890   no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2892
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897   if test x"${with_newlib}" = x ; then
2898     with_newlib=no
2899   fi
2900 fi
2901
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904   no) skipdirs="${skipdirs} target-newlib" ;;
2905   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2907
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910   enableval=$enable_as_accelerator_for;
2911 fi
2912
2913
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916   enableval=$enable_offload_targets;
2917   if test x"$enable_offload_targets" = x; then
2918     as_fn_error "no offload targets specified" "$LINENO" 5
2919   fi
2920
2921 else
2922   enable_offload_targets=
2923 fi
2924
2925
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 #     Build only ld.  Default option.
2929 # --enable-gold [--enable-ld]
2930 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2931 #     as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2934 #     install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 #     and ld.bfd).
2940 #     In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 #     Error.
2943
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947   enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949   ENABLE_GOLD=no
2950 fi
2951
2952 case "${ENABLE_GOLD}" in
2953   yes|default)
2954     # Check for ELF target.
2955     is_elf=no
2956     case "${target}" in
2957       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961         case "${target}" in
2962           *-*-linux*aout* | *-*-linux*oldld*)
2963             ;;
2964           *)
2965             is_elf=yes
2966             ;;
2967         esac
2968     esac
2969
2970     if test "$is_elf" = "yes"; then
2971       # Check for target supported by gold.
2972       case "${target}" in
2973         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974         | aarch64*-*-* | tilegx*-*-*)
2975           configdirs="$configdirs gold"
2976           if test x${ENABLE_GOLD} = xdefault; then
2977             default_ld=gold
2978           fi
2979           ENABLE_GOLD=yes
2980           ;;
2981       esac
2982     fi
2983     ;;
2984   no)
2985     ;;
2986   *)
2987     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988     ;;
2989 esac
2990
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993   enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995   ENABLE_LD=yes
2996 fi
2997
2998
2999 case "${ENABLE_LD}" in
3000   default)
3001     if test x${default_ld} != x; then
3002       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003     fi
3004     ;;
3005   yes)
3006     ;;
3007   no)
3008     if test x${ENABLE_GOLD} != xyes; then
3009       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011     fi
3012     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013     ;;
3014   *)
3015     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016     ;;
3017 esac
3018
3019 # Configure extra directories which are host specific
3020
3021 case "${host}" in
3022   *-cygwin*)
3023     configdirs="$configdirs libtermcap" ;;
3024 esac
3025
3026 # A target can indicate whether a language isn't supported for some reason.
3027 # Only spaces may be used in this macro; not newlines or tabs.
3028 unsupported_languages=
3029
3030 # Remove more programs from consideration, based on the host or
3031 # target this usually means that a port of the program doesn't
3032 # exist yet.
3033
3034 case "${host}" in
3035   i[3456789]86-*-msdosdjgpp*)
3036     noconfigdirs="$noconfigdirs tcl tk itcl"
3037     ;;
3038 esac
3039
3040
3041 # Check whether --enable-libquadmath was given.
3042 if test "${enable_libquadmath+set}" = set; then :
3043   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044 else
3045   ENABLE_LIBQUADMATH=yes
3046 fi
3047
3048 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049   noconfigdirs="$noconfigdirs target-libquadmath"
3050 fi
3051
3052
3053 # Check whether --enable-libquadmath-support was given.
3054 if test "${enable_libquadmath_support+set}" = set; then :
3055   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056 else
3057   ENABLE_LIBQUADMATH_SUPPORT=yes
3058 fi
3059
3060 enable_libquadmath_support=
3061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062   enable_libquadmath_support=no
3063 fi
3064
3065
3066 # Check whether --enable-libada was given.
3067 if test "${enable_libada+set}" = set; then :
3068   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069 else
3070   ENABLE_LIBADA=yes
3071 fi
3072
3073 if test "${ENABLE_LIBADA}" != "yes" ; then
3074   noconfigdirs="$noconfigdirs gnattools"
3075 fi
3076
3077 # Check whether --enable-libssp was given.
3078 if test "${enable_libssp+set}" = set; then :
3079   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080 else
3081   ENABLE_LIBSSP=yes
3082 fi
3083
3084
3085 # Check whether --enable-libstdcxx was given.
3086 if test "${enable_libstdcxx+set}" = set; then :
3087   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088 else
3089   ENABLE_LIBSTDCXX=default
3090 fi
3091
3092 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3094 fi
3095
3096 # If this is accelerator compiler and its target is intelmic we enable
3097 # target liboffloadmic by default.  If this is compiler with offloading
3098 # for intelmic we enable host liboffloadmic by default.  Otherwise
3099 # liboffloadmic is disabled by default.
3100 # Check whether --enable-liboffloadmic was given.
3101 if test "${enable_liboffloadmic+set}" = set; then :
3102   enableval=$enable_liboffloadmic; case "$enableval" in
3103   no | host | target)
3104     enable_liboffloadmic=$enableval ;;
3105   *)
3106     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3107 esac
3108 else
3109   if test x"$enable_as_accelerator_for" != x; then
3110   case "${target}" in
3111     *-intelmic-* | *-intelmicemul-*)
3112       enable_liboffloadmic=target
3113       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3114       ;;
3115     *)
3116       enable_liboffloadmic=no
3117       ;;
3118   esac
3119 else
3120   case "${enable_offload_targets}" in
3121     *-intelmic-* | *-intelmicemul-*)
3122       enable_liboffloadmic=host
3123       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3124       ;;
3125     *)
3126       enable_liboffloadmic=no
3127       ;;
3128     esac
3129 fi
3130 fi
3131
3132
3133
3134 # Save it here so that, even in case of --enable-libgcj, if the Java
3135 # front-end isn't enabled, we still get libgcj disabled.
3136 libgcj_saved=$libgcj
3137 case $enable_libgcj in
3138 yes)
3139   # If we reset it here, it won't get added to noconfigdirs in the
3140   # target-specific build rules, so it will be forcibly enabled
3141   # (unless the Java language itself isn't enabled).
3142   libgcj=
3143   ;;
3144 no)
3145   # Make sure we get it printed in the list of not supported target libs.
3146   # Don't disable libffi, though, other languages use it.
3147   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3148   # Clear libgcj_saved so that even if java is enabled libffi won't be
3149   # built.
3150   libgcj_saved=
3151   ;;
3152 esac
3153
3154 # Check whether --enable-static-libjava was given.
3155 if test "${enable_static_libjava+set}" = set; then :
3156   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3157 else
3158   ENABLE_STATIC_LIBJAVA=no
3159 fi
3160
3161 enable_static_libjava=
3162 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3163   enable_static_libjava=yes
3164 fi
3165
3166 if test x$enable_static_libjava != xyes ; then
3167   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3168 fi
3169
3170
3171 # Disable libgomp on non POSIX hosted systems.
3172 if test x$enable_libgomp = x ; then
3173     # Enable libgomp by default on hosted POSIX systems.
3174     case "${target}" in
3175     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3176         ;;
3177     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3178         ;;
3179     *-*-solaris2* | *-*-hpux11*)
3180         ;;
3181     *-*-darwin* | *-*-aix*)
3182         ;;
3183     *)
3184         noconfigdirs="$noconfigdirs target-libgomp"
3185         ;;
3186     esac
3187 fi
3188
3189 # Disable libatomic on unsupported systems.
3190 if test -d ${srcdir}/libatomic; then
3191     if test x$enable_libatomic = x; then
3192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3193 $as_echo_n "checking for libatomic support... " >&6; }
3194         if (srcdir=${srcdir}/libatomic; \
3195                 . ${srcdir}/configure.tgt; \
3196                 test -n "$UNSUPPORTED")
3197         then
3198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200             noconfigdirs="$noconfigdirs target-libatomic"
3201         else
3202             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204         fi
3205     fi
3206 fi
3207
3208 # Disable libcilkrts on unsupported systems.
3209 if test -d ${srcdir}/libcilkrts; then
3210     if test x$enable_libcilkrts = x; then
3211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3212 $as_echo_n "checking for libcilkrts support... " >&6; }
3213         if (srcdir=${srcdir}/libcilkrts; \
3214                 . ${srcdir}/configure.tgt; \
3215                 test -n "$UNSUPPORTED")
3216         then
3217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219             noconfigdirs="$noconfigdirs target-libcilkrts"
3220         else
3221             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3223         fi
3224     fi
3225 fi
3226
3227 # Disable liboffloadmic on unsupported systems.
3228 if test -d ${srcdir}/liboffloadmic; then
3229     if test x$enable_liboffloadmic != xno; then
3230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3231 $as_echo_n "checking for liboffloadmic support... " >&6; }
3232         if (srcdir=${srcdir}/liboffloadmic; \
3233                 . ${srcdir}/configure.tgt; \
3234                 test -n "$UNSUPPORTED")
3235         then
3236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238             noconfigdirs="$noconfigdirs target-liboffloadmic"
3239         else
3240             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3242         fi
3243     fi
3244 fi
3245
3246 # Disable libitm on unsupported systems.
3247 if test -d ${srcdir}/libitm; then
3248     if test x$enable_libitm = x; then
3249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3250 $as_echo_n "checking for libitm support... " >&6; }
3251         if (srcdir=${srcdir}/libitm; \
3252                 . ${srcdir}/configure.tgt; \
3253                 test -n "$UNSUPPORTED")
3254         then
3255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257             noconfigdirs="$noconfigdirs target-libitm"
3258         else
3259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261         fi
3262     fi
3263 fi
3264
3265 # Disable libsanitizer on unsupported systems.
3266 if test -d ${srcdir}/libsanitizer; then
3267     if test x$enable_libsanitizer = x; then
3268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3269 $as_echo_n "checking for libsanitizer support... " >&6; }
3270         if (srcdir=${srcdir}/libsanitizer; \
3271                 . ${srcdir}/configure.tgt; \
3272                 test -n "$UNSUPPORTED")
3273         then
3274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276             noconfigdirs="$noconfigdirs target-libsanitizer"
3277         else
3278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280         fi
3281     fi
3282 fi
3283
3284 # Disable libvtv on unsupported systems.
3285 if test -d ${srcdir}/libvtv; then
3286     if test x$enable_libvtv = x; then
3287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3288 $as_echo_n "checking for libvtv support... " >&6; }
3289         if (srcdir=${srcdir}/libvtv; \
3290                 . ${srcdir}/configure.tgt; \
3291                 test "$VTV_SUPPORTED" != "yes")
3292         then
3293             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295             noconfigdirs="$noconfigdirs target-libvtv"
3296         else
3297             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299         fi
3300     fi
3301 fi
3302
3303
3304 # Enable libmpx on supported systems by request.
3305 if test -d ${srcdir}/libmpx; then
3306     if test x$enable_libmpx = xyes; then
3307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3308 $as_echo_n "checking for libmpx support... " >&6; }
3309        if (srcdir=${srcdir}/libmpx; \
3310                . ${srcdir}/configure.tgt; \
3311                test "$LIBMPX_SUPPORTED" != "yes")
3312        then
3313            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315            noconfigdirs="$noconfigdirs target-libmpx"
3316        else
3317            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3319        fi
3320     else
3321        noconfigdirs="$noconfigdirs target-libmpx"
3322     fi
3323 fi
3324
3325
3326
3327 # Disable libquadmath for some systems.
3328 case "${target}" in
3329   avr-*-*)
3330     noconfigdirs="$noconfigdirs target-libquadmath"
3331     ;;
3332   # libquadmath is unused on AIX and libquadmath build process use of
3333   # LD_LIBRARY_PATH can break AIX bootstrap.
3334   powerpc-*-aix* | rs6000-*-aix*)
3335     noconfigdirs="$noconfigdirs target-libquadmath"
3336     ;;
3337 esac
3338
3339 # Disable libssp for some systems.
3340 case "${target}" in
3341   avr-*-*)
3342     # No hosted I/O support.
3343     noconfigdirs="$noconfigdirs target-libssp"
3344     ;;
3345   powerpc-*-aix* | rs6000-*-aix*)
3346     noconfigdirs="$noconfigdirs target-libssp"
3347     ;;
3348   rl78-*-*)
3349     # libssp uses a misaligned load to trigger a fault, but the RL78
3350     # doesn't fault for those - instead, it gives a build-time error
3351     # for explicit misaligned loads.
3352     noconfigdirs="$noconfigdirs target-libssp"
3353     ;;
3354   visium-*-*)
3355     # No hosted I/O support.
3356     noconfigdirs="$noconfigdirs target-libssp"
3357     ;;
3358 esac
3359
3360 # Disable libstdc++-v3 for some systems.
3361 # Allow user to override this if they pass --enable-libstdc++-v3
3362 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363   case "${target}" in
3364     *-*-vxworks*)
3365       # VxWorks uses the Dinkumware C++ library.
3366       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367       ;;
3368     arm*-wince-pe*)
3369       # the C++ libraries don't build on top of CE's C libraries
3370       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371       ;;
3372     avr-*-*)
3373       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374       ;;
3375   esac
3376 fi
3377
3378 # Disable Fortran for some systems.
3379 case "${target}" in
3380   mmix-*-*)
3381     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3382     unsupported_languages="$unsupported_languages fortran"
3383     ;;
3384 esac
3385
3386 # Disable Java if libffi is not supported.
3387 case "${target}" in
3388   aarch64-*-*)
3389     ;;
3390   alpha*-*-*)
3391     ;;
3392   arm*-*-*)
3393     ;;
3394   cris-*-*)
3395     ;;
3396   frv-*-*)
3397     ;;
3398   hppa*-*-linux*)
3399     ;;
3400   hppa*-*-hpux*)
3401     ;;
3402   i?86-*-*)
3403     ;;
3404   ia64*-*-*)
3405     ;;
3406   m32r*-*-*)
3407     ;;
3408   m68k-*-*)
3409     ;;
3410   mips*-*-rtems*)
3411     ;;
3412   mips*-*-linux*)
3413     ;;
3414   powerpc*-*-linux*)
3415     ;;
3416   powerpc-*-darwin*)
3417     ;;
3418   powerpc-*-aix* | rs6000-*-aix*)
3419     ;;
3420   powerpc-*-freebsd*)
3421     ;;
3422   powerpc64-*-freebsd*)
3423     ;;
3424   powerpc*-*-rtems*)
3425     ;;
3426   s390-*-* | s390x-*-*)
3427     ;;
3428   sh-*-* | sh[34]*-*-*)
3429     ;;
3430   sh64-*-* | sh5*-*-*)
3431     ;;
3432   sparc*-*-*)
3433     ;;
3434   x86_64-*-*)
3435     ;;
3436   *-*-*)
3437     unsupported_languages="$unsupported_languages java"
3438     ;;
3439 esac
3440
3441 # Disable Java, libgcj or related libraries for some systems.
3442 case "${target}" in
3443   powerpc-*-darwin*)
3444     ;;
3445   i[3456789]86-*-darwin*)
3446     ;;
3447   x86_64-*-darwin[912]*)
3448     ;;
3449   *-*-darwin*)
3450     noconfigdirs="$noconfigdirs ${libgcj}"
3451     ;;
3452   *-*-netware*)
3453     noconfigdirs="$noconfigdirs ${libgcj}"
3454     ;;
3455   *-*-rtems*)
3456     noconfigdirs="$noconfigdirs ${libgcj}"
3457     ;;
3458   *-*-tpf*)
3459     noconfigdirs="$noconfigdirs ${libgcj}"
3460     ;;
3461   *-*-uclinux*)
3462     noconfigdirs="$noconfigdirs ${libgcj}"
3463     ;;
3464   *-*-vxworks*)
3465     noconfigdirs="$noconfigdirs ${libgcj}"
3466     ;;
3467   alpha*-*-*vms*)
3468     noconfigdirs="$noconfigdirs ${libgcj}"
3469     ;;
3470   arm*-*-freebsd*)
3471     noconfigdirs="$noconfigdirs ${libgcj}"
3472     ;;
3473   arm-wince-pe)
3474     noconfigdirs="$noconfigdirs ${libgcj}"
3475     ;;
3476   arm*-*-symbianelf*)
3477     noconfigdirs="$noconfigdirs ${libgcj}"
3478     ;;
3479   bfin-*-*)
3480     noconfigdirs="$noconfigdirs target-boehm-gc"
3481     ;;
3482   cris-*-* | crisv32-*-*)
3483     unsupported_languages="$unsupported_languages java"
3484     case "${target}" in
3485       *-*-linux*)
3486         ;;
3487       *) # See PR46792 regarding target-libffi.
3488         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3489     esac
3490     ;;
3491   hppa*64*-*-linux*)
3492     # In this case, it's because the hppa64-linux target is for
3493     # the kernel only at this point and has no libc, and thus no
3494     # headers, crt*.o, etc., all of which are needed by these.
3495     unsupported_languages="$unsupported_languages java"
3496     ;;
3497   hppa*64*-*-hpux*)
3498     noconfigdirs="$noconfigdirs ${libgcj}"
3499     ;;
3500   hppa*-hp-hpux11*)
3501     ;;
3502   hppa*-*-hpux*)
3503     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3504     # build on HP-UX 10.20.
3505     noconfigdirs="$noconfigdirs ${libgcj}"
3506     ;;
3507   ia64*-*-*vms*)
3508     noconfigdirs="$noconfigdirs ${libgcj}"
3509     ;;
3510   i[3456789]86-w64-mingw*)
3511     noconfigdirs="$noconfigdirs ${libgcj}"
3512     ;;
3513   i[3456789]86-*-mingw*)
3514     noconfigdirs="$noconfigdirs ${libgcj}"
3515     ;;
3516   x86_64-*-mingw*)
3517     noconfigdirs="$noconfigdirs ${libgcj}"
3518     ;;
3519   mmix-*-*)
3520     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3521     ;;
3522   powerpc-*-aix*)
3523     # copied from rs6000-*-* entry
3524     noconfigdirs="$noconfigdirs ${libgcj}"
3525     ;;
3526   rs6000-*-aix*)
3527     noconfigdirs="$noconfigdirs ${libgcj}"
3528     ;;
3529   ft32-*-*)
3530     noconfigdirs="$noconfigdirs ${libgcj}"
3531     ;;
3532   *-*-lynxos*)
3533     noconfigdirs="$noconfigdirs ${libgcj}"
3534     ;;
3535 esac
3536
3537 # Disable the go frontend on systems where it is known to not work. Please keep
3538 # this in sync with contrib/config-list.mk.
3539 case "${target}" in
3540 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3541     unsupported_languages="$unsupported_languages go"
3542     ;;
3543 esac
3544
3545 # Disable libgo for some systems where it is known to not work.
3546 # For testing, you can easily override this with --enable-libgo.
3547 if test x$enable_libgo = x; then
3548     case "${target}" in
3549     *-*-darwin*)
3550         # PR 46986
3551         noconfigdirs="$noconfigdirs target-libgo"
3552         ;;
3553     *-*-cygwin* | *-*-mingw*)
3554         noconfigdirs="$noconfigdirs target-libgo"
3555         ;;
3556     *-*-aix*)
3557         noconfigdirs="$noconfigdirs target-libgo"
3558         ;;
3559     esac
3560 fi
3561
3562 # Default libgloss CPU subdirectory.
3563 libgloss_dir="$target_cpu"
3564
3565 case "${target}" in
3566   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3567     libgloss_dir=wince
3568     ;;
3569   aarch64*-*-* )
3570     libgloss_dir=aarch64
3571     ;;
3572   arm*-*-*)
3573     libgloss_dir=arm
3574     ;;
3575   cris-*-* | crisv32-*-*)
3576     libgloss_dir=cris
3577     ;;
3578   hppa*-*-*)
3579     libgloss_dir=pa
3580     ;;
3581   i[3456789]86-*-*)
3582     libgloss_dir=i386
3583     ;;
3584   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3585     libgloss_dir=m68hc11
3586     ;;
3587   m68*-*-* | fido-*-*)
3588     libgloss_dir=m68k
3589     ;;
3590   mips*-*-*)
3591     libgloss_dir=mips
3592     ;;
3593   powerpc*-*-*)
3594     libgloss_dir=rs6000
3595     ;;
3596   sparc*-*-*)
3597     libgloss_dir=sparc
3598     ;;
3599 esac
3600
3601 # Disable newlib and libgloss for various target OSes.
3602 case "${target}" in
3603   alpha*-dec-osf*)
3604     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605     ;;
3606   i[3456789]86-*-linux*)
3607     # This section makes it possible to build newlib natively on linux.
3608     # If we are using a cross compiler then don't configure newlib.
3609     if test x${is_cross_compiler} != xno ; then
3610       noconfigdirs="$noconfigdirs target-newlib"
3611     fi
3612     noconfigdirs="$noconfigdirs target-libgloss"
3613     # If we are not using a cross compiler, do configure newlib.
3614     # Note however, that newlib will only be configured in this situation
3615     # if the --with-newlib option has been given, because otherwise
3616     # 'target-newlib' will appear in skipdirs.
3617     ;;
3618   i[3456789]86-*-rdos*)
3619     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620     ;;
3621   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3622     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623     ;;
3624   sparc-*-sunos4*)
3625     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626     ;;
3627   *-*-aix*)
3628     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629     ;;
3630   *-*-beos*)
3631     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632     ;;
3633   *-*-chorusos)
3634     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635     ;;
3636   *-*-dragonfly*)
3637     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638     ;;
3639   *-*-freebsd*)
3640     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641     ;;
3642   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3643     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644     ;;
3645   *-*-lynxos*)
3646     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647     ;;
3648   *-*-mingw*)
3649     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650     ;;
3651   *-*-netbsd*)
3652     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653     ;;
3654   *-*-netware*)
3655     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656     ;;
3657   *-*-tpf*)
3658     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659     ;;
3660   *-*-uclinux*)
3661     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662     ;;
3663   *-*-vxworks*)
3664     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665     ;;
3666 esac
3667
3668 case "${target}" in
3669   *-*-chorusos)
3670     ;;
3671   powerpc-*-darwin*)
3672     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673     noconfigdirs="$noconfigdirs sim target-rda"
3674     ;;
3675   i[3456789]86-*-darwin*)
3676     noconfigdirs="$noconfigdirs ld gprof"
3677     noconfigdirs="$noconfigdirs sim target-rda"
3678     ;;
3679   x86_64-*-darwin[912]*)
3680     noconfigdirs="$noconfigdirs ld gas gprof"
3681     noconfigdirs="$noconfigdirs sim target-rda"
3682     ;;
3683   *-*-darwin*)
3684     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3685     noconfigdirs="$noconfigdirs sim target-rda"
3686     ;;
3687   *-*-dragonfly*)
3688     ;;
3689   *-*-freebsd*)
3690     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3691         && test -f /usr/local/include/gmp.h; then
3692       with_gmp=/usr/local
3693     fi
3694     ;;
3695   *-*-kaos*)
3696     # Remove unsupported stuff on all kaOS configurations.
3697     noconfigdirs="$noconfigdirs target-libgloss"
3698     ;;
3699   *-*-netbsd*)
3700     ;;
3701   *-*-netware*)
3702     ;;
3703   *-*-rtems*)
3704     noconfigdirs="$noconfigdirs target-libgloss"
3705     # this is not caught below because this stanza matches earlier
3706     case $target in
3707       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3708     esac
3709     ;;
3710     # The tpf target doesn't support gdb yet.
3711   *-*-tpf*)
3712     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3713     ;;
3714   *-*-uclinux*)
3715     noconfigdirs="$noconfigdirs target-rda"
3716     ;;
3717   *-*-vxworks*)
3718     ;;
3719   alpha*-dec-osf*)
3720     # ld works, but does not support shared libraries.
3721     # gas doesn't generate exception information.
3722     noconfigdirs="$noconfigdirs gas ld"
3723     ;;
3724   alpha*-*-*vms*)
3725     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3726     ;;
3727   alpha*-*-*)
3728     # newlib is not 64 bit ready
3729     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730     ;;
3731   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3732     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3733     ;;
3734   arc-*-*|arceb-*-*)
3735     noconfigdirs="$noconfigdirs target-libgloss"
3736     ;;
3737   arm-*-pe*)
3738     noconfigdirs="$noconfigdirs target-libgloss"
3739     ;;
3740   arm-*-riscix*)
3741     noconfigdirs="$noconfigdirs ld target-libgloss"
3742     ;;
3743   avr-*-rtems*)
3744     ;;
3745   avr-*-*)
3746     if test x${with_avrlibc} != xno; then
3747       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748     fi
3749     ;;
3750   c4x-*-* | tic4x-*-*)
3751     noconfigdirs="$noconfigdirs target-libgloss"
3752     ;;
3753   tic54x-*-*)
3754     noconfigdirs="$noconfigdirs target-libgloss gdb"
3755     ;;
3756   d10v-*-*)
3757     noconfigdirs="$noconfigdirs target-libgloss"
3758     ;;
3759   d30v-*-*)
3760     noconfigdirs="$noconfigdirs gdb"
3761     ;;
3762   fr30-*-elf*)
3763     noconfigdirs="$noconfigdirs gdb"
3764     ;;
3765   ft32-*-*)
3766     noconfigdirs="$noconfigdirs target-rda gprof"
3767     ;;
3768   moxie-*-*)
3769     noconfigdirs="$noconfigdirs"
3770     ;;
3771   h8300*-*-*)
3772     noconfigdirs="$noconfigdirs target-libgloss"
3773     ;;
3774   h8500-*-*)
3775     noconfigdirs="$noconfigdirs target-libgloss"
3776     ;;
3777   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3778     ;;
3779   hppa*64*-*-linux*)
3780     ;;
3781   hppa*-*-linux*)
3782     ;;
3783   hppa*-*-*elf* | \
3784   hppa*-*-lites* | \
3785   hppa*-*-openbsd* | \
3786   hppa*64*-*-*)
3787     ;;
3788   hppa*-hp-hpux11*)
3789     noconfigdirs="$noconfigdirs ld"
3790     ;;
3791   hppa*-*-pro*)
3792     ;;
3793   hppa*-*-*)
3794     noconfigdirs="$noconfigdirs ld"
3795     ;;
3796   i960-*-*)
3797     noconfigdirs="$noconfigdirs gdb"
3798     ;;
3799   ia64*-*-elf*)
3800     # No gdb support yet.
3801     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3802     ;;
3803   ia64*-**-hpux*)
3804     # No ld support yet.
3805     noconfigdirs="$noconfigdirs libgui itcl ld"
3806     ;;
3807   ia64*-*-*vms*)
3808     # No ld support yet.
3809     noconfigdirs="$noconfigdirs libgui itcl ld"
3810     ;;
3811   i[3456789]86-w64-mingw*)
3812     ;;
3813   i[3456789]86-*-mingw*)
3814     target_configdirs="$target_configdirs target-winsup"
3815     ;;
3816   *-*-cygwin*)
3817     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3818     noconfigdirs="$noconfigdirs target-libgloss"
3819     # always build newlib if winsup directory is present.
3820     if test -d "$srcdir/winsup/cygwin"; then
3821       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3822     elif test -d "$srcdir/newlib"; then
3823       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3824     fi
3825     ;;
3826   i[3456789]86-*-pe)
3827     noconfigdirs="$noconfigdirs target-libgloss"
3828     ;;
3829   i[3456789]86-*-sco3.2v5*)
3830     # The linker does not yet know about weak symbols in COFF,
3831     # and is not configured to handle mixed ELF and COFF.
3832     noconfigdirs="$noconfigdirs ld target-libgloss"
3833     ;;
3834   i[3456789]86-*-sco*)
3835     noconfigdirs="$noconfigdirs gprof target-libgloss"
3836     ;;
3837   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3838     noconfigdirs="$noconfigdirs target-libgloss"
3839     ;;
3840   i[3456789]86-*-sysv4*)
3841     noconfigdirs="$noconfigdirs target-libgloss"
3842     ;;
3843   i[3456789]86-*-beos*)
3844     noconfigdirs="$noconfigdirs gdb"
3845     ;;
3846   i[3456789]86-*-rdos*)
3847     noconfigdirs="$noconfigdirs gdb"
3848     ;;
3849   mmix-*-*)
3850     noconfigdirs="$noconfigdirs gdb"
3851     ;;
3852   mt-*-*)
3853     noconfigdirs="$noconfigdirs sim"
3854     ;;
3855   powerpc-*-aix*)
3856     # copied from rs6000-*-* entry
3857     noconfigdirs="$noconfigdirs gprof"
3858     ;;
3859   powerpc*-*-winnt* | powerpc*-*-pe*)
3860     target_configdirs="$target_configdirs target-winsup"
3861     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3862     # always build newlib.
3863     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864     ;;
3865     # This is temporary until we can link against shared libraries
3866   powerpcle-*-solaris*)
3867     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3868     ;;
3869   powerpc-*-beos*)
3870     noconfigdirs="$noconfigdirs gdb"
3871     ;;
3872   rs6000-*-lynxos*)
3873     noconfigdirs="$noconfigdirs gprof"
3874     ;;
3875   rs6000-*-aix*)
3876     noconfigdirs="$noconfigdirs gprof"
3877     ;;
3878   rs6000-*-*)
3879     noconfigdirs="$noconfigdirs gprof"
3880     ;;
3881   m68k-apollo-*)
3882     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3883     ;;
3884   microblaze*)
3885     noconfigdirs="$noconfigdirs gprof"
3886     ;;
3887   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3888     if test x$with_newlib = xyes; then
3889       noconfigdirs="$noconfigdirs gprof"
3890     fi
3891     ;;
3892   mips*-*-irix5*)
3893     noconfigdirs="$noconfigdirs gprof target-libgloss"
3894     ;;
3895   mips*-*-irix6*)
3896     noconfigdirs="$noconfigdirs gprof target-libgloss"
3897     ;;
3898   mips*-*-bsd*)
3899     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3900     ;;
3901   mips*-*-linux*)
3902     ;;
3903   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3904   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3905     noconfigdirs="$noconfigdirs ld gas gprof"
3906     ;;
3907   mips*-*-*)
3908     noconfigdirs="$noconfigdirs gprof"
3909     ;;
3910   nds32*-*-*)
3911     noconfigdirs="$noconfigdirs gdb"
3912     ;;
3913   nvptx*-*-*)
3914     # nvptx is just a compiler
3915     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3916     ;;
3917   or1k*-*-*)
3918     noconfigdirs="$noconfigdirs gdb"
3919     ;;
3920   sh-*-* | sh64-*-*)
3921     case "${target}" in
3922       sh*-*-elf)
3923          ;;
3924       *)
3925          noconfigdirs="$noconfigdirs target-libgloss" ;;
3926     esac
3927     ;;
3928   sparc-*-sunos4*)
3929     if test x${is_cross_compiler} = xno ; then
3930            use_gnu_ld=no
3931     fi
3932     ;;
3933   tic6x-*-*)
3934     noconfigdirs="$noconfigdirs sim"
3935     ;;
3936   tilepro*-*-* | tilegx*-*-*)
3937     noconfigdirs="$noconfigdirs sim"
3938     ;;
3939   v810-*-*)
3940     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3941     ;;
3942   vax-*-*)
3943     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3944     ;;
3945 esac
3946
3947 # If we aren't building newlib, then don't build libgloss, since libgloss
3948 # depends upon some newlib header files.
3949 case "${noconfigdirs}" in
3950   *target-libgloss*) ;;
3951   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3952 esac
3953
3954 # Work in distributions that contain no compiler tools, like Autoconf.
3955 host_makefile_frag=/dev/null
3956 if test -d ${srcdir}/config ; then
3957 case "${host}" in
3958   i[3456789]86-*-msdosdjgpp*)
3959     host_makefile_frag="config/mh-djgpp"
3960     ;;
3961   *-cygwin*)
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3964 $as_echo_n "checking to see if cat works as expected... " >&6; }
3965 echo a >cygwin-cat-check
3966 if test `cat cygwin-cat-check` = a ; then
3967   rm cygwin-cat-check
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3970 else
3971   rm cygwin-cat-check
3972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3974   as_fn_error "The cat command does not ignore carriage return characters.
3975   Please either mount the build directory in binary mode or run the following
3976   commands before running any configure script:
3977 set -o igncr
3978 export SHELLOPTS
3979   " "$LINENO" 5
3980 fi
3981
3982     host_makefile_frag="config/mh-cygwin"
3983     ;;
3984   *-mingw*)
3985     host_makefile_frag="config/mh-mingw"
3986     ;;
3987   hppa*-hp-hpux10*)
3988     host_makefile_frag="config/mh-pa-hpux10"
3989     ;;
3990   hppa*-hp-hpux*)
3991     host_makefile_frag="config/mh-pa"
3992     ;;
3993   hppa*-*)
3994     host_makefile_frag="config/mh-pa"
3995     ;;
3996   *-*-darwin*)
3997     host_makefile_frag="config/mh-darwin"
3998     ;;
3999   powerpc-*-aix*)
4000     host_makefile_frag="config/mh-ppc-aix"
4001     ;;
4002   rs6000-*-aix*)
4003     host_makefile_frag="config/mh-ppc-aix"
4004     ;;
4005 esac
4006 fi
4007
4008 if test "${build}" != "${host}" ; then
4009   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4010   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4011   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4012   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4013   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4014   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4015   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4016   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4017   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4018   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4019   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4020   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4021   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4022 else
4023   AR_FOR_BUILD="\$(AR)"
4024   AS_FOR_BUILD="\$(AS)"
4025   CC_FOR_BUILD="\$(CC)"
4026   CXX_FOR_BUILD="\$(CXX)"
4027   GCJ_FOR_BUILD="\$(GCJ)"
4028   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4029   GOC_FOR_BUILD="\$(GOC)"
4030   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4031   LD_FOR_BUILD="\$(LD)"
4032   NM_FOR_BUILD="\$(NM)"
4033   RANLIB_FOR_BUILD="\$(RANLIB)"
4034   WINDRES_FOR_BUILD="\$(WINDRES)"
4035   WINDMC_FOR_BUILD="\$(WINDMC)"
4036 fi
4037
4038 ac_ext=c
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 if test -n "$ac_tool_prefix"; then
4044   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051   if test -n "$CC"; then
4052   ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059     for ac_exec_ext in '' $ac_executable_extensions; do
4060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066   done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 CC=$ac_cv_prog_CC
4072 if test -n "$CC"; then
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4074 $as_echo "$CC" >&6; }
4075 else
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 fi
4079
4080
4081 fi
4082 if test -z "$ac_cv_prog_CC"; then
4083   ac_ct_CC=$CC
4084   # Extract the first word of "gcc", so it can be a program name with args.
4085 set dummy gcc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   if test -n "$ac_ct_CC"; then
4092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099     for ac_exec_ext in '' $ac_executable_extensions; do
4100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101     ac_cv_prog_ac_ct_CC="gcc"
4102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106   done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4112 if test -n "$ac_ct_CC"; then
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4114 $as_echo "$ac_ct_CC" >&6; }
4115 else
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 fi
4119
4120   if test "x$ac_ct_CC" = x; then
4121     CC=""
4122   else
4123     case $cross_compiling:$ac_tool_warned in
4124 yes:)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4128 esac
4129     CC=$ac_ct_CC
4130   fi
4131 else
4132   CC="$ac_cv_prog_CC"
4133 fi
4134
4135 if test -z "$CC"; then
4136           if test -n "$ac_tool_prefix"; then
4137     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_CC+set}" = set; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -n "$CC"; then
4145   ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154     ac_cv_prog_CC="${ac_tool_prefix}cc"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174   fi
4175 fi
4176 if test -z "$CC"; then
4177   # Extract the first word of "cc", so it can be a program name with args.
4178 set dummy cc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if test "${ac_cv_prog_CC+set}" = set; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -n "$CC"; then
4185   ac_cv_prog_CC="$CC" # Let the user override the test.
4186 else
4187   ac_prog_rejected=no
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_exec_ext in '' $ac_executable_extensions; do
4194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4196        ac_prog_rejected=yes
4197        continue
4198      fi
4199     ac_cv_prog_CC="cc"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 if test $ac_prog_rejected = yes; then
4208   # We found a bogon in the path, so make sure we never use it.
4209   set dummy $ac_cv_prog_CC
4210   shift
4211   if test $# != 0; then
4212     # We chose a different compiler from the bogus one.
4213     # However, it has the same basename, so the bogon will be chosen
4214     # first if we set CC to just the basename; use the full file name.
4215     shift
4216     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4217   fi
4218 fi
4219 fi
4220 fi
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231 fi
4232 if test -z "$CC"; then
4233   if test -n "$ac_tool_prefix"; then
4234   for ac_prog in cl.exe
4235   do
4236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -n "$CC"; then
4244   ac_cv_prog_CC="$CC" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251     for ac_exec_ext in '' $ac_executable_extensions; do
4252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258   done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 CC=$ac_cv_prog_CC
4264 if test -n "$CC"; then
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266 $as_echo "$CC" >&6; }
4267 else
4268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4270 fi
4271
4272
4273     test -n "$CC" && break
4274   done
4275 fi
4276 if test -z "$CC"; then
4277   ac_ct_CC=$CC
4278   for ac_prog in cl.exe
4279 do
4280   # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if test -n "$ac_ct_CC"; then
4288   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295     for ac_exec_ext in '' $ac_executable_extensions; do
4296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297     ac_cv_prog_ac_ct_CC="$ac_prog"
4298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299     break 2
4300   fi
4301 done
4302   done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4308 if test -n "$ac_ct_CC"; then
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4310 $as_echo "$ac_ct_CC" >&6; }
4311 else
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317   test -n "$ac_ct_CC" && break
4318 done
4319
4320   if test "x$ac_ct_CC" = x; then
4321     CC=""
4322   else
4323     case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4328 esac
4329     CC=$ac_ct_CC
4330   fi
4331 fi
4332
4333 fi
4334
4335
4336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338 as_fn_error "no acceptable C compiler found in \$PATH
4339 See \`config.log' for more details." "$LINENO" 5; }
4340
4341 # Provide some information about the compiler.
4342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4343 set X $ac_compile
4344 ac_compiler=$2
4345 for ac_option in --version -v -V -qversion; do
4346   { { ac_try="$ac_compiler $ac_option >&5"
4347 case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352 $as_echo "$ac_try_echo"; } >&5
4353   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4354   ac_status=$?
4355   if test -s conftest.err; then
4356     sed '10a\
4357 ... rest of stderr output deleted ...
4358          10q' conftest.err >conftest.er1
4359     cat conftest.er1 >&5
4360     rm -f conftest.er1 conftest.err
4361   fi
4362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363   test $ac_status = 0; }
4364 done
4365
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 ac_clean_files_save=$ac_clean_files
4378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4379 # Try to create an executable without -o first, disregard a.out.
4380 # It will help us diagnose broken compilers, and finding out an intuition
4381 # of exeext.
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4383 $as_echo_n "checking for C compiler default output file name... " >&6; }
4384 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4385
4386 # The possible output files:
4387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4388
4389 ac_rmfiles=
4390 for ac_file in $ac_files
4391 do
4392   case $ac_file in
4393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4394     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4395   esac
4396 done
4397 rm -f $ac_rmfiles
4398
4399 if { { ac_try="$ac_link_default"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406   (eval "$ac_link_default") 2>&5
4407   ac_status=$?
4408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409   test $ac_status = 0; }; then :
4410   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4412 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4413 # so that the user can short-circuit this test for compilers unknown to
4414 # Autoconf.
4415 for ac_file in $ac_files ''
4416 do
4417   test -f "$ac_file" || continue
4418   case $ac_file in
4419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4420         ;;
4421     [ab].out )
4422         # We found the default executable, but exeext='' is most
4423         # certainly right.
4424         break;;
4425     *.* )
4426         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4427         then :; else
4428            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429         fi
4430         # We set ac_cv_exeext here because the later test for it is not
4431         # safe: cross compilers may not add the suffix if given an `-o'
4432         # argument, so we may need to know it at that point already.
4433         # Even if this section looks crufty: it has the advantage of
4434         # actually working.
4435         break;;
4436     * )
4437         break;;
4438   esac
4439 done
4440 test "$ac_cv_exeext" = no && ac_cv_exeext=
4441
4442 else
4443   ac_file=''
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4446 $as_echo "$ac_file" >&6; }
4447 if test -z "$ac_file"; then :
4448   $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4453 { as_fn_set_status 77
4454 as_fn_error "C compiler cannot create executables
4455 See \`config.log' for more details." "$LINENO" 5; }; }
4456 fi
4457 ac_exeext=$ac_cv_exeext
4458
4459 # Check that the compiler produces executables we can run.  If not, either
4460 # the compiler is broken, or we cross compile.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4462 $as_echo_n "checking whether the C compiler works... " >&6; }
4463 # If not cross compiling, check that we can run a simple program.
4464 if test "$cross_compiling" != yes; then
4465   if { ac_try='./$ac_file'
4466   { { case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471 $as_echo "$ac_try_echo"; } >&5
4472   (eval "$ac_try") 2>&5
4473   ac_status=$?
4474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475   test $ac_status = 0; }; }; then
4476     cross_compiling=no
4477   else
4478     if test "$cross_compiling" = maybe; then
4479         cross_compiling=yes
4480     else
4481         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error "cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." "$LINENO" 5; }
4486     fi
4487   fi
4488 fi
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4490 $as_echo "yes" >&6; }
4491
4492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4493 ac_clean_files=$ac_clean_files_save
4494 # Check that the compiler produces executables we can run.  If not, either
4495 # the compiler is broken, or we cross compile.
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4497 $as_echo_n "checking whether we are cross compiling... " >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4499 $as_echo "$cross_compiling" >&6; }
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502 $as_echo_n "checking for suffix of executables... " >&6; }
4503 if { { ac_try="$ac_link"
4504 case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510   (eval "$ac_link") 2>&5
4511   ac_status=$?
4512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513   test $ac_status = 0; }; then :
4514   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4515 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4516 # work properly (i.e., refer to `conftest.exe'), while it won't with
4517 # `rm'.
4518 for ac_file in conftest.exe conftest conftest.*; do
4519   test -f "$ac_file" || continue
4520   case $ac_file in
4521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523           break;;
4524     * ) break;;
4525   esac
4526 done
4527 else
4528   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error "cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details." "$LINENO" 5; }
4532 fi
4533 rm -f conftest$ac_cv_exeext
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4535 $as_echo "$ac_cv_exeext" >&6; }
4536
4537 rm -f conftest.$ac_ext
4538 EXEEXT=$ac_cv_exeext
4539 ac_exeext=$EXEEXT
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4541 $as_echo_n "checking for suffix of object files... " >&6; }
4542 if test "${ac_cv_objext+set}" = set; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h.  */
4547
4548 int
4549 main ()
4550 {
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.o conftest.obj
4557 if { { ac_try="$ac_compile"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564   (eval "$ac_compile") 2>&5
4565   ac_status=$?
4566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567   test $ac_status = 0; }; then :
4568   for ac_file in conftest.o conftest.obj conftest.*; do
4569   test -f "$ac_file" || continue;
4570   case $ac_file in
4571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4572     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4573        break;;
4574   esac
4575 done
4576 else
4577   $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error "cannot compute suffix of object files: cannot compile
4583 See \`config.log' for more details." "$LINENO" 5; }
4584 fi
4585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4588 $as_echo "$ac_cv_objext" >&6; }
4589 OBJEXT=$ac_cv_objext
4590 ac_objext=$OBJEXT
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602 #ifndef __GNUC__
4603        choke me
4604 #endif
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611   ac_compiler_gnu=yes
4612 else
4613   ac_compiler_gnu=no
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4622   GCC=yes
4623 else
4624   GCC=
4625 fi
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if test "${ac_cv_prog_cc_g+set}" = set; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   ac_save_c_werror_flag=$ac_c_werror_flag
4634    ac_c_werror_flag=yes
4635    ac_cv_prog_cc_g=no
4636    CFLAGS="-g"
4637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639
4640 int
4641 main ()
4642 {
4643
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4649   ac_cv_prog_cc_g=yes
4650 else
4651   CFLAGS=""
4652       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654
4655 int
4656 main ()
4657 {
4658
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664
4665 else
4666   ac_c_werror_flag=$ac_save_c_werror_flag
4667          CFLAGS="-g"
4668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h.  */
4670
4671 int
4672 main ()
4673 {
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680   ac_cv_prog_cc_g=yes
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687    ac_c_werror_flag=$ac_save_c_werror_flag
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690 $as_echo "$ac_cv_prog_cc_g" >&6; }
4691 if test "$ac_test_CFLAGS" = set; then
4692   CFLAGS=$ac_save_CFLAGS
4693 elif test $ac_cv_prog_cc_g = yes; then
4694   if test "$GCC" = yes; then
4695     CFLAGS="-g -O2"
4696   else
4697     CFLAGS="-g"
4698   fi
4699 else
4700   if test "$GCC" = yes; then
4701     CFLAGS="-O2"
4702   else
4703     CFLAGS=
4704   fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   ac_cv_prog_cc_c89=no
4712 ac_save_CC=$CC
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h.  */
4715 #include <stdarg.h>
4716 #include <stdio.h>
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4723      char **p;
4724      int i;
4725 {
4726   return p[i];
4727 }
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4729 {
4730   char *s;
4731   va_list v;
4732   va_start (v,p);
4733   s = g (p, va_arg (v,int));
4734   va_end (v);
4735   return s;
4736 }
4737
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4739    function prototypes and stuff, but not '\xHH' hex character constants.
4740    These don't provoke an error unfortunately, instead are silently treated
4741    as 'x'.  The following induces an error, until -std is added to get
4742    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4743    array size at least.  It's necessary to write '\x00'==0 to get something
4744    that's true only with -std.  */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748    inside strings and character constants.  */
4749 #define FOO(x) 'x'
4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
4752 int test (int i, double x);
4753 struct s1 {int (*f) (int a);};
4754 struct s2 {int (*f) (double a);};
4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 int argc;
4757 char **argv;
4758 int
4759 main ()
4760 {
4761 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4768 do
4769   CC="$ac_save_CC $ac_arg"
4770   if ac_fn_c_try_compile "$LINENO"; then :
4771   ac_cv_prog_cc_c89=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext
4774   test "x$ac_cv_prog_cc_c89" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC
4778
4779 fi
4780 # AC_CACHE_VAL
4781 case "x$ac_cv_prog_cc_c89" in
4782   x)
4783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784 $as_echo "none needed" >&6; } ;;
4785   xno)
4786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 $as_echo "unsupported" >&6; } ;;
4788   *)
4789     CC="$CC $ac_cv_prog_cc_c89"
4790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4792 esac
4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
4794
4795 fi
4796
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803 ac_ext=cpp
4804 ac_cpp='$CXXCPP $CPPFLAGS'
4805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test -z "$CXX"; then
4809   if test -n "$CCC"; then
4810     CXX=$CCC
4811   else
4812     if test -n "$ac_tool_prefix"; then
4813   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814   do
4815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_CXX+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if test -n "$CXX"; then
4823   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837   done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 CXX=$ac_cv_prog_CXX
4843 if test -n "$CXX"; then
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845 $as_echo "$CXX" >&6; }
4846 else
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852     test -n "$CXX" && break
4853   done
4854 fi
4855 if test -z "$CXX"; then
4856   ac_ct_CXX=$CXX
4857   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4858 do
4859   # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   if test -n "$ac_ct_CXX"; then
4867   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874     for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     ac_cv_prog_ac_ct_CXX="$ac_prog"
4877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878     break 2
4879   fi
4880 done
4881   done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887 if test -n "$ac_ct_CXX"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889 $as_echo "$ac_ct_CXX" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896   test -n "$ac_ct_CXX" && break
4897 done
4898
4899   if test "x$ac_ct_CXX" = x; then
4900     CXX="g++"
4901   else
4902     case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908     CXX=$ac_ct_CXX
4909   fi
4910 fi
4911
4912   fi
4913 fi
4914 # Provide some information about the compiler.
4915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4916 set X $ac_compile
4917 ac_compiler=$2
4918 for ac_option in --version -v -V -qversion; do
4919   { { ac_try="$ac_compiler $ac_option >&5"
4920 case "(($ac_try" in
4921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922   *) ac_try_echo=$ac_try;;
4923 esac
4924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925 $as_echo "$ac_try_echo"; } >&5
4926   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4927   ac_status=$?
4928   if test -s conftest.err; then
4929     sed '10a\
4930 ... rest of stderr output deleted ...
4931          10q' conftest.err >conftest.er1
4932     cat conftest.er1 >&5
4933     rm -f conftest.er1 conftest.err
4934   fi
4935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936   test $ac_status = 0; }
4937 done
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4942   $as_echo_n "(cached) " >&6
4943 else
4944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h.  */
4946
4947 int
4948 main ()
4949 {
4950 #ifndef __GNUC__
4951        choke me
4952 #endif
4953
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_cxx_try_compile "$LINENO"; then :
4959   ac_compiler_gnu=yes
4960 else
4961   ac_compiler_gnu=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4969 if test $ac_compiler_gnu = yes; then
4970   GXX=yes
4971 else
4972   GXX=
4973 fi
4974 ac_test_CXXFLAGS=${CXXFLAGS+set}
4975 ac_save_CXXFLAGS=$CXXFLAGS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982    ac_cxx_werror_flag=yes
4983    ac_cv_prog_cxx_g=no
4984    CXXFLAGS="-g"
4985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h.  */
4987
4988 int
4989 main ()
4990 {
4991
4992   ;
4993   return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_cxx_try_compile "$LINENO"; then :
4997   ac_cv_prog_cxx_g=yes
4998 else
4999   CXXFLAGS=""
5000       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h.  */
5002
5003 int
5004 main ()
5005 {
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5012
5013 else
5014   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015          CXXFLAGS="-g"
5016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018
5019 int
5020 main ()
5021 {
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028   ac_cv_prog_cxx_g=yes
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5039 if test "$ac_test_CXXFLAGS" = set; then
5040   CXXFLAGS=$ac_save_CXXFLAGS
5041 elif test $ac_cv_prog_cxx_g = yes; then
5042   if test "$GXX" = yes; then
5043     CXXFLAGS="-g -O2"
5044   else
5045     CXXFLAGS="-g"
5046   fi
5047 else
5048   if test "$GXX" = yes; then
5049     CXXFLAGS="-O2"
5050   else
5051     CXXFLAGS=
5052   fi
5053 fi
5054 ac_ext=c
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060
5061 # We must set the default linker to the linker used by gcc for the correct
5062 # operation of libtool.  If LD is not defined and we are using gcc, try to
5063 # set the LD default to the ld used by gcc.
5064 if test -z "$LD"; then
5065   if test "$GCC" = yes; then
5066     case $build in
5067     *-*-mingw*)
5068       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5069     *)
5070       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5071     esac
5072     case $gcc_prog_ld in
5073     # Accept absolute paths.
5074     [\\/]* | [A-Za-z]:[\\/]*)
5075       LD="$gcc_prog_ld" ;;
5076     esac
5077   fi
5078 fi
5079
5080 # Check whether -static-libstdc++ -static-libgcc is supported.
5081 have_static_libs=no
5082 if test "$GCC" = yes; then
5083   saved_LDFLAGS="$LDFLAGS"
5084
5085   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5087 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5088   ac_ext=cpp
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h.  */
5097
5098 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5099 #error -static-libstdc++ not implemented
5100 #endif
5101 int main() {}
5102 _ACEOF
5103 if ac_fn_cxx_try_link "$LINENO"; then :
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105 $as_echo "yes" >&6; }; have_static_libs=yes
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111     conftest$ac_exeext conftest.$ac_ext
5112   ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117
5118
5119   LDFLAGS="$saved_LDFLAGS"
5120 fi
5121
5122
5123
5124
5125 if test -n "$ac_tool_prefix"; then
5126   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5127 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$GNATBIND"; then
5134   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 GNATBIND=$ac_cv_prog_GNATBIND
5154 if test -n "$GNATBIND"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5156 $as_echo "$GNATBIND" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163 fi
5164 if test -z "$ac_cv_prog_GNATBIND"; then
5165   ac_ct_GNATBIND=$GNATBIND
5166   # Extract the first word of "gnatbind", so it can be a program name with args.
5167 set dummy gnatbind; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   if test -n "$ac_ct_GNATBIND"; then
5174   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185     break 2
5186   fi
5187 done
5188   done
5189 IFS=$as_save_IFS
5190
5191 fi
5192 fi
5193 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5194 if test -n "$ac_ct_GNATBIND"; then
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5196 $as_echo "$ac_ct_GNATBIND" >&6; }
5197 else
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5200 fi
5201
5202   if test "x$ac_ct_GNATBIND" = x; then
5203     GNATBIND="no"
5204   else
5205     case $cross_compiling:$ac_tool_warned in
5206 yes:)
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211     GNATBIND=$ac_ct_GNATBIND
5212   fi
5213 else
5214   GNATBIND="$ac_cv_prog_GNATBIND"
5215 fi
5216
5217 if test -n "$ac_tool_prefix"; then
5218   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   if test -n "$GNATMAKE"; then
5226   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231   IFS=$as_save_IFS
5232   test -z "$as_dir" && as_dir=.
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 GNATMAKE=$ac_cv_prog_GNATMAKE
5246 if test -n "$GNATMAKE"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5248 $as_echo "$GNATMAKE" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 fi
5256 if test -z "$ac_cv_prog_GNATMAKE"; then
5257   ac_ct_GNATMAKE=$GNATMAKE
5258   # Extract the first word of "gnatmake", so it can be a program name with args.
5259 set dummy gnatmake; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   if test -n "$ac_ct_GNATMAKE"; then
5266   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5286 if test -n "$ac_ct_GNATMAKE"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5288 $as_echo "$ac_ct_GNATMAKE" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294   if test "x$ac_ct_GNATMAKE" = x; then
5295     GNATMAKE="no"
5296   else
5297     case $cross_compiling:$ac_tool_warned in
5298 yes:)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303     GNATMAKE=$ac_ct_GNATMAKE
5304   fi
5305 else
5306   GNATMAKE="$ac_cv_prog_GNATMAKE"
5307 fi
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5310 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5311 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   cat >conftest.adb <<EOF
5315 procedure conftest is begin null; end conftest;
5316 EOF
5317 acx_cv_cc_gcc_supports_ada=no
5318 # There is a bug in old released versions of GCC which causes the
5319 # driver to exit successfully when the appropriate language module
5320 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5321 # Therefore we must check for the error message as well as an
5322 # unsuccessful exit.
5323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324 # given a .adb file, but produce no object file.  So we must check
5325 # if an object file was really produced to guard against this.
5326 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5327 if test x"$errors" = x && test -f conftest.$ac_objext; then
5328   acx_cv_cc_gcc_supports_ada=yes
5329 fi
5330 rm -f conftest.*
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5334
5335 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5336   have_gnat=yes
5337 else
5338   have_gnat=no
5339 fi
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5342 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5343 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346    echo abfoo >t1
5347   echo cdfoo >t2
5348   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5349   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5350     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5351       :
5352     else
5353       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5354     fi
5355   fi
5356   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5357     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5358       :
5359     else
5360       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5361     fi
5362   fi
5363   rm t1 t2
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5367 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5368 do_compare="$gcc_cv_prog_cmp_skip"
5369
5370
5371
5372 # Check whether --enable-bootstrap was given.
5373 if test "${enable_bootstrap+set}" = set; then :
5374   enableval=$enable_bootstrap;
5375 else
5376   enable_bootstrap=default
5377 fi
5378
5379
5380 # Issue errors and warnings for invalid/strange bootstrap combinations.
5381 if test -r $srcdir/gcc/configure; then
5382   have_compiler=yes
5383 else
5384   have_compiler=no
5385 fi
5386
5387 case "$have_compiler:$host:$target:$enable_bootstrap" in
5388   *:*:*:no) ;;
5389
5390   # Default behavior.  Enable bootstrap if we have a compiler
5391   # and we are in a native configuration.
5392   yes:$build:$build:default)
5393     enable_bootstrap=yes ;;
5394
5395   *:*:*:default)
5396     enable_bootstrap=no ;;
5397
5398   # We have a compiler and we are in a native configuration, bootstrap is ok
5399   yes:$build:$build:yes)
5400     ;;
5401
5402   # Other configurations, but we have a compiler.  Assume the user knows
5403   # what he's doing.
5404   yes:*:*:yes)
5405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5406 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5407     ;;
5408
5409   # No compiler: if they passed --enable-bootstrap explicitly, fail
5410   no:*:*:yes)
5411     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5412
5413   # Fail if wrong command line
5414   *)
5415     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5416     ;;
5417 esac
5418
5419 # Used for setting $lt_cv_objdir
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5421 $as_echo_n "checking for objdir... " >&6; }
5422 if test "${lt_cv_objdir+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   rm -f .libs 2>/dev/null
5426 mkdir .libs 2>/dev/null
5427 if test -d .libs; then
5428   lt_cv_objdir=.libs
5429 else
5430   # MS-DOS does not allow filenames that begin with a dot.
5431   lt_cv_objdir=_libs
5432 fi
5433 rmdir .libs 2>/dev/null
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5436 $as_echo "$lt_cv_objdir" >&6; }
5437 objdir=$lt_cv_objdir
5438
5439
5440
5441
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define LT_OBJDIR "$lt_cv_objdir/"
5445 _ACEOF
5446
5447
5448
5449 # Check for GMP, MPFR and MPC
5450 gmplibs="-lmpc -lmpfr -lgmp"
5451 gmpinc=
5452 have_gmp=no
5453
5454 # Specify a location for mpc
5455 # check for this first so it ends up on the link line before mpfr.
5456
5457 # Check whether --with-mpc was given.
5458 if test "${with_mpc+set}" = set; then :
5459   withval=$with_mpc;
5460 fi
5461
5462
5463 # Check whether --with-mpc-include was given.
5464 if test "${with_mpc_include+set}" = set; then :
5465   withval=$with_mpc_include;
5466 fi
5467
5468
5469 # Check whether --with-mpc-lib was given.
5470 if test "${with_mpc_lib+set}" = set; then :
5471   withval=$with_mpc_lib;
5472 fi
5473
5474
5475 if test "x$with_mpc" != x; then
5476   gmplibs="-L$with_mpc/lib $gmplibs"
5477   gmpinc="-I$with_mpc/include $gmpinc"
5478 fi
5479 if test "x$with_mpc_include" != x; then
5480   gmpinc="-I$with_mpc_include $gmpinc"
5481 fi
5482 if test "x$with_mpc_lib" != x; then
5483   gmplibs="-L$with_mpc_lib $gmplibs"
5484 fi
5485 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5486   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5487   gmpinc='-I$$s/mpc/src '"$gmpinc"
5488   # Do not test the mpc version.  Assume that it is sufficient, since
5489   # it is in the source tree, and the library has not been built yet
5490   # but it would be included on the link line in the version check below
5491   # hence making the test fail.
5492   have_gmp=yes
5493 fi
5494
5495 # Specify a location for mpfr
5496 # check for this first so it ends up on the link line before gmp.
5497
5498 # Check whether --with-mpfr-dir was given.
5499 if test "${with_mpfr_dir+set}" = set; then :
5500   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5501 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5502 fi
5503
5504
5505
5506 # Check whether --with-mpfr was given.
5507 if test "${with_mpfr+set}" = set; then :
5508   withval=$with_mpfr;
5509 fi
5510
5511
5512 # Check whether --with-mpfr-include was given.
5513 if test "${with_mpfr_include+set}" = set; then :
5514   withval=$with_mpfr_include;
5515 fi
5516
5517
5518 # Check whether --with-mpfr-lib was given.
5519 if test "${with_mpfr_lib+set}" = set; then :
5520   withval=$with_mpfr_lib;
5521 fi
5522
5523
5524 if test "x$with_mpfr" != x; then
5525   gmplibs="-L$with_mpfr/lib $gmplibs"
5526   gmpinc="-I$with_mpfr/include $gmpinc"
5527 fi
5528 if test "x$with_mpfr_include" != x; then
5529   gmpinc="-I$with_mpfr_include $gmpinc"
5530 fi
5531 if test "x$with_mpfr_lib" != x; then
5532   gmplibs="-L$with_mpfr_lib $gmplibs"
5533 fi
5534 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5535   # MPFR v3.1.0 moved the sources into a src sub-directory.
5536   if test -d ${srcdir}/mpfr/src; then
5537     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5538     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5539     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5540   else
5541     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5542     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5543     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5544   fi
5545   # Do not test the mpfr version.  Assume that it is sufficient, since
5546   # it is in the source tree, and the library has not been built yet
5547   # but it would be included on the link line in the version check below
5548   # hence making the test fail.
5549   have_gmp=yes
5550 fi
5551
5552 # Specify a location for gmp
5553
5554 # Check whether --with-gmp-dir was given.
5555 if test "${with_gmp_dir+set}" = set; then :
5556   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5557 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5558 fi
5559
5560
5561
5562 # Check whether --with-gmp was given.
5563 if test "${with_gmp+set}" = set; then :
5564   withval=$with_gmp;
5565 fi
5566
5567
5568 # Check whether --with-gmp-include was given.
5569 if test "${with_gmp_include+set}" = set; then :
5570   withval=$with_gmp_include;
5571 fi
5572
5573
5574 # Check whether --with-gmp-lib was given.
5575 if test "${with_gmp_lib+set}" = set; then :
5576   withval=$with_gmp_lib;
5577 fi
5578
5579
5580
5581 if test "x$with_gmp" != x; then
5582   gmplibs="-L$with_gmp/lib $gmplibs"
5583   gmpinc="-I$with_gmp/include $gmpinc"
5584 fi
5585 if test "x$with_gmp_include" != x; then
5586   gmpinc="-I$with_gmp_include $gmpinc"
5587 fi
5588 if test "x$with_gmp_lib" != x; then
5589   gmplibs="-L$with_gmp_lib $gmplibs"
5590 fi
5591 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5592   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5593   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5594   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5595   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5596   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5597   # Do not test the gmp version.  Assume that it is sufficient, since
5598   # it is in the source tree, and the library has not been built yet
5599   # but it would be included on the link line in the version check below
5600   # hence making the test fail.
5601   have_gmp=yes
5602 fi
5603
5604 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5605   have_gmp=yes
5606   saved_CFLAGS="$CFLAGS"
5607   CFLAGS="$CFLAGS $gmpinc"
5608   # Check for the recommended and required versions of GMP.
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5610 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5611
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h.  */
5614 #include "gmp.h"
5615 int
5616 main ()
5617 {
5618
5619   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5620   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5621   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5622   choke me
5623   #endif
5624
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h.  */
5632 #include <gmp.h>
5633 int
5634 main ()
5635 {
5636
5637   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5638   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5639   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5640   choke me
5641   #endif
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650 else
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5652 $as_echo "buggy but acceptable" >&6; }
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 else
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }; have_gmp=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660
5661   # If we have GMP, check the MPFR version.
5662   if test x"$have_gmp" = xyes; then
5663     # Check for the recommended and required versions of MPFR.
5664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5665 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668 #include <gmp.h>
5669     #include <mpfr.h>
5670 int
5671 main ()
5672 {
5673
5674     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5675     choke me
5676     #endif
5677
5678   ;
5679   return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h.  */
5685 #include <gmp.h>
5686     #include <mpfr.h>
5687 int
5688 main ()
5689 {
5690
5691     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5692     choke me
5693     #endif
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5704 $as_echo "buggy but acceptable" >&6; }
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }; have_gmp=no
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712   fi
5713
5714   # Check for the MPC header version.
5715   if test x"$have_gmp" = xyes ; then
5716     # Check for the recommended and required versions of MPC.
5717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5718 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h.  */
5721 #include <mpc.h>
5722 int
5723 main ()
5724 {
5725
5726     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5727     choke me
5728     #endif
5729
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h.  */
5737 #include <mpc.h>
5738 int
5739 main ()
5740 {
5741
5742     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5743     choke me
5744     #endif
5745
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"; then :
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752 $as_echo "yes" >&6; }
5753 else
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5755 $as_echo "buggy but acceptable" >&6; }
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }; have_gmp=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763   fi
5764
5765   # Now check the MPFR library.
5766   if test x"$have_gmp" = xyes; then
5767     saved_LIBS="$LIBS"
5768     LIBS="$LIBS $gmplibs"
5769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5770 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773 #include <mpc.h>
5774 int
5775 main ()
5776 {
5777
5778     mpfr_t n;
5779     mpfr_t x;
5780     mpc_t c;
5781     int t;
5782     mpfr_init (n);
5783     mpfr_init (x);
5784     mpfr_atan2 (n, n, x, GMP_RNDN);
5785     mpfr_erfc (n, x, GMP_RNDN);
5786     mpfr_subnormalize (x, t, GMP_RNDN);
5787     mpfr_clear(n);
5788     mpfr_clear(x);
5789     mpc_init2 (c, 53);
5790     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5791     mpc_cosh (c, c, MPC_RNDNN);
5792     mpc_pow (c, c, c, MPC_RNDNN);
5793     mpc_acosh (c, c, MPC_RNDNN);
5794     mpc_clear (c);
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_link "$LINENO"; then :
5801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5803 else
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }; have_gmp=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext \
5808     conftest$ac_exeext conftest.$ac_ext
5809     LIBS="$saved_LIBS"
5810   fi
5811
5812   CFLAGS="$saved_CFLAGS"
5813
5814 # The library versions listed in the error message below should match
5815 # the HARD-minimums enforced above.
5816   if test x$have_gmp != xyes; then
5817     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5818 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5819 their locations.  Source code for these libraries can be found at
5820 their respective hosting sites as well as at
5821 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5822 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5823 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5824 make sure that you have installed both the libraries and the header
5825 files.  They may be located in separate packages." "$LINENO" 5
5826   fi
5827 fi
5828
5829 # Flags needed for both GMP, MPFR and/or MPC.
5830
5831
5832
5833
5834
5835
5836
5837 # Allow host libstdc++ to be specified for static linking with PPL.
5838
5839 # Check whether --with-host-libstdcxx was given.
5840 if test "${with_host_libstdcxx+set}" = set; then :
5841   withval=$with_host_libstdcxx;
5842 fi
5843
5844
5845 case $with_host_libstdcxx in
5846   no|yes)
5847     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5848     ;;
5849 esac
5850
5851 # Libraries to use for stage1 or when not bootstrapping.
5852
5853 # Check whether --with-stage1-libs was given.
5854 if test "${with_stage1_libs+set}" = set; then :
5855   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5856    stage1_libs=
5857  else
5858    stage1_libs=$withval
5859  fi
5860 else
5861   stage1_libs=$with_host_libstdcxx
5862 fi
5863
5864
5865
5866 # Linker flags to use for stage1 or when not bootstrapping.
5867
5868 # Check whether --with-stage1-ldflags was given.
5869 if test "${with_stage1_ldflags+set}" = set; then :
5870   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5871    stage1_ldflags=
5872  else
5873    stage1_ldflags=$withval
5874  fi
5875 else
5876   stage1_ldflags=
5877  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5878  # if supported.  But if the user explicitly specified the libraries to use,
5879  # trust that they are doing what they want.
5880  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5881    stage1_ldflags="-static-libstdc++ -static-libgcc"
5882  fi
5883 fi
5884
5885
5886
5887 # Libraries to use for stage2 and later builds.  This defaults to the
5888 # argument passed to --with-host-libstdcxx.
5889
5890 # Check whether --with-boot-libs was given.
5891 if test "${with_boot_libs+set}" = set; then :
5892   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5893    poststage1_libs=
5894  else
5895    poststage1_libs=$withval
5896  fi
5897 else
5898   poststage1_libs=$with_host_libstdcxx
5899 fi
5900
5901
5902
5903 # Linker flags to use for stage2 and later builds.
5904
5905 # Check whether --with-boot-ldflags was given.
5906 if test "${with_boot_ldflags+set}" = set; then :
5907   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5908    poststage1_ldflags=
5909  else
5910    poststage1_ldflags=$withval
5911  fi
5912 else
5913   poststage1_ldflags=
5914  # In stages 2 and 3, default to linking libstdc++ and libgcc
5915  # statically.  But if the user explicitly specified the libraries to
5916  # use, trust that they are doing what they want.
5917  if test "$poststage1_libs" = ""; then
5918    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5919  fi
5920 fi
5921
5922
5923
5924 # GCC GRAPHITE dependency ISL.
5925 # Basic setup is inlined here, actual checks are in config/isl.m4
5926
5927
5928 # Check whether --with-isl was given.
5929 if test "${with_isl+set}" = set; then :
5930   withval=$with_isl;
5931 fi
5932
5933
5934 # Treat --without-isl as a request to disable
5935 # GRAPHITE support and skip all following checks.
5936 if test "x$with_isl" != "xno"; then
5937   # Check for ISL
5938
5939
5940 # Check whether --with-isl-include was given.
5941 if test "${with_isl_include+set}" = set; then :
5942   withval=$with_isl_include;
5943 fi
5944
5945
5946 # Check whether --with-isl-lib was given.
5947 if test "${with_isl_lib+set}" = set; then :
5948   withval=$with_isl_lib;
5949 fi
5950
5951
5952   # Check whether --enable-isl-version-check was given.
5953 if test "${enable_isl_version_check+set}" = set; then :
5954   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5955 else
5956   ENABLE_ISL_CHECK=yes
5957 fi
5958
5959
5960   # Initialize isllibs and islinc.
5961   case $with_isl in
5962     no)
5963       isllibs=
5964       islinc=
5965       ;;
5966     "" | yes)
5967       ;;
5968     *)
5969       isllibs="-L$with_isl/lib"
5970       islinc="-I$with_isl/include"
5971       ;;
5972   esac
5973   if test "x${with_isl_include}" != x ; then
5974     islinc="-I$with_isl_include"
5975   fi
5976   if test "x${with_isl_lib}" != x; then
5977     isllibs="-L$with_isl_lib"
5978   fi
5979         if test "x${islinc}" = x && test "x${isllibs}" = x \
5980      && test -d ${srcdir}/isl; then
5981     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5982     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5983     ENABLE_ISL_CHECK=no
5984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5985 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5986   fi
5987
5988   isllibs="${isllibs} -lisl"
5989
5990
5991
5992   if test "${ENABLE_ISL_CHECK}" = yes ; then
5993     _isl_saved_CFLAGS=$CFLAGS
5994     _isl_saved_LDFLAGS=$LDFLAGS
5995     _isl_saved_LIBS=$LIBS
5996
5997     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5998     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5999     LIBS="${_isl_saved_LIBS} -lisl"
6000
6001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
6002 $as_echo_n "checking for compatible ISL... " >&6; }
6003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h.  */
6005 #include <isl/val.h>
6006 int
6007 main ()
6008 {
6009 ;
6010   ;
6011   return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_link "$LINENO"; then :
6015   gcc_cv_isl=yes
6016 else
6017   gcc_cv_isl=no
6018 fi
6019 rm -f core conftest.err conftest.$ac_objext \
6020     conftest$ac_exeext conftest.$ac_ext
6021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6022 $as_echo "$gcc_cv_isl" >&6; }
6023
6024     CFLAGS=$_isl_saved_CFLAGS
6025     LDFLAGS=$_isl_saved_LDFLAGS
6026     LIBS=$_isl_saved_LIBS
6027   fi
6028
6029
6030
6031
6032
6033
6034   if test "x${with_isl}" = xno; then
6035     graphite_requested=no
6036   elif test "x${with_isl}" != x \
6037     || test "x${with_isl_include}" != x \
6038     || test "x${with_isl_lib}" != x ; then
6039     graphite_requested=yes
6040   else
6041     graphite_requested=no
6042   fi
6043
6044
6045
6046   if test "${gcc_cv_isl}" = no ; then
6047     isllibs=
6048     islinc=
6049   fi
6050
6051   if test "${graphite_requested}" = yes \
6052     && test "x${isllibs}" = x \
6053     && test "x${islinc}" = x ; then
6054
6055     as_fn_error "Unable to find a usable ISL.  See config.log for details." "$LINENO" 5
6056   fi
6057
6058
6059 fi
6060
6061 # If the ISL check failed, disable builds of in-tree variant of ISL
6062 if test "x$with_isl" = xno ||
6063    test "x$gcc_cv_isl" = xno; then
6064   noconfigdirs="$noconfigdirs isl"
6065   islinc=
6066 fi
6067
6068
6069
6070
6071 # Check for LTO support.
6072 # Check whether --enable-lto was given.
6073 if test "${enable_lto+set}" = set; then :
6074   enableval=$enable_lto; enable_lto=$enableval
6075 else
6076   enable_lto=yes; default_enable_lto=yes
6077 fi
6078
6079
6080
6081
6082
6083 target_elf=no
6084 case $target in
6085   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6086   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6087   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6088   nvptx-*-none)
6089     target_elf=no
6090     ;;
6091   *)
6092     target_elf=yes
6093     ;;
6094 esac
6095
6096 if test $target_elf = yes; then :
6097   # ELF platforms build the lto-plugin always.
6098   build_lto_plugin=yes
6099
6100 else
6101   if test x"$default_enable_lto" = x"yes" ; then
6102     case $target in
6103       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6104       # On other non-ELF platforms, LTO has yet to be validated.
6105       *) enable_lto=no ;;
6106     esac
6107   else
6108   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6109   # It would also be nice to check the binutils support, but we don't
6110   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6111   # warn during gcc/ subconfigure; unless you're bootstrapping with
6112   # -flto it won't be needed until after installation anyway.
6113     case $target in
6114       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6115       *) if test x"$enable_lto" = x"yes"; then
6116         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6117         fi
6118       ;;
6119     esac
6120   fi
6121   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6122   # Build it unless LTO was explicitly disabled.
6123   case $target in
6124     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6125     *) ;;
6126   esac
6127
6128 fi
6129
6130
6131 # Check whether --enable-linker-plugin-configure-flags was given.
6132 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6133   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6134 else
6135   extra_linker_plugin_configure_flags=
6136 fi
6137
6138
6139 # Check whether --enable-linker-plugin-flags was given.
6140 if test "${enable_linker_plugin_flags+set}" = set; then :
6141   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6142 else
6143   extra_linker_plugin_flags=
6144 fi
6145
6146
6147
6148
6149 # By default, C and C++ are the only stage 1 languages.
6150 stage1_languages=,c,
6151
6152 # Target libraries that we bootstrap.
6153 bootstrap_target_libs=,target-libgcc,
6154
6155 # Figure out what language subdirectories are present.
6156 # Look if the user specified --enable-languages="..."; if not, use
6157 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6158 # go away some day.
6159 # NB:  embedded tabs in this IF block -- do not untabify
6160 if test -d ${srcdir}/gcc; then
6161   if test x"${enable_languages+set}" != xset; then
6162     if test x"${LANGUAGES+set}" = xset; then
6163       enable_languages="${LANGUAGES}"
6164         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6165     else
6166       enable_languages=all
6167     fi
6168   else
6169     if test x"${enable_languages}" = x ||
6170        test x"${enable_languages}" = xyes;
6171        then
6172       echo configure.in: --enable-languages needs at least one language argument 1>&2
6173       exit 1
6174     fi
6175   fi
6176   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6177
6178   # 'f95' is the old name for the 'fortran' language. We issue a warning
6179   # and make the substitution.
6180   case ,${enable_languages}, in
6181     *,f95,*)
6182       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6183       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6184       ;;
6185   esac
6186
6187   # If bootstrapping, C++ must be enabled.
6188   case ",$enable_languages,:$enable_bootstrap" in
6189     *,c++,*:*) ;;
6190     *:yes)
6191       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6192         enable_languages="${enable_languages},c++"
6193       else
6194         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6195       fi
6196       ;;
6197   esac
6198
6199   # First scan to see if an enabled language requires some other language.
6200   # We assume that a given config-lang.in will list all the language
6201   # front ends it requires, even if some are required indirectly.
6202   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6203     case ${lang_frag} in
6204       ..) ;;
6205       # The odd quoting in the next line works around
6206       # an apparent bug in bash 1.12 on linux.
6207       ${srcdir}/gcc/[*]/config-lang.in) ;;
6208       *)
6209         # From the config-lang.in, get $language, $lang_requires, and
6210         # $lang_requires_boot_languages.
6211         language=
6212         lang_requires=
6213         lang_requires_boot_languages=
6214         . ${lang_frag}
6215         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6216           case ,${enable_languages}, in
6217             *,$other,*) ;;
6218             *,all,*) ;;
6219             *,$language,*)
6220               echo " \`$other' language required by \`$language'; enabling" 1>&2
6221               enable_languages="${enable_languages},${other}"
6222               ;;
6223           esac
6224         done
6225         for other in ${lang_requires_boot_languages} ; do
6226           if test "$other" != "c"; then
6227             case ,${enable_stage1_languages}, in
6228               *,$other,*) ;;
6229               *,all,*) ;;
6230               *)
6231                 case ,${enable_languages}, in
6232                   *,$language,*)
6233                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6234                     enable_stage1_languages="$enable_stage1_languages,${other}"
6235                     ;;
6236                 esac
6237                 ;;
6238             esac
6239           fi
6240         done
6241         ;;
6242     esac
6243   done
6244
6245   new_enable_languages=,c,
6246
6247   # If LTO is enabled, add the LTO front end.
6248   if test "$enable_lto" = "yes" ; then
6249     case ,${enable_languages}, in
6250       *,lto,*) ;;
6251       *) enable_languages="${enable_languages},lto" ;;
6252     esac
6253     if test "${build_lto_plugin}" = "yes" ; then
6254       configdirs="$configdirs lto-plugin"
6255     fi
6256   fi
6257
6258   # If we're building an offloading compiler, add the LTO front end.
6259   if test x"$enable_as_accelerator_for" != x ; then
6260     case ,${enable_languages}, in
6261       *,lto,*) ;;
6262       *) enable_languages="${enable_languages},lto" ;;
6263     esac
6264   fi
6265
6266   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6267   potential_languages=,c,
6268
6269   enabled_target_libs=
6270   disabled_target_libs=
6271
6272   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6273     case ${lang_frag} in
6274       ..) ;;
6275       # The odd quoting in the next line works around
6276       # an apparent bug in bash 1.12 on linux.
6277       ${srcdir}/gcc/[*]/config-lang.in) ;;
6278       *)
6279         # From the config-lang.in, get $language, $target_libs,
6280         # $lang_dirs, $boot_language, and $build_by_default
6281         language=
6282         target_libs=
6283         lang_dirs=
6284         subdir_requires=
6285         boot_language=no
6286         build_by_default=yes
6287         . ${lang_frag}
6288         if test x${language} = x; then
6289           echo "${lang_frag} doesn't set \$language." 1>&2
6290           exit 1
6291         fi
6292
6293         if test "$language" = "c++"; then
6294           boot_language=yes
6295         fi
6296
6297         add_this_lang=no
6298         case ,${enable_languages}, in
6299           *,${language},*)
6300             # Language was explicitly selected; include it
6301             # unless it is C, which is enabled by default.
6302             if test "$language" != "c"; then
6303               add_this_lang=yes
6304             fi
6305             ;;
6306           *,all,*)
6307             # 'all' was selected, select it if it is a default language
6308             if test "$language" != "c"; then
6309               add_this_lang=${build_by_default}
6310             fi
6311             ;;
6312         esac
6313
6314         # Disable languages that need other directories if these aren't available.
6315         for i in $subdir_requires; do
6316           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6317           case ,${enable_languages}, in
6318             *,${language},*)
6319               # Specifically requested language; tell them.
6320               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6321               ;;
6322             *)
6323               # Silently disable.
6324               add_this_lang=unsupported
6325               ;;
6326           esac
6327         done
6328
6329         # Disable Ada if no preexisting GNAT is available.
6330         case ,${enable_languages},:${language}:${have_gnat} in
6331           *,${language},*:ada:no)
6332             # Specifically requested language; tell them.
6333             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6334             ;;
6335           *:ada:no)
6336             # Silently disable.
6337             add_this_lang=unsupported
6338             ;;
6339         esac
6340
6341         # Disable a language that is unsupported by the target.
6342         case " $unsupported_languages " in
6343           *" $language "*)
6344             add_this_lang=unsupported
6345             ;;
6346         esac
6347
6348         case $add_this_lang in
6349           unsupported)
6350             # Remove language-dependent dirs.
6351             disabled_target_libs="$disabled_target_libs $target_libs"
6352             noconfigdirs="$noconfigdirs $lang_dirs"
6353             ;;
6354           no)
6355             # Remove language-dependent dirs; still show language as supported.
6356             disabled_target_libs="$disabled_target_libs $target_libs"
6357             noconfigdirs="$noconfigdirs $lang_dirs"
6358             potential_languages="${potential_languages}${language},"
6359             ;;
6360           yes)
6361             new_enable_languages="${new_enable_languages}${language},"
6362             potential_languages="${potential_languages}${language},"
6363             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6364             enabled_target_libs="$enabled_target_libs $target_libs"
6365             case "${boot_language}:,$enable_stage1_languages," in
6366               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6367                 # Add to (comma-separated) list of stage 1 languages.
6368                 case ",$stage1_languages," in
6369                   *,$language,* | ,yes, | ,all,) ;;
6370                   *) stage1_languages="${stage1_languages}${language}," ;;
6371                 esac
6372                 # We need to bootstrap any supporting libraries.
6373                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6374                 ;;
6375             esac
6376             ;;
6377         esac
6378         ;;
6379     esac
6380   done
6381
6382   # Add target libraries which are only needed for disabled languages
6383   # to noconfigdirs.
6384   if test -n "$disabled_target_libs"; then
6385     for dir in $disabled_target_libs; do
6386       case " $enabled_target_libs " in
6387       *" ${dir} "*) ;;
6388       *) noconfigdirs="$noconfigdirs $dir" ;;
6389       esac
6390     done
6391   fi
6392
6393   # Check whether --enable-stage1-languages was given.
6394 if test "${enable_stage1_languages+set}" = set; then :
6395   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6396     ,no,|,,)
6397       # Set it to something that will have no effect in the loop below
6398       enable_stage1_languages=c ;;
6399     ,yes,)
6400       enable_stage1_languages=`echo $new_enable_languages | \
6401         sed -e "s/^,//" -e "s/,$//" ` ;;
6402     *,all,*)
6403       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6404         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6405   esac
6406
6407   # Add "good" languages from enable_stage1_languages to stage1_languages,
6408   # while "bad" languages go in missing_languages.  Leave no duplicates.
6409   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6410     case $potential_languages in
6411       *,$i,*)
6412         case $stage1_languages in
6413           *,$i,*) ;;
6414           *) stage1_languages="$stage1_languages$i," ;;
6415         esac ;;
6416       *)
6417         case $missing_languages in
6418           *,$i,*) ;;
6419           *) missing_languages="$missing_languages$i," ;;
6420         esac ;;
6421      esac
6422   done
6423 fi
6424
6425
6426   # Remove leading/trailing commas that were added for simplicity
6427   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6428   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6429   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6430   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6431
6432   if test "x$missing_languages" != x; then
6433     as_fn_error "
6434 The following requested languages could not be built: ${missing_languages}
6435 Supported languages are: ${potential_languages}" "$LINENO" 5
6436   fi
6437   if test "x$new_enable_languages" != "x$enable_languages"; then
6438     echo The following languages will be built: ${new_enable_languages}
6439     enable_languages="$new_enable_languages"
6440   fi
6441
6442
6443   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6444 fi
6445
6446 # Handle --disable-<component> generically.
6447 for dir in $configdirs $build_configdirs $target_configdirs ; do
6448   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6449   varname=`echo $dirname | sed -e s/+/_/g`
6450   if eval test x\${enable_${varname}} "=" xno ; then
6451     noconfigdirs="$noconfigdirs $dir"
6452   fi
6453 done
6454
6455 # Check for Boehm's garbage collector
6456 # Check whether --enable-objc-gc was given.
6457 if test "${enable_objc_gc+set}" = set; then :
6458   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6459   *,objc,*:*:yes:*target-boehm-gc*)
6460     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6461     ;;
6462 esac
6463 fi
6464
6465
6466 # Make sure we only build Boehm's garbage collector if required.
6467 case ,${enable_languages},:${enable_objc_gc} in
6468   *,objc,*:yes)
6469     # Keep target-boehm-gc if requested for Objective-C.
6470     ;;
6471   *)
6472     # Otherwise remove target-boehm-gc depending on target-libjava.
6473     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6474       noconfigdirs="$noconfigdirs target-boehm-gc"
6475     fi
6476     ;;
6477 esac
6478
6479 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6480 case ,${enable_languages}, in
6481   *,c++,*)
6482     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6483     case "${noconfigdirs}" in
6484       *target-libstdc++-v3*)
6485         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6486         ;;
6487       *) ;;
6488     esac
6489     ;;
6490   *)
6491     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6492     ;;
6493 esac
6494
6495 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6496 # $build_configdirs and $target_configdirs.
6497 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6498
6499 notsupp=""
6500 for dir in . $skipdirs $noconfigdirs ; do
6501   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6502   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6503     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6504     if test -r $srcdir/$dirname/configure ; then
6505       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506         true
6507       else
6508         notsupp="$notsupp $dir"
6509       fi
6510     fi
6511   fi
6512   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6513     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6514     if test -r $srcdir/$dirname/configure ; then
6515       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516         true
6517       else
6518         notsupp="$notsupp $dir"
6519       fi
6520     fi
6521   fi
6522   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6523     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6524     if test -r $srcdir/$dirname/configure ; then
6525       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526         true
6527       else
6528         notsupp="$notsupp $dir"
6529       fi
6530     fi
6531   fi
6532 done
6533
6534 # Quietly strip out all directories which aren't configurable in this tree.
6535 # This relies on all configurable subdirectories being autoconfiscated, which
6536 # is now the case.
6537 build_configdirs_all="$build_configdirs"
6538 build_configdirs=
6539 for i in ${build_configdirs_all} ; do
6540   j=`echo $i | sed -e s/build-//g`
6541   if test -f ${srcdir}/$j/configure ; then
6542     build_configdirs="${build_configdirs} $i"
6543   fi
6544 done
6545
6546 configdirs_all="$configdirs"
6547 configdirs=
6548 for i in ${configdirs_all} ; do
6549   if test -f ${srcdir}/$i/configure ; then
6550     configdirs="${configdirs} $i"
6551   fi
6552 done
6553
6554 target_configdirs_all="$target_configdirs"
6555 target_configdirs=
6556 for i in ${target_configdirs_all} ; do
6557   j=`echo $i | sed -e s/target-//g`
6558   if test -f ${srcdir}/$j/configure ; then
6559     target_configdirs="${target_configdirs} $i"
6560   fi
6561 done
6562
6563 # Exclude target-zlib if target-libjava isn't built.
6564 case ${target_configdirs} in
6565 *target-libjava*)
6566   ;;
6567 *)
6568   target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6569   ;;
6570 esac
6571
6572 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6573 # so we have to add it after the preceding checks.
6574 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6575 then
6576   case " $configdirs " in
6577     *" libiberty "*)
6578       # If we can build libiberty, we can also build libiberty-linker-plugin.
6579       configdirs="$configdirs libiberty-linker-plugin"
6580       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6581         --with-libiberty=../libiberty-linker-plugin";;
6582     *)
6583       as_fn_error "libiberty missing" "$LINENO" 5;;
6584   esac
6585 fi
6586
6587 # Sometimes we have special requirements for the host libiberty.
6588 extra_host_libiberty_configure_flags=
6589 extra_host_zlib_configure_flags=
6590 case " $configdirs " in
6591   *" lto-plugin "* | *" libcc1 "*)
6592     # When these are to be built as shared libraries, the same applies to
6593     # libiberty.
6594     extra_host_libiberty_configure_flags=--enable-shared
6595     ;;
6596   *" bfd "*)
6597     # When bfd is to be built as a shared library, the same applies to
6598     # zlib.
6599     if test "$enable_shared" = "yes"; then
6600       extra_host_zlib_configure_flags=--enable-host-shared
6601     fi
6602     ;;
6603 esac
6604
6605
6606
6607 # Produce a warning message for the subdirs we can't configure.
6608 # This isn't especially interesting in the Cygnus tree, but in the individual
6609 # FSF releases, it's important to let people know when their machine isn't
6610 # supported by the one or two programs in a package.
6611
6612 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6613   # If $appdirs is non-empty, at least one of those directories must still
6614   # be configured, or we error out.  (E.g., if the gas release supports a
6615   # specified target in some subdirs but not the gas subdir, we shouldn't
6616   # pretend that all is well.)
6617   if test -n "$appdirs" ; then
6618     for dir in $appdirs ; do
6619       if test -r $dir/Makefile.in ; then
6620         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6621           appdirs=""
6622           break
6623         fi
6624         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6625           appdirs=""
6626           break
6627         fi
6628       fi
6629     done
6630     if test -n "$appdirs" ; then
6631       echo "*** This configuration is not supported by this package." 1>&2
6632       exit 1
6633     fi
6634   fi
6635   # Okay, some application will build, or we don't care to check.  Still
6636   # notify of subdirs not getting built.
6637   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6638   echo "    ${notsupp}" 1>&2
6639   echo "    (Any other directories should still work fine.)" 1>&2
6640 fi
6641
6642 case "$host" in
6643   *msdosdjgpp*)
6644     enable_gdbtk=no ;;
6645 esac
6646
6647 # To find our prefix, in gcc_cv_tool_prefix.
6648
6649 # The user is always right.
6650 if test "${PATH_SEPARATOR+set}" != set; then
6651   echo "#! /bin/sh" >conf$$.sh
6652   echo  "exit 0"   >>conf$$.sh
6653   chmod +x conf$$.sh
6654   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6655     PATH_SEPARATOR=';'
6656   else
6657     PATH_SEPARATOR=:
6658   fi
6659   rm -f conf$$.sh
6660 fi
6661
6662
6663
6664 if test "x$exec_prefix" = xNONE; then
6665         if test "x$prefix" = xNONE; then
6666                 gcc_cv_tool_prefix=$ac_default_prefix
6667         else
6668                 gcc_cv_tool_prefix=$prefix
6669         fi
6670 else
6671         gcc_cv_tool_prefix=$exec_prefix
6672 fi
6673
6674 # If there is no compiler in the tree, use the PATH only.  In any
6675 # case, if there is no compiler in the tree nobody should use
6676 # AS_FOR_TARGET and LD_FOR_TARGET.
6677 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6678     gcc_version=`cat $srcdir/gcc/BASE-VER`
6679     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6680     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6681     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6682     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6683     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6684     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6685 else
6686     gcc_cv_tool_dirs=
6687 fi
6688
6689 if test x$build = x$target && test -n "$md_exec_prefix"; then
6690         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6691 fi
6692
6693
6694
6695 copy_dirs=
6696
6697
6698 # Check whether --with-build-sysroot was given.
6699 if test "${with_build_sysroot+set}" = set; then :
6700   withval=$with_build_sysroot; if test x"$withval" != x ; then
6701      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6702    fi
6703 else
6704   SYSROOT_CFLAGS_FOR_TARGET=
6705 fi
6706
6707
6708
6709
6710 # Check whether --with-debug-prefix-map was given.
6711 if test "${with_debug_prefix_map+set}" = set; then :
6712   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6713      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6714      for debug_map in $withval; do
6715        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6716      done
6717    fi
6718 else
6719   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6720 fi
6721
6722
6723
6724 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6725 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6726 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6727 # We want to ensure that TARGET libraries (which we know are built with
6728 # gcc) are built with "-O2 -g", so include those options when setting
6729 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6730 if test "x$CFLAGS_FOR_TARGET" = x; then
6731   if test "x${is_cross_compiler}" = xyes; then
6732     CFLAGS_FOR_TARGET="-g -O2"
6733   else
6734     CFLAGS_FOR_TARGET=$CFLAGS
6735     case " $CFLAGS " in
6736       *" -O2 "*) ;;
6737       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6738     esac
6739     case " $CFLAGS " in
6740       *" -g "* | *" -g3 "*) ;;
6741       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6742     esac
6743   fi
6744 fi
6745
6746
6747 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6748   if test "x${is_cross_compiler}" = xyes; then
6749     CXXFLAGS_FOR_TARGET="-g -O2"
6750   else
6751     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6752     case " $CXXFLAGS " in
6753       *" -O2 "*) ;;
6754       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6755     esac
6756     case " $CXXFLAGS " in
6757       *" -g "* | *" -g3 "*) ;;
6758       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6759     esac
6760   fi
6761 fi
6762
6763
6764
6765
6766 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6767 # the named directory are copied to $(tooldir)/sys-include.
6768 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6769   if test x${is_cross_compiler} = xno ; then
6770     echo 1>&2 '***' --with-headers is only supported when cross compiling
6771     exit 1
6772   fi
6773   if test x"${with_headers}" != xyes ; then
6774     x=${gcc_cv_tool_prefix}
6775     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6776   fi
6777 fi
6778
6779 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6780 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6781 # are permitted.
6782 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6783   if test x${is_cross_compiler} = xno ; then
6784     echo 1>&2 '***' --with-libs is only supported when cross compiling
6785     exit 1
6786   fi
6787   if test x"${with_libs}" != xyes ; then
6788     # Copy the libraries in reverse order, so that files in the first named
6789     # library override files in subsequent libraries.
6790     x=${gcc_cv_tool_prefix}
6791     for l in ${with_libs}; do
6792       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6793     done
6794   fi
6795 fi
6796
6797 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6798 #
6799 # This is done by determining whether or not the appropriate directory
6800 # is available, and by checking whether or not specific configurations
6801 # have requested that this magic not happen.
6802 #
6803 # The command line options always override the explicit settings in
6804 # configure.in, and the settings in configure.in override this magic.
6805 #
6806 # If the default for a toolchain is to use GNU as and ld, and you don't
6807 # want to do that, then you should use the --without-gnu-as and
6808 # --without-gnu-ld options for the configure script.  Similarly, if
6809 # the default is to use the included zlib and you don't want to do that,
6810 # you should use the --with-system-zlib option for the configure script.
6811
6812 if test x${use_gnu_as} = x &&
6813    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6814   with_gnu_as=yes
6815   extra_host_args="$extra_host_args --with-gnu-as"
6816 fi
6817
6818 if test x${use_gnu_ld} = x &&
6819    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6820   with_gnu_ld=yes
6821   extra_host_args="$extra_host_args --with-gnu-ld"
6822 fi
6823
6824 if test x${use_included_zlib} = x &&
6825    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6826   :
6827 else
6828   with_system_zlib=yes
6829   extra_host_args="$extra_host_args --with-system-zlib"
6830 fi
6831
6832 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6833 # can detect this case.
6834
6835 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6836   with_newlib=yes
6837   extra_host_args="$extra_host_args --with-newlib"
6838 fi
6839
6840 # Handle ${copy_dirs}
6841 set fnord ${copy_dirs}
6842 shift
6843 while test $# != 0 ; do
6844   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6845     :
6846   else
6847     echo Copying $1 to $2
6848
6849     # Use the install script to create the directory and all required
6850     # parent directories.
6851     if test -d $2 ; then
6852       :
6853     else
6854       echo >config.temp
6855       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6856     fi
6857
6858     # Copy the directory, assuming we have tar.
6859     # FIXME: Should we use B in the second tar?  Not all systems support it.
6860     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6861
6862     # It is the responsibility of the user to correctly adjust all
6863     # symlinks.  If somebody can figure out how to handle them correctly
6864     # here, feel free to add the code.
6865
6866     echo $1 > $2/COPIED
6867   fi
6868   shift; shift
6869 done
6870
6871 # Determine a target-dependent exec_prefix that the installed
6872 # gcc will search in.  Keep this list sorted by triplet, with
6873 # the *-*-osname triplets last.
6874 md_exec_prefix=
6875 case "${target}" in
6876   i[34567]86-pc-msdosdjgpp*)
6877     md_exec_prefix=/dev/env/DJDIR/bin
6878     ;;
6879   *-*-hpux* | \
6880   *-*-nto-qnx* | \
6881   *-*-solaris2*)
6882     md_exec_prefix=/usr/ccs/bin
6883     ;;
6884 esac
6885
6886 extra_arflags_for_target=
6887 extra_nmflags_for_target=
6888 extra_ranlibflags_for_target=
6889 target_makefile_frag=/dev/null
6890 case "${target}" in
6891   spu-*-*)
6892     target_makefile_frag="config/mt-spu"
6893     ;;
6894   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6895     target_makefile_frag="config/mt-sde"
6896     ;;
6897   mipsisa*-*-elfoabi*)
6898     target_makefile_frag="config/mt-mips-elfoabi"
6899     ;;
6900   mips*-*-*linux* | mips*-*-gnu*)
6901     target_makefile_frag="config/mt-mips-gnu"
6902     ;;
6903   nios2-*-elf*)
6904     target_makefile_frag="config/mt-nios2-elf"
6905     ;;
6906   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6907     target_makefile_frag="config/mt-gnu"
6908     ;;
6909   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6910     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6911     # commands to handle both 32-bit and 64-bit objects.  These flags are
6912     # harmless if we're using GNU nm or ar.
6913     extra_arflags_for_target=" -X32_64"
6914     extra_nmflags_for_target=" -B -X32_64"
6915     ;;
6916 esac
6917
6918 alphaieee_frag=/dev/null
6919 case $target in
6920   alpha*-*-*)
6921     # This just makes sure to use the -mieee option to build target libs.
6922     # This should probably be set individually by each library.
6923     alphaieee_frag="config/mt-alphaieee"
6924     ;;
6925 esac
6926
6927 # If --enable-target-optspace always use -Os instead of -O2 to build
6928 # the target libraries, similarly if it is not specified, use -Os
6929 # on selected platforms.
6930 ospace_frag=/dev/null
6931 case "${enable_target_optspace}:${target}" in
6932   yes:*)
6933     ospace_frag="config/mt-ospace"
6934     ;;
6935   :d30v-*)
6936     ospace_frag="config/mt-d30v"
6937     ;;
6938   :m32r-* | :d10v-* | :fr30-*)
6939     ospace_frag="config/mt-ospace"
6940     ;;
6941   no:* | :*)
6942     ;;
6943   *)
6944     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6945     ;;
6946 esac
6947
6948 # Some systems (e.g., one of the i386-aix systems the gas testers are
6949 # using) don't handle "\$" correctly, so don't use it here.
6950 tooldir='${exec_prefix}'/${target_noncanonical}
6951 build_tooldir=${tooldir}
6952
6953 # Create a .gdbinit file which runs the one in srcdir
6954 # and tells GDB to look there for source files.
6955
6956 if test -r ${srcdir}/.gdbinit ; then
6957   case ${srcdir} in
6958     .) ;;
6959     *) cat > ./.gdbinit <<EOF
6960 # ${NO_EDIT}
6961 dir ${srcdir}
6962 dir .
6963 source ${srcdir}/.gdbinit
6964 EOF
6965     ;;
6966   esac
6967 fi
6968
6969 # Make sure that the compiler is able to generate an executable.  If it
6970 # can't, we are probably in trouble.  We don't care whether we can run the
6971 # executable--we might be using a cross compiler--we only care whether it
6972 # can be created.  At this point the main configure script has set CC.
6973 we_are_ok=no
6974 echo "int main () { return 0; }" > conftest.c
6975 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6976 if test $? = 0 ; then
6977   if test -s conftest || test -s conftest.exe ; then
6978     we_are_ok=yes
6979   fi
6980 fi
6981 case $we_are_ok in
6982   no)
6983     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6984     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6985     rm -f conftest*
6986     exit 1
6987     ;;
6988 esac
6989 rm -f conftest*
6990
6991 # Decide which environment variable is used to find dynamic libraries.
6992 case "${host}" in
6993   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6994   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6995   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6996   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6997 esac
6998
6999 # On systems where the dynamic library environment variable is PATH,
7000 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7001 # built executables to PATH.
7002 if test "$RPATH_ENVVAR" = PATH; then
7003   GCC_SHLIB_SUBDIR=/shlib
7004 else
7005   GCC_SHLIB_SUBDIR=
7006 fi
7007
7008 # Adjust the toplevel makefile according to whether bootstrap was selected.
7009 case $enable_bootstrap in
7010   yes)
7011     bootstrap_suffix=bootstrap
7012     BUILD_CONFIG=bootstrap-debug
7013     ;;
7014   no)
7015     bootstrap_suffix=no-bootstrap
7016     BUILD_CONFIG=
7017     ;;
7018 esac
7019
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7021 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7022
7023
7024 # Check whether --with-build-config was given.
7025 if test "${with_build_config+set}" = set; then :
7026   withval=$with_build_config; case $with_build_config in
7027    yes) with_build_config= ;;
7028    no) with_build_config= BUILD_CONFIG= ;;
7029    esac
7030 fi
7031
7032
7033 if test "x${with_build_config}" != x; then
7034   BUILD_CONFIG=$with_build_config
7035 else
7036   case $BUILD_CONFIG in
7037   bootstrap-debug)
7038     if echo "int f (void) { return 0; }" > conftest.c &&
7039        ${CC} -c conftest.c &&
7040        mv conftest.o conftest.o.g0 &&
7041        ${CC} -c -g conftest.c &&
7042        mv conftest.o conftest.o.g &&
7043        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7044       :
7045     else
7046       BUILD_CONFIG=
7047     fi
7048     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7049     ;;
7050   esac
7051 fi
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7053 $as_echo "$BUILD_CONFIG" >&6; }
7054
7055
7056 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7058 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7059 # Check whether --enable-vtable-verify was given.
7060 if test "${enable_vtable_verify+set}" = set; then :
7061   enableval=$enable_vtable_verify; case "$enableval" in
7062  yes) enable_vtable_verify=yes ;;
7063  no)  enable_vtable_verify=no ;;
7064  *)   enable_vtable_verify=no;;
7065  esac
7066 else
7067   enable_vtable_verify=no
7068 fi
7069
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7071 $as_echo "$enable_vtable_verify" >&6; }
7072
7073 # Record target_configdirs and the configure arguments for target and
7074 # build configuration in Makefile.
7075 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7076 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7077 bootstrap_fixincludes=no
7078
7079 # If we are building libgomp, bootstrap it.
7080 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7081   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7082 fi
7083
7084 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7085 # or bootstrap-ubsan, bootstrap it.
7086 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7087   case "$BUILD_CONFIG" in
7088     *bootstrap-asan* | *bootstrap-ubsan* )
7089       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7090       bootstrap_fixincludes=yes
7091       ;;
7092   esac
7093 fi
7094
7095 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7096 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7097    test "$enable_vtable_verify" != no; then
7098   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7099 fi
7100
7101 # If we are building libmpx, bootstrap it.
7102 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7103   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7104 fi
7105
7106 # Determine whether gdb needs tk/tcl or not.
7107 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7108 # and in that case we want gdb to be built without tk.  Ugh!
7109 # In fact I believe gdb is the *only* package directly dependent on tk,
7110 # so we should be able to put the 'maybe's in unconditionally and
7111 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7112 # 100% sure that that's safe though.
7113
7114 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7115 case "$enable_gdbtk" in
7116   no)
7117     GDB_TK="" ;;
7118   yes)
7119     GDB_TK="${gdb_tk}" ;;
7120   *)
7121     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7122     # distro.  Eventually someone will fix this and move Insight, nee
7123     # gdbtk to a separate directory.
7124     if test -d ${srcdir}/gdb/gdbtk ; then
7125       GDB_TK="${gdb_tk}"
7126     else
7127       GDB_TK=""
7128     fi
7129     ;;
7130 esac
7131 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7132 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7133
7134 # Strip out unwanted targets.
7135
7136 # While at that, we remove Makefiles if we were started for recursive
7137 # configuration, so that the top-level Makefile reconfigures them,
7138 # like we used to do when configure itself was recursive.
7139
7140 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7141 # but now we're fixing up the Makefile ourselves with the additional
7142 # commands passed to AC_CONFIG_FILES.  Use separate variables
7143 # extrasub-{build,host,target} not because there is any reason to split
7144 # the substitutions up that way, but only to remain below the limit of
7145 # 99 commands in a script, for HP-UX sed.
7146 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7147
7148 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7149   yes:yes:*\ gold\ *:*,c++,*) ;;
7150   yes:yes:*\ gold\ *:*)
7151     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7152     ;;
7153 esac
7154
7155 extrasub_build=
7156 for module in ${build_configdirs} ; do
7157   if test -z "${no_recursion}" \
7158      && test -f ${build_subdir}/${module}/Makefile; then
7159     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160     rm -f ${build_subdir}/${module}/Makefile
7161   fi
7162   extrasub_build="$extrasub_build
7163 /^@if build-$module\$/d
7164 /^@endif build-$module\$/d
7165 /^@if build-$module-$bootstrap_suffix\$/d
7166 /^@endif build-$module-$bootstrap_suffix\$/d"
7167 done
7168 extrasub_host=
7169 for module in ${configdirs} ; do
7170   if test -z "${no_recursion}"; then
7171     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7172       if test -f ${file}; then
7173         echo 1>&2 "*** removing ${file} to force reconfigure"
7174         rm -f ${file}
7175       fi
7176     done
7177   fi
7178   case ${module},${bootstrap_fixincludes} in
7179     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7180     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7181   esac
7182   extrasub_host="$extrasub_host
7183 /^@if $module\$/d
7184 /^@endif $module\$/d
7185 /^@if $module-$host_bootstrap_suffix\$/d
7186 /^@endif $module-$host_bootstrap_suffix\$/d"
7187 done
7188 extrasub_target=
7189 for module in ${target_configdirs} ; do
7190   if test -z "${no_recursion}" \
7191      && test -f ${target_subdir}/${module}/Makefile; then
7192     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193     rm -f ${target_subdir}/${module}/Makefile
7194   fi
7195
7196   # We only bootstrap target libraries listed in bootstrap_target_libs.
7197   case $bootstrap_target_libs in
7198     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199     *) target_bootstrap_suffix=no-bootstrap ;;
7200   esac
7201
7202   extrasub_target="$extrasub_target
7203 /^@if target-$module\$/d
7204 /^@endif target-$module\$/d
7205 /^@if target-$module-$target_bootstrap_suffix\$/d
7206 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7207 done
7208
7209 # Do the final fixup along with target modules.
7210 extrasub_target="$extrasub_target
7211 /^@if /,/^@endif /d"
7212
7213 # Create the serialization dependencies.  This uses a temporary file.
7214
7215 # Check whether --enable-serial-configure was given.
7216 if test "${enable_serial_configure+set}" = set; then :
7217   enableval=$enable_serial_configure;
7218 fi
7219
7220
7221 case ${enable_serial_configure} in
7222   yes)
7223     enable_serial_build_configure=yes
7224     enable_serial_host_configure=yes
7225     enable_serial_target_configure=yes
7226     ;;
7227 esac
7228
7229 # These force 'configure's to be done one at a time, to avoid problems
7230 # with contention over a shared config.cache.
7231 rm -f serdep.tmp
7232 echo '# serdep.tmp' > serdep.tmp
7233 olditem=
7234 test "x${enable_serial_build_configure}" = xyes &&
7235 for item in ${build_configdirs} ; do
7236   case ${olditem} in
7237     "") ;;
7238     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7239   esac
7240   olditem=${item}
7241 done
7242 olditem=
7243 test "x${enable_serial_host_configure}" = xyes &&
7244 for item in ${configdirs} ; do
7245   case ${olditem} in
7246     "") ;;
7247     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7248   esac
7249   olditem=${item}
7250 done
7251 olditem=
7252 test "x${enable_serial_target_configure}" = xyes &&
7253 for item in ${target_configdirs} ; do
7254   case ${olditem} in
7255     "") ;;
7256     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7257   esac
7258   olditem=${item}
7259 done
7260 serialization_dependencies=serdep.tmp
7261
7262
7263 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7264 # target, nonopt, and variable assignments.  These are the ones we
7265 # might not want to pass down to subconfigures.  The exception being
7266 # --cache-file=/dev/null, which is used to turn off the use of cache
7267 # files altogether, and which should be passed on to subconfigures.
7268 # Also strip program-prefix, program-suffix, and program-transform-name,
7269 # so that we can pass down a consistent program-transform-name.
7270 baseargs=
7271 tbaseargs=
7272 keep_next=no
7273 skip_next=no
7274 eval "set -- $ac_configure_args"
7275 for ac_arg
7276 do
7277   if test X"$skip_next" = X"yes"; then
7278     skip_next=no
7279     continue
7280   fi
7281   if test X"$keep_next" = X"yes"; then
7282     case $ac_arg in
7283       *\'*)
7284         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7285     esac
7286     baseargs="$baseargs '$ac_arg'"
7287     tbaseargs="$tbaseargs '$ac_arg'"
7288     keep_next=no
7289     continue
7290   fi
7291
7292   # Handle separated arguments.  Based on the logic generated by
7293   # autoconf 2.59.
7294   case $ac_arg in
7295     *=* | --config-cache | -C | -disable-* | --disable-* \
7296       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7297       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7298       | -with-* | --with-* | -without-* | --without-* | --x)
7299       separate_arg=no
7300       ;;
7301     -*)
7302       separate_arg=yes
7303       ;;
7304     *)
7305       separate_arg=no
7306       ;;
7307   esac
7308
7309   skip_targ=no
7310   case $ac_arg in
7311
7312   --with-* | --without-*)
7313     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7314
7315     case $libopt in
7316     *[-_]include)
7317       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7318       ;;
7319     *[-_]lib)
7320       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7321       ;;
7322     *)
7323       lib=$libopt
7324       ;;
7325     esac
7326
7327
7328     case $lib in
7329     mpc | mpfr | gmp | isl)
7330       # If we're processing --with-$lib, --with-$lib-include or
7331       # --with-$lib-lib, for one of the libs above, and target is
7332       # different from host, don't pass the current argument to any
7333       # target library's configure.
7334       if test x$is_cross_compiler = xyes; then
7335         skip_targ=yes
7336       fi
7337       ;;
7338     esac
7339     ;;
7340   esac
7341
7342   case "$ac_arg" in
7343     --cache-file=/dev/null | \
7344     -cache-file=/dev/null )
7345       # Handled here to avoid the test to skip args below.
7346       baseargs="$baseargs '$ac_arg'"
7347       tbaseargs="$tbaseargs '$ac_arg'"
7348       # Assert: $separate_arg should always be no.
7349       keep_next=$separate_arg
7350       ;;
7351     --no*)
7352       continue
7353       ;;
7354     --c* | \
7355     --sr* | \
7356     --ho* | \
7357     --bu* | \
7358     --t* | \
7359     --program-* | \
7360     -cache_file* | \
7361     -srcdir* | \
7362     -host* | \
7363     -build* | \
7364     -target* | \
7365     -program-prefix* | \
7366     -program-suffix* | \
7367     -program-transform-name* )
7368       skip_next=$separate_arg
7369       continue
7370       ;;
7371     -*)
7372       # An option.  Add it.
7373       case $ac_arg in
7374         *\'*)
7375           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376       esac
7377       baseargs="$baseargs '$ac_arg'"
7378       if test X"$skip_targ" = Xno; then
7379         tbaseargs="$tbaseargs '$ac_arg'"
7380       fi
7381       keep_next=$separate_arg
7382       ;;
7383     *)
7384       # Either a variable assignment, or a nonopt (triplet).  Don't
7385       # pass it down; let the Makefile handle this.
7386       continue
7387       ;;
7388   esac
7389 done
7390 # Remove the initial space we just introduced and, as these will be
7391 # expanded by make, quote '$'.
7392 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7393
7394 # Add in --program-transform-name, after --program-prefix and
7395 # --program-suffix have been applied to it.  Autoconf has already
7396 # doubled dollar signs and backslashes in program_transform_name; we want
7397 # the backslashes un-doubled, and then the entire thing wrapped in single
7398 # quotes, because this will be expanded first by make and then by the shell.
7399 # Also, because we want to override the logic in subdir configure scripts to
7400 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7401 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7402 ${program_transform_name}
7403 EOF_SED
7404 gcc_transform_name=`cat conftestsed.out`
7405 rm -f conftestsed.out
7406 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7407 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7408 if test "$silent" = yes; then
7409   baseargs="$baseargs --silent"
7410   tbaseargs="$tbaseargs --silent"
7411 fi
7412 baseargs="$baseargs --disable-option-checking"
7413 tbaseargs="$tbaseargs --disable-option-checking"
7414
7415 # Record and document user additions to sub configure arguments.
7416
7417
7418
7419
7420 # For the build-side libraries, we just need to pretend we're native,
7421 # and not use the same cache file.  Multilibs are neither needed nor
7422 # desired.  We can't even use the same cache file for all build-side
7423 # libraries, as they're compiled differently; some with C, some with
7424 # C++ or with different feature-enabling options.
7425 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7426
7427 # For host modules, accept cache file option, or specification as blank.
7428 case "${cache_file}" in
7429 "") # empty
7430   cache_file_option="" ;;
7431 /* | [A-Za-z]:[\\/]* ) # absolute path
7432   cache_file_option="--cache-file=${cache_file}" ;;
7433 *) # relative path
7434   cache_file_option="--cache-file=../${cache_file}" ;;
7435 esac
7436
7437 # Host dirs don't like to share a cache file either, horribly enough.
7438 # This seems to be due to autoconf 2.5x stupidity.
7439 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7440
7441 target_configargs="$target_configargs ${tbaseargs}"
7442
7443 # Passing a --with-cross-host argument lets the target libraries know
7444 # whether they are being built with a cross-compiler or being built
7445 # native.  However, it would be better to use other mechanisms to make the
7446 # sorts of decisions they want to make on this basis.  Please consider
7447 # this option to be deprecated.  FIXME.
7448 if test x${is_cross_compiler} = xyes ; then
7449   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7450 fi
7451
7452 # Special user-friendly check for native x86_64-linux build, if
7453 # multilib is not explicitly enabled.
7454 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7455   x86_64-*linux*:yes:$build:$build:)
7456     # Make sure we have a developement environment that handles 32-bit
7457     dev64=no
7458     echo "int main () { return 0; }" > conftest.c
7459     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7460     if test $? = 0 ; then
7461       if test -s conftest || test -s conftest.exe ; then
7462         dev64=yes
7463       fi
7464     fi
7465     rm -f conftest*
7466     if test x${dev64} != xyes ; then
7467       as_fn_error "I suspect your system does not have 32-bit developement 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
7468     fi
7469     ;;
7470 esac
7471
7472 # Default to --enable-multilib.
7473 if test x${enable_multilib} = x ; then
7474   target_configargs="--enable-multilib ${target_configargs}"
7475 fi
7476
7477 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7478 # changed from the earlier setting of with_newlib.
7479 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7480   target_configargs="--with-newlib ${target_configargs}"
7481 fi
7482
7483 # Different target subdirs use different values of certain variables
7484 # (notably CXX).  Worse, multilibs use *lots* of different values.
7485 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7486 # it doesn't automatically accept command-line overrides of them.
7487 # This means it's not safe for target subdirs to share a cache file,
7488 # which is disgusting, but there you have it.  Hopefully this can be
7489 # fixed in future.  It's still worthwhile to use a cache file for each
7490 # directory.  I think.
7491
7492 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7493 # We need to pass --target, as newer autoconf's requires consistency
7494 # for target_alias and gcc doesn't manage it consistently.
7495 target_configargs="--cache-file=./config.cache ${target_configargs}"
7496
7497 FLAGS_FOR_TARGET=
7498 case " $target_configdirs " in
7499  *" newlib "*)
7500   case " $target_configargs " in
7501   *" --with-newlib "*)
7502    case "$target" in
7503     *-cygwin*)
7504       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7505       ;;
7506    esac
7507
7508    # If we're not building GCC, don't discard standard headers.
7509    if test -d ${srcdir}/gcc; then
7510      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7511
7512      if test "${build}" != "${host}"; then
7513        # On Canadian crosses, CC_FOR_TARGET will have already been set
7514        # by `configure', so we won't have an opportunity to add -Bgcc/
7515        # to it.  This is right: we don't want to search that directory
7516        # for binaries, but we want the header files in there, so add
7517        # them explicitly.
7518        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7519
7520        # Someone might think of using the pre-installed headers on
7521        # Canadian crosses, in case the installed compiler is not fully
7522        # compatible with the compiler being built.  In this case, it
7523        # would be better to flag an error than risking having
7524        # incompatible object files being constructed.  We can't
7525        # guarantee that an error will be flagged, but let's hope the
7526        # compiler will do it, when presented with incompatible header
7527        # files.
7528      fi
7529    fi
7530
7531    case "${target}-${is_cross_compiler}" in
7532    i[3456789]86-*-linux*-no)
7533       # Here host == target, so we don't need to build gcc,
7534       # so we don't want to discard standard headers.
7535       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7536       ;;
7537    *)
7538       # If we're building newlib, use its generic headers last, but search
7539       # for any libc-related directories first (so make it the last -B
7540       # switch).
7541       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7542
7543       # If we're building libgloss, find the startup file, simulator library
7544       # and linker script.
7545       case " $target_configdirs " in
7546         *" libgloss "*)
7547         # Look for startup file, simulator library and maybe linker script.
7548         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7549         # Look for libnosys.a in case the target needs it.
7550         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7551         # Most targets have the linker script in the source directory.
7552         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7553         ;;
7554       esac
7555       ;;
7556    esac
7557    ;;
7558   esac
7559   ;;
7560 esac
7561
7562 case "$target" in
7563   x86_64-*mingw* | *-w64-mingw*)
7564   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7565   # however, use a symlink named 'mingw' in ${prefix} .
7566     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7567     ;;
7568   *-mingw*)
7569   # MinGW can't be handled as Cygwin above since it does not use newlib.
7570     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'
7571     ;;
7572 esac
7573
7574 # Allow the user to override the flags for
7575 # our build compiler if desired.
7576 if test x"${build}" = x"${host}" ; then
7577   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7578   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7579   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7580 fi
7581
7582 # On Canadian crosses, we'll be searching the right directories for
7583 # the previously-installed cross compiler, so don't bother to add
7584 # flags for directories within the install tree of the compiler
7585 # being built; programs in there won't even run.
7586 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7587   # Search for pre-installed headers if nothing else fits.
7588   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7589 fi
7590
7591 if test "x${use_gnu_ld}" = x &&
7592    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7593   # Arrange for us to find uninstalled linker scripts.
7594   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7595 fi
7596
7597 # Search for other target-specific linker scripts and such.
7598 case "${target}" in
7599   mep*)
7600     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7601     ;;
7602 esac
7603
7604 # Makefile fragments.
7605 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7606 do
7607   eval fragval=\$$frag
7608   if test $fragval != /dev/null; then
7609     eval $frag=${srcdir}/$fragval
7610   fi
7611 done
7612
7613
7614
7615
7616
7617 # Miscellanea: directories, flags, etc.
7618
7619
7620
7621
7622
7623
7624
7625
7626 # Build module lists & subconfigure args.
7627
7628
7629
7630 # Host module lists & subconfigure args.
7631
7632
7633
7634
7635 # Target module lists & subconfigure args.
7636
7637
7638
7639 # Build tools.
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 # Generate default definitions for YACC, M4, LEX and other programs that run
7658 # on the build machine.  These are used if the Makefile can't locate these
7659 # programs in objdir.
7660 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7661
7662 for ac_prog in 'bison -y' byacc yacc
7663 do
7664   # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_YACC+set}" = set; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671   if test -n "$YACC"; then
7672   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_prog_YACC="$ac_prog"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688
7689 fi
7690 fi
7691 YACC=$ac_cv_prog_YACC
7692 if test -n "$YACC"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7694 $as_echo "$YACC" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701   test -n "$YACC" && break
7702 done
7703 test -n "$YACC" || YACC="$MISSING bison -y"
7704
7705 case " $build_configdirs " in
7706   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7707 esac
7708
7709 for ac_prog in bison
7710 do
7711   # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if test "${ac_cv_prog_BISON+set}" = set; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   if test -n "$BISON"; then
7719   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728     ac_cv_prog_BISON="$ac_prog"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 BISON=$ac_cv_prog_BISON
7739 if test -n "$BISON"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7741 $as_echo "$BISON" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748   test -n "$BISON" && break
7749 done
7750 test -n "$BISON" || BISON="$MISSING bison"
7751
7752 case " $build_configdirs " in
7753   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7754 esac
7755
7756 for ac_prog in gm4 gnum4 m4
7757 do
7758   # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_M4+set}" = set; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   if test -n "$M4"; then
7766   ac_cv_prog_M4="$M4" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773     for ac_exec_ext in '' $ac_executable_extensions; do
7774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775     ac_cv_prog_M4="$ac_prog"
7776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777     break 2
7778   fi
7779 done
7780   done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 M4=$ac_cv_prog_M4
7786 if test -n "$M4"; then
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7788 $as_echo "$M4" >&6; }
7789 else
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795   test -n "$M4" && break
7796 done
7797 test -n "$M4" || M4="$MISSING m4"
7798
7799 case " $build_configdirs " in
7800   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7801 esac
7802
7803 for ac_prog in flex lex
7804 do
7805   # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_LEX+set}" = set; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$LEX"; then
7813   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_prog_LEX="$ac_prog"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 LEX=$ac_cv_prog_LEX
7833 if test -n "$LEX"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7835 $as_echo "$LEX" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842   test -n "$LEX" && break
7843 done
7844 test -n "$LEX" || LEX="$MISSING flex"
7845
7846 case " $build_configdirs " in
7847   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7848   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7849 esac
7850
7851 for ac_prog in flex
7852 do
7853   # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_FLEX+set}" = set; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   if test -n "$FLEX"; then
7861   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868     for ac_exec_ext in '' $ac_executable_extensions; do
7869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870     ac_cv_prog_FLEX="$ac_prog"
7871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875   done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 FLEX=$ac_cv_prog_FLEX
7881 if test -n "$FLEX"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7883 $as_echo "$FLEX" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890   test -n "$FLEX" && break
7891 done
7892 test -n "$FLEX" || FLEX="$MISSING flex"
7893
7894 case " $build_configdirs " in
7895   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7896 esac
7897
7898 for ac_prog in makeinfo
7899 do
7900   # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   if test -n "$MAKEINFO"; then
7908   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915     for ac_exec_ext in '' $ac_executable_extensions; do
7916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917     ac_cv_prog_MAKEINFO="$ac_prog"
7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922   done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 MAKEINFO=$ac_cv_prog_MAKEINFO
7928 if test -n "$MAKEINFO"; then
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7930 $as_echo "$MAKEINFO" >&6; }
7931 else
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937   test -n "$MAKEINFO" && break
7938 done
7939 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7940
7941 case " $build_configdirs " in
7942   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7943   *)
7944
7945     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7946     # higher, else we use the "missing" dummy.
7947     if ${MAKEINFO} --version \
7948        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7949       :
7950     else
7951       MAKEINFO="$MISSING makeinfo"
7952     fi
7953     ;;
7954
7955 esac
7956
7957 # FIXME: expect and dejagnu may become build tools?
7958
7959 for ac_prog in expect
7960 do
7961   # Extract the first word of "$ac_prog", so it can be a program name with args.
7962 set dummy $ac_prog; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   if test -n "$EXPECT"; then
7969   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978     ac_cv_prog_EXPECT="$ac_prog"
7979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983   done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 EXPECT=$ac_cv_prog_EXPECT
7989 if test -n "$EXPECT"; then
7990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7991 $as_echo "$EXPECT" >&6; }
7992 else
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997
7998   test -n "$EXPECT" && break
7999 done
8000 test -n "$EXPECT" || EXPECT="expect"
8001
8002 case " $configdirs " in
8003   *" expect "*)
8004     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8005     ;;
8006 esac
8007
8008 for ac_prog in runtest
8009 do
8010   # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8015   $as_echo_n "(cached) " >&6
8016 else
8017   if test -n "$RUNTEST"; then
8018   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023   IFS=$as_save_IFS
8024   test -z "$as_dir" && as_dir=.
8025     for ac_exec_ext in '' $ac_executable_extensions; do
8026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027     ac_cv_prog_RUNTEST="$ac_prog"
8028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029     break 2
8030   fi
8031 done
8032   done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 RUNTEST=$ac_cv_prog_RUNTEST
8038 if test -n "$RUNTEST"; then
8039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8040 $as_echo "$RUNTEST" >&6; }
8041 else
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046
8047   test -n "$RUNTEST" && break
8048 done
8049 test -n "$RUNTEST" || RUNTEST="runtest"
8050
8051 case " $configdirs " in
8052   *" dejagnu "*)
8053     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8054     ;;
8055 esac
8056
8057
8058 # Host tools.
8059 ncn_tool_prefix=
8060 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8061 ncn_target_tool_prefix=
8062 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8063
8064
8065
8066 if test -n "$AR"; then
8067   ac_cv_prog_AR=$AR
8068 elif test -n "$ac_cv_prog_AR"; then
8069   AR=$ac_cv_prog_AR
8070 fi
8071
8072 if test -n "$ac_cv_prog_AR"; then
8073   for ncn_progname in ar; do
8074     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8075 set dummy ${ncn_progname}; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_AR+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   if test -n "$AR"; then
8082   ac_cv_prog_AR="$AR" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087   IFS=$as_save_IFS
8088   test -z "$as_dir" && as_dir=.
8089     for ac_exec_ext in '' $ac_executable_extensions; do
8090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091     ac_cv_prog_AR="${ncn_progname}"
8092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093     break 2
8094   fi
8095 done
8096   done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 AR=$ac_cv_prog_AR
8102 if test -n "$AR"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104 $as_echo "$AR" >&6; }
8105 else
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111   done
8112 fi
8113
8114 for ncn_progname in ar; do
8115   if test -n "$ncn_tool_prefix"; then
8116     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8117 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if test "${ac_cv_prog_AR+set}" = set; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   if test -n "$AR"; then
8124   ac_cv_prog_AR="$AR" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129   IFS=$as_save_IFS
8130   test -z "$as_dir" && as_dir=.
8131     for ac_exec_ext in '' $ac_executable_extensions; do
8132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8133     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135     break 2
8136   fi
8137 done
8138   done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 AR=$ac_cv_prog_AR
8144 if test -n "$AR"; then
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8146 $as_echo "$AR" >&6; }
8147 else
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153   fi
8154   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8155     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8156 set dummy ${ncn_progname}; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_AR+set}" = set; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   if test -n "$AR"; then
8163   ac_cv_prog_AR="$AR" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172     ac_cv_prog_AR="${ncn_progname}"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 AR=$ac_cv_prog_AR
8183 if test -n "$AR"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185 $as_echo "$AR" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192   fi
8193   test -n "$ac_cv_prog_AR" && break
8194 done
8195
8196 if test -z "$ac_cv_prog_AR" ; then
8197   set dummy ar
8198   if test $build = $host ; then
8199     AR="$2"
8200   else
8201     AR="${ncn_tool_prefix}$2"
8202   fi
8203 fi
8204
8205
8206
8207 if test -n "$AS"; then
8208   ac_cv_prog_AS=$AS
8209 elif test -n "$ac_cv_prog_AS"; then
8210   AS=$ac_cv_prog_AS
8211 fi
8212
8213 if test -n "$ac_cv_prog_AS"; then
8214   for ncn_progname in as; do
8215     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8216 set dummy ${ncn_progname}; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_AS+set}" = set; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   if test -n "$AS"; then
8223   ac_cv_prog_AS="$AS" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232     ac_cv_prog_AS="${ncn_progname}"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 AS=$ac_cv_prog_AS
8243 if test -n "$AS"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8245 $as_echo "$AS" >&6; }
8246 else
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8249 fi
8250
8251
8252   done
8253 fi
8254
8255 for ncn_progname in as; do
8256   if test -n "$ncn_tool_prefix"; then
8257     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8258 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_AS+set}" = set; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   if test -n "$AS"; then
8265   ac_cv_prog_AS="$AS" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272     for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279   done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 AS=$ac_cv_prog_AS
8285 if test -n "$AS"; then
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8287 $as_echo "$AS" >&6; }
8288 else
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294   fi
8295   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8296     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8297 set dummy ${ncn_progname}; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_AS+set}" = set; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   if test -n "$AS"; then
8304   ac_cv_prog_AS="$AS" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311     for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_prog_AS="${ncn_progname}"
8314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318   done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 AS=$ac_cv_prog_AS
8324 if test -n "$AS"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8326 $as_echo "$AS" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333   fi
8334   test -n "$ac_cv_prog_AS" && break
8335 done
8336
8337 if test -z "$ac_cv_prog_AS" ; then
8338   set dummy as
8339   if test $build = $host ; then
8340     AS="$2"
8341   else
8342     AS="${ncn_tool_prefix}$2"
8343   fi
8344 fi
8345
8346
8347
8348 if test -n "$DLLTOOL"; then
8349   ac_cv_prog_DLLTOOL=$DLLTOOL
8350 elif test -n "$ac_cv_prog_DLLTOOL"; then
8351   DLLTOOL=$ac_cv_prog_DLLTOOL
8352 fi
8353
8354 if test -n "$ac_cv_prog_DLLTOOL"; then
8355   for ncn_progname in dlltool; do
8356     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8357 set dummy ${ncn_progname}; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   if test -n "$DLLTOOL"; then
8364   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371     for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_prog_DLLTOOL="${ncn_progname}"
8374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378   done
8379 IFS=$as_save_IFS
8380
8381 fi
8382 fi
8383 DLLTOOL=$ac_cv_prog_DLLTOOL
8384 if test -n "$DLLTOOL"; then
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8386 $as_echo "$DLLTOOL" >&6; }
8387 else
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393   done
8394 fi
8395
8396 for ncn_progname in dlltool; do
8397   if test -n "$ncn_tool_prefix"; then
8398     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8399 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   if test -n "$DLLTOOL"; then
8406   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411   IFS=$as_save_IFS
8412   test -z "$as_dir" && as_dir=.
8413     for ac_exec_ext in '' $ac_executable_extensions; do
8414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417     break 2
8418   fi
8419 done
8420   done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 DLLTOOL=$ac_cv_prog_DLLTOOL
8426 if test -n "$DLLTOOL"; then
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8428 $as_echo "$DLLTOOL" >&6; }
8429 else
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434
8435   fi
8436   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8437     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8438 set dummy ${ncn_progname}; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   if test -n "$DLLTOOL"; then
8445   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450   IFS=$as_save_IFS
8451   test -z "$as_dir" && as_dir=.
8452     for ac_exec_ext in '' $ac_executable_extensions; do
8453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454     ac_cv_prog_DLLTOOL="${ncn_progname}"
8455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456     break 2
8457   fi
8458 done
8459   done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 DLLTOOL=$ac_cv_prog_DLLTOOL
8465 if test -n "$DLLTOOL"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8467 $as_echo "$DLLTOOL" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473
8474   fi
8475   test -n "$ac_cv_prog_DLLTOOL" && break
8476 done
8477
8478 if test -z "$ac_cv_prog_DLLTOOL" ; then
8479   set dummy dlltool
8480   if test $build = $host ; then
8481     DLLTOOL="$2"
8482   else
8483     DLLTOOL="${ncn_tool_prefix}$2"
8484   fi
8485 fi
8486
8487
8488
8489 if test -n "$LD"; then
8490   ac_cv_prog_LD=$LD
8491 elif test -n "$ac_cv_prog_LD"; then
8492   LD=$ac_cv_prog_LD
8493 fi
8494
8495 if test -n "$ac_cv_prog_LD"; then
8496   for ncn_progname in ld; do
8497     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_LD+set}" = set; then :
8502   $as_echo_n "(cached) " >&6
8503 else
8504   if test -n "$LD"; then
8505   ac_cv_prog_LD="$LD" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510   IFS=$as_save_IFS
8511   test -z "$as_dir" && as_dir=.
8512     for ac_exec_ext in '' $ac_executable_extensions; do
8513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514     ac_cv_prog_LD="${ncn_progname}"
8515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516     break 2
8517   fi
8518 done
8519   done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 LD=$ac_cv_prog_LD
8525 if test -n "$LD"; then
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8527 $as_echo "$LD" >&6; }
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534   done
8535 fi
8536
8537 for ncn_progname in ld; do
8538   if test -n "$ncn_tool_prefix"; then
8539     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8540 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_LD+set}" = set; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   if test -n "$LD"; then
8547   ac_cv_prog_LD="$LD" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552   IFS=$as_save_IFS
8553   test -z "$as_dir" && as_dir=.
8554     for ac_exec_ext in '' $ac_executable_extensions; do
8555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558     break 2
8559   fi
8560 done
8561   done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 LD=$ac_cv_prog_LD
8567 if test -n "$LD"; then
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8569 $as_echo "$LD" >&6; }
8570 else
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575
8576   fi
8577   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8578     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579 set dummy ${ncn_progname}; ac_word=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_LD+set}" = set; then :
8583   $as_echo_n "(cached) " >&6
8584 else
8585   if test -n "$LD"; then
8586   ac_cv_prog_LD="$LD" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8590 do
8591   IFS=$as_save_IFS
8592   test -z "$as_dir" && as_dir=.
8593     for ac_exec_ext in '' $ac_executable_extensions; do
8594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595     ac_cv_prog_LD="${ncn_progname}"
8596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597     break 2
8598   fi
8599 done
8600   done
8601 IFS=$as_save_IFS
8602
8603 fi
8604 fi
8605 LD=$ac_cv_prog_LD
8606 if test -n "$LD"; then
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8608 $as_echo "$LD" >&6; }
8609 else
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8612 fi
8613
8614
8615   fi
8616   test -n "$ac_cv_prog_LD" && break
8617 done
8618
8619 if test -z "$ac_cv_prog_LD" ; then
8620   set dummy ld
8621   if test $build = $host ; then
8622     LD="$2"
8623   else
8624     LD="${ncn_tool_prefix}$2"
8625   fi
8626 fi
8627
8628
8629
8630 if test -n "$LIPO"; then
8631   ac_cv_prog_LIPO=$LIPO
8632 elif test -n "$ac_cv_prog_LIPO"; then
8633   LIPO=$ac_cv_prog_LIPO
8634 fi
8635
8636 if test -n "$ac_cv_prog_LIPO"; then
8637   for ncn_progname in lipo; do
8638     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_LIPO+set}" = set; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$LIPO"; then
8646   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655     ac_cv_prog_LIPO="${ncn_progname}"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 LIPO=$ac_cv_prog_LIPO
8666 if test -n "$LIPO"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8668 $as_echo "$LIPO" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675   done
8676 fi
8677
8678 for ncn_progname in lipo; do
8679   if test -n "$ncn_tool_prefix"; then
8680     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8681 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if test "${ac_cv_prog_LIPO+set}" = set; then :
8685   $as_echo_n "(cached) " >&6
8686 else
8687   if test -n "$LIPO"; then
8688   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693   IFS=$as_save_IFS
8694   test -z "$as_dir" && as_dir=.
8695     for ac_exec_ext in '' $ac_executable_extensions; do
8696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699     break 2
8700   fi
8701 done
8702   done
8703 IFS=$as_save_IFS
8704
8705 fi
8706 fi
8707 LIPO=$ac_cv_prog_LIPO
8708 if test -n "$LIPO"; then
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8710 $as_echo "$LIPO" >&6; }
8711 else
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8714 fi
8715
8716
8717   fi
8718   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8719     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720 set dummy ${ncn_progname}; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_LIPO+set}" = set; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   if test -n "$LIPO"; then
8727   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732   IFS=$as_save_IFS
8733   test -z "$as_dir" && as_dir=.
8734     for ac_exec_ext in '' $ac_executable_extensions; do
8735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736     ac_cv_prog_LIPO="${ncn_progname}"
8737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738     break 2
8739   fi
8740 done
8741   done
8742 IFS=$as_save_IFS
8743
8744 fi
8745 fi
8746 LIPO=$ac_cv_prog_LIPO
8747 if test -n "$LIPO"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8749 $as_echo "$LIPO" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755
8756   fi
8757   test -n "$ac_cv_prog_LIPO" && break
8758 done
8759
8760 if test -z "$ac_cv_prog_LIPO" ; then
8761   set dummy lipo
8762   if test $build = $host ; then
8763     LIPO="$2"
8764   else
8765     LIPO="${ncn_tool_prefix}$2"
8766   fi
8767 fi
8768
8769
8770
8771 if test -n "$NM"; then
8772   ac_cv_prog_NM=$NM
8773 elif test -n "$ac_cv_prog_NM"; then
8774   NM=$ac_cv_prog_NM
8775 fi
8776
8777 if test -n "$ac_cv_prog_NM"; then
8778   for ncn_progname in nm; do
8779     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_NM+set}" = set; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$NM"; then
8787   ac_cv_prog_NM="$NM" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796     ac_cv_prog_NM="${ncn_progname}"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 NM=$ac_cv_prog_NM
8807 if test -n "$NM"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8809 $as_echo "$NM" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816   done
8817 fi
8818
8819 for ncn_progname in nm; do
8820   if test -n "$ncn_tool_prefix"; then
8821     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8822 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if test "${ac_cv_prog_NM+set}" = set; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   if test -n "$NM"; then
8829   ac_cv_prog_NM="$NM" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834   IFS=$as_save_IFS
8835   test -z "$as_dir" && as_dir=.
8836     for ac_exec_ext in '' $ac_executable_extensions; do
8837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840     break 2
8841   fi
8842 done
8843   done
8844 IFS=$as_save_IFS
8845
8846 fi
8847 fi
8848 NM=$ac_cv_prog_NM
8849 if test -n "$NM"; then
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8851 $as_echo "$NM" >&6; }
8852 else
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 fi
8856
8857
8858   fi
8859   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8860     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861 set dummy ${ncn_progname}; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_NM+set}" = set; then :
8865   $as_echo_n "(cached) " >&6
8866 else
8867   if test -n "$NM"; then
8868   ac_cv_prog_NM="$NM" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873   IFS=$as_save_IFS
8874   test -z "$as_dir" && as_dir=.
8875     for ac_exec_ext in '' $ac_executable_extensions; do
8876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877     ac_cv_prog_NM="${ncn_progname}"
8878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879     break 2
8880   fi
8881 done
8882   done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 NM=$ac_cv_prog_NM
8888 if test -n "$NM"; then
8889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8890 $as_echo "$NM" >&6; }
8891 else
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897   fi
8898   test -n "$ac_cv_prog_NM" && break
8899 done
8900
8901 if test -z "$ac_cv_prog_NM" ; then
8902   set dummy nm
8903   if test $build = $host ; then
8904     NM="$2"
8905   else
8906     NM="${ncn_tool_prefix}$2"
8907   fi
8908 fi
8909
8910
8911
8912 if test -n "$RANLIB"; then
8913   ac_cv_prog_RANLIB=$RANLIB
8914 elif test -n "$ac_cv_prog_RANLIB"; then
8915   RANLIB=$ac_cv_prog_RANLIB
8916 fi
8917
8918 if test -n "$ac_cv_prog_RANLIB"; then
8919   for ncn_progname in ranlib; do
8920     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   if test -n "$RANLIB"; then
8928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8932 do
8933   IFS=$as_save_IFS
8934   test -z "$as_dir" && as_dir=.
8935     for ac_exec_ext in '' $ac_executable_extensions; do
8936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937     ac_cv_prog_RANLIB="${ncn_progname}"
8938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939     break 2
8940   fi
8941 done
8942   done
8943 IFS=$as_save_IFS
8944
8945 fi
8946 fi
8947 RANLIB=$ac_cv_prog_RANLIB
8948 if test -n "$RANLIB"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8950 $as_echo "$RANLIB" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955
8956
8957   done
8958 fi
8959
8960 for ncn_progname in ranlib; do
8961   if test -n "$ncn_tool_prefix"; then
8962     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   if test -n "$RANLIB"; then
8970   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 RANLIB=$ac_cv_prog_RANLIB
8990 if test -n "$RANLIB"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992 $as_echo "$RANLIB" >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
8998
8999   fi
9000   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9001     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002 set dummy ${ncn_progname}; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9006   $as_echo_n "(cached) " >&6
9007 else
9008   if test -n "$RANLIB"; then
9009   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9013 do
9014   IFS=$as_save_IFS
9015   test -z "$as_dir" && as_dir=.
9016     for ac_exec_ext in '' $ac_executable_extensions; do
9017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9018     ac_cv_prog_RANLIB="${ncn_progname}"
9019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020     break 2
9021   fi
9022 done
9023   done
9024 IFS=$as_save_IFS
9025
9026 fi
9027 fi
9028 RANLIB=$ac_cv_prog_RANLIB
9029 if test -n "$RANLIB"; then
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9031 $as_echo "$RANLIB" >&6; }
9032 else
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9035 fi
9036
9037
9038   fi
9039   test -n "$ac_cv_prog_RANLIB" && break
9040 done
9041
9042 if test -z "$ac_cv_prog_RANLIB" ; then
9043   RANLIB="true"
9044 fi
9045
9046
9047
9048 if test -n "$STRIP"; then
9049   ac_cv_prog_STRIP=$STRIP
9050 elif test -n "$ac_cv_prog_STRIP"; then
9051   STRIP=$ac_cv_prog_STRIP
9052 fi
9053
9054 if test -n "$ac_cv_prog_STRIP"; then
9055   for ncn_progname in strip; do
9056     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9057 set dummy ${ncn_progname}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_prog_STRIP+set}" = set; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   if test -n "$STRIP"; then
9064   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9068 do
9069   IFS=$as_save_IFS
9070   test -z "$as_dir" && as_dir=.
9071     for ac_exec_ext in '' $ac_executable_extensions; do
9072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073     ac_cv_prog_STRIP="${ncn_progname}"
9074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075     break 2
9076   fi
9077 done
9078   done
9079 IFS=$as_save_IFS
9080
9081 fi
9082 fi
9083 STRIP=$ac_cv_prog_STRIP
9084 if test -n "$STRIP"; then
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9086 $as_echo "$STRIP" >&6; }
9087 else
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091
9092
9093   done
9094 fi
9095
9096 for ncn_progname in strip; do
9097   if test -n "$ncn_tool_prefix"; then
9098     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9099 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if test "${ac_cv_prog_STRIP+set}" = set; then :
9103   $as_echo_n "(cached) " >&6
9104 else
9105   if test -n "$STRIP"; then
9106   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9107 else
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9110 do
9111   IFS=$as_save_IFS
9112   test -z "$as_dir" && as_dir=.
9113     for ac_exec_ext in '' $ac_executable_extensions; do
9114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9115     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117     break 2
9118   fi
9119 done
9120   done
9121 IFS=$as_save_IFS
9122
9123 fi
9124 fi
9125 STRIP=$ac_cv_prog_STRIP
9126 if test -n "$STRIP"; then
9127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9128 $as_echo "$STRIP" >&6; }
9129 else
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 $as_echo "no" >&6; }
9132 fi
9133
9134
9135   fi
9136   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9137     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9138 set dummy ${ncn_progname}; ac_word=$2
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9140 $as_echo_n "checking for $ac_word... " >&6; }
9141 if test "${ac_cv_prog_STRIP+set}" = set; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   if test -n "$STRIP"; then
9145   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9146 else
9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 for as_dir in $PATH
9149 do
9150   IFS=$as_save_IFS
9151   test -z "$as_dir" && as_dir=.
9152     for ac_exec_ext in '' $ac_executable_extensions; do
9153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9154     ac_cv_prog_STRIP="${ncn_progname}"
9155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9156     break 2
9157   fi
9158 done
9159   done
9160 IFS=$as_save_IFS
9161
9162 fi
9163 fi
9164 STRIP=$ac_cv_prog_STRIP
9165 if test -n "$STRIP"; then
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9167 $as_echo "$STRIP" >&6; }
9168 else
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171 fi
9172
9173
9174   fi
9175   test -n "$ac_cv_prog_STRIP" && break
9176 done
9177
9178 if test -z "$ac_cv_prog_STRIP" ; then
9179   STRIP="true"
9180 fi
9181
9182
9183
9184 if test -n "$WINDRES"; then
9185   ac_cv_prog_WINDRES=$WINDRES
9186 elif test -n "$ac_cv_prog_WINDRES"; then
9187   WINDRES=$ac_cv_prog_WINDRES
9188 fi
9189
9190 if test -n "$ac_cv_prog_WINDRES"; then
9191   for ncn_progname in windres; do
9192     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9193 set dummy ${ncn_progname}; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   if test -n "$WINDRES"; then
9200   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9201 else
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9204 do
9205   IFS=$as_save_IFS
9206   test -z "$as_dir" && as_dir=.
9207     for ac_exec_ext in '' $ac_executable_extensions; do
9208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209     ac_cv_prog_WINDRES="${ncn_progname}"
9210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211     break 2
9212   fi
9213 done
9214   done
9215 IFS=$as_save_IFS
9216
9217 fi
9218 fi
9219 WINDRES=$ac_cv_prog_WINDRES
9220 if test -n "$WINDRES"; then
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9222 $as_echo "$WINDRES" >&6; }
9223 else
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9226 fi
9227
9228
9229   done
9230 fi
9231
9232 for ncn_progname in windres; do
9233   if test -n "$ncn_tool_prefix"; then
9234     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9235 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   if test -n "$WINDRES"; then
9242   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247   IFS=$as_save_IFS
9248   test -z "$as_dir" && as_dir=.
9249     for ac_exec_ext in '' $ac_executable_extensions; do
9250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253     break 2
9254   fi
9255 done
9256   done
9257 IFS=$as_save_IFS
9258
9259 fi
9260 fi
9261 WINDRES=$ac_cv_prog_WINDRES
9262 if test -n "$WINDRES"; then
9263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9264 $as_echo "$WINDRES" >&6; }
9265 else
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9268 fi
9269
9270
9271   fi
9272   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9273     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9274 set dummy ${ncn_progname}; ac_word=$2
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276 $as_echo_n "checking for $ac_word... " >&6; }
9277 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9278   $as_echo_n "(cached) " >&6
9279 else
9280   if test -n "$WINDRES"; then
9281   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9282 else
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 for as_dir in $PATH
9285 do
9286   IFS=$as_save_IFS
9287   test -z "$as_dir" && as_dir=.
9288     for ac_exec_ext in '' $ac_executable_extensions; do
9289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9290     ac_cv_prog_WINDRES="${ncn_progname}"
9291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9292     break 2
9293   fi
9294 done
9295   done
9296 IFS=$as_save_IFS
9297
9298 fi
9299 fi
9300 WINDRES=$ac_cv_prog_WINDRES
9301 if test -n "$WINDRES"; then
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9303 $as_echo "$WINDRES" >&6; }
9304 else
9305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 $as_echo "no" >&6; }
9307 fi
9308
9309
9310   fi
9311   test -n "$ac_cv_prog_WINDRES" && break
9312 done
9313
9314 if test -z "$ac_cv_prog_WINDRES" ; then
9315   set dummy windres
9316   if test $build = $host ; then
9317     WINDRES="$2"
9318   else
9319     WINDRES="${ncn_tool_prefix}$2"
9320   fi
9321 fi
9322
9323
9324
9325 if test -n "$WINDMC"; then
9326   ac_cv_prog_WINDMC=$WINDMC
9327 elif test -n "$ac_cv_prog_WINDMC"; then
9328   WINDMC=$ac_cv_prog_WINDMC
9329 fi
9330
9331 if test -n "$ac_cv_prog_WINDMC"; then
9332   for ncn_progname in windmc; do
9333     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9334 set dummy ${ncn_progname}; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9338   $as_echo_n "(cached) " >&6
9339 else
9340   if test -n "$WINDMC"; then
9341   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9345 do
9346   IFS=$as_save_IFS
9347   test -z "$as_dir" && as_dir=.
9348     for ac_exec_ext in '' $ac_executable_extensions; do
9349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9350     ac_cv_prog_WINDMC="${ncn_progname}"
9351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352     break 2
9353   fi
9354 done
9355   done
9356 IFS=$as_save_IFS
9357
9358 fi
9359 fi
9360 WINDMC=$ac_cv_prog_WINDMC
9361 if test -n "$WINDMC"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9363 $as_echo "$WINDMC" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370   done
9371 fi
9372
9373 for ncn_progname in windmc; do
9374   if test -n "$ncn_tool_prefix"; then
9375     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9376 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9380   $as_echo_n "(cached) " >&6
9381 else
9382   if test -n "$WINDMC"; then
9383   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9387 do
9388   IFS=$as_save_IFS
9389   test -z "$as_dir" && as_dir=.
9390     for ac_exec_ext in '' $ac_executable_extensions; do
9391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394     break 2
9395   fi
9396 done
9397   done
9398 IFS=$as_save_IFS
9399
9400 fi
9401 fi
9402 WINDMC=$ac_cv_prog_WINDMC
9403 if test -n "$WINDMC"; then
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9405 $as_echo "$WINDMC" >&6; }
9406 else
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409 fi
9410
9411
9412   fi
9413   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9414     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9415 set dummy ${ncn_progname}; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   if test -n "$WINDMC"; then
9422   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9423 else
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $PATH
9426 do
9427   IFS=$as_save_IFS
9428   test -z "$as_dir" && as_dir=.
9429     for ac_exec_ext in '' $ac_executable_extensions; do
9430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431     ac_cv_prog_WINDMC="${ncn_progname}"
9432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9433     break 2
9434   fi
9435 done
9436   done
9437 IFS=$as_save_IFS
9438
9439 fi
9440 fi
9441 WINDMC=$ac_cv_prog_WINDMC
9442 if test -n "$WINDMC"; then
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9444 $as_echo "$WINDMC" >&6; }
9445 else
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9448 fi
9449
9450
9451   fi
9452   test -n "$ac_cv_prog_WINDMC" && break
9453 done
9454
9455 if test -z "$ac_cv_prog_WINDMC" ; then
9456   set dummy windmc
9457   if test $build = $host ; then
9458     WINDMC="$2"
9459   else
9460     WINDMC="${ncn_tool_prefix}$2"
9461   fi
9462 fi
9463
9464
9465
9466 if test -n "$OBJCOPY"; then
9467   ac_cv_prog_OBJCOPY=$OBJCOPY
9468 elif test -n "$ac_cv_prog_OBJCOPY"; then
9469   OBJCOPY=$ac_cv_prog_OBJCOPY
9470 fi
9471
9472 if test -n "$ac_cv_prog_OBJCOPY"; then
9473   for ncn_progname in objcopy; do
9474     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9475 set dummy ${ncn_progname}; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   if test -n "$OBJCOPY"; then
9482   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9483 else
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491     ac_cv_prog_OBJCOPY="${ncn_progname}"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498
9499 fi
9500 fi
9501 OBJCOPY=$ac_cv_prog_OBJCOPY
9502 if test -n "$OBJCOPY"; then
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9504 $as_echo "$OBJCOPY" >&6; }
9505 else
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9508 fi
9509
9510
9511   done
9512 fi
9513
9514 for ncn_progname in objcopy; do
9515   if test -n "$ncn_tool_prefix"; then
9516     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9517 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   if test -n "$OBJCOPY"; then
9524   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9525 else
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529   IFS=$as_save_IFS
9530   test -z "$as_dir" && as_dir=.
9531     for ac_exec_ext in '' $ac_executable_extensions; do
9532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535     break 2
9536   fi
9537 done
9538   done
9539 IFS=$as_save_IFS
9540
9541 fi
9542 fi
9543 OBJCOPY=$ac_cv_prog_OBJCOPY
9544 if test -n "$OBJCOPY"; then
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9546 $as_echo "$OBJCOPY" >&6; }
9547 else
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 fi
9551
9552
9553   fi
9554   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9555     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9556 set dummy ${ncn_progname}; ac_word=$2
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9558 $as_echo_n "checking for $ac_word... " >&6; }
9559 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9560   $as_echo_n "(cached) " >&6
9561 else
9562   if test -n "$OBJCOPY"; then
9563   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9564 else
9565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9566 for as_dir in $PATH
9567 do
9568   IFS=$as_save_IFS
9569   test -z "$as_dir" && as_dir=.
9570     for ac_exec_ext in '' $ac_executable_extensions; do
9571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9572     ac_cv_prog_OBJCOPY="${ncn_progname}"
9573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574     break 2
9575   fi
9576 done
9577   done
9578 IFS=$as_save_IFS
9579
9580 fi
9581 fi
9582 OBJCOPY=$ac_cv_prog_OBJCOPY
9583 if test -n "$OBJCOPY"; then
9584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9585 $as_echo "$OBJCOPY" >&6; }
9586 else
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9589 fi
9590
9591
9592   fi
9593   test -n "$ac_cv_prog_OBJCOPY" && break
9594 done
9595
9596 if test -z "$ac_cv_prog_OBJCOPY" ; then
9597   set dummy objcopy
9598   if test $build = $host ; then
9599     OBJCOPY="$2"
9600   else
9601     OBJCOPY="${ncn_tool_prefix}$2"
9602   fi
9603 fi
9604
9605
9606
9607 if test -n "$OBJDUMP"; then
9608   ac_cv_prog_OBJDUMP=$OBJDUMP
9609 elif test -n "$ac_cv_prog_OBJDUMP"; then
9610   OBJDUMP=$ac_cv_prog_OBJDUMP
9611 fi
9612
9613 if test -n "$ac_cv_prog_OBJDUMP"; then
9614   for ncn_progname in objdump; do
9615     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_progname}; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9620   $as_echo_n "(cached) " >&6
9621 else
9622   if test -n "$OBJDUMP"; then
9623   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9624 else
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9627 do
9628   IFS=$as_save_IFS
9629   test -z "$as_dir" && as_dir=.
9630     for ac_exec_ext in '' $ac_executable_extensions; do
9631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632     ac_cv_prog_OBJDUMP="${ncn_progname}"
9633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634     break 2
9635   fi
9636 done
9637   done
9638 IFS=$as_save_IFS
9639
9640 fi
9641 fi
9642 OBJDUMP=$ac_cv_prog_OBJDUMP
9643 if test -n "$OBJDUMP"; then
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9645 $as_echo "$OBJDUMP" >&6; }
9646 else
9647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9649 fi
9650
9651
9652   done
9653 fi
9654
9655 for ncn_progname in objdump; do
9656   if test -n "$ncn_tool_prefix"; then
9657     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9658 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 $as_echo_n "checking for $ac_word... " >&6; }
9661 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9662   $as_echo_n "(cached) " >&6
9663 else
9664   if test -n "$OBJDUMP"; then
9665   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9666 else
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 for as_dir in $PATH
9669 do
9670   IFS=$as_save_IFS
9671   test -z "$as_dir" && as_dir=.
9672     for ac_exec_ext in '' $ac_executable_extensions; do
9673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9674     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676     break 2
9677   fi
9678 done
9679   done
9680 IFS=$as_save_IFS
9681
9682 fi
9683 fi
9684 OBJDUMP=$ac_cv_prog_OBJDUMP
9685 if test -n "$OBJDUMP"; then
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9687 $as_echo "$OBJDUMP" >&6; }
9688 else
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 fi
9692
9693
9694   fi
9695   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9696     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697 set dummy ${ncn_progname}; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   if test -n "$OBJDUMP"; then
9704   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9705 else
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9708 do
9709   IFS=$as_save_IFS
9710   test -z "$as_dir" && as_dir=.
9711     for ac_exec_ext in '' $ac_executable_extensions; do
9712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713     ac_cv_prog_OBJDUMP="${ncn_progname}"
9714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715     break 2
9716   fi
9717 done
9718   done
9719 IFS=$as_save_IFS
9720
9721 fi
9722 fi
9723 OBJDUMP=$ac_cv_prog_OBJDUMP
9724 if test -n "$OBJDUMP"; then
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9726 $as_echo "$OBJDUMP" >&6; }
9727 else
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731
9732
9733   fi
9734   test -n "$ac_cv_prog_OBJDUMP" && break
9735 done
9736
9737 if test -z "$ac_cv_prog_OBJDUMP" ; then
9738   set dummy objdump
9739   if test $build = $host ; then
9740     OBJDUMP="$2"
9741   else
9742     OBJDUMP="${ncn_tool_prefix}$2"
9743   fi
9744 fi
9745
9746
9747
9748 if test -n "$READELF"; then
9749   ac_cv_prog_READELF=$READELF
9750 elif test -n "$ac_cv_prog_READELF"; then
9751   READELF=$ac_cv_prog_READELF
9752 fi
9753
9754 if test -n "$ac_cv_prog_READELF"; then
9755   for ncn_progname in readelf; do
9756     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9757 set dummy ${ncn_progname}; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_READELF+set}" = set; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   if test -n "$READELF"; then
9764   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9765 else
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9768 do
9769   IFS=$as_save_IFS
9770   test -z "$as_dir" && as_dir=.
9771     for ac_exec_ext in '' $ac_executable_extensions; do
9772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773     ac_cv_prog_READELF="${ncn_progname}"
9774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775     break 2
9776   fi
9777 done
9778   done
9779 IFS=$as_save_IFS
9780
9781 fi
9782 fi
9783 READELF=$ac_cv_prog_READELF
9784 if test -n "$READELF"; then
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9786 $as_echo "$READELF" >&6; }
9787 else
9788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9790 fi
9791
9792
9793   done
9794 fi
9795
9796 for ncn_progname in readelf; do
9797   if test -n "$ncn_tool_prefix"; then
9798     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9799 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if test "${ac_cv_prog_READELF+set}" = set; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805   if test -n "$READELF"; then
9806   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9807 else
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9810 do
9811   IFS=$as_save_IFS
9812   test -z "$as_dir" && as_dir=.
9813     for ac_exec_ext in '' $ac_executable_extensions; do
9814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817     break 2
9818   fi
9819 done
9820   done
9821 IFS=$as_save_IFS
9822
9823 fi
9824 fi
9825 READELF=$ac_cv_prog_READELF
9826 if test -n "$READELF"; then
9827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9828 $as_echo "$READELF" >&6; }
9829 else
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9833
9834
9835   fi
9836   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9837     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838 set dummy ${ncn_progname}; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if test "${ac_cv_prog_READELF+set}" = set; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   if test -n "$READELF"; then
9845   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852     for ac_exec_ext in '' $ac_executable_extensions; do
9853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9854     ac_cv_prog_READELF="${ncn_progname}"
9855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9856     break 2
9857   fi
9858 done
9859   done
9860 IFS=$as_save_IFS
9861
9862 fi
9863 fi
9864 READELF=$ac_cv_prog_READELF
9865 if test -n "$READELF"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9867 $as_echo "$READELF" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872
9873
9874   fi
9875   test -n "$ac_cv_prog_READELF" && break
9876 done
9877
9878 if test -z "$ac_cv_prog_READELF" ; then
9879   set dummy readelf
9880   if test $build = $host ; then
9881     READELF="$2"
9882   else
9883     READELF="${ncn_tool_prefix}$2"
9884   fi
9885 fi
9886
9887
9888
9889
9890
9891
9892 # Target tools.
9893
9894 # Check whether --with-build-time-tools was given.
9895 if test "${with_build_time_tools+set}" = set; then :
9896   withval=$with_build_time_tools; case x"$withval" in
9897      x/*) ;;
9898      *)
9899        with_build_time_tools=
9900        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9901 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9902        ;;
9903    esac
9904 else
9905   with_build_time_tools=
9906 fi
9907
9908
9909
9910
9911 if test -n "$CC_FOR_TARGET"; then
9912   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9913 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9914   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9915 fi
9916
9917 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9918   for ncn_progname in cc gcc; do
9919     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9920 set dummy ${ncn_progname}; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926   if test -n "$CC_FOR_TARGET"; then
9927   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9928 else
9929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9931 do
9932   IFS=$as_save_IFS
9933   test -z "$as_dir" && as_dir=.
9934     for ac_exec_ext in '' $ac_executable_extensions; do
9935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9936     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938     break 2
9939   fi
9940 done
9941   done
9942 IFS=$as_save_IFS
9943
9944 fi
9945 fi
9946 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9947 if test -n "$CC_FOR_TARGET"; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9949 $as_echo "$CC_FOR_TARGET" >&6; }
9950 else
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 fi
9954
9955
9956   done
9957 fi
9958
9959 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9960   for ncn_progname in cc gcc; do
9961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9962 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9963     if test -x $with_build_time_tools/${ncn_progname}; then
9964       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9966 $as_echo "yes" >&6; }
9967       break
9968     else
9969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971     fi
9972   done
9973 fi
9974
9975 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9976   for ncn_progname in cc gcc; do
9977     if test -n "$ncn_target_tool_prefix"; then
9978       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9979 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985   if test -n "$CC_FOR_TARGET"; then
9986   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9987 else
9988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9990 do
9991   IFS=$as_save_IFS
9992   test -z "$as_dir" && as_dir=.
9993     for ac_exec_ext in '' $ac_executable_extensions; do
9994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9995     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997     break 2
9998   fi
9999 done
10000   done
10001 IFS=$as_save_IFS
10002
10003 fi
10004 fi
10005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10006 if test -n "$CC_FOR_TARGET"; then
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10008 $as_echo "$CC_FOR_TARGET" >&6; }
10009 else
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10012 fi
10013
10014
10015     fi
10016     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10017       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10018 set dummy ${ncn_progname}; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   if test -n "$CC_FOR_TARGET"; then
10025   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030   IFS=$as_save_IFS
10031   test -z "$as_dir" && as_dir=.
10032     for ac_exec_ext in '' $ac_executable_extensions; do
10033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036     break 2
10037   fi
10038 done
10039   done
10040 IFS=$as_save_IFS
10041
10042 fi
10043 fi
10044 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10045 if test -n "$CC_FOR_TARGET"; then
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10047 $as_echo "$CC_FOR_TARGET" >&6; }
10048 else
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10051 fi
10052
10053
10054     fi
10055     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10056   done
10057 fi
10058
10059 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10060   set dummy cc gcc
10061   if test $build = $target ; then
10062     CC_FOR_TARGET="$2"
10063   else
10064     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10065   fi
10066 else
10067   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10068 fi
10069
10070
10071
10072 if test -n "$CXX_FOR_TARGET"; then
10073   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10074 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10075   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10076 fi
10077
10078 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10079   for ncn_progname in c++ g++ cxx gxx; do
10080     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10081 set dummy ${ncn_progname}; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10085   $as_echo_n "(cached) " >&6
10086 else
10087   if test -n "$CXX_FOR_TARGET"; then
10088   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10092 do
10093   IFS=$as_save_IFS
10094   test -z "$as_dir" && as_dir=.
10095     for ac_exec_ext in '' $ac_executable_extensions; do
10096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099     break 2
10100   fi
10101 done
10102   done
10103 IFS=$as_save_IFS
10104
10105 fi
10106 fi
10107 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10108 if test -n "$CXX_FOR_TARGET"; then
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10110 $as_echo "$CXX_FOR_TARGET" >&6; }
10111 else
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115
10116
10117   done
10118 fi
10119
10120 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10121   for ncn_progname in c++ g++ cxx gxx; do
10122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10123 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10124     if test -x $with_build_time_tools/${ncn_progname}; then
10125       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10127 $as_echo "yes" >&6; }
10128       break
10129     else
10130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132     fi
10133   done
10134 fi
10135
10136 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10137   for ncn_progname in c++ g++ cxx gxx; do
10138     if test -n "$ncn_target_tool_prefix"; then
10139       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10140 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   if test -n "$CXX_FOR_TARGET"; then
10147   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10148 else
10149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10151 do
10152   IFS=$as_save_IFS
10153   test -z "$as_dir" && as_dir=.
10154     for ac_exec_ext in '' $ac_executable_extensions; do
10155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10156     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158     break 2
10159   fi
10160 done
10161   done
10162 IFS=$as_save_IFS
10163
10164 fi
10165 fi
10166 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10167 if test -n "$CXX_FOR_TARGET"; then
10168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10169 $as_echo "$CXX_FOR_TARGET" >&6; }
10170 else
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172 $as_echo "no" >&6; }
10173 fi
10174
10175
10176     fi
10177     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10178       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10179 set dummy ${ncn_progname}; ac_word=$2
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181 $as_echo_n "checking for $ac_word... " >&6; }
10182 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   if test -n "$CXX_FOR_TARGET"; then
10186   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10187 else
10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189 for as_dir in $PATH
10190 do
10191   IFS=$as_save_IFS
10192   test -z "$as_dir" && as_dir=.
10193     for ac_exec_ext in '' $ac_executable_extensions; do
10194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10195     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197     break 2
10198   fi
10199 done
10200   done
10201 IFS=$as_save_IFS
10202
10203 fi
10204 fi
10205 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10206 if test -n "$CXX_FOR_TARGET"; then
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10208 $as_echo "$CXX_FOR_TARGET" >&6; }
10209 else
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 fi
10213
10214
10215     fi
10216     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10217   done
10218 fi
10219
10220 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10221   set dummy c++ g++ cxx gxx
10222   if test $build = $target ; then
10223     CXX_FOR_TARGET="$2"
10224   else
10225     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10226   fi
10227 else
10228   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10229 fi
10230
10231
10232
10233 if test -n "$GCC_FOR_TARGET"; then
10234   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10235 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10236   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10237 fi
10238
10239 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10240   for ncn_progname in gcc; do
10241     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10242 set dummy ${ncn_progname}; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   if test -n "$GCC_FOR_TARGET"; then
10249   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10250 else
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256     for ac_exec_ext in '' $ac_executable_extensions; do
10257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260     break 2
10261   fi
10262 done
10263   done
10264 IFS=$as_save_IFS
10265
10266 fi
10267 fi
10268 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10269 if test -n "$GCC_FOR_TARGET"; then
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10271 $as_echo "$GCC_FOR_TARGET" >&6; }
10272 else
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10275 fi
10276
10277
10278   done
10279 fi
10280
10281 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10282   for ncn_progname in gcc; do
10283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10284 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10285     if test -x $with_build_time_tools/${ncn_progname}; then
10286       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288 $as_echo "yes" >&6; }
10289       break
10290     else
10291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10293     fi
10294   done
10295 fi
10296
10297 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10298   for ncn_progname in gcc; do
10299     if test -n "$ncn_target_tool_prefix"; then
10300       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   if test -n "$GCC_FOR_TARGET"; then
10308   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10309 else
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10312 do
10313   IFS=$as_save_IFS
10314   test -z "$as_dir" && as_dir=.
10315     for ac_exec_ext in '' $ac_executable_extensions; do
10316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10317     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10319     break 2
10320   fi
10321 done
10322   done
10323 IFS=$as_save_IFS
10324
10325 fi
10326 fi
10327 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10328 if test -n "$GCC_FOR_TARGET"; then
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10330 $as_echo "$GCC_FOR_TARGET" >&6; }
10331 else
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10334 fi
10335
10336
10337     fi
10338     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10339       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_progname}; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   if test -n "$GCC_FOR_TARGET"; then
10347   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352   IFS=$as_save_IFS
10353   test -z "$as_dir" && as_dir=.
10354     for ac_exec_ext in '' $ac_executable_extensions; do
10355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358     break 2
10359   fi
10360 done
10361   done
10362 IFS=$as_save_IFS
10363
10364 fi
10365 fi
10366 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10367 if test -n "$GCC_FOR_TARGET"; then
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10369 $as_echo "$GCC_FOR_TARGET" >&6; }
10370 else
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10373 fi
10374
10375
10376     fi
10377     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10378   done
10379 fi
10380
10381 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10382   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10383 else
10384   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10385 fi
10386
10387
10388
10389 if test -n "$GCJ_FOR_TARGET"; then
10390   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10391 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10392   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10393 fi
10394
10395 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396   for ncn_progname in gcj; do
10397     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10398 set dummy ${ncn_progname}; ac_word=$2
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10400 $as_echo_n "checking for $ac_word... " >&6; }
10401 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10402   $as_echo_n "(cached) " >&6
10403 else
10404   if test -n "$GCJ_FOR_TARGET"; then
10405   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10406 else
10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10408 for as_dir in $PATH
10409 do
10410   IFS=$as_save_IFS
10411   test -z "$as_dir" && as_dir=.
10412     for ac_exec_ext in '' $ac_executable_extensions; do
10413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10414     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10416     break 2
10417   fi
10418 done
10419   done
10420 IFS=$as_save_IFS
10421
10422 fi
10423 fi
10424 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10425 if test -n "$GCJ_FOR_TARGET"; then
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10427 $as_echo "$GCJ_FOR_TARGET" >&6; }
10428 else
10429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430 $as_echo "no" >&6; }
10431 fi
10432
10433
10434   done
10435 fi
10436
10437 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10438   for ncn_progname in gcj; do
10439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10440 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10441     if test -x $with_build_time_tools/${ncn_progname}; then
10442       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10444 $as_echo "yes" >&6; }
10445       break
10446     else
10447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10449     fi
10450   done
10451 fi
10452
10453 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10454   for ncn_progname in gcj; do
10455     if test -n "$ncn_target_tool_prefix"; then
10456       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10457 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459 $as_echo_n "checking for $ac_word... " >&6; }
10460 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   if test -n "$GCJ_FOR_TARGET"; then
10464   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10465 else
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469   IFS=$as_save_IFS
10470   test -z "$as_dir" && as_dir=.
10471     for ac_exec_ext in '' $ac_executable_extensions; do
10472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475     break 2
10476   fi
10477 done
10478   done
10479 IFS=$as_save_IFS
10480
10481 fi
10482 fi
10483 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10484 if test -n "$GCJ_FOR_TARGET"; then
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10486 $as_echo "$GCJ_FOR_TARGET" >&6; }
10487 else
10488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490 fi
10491
10492
10493     fi
10494     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10495       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10496 set dummy ${ncn_progname}; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10500   $as_echo_n "(cached) " >&6
10501 else
10502   if test -n "$GCJ_FOR_TARGET"; then
10503   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10504 else
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10507 do
10508   IFS=$as_save_IFS
10509   test -z "$as_dir" && as_dir=.
10510     for ac_exec_ext in '' $ac_executable_extensions; do
10511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514     break 2
10515   fi
10516 done
10517   done
10518 IFS=$as_save_IFS
10519
10520 fi
10521 fi
10522 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10523 if test -n "$GCJ_FOR_TARGET"; then
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10525 $as_echo "$GCJ_FOR_TARGET" >&6; }
10526 else
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10529 fi
10530
10531
10532     fi
10533     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10534   done
10535 fi
10536
10537 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10538   set dummy gcj
10539   if test $build = $target ; then
10540     GCJ_FOR_TARGET="$2"
10541   else
10542     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10543   fi
10544 else
10545   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10546 fi
10547
10548
10549
10550 if test -n "$GFORTRAN_FOR_TARGET"; then
10551   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10552 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10553   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10554 fi
10555
10556 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557   for ncn_progname in gfortran; do
10558     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10559 set dummy ${ncn_progname}; ac_word=$2
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 $as_echo_n "checking for $ac_word... " >&6; }
10562 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   if test -n "$GFORTRAN_FOR_TARGET"; then
10566   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10567 else
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573     for ac_exec_ext in '' $ac_executable_extensions; do
10574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580   done
10581 IFS=$as_save_IFS
10582
10583 fi
10584 fi
10585 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10586 if test -n "$GFORTRAN_FOR_TARGET"; then
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10588 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10589 else
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10592 fi
10593
10594
10595   done
10596 fi
10597
10598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10599   for ncn_progname in gfortran; do
10600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10601 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10602     if test -x $with_build_time_tools/${ncn_progname}; then
10603       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605 $as_echo "yes" >&6; }
10606       break
10607     else
10608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610     fi
10611   done
10612 fi
10613
10614 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10615   for ncn_progname in gfortran; do
10616     if test -n "$ncn_target_tool_prefix"; then
10617       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10618 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 $as_echo_n "checking for $ac_word... " >&6; }
10621 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   if test -n "$GFORTRAN_FOR_TARGET"; then
10625   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10626 else
10627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628 for as_dir in $PATH
10629 do
10630   IFS=$as_save_IFS
10631   test -z "$as_dir" && as_dir=.
10632     for ac_exec_ext in '' $ac_executable_extensions; do
10633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10634     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636     break 2
10637   fi
10638 done
10639   done
10640 IFS=$as_save_IFS
10641
10642 fi
10643 fi
10644 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10645 if test -n "$GFORTRAN_FOR_TARGET"; then
10646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10647 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10648 else
10649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10651 fi
10652
10653
10654     fi
10655     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10656       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10657 set dummy ${ncn_progname}; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   if test -n "$GFORTRAN_FOR_TARGET"; then
10664   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669   IFS=$as_save_IFS
10670   test -z "$as_dir" && as_dir=.
10671     for ac_exec_ext in '' $ac_executable_extensions; do
10672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675     break 2
10676   fi
10677 done
10678   done
10679 IFS=$as_save_IFS
10680
10681 fi
10682 fi
10683 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10684 if test -n "$GFORTRAN_FOR_TARGET"; then
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10686 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10687 else
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691
10692
10693     fi
10694     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10695   done
10696 fi
10697
10698 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10699   set dummy gfortran
10700   if test $build = $target ; then
10701     GFORTRAN_FOR_TARGET="$2"
10702   else
10703     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10704   fi
10705 else
10706   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10707 fi
10708
10709
10710
10711 if test -n "$GOC_FOR_TARGET"; then
10712   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10713 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10714   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10715 fi
10716
10717 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10718   for ncn_progname in gccgo; do
10719     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720 set dummy ${ncn_progname}; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   if test -n "$GOC_FOR_TARGET"; then
10727   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734     for ac_exec_ext in '' $ac_executable_extensions; do
10735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10736     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741   done
10742 IFS=$as_save_IFS
10743
10744 fi
10745 fi
10746 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10747 if test -n "$GOC_FOR_TARGET"; then
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10749 $as_echo "$GOC_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   done
10757 fi
10758
10759 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10760   for ncn_progname in gccgo; do
10761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10763     if test -x $with_build_time_tools/${ncn_progname}; then
10764       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; }
10767       break
10768     else
10769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771     fi
10772   done
10773 fi
10774
10775 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10776   for ncn_progname in gccgo; do
10777     if test -n "$ncn_target_tool_prefix"; then
10778       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10779 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   if test -n "$GOC_FOR_TARGET"; then
10786   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10787 else
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10790 do
10791   IFS=$as_save_IFS
10792   test -z "$as_dir" && as_dir=.
10793     for ac_exec_ext in '' $ac_executable_extensions; do
10794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797     break 2
10798   fi
10799 done
10800   done
10801 IFS=$as_save_IFS
10802
10803 fi
10804 fi
10805 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10806 if test -n "$GOC_FOR_TARGET"; then
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10808 $as_echo "$GOC_FOR_TARGET" >&6; }
10809 else
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812 fi
10813
10814
10815     fi
10816     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10817       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10818 set dummy ${ncn_progname}; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   if test -n "$GOC_FOR_TARGET"; then
10825   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10826 else
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10829 do
10830   IFS=$as_save_IFS
10831   test -z "$as_dir" && as_dir=.
10832     for ac_exec_ext in '' $ac_executable_extensions; do
10833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836     break 2
10837   fi
10838 done
10839   done
10840 IFS=$as_save_IFS
10841
10842 fi
10843 fi
10844 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10845 if test -n "$GOC_FOR_TARGET"; then
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10847 $as_echo "$GOC_FOR_TARGET" >&6; }
10848 else
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10851 fi
10852
10853
10854     fi
10855     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10856   done
10857 fi
10858
10859 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10860   set dummy gccgo
10861   if test $build = $target ; then
10862     GOC_FOR_TARGET="$2"
10863   else
10864     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10865   fi
10866 else
10867   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10868 fi
10869
10870
10871
10872 cat > conftest.c << \EOF
10873 #ifdef __GNUC__
10874   gcc_yay;
10875 #endif
10876 EOF
10877 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10878   have_gcc_for_target=yes
10879 else
10880   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10881   have_gcc_for_target=no
10882 fi
10883 rm conftest.c
10884
10885
10886
10887
10888 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10889   if test -n "$with_build_time_tools"; then
10890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10891 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10892     if test -x $with_build_time_tools/ar; then
10893       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10894       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10896 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
10902     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10903     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10904     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10905   fi
10906 fi
10907 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10908   # Extract the first word of "ar", so it can be a program name with args.
10909 set dummy ar; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10913   $as_echo_n "(cached) " >&6
10914 else
10915   case $AR_FOR_TARGET in
10916   [\\/]* | ?:[\\/]*)
10917   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10918   ;;
10919   *)
10920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $gcc_cv_tool_dirs
10922 do
10923   IFS=$as_save_IFS
10924   test -z "$as_dir" && as_dir=.
10925     for ac_exec_ext in '' $ac_executable_extensions; do
10926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929     break 2
10930   fi
10931 done
10932   done
10933 IFS=$as_save_IFS
10934
10935   ;;
10936 esac
10937 fi
10938 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10939 if test -n "$AR_FOR_TARGET"; then
10940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10941 $as_echo "$AR_FOR_TARGET" >&6; }
10942 else
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10945 fi
10946
10947
10948 fi
10949 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10950
10951
10952 if test -n "$AR_FOR_TARGET"; then
10953   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10954 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10955   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10956 fi
10957
10958 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10959   for ncn_progname in ar; do
10960     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961 set dummy ${ncn_progname}; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10965   $as_echo_n "(cached) " >&6
10966 else
10967   if test -n "$AR_FOR_TARGET"; then
10968   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10969 else
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973   IFS=$as_save_IFS
10974   test -z "$as_dir" && as_dir=.
10975     for ac_exec_ext in '' $ac_executable_extensions; do
10976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979     break 2
10980   fi
10981 done
10982   done
10983 IFS=$as_save_IFS
10984
10985 fi
10986 fi
10987 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10988 if test -n "$AR_FOR_TARGET"; then
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10990 $as_echo "$AR_FOR_TARGET" >&6; }
10991 else
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995
10996
10997   done
10998 fi
10999
11000 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11001   for ncn_progname in ar; do
11002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11003 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11004     if test -x $with_build_time_tools/${ncn_progname}; then
11005       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007 $as_echo "yes" >&6; }
11008       break
11009     else
11010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012     fi
11013   done
11014 fi
11015
11016 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11017   for ncn_progname in ar; do
11018     if test -n "$ncn_target_tool_prefix"; then
11019       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11020 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022 $as_echo_n "checking for $ac_word... " >&6; }
11023 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11024   $as_echo_n "(cached) " >&6
11025 else
11026   if test -n "$AR_FOR_TARGET"; then
11027   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11028 else
11029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11036     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043
11044 fi
11045 fi
11046 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11047 if test -n "$AR_FOR_TARGET"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11049 $as_echo "$AR_FOR_TARGET" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054
11055
11056     fi
11057     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11058       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059 set dummy ${ncn_progname}; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11063   $as_echo_n "(cached) " >&6
11064 else
11065   if test -n "$AR_FOR_TARGET"; then
11066   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11067 else
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11070 do
11071   IFS=$as_save_IFS
11072   test -z "$as_dir" && as_dir=.
11073     for ac_exec_ext in '' $ac_executable_extensions; do
11074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11075     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077     break 2
11078   fi
11079 done
11080   done
11081 IFS=$as_save_IFS
11082
11083 fi
11084 fi
11085 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11086 if test -n "$AR_FOR_TARGET"; then
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11088 $as_echo "$AR_FOR_TARGET" >&6; }
11089 else
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092 fi
11093
11094
11095     fi
11096     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11097   done
11098 fi
11099
11100 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11101   set dummy ar
11102   if test $build = $target ; then
11103     AR_FOR_TARGET="$2"
11104   else
11105     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11106   fi
11107 else
11108   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11109 fi
11110
11111 else
11112   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11113 fi
11114
11115
11116
11117
11118 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11119   if test -n "$with_build_time_tools"; then
11120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11121 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11122     if test -x $with_build_time_tools/as; then
11123       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11124       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11126 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
11132     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11133     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11134     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11135   fi
11136 fi
11137 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11138   # Extract the first word of "as", so it can be a program name with args.
11139 set dummy as; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   case $AS_FOR_TARGET in
11146   [\\/]* | ?:[\\/]*)
11147   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11148   ;;
11149   *)
11150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $gcc_cv_tool_dirs
11152 do
11153   IFS=$as_save_IFS
11154   test -z "$as_dir" && as_dir=.
11155     for ac_exec_ext in '' $ac_executable_extensions; do
11156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11157     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159     break 2
11160   fi
11161 done
11162   done
11163 IFS=$as_save_IFS
11164
11165   ;;
11166 esac
11167 fi
11168 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11169 if test -n "$AS_FOR_TARGET"; then
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11171 $as_echo "$AS_FOR_TARGET" >&6; }
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178 fi
11179 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11180
11181
11182 if test -n "$AS_FOR_TARGET"; then
11183   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11184 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11185   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11186 fi
11187
11188 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11189   for ncn_progname in as; do
11190     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11191 set dummy ${ncn_progname}; ac_word=$2
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 $as_echo_n "checking for $ac_word... " >&6; }
11194 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11195   $as_echo_n "(cached) " >&6
11196 else
11197   if test -n "$AS_FOR_TARGET"; then
11198   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11199 else
11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203   IFS=$as_save_IFS
11204   test -z "$as_dir" && as_dir=.
11205     for ac_exec_ext in '' $ac_executable_extensions; do
11206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11207     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209     break 2
11210   fi
11211 done
11212   done
11213 IFS=$as_save_IFS
11214
11215 fi
11216 fi
11217 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11218 if test -n "$AS_FOR_TARGET"; then
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11220 $as_echo "$AS_FOR_TARGET" >&6; }
11221 else
11222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; }
11224 fi
11225
11226
11227   done
11228 fi
11229
11230 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11231   for ncn_progname in as; do
11232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11233 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11234     if test -x $with_build_time_tools/${ncn_progname}; then
11235       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237 $as_echo "yes" >&6; }
11238       break
11239     else
11240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11242     fi
11243   done
11244 fi
11245
11246 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11247   for ncn_progname in as; do
11248     if test -n "$ncn_target_tool_prefix"; then
11249       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11250 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if test -n "$AS_FOR_TARGET"; then
11257   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273
11274 fi
11275 fi
11276 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11277 if test -n "$AS_FOR_TARGET"; then
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11279 $as_echo "$AS_FOR_TARGET" >&6; }
11280 else
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284
11285
11286     fi
11287     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11288       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11289 set dummy ${ncn_progname}; ac_word=$2
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11291 $as_echo_n "checking for $ac_word... " >&6; }
11292 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   if test -n "$AS_FOR_TARGET"; then
11296   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11297 else
11298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301   IFS=$as_save_IFS
11302   test -z "$as_dir" && as_dir=.
11303     for ac_exec_ext in '' $ac_executable_extensions; do
11304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11305     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307     break 2
11308   fi
11309 done
11310   done
11311 IFS=$as_save_IFS
11312
11313 fi
11314 fi
11315 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11316 if test -n "$AS_FOR_TARGET"; then
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11318 $as_echo "$AS_FOR_TARGET" >&6; }
11319 else
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11322 fi
11323
11324
11325     fi
11326     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11327   done
11328 fi
11329
11330 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11331   set dummy as
11332   if test $build = $target ; then
11333     AS_FOR_TARGET="$2"
11334   else
11335     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11336   fi
11337 else
11338   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11339 fi
11340
11341 else
11342   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11343 fi
11344
11345
11346
11347
11348 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11349   if test -n "$with_build_time_tools"; then
11350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11351 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11352     if test -x $with_build_time_tools/dlltool; then
11353       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11354       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11356 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
11362     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11363     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11364     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11365   fi
11366 fi
11367 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11368   # Extract the first word of "dlltool", so it can be a program name with args.
11369 set dummy dlltool; ac_word=$2
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371 $as_echo_n "checking for $ac_word... " >&6; }
11372 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   case $DLLTOOL_FOR_TARGET in
11376   [\\/]* | ?:[\\/]*)
11377   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11378   ;;
11379   *)
11380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $gcc_cv_tool_dirs
11382 do
11383   IFS=$as_save_IFS
11384   test -z "$as_dir" && as_dir=.
11385     for ac_exec_ext in '' $ac_executable_extensions; do
11386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11387     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389     break 2
11390   fi
11391 done
11392   done
11393 IFS=$as_save_IFS
11394
11395   ;;
11396 esac
11397 fi
11398 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11399 if test -n "$DLLTOOL_FOR_TARGET"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11401 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406
11407
11408 fi
11409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11410
11411
11412 if test -n "$DLLTOOL_FOR_TARGET"; then
11413   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11414 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11415   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11416 fi
11417
11418 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419   for ncn_progname in dlltool; do
11420     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11421 set dummy ${ncn_progname}; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   if test -n "$DLLTOOL_FOR_TARGET"; then
11428   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11429 else
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11432 do
11433   IFS=$as_save_IFS
11434   test -z "$as_dir" && as_dir=.
11435     for ac_exec_ext in '' $ac_executable_extensions; do
11436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11437     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439     break 2
11440   fi
11441 done
11442   done
11443 IFS=$as_save_IFS
11444
11445 fi
11446 fi
11447 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11448 if test -n "$DLLTOOL_FOR_TARGET"; then
11449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11450 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11451 else
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453 $as_echo "no" >&6; }
11454 fi
11455
11456
11457   done
11458 fi
11459
11460 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11461   for ncn_progname in dlltool; do
11462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11463 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11464     if test -x $with_build_time_tools/${ncn_progname}; then
11465       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11466       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467 $as_echo "yes" >&6; }
11468       break
11469     else
11470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472     fi
11473   done
11474 fi
11475
11476 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11477   for ncn_progname in dlltool; do
11478     if test -n "$ncn_target_tool_prefix"; then
11479       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11484   $as_echo_n "(cached) " >&6
11485 else
11486   if test -n "$DLLTOOL_FOR_TARGET"; then
11487   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11507 if test -n "$DLLTOOL_FOR_TARGET"; then
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11509 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11510 else
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516     fi
11517     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11518       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11519 set dummy ${ncn_progname}; ac_word=$2
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521 $as_echo_n "checking for $ac_word... " >&6; }
11522 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   if test -n "$DLLTOOL_FOR_TARGET"; then
11526   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11527 else
11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529 for as_dir in $PATH
11530 do
11531   IFS=$as_save_IFS
11532   test -z "$as_dir" && as_dir=.
11533     for ac_exec_ext in '' $ac_executable_extensions; do
11534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537     break 2
11538   fi
11539 done
11540   done
11541 IFS=$as_save_IFS
11542
11543 fi
11544 fi
11545 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11546 if test -n "$DLLTOOL_FOR_TARGET"; then
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11548 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11549 else
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 fi
11553
11554
11555     fi
11556     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11557   done
11558 fi
11559
11560 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11561   set dummy dlltool
11562   if test $build = $target ; then
11563     DLLTOOL_FOR_TARGET="$2"
11564   else
11565     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11566   fi
11567 else
11568   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11569 fi
11570
11571 else
11572   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11573 fi
11574
11575
11576
11577
11578 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11579   if test -n "$with_build_time_tools"; then
11580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11581 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11582     if test -x $with_build_time_tools/ld; then
11583       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11584       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11586 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
11592     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11593     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11594     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11595   fi
11596 fi
11597 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11598   # Extract the first word of "ld", so it can be a program name with args.
11599 set dummy ld; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   case $LD_FOR_TARGET in
11606   [\\/]* | ?:[\\/]*)
11607   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11608   ;;
11609   *)
11610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $gcc_cv_tool_dirs
11612 do
11613   IFS=$as_save_IFS
11614   test -z "$as_dir" && as_dir=.
11615     for ac_exec_ext in '' $ac_executable_extensions; do
11616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619     break 2
11620   fi
11621 done
11622   done
11623 IFS=$as_save_IFS
11624
11625   ;;
11626 esac
11627 fi
11628 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11629 if test -n "$LD_FOR_TARGET"; then
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11631 $as_echo "$LD_FOR_TARGET" >&6; }
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636
11637
11638 fi
11639 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11640
11641
11642 if test -n "$LD_FOR_TARGET"; then
11643   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11644 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11645   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11646 fi
11647
11648 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11649   for ncn_progname in ld; do
11650     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651 set dummy ${ncn_progname}; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657   if test -n "$LD_FOR_TARGET"; then
11658   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663   IFS=$as_save_IFS
11664   test -z "$as_dir" && as_dir=.
11665     for ac_exec_ext in '' $ac_executable_extensions; do
11666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669     break 2
11670   fi
11671 done
11672   done
11673 IFS=$as_save_IFS
11674
11675 fi
11676 fi
11677 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11678 if test -n "$LD_FOR_TARGET"; then
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11680 $as_echo "$LD_FOR_TARGET" >&6; }
11681 else
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684 fi
11685
11686
11687   done
11688 fi
11689
11690 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11691   for ncn_progname in ld; do
11692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11694     if test -x $with_build_time_tools/${ncn_progname}; then
11695       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697 $as_echo "yes" >&6; }
11698       break
11699     else
11700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702     fi
11703   done
11704 fi
11705
11706 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11707   for ncn_progname in ld; do
11708     if test -n "$ncn_target_tool_prefix"; then
11709       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   if test -n "$LD_FOR_TARGET"; then
11717   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733
11734 fi
11735 fi
11736 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11737 if test -n "$LD_FOR_TARGET"; then
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11739 $as_echo "$LD_FOR_TARGET" >&6; }
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744
11745
11746     fi
11747     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11748       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749 set dummy ${ncn_progname}; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11753   $as_echo_n "(cached) " >&6
11754 else
11755   if test -n "$LD_FOR_TARGET"; then
11756   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11760 do
11761   IFS=$as_save_IFS
11762   test -z "$as_dir" && as_dir=.
11763     for ac_exec_ext in '' $ac_executable_extensions; do
11764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11765     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767     break 2
11768   fi
11769 done
11770   done
11771 IFS=$as_save_IFS
11772
11773 fi
11774 fi
11775 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11776 if test -n "$LD_FOR_TARGET"; then
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11778 $as_echo "$LD_FOR_TARGET" >&6; }
11779 else
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 fi
11783
11784
11785     fi
11786     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11787   done
11788 fi
11789
11790 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11791   set dummy ld
11792   if test $build = $target ; then
11793     LD_FOR_TARGET="$2"
11794   else
11795     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11796   fi
11797 else
11798   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11799 fi
11800
11801 else
11802   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11803 fi
11804
11805
11806
11807
11808 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11809   if test -n "$with_build_time_tools"; then
11810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11811 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11812     if test -x $with_build_time_tools/lipo; then
11813       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11814       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11816 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
11822     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11823     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11824     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11825   fi
11826 fi
11827 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11828   # Extract the first word of "lipo", so it can be a program name with args.
11829 set dummy lipo; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   case $LIPO_FOR_TARGET in
11836   [\\/]* | ?:[\\/]*)
11837   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11838   ;;
11839   *)
11840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $gcc_cv_tool_dirs
11842 do
11843   IFS=$as_save_IFS
11844   test -z "$as_dir" && as_dir=.
11845     for ac_exec_ext in '' $ac_executable_extensions; do
11846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849     break 2
11850   fi
11851 done
11852   done
11853 IFS=$as_save_IFS
11854
11855   ;;
11856 esac
11857 fi
11858 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11859 if test -n "$LIPO_FOR_TARGET"; then
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11861 $as_echo "$LIPO_FOR_TARGET" >&6; }
11862 else
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867
11868 fi
11869 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11870
11871
11872 if test -n "$LIPO_FOR_TARGET"; then
11873   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11874 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11875   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11876 fi
11877
11878 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879   for ncn_progname in lipo; do
11880     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11885   $as_echo_n "(cached) " >&6
11886 else
11887   if test -n "$LIPO_FOR_TARGET"; then
11888   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11889 else
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11892 do
11893   IFS=$as_save_IFS
11894   test -z "$as_dir" && as_dir=.
11895     for ac_exec_ext in '' $ac_executable_extensions; do
11896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899     break 2
11900   fi
11901 done
11902   done
11903 IFS=$as_save_IFS
11904
11905 fi
11906 fi
11907 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11908 if test -n "$LIPO_FOR_TARGET"; then
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11910 $as_echo "$LIPO_FOR_TARGET" >&6; }
11911 else
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915
11916
11917   done
11918 fi
11919
11920 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11921   for ncn_progname in lipo; do
11922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11923 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11924     if test -x $with_build_time_tools/${ncn_progname}; then
11925       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928       break
11929     else
11930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932     fi
11933   done
11934 fi
11935
11936 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11937   for ncn_progname in lipo; do
11938     if test -n "$ncn_target_tool_prefix"; then
11939       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11940 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if test -n "$LIPO_FOR_TARGET"; then
11947   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963
11964 fi
11965 fi
11966 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11967 if test -n "$LIPO_FOR_TARGET"; then
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11969 $as_echo "$LIPO_FOR_TARGET" >&6; }
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975
11976     fi
11977     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11978       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11979 set dummy ${ncn_progname}; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11983   $as_echo_n "(cached) " >&6
11984 else
11985   if test -n "$LIPO_FOR_TARGET"; then
11986   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993     for ac_exec_ext in '' $ac_executable_extensions; do
11994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11995     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000   done
12001 IFS=$as_save_IFS
12002
12003 fi
12004 fi
12005 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12006 if test -n "$LIPO_FOR_TARGET"; then
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12008 $as_echo "$LIPO_FOR_TARGET" >&6; }
12009 else
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013
12014
12015     fi
12016     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12017   done
12018 fi
12019
12020 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12021   set dummy lipo
12022   if test $build = $target ; then
12023     LIPO_FOR_TARGET="$2"
12024   else
12025     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12026   fi
12027 else
12028   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12029 fi
12030
12031 else
12032   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12033 fi
12034
12035
12036
12037
12038 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12039   if test -n "$with_build_time_tools"; then
12040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12041 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12042     if test -x $with_build_time_tools/nm; then
12043       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12044       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12045       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12046 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
12052     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12053     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12054     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12055   fi
12056 fi
12057 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12058   # Extract the first word of "nm", so it can be a program name with args.
12059 set dummy nm; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   case $NM_FOR_TARGET in
12066   [\\/]* | ?:[\\/]*)
12067   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12068   ;;
12069   *)
12070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $gcc_cv_tool_dirs
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075     for ac_exec_ext in '' $ac_executable_extensions; do
12076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082   done
12083 IFS=$as_save_IFS
12084
12085   ;;
12086 esac
12087 fi
12088 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12089 if test -n "$NM_FOR_TARGET"; then
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12091 $as_echo "$NM_FOR_TARGET" >&6; }
12092 else
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095 fi
12096
12097
12098 fi
12099 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12100
12101
12102 if test -n "$NM_FOR_TARGET"; then
12103   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12104 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12105   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12106 fi
12107
12108 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12109   for ncn_progname in nm; do
12110     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   if test -n "$NM_FOR_TARGET"; then
12118   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12119 else
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12122 do
12123   IFS=$as_save_IFS
12124   test -z "$as_dir" && as_dir=.
12125     for ac_exec_ext in '' $ac_executable_extensions; do
12126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12127     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129     break 2
12130   fi
12131 done
12132   done
12133 IFS=$as_save_IFS
12134
12135 fi
12136 fi
12137 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12138 if test -n "$NM_FOR_TARGET"; then
12139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12140 $as_echo "$NM_FOR_TARGET" >&6; }
12141 else
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144 fi
12145
12146
12147   done
12148 fi
12149
12150 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12151   for ncn_progname in nm; do
12152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12153 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12154     if test -x $with_build_time_tools/${ncn_progname}; then
12155       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157 $as_echo "yes" >&6; }
12158       break
12159     else
12160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12162     fi
12163   done
12164 fi
12165
12166 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12167   for ncn_progname in nm; do
12168     if test -n "$ncn_target_tool_prefix"; then
12169       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12170 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   if test -n "$NM_FOR_TARGET"; then
12177   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191   done
12192 IFS=$as_save_IFS
12193
12194 fi
12195 fi
12196 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12197 if test -n "$NM_FOR_TARGET"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12199 $as_echo "$NM_FOR_TARGET" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206     fi
12207     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12208       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12209 set dummy ${ncn_progname}; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   if test -n "$NM_FOR_TARGET"; then
12216   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12217 else
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12220 do
12221   IFS=$as_save_IFS
12222   test -z "$as_dir" && as_dir=.
12223     for ac_exec_ext in '' $ac_executable_extensions; do
12224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12225     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227     break 2
12228   fi
12229 done
12230   done
12231 IFS=$as_save_IFS
12232
12233 fi
12234 fi
12235 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12236 if test -n "$NM_FOR_TARGET"; then
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12238 $as_echo "$NM_FOR_TARGET" >&6; }
12239 else
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242 fi
12243
12244
12245     fi
12246     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12247   done
12248 fi
12249
12250 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12251   set dummy nm
12252   if test $build = $target ; then
12253     NM_FOR_TARGET="$2"
12254   else
12255     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12256   fi
12257 else
12258   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12259 fi
12260
12261 else
12262   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12263 fi
12264
12265
12266
12267
12268 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12269   if test -n "$with_build_time_tools"; then
12270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12271 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12272     if test -x $with_build_time_tools/objcopy; then
12273       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12274       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12276 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
12282     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12283     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12284     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12285   fi
12286 fi
12287 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12288   # Extract the first word of "objcopy", so it can be a program name with args.
12289 set dummy objcopy; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12293   $as_echo_n "(cached) " >&6
12294 else
12295   case $OBJCOPY_FOR_TARGET in
12296   [\\/]* | ?:[\\/]*)
12297   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12298   ;;
12299   *)
12300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $gcc_cv_tool_dirs
12302 do
12303   IFS=$as_save_IFS
12304   test -z "$as_dir" && as_dir=.
12305     for ac_exec_ext in '' $ac_executable_extensions; do
12306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12307     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309     break 2
12310   fi
12311 done
12312   done
12313 IFS=$as_save_IFS
12314
12315   ;;
12316 esac
12317 fi
12318 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12319 if test -n "$OBJCOPY_FOR_TARGET"; then
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12321 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12322 else
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328 fi
12329 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12330
12331
12332 if test -n "$OBJCOPY_FOR_TARGET"; then
12333   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12334 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12335   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12336 fi
12337
12338 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12339   for ncn_progname in objcopy; do
12340     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347   if test -n "$OBJCOPY_FOR_TARGET"; then
12348   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353   IFS=$as_save_IFS
12354   test -z "$as_dir" && as_dir=.
12355     for ac_exec_ext in '' $ac_executable_extensions; do
12356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359     break 2
12360   fi
12361 done
12362   done
12363 IFS=$as_save_IFS
12364
12365 fi
12366 fi
12367 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12368 if test -n "$OBJCOPY_FOR_TARGET"; then
12369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12370 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12371 else
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374 fi
12375
12376
12377   done
12378 fi
12379
12380 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12381   for ncn_progname in objcopy; do
12382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12383 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12384     if test -x $with_build_time_tools/${ncn_progname}; then
12385       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387 $as_echo "yes" >&6; }
12388       break
12389     else
12390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392     fi
12393   done
12394 fi
12395
12396 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12397   for ncn_progname in objcopy; do
12398     if test -n "$ncn_target_tool_prefix"; then
12399       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   if test -n "$OBJCOPY_FOR_TARGET"; then
12407   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12411 do
12412   IFS=$as_save_IFS
12413   test -z "$as_dir" && as_dir=.
12414     for ac_exec_ext in '' $ac_executable_extensions; do
12415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418     break 2
12419   fi
12420 done
12421   done
12422 IFS=$as_save_IFS
12423
12424 fi
12425 fi
12426 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12427 if test -n "$OBJCOPY_FOR_TARGET"; then
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12429 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12430 else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436     fi
12437     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12438       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12439 set dummy ${ncn_progname}; ac_word=$2
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12441 $as_echo_n "checking for $ac_word... " >&6; }
12442 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445   if test -n "$OBJCOPY_FOR_TARGET"; then
12446   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12447 else
12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449 for as_dir in $PATH
12450 do
12451   IFS=$as_save_IFS
12452   test -z "$as_dir" && as_dir=.
12453     for ac_exec_ext in '' $ac_executable_extensions; do
12454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12455     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12457     break 2
12458   fi
12459 done
12460   done
12461 IFS=$as_save_IFS
12462
12463 fi
12464 fi
12465 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12466 if test -n "$OBJCOPY_FOR_TARGET"; then
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12468 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12469 else
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473
12474
12475     fi
12476     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12477   done
12478 fi
12479
12480 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12481   set dummy objcopy
12482   if test $build = $target ; then
12483     OBJCOPY_FOR_TARGET="$2"
12484   else
12485     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12486   fi
12487 else
12488   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12489 fi
12490
12491 else
12492   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12493 fi
12494
12495
12496
12497
12498 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12499   if test -n "$with_build_time_tools"; then
12500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12501 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12502     if test -x $with_build_time_tools/objdump; then
12503       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12504       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12506 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
12512     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12513     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12514     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12515   fi
12516 fi
12517 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12518   # Extract the first word of "objdump", so it can be a program name with args.
12519 set dummy objdump; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525   case $OBJDUMP_FOR_TARGET in
12526   [\\/]* | ?:[\\/]*)
12527   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12528   ;;
12529   *)
12530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $gcc_cv_tool_dirs
12532 do
12533   IFS=$as_save_IFS
12534   test -z "$as_dir" && as_dir=.
12535     for ac_exec_ext in '' $ac_executable_extensions; do
12536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12537     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539     break 2
12540   fi
12541 done
12542   done
12543 IFS=$as_save_IFS
12544
12545   ;;
12546 esac
12547 fi
12548 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12549 if test -n "$OBJDUMP_FOR_TARGET"; then
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12551 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12552 else
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556
12557
12558 fi
12559 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12560
12561
12562 if test -n "$OBJDUMP_FOR_TARGET"; then
12563   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12564 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12565   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12566 fi
12567
12568 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12569   for ncn_progname in objdump; do
12570     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12571 set dummy ${ncn_progname}; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12575   $as_echo_n "(cached) " >&6
12576 else
12577   if test -n "$OBJDUMP_FOR_TARGET"; then
12578   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12579 else
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12582 do
12583   IFS=$as_save_IFS
12584   test -z "$as_dir" && as_dir=.
12585     for ac_exec_ext in '' $ac_executable_extensions; do
12586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12587     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589     break 2
12590   fi
12591 done
12592   done
12593 IFS=$as_save_IFS
12594
12595 fi
12596 fi
12597 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12598 if test -n "$OBJDUMP_FOR_TARGET"; then
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12600 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12601 else
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12604 fi
12605
12606
12607   done
12608 fi
12609
12610 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12611   for ncn_progname in objdump; do
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12613 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12614     if test -x $with_build_time_tools/${ncn_progname}; then
12615       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618       break
12619     else
12620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622     fi
12623   done
12624 fi
12625
12626 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12627   for ncn_progname in objdump; do
12628     if test -n "$ncn_target_tool_prefix"; then
12629       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12630 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   if test -n "$OBJDUMP_FOR_TARGET"; then
12637   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12638 else
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642   IFS=$as_save_IFS
12643   test -z "$as_dir" && as_dir=.
12644     for ac_exec_ext in '' $ac_executable_extensions; do
12645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648     break 2
12649   fi
12650 done
12651   done
12652 IFS=$as_save_IFS
12653
12654 fi
12655 fi
12656 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12657 if test -n "$OBJDUMP_FOR_TARGET"; then
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12659 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12660 else
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 fi
12664
12665
12666     fi
12667     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12668       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12669 set dummy ${ncn_progname}; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675   if test -n "$OBJDUMP_FOR_TARGET"; then
12676   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12677 else
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12680 do
12681   IFS=$as_save_IFS
12682   test -z "$as_dir" && as_dir=.
12683     for ac_exec_ext in '' $ac_executable_extensions; do
12684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687     break 2
12688   fi
12689 done
12690   done
12691 IFS=$as_save_IFS
12692
12693 fi
12694 fi
12695 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12696 if test -n "$OBJDUMP_FOR_TARGET"; then
12697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12698 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12699 else
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; }
12702 fi
12703
12704
12705     fi
12706     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12707   done
12708 fi
12709
12710 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12711   set dummy objdump
12712   if test $build = $target ; then
12713     OBJDUMP_FOR_TARGET="$2"
12714   else
12715     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12716   fi
12717 else
12718   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12719 fi
12720
12721 else
12722   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12723 fi
12724
12725
12726
12727
12728 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12729   if test -n "$with_build_time_tools"; then
12730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12731 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12732     if test -x $with_build_time_tools/ranlib; then
12733       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12734       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12736 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
12742     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12743     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12744     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12745   fi
12746 fi
12747 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12748   # Extract the first word of "ranlib", so it can be a program name with args.
12749 set dummy ranlib; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   case $RANLIB_FOR_TARGET in
12756   [\\/]* | ?:[\\/]*)
12757   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12758   ;;
12759   *)
12760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $gcc_cv_tool_dirs
12762 do
12763   IFS=$as_save_IFS
12764   test -z "$as_dir" && as_dir=.
12765     for ac_exec_ext in '' $ac_executable_extensions; do
12766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769     break 2
12770   fi
12771 done
12772   done
12773 IFS=$as_save_IFS
12774
12775   ;;
12776 esac
12777 fi
12778 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12779 if test -n "$RANLIB_FOR_TARGET"; then
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12781 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12782 else
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 fi
12786
12787
12788 fi
12789 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12790
12791
12792 if test -n "$RANLIB_FOR_TARGET"; then
12793   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12794 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12795   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12796 fi
12797
12798 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12799   for ncn_progname in ranlib; do
12800     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12801 set dummy ${ncn_progname}; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803 $as_echo_n "checking for $ac_word... " >&6; }
12804 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   if test -n "$RANLIB_FOR_TARGET"; then
12808   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12809 else
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12812 do
12813   IFS=$as_save_IFS
12814   test -z "$as_dir" && as_dir=.
12815     for ac_exec_ext in '' $ac_executable_extensions; do
12816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12817     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819     break 2
12820   fi
12821 done
12822   done
12823 IFS=$as_save_IFS
12824
12825 fi
12826 fi
12827 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12828 if test -n "$RANLIB_FOR_TARGET"; then
12829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12830 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12831 else
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12834 fi
12835
12836
12837   done
12838 fi
12839
12840 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12841   for ncn_progname in ranlib; do
12842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12843 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12844     if test -x $with_build_time_tools/${ncn_progname}; then
12845       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; }
12848       break
12849     else
12850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852     fi
12853   done
12854 fi
12855
12856 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12857   for ncn_progname in ranlib; do
12858     if test -n "$ncn_target_tool_prefix"; then
12859       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12860 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   if test -n "$RANLIB_FOR_TARGET"; then
12867   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874     for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881   done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12887 if test -n "$RANLIB_FOR_TARGET"; then
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12889 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12890 else
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894
12895
12896     fi
12897     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12898       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12899 set dummy ${ncn_progname}; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12903   $as_echo_n "(cached) " >&6
12904 else
12905   if test -n "$RANLIB_FOR_TARGET"; then
12906   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12910 do
12911   IFS=$as_save_IFS
12912   test -z "$as_dir" && as_dir=.
12913     for ac_exec_ext in '' $ac_executable_extensions; do
12914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917     break 2
12918   fi
12919 done
12920   done
12921 IFS=$as_save_IFS
12922
12923 fi
12924 fi
12925 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12926 if test -n "$RANLIB_FOR_TARGET"; then
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12928 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12929 else
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12932 fi
12933
12934
12935     fi
12936     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12937   done
12938 fi
12939
12940 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12941   set dummy ranlib
12942   if test $build = $target ; then
12943     RANLIB_FOR_TARGET="$2"
12944   else
12945     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12946   fi
12947 else
12948   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12949 fi
12950
12951 else
12952   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12953 fi
12954
12955
12956
12957
12958 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12959   if test -n "$with_build_time_tools"; then
12960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12961 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12962     if test -x $with_build_time_tools/readelf; then
12963       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12964       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12966 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
12972     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12973     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12974     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12975   fi
12976 fi
12977 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12978   # Extract the first word of "readelf", so it can be a program name with args.
12979 set dummy readelf; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   case $READELF_FOR_TARGET in
12986   [\\/]* | ?:[\\/]*)
12987   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12988   ;;
12989   *)
12990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $gcc_cv_tool_dirs
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995     for ac_exec_ext in '' $ac_executable_extensions; do
12996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002   done
13003 IFS=$as_save_IFS
13004
13005   ;;
13006 esac
13007 fi
13008 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13009 if test -n "$READELF_FOR_TARGET"; then
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13011 $as_echo "$READELF_FOR_TARGET" >&6; }
13012 else
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016
13017
13018 fi
13019 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13020
13021
13022 if test -n "$READELF_FOR_TARGET"; then
13023   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13024 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13025   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13026 fi
13027
13028 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13029   for ncn_progname in readelf; do
13030     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13031 set dummy ${ncn_progname}; ac_word=$2
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 $as_echo_n "checking for $ac_word... " >&6; }
13034 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13035   $as_echo_n "(cached) " >&6
13036 else
13037   if test -n "$READELF_FOR_TARGET"; then
13038   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13039 else
13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041 for as_dir in $PATH
13042 do
13043   IFS=$as_save_IFS
13044   test -z "$as_dir" && as_dir=.
13045     for ac_exec_ext in '' $ac_executable_extensions; do
13046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13047     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13049     break 2
13050   fi
13051 done
13052   done
13053 IFS=$as_save_IFS
13054
13055 fi
13056 fi
13057 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13058 if test -n "$READELF_FOR_TARGET"; then
13059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13060 $as_echo "$READELF_FOR_TARGET" >&6; }
13061 else
13062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063 $as_echo "no" >&6; }
13064 fi
13065
13066
13067   done
13068 fi
13069
13070 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13071   for ncn_progname in readelf; do
13072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13073 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13074     if test -x $with_build_time_tools/${ncn_progname}; then
13075       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13076       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13077 $as_echo "yes" >&6; }
13078       break
13079     else
13080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13082     fi
13083   done
13084 fi
13085
13086 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13087   for ncn_progname in readelf; do
13088     if test -n "$ncn_target_tool_prefix"; then
13089       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13090 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092 $as_echo_n "checking for $ac_word... " >&6; }
13093 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13094   $as_echo_n "(cached) " >&6
13095 else
13096   if test -n "$READELF_FOR_TARGET"; then
13097   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13098 else
13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100 for as_dir in $PATH
13101 do
13102   IFS=$as_save_IFS
13103   test -z "$as_dir" && as_dir=.
13104     for ac_exec_ext in '' $ac_executable_extensions; do
13105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108     break 2
13109   fi
13110 done
13111   done
13112 IFS=$as_save_IFS
13113
13114 fi
13115 fi
13116 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13117 if test -n "$READELF_FOR_TARGET"; then
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13119 $as_echo "$READELF_FOR_TARGET" >&6; }
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124
13125
13126     fi
13127     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13128       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13129 set dummy ${ncn_progname}; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13133   $as_echo_n "(cached) " >&6
13134 else
13135   if test -n "$READELF_FOR_TARGET"; then
13136   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141   IFS=$as_save_IFS
13142   test -z "$as_dir" && as_dir=.
13143     for ac_exec_ext in '' $ac_executable_extensions; do
13144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147     break 2
13148   fi
13149 done
13150   done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13156 if test -n "$READELF_FOR_TARGET"; then
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13158 $as_echo "$READELF_FOR_TARGET" >&6; }
13159 else
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164
13165     fi
13166     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13167   done
13168 fi
13169
13170 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13171   set dummy readelf
13172   if test $build = $target ; then
13173     READELF_FOR_TARGET="$2"
13174   else
13175     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13176   fi
13177 else
13178   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13179 fi
13180
13181 else
13182   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13183 fi
13184
13185
13186
13187
13188 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13189   if test -n "$with_build_time_tools"; then
13190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13191 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13192     if test -x $with_build_time_tools/strip; then
13193       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13194       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13196 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
13202     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13203     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13204     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13205   fi
13206 fi
13207 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13208   # Extract the first word of "strip", so it can be a program name with args.
13209 set dummy strip; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   case $STRIP_FOR_TARGET in
13216   [\\/]* | ?:[\\/]*)
13217   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13218   ;;
13219   *)
13220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $gcc_cv_tool_dirs
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232   done
13233 IFS=$as_save_IFS
13234
13235   ;;
13236 esac
13237 fi
13238 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13239 if test -n "$STRIP_FOR_TARGET"; then
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13241 $as_echo "$STRIP_FOR_TARGET" >&6; }
13242 else
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246
13247
13248 fi
13249 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13250
13251
13252 if test -n "$STRIP_FOR_TARGET"; then
13253   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13254 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13255   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13256 fi
13257
13258 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13259   for ncn_progname in strip; do
13260     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13261 set dummy ${ncn_progname}; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   if test -n "$STRIP_FOR_TARGET"; then
13268   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13269 else
13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271 for as_dir in $PATH
13272 do
13273   IFS=$as_save_IFS
13274   test -z "$as_dir" && as_dir=.
13275     for ac_exec_ext in '' $ac_executable_extensions; do
13276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13277     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13279     break 2
13280   fi
13281 done
13282   done
13283 IFS=$as_save_IFS
13284
13285 fi
13286 fi
13287 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13288 if test -n "$STRIP_FOR_TARGET"; then
13289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13290 $as_echo "$STRIP_FOR_TARGET" >&6; }
13291 else
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13294 fi
13295
13296
13297   done
13298 fi
13299
13300 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13301   for ncn_progname in strip; do
13302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13303 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13304     if test -x $with_build_time_tools/${ncn_progname}; then
13305       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13308       break
13309     else
13310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13312     fi
13313   done
13314 fi
13315
13316 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13317   for ncn_progname in strip; do
13318     if test -n "$ncn_target_tool_prefix"; then
13319       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13320 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   if test -n "$STRIP_FOR_TARGET"; then
13327   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13328 else
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332   IFS=$as_save_IFS
13333   test -z "$as_dir" && as_dir=.
13334     for ac_exec_ext in '' $ac_executable_extensions; do
13335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13336     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338     break 2
13339   fi
13340 done
13341   done
13342 IFS=$as_save_IFS
13343
13344 fi
13345 fi
13346 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13347 if test -n "$STRIP_FOR_TARGET"; then
13348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13349 $as_echo "$STRIP_FOR_TARGET" >&6; }
13350 else
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13353 fi
13354
13355
13356     fi
13357     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13358       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13359 set dummy ${ncn_progname}; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13363   $as_echo_n "(cached) " >&6
13364 else
13365   if test -n "$STRIP_FOR_TARGET"; then
13366   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13367 else
13368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13369 for as_dir in $PATH
13370 do
13371   IFS=$as_save_IFS
13372   test -z "$as_dir" && as_dir=.
13373     for ac_exec_ext in '' $ac_executable_extensions; do
13374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13375     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13377     break 2
13378   fi
13379 done
13380   done
13381 IFS=$as_save_IFS
13382
13383 fi
13384 fi
13385 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13386 if test -n "$STRIP_FOR_TARGET"; then
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13388 $as_echo "$STRIP_FOR_TARGET" >&6; }
13389 else
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13391 $as_echo "no" >&6; }
13392 fi
13393
13394
13395     fi
13396     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13397   done
13398 fi
13399
13400 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13401   set dummy strip
13402   if test $build = $target ; then
13403     STRIP_FOR_TARGET="$2"
13404   else
13405     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13406   fi
13407 else
13408   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13409 fi
13410
13411 else
13412   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13413 fi
13414
13415
13416
13417
13418 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13419   if test -n "$with_build_time_tools"; then
13420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13421 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13422     if test -x $with_build_time_tools/windres; then
13423       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13424       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13426 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
13432     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13433     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13434     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13435   fi
13436 fi
13437 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13438   # Extract the first word of "windres", so it can be a program name with args.
13439 set dummy windres; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   case $WINDRES_FOR_TARGET in
13446   [\\/]* | ?:[\\/]*)
13447   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13448   ;;
13449   *)
13450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451 for as_dir in $gcc_cv_tool_dirs
13452 do
13453   IFS=$as_save_IFS
13454   test -z "$as_dir" && as_dir=.
13455     for ac_exec_ext in '' $ac_executable_extensions; do
13456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459     break 2
13460   fi
13461 done
13462   done
13463 IFS=$as_save_IFS
13464
13465   ;;
13466 esac
13467 fi
13468 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13469 if test -n "$WINDRES_FOR_TARGET"; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13471 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13472 else
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13475 fi
13476
13477
13478 fi
13479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13480
13481
13482 if test -n "$WINDRES_FOR_TARGET"; then
13483   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13484 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13485   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13486 fi
13487
13488 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13489   for ncn_progname in windres; do
13490     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13491 set dummy ${ncn_progname}; ac_word=$2
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13493 $as_echo_n "checking for $ac_word... " >&6; }
13494 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13495   $as_echo_n "(cached) " >&6
13496 else
13497   if test -n "$WINDRES_FOR_TARGET"; then
13498   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13499 else
13500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501 for as_dir in $PATH
13502 do
13503   IFS=$as_save_IFS
13504   test -z "$as_dir" && as_dir=.
13505     for ac_exec_ext in '' $ac_executable_extensions; do
13506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13507     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13509     break 2
13510   fi
13511 done
13512   done
13513 IFS=$as_save_IFS
13514
13515 fi
13516 fi
13517 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13518 if test -n "$WINDRES_FOR_TARGET"; then
13519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13520 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13521 else
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13524 fi
13525
13526
13527   done
13528 fi
13529
13530 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13531   for ncn_progname in windres; do
13532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13533 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13534     if test -x $with_build_time_tools/${ncn_progname}; then
13535       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13537 $as_echo "yes" >&6; }
13538       break
13539     else
13540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13542     fi
13543   done
13544 fi
13545
13546 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13547   for ncn_progname in windres; do
13548     if test -n "$ncn_target_tool_prefix"; then
13549       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   if test -n "$WINDRES_FOR_TARGET"; then
13557   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13561 do
13562   IFS=$as_save_IFS
13563   test -z "$as_dir" && as_dir=.
13564     for ac_exec_ext in '' $ac_executable_extensions; do
13565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568     break 2
13569   fi
13570 done
13571   done
13572 IFS=$as_save_IFS
13573
13574 fi
13575 fi
13576 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13577 if test -n "$WINDRES_FOR_TARGET"; then
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13579 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13580 else
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585
13586     fi
13587     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13588       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13589 set dummy ${ncn_progname}; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591 $as_echo_n "checking for $ac_word... " >&6; }
13592 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13593   $as_echo_n "(cached) " >&6
13594 else
13595   if test -n "$WINDRES_FOR_TARGET"; then
13596   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13597 else
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13600 do
13601   IFS=$as_save_IFS
13602   test -z "$as_dir" && as_dir=.
13603     for ac_exec_ext in '' $ac_executable_extensions; do
13604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607     break 2
13608   fi
13609 done
13610   done
13611 IFS=$as_save_IFS
13612
13613 fi
13614 fi
13615 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13616 if test -n "$WINDRES_FOR_TARGET"; then
13617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13618 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13619 else
13620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 fi
13623
13624
13625     fi
13626     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13627   done
13628 fi
13629
13630 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13631   set dummy windres
13632   if test $build = $target ; then
13633     WINDRES_FOR_TARGET="$2"
13634   else
13635     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13636   fi
13637 else
13638   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13639 fi
13640
13641 else
13642   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13643 fi
13644
13645
13646
13647
13648 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13649   if test -n "$with_build_time_tools"; then
13650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13651 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13652     if test -x $with_build_time_tools/windmc; then
13653       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13654       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13656 $as_echo "$ac_cv_path_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   elif test $build != $host && test $have_gcc_for_target = yes; then
13662     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13663     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13664     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13665   fi
13666 fi
13667 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13668   # Extract the first word of "windmc", so it can be a program name with args.
13669 set dummy windmc; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   case $WINDMC_FOR_TARGET in
13676   [\\/]* | ?:[\\/]*)
13677   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13678   ;;
13679   *)
13680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $gcc_cv_tool_dirs
13682 do
13683   IFS=$as_save_IFS
13684   test -z "$as_dir" && as_dir=.
13685     for ac_exec_ext in '' $ac_executable_extensions; do
13686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13687     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689     break 2
13690   fi
13691 done
13692   done
13693 IFS=$as_save_IFS
13694
13695   ;;
13696 esac
13697 fi
13698 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13699 if test -n "$WINDMC_FOR_TARGET"; then
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13701 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13702 else
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705 fi
13706
13707
13708 fi
13709 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13710
13711
13712 if test -n "$WINDMC_FOR_TARGET"; then
13713   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13714 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13715   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13716 fi
13717
13718 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13719   for ncn_progname in windmc; do
13720     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13721 set dummy ${ncn_progname}; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13725   $as_echo_n "(cached) " >&6
13726 else
13727   if test -n "$WINDMC_FOR_TARGET"; then
13728   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13729 else
13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13732 do
13733   IFS=$as_save_IFS
13734   test -z "$as_dir" && as_dir=.
13735     for ac_exec_ext in '' $ac_executable_extensions; do
13736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13737     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13739     break 2
13740   fi
13741 done
13742   done
13743 IFS=$as_save_IFS
13744
13745 fi
13746 fi
13747 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13748 if test -n "$WINDMC_FOR_TARGET"; then
13749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13750 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13751 else
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13754 fi
13755
13756
13757   done
13758 fi
13759
13760 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13761   for ncn_progname in windmc; do
13762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13763 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13764     if test -x $with_build_time_tools/${ncn_progname}; then
13765       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768       break
13769     else
13770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772     fi
13773   done
13774 fi
13775
13776 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13777   for ncn_progname in windmc; do
13778     if test -n "$ncn_target_tool_prefix"; then
13779       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13780 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13784   $as_echo_n "(cached) " >&6
13785 else
13786   if test -n "$WINDMC_FOR_TARGET"; then
13787   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13788 else
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792   IFS=$as_save_IFS
13793   test -z "$as_dir" && as_dir=.
13794     for ac_exec_ext in '' $ac_executable_extensions; do
13795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13796     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798     break 2
13799   fi
13800 done
13801   done
13802 IFS=$as_save_IFS
13803
13804 fi
13805 fi
13806 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13807 if test -n "$WINDMC_FOR_TARGET"; then
13808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13809 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13810 else
13811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13813 fi
13814
13815
13816     fi
13817     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13818       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13819 set dummy ${ncn_progname}; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   if test -n "$WINDMC_FOR_TARGET"; then
13826   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13827 else
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13830 do
13831   IFS=$as_save_IFS
13832   test -z "$as_dir" && as_dir=.
13833     for ac_exec_ext in '' $ac_executable_extensions; do
13834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13835     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837     break 2
13838   fi
13839 done
13840   done
13841 IFS=$as_save_IFS
13842
13843 fi
13844 fi
13845 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13846 if test -n "$WINDMC_FOR_TARGET"; then
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13848 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13849 else
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13852 fi
13853
13854
13855     fi
13856     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13857   done
13858 fi
13859
13860 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13861   set dummy windmc
13862   if test $build = $target ; then
13863     WINDMC_FOR_TARGET="$2"
13864   else
13865     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13866   fi
13867 else
13868   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13869 fi
13870
13871 else
13872   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13873 fi
13874
13875
13876 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13879 $as_echo_n "checking where to find the target ar... " >&6; }
13880 if test "x${build}" != "x${host}" ; then
13881   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13882     # We already found the complete path
13883     ac_dir=`dirname $AR_FOR_TARGET`
13884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885 $as_echo "pre-installed in $ac_dir" >&6; }
13886   else
13887     # Canadian cross, just use what we found
13888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889 $as_echo "pre-installed" >&6; }
13890   fi
13891 else
13892   ok=yes
13893   case " ${configdirs} " in
13894     *" binutils "*) ;;
13895     *) ok=no ;;
13896   esac
13897
13898   if test $ok = yes; then
13899     # An in-tree tool is available and we can use it
13900     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902 $as_echo "just compiled" >&6; }
13903   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13904     # We already found the complete path
13905     ac_dir=`dirname $AR_FOR_TARGET`
13906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907 $as_echo "pre-installed in $ac_dir" >&6; }
13908   elif test "x$target" = "x$host"; then
13909     # We can use an host tool
13910     AR_FOR_TARGET='$(AR)'
13911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912 $as_echo "host tool" >&6; }
13913   else
13914     # We need a cross tool
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13917   fi
13918 fi
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13921 $as_echo_n "checking where to find the target as... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13924     # We already found the complete path
13925     ac_dir=`dirname $AS_FOR_TARGET`
13926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13928   else
13929     # Canadian cross, just use what we found
13930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13932   fi
13933 else
13934   ok=yes
13935   case " ${configdirs} " in
13936     *" gas "*) ;;
13937     *) ok=no ;;
13938   esac
13939
13940   if test $ok = yes; then
13941     # An in-tree tool is available and we can use it
13942     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13944 $as_echo "just compiled" >&6; }
13945   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13946     # We already found the complete path
13947     ac_dir=`dirname $AS_FOR_TARGET`
13948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13949 $as_echo "pre-installed in $ac_dir" >&6; }
13950   elif test "x$target" = "x$host"; then
13951     # We can use an host tool
13952     AS_FOR_TARGET='$(AS)'
13953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13954 $as_echo "host tool" >&6; }
13955   else
13956     # We need a cross tool
13957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958 $as_echo "pre-installed" >&6; }
13959   fi
13960 fi
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13963 $as_echo_n "checking where to find the target cc... " >&6; }
13964 if test "x${build}" != "x${host}" ; then
13965   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13966     # We already found the complete path
13967     ac_dir=`dirname $CC_FOR_TARGET`
13968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969 $as_echo "pre-installed in $ac_dir" >&6; }
13970   else
13971     # Canadian cross, just use what we found
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973 $as_echo "pre-installed" >&6; }
13974   fi
13975 else
13976   ok=yes
13977   case " ${configdirs} " in
13978     *" gcc "*) ;;
13979     *) ok=no ;;
13980   esac
13981
13982   if test $ok = yes; then
13983     # An in-tree tool is available and we can use it
13984     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986 $as_echo "just compiled" >&6; }
13987   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13988     # We already found the complete path
13989     ac_dir=`dirname $CC_FOR_TARGET`
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992   elif test "x$target" = "x$host"; then
13993     # We can use an host tool
13994     CC_FOR_TARGET='$(CC)'
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996 $as_echo "host tool" >&6; }
13997   else
13998     # We need a cross tool
13999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14001   fi
14002 fi
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14005 $as_echo_n "checking where to find the target c++... " >&6; }
14006 if test "x${build}" != "x${host}" ; then
14007   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14008     # We already found the complete path
14009     ac_dir=`dirname $CXX_FOR_TARGET`
14010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14012   else
14013     # Canadian cross, just use what we found
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14016   fi
14017 else
14018   ok=yes
14019   case " ${configdirs} " in
14020     *" gcc "*) ;;
14021     *) ok=no ;;
14022   esac
14023   case ,${enable_languages}, in
14024     *,c++,*) ;;
14025     *) ok=no ;;
14026   esac
14027   if test $ok = yes; then
14028     # An in-tree tool is available and we can use it
14029     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'
14030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031 $as_echo "just compiled" >&6; }
14032   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14033     # We already found the complete path
14034     ac_dir=`dirname $CXX_FOR_TARGET`
14035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036 $as_echo "pre-installed in $ac_dir" >&6; }
14037   elif test "x$target" = "x$host"; then
14038     # We can use an host tool
14039     CXX_FOR_TARGET='$(CXX)'
14040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041 $as_echo "host tool" >&6; }
14042   else
14043     # We need a cross tool
14044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045 $as_echo "pre-installed" >&6; }
14046   fi
14047 fi
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14050 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14051 if test "x${build}" != "x${host}" ; then
14052   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14053     # We already found the complete path
14054     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057   else
14058     # Canadian cross, just use what we found
14059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14061   fi
14062 else
14063   ok=yes
14064   case " ${configdirs} " in
14065     *" gcc "*) ;;
14066     *) ok=no ;;
14067   esac
14068   case ,${enable_languages}, in
14069     *,c++,*) ;;
14070     *) ok=no ;;
14071   esac
14072   if test $ok = yes; then
14073     # An in-tree tool is available and we can use it
14074     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'
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14078     # We already found the complete path
14079     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082   elif test "x$target" = "x$host"; then
14083     # We can use an host tool
14084     RAW_CXX_FOR_TARGET='$(CXX)'
14085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14087   else
14088     # We need a cross tool
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14091   fi
14092 fi
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14095 $as_echo_n "checking where to find the target dlltool... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14098     # We already found the complete path
14099     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14102   else
14103     # Canadian cross, just use what we found
14104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14106   fi
14107 else
14108   ok=yes
14109   case " ${configdirs} " in
14110     *" binutils "*) ;;
14111     *) ok=no ;;
14112   esac
14113
14114   if test $ok = yes; then
14115     # An in-tree tool is available and we can use it
14116     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14120     # We already found the complete path
14121     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124   elif test "x$target" = "x$host"; then
14125     # We can use an host tool
14126     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14129   else
14130     # We need a cross tool
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133   fi
14134 fi
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14137 $as_echo_n "checking where to find the target gcc... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14140     # We already found the complete path
14141     ac_dir=`dirname $GCC_FOR_TARGET`
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144   else
14145     # Canadian cross, just use what we found
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14148   fi
14149 else
14150   ok=yes
14151   case " ${configdirs} " in
14152     *" gcc "*) ;;
14153     *) ok=no ;;
14154   esac
14155
14156   if test $ok = yes; then
14157     # An in-tree tool is available and we can use it
14158     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14162     # We already found the complete path
14163     ac_dir=`dirname $GCC_FOR_TARGET`
14164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166   elif test "x$target" = "x$host"; then
14167     # We can use an host tool
14168     GCC_FOR_TARGET='$()'
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14171   else
14172     # We need a cross tool
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14175   fi
14176 fi
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14179 $as_echo_n "checking where to find the target gcj... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14182     # We already found the complete path
14183     ac_dir=`dirname $GCJ_FOR_TARGET`
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186   else
14187     # Canadian cross, just use what we found
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14190   fi
14191 else
14192   ok=yes
14193   case " ${configdirs} " in
14194     *" gcc "*) ;;
14195     *) ok=no ;;
14196   esac
14197   case ,${enable_languages}, in
14198     *,java,*) ;;
14199     *) ok=no ;;
14200   esac
14201   if test $ok = yes; then
14202     # An in-tree tool is available and we can use it
14203     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14205 $as_echo "just compiled" >&6; }
14206   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14207     # We already found the complete path
14208     ac_dir=`dirname $GCJ_FOR_TARGET`
14209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14210 $as_echo "pre-installed in $ac_dir" >&6; }
14211   elif test "x$target" = "x$host"; then
14212     # We can use an host tool
14213     GCJ_FOR_TARGET='$(GCJ)'
14214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14215 $as_echo "host tool" >&6; }
14216   else
14217     # We need a cross tool
14218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219 $as_echo "pre-installed" >&6; }
14220   fi
14221 fi
14222
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14224 $as_echo_n "checking where to find the target gfortran... " >&6; }
14225 if test "x${build}" != "x${host}" ; then
14226   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14227     # We already found the complete path
14228     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14231   else
14232     # Canadian cross, just use what we found
14233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234 $as_echo "pre-installed" >&6; }
14235   fi
14236 else
14237   ok=yes
14238   case " ${configdirs} " in
14239     *" gcc "*) ;;
14240     *) ok=no ;;
14241   esac
14242   case ,${enable_languages}, in
14243     *,fortran,*) ;;
14244     *) ok=no ;;
14245   esac
14246   if test $ok = yes; then
14247     # An in-tree tool is available and we can use it
14248     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14250 $as_echo "just compiled" >&6; }
14251   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14252     # We already found the complete path
14253     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14255 $as_echo "pre-installed in $ac_dir" >&6; }
14256   elif test "x$target" = "x$host"; then
14257     # We can use an host tool
14258     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14260 $as_echo "host tool" >&6; }
14261   else
14262     # We need a cross tool
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14264 $as_echo "pre-installed" >&6; }
14265   fi
14266 fi
14267
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14269 $as_echo_n "checking where to find the target gccgo... " >&6; }
14270 if test "x${build}" != "x${host}" ; then
14271   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14272     # We already found the complete path
14273     ac_dir=`dirname $GOC_FOR_TARGET`
14274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275 $as_echo "pre-installed in $ac_dir" >&6; }
14276   else
14277     # Canadian cross, just use what we found
14278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14279 $as_echo "pre-installed" >&6; }
14280   fi
14281 else
14282   ok=yes
14283   case " ${configdirs} " in
14284     *" gcc "*) ;;
14285     *) ok=no ;;
14286   esac
14287   case ,${enable_languages}, in
14288     *,go,*) ;;
14289     *) ok=no ;;
14290   esac
14291   if test $ok = yes; then
14292     # An in-tree tool is available and we can use it
14293     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295 $as_echo "just compiled" >&6; }
14296   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14297     # We already found the complete path
14298     ac_dir=`dirname $GOC_FOR_TARGET`
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301   elif test "x$target" = "x$host"; then
14302     # We can use an host tool
14303     GOC_FOR_TARGET='$(GOC)'
14304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305 $as_echo "host tool" >&6; }
14306   else
14307     # We need a cross tool
14308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309 $as_echo "pre-installed" >&6; }
14310   fi
14311 fi
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14314 $as_echo_n "checking where to find the target ld... " >&6; }
14315 if test "x${build}" != "x${host}" ; then
14316   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14317     # We already found the complete path
14318     ac_dir=`dirname $LD_FOR_TARGET`
14319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321   else
14322     # Canadian cross, just use what we found
14323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324 $as_echo "pre-installed" >&6; }
14325   fi
14326 else
14327   ok=yes
14328   case " ${configdirs} " in
14329     *" ld "*) ;;
14330     *) ok=no ;;
14331   esac
14332
14333   if test $ok = yes; then
14334     # An in-tree tool is available and we can use it
14335     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14339     # We already found the complete path
14340     ac_dir=`dirname $LD_FOR_TARGET`
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343   elif test "x$target" = "x$host"; then
14344     # We can use an host tool
14345     LD_FOR_TARGET='$(LD)'
14346     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14348   else
14349     # We need a cross tool
14350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14352   fi
14353 fi
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14356 $as_echo_n "checking where to find the target lipo... " >&6; }
14357 if test "x${build}" != "x${host}" ; then
14358   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14359     # We already found the complete path
14360     ac_dir=`dirname $LIPO_FOR_TARGET`
14361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14363   else
14364     # Canadian cross, just use what we found
14365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366 $as_echo "pre-installed" >&6; }
14367   fi
14368 else
14369   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14370     # We already found the complete path
14371     ac_dir=`dirname $LIPO_FOR_TARGET`
14372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14373 $as_echo "pre-installed in $ac_dir" >&6; }
14374   elif test "x$target" = "x$host"; then
14375     # We can use an host tool
14376     LIPO_FOR_TARGET='$(LIPO)'
14377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14378 $as_echo "host tool" >&6; }
14379   else
14380     # We need a cross tool
14381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14382 $as_echo "pre-installed" >&6; }
14383   fi
14384 fi
14385
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14387 $as_echo_n "checking where to find the target nm... " >&6; }
14388 if test "x${build}" != "x${host}" ; then
14389   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14390     # We already found the complete path
14391     ac_dir=`dirname $NM_FOR_TARGET`
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14393 $as_echo "pre-installed in $ac_dir" >&6; }
14394   else
14395     # Canadian cross, just use what we found
14396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14397 $as_echo "pre-installed" >&6; }
14398   fi
14399 else
14400   ok=yes
14401   case " ${configdirs} " in
14402     *" binutils "*) ;;
14403     *) ok=no ;;
14404   esac
14405
14406   if test $ok = yes; then
14407     # An in-tree tool is available and we can use it
14408     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14410 $as_echo "just compiled" >&6; }
14411   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14412     # We already found the complete path
14413     ac_dir=`dirname $NM_FOR_TARGET`
14414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415 $as_echo "pre-installed in $ac_dir" >&6; }
14416   elif test "x$target" = "x$host"; then
14417     # We can use an host tool
14418     NM_FOR_TARGET='$(NM)'
14419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14420 $as_echo "host tool" >&6; }
14421   else
14422     # We need a cross tool
14423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14425   fi
14426 fi
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14429 $as_echo_n "checking where to find the target objcopy... " >&6; }
14430 if test "x${build}" != "x${host}" ; then
14431   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14432     # We already found the complete path
14433     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435 $as_echo "pre-installed in $ac_dir" >&6; }
14436   else
14437     # Canadian cross, just use what we found
14438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439 $as_echo "pre-installed" >&6; }
14440   fi
14441 else
14442   ok=yes
14443   case " ${configdirs} " in
14444     *" binutils "*) ;;
14445     *) ok=no ;;
14446   esac
14447
14448   if test $ok = yes; then
14449     # An in-tree tool is available and we can use it
14450     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452 $as_echo "just compiled" >&6; }
14453   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14454     # We already found the complete path
14455     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457 $as_echo "pre-installed in $ac_dir" >&6; }
14458   elif test "x$target" = "x$host"; then
14459     # We can use an host tool
14460     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462 $as_echo "host tool" >&6; }
14463   else
14464     # We need a cross tool
14465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14467   fi
14468 fi
14469
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14471 $as_echo_n "checking where to find the target objdump... " >&6; }
14472 if test "x${build}" != "x${host}" ; then
14473   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14474     # We already found the complete path
14475     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477 $as_echo "pre-installed in $ac_dir" >&6; }
14478   else
14479     # Canadian cross, just use what we found
14480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14482   fi
14483 else
14484   ok=yes
14485   case " ${configdirs} " in
14486     *" binutils "*) ;;
14487     *) ok=no ;;
14488   esac
14489
14490   if test $ok = yes; then
14491     # An in-tree tool is available and we can use it
14492     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494 $as_echo "just compiled" >&6; }
14495   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14496     # We already found the complete path
14497     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499 $as_echo "pre-installed in $ac_dir" >&6; }
14500   elif test "x$target" = "x$host"; then
14501     # We can use an host tool
14502     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504 $as_echo "host tool" >&6; }
14505   else
14506     # We need a cross tool
14507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508 $as_echo "pre-installed" >&6; }
14509   fi
14510 fi
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14513 $as_echo_n "checking where to find the target ranlib... " >&6; }
14514 if test "x${build}" != "x${host}" ; then
14515   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14516     # We already found the complete path
14517     ac_dir=`dirname $RANLIB_FOR_TARGET`
14518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519 $as_echo "pre-installed in $ac_dir" >&6; }
14520   else
14521     # Canadian cross, just use what we found
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14524   fi
14525 else
14526   ok=yes
14527   case " ${configdirs} " in
14528     *" binutils "*) ;;
14529     *) ok=no ;;
14530   esac
14531
14532   if test $ok = yes; then
14533     # An in-tree tool is available and we can use it
14534     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536 $as_echo "just compiled" >&6; }
14537   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14538     # We already found the complete path
14539     ac_dir=`dirname $RANLIB_FOR_TARGET`
14540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541 $as_echo "pre-installed in $ac_dir" >&6; }
14542   elif test "x$target" = "x$host"; then
14543     # We can use an host tool
14544     RANLIB_FOR_TARGET='$(RANLIB)'
14545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546 $as_echo "host tool" >&6; }
14547   else
14548     # We need a cross tool
14549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14551   fi
14552 fi
14553
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14555 $as_echo_n "checking where to find the target readelf... " >&6; }
14556 if test "x${build}" != "x${host}" ; then
14557   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14558     # We already found the complete path
14559     ac_dir=`dirname $READELF_FOR_TARGET`
14560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561 $as_echo "pre-installed in $ac_dir" >&6; }
14562   else
14563     # Canadian cross, just use what we found
14564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565 $as_echo "pre-installed" >&6; }
14566   fi
14567 else
14568   ok=yes
14569   case " ${configdirs} " in
14570     *" binutils "*) ;;
14571     *) ok=no ;;
14572   esac
14573
14574   if test $ok = yes; then
14575     # An in-tree tool is available and we can use it
14576     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578 $as_echo "just compiled" >&6; }
14579   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14580     # We already found the complete path
14581     ac_dir=`dirname $READELF_FOR_TARGET`
14582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583 $as_echo "pre-installed in $ac_dir" >&6; }
14584   elif test "x$target" = "x$host"; then
14585     # We can use an host tool
14586     READELF_FOR_TARGET='$(READELF)'
14587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588 $as_echo "host tool" >&6; }
14589   else
14590     # We need a cross tool
14591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14593   fi
14594 fi
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14597 $as_echo_n "checking where to find the target strip... " >&6; }
14598 if test "x${build}" != "x${host}" ; then
14599   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14600     # We already found the complete path
14601     ac_dir=`dirname $STRIP_FOR_TARGET`
14602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603 $as_echo "pre-installed in $ac_dir" >&6; }
14604   else
14605     # Canadian cross, just use what we found
14606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14608   fi
14609 else
14610   ok=yes
14611   case " ${configdirs} " in
14612     *" binutils "*) ;;
14613     *) ok=no ;;
14614   esac
14615
14616   if test $ok = yes; then
14617     # An in-tree tool is available and we can use it
14618     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14620 $as_echo "just compiled" >&6; }
14621   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14622     # We already found the complete path
14623     ac_dir=`dirname $STRIP_FOR_TARGET`
14624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625 $as_echo "pre-installed in $ac_dir" >&6; }
14626   elif test "x$target" = "x$host"; then
14627     # We can use an host tool
14628     STRIP_FOR_TARGET='$(STRIP)'
14629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14630 $as_echo "host tool" >&6; }
14631   else
14632     # We need a cross tool
14633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14635   fi
14636 fi
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14639 $as_echo_n "checking where to find the target windres... " >&6; }
14640 if test "x${build}" != "x${host}" ; then
14641   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14642     # We already found the complete path
14643     ac_dir=`dirname $WINDRES_FOR_TARGET`
14644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645 $as_echo "pre-installed in $ac_dir" >&6; }
14646   else
14647     # Canadian cross, just use what we found
14648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649 $as_echo "pre-installed" >&6; }
14650   fi
14651 else
14652   ok=yes
14653   case " ${configdirs} " in
14654     *" binutils "*) ;;
14655     *) ok=no ;;
14656   esac
14657
14658   if test $ok = yes; then
14659     # An in-tree tool is available and we can use it
14660     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14662 $as_echo "just compiled" >&6; }
14663   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14664     # We already found the complete path
14665     ac_dir=`dirname $WINDRES_FOR_TARGET`
14666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14667 $as_echo "pre-installed in $ac_dir" >&6; }
14668   elif test "x$target" = "x$host"; then
14669     # We can use an host tool
14670     WINDRES_FOR_TARGET='$(WINDRES)'
14671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14672 $as_echo "host tool" >&6; }
14673   else
14674     # We need a cross tool
14675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14676 $as_echo "pre-installed" >&6; }
14677   fi
14678 fi
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14681 $as_echo_n "checking where to find the target windmc... " >&6; }
14682 if test "x${build}" != "x${host}" ; then
14683   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14684     # We already found the complete path
14685     ac_dir=`dirname $WINDMC_FOR_TARGET`
14686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687 $as_echo "pre-installed in $ac_dir" >&6; }
14688   else
14689     # Canadian cross, just use what we found
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691 $as_echo "pre-installed" >&6; }
14692   fi
14693 else
14694   ok=yes
14695   case " ${configdirs} " in
14696     *" binutils "*) ;;
14697     *) ok=no ;;
14698   esac
14699
14700   if test $ok = yes; then
14701     # An in-tree tool is available and we can use it
14702     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14704 $as_echo "just compiled" >&6; }
14705   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14706     # We already found the complete path
14707     ac_dir=`dirname $WINDMC_FOR_TARGET`
14708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14709 $as_echo "pre-installed in $ac_dir" >&6; }
14710   elif test "x$target" = "x$host"; then
14711     # We can use an host tool
14712     WINDMC_FOR_TARGET='$(WINDMC)'
14713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14714 $as_echo "host tool" >&6; }
14715   else
14716     # We need a cross tool
14717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14718 $as_echo "pre-installed" >&6; }
14719   fi
14720 fi
14721
14722
14723
14724
14725
14726 # Certain tools may need extra flags.
14727 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14728 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14729 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14730
14731 # When building target libraries, except in a Canadian cross, we use
14732 # the same toolchain as the compiler we just built.
14733 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14734 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14735 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14736 if test $host = $build; then
14737   case " $configdirs " in
14738     *" gcc "*)
14739       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14740       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14741       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14742       ;;
14743   esac
14744 fi
14745
14746
14747
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14752 # Check whether --enable-maintainer-mode was given.
14753 if test "${enable_maintainer_mode+set}" = set; then :
14754   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14755 else
14756   USE_MAINTAINER_MODE=no
14757 fi
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14761
14762
14763 if test "$USE_MAINTAINER_MODE" = yes; then
14764   MAINTAINER_MODE_TRUE=
14765   MAINTAINER_MODE_FALSE='#'
14766 else
14767   MAINTAINER_MODE_TRUE='#'
14768   MAINTAINER_MODE_FALSE=
14769 fi
14770 MAINT=$MAINTAINER_MODE_TRUE
14771
14772 # ---------------------
14773 # GCC bootstrap support
14774 # ---------------------
14775
14776 # Stage specific cflags for build.
14777 stage1_cflags="-g"
14778 case $build in
14779   vax-*-*)
14780     case ${GCC} in
14781       yes) stage1_cflags="-g -Wa,-J" ;;
14782       *) stage1_cflags="-g -J" ;;
14783     esac ;;
14784 esac
14785
14786
14787
14788 # Enable --enable-checking in stage1 of the compiler.
14789 # Check whether --enable-stage1-checking was given.
14790 if test "${enable_stage1_checking+set}" = set; then :
14791   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14792 else
14793   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14794   stage1_checking=--enable-checking=yes,types
14795 else
14796   stage1_checking=--enable-checking=$enable_checking,types
14797 fi
14798 fi
14799
14800
14801
14802 # Enable -Werror in bootstrap stage2 and later.
14803 # Check whether --enable-werror was given.
14804 if test "${enable_werror+set}" = set; then :
14805   enableval=$enable_werror;
14806 else
14807   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14808   enable_werror=yes
14809 else
14810   enable_werror=no
14811 fi
14812 fi
14813
14814 case ${enable_werror} in
14815   yes) stage2_werror_flag="--enable-werror-always" ;;
14816   *) stage2_werror_flag="" ;;
14817 esac
14818
14819
14820 # Enable --enable-host-shared.
14821 # Check whether --enable-host-shared was given.
14822 if test "${enable_host_shared+set}" = set; then :
14823   enableval=$enable_host_shared; host_shared=$enableval
14824 else
14825   host_shared=no
14826 fi
14827
14828
14829
14830 # PR jit/64780: Require the user to explicitly specify
14831 # --enable-host-shared if the jit is enabled, hinting
14832 # that they might want to do a separate configure/build of
14833 # the jit, to avoid users from slowing down the rest of the
14834 # compiler by enabling the jit.
14835 if test ${host_shared} = "no" ; then
14836   case "${enable_languages}" in
14837     *jit*)
14838       as_fn_error "
14839 Enabling language \"jit\" requires --enable-host-shared.
14840
14841 --enable-host-shared typically slows the rest of the compiler down by
14842 a few %, so you must explicitly enable it.
14843
14844 If you want to build both the jit and the regular compiler, it is often
14845 best to do this via two separate configure/builds, in separate
14846 directories, to avoid imposing the performance cost of
14847 --enable-host-shared on the regular compiler." "$LINENO" 5
14848       ;;
14849     *)
14850       ;;
14851   esac
14852 fi
14853
14854 # Specify what files to not compare during bootstrap.
14855
14856 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14857 case "$target" in
14858   hppa*64*-*-hpux*) ;;
14859   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14860   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14861 esac
14862
14863
14864 ac_config_files="$ac_config_files Makefile"
14865
14866 cat >confcache <<\_ACEOF
14867 # This file is a shell script that caches the results of configure
14868 # tests run on this system so they can be shared between configure
14869 # scripts and configure runs, see configure's option --config-cache.
14870 # It is not useful on other systems.  If it contains results you don't
14871 # want to keep, you may remove or edit it.
14872 #
14873 # config.status only pays attention to the cache file if you give it
14874 # the --recheck option to rerun configure.
14875 #
14876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14878 # following values.
14879
14880 _ACEOF
14881
14882 # The following way of writing the cache mishandles newlines in values,
14883 # but we know of no workaround that is simple, portable, and efficient.
14884 # So, we kill variables containing newlines.
14885 # Ultrix sh set writes to stderr and can't be redirected directly,
14886 # and sets the high bit in the cache file unless we assign to the vars.
14887 (
14888   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14889     eval ac_val=\$$ac_var
14890     case $ac_val in #(
14891     *${as_nl}*)
14892       case $ac_var in #(
14893       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14895       esac
14896       case $ac_var in #(
14897       _ | IFS | as_nl) ;; #(
14898       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14899       *) { eval $ac_var=; unset $ac_var;} ;;
14900       esac ;;
14901     esac
14902   done
14903
14904   (set) 2>&1 |
14905     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14906     *${as_nl}ac_space=\ *)
14907       # `set' does not quote correctly, so add quotes: double-quote
14908       # substitution turns \\\\ into \\, and sed turns \\ into \.
14909       sed -n \
14910         "s/'/'\\\\''/g;
14911           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14912       ;; #(
14913     *)
14914       # `set' quotes correctly as required by POSIX, so do not add quotes.
14915       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14916       ;;
14917     esac |
14918     sort
14919 ) |
14920   sed '
14921      /^ac_cv_env_/b end
14922      t clear
14923      :clear
14924      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14925      t end
14926      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14927      :end' >>confcache
14928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14929   if test -w "$cache_file"; then
14930     test "x$cache_file" != "x/dev/null" &&
14931       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14932 $as_echo "$as_me: updating cache $cache_file" >&6;}
14933     cat confcache >$cache_file
14934   else
14935     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14937   fi
14938 fi
14939 rm -f confcache
14940
14941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14942 # Let make expand exec_prefix.
14943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14944
14945 # Transform confdefs.h into DEFS.
14946 # Protect against shell expansion while executing Makefile rules.
14947 # Protect against Makefile macro expansion.
14948 #
14949 # If the first sed substitution is executed (which looks for macros that
14950 # take arguments), then branch to the quote section.  Otherwise,
14951 # look for a macro that doesn't take arguments.
14952 ac_script='
14953 :mline
14954 /\\$/{
14955  N
14956  s,\\\n,,
14957  b mline
14958 }
14959 t clear
14960 :clear
14961 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14962 t quote
14963 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14964 t quote
14965 b any
14966 :quote
14967 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14968 s/\[/\\&/g
14969 s/\]/\\&/g
14970 s/\$/$$/g
14971 H
14972 :any
14973 ${
14974         g
14975         s/^\n//
14976         s/\n/ /g
14977         p
14978 }
14979 '
14980 DEFS=`sed -n "$ac_script" confdefs.h`
14981
14982
14983 ac_libobjs=
14984 ac_ltlibobjs=
14985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14986   # 1. Remove the extension, and $U if already installed.
14987   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14988   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14989   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14990   #    will be set to the directory where LIBOBJS objects are built.
14991   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14992   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14993 done
14994 LIBOBJS=$ac_libobjs
14995
14996 LTLIBOBJS=$ac_ltlibobjs
14997
14998
14999
15000 : ${CONFIG_STATUS=./config.status}
15001 ac_write_fail=0
15002 ac_clean_files_save=$ac_clean_files
15003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15005 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15006 as_write_fail=0
15007 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15008 #! $SHELL
15009 # Generated by $as_me.
15010 # Run this file to recreate the current configuration.
15011 # Compiler output produced by configure, useful for debugging
15012 # configure, is in config.log if it exists.
15013
15014 debug=false
15015 ac_cs_recheck=false
15016 ac_cs_silent=false
15017
15018 SHELL=\${CONFIG_SHELL-$SHELL}
15019 export SHELL
15020 _ASEOF
15021 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15022 ## -------------------- ##
15023 ## M4sh Initialization. ##
15024 ## -------------------- ##
15025
15026 # Be more Bourne compatible
15027 DUALCASE=1; export DUALCASE # for MKS sh
15028 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15029   emulate sh
15030   NULLCMD=:
15031   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15032   # is contrary to our usage.  Disable this feature.
15033   alias -g '${1+"$@"}'='"$@"'
15034   setopt NO_GLOB_SUBST
15035 else
15036   case `(set -o) 2>/dev/null` in #(
15037   *posix*) :
15038     set -o posix ;; #(
15039   *) :
15040      ;;
15041 esac
15042 fi
15043
15044
15045 as_nl='
15046 '
15047 export as_nl
15048 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15049 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15052 # Prefer a ksh shell builtin over an external printf program on Solaris,
15053 # but without wasting forks for bash or zsh.
15054 if test -z "$BASH_VERSION$ZSH_VERSION" \
15055     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15056   as_echo='print -r --'
15057   as_echo_n='print -rn --'
15058 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15059   as_echo='printf %s\n'
15060   as_echo_n='printf %s'
15061 else
15062   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15063     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15064     as_echo_n='/usr/ucb/echo -n'
15065   else
15066     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15067     as_echo_n_body='eval
15068       arg=$1;
15069       case $arg in #(
15070       *"$as_nl"*)
15071         expr "X$arg" : "X\\(.*\\)$as_nl";
15072         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15073       esac;
15074       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15075     '
15076     export as_echo_n_body
15077     as_echo_n='sh -c $as_echo_n_body as_echo'
15078   fi
15079   export as_echo_body
15080   as_echo='sh -c $as_echo_body as_echo'
15081 fi
15082
15083 # The user is always right.
15084 if test "${PATH_SEPARATOR+set}" != set; then
15085   PATH_SEPARATOR=:
15086   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15087     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15088       PATH_SEPARATOR=';'
15089   }
15090 fi
15091
15092
15093 # IFS
15094 # We need space, tab and new line, in precisely that order.  Quoting is
15095 # there to prevent editors from complaining about space-tab.
15096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15097 # splitting by setting IFS to empty value.)
15098 IFS=" ""        $as_nl"
15099
15100 # Find who we are.  Look in the path if we contain no directory separator.
15101 case $0 in #((
15102   *[\\/]* ) as_myself=$0 ;;
15103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15105 do
15106   IFS=$as_save_IFS
15107   test -z "$as_dir" && as_dir=.
15108     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15109   done
15110 IFS=$as_save_IFS
15111
15112      ;;
15113 esac
15114 # We did not find ourselves, most probably we were run as `sh COMMAND'
15115 # in which case we are not to be found in the path.
15116 if test "x$as_myself" = x; then
15117   as_myself=$0
15118 fi
15119 if test ! -f "$as_myself"; then
15120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15121   exit 1
15122 fi
15123
15124 # Unset variables that we do not need and which cause bugs (e.g. in
15125 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15126 # suppresses any "Segmentation fault" message there.  '((' could
15127 # trigger a bug in pdksh 5.2.14.
15128 for as_var in BASH_ENV ENV MAIL MAILPATH
15129 do eval test x\${$as_var+set} = xset \
15130   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15131 done
15132 PS1='$ '
15133 PS2='> '
15134 PS4='+ '
15135
15136 # NLS nuisances.
15137 LC_ALL=C
15138 export LC_ALL
15139 LANGUAGE=C
15140 export LANGUAGE
15141
15142 # CDPATH.
15143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15144
15145
15146 # as_fn_error ERROR [LINENO LOG_FD]
15147 # ---------------------------------
15148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15150 # script with status $?, using 1 if that was 0.
15151 as_fn_error ()
15152 {
15153   as_status=$?; test $as_status -eq 0 && as_status=1
15154   if test "$3"; then
15155     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15156     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15157   fi
15158   $as_echo "$as_me: error: $1" >&2
15159   as_fn_exit $as_status
15160 } # as_fn_error
15161
15162
15163 # as_fn_set_status STATUS
15164 # -----------------------
15165 # Set $? to STATUS, without forking.
15166 as_fn_set_status ()
15167 {
15168   return $1
15169 } # as_fn_set_status
15170
15171 # as_fn_exit STATUS
15172 # -----------------
15173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15174 as_fn_exit ()
15175 {
15176   set +e
15177   as_fn_set_status $1
15178   exit $1
15179 } # as_fn_exit
15180
15181 # as_fn_unset VAR
15182 # ---------------
15183 # Portably unset VAR.
15184 as_fn_unset ()
15185 {
15186   { eval $1=; unset $1;}
15187 }
15188 as_unset=as_fn_unset
15189 # as_fn_append VAR VALUE
15190 # ----------------------
15191 # Append the text in VALUE to the end of the definition contained in VAR. Take
15192 # advantage of any shell optimizations that allow amortized linear growth over
15193 # repeated appends, instead of the typical quadratic growth present in naive
15194 # implementations.
15195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15196   eval 'as_fn_append ()
15197   {
15198     eval $1+=\$2
15199   }'
15200 else
15201   as_fn_append ()
15202   {
15203     eval $1=\$$1\$2
15204   }
15205 fi # as_fn_append
15206
15207 # as_fn_arith ARG...
15208 # ------------------
15209 # Perform arithmetic evaluation on the ARGs, and store the result in the
15210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15211 # must be portable across $(()) and expr.
15212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15213   eval 'as_fn_arith ()
15214   {
15215     as_val=$(( $* ))
15216   }'
15217 else
15218   as_fn_arith ()
15219   {
15220     as_val=`expr "$@" || test $? -eq 1`
15221   }
15222 fi # as_fn_arith
15223
15224
15225 if expr a : '\(a\)' >/dev/null 2>&1 &&
15226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15227   as_expr=expr
15228 else
15229   as_expr=false
15230 fi
15231
15232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15233   as_basename=basename
15234 else
15235   as_basename=false
15236 fi
15237
15238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15239   as_dirname=dirname
15240 else
15241   as_dirname=false
15242 fi
15243
15244 as_me=`$as_basename -- "$0" ||
15245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15246          X"$0" : 'X\(//\)$' \| \
15247          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15248 $as_echo X/"$0" |
15249     sed '/^.*\/\([^/][^/]*\)\/*$/{
15250             s//\1/
15251             q
15252           }
15253           /^X\/\(\/\/\)$/{
15254             s//\1/
15255             q
15256           }
15257           /^X\/\(\/\).*/{
15258             s//\1/
15259             q
15260           }
15261           s/.*/./; q'`
15262
15263 # Avoid depending upon Character Ranges.
15264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15267 as_cr_digits='0123456789'
15268 as_cr_alnum=$as_cr_Letters$as_cr_digits
15269
15270 ECHO_C= ECHO_N= ECHO_T=
15271 case `echo -n x` in #(((((
15272 -n*)
15273   case `echo 'xy\c'` in
15274   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15275   xy)  ECHO_C='\c';;
15276   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15277        ECHO_T=' ';;
15278   esac;;
15279 *)
15280   ECHO_N='-n';;
15281 esac
15282
15283 rm -f conf$$ conf$$.exe conf$$.file
15284 if test -d conf$$.dir; then
15285   rm -f conf$$.dir/conf$$.file
15286 else
15287   rm -f conf$$.dir
15288   mkdir conf$$.dir 2>/dev/null
15289 fi
15290 if (echo >conf$$.file) 2>/dev/null; then
15291   if ln -s conf$$.file conf$$ 2>/dev/null; then
15292     as_ln_s='ln -s'
15293     # ... but there are two gotchas:
15294     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15295     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15296     # In both cases, we have to default to `cp -p'.
15297     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15298       as_ln_s='cp -p'
15299   elif ln conf$$.file conf$$ 2>/dev/null; then
15300     as_ln_s=ln
15301   else
15302     as_ln_s='cp -p'
15303   fi
15304 else
15305   as_ln_s='cp -p'
15306 fi
15307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15308 rmdir conf$$.dir 2>/dev/null
15309
15310
15311 # as_fn_mkdir_p
15312 # -------------
15313 # Create "$as_dir" as a directory, including parents if necessary.
15314 as_fn_mkdir_p ()
15315 {
15316
15317   case $as_dir in #(
15318   -*) as_dir=./$as_dir;;
15319   esac
15320   test -d "$as_dir" || eval $as_mkdir_p || {
15321     as_dirs=
15322     while :; do
15323       case $as_dir in #(
15324       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15325       *) as_qdir=$as_dir;;
15326       esac
15327       as_dirs="'$as_qdir' $as_dirs"
15328       as_dir=`$as_dirname -- "$as_dir" ||
15329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15330          X"$as_dir" : 'X\(//\)[^/]' \| \
15331          X"$as_dir" : 'X\(//\)$' \| \
15332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15333 $as_echo X"$as_dir" |
15334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15335             s//\1/
15336             q
15337           }
15338           /^X\(\/\/\)[^/].*/{
15339             s//\1/
15340             q
15341           }
15342           /^X\(\/\/\)$/{
15343             s//\1/
15344             q
15345           }
15346           /^X\(\/\).*/{
15347             s//\1/
15348             q
15349           }
15350           s/.*/./; q'`
15351       test -d "$as_dir" && break
15352     done
15353     test -z "$as_dirs" || eval "mkdir $as_dirs"
15354   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15355
15356
15357 } # as_fn_mkdir_p
15358 if mkdir -p . 2>/dev/null; then
15359   as_mkdir_p='mkdir -p "$as_dir"'
15360 else
15361   test -d ./-p && rmdir ./-p
15362   as_mkdir_p=false
15363 fi
15364
15365 if test -x / >/dev/null 2>&1; then
15366   as_test_x='test -x'
15367 else
15368   if ls -dL / >/dev/null 2>&1; then
15369     as_ls_L_option=L
15370   else
15371     as_ls_L_option=
15372   fi
15373   as_test_x='
15374     eval sh -c '\''
15375       if test -d "$1"; then
15376         test -d "$1/.";
15377       else
15378         case $1 in #(
15379         -*)set "./$1";;
15380         esac;
15381         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15382         ???[sx]*):;;*)false;;esac;fi
15383     '\'' sh
15384   '
15385 fi
15386 as_executable_p=$as_test_x
15387
15388 # Sed expression to map a string onto a valid CPP name.
15389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15390
15391 # Sed expression to map a string onto a valid variable name.
15392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15393
15394
15395 exec 6>&1
15396 ## ----------------------------------- ##
15397 ## Main body of $CONFIG_STATUS script. ##
15398 ## ----------------------------------- ##
15399 _ASEOF
15400 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15401
15402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403 # Save the log message, to keep $0 and so on meaningful, and to
15404 # report actual input values of CONFIG_FILES etc. instead of their
15405 # values after options handling.
15406 ac_log="
15407 This file was extended by $as_me, which was
15408 generated by GNU Autoconf 2.64.  Invocation command line was
15409
15410   CONFIG_FILES    = $CONFIG_FILES
15411   CONFIG_HEADERS  = $CONFIG_HEADERS
15412   CONFIG_LINKS    = $CONFIG_LINKS
15413   CONFIG_COMMANDS = $CONFIG_COMMANDS
15414   $ $0 $@
15415
15416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15417 "
15418
15419 _ACEOF
15420
15421 case $ac_config_files in *"
15422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15423 esac
15424
15425
15426
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 # Files that config.status was made for.
15429 config_files="$ac_config_files"
15430
15431 _ACEOF
15432
15433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15434 ac_cs_usage="\
15435 \`$as_me' instantiates files and other configuration actions
15436 from templates according to the current configuration.  Unless the files
15437 and actions are specified as TAGs, all are instantiated by default.
15438
15439 Usage: $0 [OPTION]... [TAG]...
15440
15441   -h, --help       print this help, then exit
15442   -V, --version    print version number and configuration settings, then exit
15443   -q, --quiet, --silent
15444                    do not print progress messages
15445   -d, --debug      don't remove temporary files
15446       --recheck    update $as_me by reconfiguring in the same conditions
15447       --file=FILE[:TEMPLATE]
15448                    instantiate the configuration file FILE
15449
15450 Configuration files:
15451 $config_files
15452
15453 Report bugs to the package provider."
15454
15455 _ACEOF
15456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15457 ac_cs_version="\\
15458 config.status
15459 configured by $0, generated by GNU Autoconf 2.64,
15460   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15461
15462 Copyright (C) 2009 Free Software Foundation, Inc.
15463 This config.status script is free software; the Free Software Foundation
15464 gives unlimited permission to copy, distribute and modify it."
15465
15466 ac_pwd='$ac_pwd'
15467 srcdir='$srcdir'
15468 INSTALL='$INSTALL'
15469 AWK='$AWK'
15470 test -n "\$AWK" || AWK=awk
15471 _ACEOF
15472
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 # The default lists apply if the user does not specify any file.
15475 ac_need_defaults=:
15476 while test $# != 0
15477 do
15478   case $1 in
15479   --*=*)
15480     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15481     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15482     ac_shift=:
15483     ;;
15484   *)
15485     ac_option=$1
15486     ac_optarg=$2
15487     ac_shift=shift
15488     ;;
15489   esac
15490
15491   case $ac_option in
15492   # Handling of the options.
15493   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15494     ac_cs_recheck=: ;;
15495   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15496     $as_echo "$ac_cs_version"; exit ;;
15497   --debug | --debu | --deb | --de | --d | -d )
15498     debug=: ;;
15499   --file | --fil | --fi | --f )
15500     $ac_shift
15501     case $ac_optarg in
15502     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15503     esac
15504     as_fn_append CONFIG_FILES " '$ac_optarg'"
15505     ac_need_defaults=false;;
15506   --he | --h |  --help | --hel | -h )
15507     $as_echo "$ac_cs_usage"; exit ;;
15508   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15509   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15510     ac_cs_silent=: ;;
15511
15512   # This is an error.
15513   -*) as_fn_error "unrecognized option: \`$1'
15514 Try \`$0 --help' for more information." ;;
15515
15516   *) as_fn_append ac_config_targets " $1"
15517      ac_need_defaults=false ;;
15518
15519   esac
15520   shift
15521 done
15522
15523 ac_configure_extra_args=
15524
15525 if $ac_cs_silent; then
15526   exec 6>/dev/null
15527   ac_configure_extra_args="$ac_configure_extra_args --silent"
15528 fi
15529
15530 _ACEOF
15531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 if \$ac_cs_recheck; then
15533   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15534   shift
15535   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15536   CONFIG_SHELL='$SHELL'
15537   export CONFIG_SHELL
15538   exec "\$@"
15539 fi
15540
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 exec 5>>config.log
15544 {
15545   echo
15546   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15547 ## Running $as_me. ##
15548 _ASBOX
15549   $as_echo "$ac_log"
15550 } >&5
15551
15552 _ACEOF
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 #
15555 # INIT-COMMANDS
15556 #
15557 extrasub_build="$extrasub_build"
15558    extrasub_host="$extrasub_host"
15559    extrasub_target="$extrasub_target"
15560
15561 _ACEOF
15562
15563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15564
15565 # Handling of arguments.
15566 for ac_config_target in $ac_config_targets
15567 do
15568   case $ac_config_target in
15569     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15570
15571   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15572   esac
15573 done
15574
15575
15576 # If the user did not use the arguments to specify the items to instantiate,
15577 # then the envvar interface is used.  Set only those that are not.
15578 # We use the long form for the default assignment because of an extremely
15579 # bizarre bug on SunOS 4.1.3.
15580 if $ac_need_defaults; then
15581   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15582 fi
15583
15584 # Have a temporary directory for convenience.  Make it in the build tree
15585 # simply because there is no reason against having it here, and in addition,
15586 # creating and moving files from /tmp can sometimes cause problems.
15587 # Hook for its removal unless debugging.
15588 # Note that there is a small window in which the directory will not be cleaned:
15589 # after its creation but before its name has been assigned to `$tmp'.
15590 $debug ||
15591 {
15592   tmp=
15593   trap 'exit_status=$?
15594   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15595 ' 0
15596   trap 'as_fn_exit 1' 1 2 13 15
15597 }
15598 # Create a (secure) tmp directory for tmp files.
15599
15600 {
15601   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15602   test -n "$tmp" && test -d "$tmp"
15603 }  ||
15604 {
15605   tmp=./conf$$-$RANDOM
15606   (umask 077 && mkdir "$tmp")
15607 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15608
15609 # Set up the scripts for CONFIG_FILES section.
15610 # No need to generate them if there are no CONFIG_FILES.
15611 # This happens for instance with `./config.status config.h'.
15612 if test -n "$CONFIG_FILES"; then
15613
15614 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15615   ac_cs_awk_getline=:
15616   ac_cs_awk_pipe_init=
15617   ac_cs_awk_read_file='
15618       while ((getline aline < (F[key])) > 0)
15619         print(aline)
15620       close(F[key])'
15621   ac_cs_awk_pipe_fini=
15622 else
15623   ac_cs_awk_getline=false
15624   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15625   ac_cs_awk_read_file='
15626       print "|#_!!_#|"
15627       print "cat " F[key] " &&"
15628       '$ac_cs_awk_pipe_init
15629   # The final `:' finishes the AND list.
15630   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15631 fi
15632 ac_cr=`echo X | tr X '\015'`
15633 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15634 # But we know of no other shell where ac_cr would be empty at this
15635 # point, so we can use a bashism as a fallback.
15636 if test "x$ac_cr" = x; then
15637   eval ac_cr=\$\'\\r\'
15638 fi
15639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15641   ac_cs_awk_cr='\r'
15642 else
15643   ac_cs_awk_cr=$ac_cr
15644 fi
15645
15646 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15647 _ACEOF
15648
15649 # Create commands to substitute file output variables.
15650 {
15651   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15652   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15653   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15654   echo "_ACAWK" &&
15655   echo "_ACEOF"
15656 } >conf$$files.sh &&
15657 . ./conf$$files.sh ||
15658   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15659 rm -f conf$$files.sh
15660
15661 {
15662   echo "cat >conf$$subs.awk <<_ACEOF" &&
15663   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15664   echo "_ACEOF"
15665 } >conf$$subs.sh ||
15666   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15668 ac_delim='%!_!# '
15669 for ac_last_try in false false false false false :; do
15670   . ./conf$$subs.sh ||
15671     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15672
15673   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15674   if test $ac_delim_n = $ac_delim_num; then
15675     break
15676   elif $ac_last_try; then
15677     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15678   else
15679     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15680   fi
15681 done
15682 rm -f conf$$subs.sh
15683
15684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15685 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15686 _ACEOF
15687 sed -n '
15688 h
15689 s/^/S["/; s/!.*/"]=/
15690 p
15691 g
15692 s/^[^!]*!//
15693 :repl
15694 t repl
15695 s/'"$ac_delim"'$//
15696 t delim
15697 :nl
15698 h
15699 s/\(.\{148\}\).*/\1/
15700 t more1
15701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15702 p
15703 n
15704 b repl
15705 :more1
15706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707 p
15708 g
15709 s/.\{148\}//
15710 t nl
15711 :delim
15712 h
15713 s/\(.\{148\}\).*/\1/
15714 t more2
15715 s/["\\]/\\&/g; s/^/"/; s/$/"/
15716 p
15717 b
15718 :more2
15719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15720 p
15721 g
15722 s/.\{148\}//
15723 t delim
15724 ' <conf$$subs.awk | sed '
15725 /^[^""]/{
15726   N
15727   s/\n//
15728 }
15729 ' >>$CONFIG_STATUS || ac_write_fail=1
15730 rm -f conf$$subs.awk
15731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732 _ACAWK
15733 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15734   for (key in S) S_is_set[key] = 1
15735   FS = "\a"
15736   \$ac_cs_awk_pipe_init
15737 }
15738 {
15739   line = $ 0
15740   nfields = split(line, field, "@")
15741   substed = 0
15742   len = length(field[1])
15743   for (i = 2; i < nfields; i++) {
15744     key = field[i]
15745     keylen = length(key)
15746     if (S_is_set[key]) {
15747       value = S[key]
15748       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15749       len += length(value) + length(field[++i])
15750       substed = 1
15751     } else
15752       len += 1 + keylen
15753   }
15754   if (nfields == 3 && !substed) {
15755     key = field[2]
15756     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15757       \$ac_cs_awk_read_file
15758       next
15759     }
15760   }
15761   print line
15762 }
15763 \$ac_cs_awk_pipe_fini
15764 _ACAWK
15765 _ACEOF
15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15768   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15769 else
15770   cat
15771 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15772   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15773 _ACEOF
15774
15775 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15777 # trailing colons and then remove the whole line if VPATH becomes empty
15778 # (actually we leave an empty line to preserve line numbers).
15779 if test "x$srcdir" = x.; then
15780   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15781 s/:*\$(srcdir):*/:/
15782 s/:*\${srcdir}:*/:/
15783 s/:*@srcdir@:*/:/
15784 s/^\([^=]*=[     ]*\):*/\1/
15785 s/:*$//
15786 s/^[^=]*=[       ]*$//
15787 }'
15788 fi
15789
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 fi # test -n "$CONFIG_FILES"
15792
15793
15794 eval set X "  :F $CONFIG_FILES      "
15795 shift
15796 for ac_tag
15797 do
15798   case $ac_tag in
15799   :[FHLC]) ac_mode=$ac_tag; continue;;
15800   esac
15801   case $ac_mode$ac_tag in
15802   :[FHL]*:*);;
15803   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15804   :[FH]-) ac_tag=-:-;;
15805   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15806   esac
15807   ac_save_IFS=$IFS
15808   IFS=:
15809   set x $ac_tag
15810   IFS=$ac_save_IFS
15811   shift
15812   ac_file=$1
15813   shift
15814
15815   case $ac_mode in
15816   :L) ac_source=$1;;
15817   :[FH])
15818     ac_file_inputs=
15819     for ac_f
15820     do
15821       case $ac_f in
15822       -) ac_f="$tmp/stdin";;
15823       *) # Look for the file first in the build tree, then in the source tree
15824          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15825          # because $ac_f cannot contain `:'.
15826          test -f "$ac_f" ||
15827            case $ac_f in
15828            [\\/$]*) false;;
15829            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15830            esac ||
15831            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15832       esac
15833       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15834       as_fn_append ac_file_inputs " '$ac_f'"
15835     done
15836
15837     # Let's still pretend it is `configure' which instantiates (i.e., don't
15838     # use $as_me), people would be surprised to read:
15839     #    /* config.h.  Generated by config.status.  */
15840     configure_input='Generated from '`
15841           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15842         `' by configure.'
15843     if test x"$ac_file" != x-; then
15844       configure_input="$ac_file.  $configure_input"
15845       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15846 $as_echo "$as_me: creating $ac_file" >&6;}
15847     fi
15848     # Neutralize special characters interpreted by sed in replacement strings.
15849     case $configure_input in #(
15850     *\&* | *\|* | *\\* )
15851        ac_sed_conf_input=`$as_echo "$configure_input" |
15852        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15853     *) ac_sed_conf_input=$configure_input;;
15854     esac
15855
15856     case $ac_tag in
15857     *:-:* | *:-) cat >"$tmp/stdin" \
15858       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15859     esac
15860     ;;
15861   esac
15862
15863   ac_dir=`$as_dirname -- "$ac_file" ||
15864 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15865          X"$ac_file" : 'X\(//\)[^/]' \| \
15866          X"$ac_file" : 'X\(//\)$' \| \
15867          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15868 $as_echo X"$ac_file" |
15869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15870             s//\1/
15871             q
15872           }
15873           /^X\(\/\/\)[^/].*/{
15874             s//\1/
15875             q
15876           }
15877           /^X\(\/\/\)$/{
15878             s//\1/
15879             q
15880           }
15881           /^X\(\/\).*/{
15882             s//\1/
15883             q
15884           }
15885           s/.*/./; q'`
15886   as_dir="$ac_dir"; as_fn_mkdir_p
15887   ac_builddir=.
15888
15889 case "$ac_dir" in
15890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15891 *)
15892   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15893   # A ".." for each directory in $ac_dir_suffix.
15894   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15895   case $ac_top_builddir_sub in
15896   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15897   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15898   esac ;;
15899 esac
15900 ac_abs_top_builddir=$ac_pwd
15901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15902 # for backward compatibility:
15903 ac_top_builddir=$ac_top_build_prefix
15904
15905 case $srcdir in
15906   .)  # We are building in place.
15907     ac_srcdir=.
15908     ac_top_srcdir=$ac_top_builddir_sub
15909     ac_abs_top_srcdir=$ac_pwd ;;
15910   [\\/]* | ?:[\\/]* )  # Absolute name.
15911     ac_srcdir=$srcdir$ac_dir_suffix;
15912     ac_top_srcdir=$srcdir
15913     ac_abs_top_srcdir=$srcdir ;;
15914   *) # Relative name.
15915     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15916     ac_top_srcdir=$ac_top_build_prefix$srcdir
15917     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15918 esac
15919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15920
15921
15922   case $ac_mode in
15923   :F)
15924   #
15925   # CONFIG_FILE
15926   #
15927
15928   case $INSTALL in
15929   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15930   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15931   esac
15932 _ACEOF
15933
15934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15935 # If the template does not know about datarootdir, expand it.
15936 # FIXME: This hack should be removed a few years after 2.60.
15937 ac_datarootdir_hack=; ac_datarootdir_seen=
15938 ac_sed_dataroot='
15939 /datarootdir/ {
15940   p
15941   q
15942 }
15943 /@datadir@/p
15944 /@docdir@/p
15945 /@infodir@/p
15946 /@localedir@/p
15947 /@mandir@/p'
15948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15949 *datarootdir*) ac_datarootdir_seen=yes;;
15950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15951   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955   ac_datarootdir_hack='
15956   s&@datadir@&$datadir&g
15957   s&@docdir@&$docdir&g
15958   s&@infodir@&$infodir&g
15959   s&@localedir@&$localedir&g
15960   s&@mandir@&$mandir&g
15961   s&\\\${datarootdir}&$datarootdir&g' ;;
15962 esac
15963 _ACEOF
15964
15965 # Neutralize VPATH when `$srcdir' = `.'.
15966 # Shell code in configure.ac might set extrasub.
15967 # FIXME: do we really want to maintain this feature?
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969 ac_sed_extra="$ac_vpsub
15970 $extrasub
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 :t
15974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15975 s|@configure_input@|$ac_sed_conf_input|;t t
15976 s&@top_builddir@&$ac_top_builddir_sub&;t t
15977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15978 s&@srcdir@&$ac_srcdir&;t t
15979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980 s&@top_srcdir@&$ac_top_srcdir&;t t
15981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982 s&@builddir@&$ac_builddir&;t t
15983 s&@abs_builddir@&$ac_abs_builddir&;t t
15984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985 s&@INSTALL@&$ac_INSTALL&;t t
15986 $ac_datarootdir_hack
15987 "
15988 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15989 if $ac_cs_awk_getline; then
15990   $AWK -f "$tmp/subs.awk"
15991 else
15992   $AWK -f "$tmp/subs.awk" | $SHELL
15993 fi >$tmp/out \
15994   || as_fn_error "could not create $ac_file" "$LINENO" 5
15995
15996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15997   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15998   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15999   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16000 which seems to be undefined.  Please make sure it is defined." >&5
16001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16002 which seems to be undefined.  Please make sure it is defined." >&2;}
16003
16004   rm -f "$tmp/stdin"
16005   case $ac_file in
16006   -) cat "$tmp/out" && rm -f "$tmp/out";;
16007   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16008   esac \
16009   || as_fn_error "could not create $ac_file" "$LINENO" 5
16010  ;;
16011
16012
16013
16014   esac
16015
16016
16017   case $ac_file$ac_mode in
16018     "Makefile":F) sed "$extrasub_build" Makefile |
16019    sed "$extrasub_host" |
16020    sed "$extrasub_target" > mf$$
16021    mv -f mf$$ Makefile ;;
16022
16023   esac
16024 done # for ac_tag
16025
16026
16027 as_fn_exit 0
16028 _ACEOF
16029 ac_clean_files=$ac_clean_files_save
16030
16031 test $ac_write_fail = 0 ||
16032   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16033
16034
16035 # configure is writing to config.log, and then calls config.status.
16036 # config.status does its own redirection, appending to config.log.
16037 # Unfortunately, on DOS this fails, as config.log is still kept open
16038 # by configure, so config.status won't be able to write to it; its
16039 # output is simply discarded.  So we exec the FD to /dev/null,
16040 # effectively closing config.log, so it can be properly (re)opened and
16041 # appended to by config.status.  When coming back to configure, we
16042 # need to make the FD available again.
16043 if test "$no_create" != yes; then
16044   ac_cs_success=:
16045   ac_config_status_args=
16046   test "$silent" = yes &&
16047     ac_config_status_args="$ac_config_status_args --quiet"
16048   exec 5>/dev/null
16049   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16050   exec 5>>config.log
16051   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16052   # would make configure fail if this is the last instruction.
16053   $ac_cs_success || as_fn_exit $?
16054 fi
16055 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16056   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16057 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16058 fi
16059