use-after-scope fallout
[platform/upstream/linaro-gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
683 AWK
684 SED
685 LN_S
686 LN
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 enable_libgfortran
752 with_build_libsubdir
753 with_system_zlib
754 enable_as_accelerator_for
755 enable_offload_targets
756 enable_gold
757 enable_ld
758 enable_compressed_debug_sections
759 enable_libquadmath
760 enable_libquadmath_support
761 enable_libada
762 enable_libssp
763 enable_libstdcxx
764 enable_liboffloadmic
765 enable_static_libjava
766 enable_bootstrap
767 with_mpc
768 with_mpc_include
769 with_mpc_lib
770 with_mpfr_dir
771 with_mpfr
772 with_mpfr_include
773 with_mpfr_lib
774 with_gmp_dir
775 with_gmp
776 with_gmp_include
777 with_gmp_lib
778 with_stage1_libs
779 with_stage1_ldflags
780 with_boot_libs
781 with_boot_ldflags
782 with_isl
783 with_isl_include
784 with_isl_lib
785 enable_isl_version_check
786 enable_lto
787 enable_linker_plugin_configure_flags
788 enable_linker_plugin_flags
789 enable_stage1_languages
790 enable_objc_gc
791 with_build_sysroot
792 with_debug_prefix_map
793 with_build_config
794 enable_vtable_verify
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
801 '
802       ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CXX
811 CXXFLAGS
812 CCC
813 build_configargs
814 host_configargs
815 target_configargs
816 AR
817 AS
818 DLLTOOL
819 LD
820 LIPO
821 NM
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GCJ_FOR_TARGET
833 GFORTRAN_FOR_TARGET
834 GOC_FOR_TARGET
835 AR_FOR_TARGET
836 AS_FOR_TARGET
837 DLLTOOL_FOR_TARGET
838 LD_FOR_TARGET
839 LIPO_FOR_TARGET
840 NM_FOR_TARGET
841 OBJCOPY_FOR_TARGET
842 OBJDUMP_FOR_TARGET
843 RANLIB_FOR_TARGET
844 READELF_FOR_TARGET
845 STRIP_FOR_TARGET
846 WINDRES_FOR_TARGET
847 WINDMC_FOR_TARGET'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902   # If the previous option needs an argument, assign it.
903   if test -n "$ac_prev"; then
904     eval $ac_prev=\$ac_option
905     ac_prev=
906     continue
907   fi
908
909   case $ac_option in
910   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911   *)    ac_optarg=yes ;;
912   esac
913
914   # Accept the important Cygnus configure options, so we can diagnose typos.
915
916   case $ac_dashdash$ac_option in
917   --)
918     ac_dashdash=yes ;;
919
920   -bindir | --bindir | --bindi | --bind | --bin | --bi)
921     ac_prev=bindir ;;
922   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923     bindir=$ac_optarg ;;
924
925   -build | --build | --buil | --bui | --bu)
926     ac_prev=build_alias ;;
927   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928     build_alias=$ac_optarg ;;
929
930   -cache-file | --cache-file | --cache-fil | --cache-fi \
931   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932     ac_prev=cache_file ;;
933   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935     cache_file=$ac_optarg ;;
936
937   --config-cache | -C)
938     cache_file=config.cache ;;
939
940   -datadir | --datadir | --datadi | --datad)
941     ac_prev=datadir ;;
942   -datadir=* | --datadir=* | --datadi=* | --datad=*)
943     datadir=$ac_optarg ;;
944
945   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946   | --dataroo | --dataro | --datar)
947     ac_prev=datarootdir ;;
948   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950     datarootdir=$ac_optarg ;;
951
952   -disable-* | --disable-*)
953     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956       as_fn_error "invalid feature name: $ac_useropt"
957     ac_useropt_orig=$ac_useropt
958     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959     case $ac_user_opts in
960       *"
961 "enable_$ac_useropt"
962 "*) ;;
963       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964          ac_unrecognized_sep=', ';;
965     esac
966     eval enable_$ac_useropt=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=\$ac_optarg ;;
993
994   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996   | --exec | --exe | --ex)
997     ac_prev=exec_prefix ;;
998   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000   | --exec=* | --exe=* | --ex=*)
1001     exec_prefix=$ac_optarg ;;
1002
1003   -gas | --gas | --ga | --g)
1004     # Obsolete; use --with-gas.
1005     with_gas=yes ;;
1006
1007   -help | --help | --hel | --he | -h)
1008     ac_init_help=long ;;
1009   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010     ac_init_help=recursive ;;
1011   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012     ac_init_help=short ;;
1013
1014   -host | --host | --hos | --ho)
1015     ac_prev=host_alias ;;
1016   -host=* | --host=* | --hos=* | --ho=*)
1017     host_alias=$ac_optarg ;;
1018
1019   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020     ac_prev=htmldir ;;
1021   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022   | --ht=*)
1023     htmldir=$ac_optarg ;;
1024
1025   -includedir | --includedir | --includedi | --included | --include \
1026   | --includ | --inclu | --incl | --inc)
1027     ac_prev=includedir ;;
1028   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029   | --includ=* | --inclu=* | --incl=* | --inc=*)
1030     includedir=$ac_optarg ;;
1031
1032   -infodir | --infodir | --infodi | --infod | --info | --inf)
1033     ac_prev=infodir ;;
1034   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035     infodir=$ac_optarg ;;
1036
1037   -libdir | --libdir | --libdi | --libd)
1038     ac_prev=libdir ;;
1039   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040     libdir=$ac_optarg ;;
1041
1042   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043   | --libexe | --libex | --libe)
1044     ac_prev=libexecdir ;;
1045   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046   | --libexe=* | --libex=* | --libe=*)
1047     libexecdir=$ac_optarg ;;
1048
1049   -localedir | --localedir | --localedi | --localed | --locale)
1050     ac_prev=localedir ;;
1051   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052     localedir=$ac_optarg ;;
1053
1054   -localstatedir | --localstatedir | --localstatedi | --localstated \
1055   | --localstate | --localstat | --localsta | --localst | --locals)
1056     ac_prev=localstatedir ;;
1057   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059     localstatedir=$ac_optarg ;;
1060
1061   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062     ac_prev=mandir ;;
1063   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064     mandir=$ac_optarg ;;
1065
1066   -nfp | --nfp | --nf)
1067     # Obsolete; use --without-fp.
1068     with_fp=no ;;
1069
1070   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071   | --no-cr | --no-c | -n)
1072     no_create=yes ;;
1073
1074   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076     no_recursion=yes ;;
1077
1078   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080   | --oldin | --oldi | --old | --ol | --o)
1081     ac_prev=oldincludedir ;;
1082   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085     oldincludedir=$ac_optarg ;;
1086
1087   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088     ac_prev=prefix ;;
1089   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090     prefix=$ac_optarg ;;
1091
1092   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093   | --program-pre | --program-pr | --program-p)
1094     ac_prev=program_prefix ;;
1095   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097     program_prefix=$ac_optarg ;;
1098
1099   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100   | --program-suf | --program-su | --program-s)
1101     ac_prev=program_suffix ;;
1102   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104     program_suffix=$ac_optarg ;;
1105
1106   -program-transform-name | --program-transform-name \
1107   | --program-transform-nam | --program-transform-na \
1108   | --program-transform-n | --program-transform- \
1109   | --program-transform | --program-transfor \
1110   | --program-transfo | --program-transf \
1111   | --program-trans | --program-tran \
1112   | --progr-tra | --program-tr | --program-t)
1113     ac_prev=program_transform_name ;;
1114   -program-transform-name=* | --program-transform-name=* \
1115   | --program-transform-nam=* | --program-transform-na=* \
1116   | --program-transform-n=* | --program-transform-=* \
1117   | --program-transform=* | --program-transfor=* \
1118   | --program-transfo=* | --program-transf=* \
1119   | --program-trans=* | --program-tran=* \
1120   | --progr-tra=* | --program-tr=* | --program-t=*)
1121     program_transform_name=$ac_optarg ;;
1122
1123   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124     ac_prev=pdfdir ;;
1125   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126     pdfdir=$ac_optarg ;;
1127
1128   -psdir | --psdir | --psdi | --psd | --ps)
1129     ac_prev=psdir ;;
1130   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131     psdir=$ac_optarg ;;
1132
1133   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134   | -silent | --silent | --silen | --sile | --sil)
1135     silent=yes ;;
1136
1137   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138     ac_prev=sbindir ;;
1139   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140   | --sbi=* | --sb=*)
1141     sbindir=$ac_optarg ;;
1142
1143   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145   | --sharedst | --shareds | --shared | --share | --shar \
1146   | --sha | --sh)
1147     ac_prev=sharedstatedir ;;
1148   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151   | --sha=* | --sh=*)
1152     sharedstatedir=$ac_optarg ;;
1153
1154   -site | --site | --sit)
1155     ac_prev=site ;;
1156   -site=* | --site=* | --sit=*)
1157     site=$ac_optarg ;;
1158
1159   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160     ac_prev=srcdir ;;
1161   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162     srcdir=$ac_optarg ;;
1163
1164   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165   | --syscon | --sysco | --sysc | --sys | --sy)
1166     ac_prev=sysconfdir ;;
1167   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169     sysconfdir=$ac_optarg ;;
1170
1171   -target | --target | --targe | --targ | --tar | --ta | --t)
1172     ac_prev=target_alias ;;
1173   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174     target_alias=$ac_optarg ;;
1175
1176   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177     verbose=yes ;;
1178
1179   -version | --version | --versio | --versi | --vers | -V)
1180     ac_init_version=: ;;
1181
1182   -with-* | --with-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error "invalid package name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     case $ac_envvar in #(
1240       '' | [0-9]* | *[!_$as_cr_alnum]* )
1241       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1242     esac
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   as_fn_error "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263   case $enable_option_checking in
1264     no) ;;
1265     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267   esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272                 datadir sysconfdir sharedstatedir localstatedir includedir \
1273                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274                 libdir localedir mandir
1275 do
1276   eval ac_val=\$$ac_var
1277   # Remove trailing slashes.
1278   case $ac_val in
1279     */ )
1280       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281       eval $ac_var=\$ac_val;;
1282   esac
1283   # Be sure to have absolute directory names.
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   as_fn_error "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$as_myself" : 'X\(//\)[^/]' \| \
1330          X"$as_myself" : 'X\(//\)$' \| \
1331          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1364         pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 case $srcdir in
1376   *" "*)
1377     as_fn_error "path to source, $srcdir, contains spaces"
1378     ;;
1379 esac
1380 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1381
1382 for ac_var in $ac_precious_vars; do
1383   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_env_${ac_var}_value=\$${ac_var}
1385   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393   # Omit some internal or obsolete options to make the list less imposing.
1394   # This message is too long to be a string in the A/UX 3.1 sh.
1395   cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406   -h, --help              display this help and exit
1407       --help=short        display options specific to this package
1408       --help=recursive    display the short help of all the included packages
1409   -V, --version           display version information and exit
1410   -q, --quiet, --silent   do not print \`checking...' messages
1411       --cache-file=FILE   cache test results in FILE [disabled]
1412   -C, --config-cache      alias for \`--cache-file=config.cache'
1413   -n, --no-create         do not create output files
1414       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417   --prefix=PREFIX         install architecture-independent files in PREFIX
1418                           [$ac_default_prefix]
1419   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                           [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430   --bindir=DIR            user executables [EPREFIX/bin]
1431   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1432   --libexecdir=DIR        program executables [EPREFIX/libexec]
1433   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1434   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1435   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1436   --libdir=DIR            object code libraries [EPREFIX/lib]
1437   --includedir=DIR        C header files [PREFIX/include]
1438   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1439   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1440   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1441   --infodir=DIR           info documentation [DATAROOTDIR/info]
1442   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1443   --mandir=DIR            man documentation [DATAROOTDIR/man]
1444   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1445   --htmldir=DIR           html documentation [DOCDIR]
1446   --dvidir=DIR            dvi documentation [DOCDIR]
1447   --pdfdir=DIR            pdf documentation [DOCDIR]
1448   --psdir=DIR             ps documentation [DOCDIR]
1449 _ACEOF
1450
1451   cat <<\_ACEOF
1452
1453 Program names:
1454   --program-prefix=PREFIX            prepend PREFIX to installed program names
1455   --program-suffix=SUFFIX            append SUFFIX to installed program names
1456   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458 System types:
1459   --build=BUILD     configure for building on BUILD [guessed]
1460   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461   --target=TARGET   configure for building compilers for TARGET [HOST]
1462 _ACEOF
1463 fi
1464
1465 if test -n "$ac_init_help"; then
1466
1467   cat <<\_ACEOF
1468
1469 Optional Features:
1470   --disable-option-checking  ignore unrecognized --enable/--with options
1471   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473   --enable-libgfortran[=ARG]
1474                           build target libgfortran [ARG={default,yes,no}]
1475   --enable-as-accelerator-for=ARG
1476                           build as offload target compiler. Specify offload
1477                           host triple by ARG
1478   --enable-offload-targets=LIST
1479                           enable offloading to devices from comma-separated
1480                           LIST of TARGET[=DIR]. Use optional path to find
1481                           offload target compiler during the build
1482   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1483   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1484   --enable-compressed-debug-sections={all,gas,gold,ld,none}
1485                           Enable compressed debug sections for gas, gold or ld
1486                           by default
1487   --disable-libquadmath   do not build libquadmath directory
1488   --disable-libquadmath-support
1489                           disable libquadmath support for Fortran
1490   --enable-libada         build libada directory
1491   --enable-libssp         build libssp directory
1492   --disable-libstdcxx     do not build libstdc++-v3 directory
1493   --enable-liboffloadmic=ARG
1494                           build liboffloadmic [ARG={no,host,target}]
1495   --enable-static-libjava[=ARG]
1496                           build static libjava [default=no]
1497   --enable-bootstrap      enable bootstrapping [yes if native build]
1498   --disable-isl-version-check
1499                           disable check for isl version
1500   --enable-lto            enable link time optimization support
1501   --enable-linker-plugin-configure-flags=FLAGS
1502                           additional flags for configuring linker plugins
1503                           [none]
1504   --enable-linker-plugin-flags=FLAGS
1505                           additional flags for configuring and building linker
1506                           plugins [none]
1507   --enable-stage1-languages[=all]
1508                           choose additional languages to build during stage1.
1509                           Mostly useful for compiler development
1510   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1511                           Objective-C runtime
1512   --enable-vtable-verify  Enable vtable verification feature
1513   --enable-serial-[{host,target,build}-]configure
1514                           force sequential configuration of sub-packages for
1515                           the host, target or build machine, or all
1516                           sub-packages
1517   --enable-maintainer-mode
1518                           enable make rules and dependencies not useful (and
1519                           sometimes confusing) to the casual installer
1520   --enable-stage1-checking[=all]
1521                           choose additional checking for stage1 of the
1522                           compiler
1523   --enable-werror         enable -Werror in bootstrap stage2 and later
1524   --enable-host-shared    build host code as shared libraries
1525
1526 Optional Packages:
1527   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1528   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1529   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1530   --with-system-zlib      use installed libz
1531   --with-mpc=PATH         specify prefix directory for installed MPC package.
1532                           Equivalent to --with-mpc-include=PATH/include plus
1533                           --with-mpc-lib=PATH/lib
1534   --with-mpc-include=PATH specify directory for installed MPC include files
1535   --with-mpc-lib=PATH     specify directory for the installed MPC library
1536   --with-mpfr-dir=PATH    this option has been REMOVED
1537   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1538                           Equivalent to --with-mpfr-include=PATH/include plus
1539                           --with-mpfr-lib=PATH/lib
1540   --with-mpfr-include=PATH
1541                           specify directory for installed MPFR include files
1542   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1543   --with-gmp-dir=PATH     this option has been REMOVED
1544   --with-gmp=PATH         specify prefix directory for the installed GMP
1545                           package. Equivalent to
1546                           --with-gmp-include=PATH/include plus
1547                           --with-gmp-lib=PATH/lib
1548   --with-gmp-include=PATH specify directory for installed GMP include files
1549   --with-gmp-lib=PATH     specify directory for the installed GMP library
1550   --with-stage1-libs=LIBS libraries for stage1
1551   --with-stage1-ldflags=FLAGS
1552                           linker flags for stage1
1553   --with-boot-libs=LIBS   libraries for stage2 and later
1554   --with-boot-ldflags=FLAGS
1555                           linker flags for stage2 and later
1556   --with-isl=PATH         Specify prefix directory for the installed isl
1557                           package. Equivalent to
1558                           --with-isl-include=PATH/include plus
1559                           --with-isl-lib=PATH/lib
1560   --with-isl-include=PATH Specify directory for installed isl include files
1561   --with-isl-lib=PATH     Specify the directory for the installed isl library
1562   --with-build-sysroot=SYSROOT
1563                           use sysroot as the system root during the build
1564   --with-debug-prefix-map='A=B C=D ...'
1565                           map A to B, C to D ... in debug information
1566   --with-build-config='NAME NAME2...'
1567                           use config/NAME.mk build configuration
1568   --with-build-time-tools=PATH
1569                           use given path to find target tools during the build
1570
1571 Some influential environment variables:
1572   CC          C compiler command
1573   CFLAGS      C compiler flags
1574   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575               nonstandard directory <lib dir>
1576   LIBS        libraries to pass to the linker, e.g. -l<library>
1577   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578               you have headers in a nonstandard directory <include dir>
1579   CXX         C++ compiler command
1580   CXXFLAGS    C++ compiler flags
1581   build_configargs
1582               additional configure arguments for build directories
1583   host_configargs
1584               additional configure arguments for host directories
1585   target_configargs
1586               additional configure arguments for target directories
1587   AR          AR for the host
1588   AS          AS for the host
1589   DLLTOOL     DLLTOOL for the host
1590   LD          LD for the host
1591   LIPO        LIPO for the host
1592   NM          NM for the host
1593   RANLIB      RANLIB for the host
1594   STRIP       STRIP for the host
1595   WINDRES     WINDRES for the host
1596   WINDMC      WINDMC for the host
1597   OBJCOPY     OBJCOPY for the host
1598   OBJDUMP     OBJDUMP for the host
1599   READELF     READELF for the host
1600   CC_FOR_TARGET
1601               CC for the target
1602   CXX_FOR_TARGET
1603               CXX for the target
1604   GCC_FOR_TARGET
1605               GCC for the target
1606   GCJ_FOR_TARGET
1607               GCJ for the target
1608   GFORTRAN_FOR_TARGET
1609               GFORTRAN for the target
1610   GOC_FOR_TARGET
1611               GOC for the target
1612   AR_FOR_TARGET
1613               AR for the target
1614   AS_FOR_TARGET
1615               AS for the target
1616   DLLTOOL_FOR_TARGET
1617               DLLTOOL for the target
1618   LD_FOR_TARGET
1619               LD for the target
1620   LIPO_FOR_TARGET
1621               LIPO for the target
1622   NM_FOR_TARGET
1623               NM for the target
1624   OBJCOPY_FOR_TARGET
1625               OBJCOPY for the target
1626   OBJDUMP_FOR_TARGET
1627               OBJDUMP for the target
1628   RANLIB_FOR_TARGET
1629               RANLIB for the target
1630   READELF_FOR_TARGET
1631               READELF for the target
1632   STRIP_FOR_TARGET
1633               STRIP for the target
1634   WINDRES_FOR_TARGET
1635               WINDRES for the target
1636   WINDMC_FOR_TARGET
1637               WINDMC for the target
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to the package provider.
1643 _ACEOF
1644 ac_status=$?
1645 fi
1646
1647 if test "$ac_init_help" = "recursive"; then
1648   # If there are subdirs, report their specific --help.
1649   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650     test -d "$ac_dir" ||
1651       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652       continue
1653     ac_builddir=.
1654
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *)
1658   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659   # A ".." for each directory in $ac_dir_suffix.
1660   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661   case $ac_top_builddir_sub in
1662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664   esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1670
1671 case $srcdir in
1672   .)  # We are building in place.
1673     ac_srcdir=.
1674     ac_top_srcdir=$ac_top_builddir_sub
1675     ac_abs_top_srcdir=$ac_pwd ;;
1676   [\\/]* | ?:[\\/]* )  # Absolute name.
1677     ac_srcdir=$srcdir$ac_dir_suffix;
1678     ac_top_srcdir=$srcdir
1679     ac_abs_top_srcdir=$srcdir ;;
1680   *) # Relative name.
1681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682     ac_top_srcdir=$ac_top_build_prefix$srcdir
1683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687     cd "$ac_dir" || { ac_status=$?; continue; }
1688     # Check for guested configure.
1689     if test -f "$ac_srcdir/configure.gnu"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692     elif test -f "$ac_srcdir/configure"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure" --help=recursive
1695     else
1696       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697     fi || ac_status=$?
1698     cd "$ac_pwd" || { ac_status=$?; break; }
1699   done
1700 fi
1701
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704   cat <<\_ACEOF
1705 configure
1706 generated by GNU Autoconf 2.64
1707
1708 Copyright (C) 2009 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712   exit
1713 fi
1714
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1718
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   rm -f conftest.$ac_objext
1726   if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_compile") 2>conftest.err
1734   ac_status=$?
1735   if test -s conftest.err; then
1736     grep -v '^ *+' conftest.err >conftest.er1
1737     cat conftest.er1 >&5
1738     mv -f conftest.er1 conftest.err
1739   fi
1740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741   test $ac_status = 0; } && {
1742          test -z "$ac_c_werror_flag" ||
1743          test ! -s conftest.err
1744        } && test -s conftest.$ac_objext; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753   return $ac_retval
1754
1755 } # ac_fn_c_try_compile
1756
1757 # ac_fn_cxx_try_compile LINENO
1758 # ----------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_cxx_try_compile ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   rm -f conftest.$ac_objext
1764   if { { ac_try="$ac_compile"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_compile") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && {
1780          test -z "$ac_cxx_werror_flag" ||
1781          test ! -s conftest.err
1782        } && test -s conftest.$ac_objext; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791   return $ac_retval
1792
1793 } # ac_fn_cxx_try_compile
1794
1795 # ac_fn_cxx_try_link LINENO
1796 # -------------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_link ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   rm -f conftest.$ac_objext conftest$ac_exeext
1802   if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_link") 2>conftest.err
1810   ac_status=$?
1811   if test -s conftest.err; then
1812     grep -v '^ *+' conftest.err >conftest.er1
1813     cat conftest.er1 >&5
1814     mv -f conftest.er1 conftest.err
1815   fi
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && {
1818          test -z "$ac_cxx_werror_flag" ||
1819          test ! -s conftest.err
1820        } && test -s conftest$ac_exeext && {
1821          test "$cross_compiling" = yes ||
1822          $as_test_x conftest$ac_exeext
1823        }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833   # interfere with the next link command; also delete a directory that is
1834   # left behind by Apple's compiler.  We do this before executing the actions.
1835   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837   return $ac_retval
1838
1839 } # ac_fn_cxx_try_link
1840
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_link ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext conftest$ac_exeext
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest$ac_exeext && {
1867          test "$cross_compiling" = yes ||
1868          $as_test_x conftest$ac_exeext
1869        }; then :
1870   ac_retval=0
1871 else
1872   $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875         ac_retval=1
1876 fi
1877   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879   # interfere with the next link command; also delete a directory that is
1880   # left behind by Apple's compiler.  We do this before executing the actions.
1881   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883   return $ac_retval
1884
1885 } # ac_fn_c_try_link
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by $as_me, which was
1891 generated by GNU Autoconf 2.64.  Invocation command line was
1892
1893   $ $0 $@
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1911
1912 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1913 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1916 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1917 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1918 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927     $as_echo "PATH: $as_dir"
1928   done
1929 IFS=$as_save_IFS
1930
1931 } >&5
1932
1933 cat >&5 <<_ACEOF
1934
1935
1936 ## ----------- ##
1937 ## Core tests. ##
1938 ## ----------- ##
1939
1940 _ACEOF
1941
1942
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_configure_args=
1949 ac_configure_args0=
1950 ac_configure_args1=
1951 ac_must_keep_next=false
1952 for ac_pass in 1 2
1953 do
1954   for ac_arg
1955   do
1956     case $ac_arg in
1957     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959     | -silent | --silent | --silen | --sile | --sil)
1960       continue ;;
1961     *\'*)
1962       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963     esac
1964     case $ac_pass in
1965     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966     2)
1967       as_fn_append ac_configure_args1 " '$ac_arg'"
1968       if test $ac_must_keep_next = true; then
1969         ac_must_keep_next=false # Got value, back to normal.
1970       else
1971         case $ac_arg in
1972           *=* | --config-cache | -C | -disable-* | --disable-* \
1973           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975           | -with-* | --with-* | -without-* | --without-* | --x)
1976             case "$ac_configure_args0 " in
1977               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978             esac
1979             ;;
1980           -* ) ac_must_keep_next=true ;;
1981         esac
1982       fi
1983       as_fn_append ac_configure_args " '$ac_arg'"
1984       ;;
1985     esac
1986   done
1987 done
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1990
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log.  We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997   # Save into config.log some information that might help in debugging.
1998   {
1999     echo
2000
2001     cat <<\_ASBOX
2002 ## ---------------- ##
2003 ## Cache variables. ##
2004 ## ---------------- ##
2005 _ASBOX
2006     echo
2007     # The following way of writing the cache mishandles newlines in values,
2008 (
2009   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010     eval ac_val=\$$ac_var
2011     case $ac_val in #(
2012     *${as_nl}*)
2013       case $ac_var in #(
2014       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016       esac
2017       case $ac_var in #(
2018       _ | IFS | as_nl) ;; #(
2019       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020       *) { eval $ac_var=; unset $ac_var;} ;;
2021       esac ;;
2022     esac
2023   done
2024   (set) 2>&1 |
2025     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026     *${as_nl}ac_space=\ *)
2027       sed -n \
2028         "s/'\''/'\''\\\\'\'''\''/g;
2029           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030       ;; #(
2031     *)
2032       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033       ;;
2034     esac |
2035     sort
2036 )
2037     echo
2038
2039     cat <<\_ASBOX
2040 ## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##
2043 _ASBOX
2044     echo
2045     for ac_var in $ac_subst_vars
2046     do
2047       eval ac_val=\$$ac_var
2048       case $ac_val in
2049       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050       esac
2051       $as_echo "$ac_var='\''$ac_val'\''"
2052     done | sort
2053     echo
2054
2055     if test -n "$ac_subst_files"; then
2056       cat <<\_ASBOX
2057 ## ------------------- ##
2058 ## File substitutions. ##
2059 ## ------------------- ##
2060 _ASBOX
2061       echo
2062       for ac_var in $ac_subst_files
2063       do
2064         eval ac_val=\$$ac_var
2065         case $ac_val in
2066         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067         esac
2068         $as_echo "$ac_var='\''$ac_val'\''"
2069       done | sort
2070       echo
2071     fi
2072
2073     if test -s confdefs.h; then
2074       cat <<\_ASBOX
2075 ## ----------- ##
2076 ## confdefs.h. ##
2077 ## ----------- ##
2078 _ASBOX
2079       echo
2080       cat confdefs.h
2081       echo
2082     fi
2083     test "$ac_signal" != 0 &&
2084       $as_echo "$as_me: caught signal $ac_signal"
2085     $as_echo "$as_me: exit $exit_status"
2086   } >&5
2087   rm -f core *.core core.conftest.* &&
2088     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089     exit $exit_status
2090 ' 0
2091 for ac_signal in 1 2 13 15; do
2092   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2093 done
2094 ac_signal=0
2095
2096 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2097 rm -f -r conftest* confdefs.h
2098
2099 $as_echo "/* confdefs.h */" > confdefs.h
2100
2101 # Predefined preprocessor variables.
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_NAME "$PACKAGE_NAME"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_STRING "$PACKAGE_STRING"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_URL "$PACKAGE_URL"
2125 _ACEOF
2126
2127
2128 # Let the site file select an alternate cache file if it wants to.
2129 # Prefer an explicitly selected file to automatically selected ones.
2130 ac_site_file1=NONE
2131 ac_site_file2=NONE
2132 if test -n "$CONFIG_SITE"; then
2133   ac_site_file1=$CONFIG_SITE
2134 elif test "x$prefix" != xNONE; then
2135   ac_site_file1=$prefix/share/config.site
2136   ac_site_file2=$prefix/etc/config.site
2137 else
2138   ac_site_file1=$ac_default_prefix/share/config.site
2139   ac_site_file2=$ac_default_prefix/etc/config.site
2140 fi
2141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142 do
2143   test "x$ac_site_file" = xNONE && continue
2144   if test -r "$ac_site_file"; then
2145     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147     sed 's/^/| /' "$ac_site_file" >&5
2148     . "$ac_site_file"
2149   fi
2150 done
2151
2152 if test -r "$cache_file"; then
2153   # Some versions of bash will fail to source /dev/null (special
2154   # files actually), so we avoid doing that.
2155   if test -f "$cache_file"; then
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2157 $as_echo "$as_me: loading cache $cache_file" >&6;}
2158     case $cache_file in
2159       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2160       *)                      . "./$cache_file";;
2161     esac
2162   fi
2163 else
2164   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2165 $as_echo "$as_me: creating cache $cache_file" >&6;}
2166   >$cache_file
2167 fi
2168
2169 # Check that the precious variables saved in the cache have kept the same
2170 # value.
2171 ac_cache_corrupted=false
2172 for ac_var in $ac_precious_vars; do
2173   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2174   eval ac_new_set=\$ac_env_${ac_var}_set
2175   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2176   eval ac_new_val=\$ac_env_${ac_var}_value
2177   case $ac_old_set,$ac_new_set in
2178     set,)
2179       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2181       ac_cache_corrupted=: ;;
2182     ,set)
2183       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2185       ac_cache_corrupted=: ;;
2186     ,);;
2187     *)
2188       if test "x$ac_old_val" != "x$ac_new_val"; then
2189         # differences in whitespace do not lead to failure.
2190         ac_old_val_w=`echo x $ac_old_val`
2191         ac_new_val_w=`echo x $ac_new_val`
2192         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2193           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2194 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2195           ac_cache_corrupted=:
2196         else
2197           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2198 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2199           eval $ac_var=\$ac_old_val
2200         fi
2201         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2202 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2203         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2204 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2205       fi;;
2206   esac
2207   # Pass precious variables to config.status.
2208   if test "$ac_new_set" = set; then
2209     case $ac_new_val in
2210     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2211     *) ac_arg=$ac_var=$ac_new_val ;;
2212     esac
2213     case " $ac_configure_args " in
2214       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2215       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2216     esac
2217   fi
2218 done
2219 if $ac_cache_corrupted; then
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2223 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2224   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2225 fi
2226 ## -------------------- ##
2227 ## Main body of script. ##
2228 ## -------------------- ##
2229
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244 progname=$0
2245 # if PWD already has a value, it is probably wrong.
2246 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2247
2248 # Export original configure arguments for use by sub-configures.
2249 # Quote arguments with shell meta charatcers.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS=
2251 set -- "$progname" "$@"
2252 for ac_arg
2253 do
2254   case "$ac_arg" in
2255   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2256     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2257     # if the argument is of the form -foo=baz, quote the baz part only
2258     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2259   *) ;;
2260   esac
2261   # Add the quoted argument to the list.
2262   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2263 done
2264 if test "$silent" = yes; then
2265   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2266 fi
2267 # Remove the initial space we just introduced and, as these will be
2268 # expanded by make, quote '$'.
2269 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2270
2271
2272 # Find the build, host, and target systems.
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275   for ac_t in install-sh install.sh shtool; do
2276     if test -f "$ac_dir/$ac_t"; then
2277       ac_aux_dir=$ac_dir
2278       ac_install_sh="$ac_aux_dir/$ac_t -c"
2279       break 2
2280     fi
2281   done
2282 done
2283 if test -z "$ac_aux_dir"; then
2284   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2285 fi
2286
2287 # These three variables are undocumented and unsupported,
2288 # and are intended to be withdrawn in a future Autoconf release.
2289 # They can cause serious problems if a builder's source tree is in a directory
2290 # whose full name contains unusual characters.
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2293 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2294
2295
2296 # Make sure we can run config.sub.
2297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2299
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301 $as_echo_n "checking build system type... " >&6; }
2302 if test "${ac_cv_build+set}" = set; then :
2303   $as_echo_n "(cached) " >&6
2304 else
2305   ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312
2313 fi
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315 $as_echo "$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2319 esac
2320 build=$ac_cv_build
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_build
2323 shift
2324 build_cpu=$1
2325 build_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 build_os=$*
2330 IFS=$ac_save_IFS
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332
2333
2334  case ${build_alias} in
2335   "") build_noncanonical=${build} ;;
2336   *) build_noncanonical=${build_alias} ;;
2337 esac
2338
2339
2340
2341  case ${host_alias} in
2342   "") host_noncanonical=${build_noncanonical} ;;
2343   *) host_noncanonical=${host_alias} ;;
2344 esac
2345
2346
2347
2348  case ${target_alias} in
2349   "") target_noncanonical=${host_noncanonical} ;;
2350   *) target_noncanonical=${target_alias} ;;
2351 esac
2352
2353
2354
2355
2356 test "$host_noncanonical" = "$target_noncanonical" &&
2357   test "$program_prefix$program_suffix$program_transform_name" = \
2358     NONENONEs,x,x, &&
2359   program_transform_name=s,y,y,
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2362 $as_echo_n "checking host system type... " >&6; }
2363 if test "${ac_cv_host+set}" = set; then :
2364   $as_echo_n "(cached) " >&6
2365 else
2366   if test "x$host_alias" = x; then
2367   ac_cv_host=$ac_cv_build
2368 else
2369   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2370     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2371 fi
2372
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2375 $as_echo "$ac_cv_host" >&6; }
2376 case $ac_cv_host in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2379 esac
2380 host=$ac_cv_host
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_host
2383 shift
2384 host_cpu=$1
2385 host_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 host_os=$*
2390 IFS=$ac_save_IFS
2391 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2392
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2395 $as_echo_n "checking target system type... " >&6; }
2396 if test "${ac_cv_target+set}" = set; then :
2397   $as_echo_n "(cached) " >&6
2398 else
2399   if test "x$target_alias" = x; then
2400   ac_cv_target=$ac_cv_host
2401 else
2402   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2403     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2404 fi
2405
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2408 $as_echo "$ac_cv_target" >&6; }
2409 case $ac_cv_target in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2412 esac
2413 target=$ac_cv_target
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_target
2416 shift
2417 target_cpu=$1
2418 target_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 target_os=$*
2423 IFS=$ac_save_IFS
2424 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 # The aliases save the names the user supplied, while $host etc.
2428 # will get canonicalized.
2429 test -n "$target_alias" &&
2430   test "$program_prefix$program_suffix$program_transform_name" = \
2431     NONENONEs,x,x, &&
2432   program_prefix=${target_alias}-
2433
2434 test "$program_prefix" != NONE &&
2435   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2443
2444
2445
2446 # Get 'install' or 'install-sh' and its variants.
2447 # Find a good install program.  We prefer a C program (faster),
2448 # so one script is as good as another.  But avoid the broken or
2449 # incompatible versions:
2450 # SysV /etc/install, /usr/sbin/install
2451 # SunOS /usr/etc/install
2452 # IRIX /sbin/install
2453 # AIX /bin/install
2454 # AmigaOS /C/install, which installs bootblocks on floppy discs
2455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2458 # OS/2's system install, which has a completely different semantic
2459 # ./install, which can be erroneously created by make from ./install.sh.
2460 # Reject install programs that cannot install multiple files.
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2463 if test -z "$INSTALL"; then
2464 if test "${ac_cv_path_install+set}" = set; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472     # Account for people who put trailing slashes in PATH elements.
2473 case $as_dir/ in #((
2474   ./ | .// | /[cC]/* | \
2475   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2476   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2477   /usr/ucb/* ) ;;
2478   *)
2479     # OSF1 and SCO ODT 3.0 have their own names for install.
2480     # Don't use installbsd from OSF since it installs stuff as root
2481     # by default.
2482     for ac_prog in ginstall scoinst install; do
2483       for ac_exec_ext in '' $ac_executable_extensions; do
2484         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2485           if test $ac_prog = install &&
2486             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487             # AIX install.  It has an incompatible calling convention.
2488             :
2489           elif test $ac_prog = install &&
2490             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491             # program-specific install script used by HP pwplus--don't use.
2492             :
2493           else
2494             rm -rf conftest.one conftest.two conftest.dir
2495             echo one > conftest.one
2496             echo two > conftest.two
2497             mkdir conftest.dir
2498             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2499               test -s conftest.one && test -s conftest.two &&
2500               test -s conftest.dir/conftest.one &&
2501               test -s conftest.dir/conftest.two
2502             then
2503               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2504               break 3
2505             fi
2506           fi
2507         fi
2508       done
2509     done
2510     ;;
2511 esac
2512
2513   done
2514 IFS=$as_save_IFS
2515
2516 rm -rf conftest.one conftest.two conftest.dir
2517
2518 fi
2519   if test "${ac_cv_path_install+set}" = set; then
2520     INSTALL=$ac_cv_path_install
2521   else
2522     # As a last resort, use the slow shell script.  Don't cache a
2523     # value for INSTALL within a source directory, because that will
2524     # break other packages using the cache if that directory is
2525     # removed, or if the value is a relative name.
2526     INSTALL=$ac_install_sh
2527   fi
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2530 $as_echo "$INSTALL" >&6; }
2531
2532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2533 # It thinks the first close brace ends the variable substitution.
2534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2535
2536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2537
2538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2539
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2541 $as_echo_n "checking whether ln works... " >&6; }
2542 if test "${acx_cv_prog_LN+set}" = set; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   rm -f conftestdata_t
2546 echo >conftestdata_f
2547 if ln conftestdata_f conftestdata_t 2>/dev/null
2548 then
2549   acx_cv_prog_LN=ln
2550 else
2551   acx_cv_prog_LN=no
2552 fi
2553 rm -f conftestdata_f conftestdata_t
2554
2555 fi
2556 if test $acx_cv_prog_LN = no; then
2557   LN="cp"
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2559 $as_echo "no, using $LN" >&6; }
2560 else
2561   LN="$acx_cv_prog_LN"
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563 $as_echo "yes" >&6; }
2564 fi
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2567 $as_echo_n "checking whether ln -s works... " >&6; }
2568 LN_S=$as_ln_s
2569 if test "$LN_S" = "ln -s"; then
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572 else
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2574 $as_echo "no, using $LN_S" >&6; }
2575 fi
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2578 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2579 if test "${ac_cv_path_SED+set}" = set; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2583      for ac_i in 1 2 3 4 5 6 7; do
2584        ac_script="$ac_script$as_nl$ac_script"
2585      done
2586      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2587      { ac_script=; unset ac_script;}
2588      if test -z "$SED"; then
2589   ac_path_SED_found=false
2590   # Loop through the user's path and test for each of PROGNAME-LIST
2591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596     for ac_prog in sed gsed; do
2597     for ac_exec_ext in '' $ac_executable_extensions; do
2598       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2599       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2600 # Check for GNU ac_path_SED and select it if it is found.
2601   # Check for GNU $ac_path_SED
2602 case `"$ac_path_SED" --version 2>&1` in
2603 *GNU*)
2604   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2605 *)
2606   ac_count=0
2607   $as_echo_n 0123456789 >"conftest.in"
2608   while :
2609   do
2610     cat "conftest.in" "conftest.in" >"conftest.tmp"
2611     mv "conftest.tmp" "conftest.in"
2612     cp "conftest.in" "conftest.nl"
2613     $as_echo '' >> "conftest.nl"
2614     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2615     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2616     as_fn_arith $ac_count + 1 && ac_count=$as_val
2617     if test $ac_count -gt ${ac_path_SED_max-0}; then
2618       # Best one so far, save it but keep looking for a better one
2619       ac_cv_path_SED="$ac_path_SED"
2620       ac_path_SED_max=$ac_count
2621     fi
2622     # 10*(2^10) chars as input seems more than enough
2623     test $ac_count -gt 10 && break
2624   done
2625   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2626 esac
2627
2628       $ac_path_SED_found && break 3
2629     done
2630   done
2631   done
2632 IFS=$as_save_IFS
2633   if test -z "$ac_cv_path_SED"; then
2634     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2635   fi
2636 else
2637   ac_cv_path_SED=$SED
2638 fi
2639
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2642 $as_echo "$ac_cv_path_SED" >&6; }
2643  SED="$ac_cv_path_SED"
2644   rm -f conftest.sed
2645
2646 for ac_prog in gawk mawk nawk awk
2647 do
2648   # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_AWK+set}" = set; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$AWK"; then
2656   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663     for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_AWK="$ac_prog"
2666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670   done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 AWK=$ac_cv_prog_AWK
2676 if test -n "$AWK"; then
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2678 $as_echo "$AWK" >&6; }
2679 else
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685   test -n "$AWK" && break
2686 done
2687
2688
2689 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2690
2691 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2692 # a relative path.
2693 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2694   INSTALL="${srcpwd}/install-sh -c"
2695 fi
2696
2697 # Set srcdir to "." if that's what it is.
2698 # This is important for multilib support.
2699 pwd=`${PWDCMD-pwd}`
2700 if test "${pwd}" = "${srcpwd}" ; then
2701   srcdir=.
2702 fi
2703
2704 topsrcdir=$srcpwd
2705
2706 extra_host_args=
2707
2708 ### To add a new directory to the tree, first choose whether it is a target
2709 ### or a host dependent tool.  Then put it into the appropriate list
2710 ### (library or tools, host or target), doing a dependency sort.
2711
2712 # Subdirs will be configured in the order listed in build_configdirs,
2713 # configdirs, or target_configdirs; see the serialization section below.
2714
2715 # Dependency sorting is only needed when *configuration* must be done in
2716 # a particular order.  In all cases a dependency should be specified in
2717 # the Makefile, whether or not it's implicitly specified here.
2718
2719 # Double entries in build_configdirs, configdirs, or target_configdirs may
2720 # cause circular dependencies and break everything horribly.
2721
2722 # these library is used by various programs built for the build
2723 # environment
2724 #
2725 build_libs="build-libiberty build-libcpp"
2726
2727 # these tools are built for the build environment
2728 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2729
2730 # these libraries are used by various programs built for the host environment
2731 #f
2732 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2733
2734 # these tools are built for the host environment
2735 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2736 # know that we are building the simulator.
2737 # binutils, gas and ld appear in that order because it makes sense to run
2738 # "make check" in that particular order.
2739 # If --enable-gold is used, "gold" may replace "ld".
2740 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"
2741
2742 # libgcj represents the runtime libraries only used by gcj.
2743 libgcj="target-libffi \
2744         target-zlib \
2745         target-libjava"
2746
2747 # libgfortran represents the runtime libraries only used by fortran.
2748 # Check whether --enable-libgfortran was given.
2749 if test "${enable_libgfortran+set}" = set; then :
2750   enableval=$enable_libgfortran; libgfortran="target-libgfortran"
2751 else
2752   libgfortran=""
2753 fi
2754
2755
2756 # these libraries are built for the target environment, and are built after
2757 # the host libraries and the host tools (which may be a cross compiler)
2758 # Note that libiberty is not a target library.
2759 target_libraries="target-libgcc \
2760                 target-libbacktrace \
2761                 target-libgloss \
2762                 target-newlib \
2763                 target-libgomp \
2764                 target-libcilkrts \
2765                 target-liboffloadmic \
2766                 target-libatomic \
2767                 target-libitm \
2768                 target-libstdc++-v3 \
2769                 target-libsanitizer \
2770                 target-libvtv \
2771                 target-libmpx \
2772                 target-libssp \
2773                 target-libquadmath \
2774                 ${libgfortran} \
2775                 target-boehm-gc \
2776                 ${libgcj} \
2777                 target-libobjc \
2778                 target-libada \
2779                 target-libgo"
2780
2781 # these tools are built using the target libraries, and are intended to
2782 # run only in the target environment
2783 #
2784 # note: any program that *uses* libraries that are in the "target_libraries"
2785 # list belongs in this list.
2786 #
2787 target_tools="target-rda"
2788
2789 ################################################################################
2790
2791 ## All tools belong in one of the four categories, and are assigned above
2792 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2793 ## is important because configure will choke if they ever get through.
2794 ## ${configdirs} is directories we build using the host tools.
2795 ## ${target_configdirs} is directories we build using the target tools.
2796 configdirs=`echo ${host_libs} ${host_tools}`
2797 target_configdirs=`echo ${target_libraries} ${target_tools}`
2798 build_configdirs=`echo ${build_libs} ${build_tools}`
2799
2800
2801
2802 ################################################################################
2803
2804 srcname="gnu development package"
2805
2806 # This gets set non-empty for some net releases of packages.
2807 appdirs=""
2808
2809 # Define is_cross_compiler to save on calls to 'test'.
2810 is_cross_compiler=
2811 if test x"${host}" = x"${target}" ; then
2812   is_cross_compiler=no
2813 else
2814   is_cross_compiler=yes
2815 fi
2816
2817 # Find the build and target subdir names.
2818
2819 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2820 # have matching libraries, they should use host libraries: Makefile.tpl
2821 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2822 # However, they still use the build modules, because the corresponding
2823 # host modules (e.g. bison) are only built for the host when bootstrap
2824 # finishes. So:
2825 # - build_subdir is where we find build modules, and never changes.
2826 # - build_libsubdir is where we find build libraries, and can be overridden.
2827
2828 # Prefix 'build-' so this never conflicts with target_subdir.
2829 build_subdir="build-${build_noncanonical}"
2830
2831 # Check whether --with-build-libsubdir was given.
2832 if test "${with_build_libsubdir+set}" = set; then :
2833   withval=$with_build_libsubdir; build_libsubdir="$withval"
2834 else
2835   build_libsubdir="$build_subdir"
2836 fi
2837
2838 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2839 if ( test $srcdir = . && test -d gcc ) \
2840    || test -d $srcdir/../host-${host_noncanonical}; then
2841   host_subdir="host-${host_noncanonical}"
2842 else
2843   host_subdir=.
2844 fi
2845 # No prefix.
2846 target_subdir=${target_noncanonical}
2847
2848 # Be sure to cover against remnants of an in-tree build.
2849 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2850   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2851 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2852 fi
2853
2854 # Skipdirs are removed silently.
2855 skipdirs=
2856 # Noconfigdirs are removed loudly.
2857 noconfigdirs=""
2858
2859 use_gnu_ld=
2860 # Make sure we don't let GNU ld be added if we didn't want it.
2861 if test x$with_gnu_ld = xno ; then
2862   use_gnu_ld=no
2863   noconfigdirs="$noconfigdirs ld gold"
2864 fi
2865
2866 use_gnu_as=
2867 # Make sure we don't let GNU as be added if we didn't want it.
2868 if test x$with_gnu_as = xno ; then
2869   use_gnu_as=no
2870   noconfigdirs="$noconfigdirs gas"
2871 fi
2872
2873 use_included_zlib=
2874
2875 # Check whether --with-system-zlib was given.
2876 if test "${with_system_zlib+set}" = set; then :
2877   withval=$with_system_zlib;
2878 fi
2879
2880 # Make sure we don't let ZLIB be added if we didn't want it.
2881 if test x$with_system_zlib = xyes ; then
2882   use_included_zlib=no
2883   noconfigdirs="$noconfigdirs zlib"
2884 fi
2885
2886 # some tools are so dependent upon X11 that if we're not building with X,
2887 # it's not even worth trying to configure, much less build, that tool.
2888
2889 case ${with_x} in
2890   yes | "") ;; # the default value for this tree is that X11 is available
2891   no)
2892     skipdirs="${skipdirs} tk itcl libgui"
2893     # We won't be able to build gdbtk without X.
2894     enable_gdbtk=no
2895     ;;
2896   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2897 esac
2898
2899 # Some are only suitable for cross toolchains.
2900 # Remove these if host=target.
2901 cross_only="target-libgloss target-newlib target-opcodes"
2902
2903 case $is_cross_compiler in
2904   no) skipdirs="${skipdirs} ${cross_only}" ;;
2905 esac
2906
2907 # If both --with-headers and --with-libs are specified, default to
2908 # --without-newlib.
2909 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2910    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2911   if test x"${with_newlib}" = x ; then
2912     with_newlib=no
2913   fi
2914 fi
2915
2916 # Recognize --with-newlib/--without-newlib.
2917 case ${with_newlib} in
2918   no) skipdirs="${skipdirs} target-newlib" ;;
2919   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2920 esac
2921
2922 # Check whether --enable-as-accelerator-for was given.
2923 if test "${enable_as_accelerator_for+set}" = set; then :
2924   enableval=$enable_as_accelerator_for;
2925 fi
2926
2927
2928 # Check whether --enable-offload-targets was given.
2929 if test "${enable_offload_targets+set}" = set; then :
2930   enableval=$enable_offload_targets;
2931   if test x"$enable_offload_targets" = x; then
2932     as_fn_error "no offload targets specified" "$LINENO" 5
2933   fi
2934
2935 else
2936   enable_offload_targets=
2937 fi
2938
2939
2940 # Handle --enable-gold, --enable-ld.
2941 # --disable-gold [--enable-ld]
2942 #     Build only ld.  Default option.
2943 # --enable-gold [--enable-ld]
2944 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2945 #     as "ld.bfd" and "ld".
2946 # --enable-gold=default [--enable-ld]
2947 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2948 #     install ld as "ld.bfd".
2949 # --enable-gold[=default] --disable-ld
2950 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2951 # --enable-gold --enable-ld=default
2952 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2953 #     and ld.bfd).
2954 #     In other words, ld is default
2955 # --enable-gold=default --enable-ld=default
2956 #     Error.
2957
2958 default_ld=
2959 # Check whether --enable-gold was given.
2960 if test "${enable_gold+set}" = set; then :
2961   enableval=$enable_gold; ENABLE_GOLD=$enableval
2962 else
2963   ENABLE_GOLD=no
2964 fi
2965
2966 case "${ENABLE_GOLD}" in
2967   yes|default)
2968     # Check for ELF target.
2969     is_elf=no
2970     case "${target}" in
2971       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2972       | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2973       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2974       | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2975         case "${target}" in
2976           *-*-linux*aout* | *-*-linux*oldld*)
2977             ;;
2978           *)
2979             is_elf=yes
2980             ;;
2981         esac
2982     esac
2983
2984     if test "$is_elf" = "yes"; then
2985       # Check for target supported by gold.
2986       case "${target}" in
2987         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2988         | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2989           configdirs="$configdirs gold"
2990           if test x${ENABLE_GOLD} = xdefault; then
2991             default_ld=gold
2992           fi
2993           ENABLE_GOLD=yes
2994           ;;
2995       esac
2996     fi
2997     ;;
2998   no)
2999     ;;
3000   *)
3001     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3002     ;;
3003 esac
3004
3005 # Check whether --enable-ld was given.
3006 if test "${enable_ld+set}" = set; then :
3007   enableval=$enable_ld; ENABLE_LD=$enableval
3008 else
3009   ENABLE_LD=yes
3010 fi
3011
3012
3013 case "${ENABLE_LD}" in
3014   default)
3015     if test x${default_ld} != x; then
3016       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3017     fi
3018     ;;
3019   yes)
3020     ;;
3021   no)
3022     if test x${ENABLE_GOLD} != xyes; then
3023       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3024 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3025     fi
3026     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3027     ;;
3028   *)
3029     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3030     ;;
3031 esac
3032
3033 # PR gas/19109
3034 # Decide the default method for compressing debug sections.
3035 # Provide a configure time option to override our default.
3036 # Check whether --enable-compressed_debug_sections was given.
3037 if test "${enable_compressed_debug_sections+set}" = set; then :
3038   enableval=$enable_compressed_debug_sections;
3039   if test x"$enable_compressed_debug_sections" = xyes; then
3040     as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3041   fi
3042
3043 else
3044   enable_compressed_debug_sections=
3045 fi
3046
3047
3048 # Configure extra directories which are host specific
3049
3050 case "${host}" in
3051   *-cygwin*)
3052     configdirs="$configdirs libtermcap" ;;
3053 esac
3054
3055 # A target can indicate whether a language isn't supported for some reason.
3056 # Only spaces may be used in this macro; not newlines or tabs.
3057 unsupported_languages=
3058
3059 # Remove more programs from consideration, based on the host or
3060 # target this usually means that a port of the program doesn't
3061 # exist yet.
3062
3063 case "${host}" in
3064   i[3456789]86-*-msdosdjgpp*)
3065     noconfigdirs="$noconfigdirs tcl tk itcl"
3066     ;;
3067 esac
3068
3069
3070 # Check whether --enable-libquadmath was given.
3071 if test "${enable_libquadmath+set}" = set; then :
3072   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3073 else
3074   ENABLE_LIBQUADMATH=yes
3075 fi
3076
3077 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3078   noconfigdirs="$noconfigdirs target-libquadmath"
3079 fi
3080
3081
3082 # Check whether --enable-libquadmath-support was given.
3083 if test "${enable_libquadmath_support+set}" = set; then :
3084   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3085 else
3086   ENABLE_LIBQUADMATH_SUPPORT=yes
3087 fi
3088
3089 enable_libquadmath_support=
3090 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3091   enable_libquadmath_support=no
3092 fi
3093
3094
3095 # Check whether --enable-libada was given.
3096 if test "${enable_libada+set}" = set; then :
3097   enableval=$enable_libada; ENABLE_LIBADA=$enableval
3098 else
3099   ENABLE_LIBADA=yes
3100 fi
3101
3102 if test "${ENABLE_LIBADA}" != "yes" ; then
3103   noconfigdirs="$noconfigdirs gnattools"
3104 fi
3105
3106 # Check whether --enable-libssp was given.
3107 if test "${enable_libssp+set}" = set; then :
3108   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3109 else
3110   ENABLE_LIBSSP=yes
3111 fi
3112
3113
3114 # Check whether --enable-libstdcxx was given.
3115 if test "${enable_libstdcxx+set}" = set; then :
3116   enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3117 else
3118   ENABLE_LIBSTDCXX=default
3119 fi
3120
3121 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3122   noconfigdirs="$noconfigdirs target-libstdc++-v3"
3123 fi
3124
3125 # If this is accelerator compiler and its target is intelmic we enable
3126 # target liboffloadmic by default.  If this is compiler with offloading
3127 # for intelmic we enable host liboffloadmic by default.  Otherwise
3128 # liboffloadmic is disabled by default.
3129 # Check whether --enable-liboffloadmic was given.
3130 if test "${enable_liboffloadmic+set}" = set; then :
3131   enableval=$enable_liboffloadmic; case "$enableval" in
3132   no | host | target)
3133     enable_liboffloadmic=$enableval ;;
3134   *)
3135     as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3136 esac
3137 else
3138   if test x"$enable_as_accelerator_for" != x; then
3139   case "${target}" in
3140     *-intelmic-* | *-intelmicemul-*)
3141       enable_liboffloadmic=target
3142       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3143       ;;
3144     *)
3145       enable_liboffloadmic=no
3146       ;;
3147   esac
3148 else
3149   case "${enable_offload_targets}" in
3150     *-intelmic-* | *-intelmicemul-*)
3151       enable_liboffloadmic=host
3152       extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3153       ;;
3154     *)
3155       enable_liboffloadmic=no
3156       ;;
3157     esac
3158 fi
3159 fi
3160
3161
3162
3163 # Save it here so that, even in case of --enable-libgcj, if the Java
3164 # front-end isn't enabled, we still get libgcj disabled.
3165 libgcj_saved=$libgcj
3166 case $enable_libgcj in
3167 yes)
3168   # If we reset it here, it won't get added to noconfigdirs in the
3169   # target-specific build rules, so it will be forcibly enabled
3170   # (unless the Java language itself isn't enabled).
3171   libgcj=
3172   ;;
3173 no)
3174   # Make sure we get it printed in the list of not supported target libs.
3175   # Don't disable libffi, though, other languages use it.
3176   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3177   # Clear libgcj_saved so that even if java is enabled libffi won't be
3178   # built.
3179   libgcj_saved=
3180   ;;
3181 esac
3182
3183 # Check whether --enable-static-libjava was given.
3184 if test "${enable_static_libjava+set}" = set; then :
3185   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3186 else
3187   ENABLE_STATIC_LIBJAVA=no
3188 fi
3189
3190 enable_static_libjava=
3191 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3192   enable_static_libjava=yes
3193 fi
3194
3195 if test x$enable_static_libjava != xyes ; then
3196   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3197 fi
3198
3199
3200 # Enable libgomp by default on hosted POSIX systems, and a few others.
3201 if test x$enable_libgomp = x ; then
3202     case "${target}" in
3203     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3204         ;;
3205     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3206         ;;
3207     *-*-solaris2* | *-*-hpux11*)
3208         ;;
3209     *-*-darwin* | *-*-aix*)
3210         ;;
3211     nvptx*-*-*)
3212         ;;
3213     *)
3214         noconfigdirs="$noconfigdirs target-libgomp"
3215         ;;
3216     esac
3217 fi
3218
3219 # Disable libatomic on unsupported systems.
3220 if test -d ${srcdir}/libatomic; then
3221     if test x$enable_libatomic = x; then
3222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3223 $as_echo_n "checking for libatomic support... " >&6; }
3224         if (srcdir=${srcdir}/libatomic; \
3225                 . ${srcdir}/configure.tgt; \
3226                 test -n "$UNSUPPORTED")
3227         then
3228             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230             noconfigdirs="$noconfigdirs target-libatomic"
3231         else
3232             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234         fi
3235     fi
3236 fi
3237
3238 # Disable libcilkrts on unsupported systems.
3239 if test -d ${srcdir}/libcilkrts; then
3240     if test x$enable_libcilkrts = x; then
3241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3242 $as_echo_n "checking for libcilkrts support... " >&6; }
3243         if (srcdir=${srcdir}/libcilkrts; \
3244                 . ${srcdir}/configure.tgt; \
3245                 test -n "$UNSUPPORTED")
3246         then
3247             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249             noconfigdirs="$noconfigdirs target-libcilkrts"
3250         else
3251             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253         fi
3254     fi
3255 fi
3256
3257 # Disable liboffloadmic on unsupported systems.
3258 if test -d ${srcdir}/liboffloadmic; then
3259     if test x$enable_liboffloadmic != xno; then
3260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3261 $as_echo_n "checking for liboffloadmic support... " >&6; }
3262         if (srcdir=${srcdir}/liboffloadmic; \
3263                 . ${srcdir}/configure.tgt; \
3264                 test -n "$UNSUPPORTED")
3265         then
3266             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268             noconfigdirs="$noconfigdirs target-liboffloadmic"
3269         else
3270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3272         fi
3273     fi
3274 fi
3275
3276 # Disable libitm on unsupported systems.
3277 if test -d ${srcdir}/libitm; then
3278     if test x$enable_libitm = x; then
3279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3280 $as_echo_n "checking for libitm support... " >&6; }
3281         if (srcdir=${srcdir}/libitm; \
3282                 . ${srcdir}/configure.tgt; \
3283                 test -n "$UNSUPPORTED")
3284         then
3285             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287             noconfigdirs="$noconfigdirs target-libitm"
3288         else
3289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3291         fi
3292     fi
3293 fi
3294
3295 # Disable libsanitizer on unsupported systems.
3296 if test -d ${srcdir}/libsanitizer; then
3297     if test x$enable_libsanitizer = x; then
3298         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3299 $as_echo_n "checking for libsanitizer support... " >&6; }
3300         if (srcdir=${srcdir}/libsanitizer; \
3301                 . ${srcdir}/configure.tgt; \
3302                 test -n "$UNSUPPORTED")
3303         then
3304             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306             noconfigdirs="$noconfigdirs target-libsanitizer"
3307         else
3308             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3310         fi
3311     fi
3312 fi
3313
3314 # Disable libvtv on unsupported systems.
3315 if test -d ${srcdir}/libvtv; then
3316     if test x$enable_libvtv = x; then
3317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3318 $as_echo_n "checking for libvtv support... " >&6; }
3319         if (srcdir=${srcdir}/libvtv; \
3320                 . ${srcdir}/configure.tgt; \
3321                 test "$VTV_SUPPORTED" != "yes")
3322         then
3323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325             noconfigdirs="$noconfigdirs target-libvtv"
3326         else
3327             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3329         fi
3330     fi
3331 fi
3332
3333
3334 # Enable libmpx on supported systems by request.
3335 if test -d ${srcdir}/libmpx; then
3336     if test x$enable_libmpx = x; then
3337        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3338 $as_echo_n "checking for libmpx support... " >&6; }
3339        if (srcdir=${srcdir}/libmpx; \
3340                . ${srcdir}/configure.tgt; \
3341                test "$LIBMPX_SUPPORTED" != "yes")
3342        then
3343            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345            noconfigdirs="$noconfigdirs target-libmpx"
3346        else
3347            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348 $as_echo "yes" >&6; }
3349        fi
3350     fi
3351 fi
3352
3353
3354
3355 # Disable libquadmath for some systems.
3356 case "${target}" in
3357   avr-*-*)
3358     noconfigdirs="$noconfigdirs target-libquadmath"
3359     ;;
3360   # libquadmath is unused on AIX and libquadmath build process use of
3361   # LD_LIBRARY_PATH can break AIX bootstrap.
3362   powerpc-*-aix* | rs6000-*-aix*)
3363     noconfigdirs="$noconfigdirs target-libquadmath"
3364     ;;
3365 esac
3366
3367 # Disable libssp for some systems.
3368 case "${target}" in
3369   avr-*-*)
3370     # No hosted I/O support.
3371     noconfigdirs="$noconfigdirs target-libssp"
3372     ;;
3373   powerpc-*-aix* | rs6000-*-aix*)
3374     noconfigdirs="$noconfigdirs target-libssp"
3375     ;;
3376   rl78-*-*)
3377     # libssp uses a misaligned load to trigger a fault, but the RL78
3378     # doesn't fault for those - instead, it gives a build-time error
3379     # for explicit misaligned loads.
3380     noconfigdirs="$noconfigdirs target-libssp"
3381     ;;
3382   visium-*-*)
3383     # No hosted I/O support.
3384     noconfigdirs="$noconfigdirs target-libssp"
3385     ;;
3386 esac
3387
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdc++-v3
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391   case "${target}" in
3392     *-*-vxworks*)
3393       # VxWorks uses the Dinkumware C++ library.
3394       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395       ;;
3396     arm*-wince-pe*)
3397       # the C++ libraries don't build on top of CE's C libraries
3398       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399       ;;
3400     avr-*-*)
3401       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402       ;;
3403     ft32-*-*)
3404       noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405       ;;
3406   esac
3407 fi
3408
3409 # Disable Fortran for some systems.
3410 case "${target}" in
3411   mmix-*-*)
3412     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3413     unsupported_languages="$unsupported_languages fortran"
3414     ;;
3415 esac
3416
3417 # Disable Java if libffi is not supported.
3418 case "${target}" in
3419   aarch64-*-*)
3420     ;;
3421   alpha*-*-*)
3422     ;;
3423   arm*-*-*)
3424     ;;
3425   cris-*-*)
3426     ;;
3427   frv-*-*)
3428     ;;
3429   hppa*-*-linux*)
3430     ;;
3431   hppa*-*-hpux*)
3432     ;;
3433   i?86-*-*)
3434     ;;
3435   ia64*-*-*)
3436     ;;
3437   m32r*-*-*)
3438     ;;
3439   m68k-*-*)
3440     ;;
3441   mips*-*-rtems*)
3442     ;;
3443   mips*-*-linux*)
3444     ;;
3445   powerpc*-*-linux*)
3446     ;;
3447   powerpc-*-darwin*)
3448     ;;
3449   powerpc-*-aix* | rs6000-*-aix*)
3450     ;;
3451   powerpc-*-freebsd*)
3452     ;;
3453   powerpc64-*-freebsd*)
3454     ;;
3455   powerpc*-*-rtems*)
3456     ;;
3457   s390-*-* | s390x-*-*)
3458     ;;
3459   sh-*-* | sh[34]*-*-*)
3460     ;;
3461   sh64-*-* | sh5*-*-*)
3462     ;;
3463   sparc*-*-*)
3464     ;;
3465   x86_64-*-*)
3466     ;;
3467   *-*-*)
3468     unsupported_languages="$unsupported_languages java"
3469     ;;
3470 esac
3471
3472 # Disable Java, libgcj or related libraries for some systems.
3473 case "${target}" in
3474   powerpc-*-darwin*)
3475     ;;
3476   i[3456789]86-*-darwin*)
3477     ;;
3478   x86_64-*-darwin[912]*)
3479     ;;
3480   *-*-darwin*)
3481     noconfigdirs="$noconfigdirs ${libgcj}"
3482     ;;
3483   *-*-netware*)
3484     noconfigdirs="$noconfigdirs ${libgcj}"
3485     ;;
3486   *-*-rtems*)
3487     noconfigdirs="$noconfigdirs ${libgcj}"
3488     ;;
3489   *-*-tpf*)
3490     noconfigdirs="$noconfigdirs ${libgcj}"
3491     ;;
3492   *-*-uclinux*)
3493     noconfigdirs="$noconfigdirs ${libgcj}"
3494     ;;
3495   *-*-vxworks*)
3496     noconfigdirs="$noconfigdirs ${libgcj}"
3497     ;;
3498   aarch64*-*-freebsd*)
3499     noconfigdirs="$noconfigdirs ${libgcj}"
3500     ;;
3501   alpha*-*-*vms*)
3502     noconfigdirs="$noconfigdirs ${libgcj}"
3503     ;;
3504   arm*-*-freebsd*)
3505     noconfigdirs="$noconfigdirs ${libgcj}"
3506     ;;
3507   arm-wince-pe)
3508     noconfigdirs="$noconfigdirs ${libgcj}"
3509     ;;
3510   arm*-*-symbianelf*)
3511     noconfigdirs="$noconfigdirs ${libgcj}"
3512     ;;
3513   bfin-*-*)
3514     noconfigdirs="$noconfigdirs target-boehm-gc"
3515     ;;
3516   cris-*-* | crisv32-*-*)
3517     unsupported_languages="$unsupported_languages java"
3518     case "${target}" in
3519       *-*-linux*)
3520         ;;
3521       *) # See PR46792 regarding target-libffi.
3522         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3523     esac
3524     ;;
3525   hppa*64*-*-linux*)
3526     # In this case, it's because the hppa64-linux target is for
3527     # the kernel only at this point and has no libc, and thus no
3528     # headers, crt*.o, etc., all of which are needed by these.
3529     unsupported_languages="$unsupported_languages java"
3530     ;;
3531   hppa*64*-*-hpux*)
3532     noconfigdirs="$noconfigdirs ${libgcj}"
3533     ;;
3534   hppa*-hp-hpux11*)
3535     ;;
3536   hppa*-*-hpux*)
3537     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3538     # build on HP-UX 10.20.
3539     noconfigdirs="$noconfigdirs ${libgcj}"
3540     ;;
3541   ia64*-*-*vms*)
3542     noconfigdirs="$noconfigdirs ${libgcj}"
3543     ;;
3544   i[3456789]86-w64-mingw*)
3545     noconfigdirs="$noconfigdirs ${libgcj}"
3546     ;;
3547   i[3456789]86-*-mingw*)
3548     noconfigdirs="$noconfigdirs ${libgcj}"
3549     ;;
3550   x86_64-*-mingw*)
3551     noconfigdirs="$noconfigdirs ${libgcj}"
3552     ;;
3553   mmix-*-*)
3554     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3555     ;;
3556   powerpc-*-aix*)
3557     # copied from rs6000-*-* entry
3558     noconfigdirs="$noconfigdirs ${libgcj}"
3559     ;;
3560   rs6000-*-aix*)
3561     noconfigdirs="$noconfigdirs ${libgcj}"
3562     ;;
3563   ft32-*-*)
3564     noconfigdirs="$noconfigdirs ${libgcj}"
3565     ;;
3566   *-*-lynxos*)
3567     noconfigdirs="$noconfigdirs ${libgcj}"
3568     ;;
3569 esac
3570
3571 # Disable the go frontend on systems where it is known to not work. Please keep
3572 # this in sync with contrib/config-list.mk.
3573 case "${target}" in
3574 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3575     unsupported_languages="$unsupported_languages go"
3576     ;;
3577 esac
3578
3579 # Disable libgo for some systems where it is known to not work.
3580 # For testing, you can easily override this with --enable-libgo.
3581 if test x$enable_libgo = x; then
3582     case "${target}" in
3583     *-*-darwin*)
3584         # PR 46986
3585         noconfigdirs="$noconfigdirs target-libgo"
3586         ;;
3587     *-*-cygwin* | *-*-mingw*)
3588         noconfigdirs="$noconfigdirs target-libgo"
3589         ;;
3590     *-*-aix*)
3591         noconfigdirs="$noconfigdirs target-libgo"
3592         ;;
3593     esac
3594 fi
3595
3596 # Default libgloss CPU subdirectory.
3597 libgloss_dir="$target_cpu"
3598
3599 case "${target}" in
3600   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3601     libgloss_dir=wince
3602     ;;
3603   aarch64*-*-* )
3604     libgloss_dir=aarch64
3605     ;;
3606   arm*-*-*)
3607     libgloss_dir=arm
3608     ;;
3609   cris-*-* | crisv32-*-*)
3610     libgloss_dir=cris
3611     ;;
3612   hppa*-*-*)
3613     libgloss_dir=pa
3614     ;;
3615   i[3456789]86-*-*)
3616     libgloss_dir=i386
3617     ;;
3618   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3619     libgloss_dir=m68hc11
3620     ;;
3621   m68*-*-* | fido-*-*)
3622     libgloss_dir=m68k
3623     ;;
3624   mips*-*-*)
3625     libgloss_dir=mips
3626     ;;
3627   powerpc*-*-*)
3628     libgloss_dir=rs6000
3629     ;;
3630   sparc*-*-*)
3631     libgloss_dir=sparc
3632     ;;
3633 esac
3634
3635 # Disable newlib and libgloss for various target OSes.
3636 case "${target}" in
3637   alpha*-dec-osf*)
3638     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639     ;;
3640   i[3456789]86-*-linux*)
3641     # This section makes it possible to build newlib natively on linux.
3642     # If we are using a cross compiler then don't configure newlib.
3643     if test x${is_cross_compiler} != xno ; then
3644       noconfigdirs="$noconfigdirs target-newlib"
3645     fi
3646     noconfigdirs="$noconfigdirs target-libgloss"
3647     # If we are not using a cross compiler, do configure newlib.
3648     # Note however, that newlib will only be configured in this situation
3649     # if the --with-newlib option has been given, because otherwise
3650     # 'target-newlib' will appear in skipdirs.
3651     ;;
3652   i[3456789]86-*-rdos*)
3653     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654     ;;
3655   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3656     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657     ;;
3658   sparc-*-sunos4*)
3659     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660     ;;
3661   *-*-aix*)
3662     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663     ;;
3664   *-*-beos*)
3665     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666     ;;
3667   *-*-chorusos)
3668     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669     ;;
3670   *-*-dragonfly*)
3671     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672     ;;
3673   *-*-freebsd*)
3674     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675     ;;
3676   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3677     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678     ;;
3679   *-*-lynxos*)
3680     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681     ;;
3682   *-*-mingw*)
3683     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684     ;;
3685   *-*-netbsd*)
3686     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687     ;;
3688   *-*-netware*)
3689     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690     ;;
3691   *-*-tpf*)
3692     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693     ;;
3694   *-*-uclinux*)
3695     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696     ;;
3697   *-*-vxworks*)
3698     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699     ;;
3700 esac
3701
3702 case "${target}" in
3703   *-*-chorusos)
3704     ;;
3705   aarch64-*-darwin*)
3706     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707     noconfigdirs="$noconfigdirs sim target-rda"
3708     ;;
3709   arm-*-darwin*)
3710     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711     noconfigdirs="$noconfigdirs sim target-rda"
3712     ;;
3713   powerpc-*-darwin*)
3714     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3715     noconfigdirs="$noconfigdirs sim target-rda"
3716     ;;
3717   i[3456789]86-*-darwin*)
3718     noconfigdirs="$noconfigdirs ld gprof"
3719     noconfigdirs="$noconfigdirs sim target-rda"
3720     ;;
3721   x86_64-*-darwin[912]*)
3722     noconfigdirs="$noconfigdirs ld gas gprof"
3723     noconfigdirs="$noconfigdirs sim target-rda"
3724     ;;
3725   *-*-darwin*)
3726     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3727     noconfigdirs="$noconfigdirs sim target-rda"
3728     ;;
3729   *-*-dragonfly*)
3730     ;;
3731   *-*-freebsd*)
3732     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3733         && test -f /usr/local/include/gmp.h; then
3734       with_gmp=/usr/local
3735     fi
3736     ;;
3737   *-*-kaos*)
3738     # Remove unsupported stuff on all kaOS configurations.
3739     noconfigdirs="$noconfigdirs target-libgloss"
3740     ;;
3741   *-*-netbsd*)
3742     ;;
3743   *-*-netware*)
3744     ;;
3745   *-*-rtems*)
3746     noconfigdirs="$noconfigdirs target-libgloss"
3747     # this is not caught below because this stanza matches earlier
3748     case $target in
3749       or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3750     esac
3751     ;;
3752     # The tpf target doesn't support gdb yet.
3753   *-*-tpf*)
3754     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3755     ;;
3756   *-*-uclinux*)
3757     noconfigdirs="$noconfigdirs target-rda"
3758     ;;
3759   *-*-vxworks*)
3760     ;;
3761   alpha*-dec-osf*)
3762     # ld works, but does not support shared libraries.
3763     # gas doesn't generate exception information.
3764     noconfigdirs="$noconfigdirs gas ld"
3765     ;;
3766   alpha*-*-*vms*)
3767     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3768     ;;
3769   alpha*-*-*)
3770     # newlib is not 64 bit ready
3771     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3772     ;;
3773   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3774     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3775     ;;
3776   arc-*-*|arceb-*-*)
3777     noconfigdirs="$noconfigdirs target-libgloss"
3778     ;;
3779   arm-*-pe*)
3780     noconfigdirs="$noconfigdirs target-libgloss"
3781     ;;
3782   arm-*-riscix*)
3783     noconfigdirs="$noconfigdirs ld target-libgloss"
3784     ;;
3785   avr-*-rtems*)
3786     ;;
3787   avr-*-*)
3788     if test x${with_avrlibc} != xno; then
3789       noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3790     fi
3791     ;;
3792   c4x-*-* | tic4x-*-*)
3793     noconfigdirs="$noconfigdirs target-libgloss"
3794     ;;
3795   tic54x-*-*)
3796     noconfigdirs="$noconfigdirs target-libgloss gdb"
3797     ;;
3798   d10v-*-*)
3799     noconfigdirs="$noconfigdirs target-libgloss"
3800     ;;
3801   d30v-*-*)
3802     noconfigdirs="$noconfigdirs gdb"
3803     ;;
3804   fr30-*-elf*)
3805     noconfigdirs="$noconfigdirs gdb"
3806     ;;
3807   ft32-*-*)
3808     noconfigdirs="$noconfigdirs target-rda gprof"
3809     ;;
3810   moxie-*-*)
3811     noconfigdirs="$noconfigdirs"
3812     ;;
3813   h8300*-*-*)
3814     noconfigdirs="$noconfigdirs target-libgloss"
3815     ;;
3816   h8500-*-*)
3817     noconfigdirs="$noconfigdirs target-libgloss"
3818     ;;
3819   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3820     ;;
3821   hppa*64*-*-hpux*)
3822     noconfigdirs="$noconfigdirs gdb"
3823     ;;
3824   hppa*-*-hpux11*)
3825     noconfigdirs="$noconfigdirs gdb ld"
3826     ;;
3827   hppa*64*-*-linux*)
3828     ;;
3829   hppa*-*-linux*)
3830     ;;
3831   hppa*-*-*elf* | \
3832   hppa*-*-lites* | \
3833   hppa*-*-openbsd* | \
3834   hppa*64*-*-*)
3835     ;;
3836   hppa*-*-pro*)
3837     ;;
3838   hppa*-*-*)
3839     noconfigdirs="$noconfigdirs ld"
3840     ;;
3841   i960-*-*)
3842     noconfigdirs="$noconfigdirs gdb"
3843     ;;
3844   ia64*-*-elf*)
3845     # No gdb support yet.
3846     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3847     ;;
3848   ia64*-**-hpux*)
3849     # No ld support yet.
3850     noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3851     ;;
3852   ia64*-*-*vms*)
3853     # No ld support yet.
3854     noconfigdirs="$noconfigdirs libgui itcl ld"
3855     ;;
3856   i[3456789]86-w64-mingw*)
3857     ;;
3858   i[3456789]86-*-mingw*)
3859     target_configdirs="$target_configdirs target-winsup"
3860     ;;
3861   *-*-cygwin*)
3862     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3863     noconfigdirs="$noconfigdirs target-libgloss"
3864     # always build newlib if winsup directory is present.
3865     if test -d "$srcdir/winsup/cygwin"; then
3866       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3867     elif test -d "$srcdir/newlib"; then
3868       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3869     fi
3870     ;;
3871   i[3456789]86-*-pe)
3872     noconfigdirs="$noconfigdirs target-libgloss"
3873     ;;
3874   i[3456789]86-*-sco3.2v5*)
3875     # The linker does not yet know about weak symbols in COFF,
3876     # and is not configured to handle mixed ELF and COFF.
3877     noconfigdirs="$noconfigdirs ld target-libgloss"
3878     ;;
3879   i[3456789]86-*-sco*)
3880     noconfigdirs="$noconfigdirs gprof target-libgloss"
3881     ;;
3882   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3883     noconfigdirs="$noconfigdirs target-libgloss"
3884     ;;
3885   i[3456789]86-*-sysv4*)
3886     noconfigdirs="$noconfigdirs target-libgloss"
3887     ;;
3888   i[3456789]86-*-beos*)
3889     noconfigdirs="$noconfigdirs gdb"
3890     ;;
3891   i[3456789]86-*-rdos*)
3892     noconfigdirs="$noconfigdirs gdb"
3893     ;;
3894   mmix-*-*)
3895     noconfigdirs="$noconfigdirs gdb"
3896     ;;
3897   mt-*-*)
3898     noconfigdirs="$noconfigdirs sim"
3899     ;;
3900   powerpc-*-aix*)
3901     # copied from rs6000-*-* entry
3902     noconfigdirs="$noconfigdirs gprof"
3903     ;;
3904   powerpc*-*-winnt* | powerpc*-*-pe*)
3905     target_configdirs="$target_configdirs target-winsup"
3906     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3907     # always build newlib.
3908     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3909     ;;
3910     # This is temporary until we can link against shared libraries
3911   powerpcle-*-solaris*)
3912     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3913     ;;
3914   powerpc-*-beos*)
3915     noconfigdirs="$noconfigdirs gdb"
3916     ;;
3917   rs6000-*-lynxos*)
3918     noconfigdirs="$noconfigdirs gprof"
3919     ;;
3920   rs6000-*-aix*)
3921     noconfigdirs="$noconfigdirs gprof"
3922     ;;
3923   rs6000-*-*)
3924     noconfigdirs="$noconfigdirs gprof"
3925     ;;
3926   m68k-apollo-*)
3927     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3928     ;;
3929   microblaze*)
3930     noconfigdirs="$noconfigdirs gprof"
3931     ;;
3932   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3933     if test x$with_newlib = xyes; then
3934       noconfigdirs="$noconfigdirs gprof"
3935     fi
3936     ;;
3937   mips*-*-irix5*)
3938     noconfigdirs="$noconfigdirs gprof target-libgloss"
3939     ;;
3940   mips*-*-irix6*)
3941     noconfigdirs="$noconfigdirs gprof target-libgloss"
3942     ;;
3943   mips*-*-bsd*)
3944     noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3945     ;;
3946   mips*-*-linux*)
3947     ;;
3948   mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3949   | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3950     noconfigdirs="$noconfigdirs ld gas gprof"
3951     ;;
3952   mips*-*-*)
3953     noconfigdirs="$noconfigdirs gprof"
3954     ;;
3955   nds32*-*-*)
3956     noconfigdirs="$noconfigdirs gdb"
3957     ;;
3958   nvptx*-*-*)
3959     noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3960     ;;
3961   or1k*-*-*)
3962     noconfigdirs="$noconfigdirs gdb"
3963     ;;
3964   sh-*-* | sh64-*-*)
3965     case "${target}" in
3966       sh*-*-elf)
3967          ;;
3968       *)
3969          noconfigdirs="$noconfigdirs target-libgloss" ;;
3970     esac
3971     ;;
3972   sparc-*-sunos4*)
3973     if test x${is_cross_compiler} = xno ; then
3974            use_gnu_ld=no
3975     fi
3976     ;;
3977   tic6x-*-*)
3978     noconfigdirs="$noconfigdirs sim"
3979     ;;
3980   tilepro*-*-* | tilegx*-*-*)
3981     noconfigdirs="$noconfigdirs sim"
3982     ;;
3983   v810-*-*)
3984     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3985     ;;
3986   vax-*-*)
3987     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3988     ;;
3989 esac
3990
3991 # If we aren't building newlib, then don't build libgloss, since libgloss
3992 # depends upon some newlib header files.
3993 case "${noconfigdirs}" in
3994   *target-libgloss*) ;;
3995   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3996 esac
3997
3998 # Work in distributions that contain no compiler tools, like Autoconf.
3999 host_makefile_frag=/dev/null
4000 if test -d ${srcdir}/config ; then
4001 case "${host}" in
4002   i[3456789]86-*-msdosdjgpp*)
4003     host_makefile_frag="config/mh-djgpp"
4004     ;;
4005   *-cygwin*)
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4008 $as_echo_n "checking to see if cat works as expected... " >&6; }
4009 echo a >cygwin-cat-check
4010 if test `cat cygwin-cat-check` = a ; then
4011   rm cygwin-cat-check
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014 else
4015   rm cygwin-cat-check
4016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018   as_fn_error "The cat command does not ignore carriage return characters.
4019   Please either mount the build directory in binary mode or run the following
4020   commands before running any configure script:
4021 set -o igncr
4022 export SHELLOPTS
4023   " "$LINENO" 5
4024 fi
4025
4026     host_makefile_frag="config/mh-cygwin"
4027     ;;
4028   *-mingw*)
4029     host_makefile_frag="config/mh-mingw"
4030     ;;
4031   alpha*-linux*)
4032     host_makefile_frag="config/mh-alpha-linux"
4033     ;;
4034   hppa*-hp-hpux10*)
4035     host_makefile_frag="config/mh-pa-hpux10"
4036     ;;
4037   hppa*-hp-hpux*)
4038     host_makefile_frag="config/mh-pa"
4039     ;;
4040   hppa*-*)
4041     host_makefile_frag="config/mh-pa"
4042     ;;
4043   *-*-darwin*)
4044     host_makefile_frag="config/mh-darwin"
4045     ;;
4046   powerpc-*-aix*)
4047     host_makefile_frag="config/mh-ppc-aix"
4048     ;;
4049   rs6000-*-aix*)
4050     host_makefile_frag="config/mh-ppc-aix"
4051     ;;
4052 esac
4053 fi
4054
4055 if test "${build}" != "${host}" ; then
4056   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4057   AS_FOR_BUILD=${AS_FOR_BUILD-as}
4058   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4059   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4060   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4061   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4062   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4063   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4064   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4065   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4066   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4067   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4068   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4069 else
4070   AR_FOR_BUILD="\$(AR)"
4071   AS_FOR_BUILD="\$(AS)"
4072   CC_FOR_BUILD="\$(CC)"
4073   CXX_FOR_BUILD="\$(CXX)"
4074   GCJ_FOR_BUILD="\$(GCJ)"
4075   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4076   GOC_FOR_BUILD="\$(GOC)"
4077   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4078   LD_FOR_BUILD="\$(LD)"
4079   NM_FOR_BUILD="\$(NM)"
4080   RANLIB_FOR_BUILD="\$(RANLIB)"
4081   WINDRES_FOR_BUILD="\$(WINDRES)"
4082   WINDMC_FOR_BUILD="\$(WINDMC)"
4083 fi
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 if test -n "$ac_tool_prefix"; then
4091   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_CC+set}" = set; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   if test -n "$CC"; then
4099   ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106     for ac_exec_ext in '' $ac_executable_extensions; do
4107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113   done
4114 IFS=$as_save_IFS
4115
4116 fi
4117 fi
4118 CC=$ac_cv_prog_CC
4119 if test -n "$CC"; then
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4122 else
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 fi
4126
4127
4128 fi
4129 if test -z "$ac_cv_prog_CC"; then
4130   ac_ct_CC=$CC
4131   # Extract the first word of "gcc", so it can be a program name with args.
4132 set dummy gcc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   if test -n "$ac_ct_CC"; then
4139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_exec_ext in '' $ac_executable_extensions; do
4147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148     ac_cv_prog_ac_ct_CC="gcc"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161 $as_echo "$ac_ct_CC" >&6; }
4162 else
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167   if test "x$ac_ct_CC" = x; then
4168     CC=""
4169   else
4170     case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4175 esac
4176     CC=$ac_ct_CC
4177   fi
4178 else
4179   CC="$ac_cv_prog_CC"
4180 fi
4181
4182 if test -z "$CC"; then
4183           if test -n "$ac_tool_prefix"; then
4184     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}cc; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_CC+set}" = set; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if test -n "$CC"; then
4192   ac_cv_prog_CC="$CC" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201     ac_cv_prog_CC="${ac_tool_prefix}cc"
4202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206   done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 CC=$ac_cv_prog_CC
4212 if test -n "$CC"; then
4213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214 $as_echo "$CC" >&6; }
4215 else
4216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221   fi
4222 fi
4223 if test -z "$CC"; then
4224   # Extract the first word of "cc", so it can be a program name with args.
4225 set dummy cc; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -n "$CC"; then
4232   ac_cv_prog_CC="$CC" # Let the user override the test.
4233 else
4234   ac_prog_rejected=no
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240     for ac_exec_ext in '' $ac_executable_extensions; do
4241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4243        ac_prog_rejected=yes
4244        continue
4245      fi
4246     ac_cv_prog_CC="cc"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 if test $ac_prog_rejected = yes; then
4255   # We found a bogon in the path, so make sure we never use it.
4256   set dummy $ac_cv_prog_CC
4257   shift
4258   if test $# != 0; then
4259     # We chose a different compiler from the bogus one.
4260     # However, it has the same basename, so the bogon will be chosen
4261     # first if we set CC to just the basename; use the full file name.
4262     shift
4263     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4264   fi
4265 fi
4266 fi
4267 fi
4268 CC=$ac_cv_prog_CC
4269 if test -n "$CC"; then
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4271 $as_echo "$CC" >&6; }
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277
4278 fi
4279 if test -z "$CC"; then
4280   if test -n "$ac_tool_prefix"; then
4281   for ac_prog in cl.exe
4282   do
4283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if test "${ac_cv_prog_CC+set}" = set; then :
4288   $as_echo_n "(cached) " >&6
4289 else
4290   if test -n "$CC"; then
4291   ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298     for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305   done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 CC=$ac_cv_prog_CC
4311 if test -n "$CC"; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313 $as_echo "$CC" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320     test -n "$CC" && break
4321   done
4322 fi
4323 if test -z "$CC"; then
4324   ac_ct_CC=$CC
4325   for ac_prog in cl.exe
4326 do
4327   # Extract the first word of "$ac_prog", so it can be a program name with args.
4328 set dummy $ac_prog; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -n "$ac_ct_CC"; then
4335   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342     for ac_exec_ext in '' $ac_executable_extensions; do
4343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344     ac_cv_prog_ac_ct_CC="$ac_prog"
4345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349   done
4350 IFS=$as_save_IFS
4351
4352 fi
4353 fi
4354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4355 if test -n "$ac_ct_CC"; then
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4357 $as_echo "$ac_ct_CC" >&6; }
4358 else
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363
4364   test -n "$ac_ct_CC" && break
4365 done
4366
4367   if test "x$ac_ct_CC" = x; then
4368     CC=""
4369   else
4370     case $cross_compiling:$ac_tool_warned in
4371 yes:)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4375 esac
4376     CC=$ac_ct_CC
4377   fi
4378 fi
4379
4380 fi
4381
4382
4383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4385 as_fn_error "no acceptable C compiler found in \$PATH
4386 See \`config.log' for more details." "$LINENO" 5; }
4387
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4390 set X $ac_compile
4391 ac_compiler=$2
4392 for ac_option in --version -v -V -qversion; do
4393   { { ac_try="$ac_compiler $ac_option >&5"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401   ac_status=$?
4402   if test -s conftest.err; then
4403     sed '10a\
4404 ... rest of stderr output deleted ...
4405          10q' conftest.err >conftest.er1
4406     cat conftest.er1 >&5
4407     rm -f conftest.er1 conftest.err
4408   fi
4409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410   test $ac_status = 0; }
4411 done
4412
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415
4416 int
4417 main ()
4418 {
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 ac_clean_files_save=$ac_clean_files
4425 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4426 # Try to create an executable without -o first, disregard a.out.
4427 # It will help us diagnose broken compilers, and finding out an intuition
4428 # of exeext.
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4430 $as_echo_n "checking for C compiler default output file name... " >&6; }
4431 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4432
4433 # The possible output files:
4434 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4435
4436 ac_rmfiles=
4437 for ac_file in $ac_files
4438 do
4439   case $ac_file in
4440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4441     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4442   esac
4443 done
4444 rm -f $ac_rmfiles
4445
4446 if { { ac_try="$ac_link_default"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453   (eval "$ac_link_default") 2>&5
4454   ac_status=$?
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; }; then :
4457   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4458 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4459 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4460 # so that the user can short-circuit this test for compilers unknown to
4461 # Autoconf.
4462 for ac_file in $ac_files ''
4463 do
4464   test -f "$ac_file" || continue
4465   case $ac_file in
4466     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4467         ;;
4468     [ab].out )
4469         # We found the default executable, but exeext='' is most
4470         # certainly right.
4471         break;;
4472     *.* )
4473         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4474         then :; else
4475            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4476         fi
4477         # We set ac_cv_exeext here because the later test for it is not
4478         # safe: cross compilers may not add the suffix if given an `-o'
4479         # argument, so we may need to know it at that point already.
4480         # Even if this section looks crufty: it has the advantage of
4481         # actually working.
4482         break;;
4483     * )
4484         break;;
4485   esac
4486 done
4487 test "$ac_cv_exeext" = no && ac_cv_exeext=
4488
4489 else
4490   ac_file=''
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4493 $as_echo "$ac_file" >&6; }
4494 if test -z "$ac_file"; then :
4495   $as_echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4500 { as_fn_set_status 77
4501 as_fn_error "C compiler cannot create executables
4502 See \`config.log' for more details." "$LINENO" 5; }; }
4503 fi
4504 ac_exeext=$ac_cv_exeext
4505
4506 # Check that the compiler produces executables we can run.  If not, either
4507 # the compiler is broken, or we cross compile.
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509 $as_echo_n "checking whether the C compiler works... " >&6; }
4510 # If not cross compiling, check that we can run a simple program.
4511 if test "$cross_compiling" != yes; then
4512   if { ac_try='./$ac_file'
4513   { { case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522   test $ac_status = 0; }; }; then
4523     cross_compiling=no
4524   else
4525     if test "$cross_compiling" = maybe; then
4526         cross_compiling=yes
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 run C compiled programs.
4531 If you meant to cross compile, use \`--host'.
4532 See \`config.log' for more details." "$LINENO" 5; }
4533     fi
4534   fi
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4538
4539 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4540 ac_clean_files=$ac_clean_files_save
4541 # Check that the compiler produces executables we can run.  If not, either
4542 # the compiler is broken, or we cross compile.
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4544 $as_echo_n "checking whether we are cross compiling... " >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4546 $as_echo "$cross_compiling" >&6; }
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4549 $as_echo_n "checking for suffix of executables... " >&6; }
4550 if { { ac_try="$ac_link"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557   (eval "$ac_link") 2>&5
4558   ac_status=$?
4559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560   test $ac_status = 0; }; then :
4561   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4562 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4563 # work properly (i.e., refer to `conftest.exe'), while it won't with
4564 # `rm'.
4565 for ac_file in conftest.exe conftest conftest.*; do
4566   test -f "$ac_file" || continue
4567   case $ac_file in
4568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4569     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4570           break;;
4571     * ) break;;
4572   esac
4573 done
4574 else
4575   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error "cannot compute suffix of executables: cannot compile and link
4578 See \`config.log' for more details." "$LINENO" 5; }
4579 fi
4580 rm -f conftest$ac_cv_exeext
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4582 $as_echo "$ac_cv_exeext" >&6; }
4583
4584 rm -f conftest.$ac_ext
4585 EXEEXT=$ac_cv_exeext
4586 ac_exeext=$EXEEXT
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4588 $as_echo_n "checking for suffix of object files... " >&6; }
4589 if test "${ac_cv_objext+set}" = set; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.o conftest.obj
4604 if { { ac_try="$ac_compile"
4605 case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610 $as_echo "$ac_try_echo"; } >&5
4611   (eval "$ac_compile") 2>&5
4612   ac_status=$?
4613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614   test $ac_status = 0; }; then :
4615   for ac_file in conftest.o conftest.obj conftest.*; do
4616   test -f "$ac_file" || continue;
4617   case $ac_file in
4618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4619     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4620        break;;
4621   esac
4622 done
4623 else
4624   $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error "cannot compute suffix of object files: cannot compile
4630 See \`config.log' for more details." "$LINENO" 5; }
4631 fi
4632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4635 $as_echo "$ac_cv_objext" >&6; }
4636 OBJEXT=$ac_cv_objext
4637 ac_objext=$OBJEXT
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4640 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649 #ifndef __GNUC__
4650        choke me
4651 #endif
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658   ac_compiler_gnu=yes
4659 else
4660   ac_compiler_gnu=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4669   GCC=yes
4670 else
4671   GCC=
4672 fi
4673 ac_test_CFLAGS=${CFLAGS+set}
4674 ac_save_CFLAGS=$CFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cc_g+set}" = set; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   ac_save_c_werror_flag=$ac_c_werror_flag
4681    ac_c_werror_flag=yes
4682    ac_cv_prog_cc_g=no
4683    CFLAGS="-g"
4684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696   ac_cv_prog_cc_g=yes
4697 else
4698   CFLAGS=""
4699       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701
4702 int
4703 main ()
4704 {
4705
4706   ;
4707   return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711
4712 else
4713   ac_c_werror_flag=$ac_save_c_werror_flag
4714          CFLAGS="-g"
4715          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727   ac_cv_prog_cc_g=yes
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734    ac_c_werror_flag=$ac_save_c_werror_flag
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4737 $as_echo "$ac_cv_prog_cc_g" >&6; }
4738 if test "$ac_test_CFLAGS" = set; then
4739   CFLAGS=$ac_save_CFLAGS
4740 elif test $ac_cv_prog_cc_g = yes; then
4741   if test "$GCC" = yes; then
4742     CFLAGS="-g -O2"
4743   else
4744     CFLAGS="-g"
4745   fi
4746 else
4747   if test "$GCC" = yes; then
4748     CFLAGS="-O2"
4749   else
4750     CFLAGS=
4751   fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4755 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   ac_cv_prog_cc_c89=no
4759 ac_save_CC=$CC
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762 #include <stdarg.h>
4763 #include <stdio.h>
4764 #include <sys/types.h>
4765 #include <sys/stat.h>
4766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4767 struct buf { int x; };
4768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4769 static char *e (p, i)
4770      char **p;
4771      int i;
4772 {
4773   return p[i];
4774 }
4775 static char *f (char * (*g) (char **, int), char **p, ...)
4776 {
4777   char *s;
4778   va_list v;
4779   va_start (v,p);
4780   s = g (p, va_arg (v,int));
4781   va_end (v);
4782   return s;
4783 }
4784
4785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4786    function prototypes and stuff, but not '\xHH' hex character constants.
4787    These don't provoke an error unfortunately, instead are silently treated
4788    as 'x'.  The following induces an error, until -std is added to get
4789    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4790    array size at least.  It's necessary to write '\x00'==0 to get something
4791    that's true only with -std.  */
4792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4793
4794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4795    inside strings and character constants.  */
4796 #define FOO(x) 'x'
4797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4798
4799 int test (int i, double x);
4800 struct s1 {int (*f) (int a);};
4801 struct s2 {int (*f) (double a);};
4802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4803 int argc;
4804 char **argv;
4805 int
4806 main ()
4807 {
4808 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4814         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4815 do
4816   CC="$ac_save_CC $ac_arg"
4817   if ac_fn_c_try_compile "$LINENO"; then :
4818   ac_cv_prog_cc_c89=$ac_arg
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext
4821   test "x$ac_cv_prog_cc_c89" != "xno" && break
4822 done
4823 rm -f conftest.$ac_ext
4824 CC=$ac_save_CC
4825
4826 fi
4827 # AC_CACHE_VAL
4828 case "x$ac_cv_prog_cc_c89" in
4829   x)
4830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4831 $as_echo "none needed" >&6; } ;;
4832   xno)
4833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834 $as_echo "unsupported" >&6; } ;;
4835   *)
4836     CC="$CC $ac_cv_prog_cc_c89"
4837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4839 esac
4840 if test "x$ac_cv_prog_cc_c89" != xno; then :
4841
4842 fi
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850 ac_ext=cpp
4851 ac_cpp='$CXXCPP $CPPFLAGS'
4852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4855 if test -z "$CXX"; then
4856   if test -n "$CCC"; then
4857     CXX=$CCC
4858   else
4859     if test -n "$ac_tool_prefix"; then
4860   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4861   do
4862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_CXX+set}" = set; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$CXX"; then
4870   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 CXX=$ac_cv_prog_CXX
4890 if test -n "$CXX"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4892 $as_echo "$CXX" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899     test -n "$CXX" && break
4900   done
4901 fi
4902 if test -z "$CXX"; then
4903   ac_ct_CXX=$CXX
4904   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4905 do
4906   # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   if test -n "$ac_ct_CXX"; then
4914   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_prog_ac_ct_CXX="$ac_prog"
4924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928   done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4934 if test -n "$ac_ct_CXX"; then
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4936 $as_echo "$ac_ct_CXX" >&6; }
4937 else
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943   test -n "$ac_ct_CXX" && break
4944 done
4945
4946   if test "x$ac_ct_CXX" = x; then
4947     CXX="g++"
4948   else
4949     case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955     CXX=$ac_ct_CXX
4956   fi
4957 fi
4958
4959   fi
4960 fi
4961 # Provide some information about the compiler.
4962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4963 set X $ac_compile
4964 ac_compiler=$2
4965 for ac_option in --version -v -V -qversion; do
4966   { { ac_try="$ac_compiler $ac_option >&5"
4967 case "(($ac_try" in
4968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969   *) ac_try_echo=$ac_try;;
4970 esac
4971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4972 $as_echo "$ac_try_echo"; } >&5
4973   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4974   ac_status=$?
4975   if test -s conftest.err; then
4976     sed '10a\
4977 ... rest of stderr output deleted ...
4978          10q' conftest.err >conftest.er1
4979     cat conftest.er1 >&5
4980     rm -f conftest.er1 conftest.err
4981   fi
4982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983   test $ac_status = 0; }
4984 done
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4987 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4988 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h.  */
4993
4994 int
4995 main ()
4996 {
4997 #ifndef __GNUC__
4998        choke me
4999 #endif
5000
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_cxx_try_compile "$LINENO"; then :
5006   ac_compiler_gnu=yes
5007 else
5008   ac_compiler_gnu=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5012
5013 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5015 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5016 if test $ac_compiler_gnu = yes; then
5017   GXX=yes
5018 else
5019   GXX=
5020 fi
5021 ac_test_CXXFLAGS=${CXXFLAGS+set}
5022 ac_save_CXXFLAGS=$CXXFLAGS
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5024 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5025 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5029    ac_cxx_werror_flag=yes
5030    ac_cv_prog_cxx_g=no
5031    CXXFLAGS="-g"
5032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h.  */
5034
5035 int
5036 main ()
5037 {
5038
5039   ;
5040   return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_cxx_try_compile "$LINENO"; then :
5044   ac_cv_prog_cxx_g=yes
5045 else
5046   CXXFLAGS=""
5047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h.  */
5049
5050 int
5051 main ()
5052 {
5053
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 if ac_fn_cxx_try_compile "$LINENO"; then :
5059
5060 else
5061   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5062          CXXFLAGS="-g"
5063          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h.  */
5065
5066 int
5067 main ()
5068 {
5069
5070   ;
5071   return 0;
5072 }
5073 _ACEOF
5074 if ac_fn_cxx_try_compile "$LINENO"; then :
5075   ac_cv_prog_cxx_g=yes
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5085 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5086 if test "$ac_test_CXXFLAGS" = set; then
5087   CXXFLAGS=$ac_save_CXXFLAGS
5088 elif test $ac_cv_prog_cxx_g = yes; then
5089   if test "$GXX" = yes; then
5090     CXXFLAGS="-g -O2"
5091   else
5092     CXXFLAGS="-g"
5093   fi
5094 else
5095   if test "$GXX" = yes; then
5096     CXXFLAGS="-O2"
5097   else
5098     CXXFLAGS=
5099   fi
5100 fi
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108 # We must set the default linker to the linker used by gcc for the correct
5109 # operation of libtool.  If LD is not defined and we are using gcc, try to
5110 # set the LD default to the ld used by gcc.
5111 if test -z "$LD"; then
5112   if test "$GCC" = yes; then
5113     case $build in
5114     *-*-mingw*)
5115       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5116     *)
5117       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5118     esac
5119     case $gcc_prog_ld in
5120     # Accept absolute paths.
5121     [\\/]* | [A-Za-z]:[\\/]*)
5122       LD="$gcc_prog_ld" ;;
5123     esac
5124   fi
5125 fi
5126
5127 # Check whether -static-libstdc++ -static-libgcc is supported.
5128 have_static_libs=no
5129 if test "$GCC" = yes; then
5130   saved_LDFLAGS="$LDFLAGS"
5131
5132   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5134 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5135   ac_ext=cpp
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5141
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144
5145 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5146 #error -static-libstdc++ not implemented
5147 #endif
5148 int main() {}
5149 _ACEOF
5150 if ac_fn_cxx_try_link "$LINENO"; then :
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5152 $as_echo "yes" >&6; }; have_static_libs=yes
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158     conftest$ac_exeext conftest.$ac_ext
5159   ac_ext=c
5160 ac_cpp='$CPP $CPPFLAGS'
5161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164
5165
5166   LDFLAGS="$saved_LDFLAGS"
5167 fi
5168
5169
5170
5171
5172 if test -n "$ac_tool_prefix"; then
5173   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5174 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180   if test -n "$GNATBIND"; then
5181   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195   done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 GNATBIND=$ac_cv_prog_GNATBIND
5201 if test -n "$GNATBIND"; then
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5203 $as_echo "$GNATBIND" >&6; }
5204 else
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210 fi
5211 if test -z "$ac_cv_prog_GNATBIND"; then
5212   ac_ct_GNATBIND=$GNATBIND
5213   # Extract the first word of "gnatbind", so it can be a program name with args.
5214 set dummy gnatbind; ac_word=$2
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 $as_echo_n "checking for $ac_word... " >&6; }
5217 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if test -n "$ac_ct_GNATBIND"; then
5221   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_exec_ext in '' $ac_executable_extensions; do
5229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235   done
5236 IFS=$as_save_IFS
5237
5238 fi
5239 fi
5240 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5241 if test -n "$ac_ct_GNATBIND"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5243 $as_echo "$ac_ct_GNATBIND" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249   if test "x$ac_ct_GNATBIND" = x; then
5250     GNATBIND="no"
5251   else
5252     case $cross_compiling:$ac_tool_warned in
5253 yes:)
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5257 esac
5258     GNATBIND=$ac_ct_GNATBIND
5259   fi
5260 else
5261   GNATBIND="$ac_cv_prog_GNATBIND"
5262 fi
5263
5264 if test -n "$ac_tool_prefix"; then
5265   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   if test -n "$GNATMAKE"; then
5273   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287   done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 GNATMAKE=$ac_cv_prog_GNATMAKE
5293 if test -n "$GNATMAKE"; then
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5295 $as_echo "$GNATMAKE" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 fi
5303 if test -z "$ac_cv_prog_GNATMAKE"; then
5304   ac_ct_GNATMAKE=$GNATMAKE
5305   # Extract the first word of "gnatmake", so it can be a program name with args.
5306 set dummy gnatmake; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if test -n "$ac_ct_GNATMAKE"; then
5313   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5333 if test -n "$ac_ct_GNATMAKE"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5335 $as_echo "$ac_ct_GNATMAKE" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341   if test "x$ac_ct_GNATMAKE" = x; then
5342     GNATMAKE="no"
5343   else
5344     case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350     GNATMAKE=$ac_ct_GNATMAKE
5351   fi
5352 else
5353   GNATMAKE="$ac_cv_prog_GNATMAKE"
5354 fi
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5357 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5358 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   cat >conftest.adb <<EOF
5362 procedure conftest is begin null; end conftest;
5363 EOF
5364 acx_cv_cc_gcc_supports_ada=no
5365 # There is a bug in old released versions of GCC which causes the
5366 # driver to exit successfully when the appropriate language module
5367 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5368 # Therefore we must check for the error message as well as an
5369 # unsuccessful exit.
5370 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5371 # given a .adb file, but produce no object file.  So we must check
5372 # if an object file was really produced to guard against this.
5373 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5374 if test x"$errors" = x && test -f conftest.$ac_objext; then
5375   acx_cv_cc_gcc_supports_ada=yes
5376 fi
5377 rm -f conftest.*
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5380 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5381
5382 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5383   have_gnat=yes
5384 else
5385   have_gnat=no
5386 fi
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5389 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5390 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393    echo abfoo >t1
5394   echo cdfoo >t2
5395   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5396   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5397     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5398       :
5399     else
5400       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5401     fi
5402   fi
5403   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5404     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5405       :
5406     else
5407       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5408     fi
5409   fi
5410   rm t1 t2
5411
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5414 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5415 do_compare="$gcc_cv_prog_cmp_skip"
5416
5417
5418
5419 # Check whether --enable-bootstrap was given.
5420 if test "${enable_bootstrap+set}" = set; then :
5421   enableval=$enable_bootstrap;
5422 else
5423   enable_bootstrap=default
5424 fi
5425
5426
5427 # Issue errors and warnings for invalid/strange bootstrap combinations.
5428 if test -r $srcdir/gcc/configure; then
5429   have_compiler=yes
5430 else
5431   have_compiler=no
5432 fi
5433
5434 case "$have_compiler:$host:$target:$enable_bootstrap" in
5435   *:*:*:no) ;;
5436
5437   # Default behavior.  Enable bootstrap if we have a compiler
5438   # and we are in a native configuration.
5439   yes:$build:$build:default)
5440     enable_bootstrap=yes ;;
5441
5442   *:*:*:default)
5443     enable_bootstrap=no ;;
5444
5445   # We have a compiler and we are in a native configuration, bootstrap is ok
5446   yes:$build:$build:yes)
5447     ;;
5448
5449   # Other configurations, but we have a compiler.  Assume the user knows
5450   # what he's doing.
5451   yes:*:*:yes)
5452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5453 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5454     ;;
5455
5456   # No compiler: if they passed --enable-bootstrap explicitly, fail
5457   no:*:*:yes)
5458     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5459
5460   # Fail if wrong command line
5461   *)
5462     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5463     ;;
5464 esac
5465
5466 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5467 # C++98 compiler can still start the bootstrap.
5468 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5469   CXX="$CXX -std=gnu++98"
5470 fi
5471
5472 # Used for setting $lt_cv_objdir
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5474 $as_echo_n "checking for objdir... " >&6; }
5475 if test "${lt_cv_objdir+set}" = set; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   rm -f .libs 2>/dev/null
5479 mkdir .libs 2>/dev/null
5480 if test -d .libs; then
5481   lt_cv_objdir=.libs
5482 else
5483   # MS-DOS does not allow filenames that begin with a dot.
5484   lt_cv_objdir=_libs
5485 fi
5486 rmdir .libs 2>/dev/null
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5489 $as_echo "$lt_cv_objdir" >&6; }
5490 objdir=$lt_cv_objdir
5491
5492
5493
5494
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define LT_OBJDIR "$lt_cv_objdir/"
5498 _ACEOF
5499
5500
5501
5502 # Check for GMP, MPFR and MPC
5503 gmplibs="-lmpc -lmpfr -lgmp"
5504 gmpinc=
5505 have_gmp=no
5506
5507 # Specify a location for mpc
5508 # check for this first so it ends up on the link line before mpfr.
5509
5510 # Check whether --with-mpc was given.
5511 if test "${with_mpc+set}" = set; then :
5512   withval=$with_mpc;
5513 fi
5514
5515
5516 # Check whether --with-mpc-include was given.
5517 if test "${with_mpc_include+set}" = set; then :
5518   withval=$with_mpc_include;
5519 fi
5520
5521
5522 # Check whether --with-mpc-lib was given.
5523 if test "${with_mpc_lib+set}" = set; then :
5524   withval=$with_mpc_lib;
5525 fi
5526
5527
5528 if test "x$with_mpc" != x; then
5529   gmplibs="-L$with_mpc/lib $gmplibs"
5530   gmpinc="-I$with_mpc/include $gmpinc"
5531 fi
5532 if test "x$with_mpc_include" != x; then
5533   gmpinc="-I$with_mpc_include $gmpinc"
5534 fi
5535 if test "x$with_mpc_lib" != x; then
5536   gmplibs="-L$with_mpc_lib $gmplibs"
5537 fi
5538 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5539   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5540   gmpinc='-I$$s/mpc/src '"$gmpinc"
5541   # Do not test the mpc version.  Assume that it is sufficient, since
5542   # it is in the source tree, and the library has not been built yet
5543   # but it would be included on the link line in the version check below
5544   # hence making the test fail.
5545   have_gmp=yes
5546 fi
5547
5548 # Specify a location for mpfr
5549 # check for this first so it ends up on the link line before gmp.
5550
5551 # Check whether --with-mpfr-dir was given.
5552 if test "${with_mpfr_dir+set}" = set; then :
5553   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5554 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5555 fi
5556
5557
5558
5559 # Check whether --with-mpfr was given.
5560 if test "${with_mpfr+set}" = set; then :
5561   withval=$with_mpfr;
5562 fi
5563
5564
5565 # Check whether --with-mpfr-include was given.
5566 if test "${with_mpfr_include+set}" = set; then :
5567   withval=$with_mpfr_include;
5568 fi
5569
5570
5571 # Check whether --with-mpfr-lib was given.
5572 if test "${with_mpfr_lib+set}" = set; then :
5573   withval=$with_mpfr_lib;
5574 fi
5575
5576
5577 if test "x$with_mpfr" != x; then
5578   gmplibs="-L$with_mpfr/lib $gmplibs"
5579   gmpinc="-I$with_mpfr/include $gmpinc"
5580 fi
5581 if test "x$with_mpfr_include" != x; then
5582   gmpinc="-I$with_mpfr_include $gmpinc"
5583 fi
5584 if test "x$with_mpfr_lib" != x; then
5585   gmplibs="-L$with_mpfr_lib $gmplibs"
5586 fi
5587 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5588   # MPFR v3.1.0 moved the sources into a src sub-directory.
5589   if test -d ${srcdir}/mpfr/src; then
5590     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5591     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5592     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5593   else
5594     gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5595     gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5596     extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5597   fi
5598   # Do not test the mpfr version.  Assume that it is sufficient, since
5599   # it is in the source tree, and the library has not been built yet
5600   # but it would be included on the link line in the version check below
5601   # hence making the test fail.
5602   have_gmp=yes
5603 fi
5604
5605 # Specify a location for gmp
5606
5607 # Check whether --with-gmp-dir was given.
5608 if test "${with_gmp_dir+set}" = set; then :
5609   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5610 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5611 fi
5612
5613
5614
5615 # Check whether --with-gmp was given.
5616 if test "${with_gmp+set}" = set; then :
5617   withval=$with_gmp;
5618 fi
5619
5620
5621 # Check whether --with-gmp-include was given.
5622 if test "${with_gmp_include+set}" = set; then :
5623   withval=$with_gmp_include;
5624 fi
5625
5626
5627 # Check whether --with-gmp-lib was given.
5628 if test "${with_gmp_lib+set}" = set; then :
5629   withval=$with_gmp_lib;
5630 fi
5631
5632
5633
5634 if test "x$with_gmp" != x; then
5635   gmplibs="-L$with_gmp/lib $gmplibs"
5636   gmpinc="-I$with_gmp/include $gmpinc"
5637 fi
5638 if test "x$with_gmp_include" != x; then
5639   gmpinc="-I$with_gmp_include $gmpinc"
5640 fi
5641 if test "x$with_gmp_lib" != x; then
5642   gmplibs="-L$with_gmp_lib $gmplibs"
5643 fi
5644 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5645   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5646   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5647   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5648   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5649   extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5650   # Do not test the gmp version.  Assume that it is sufficient, since
5651   # it is in the source tree, and the library has not been built yet
5652   # but it would be included on the link line in the version check below
5653   # hence making the test fail.
5654   have_gmp=yes
5655 fi
5656
5657 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5658   have_gmp=yes
5659   saved_CFLAGS="$CFLAGS"
5660   CFLAGS="$CFLAGS $gmpinc"
5661   # Check for the recommended and required versions of GMP.
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5663 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5664
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h.  */
5667 #include "gmp.h"
5668 int
5669 main ()
5670 {
5671
5672   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5673   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5674   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
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 int
5687 main ()
5688 {
5689
5690   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5691   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5692   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5693   choke me
5694   #endif
5695
5696   ;
5697   return 0;
5698 }
5699 _ACEOF
5700 if ac_fn_c_try_compile "$LINENO"; then :
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5702 $as_echo "yes" >&6; }
5703 else
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5705 $as_echo "buggy but acceptable" >&6; }
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }; have_gmp=no
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713
5714   # If we have GMP, check the MPFR version.
5715   if test x"$have_gmp" = xyes; then
5716     # Check for the recommended and required versions of MPFR.
5717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5718 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h.  */
5721 #include <gmp.h>
5722     #include <mpfr.h>
5723 int
5724 main ()
5725 {
5726
5727     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5728     choke me
5729     #endif
5730
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h.  */
5738 #include <gmp.h>
5739     #include <mpfr.h>
5740 int
5741 main ()
5742 {
5743
5744     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5745     choke me
5746     #endif
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5755 else
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5757 $as_echo "buggy but acceptable" >&6; }
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }; have_gmp=no
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765   fi
5766
5767   # Check for the MPC header version.
5768   if test x"$have_gmp" = xyes ; then
5769     # Check for the recommended and required versions of MPC.
5770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5771 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5772     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h.  */
5774 #include <mpc.h>
5775 int
5776 main ()
5777 {
5778
5779     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5780     choke me
5781     #endif
5782
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h.  */
5790 #include <mpc.h>
5791 int
5792 main ()
5793 {
5794
5795     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5796     choke me
5797     #endif
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5805 $as_echo "yes" >&6; }
5806 else
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5808 $as_echo "buggy but acceptable" >&6; }
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 else
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }; have_gmp=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816   fi
5817
5818   # Now check the MPFR library.
5819   if test x"$have_gmp" = xyes; then
5820     saved_LIBS="$LIBS"
5821     LIBS="$LIBS $gmplibs"
5822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5823 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5824     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h.  */
5826 #include <mpc.h>
5827 int
5828 main ()
5829 {
5830
5831     mpfr_t n;
5832     mpfr_t x;
5833     mpc_t c;
5834     int t;
5835     mpfr_init (n);
5836     mpfr_init (x);
5837     mpfr_atan2 (n, n, x, GMP_RNDN);
5838     mpfr_erfc (n, x, GMP_RNDN);
5839     mpfr_subnormalize (x, t, GMP_RNDN);
5840     mpfr_clear(n);
5841     mpfr_clear(x);
5842     mpc_init2 (c, 53);
5843     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5844     mpc_cosh (c, c, MPC_RNDNN);
5845     mpc_pow (c, c, c, MPC_RNDNN);
5846     mpc_acosh (c, c, MPC_RNDNN);
5847     mpc_clear (c);
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_link "$LINENO"; then :
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5855 $as_echo "yes" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }; have_gmp=no
5859 fi
5860 rm -f core conftest.err conftest.$ac_objext \
5861     conftest$ac_exeext conftest.$ac_ext
5862     LIBS="$saved_LIBS"
5863   fi
5864
5865   CFLAGS="$saved_CFLAGS"
5866
5867 # The library versions listed in the error message below should match
5868 # the HARD-minimums enforced above.
5869   if test x$have_gmp != xyes; then
5870     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5871 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5872 their locations.  Source code for these libraries can be found at
5873 their respective hosting sites as well as at
5874 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5875 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5876 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5877 make sure that you have installed both the libraries and the header
5878 files.  They may be located in separate packages." "$LINENO" 5
5879   fi
5880 fi
5881
5882 # Flags needed for both GMP, MPFR and/or MPC.
5883
5884
5885
5886
5887
5888
5889
5890 # Libraries to use for stage1 or when not bootstrapping.
5891
5892 # Check whether --with-stage1-libs was given.
5893 if test "${with_stage1_libs+set}" = set; then :
5894   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5895    stage1_libs=
5896  else
5897    stage1_libs=$withval
5898  fi
5899 else
5900   stage1_libs=
5901 fi
5902
5903
5904
5905 # Linker flags to use for stage1 or when not bootstrapping.
5906
5907 # Check whether --with-stage1-ldflags was given.
5908 if test "${with_stage1_ldflags+set}" = set; then :
5909   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5910    stage1_ldflags=
5911  else
5912    stage1_ldflags=$withval
5913  fi
5914 else
5915   stage1_ldflags=
5916  # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5917  # if supported.  But if the user explicitly specified the libraries to use,
5918  # trust that they are doing what they want.
5919  if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5920    stage1_ldflags="-static-libstdc++ -static-libgcc"
5921  fi
5922 fi
5923
5924
5925
5926 # Libraries to use for stage2 and later builds.
5927
5928 # Check whether --with-boot-libs was given.
5929 if test "${with_boot_libs+set}" = set; then :
5930   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5931    poststage1_libs=
5932  else
5933    poststage1_libs=$withval
5934  fi
5935 else
5936   poststage1_libs=
5937 fi
5938
5939
5940
5941 # Linker flags to use for stage2 and later builds.
5942
5943 # Check whether --with-boot-ldflags was given.
5944 if test "${with_boot_ldflags+set}" = set; then :
5945   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5946    poststage1_ldflags=
5947  else
5948    poststage1_ldflags=$withval
5949  fi
5950 else
5951   poststage1_ldflags=
5952  # In stages 2 and 3, default to linking libstdc++ and libgcc
5953  # statically.  But if the user explicitly specified the libraries to
5954  # use, trust that they are doing what they want.
5955  if test "$poststage1_libs" = ""; then
5956    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5957  fi
5958 fi
5959
5960
5961
5962 # GCC GRAPHITE dependency isl.
5963 # Basic setup is inlined here, actual checks are in config/isl.m4
5964
5965
5966 # Check whether --with-isl was given.
5967 if test "${with_isl+set}" = set; then :
5968   withval=$with_isl;
5969 fi
5970
5971
5972 # Treat --without-isl as a request to disable
5973 # GRAPHITE support and skip all following checks.
5974 if test "x$with_isl" != "xno"; then
5975   # Check for isl
5976
5977
5978 # Check whether --with-isl-include was given.
5979 if test "${with_isl_include+set}" = set; then :
5980   withval=$with_isl_include;
5981 fi
5982
5983
5984 # Check whether --with-isl-lib was given.
5985 if test "${with_isl_lib+set}" = set; then :
5986   withval=$with_isl_lib;
5987 fi
5988
5989
5990   # Check whether --enable-isl-version-check was given.
5991 if test "${enable_isl_version_check+set}" = set; then :
5992   enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5993 else
5994   ENABLE_ISL_CHECK=yes
5995 fi
5996
5997
5998   # Initialize isllibs and islinc.
5999   case $with_isl in
6000     no)
6001       isllibs=
6002       islinc=
6003       ;;
6004     "" | yes)
6005       ;;
6006     *)
6007       isllibs="-L$with_isl/lib"
6008       islinc="-I$with_isl/include"
6009       ;;
6010   esac
6011   if test "x${with_isl_include}" != x ; then
6012     islinc="-I$with_isl_include"
6013   fi
6014   if test "x${with_isl_lib}" != x; then
6015     isllibs="-L$with_isl_lib"
6016   fi
6017         if test "x${islinc}" = x && test "x${isllibs}" = x \
6018      && test -d ${srcdir}/isl; then
6019     isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6020     islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6021     ENABLE_ISL_CHECK=no
6022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6023 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6024   fi
6025
6026   isllibs="${isllibs} -lisl"
6027
6028
6029
6030   if test "${ENABLE_ISL_CHECK}" = yes ; then
6031     _isl_saved_CFLAGS=$CFLAGS
6032     _isl_saved_LDFLAGS=$LDFLAGS
6033     _isl_saved_LIBS=$LIBS
6034
6035     CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6036     LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6037     LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6038
6039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6040 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h.  */
6043 #include <isl/ctx.h>
6044 int
6045 main ()
6046 {
6047 isl_ctx_get_max_operations (isl_ctx_alloc ());
6048   ;
6049   return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_link "$LINENO"; then :
6053   gcc_cv_isl=yes
6054 else
6055   gcc_cv_isl=no
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext \
6058     conftest$ac_exeext conftest.$ac_ext
6059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6060 $as_echo "$gcc_cv_isl" >&6; }
6061
6062     if test "${gcc_cv_isl}" = no ; then
6063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6064 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6065     fi
6066
6067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6068 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h.  */
6071 #include <isl/schedule.h>
6072 int
6073 main ()
6074 {
6075 isl_options_set_schedule_serialize_sccs (NULL, 0);
6076   ;
6077   return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_link "$LINENO"; then :
6081   ac_has_isl_options_set_schedule_serialize_sccs=yes
6082 else
6083   ac_has_isl_options_set_schedule_serialize_sccs=no
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext \
6086     conftest$ac_exeext conftest.$ac_ext
6087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6088 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6089
6090     if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6091       islver="0.15"
6092
6093     fi
6094
6095     CFLAGS=$_isl_saved_CFLAGS
6096     LDFLAGS=$_isl_saved_LDFLAGS
6097     LIBS=$_isl_saved_LIBS
6098   fi
6099
6100
6101
6102
6103
6104
6105   if test "x${with_isl}" = xno; then
6106     graphite_requested=no
6107   elif test "x${with_isl}" != x \
6108     || test "x${with_isl_include}" != x \
6109     || test "x${with_isl_lib}" != x ; then
6110     graphite_requested=yes
6111   else
6112     graphite_requested=no
6113   fi
6114
6115
6116
6117   if test "${gcc_cv_isl}" = no ; then
6118     isllibs=
6119     islinc=
6120   fi
6121
6122   if test "${graphite_requested}" = yes \
6123     && test "x${isllibs}" = x \
6124     && test "x${islinc}" = x ; then
6125
6126     as_fn_error "Unable to find a usable isl.  See config.log for details." "$LINENO" 5
6127   fi
6128
6129
6130 fi
6131
6132 # If the isl check failed, disable builds of in-tree variant of isl
6133 if test "x$with_isl" = xno ||
6134    test "x$gcc_cv_isl" = xno; then
6135   noconfigdirs="$noconfigdirs isl"
6136   islinc=
6137 fi
6138
6139
6140
6141
6142 # Check for LTO support.
6143 # Check whether --enable-lto was given.
6144 if test "${enable_lto+set}" = set; then :
6145   enableval=$enable_lto; enable_lto=$enableval
6146 else
6147   enable_lto=yes; default_enable_lto=yes
6148 fi
6149
6150
6151
6152
6153
6154 target_elf=no
6155 case $target in
6156   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6157   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6158   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6159   nvptx-*-none)
6160     target_elf=no
6161     ;;
6162   *)
6163     target_elf=yes
6164     ;;
6165 esac
6166
6167 if test $target_elf = yes; then :
6168   # ELF platforms build the lto-plugin always.
6169   build_lto_plugin=yes
6170
6171 else
6172   if test x"$default_enable_lto" = x"yes" ; then
6173     case $target in
6174       *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6175       # On other non-ELF platforms, LTO has yet to be validated.
6176       *) enable_lto=no ;;
6177     esac
6178   else
6179   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6180   # It would also be nice to check the binutils support, but we don't
6181   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6182   # warn during gcc/ subconfigure; unless you're bootstrapping with
6183   # -flto it won't be needed until after installation anyway.
6184     case $target in
6185       *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6186       *) if test x"$enable_lto" = x"yes"; then
6187         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6188         fi
6189       ;;
6190     esac
6191   fi
6192   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6193   # Build it unless LTO was explicitly disabled.
6194   case $target in
6195     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6196     *) ;;
6197   esac
6198
6199 fi
6200
6201
6202 # Check whether --enable-linker-plugin-configure-flags was given.
6203 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6204   enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6205 else
6206   extra_linker_plugin_configure_flags=
6207 fi
6208
6209
6210 # Check whether --enable-linker-plugin-flags was given.
6211 if test "${enable_linker_plugin_flags+set}" = set; then :
6212   enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6213 else
6214   extra_linker_plugin_flags=
6215 fi
6216
6217
6218
6219
6220 # By default, C and C++ are the only stage 1 languages.
6221 stage1_languages=,c,
6222
6223 # Target libraries that we bootstrap.
6224 bootstrap_target_libs=,target-libgcc,
6225
6226 # Figure out what language subdirectories are present.
6227 # Look if the user specified --enable-languages="..."; if not, use
6228 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6229 # go away some day.
6230 # NB:  embedded tabs in this IF block -- do not untabify
6231 if test -d ${srcdir}/gcc; then
6232   if test x"${enable_languages+set}" != xset; then
6233     if test x"${LANGUAGES+set}" = xset; then
6234       enable_languages="${LANGUAGES}"
6235         echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6236     else
6237       enable_languages=all
6238     fi
6239   else
6240     if test x"${enable_languages}" = x ||
6241        test x"${enable_languages}" = xyes;
6242        then
6243       echo configure.ac: --enable-languages needs at least one language argument 1>&2
6244       exit 1
6245     fi
6246   fi
6247   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6248
6249   # 'f95' is the old name for the 'fortran' language. We issue a warning
6250   # and make the substitution.
6251   case ,${enable_languages}, in
6252     *,f95,*)
6253       echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6254       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6255       ;;
6256   esac
6257
6258   # If bootstrapping, C++ must be enabled.
6259   case ",$enable_languages,:$enable_bootstrap" in
6260     *,c++,*:*) ;;
6261     *:yes)
6262       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6263         enable_languages="${enable_languages},c++"
6264       else
6265         as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6266       fi
6267       ;;
6268   esac
6269
6270   # First scan to see if an enabled language requires some other language.
6271   # We assume that a given config-lang.in will list all the language
6272   # front ends it requires, even if some are required indirectly.
6273   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274     case ${lang_frag} in
6275       ..) ;;
6276       # The odd quoting in the next line works around
6277       # an apparent bug in bash 1.12 on linux.
6278       ${srcdir}/gcc/[*]/config-lang.in) ;;
6279       *)
6280         # From the config-lang.in, get $language, $lang_requires, and
6281         # $lang_requires_boot_languages.
6282         language=
6283         lang_requires=
6284         lang_requires_boot_languages=
6285         . ${lang_frag}
6286         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6287           case ,${enable_languages}, in
6288             *,$other,*) ;;
6289             *,all,*) ;;
6290             *,$language,*)
6291               echo " \`$other' language required by \`$language'; enabling" 1>&2
6292               enable_languages="${enable_languages},${other}"
6293               ;;
6294           esac
6295         done
6296         for other in ${lang_requires_boot_languages} ; do
6297           if test "$other" != "c"; then
6298             case ,${enable_stage1_languages}, in
6299               *,$other,*) ;;
6300               *,all,*) ;;
6301               *)
6302                 case ,${enable_languages}, in
6303                   *,$language,*)
6304                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6305                     enable_stage1_languages="$enable_stage1_languages,${other}"
6306                     ;;
6307                 esac
6308                 ;;
6309             esac
6310           fi
6311         done
6312         ;;
6313     esac
6314   done
6315
6316   new_enable_languages=,c,
6317
6318   # If LTO is enabled, add the LTO front end.
6319   if test "$enable_lto" = "yes" ; then
6320     case ,${enable_languages}, in
6321       *,lto,*) ;;
6322       *) enable_languages="${enable_languages},lto" ;;
6323     esac
6324     if test "${build_lto_plugin}" = "yes" ; then
6325       configdirs="$configdirs lto-plugin"
6326     fi
6327   fi
6328
6329   # If we're building an offloading compiler, add the LTO front end.
6330   if test x"$enable_as_accelerator_for" != x ; then
6331     case ,${enable_languages}, in
6332       *,lto,*) ;;
6333       *) enable_languages="${enable_languages},lto" ;;
6334     esac
6335   fi
6336
6337   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6338   potential_languages=,c,
6339
6340   enabled_target_libs=
6341   disabled_target_libs=
6342
6343   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6344     case ${lang_frag} in
6345       ..) ;;
6346       # The odd quoting in the next line works around
6347       # an apparent bug in bash 1.12 on linux.
6348       ${srcdir}/gcc/[*]/config-lang.in) ;;
6349       *)
6350         # From the config-lang.in, get $language, $target_libs,
6351         # $lang_dirs, $boot_language, and $build_by_default
6352         language=
6353         target_libs=
6354         lang_dirs=
6355         subdir_requires=
6356         boot_language=no
6357         build_by_default=yes
6358         . ${lang_frag}
6359         if test x${language} = x; then
6360           echo "${lang_frag} doesn't set \$language." 1>&2
6361           exit 1
6362         fi
6363
6364         if test "$language" = "c++"; then
6365           boot_language=yes
6366         fi
6367
6368         add_this_lang=no
6369         case ,${enable_languages}, in
6370           *,${language},*)
6371             # Language was explicitly selected; include it
6372             # unless it is C, which is enabled by default.
6373             if test "$language" != "c"; then
6374               add_this_lang=yes
6375             fi
6376             ;;
6377           *,all,*)
6378             # 'all' was selected, select it if it is a default language
6379             if test "$language" != "c"; then
6380               add_this_lang=${build_by_default}
6381             fi
6382             ;;
6383         esac
6384
6385         # Disable languages that need other directories if these aren't available.
6386         for i in $subdir_requires; do
6387           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6388           case ,${enable_languages}, in
6389             *,${language},*)
6390               # Specifically requested language; tell them.
6391               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6392               ;;
6393             *)
6394               # Silently disable.
6395               add_this_lang=unsupported
6396               ;;
6397           esac
6398         done
6399
6400         # Disable Ada if no preexisting GNAT is available.
6401         case ,${enable_languages},:${language}:${have_gnat} in
6402           *,${language},*:ada:no)
6403             # Specifically requested language; tell them.
6404             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6405             ;;
6406           *:ada:no)
6407             # Silently disable.
6408             add_this_lang=unsupported
6409             ;;
6410         esac
6411
6412         # Disable a language that is unsupported by the target.
6413         case " $unsupported_languages " in
6414           *" $language "*)
6415             add_this_lang=unsupported
6416             ;;
6417         esac
6418
6419         case $add_this_lang in
6420           unsupported)
6421             # Remove language-dependent dirs.
6422             disabled_target_libs="$disabled_target_libs $target_libs"
6423             noconfigdirs="$noconfigdirs $lang_dirs"
6424             ;;
6425           no)
6426             # Remove language-dependent dirs; still show language as supported.
6427             disabled_target_libs="$disabled_target_libs $target_libs"
6428             noconfigdirs="$noconfigdirs $lang_dirs"
6429             potential_languages="${potential_languages}${language},"
6430             ;;
6431           yes)
6432             new_enable_languages="${new_enable_languages}${language},"
6433             potential_languages="${potential_languages}${language},"
6434             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6435             enabled_target_libs="$enabled_target_libs $target_libs"
6436             case "${boot_language}:,$enable_stage1_languages," in
6437               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6438                 # Add to (comma-separated) list of stage 1 languages.
6439                 case ",$stage1_languages," in
6440                   *,$language,* | ,yes, | ,all,) ;;
6441                   *) stage1_languages="${stage1_languages}${language}," ;;
6442                 esac
6443                 # We need to bootstrap any supporting libraries.
6444                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6445                 ;;
6446             esac
6447             ;;
6448         esac
6449         ;;
6450     esac
6451   done
6452
6453   # Add target libraries which are only needed for disabled languages
6454   # to noconfigdirs.
6455   if test -n "$disabled_target_libs"; then
6456     for dir in $disabled_target_libs; do
6457       case " $enabled_target_libs " in
6458       *" ${dir} "*) ;;
6459       *) noconfigdirs="$noconfigdirs $dir" ;;
6460       esac
6461     done
6462   fi
6463
6464   # Check whether --enable-stage1-languages was given.
6465 if test "${enable_stage1_languages+set}" = set; then :
6466   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6467     ,no,|,,)
6468       # Set it to something that will have no effect in the loop below
6469       enable_stage1_languages=c ;;
6470     ,yes,)
6471       enable_stage1_languages=`echo $new_enable_languages | \
6472         sed -e "s/^,//" -e "s/,$//" ` ;;
6473     *,all,*)
6474       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6475         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6476   esac
6477
6478   # Add "good" languages from enable_stage1_languages to stage1_languages,
6479   # while "bad" languages go in missing_languages.  Leave no duplicates.
6480   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6481     case $potential_languages in
6482       *,$i,*)
6483         case $stage1_languages in
6484           *,$i,*) ;;
6485           *) stage1_languages="$stage1_languages$i," ;;
6486         esac ;;
6487       *)
6488         case $missing_languages in
6489           *,$i,*) ;;
6490           *) missing_languages="$missing_languages$i," ;;
6491         esac ;;
6492      esac
6493   done
6494 fi
6495
6496
6497   # Remove leading/trailing commas that were added for simplicity
6498   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6499   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6500   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6501   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6502
6503   if test "x$missing_languages" != x; then
6504     as_fn_error "
6505 The following requested languages could not be built: ${missing_languages}
6506 Supported languages are: ${potential_languages}" "$LINENO" 5
6507   fi
6508   if test "x$new_enable_languages" != "x$enable_languages"; then
6509     echo The following languages will be built: ${new_enable_languages}
6510     enable_languages="$new_enable_languages"
6511   fi
6512
6513
6514   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6515 fi
6516
6517 # Handle --disable-<component> generically.
6518 for dir in $configdirs $build_configdirs $target_configdirs ; do
6519   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6520   varname=`echo $dirname | sed -e s/+/_/g`
6521   if eval test x\${enable_${varname}} "=" xno ; then
6522     noconfigdirs="$noconfigdirs $dir"
6523   fi
6524 done
6525
6526 # Check for Boehm's garbage collector
6527 # Check whether --enable-objc-gc was given.
6528 if test "${enable_objc_gc+set}" = set; then :
6529   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6530   *,objc,*:*:yes:*target-boehm-gc*)
6531     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6532     ;;
6533 esac
6534 fi
6535
6536
6537 # Make sure we only build Boehm's garbage collector if required.
6538 case ,${enable_languages},:${enable_objc_gc} in
6539   *,objc,*:yes)
6540     # Keep target-boehm-gc if requested for Objective-C.
6541     ;;
6542   *)
6543     # Otherwise remove target-boehm-gc depending on target-libjava.
6544     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6545       noconfigdirs="$noconfigdirs target-boehm-gc"
6546     fi
6547     ;;
6548 esac
6549
6550 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6551 case ,${enable_languages}, in
6552   *,c++,*)
6553     # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6554     case "${noconfigdirs}" in
6555       *target-libstdc++-v3*)
6556         noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6557         ;;
6558       *) ;;
6559     esac
6560     ;;
6561   *)
6562     noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6563     ;;
6564 esac
6565
6566 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6567 # $build_configdirs and $target_configdirs.
6568 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6569
6570 notsupp=""
6571 for dir in . $skipdirs $noconfigdirs ; do
6572   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6573   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6575     if test -r $srcdir/$dirname/configure ; then
6576       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6577         true
6578       else
6579         notsupp="$notsupp $dir"
6580       fi
6581     fi
6582   fi
6583   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6585     if test -r $srcdir/$dirname/configure ; then
6586       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6587         true
6588       else
6589         notsupp="$notsupp $dir"
6590       fi
6591     fi
6592   fi
6593   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6594     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6595     if test -r $srcdir/$dirname/configure ; then
6596       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6597         true
6598       else
6599         notsupp="$notsupp $dir"
6600       fi
6601     fi
6602   fi
6603 done
6604
6605 # Quietly strip out all directories which aren't configurable in this tree.
6606 # This relies on all configurable subdirectories being autoconfiscated, which
6607 # is now the case.
6608 build_configdirs_all="$build_configdirs"
6609 build_configdirs=
6610 for i in ${build_configdirs_all} ; do
6611   j=`echo $i | sed -e s/build-//g`
6612   if test -f ${srcdir}/$j/configure ; then
6613     build_configdirs="${build_configdirs} $i"
6614   fi
6615 done
6616
6617 configdirs_all="$configdirs"
6618 configdirs=
6619 for i in ${configdirs_all} ; do
6620   if test -f ${srcdir}/$i/configure ; then
6621     configdirs="${configdirs} $i"
6622   fi
6623 done
6624
6625 target_configdirs_all="$target_configdirs"
6626 target_configdirs=
6627 for i in ${target_configdirs_all} ; do
6628   j=`echo $i | sed -e s/target-//g`
6629   if test -f ${srcdir}/$j/configure ; then
6630     target_configdirs="${target_configdirs} $i"
6631   fi
6632 done
6633
6634 # Exclude target-zlib if target-libjava isn't built.
6635 case ${target_configdirs} in
6636 *target-libjava*)
6637   ;;
6638 *)
6639   target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6640   ;;
6641 esac
6642
6643 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6644 # so we have to add it after the preceding checks.
6645 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6646 then
6647   case " $configdirs " in
6648     *" libiberty "*)
6649       # If we can build libiberty, we can also build libiberty-linker-plugin.
6650       configdirs="$configdirs libiberty-linker-plugin"
6651       extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6652         --with-libiberty=../libiberty-linker-plugin";;
6653     *)
6654       as_fn_error "libiberty missing" "$LINENO" 5;;
6655   esac
6656 fi
6657
6658 # Sometimes we have special requirements for the host libiberty.
6659 extra_host_libiberty_configure_flags=
6660 extra_host_zlib_configure_flags=
6661 case " $configdirs " in
6662   *" lto-plugin "* | *" libcc1 "*)
6663     # When these are to be built as shared libraries, the same applies to
6664     # libiberty.
6665     extra_host_libiberty_configure_flags=--enable-shared
6666     ;;
6667   *" bfd "*)
6668     # When bfd is to be built as a shared library, the same applies to
6669     # zlib.
6670     if test "$enable_shared" = "yes"; then
6671       extra_host_zlib_configure_flags=--enable-host-shared
6672     fi
6673     ;;
6674 esac
6675
6676
6677
6678 # Produce a warning message for the subdirs we can't configure.
6679 # This isn't especially interesting in the Cygnus tree, but in the individual
6680 # FSF releases, it's important to let people know when their machine isn't
6681 # supported by the one or two programs in a package.
6682
6683 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6684   # If $appdirs is non-empty, at least one of those directories must still
6685   # be configured, or we error out.  (E.g., if the gas release supports a
6686   # specified target in some subdirs but not the gas subdir, we shouldn't
6687   # pretend that all is well.)
6688   if test -n "$appdirs" ; then
6689     for dir in $appdirs ; do
6690       if test -r $dir/Makefile.in ; then
6691         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6692           appdirs=""
6693           break
6694         fi
6695         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6696           appdirs=""
6697           break
6698         fi
6699       fi
6700     done
6701     if test -n "$appdirs" ; then
6702       echo "*** This configuration is not supported by this package." 1>&2
6703       exit 1
6704     fi
6705   fi
6706   # Okay, some application will build, or we don't care to check.  Still
6707   # notify of subdirs not getting built.
6708   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6709   echo "    ${notsupp}" 1>&2
6710   echo "    (Any other directories should still work fine.)" 1>&2
6711 fi
6712
6713 case "$host" in
6714   *msdosdjgpp*)
6715     enable_gdbtk=no ;;
6716 esac
6717
6718 # To find our prefix, in gcc_cv_tool_prefix.
6719
6720 # The user is always right.
6721 if test "${PATH_SEPARATOR+set}" != set; then
6722   echo "#! /bin/sh" >conf$$.sh
6723   echo  "exit 0"   >>conf$$.sh
6724   chmod +x conf$$.sh
6725   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6726     PATH_SEPARATOR=';'
6727   else
6728     PATH_SEPARATOR=:
6729   fi
6730   rm -f conf$$.sh
6731 fi
6732
6733
6734
6735 if test "x$exec_prefix" = xNONE; then
6736         if test "x$prefix" = xNONE; then
6737                 gcc_cv_tool_prefix=$ac_default_prefix
6738         else
6739                 gcc_cv_tool_prefix=$prefix
6740         fi
6741 else
6742         gcc_cv_tool_prefix=$exec_prefix
6743 fi
6744
6745 # If there is no compiler in the tree, use the PATH only.  In any
6746 # case, if there is no compiler in the tree nobody should use
6747 # AS_FOR_TARGET and LD_FOR_TARGET.
6748 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6749     gcc_version=`cat $srcdir/gcc/BASE-VER`
6750     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6751     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6752     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6753     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6754     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6755     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6756 else
6757     gcc_cv_tool_dirs=
6758 fi
6759
6760 if test x$build = x$target && test -n "$md_exec_prefix"; then
6761         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6762 fi
6763
6764
6765
6766 copy_dirs=
6767
6768
6769 # Check whether --with-build-sysroot was given.
6770 if test "${with_build_sysroot+set}" = set; then :
6771   withval=$with_build_sysroot; if test x"$withval" != x ; then
6772      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6773    fi
6774 else
6775   SYSROOT_CFLAGS_FOR_TARGET=
6776 fi
6777
6778
6779
6780
6781 # Check whether --with-debug-prefix-map was given.
6782 if test "${with_debug_prefix_map+set}" = set; then :
6783   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6784      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6785      for debug_map in $withval; do
6786        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6787      done
6788    fi
6789 else
6790   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6791 fi
6792
6793
6794
6795 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6796 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6797 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6798 # We want to ensure that TARGET libraries (which we know are built with
6799 # gcc) are built with "-O2 -g", so include those options when setting
6800 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6801 if test "x$CFLAGS_FOR_TARGET" = x; then
6802   if test "x${is_cross_compiler}" = xyes; then
6803     CFLAGS_FOR_TARGET="-g -O2"
6804   else
6805     CFLAGS_FOR_TARGET=$CFLAGS
6806     case " $CFLAGS " in
6807       *" -O2 "*) ;;
6808       *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6809     esac
6810     case " $CFLAGS " in
6811       *" -g "* | *" -g3 "*) ;;
6812       *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6813     esac
6814   fi
6815 fi
6816
6817
6818 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6819   if test "x${is_cross_compiler}" = xyes; then
6820     CXXFLAGS_FOR_TARGET="-g -O2"
6821   else
6822     CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823     case " $CXXFLAGS " in
6824       *" -O2 "*) ;;
6825       *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6826     esac
6827     case " $CXXFLAGS " in
6828       *" -g "* | *" -g3 "*) ;;
6829       *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6830     esac
6831   fi
6832 fi
6833
6834
6835
6836
6837 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6838 # the named directory are copied to $(tooldir)/sys-include.
6839 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6840   if test x${is_cross_compiler} = xno ; then
6841     echo 1>&2 '***' --with-headers is only supported when cross compiling
6842     exit 1
6843   fi
6844   if test x"${with_headers}" != xyes ; then
6845     x=${gcc_cv_tool_prefix}
6846     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6847   fi
6848 fi
6849
6850 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6851 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6852 # are permitted.
6853 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6854   if test x${is_cross_compiler} = xno ; then
6855     echo 1>&2 '***' --with-libs is only supported when cross compiling
6856     exit 1
6857   fi
6858   if test x"${with_libs}" != xyes ; then
6859     # Copy the libraries in reverse order, so that files in the first named
6860     # library override files in subsequent libraries.
6861     x=${gcc_cv_tool_prefix}
6862     for l in ${with_libs}; do
6863       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6864     done
6865   fi
6866 fi
6867
6868 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6869 #
6870 # This is done by determining whether or not the appropriate directory
6871 # is available, and by checking whether or not specific configurations
6872 # have requested that this magic not happen.
6873 #
6874 # The command line options always override the explicit settings in
6875 # configure.ac, and the settings in configure.ac override this magic.
6876 #
6877 # If the default for a toolchain is to use GNU as and ld, and you don't
6878 # want to do that, then you should use the --without-gnu-as and
6879 # --without-gnu-ld options for the configure script.  Similarly, if
6880 # the default is to use the included zlib and you don't want to do that,
6881 # you should use the --with-system-zlib option for the configure script.
6882
6883 if test x${use_gnu_as} = x &&
6884    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6885   with_gnu_as=yes
6886   extra_host_args="$extra_host_args --with-gnu-as"
6887 fi
6888
6889 if test x${use_gnu_ld} = x &&
6890    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6891   with_gnu_ld=yes
6892   extra_host_args="$extra_host_args --with-gnu-ld"
6893 fi
6894
6895 if test x${use_included_zlib} = x &&
6896    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6897   :
6898 else
6899   with_system_zlib=yes
6900   extra_host_args="$extra_host_args --with-system-zlib"
6901 fi
6902
6903 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6904 # can detect this case.
6905
6906 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6907   with_newlib=yes
6908   extra_host_args="$extra_host_args --with-newlib"
6909 fi
6910
6911 # Handle ${copy_dirs}
6912 set fnord ${copy_dirs}
6913 shift
6914 while test $# != 0 ; do
6915   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6916     :
6917   else
6918     echo Copying $1 to $2
6919
6920     # Use the install script to create the directory and all required
6921     # parent directories.
6922     if test -d $2 ; then
6923       :
6924     else
6925       echo >config.temp
6926       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6927     fi
6928
6929     # Copy the directory, assuming we have tar.
6930     # FIXME: Should we use B in the second tar?  Not all systems support it.
6931     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6932
6933     # It is the responsibility of the user to correctly adjust all
6934     # symlinks.  If somebody can figure out how to handle them correctly
6935     # here, feel free to add the code.
6936
6937     echo $1 > $2/COPIED
6938   fi
6939   shift; shift
6940 done
6941
6942 # Determine a target-dependent exec_prefix that the installed
6943 # gcc will search in.  Keep this list sorted by triplet, with
6944 # the *-*-osname triplets last.
6945 md_exec_prefix=
6946 case "${target}" in
6947   i[34567]86-pc-msdosdjgpp*)
6948     md_exec_prefix=/dev/env/DJDIR/bin
6949     ;;
6950   *-*-hpux* | \
6951   *-*-nto-qnx* | \
6952   *-*-solaris2*)
6953     md_exec_prefix=/usr/ccs/bin
6954     ;;
6955 esac
6956
6957 extra_arflags_for_target=
6958 extra_nmflags_for_target=
6959 extra_ranlibflags_for_target=
6960 target_makefile_frag=/dev/null
6961 case "${target}" in
6962   spu-*-*)
6963     target_makefile_frag="config/mt-spu"
6964     ;;
6965   mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6966     target_makefile_frag="config/mt-sde"
6967     ;;
6968   mipsisa*-*-elfoabi*)
6969     target_makefile_frag="config/mt-mips-elfoabi"
6970     ;;
6971   mips*-*-*linux* | mips*-*-gnu*)
6972     target_makefile_frag="config/mt-mips-gnu"
6973     ;;
6974   nios2-*-elf*)
6975     target_makefile_frag="config/mt-nios2-elf"
6976     ;;
6977   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6978     target_makefile_frag="config/mt-gnu"
6979     ;;
6980   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6981     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6982     # commands to handle both 32-bit and 64-bit objects.  These flags are
6983     # harmless if we're using GNU nm or ar.
6984     extra_arflags_for_target=" -X32_64"
6985     extra_nmflags_for_target=" -B -X32_64"
6986     ;;
6987 esac
6988
6989 alphaieee_frag=/dev/null
6990 case $target in
6991   alpha*-*-*)
6992     # This just makes sure to use the -mieee option to build target libs.
6993     # This should probably be set individually by each library.
6994     alphaieee_frag="config/mt-alphaieee"
6995     ;;
6996 esac
6997
6998 # If --enable-target-optspace always use -Os instead of -O2 to build
6999 # the target libraries, similarly if it is not specified, use -Os
7000 # on selected platforms.
7001 ospace_frag=/dev/null
7002 case "${enable_target_optspace}:${target}" in
7003   yes:*)
7004     ospace_frag="config/mt-ospace"
7005     ;;
7006   :d30v-*)
7007     ospace_frag="config/mt-d30v"
7008     ;;
7009   :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7010     ospace_frag="config/mt-ospace"
7011     ;;
7012   no:* | :*)
7013     ;;
7014   *)
7015     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7016     ;;
7017 esac
7018
7019 # Some systems (e.g., one of the i386-aix systems the gas testers are
7020 # using) don't handle "\$" correctly, so don't use it here.
7021 tooldir='${exec_prefix}'/${target_noncanonical}
7022 build_tooldir=${tooldir}
7023
7024 # Create a .gdbinit file which runs the one in srcdir
7025 # and tells GDB to look there for source files.
7026
7027 if test -r ${srcdir}/.gdbinit ; then
7028   case ${srcdir} in
7029     .) ;;
7030     *) cat > ./.gdbinit <<EOF
7031 # ${NO_EDIT}
7032 dir ${srcdir}
7033 dir .
7034 source ${srcdir}/.gdbinit
7035 EOF
7036     ;;
7037   esac
7038 fi
7039
7040 # Make sure that the compiler is able to generate an executable.  If it
7041 # can't, we are probably in trouble.  We don't care whether we can run the
7042 # executable--we might be using a cross compiler--we only care whether it
7043 # can be created.  At this point the main configure script has set CC.
7044 we_are_ok=no
7045 echo "int main () { return 0; }" > conftest.c
7046 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7047 if test $? = 0 ; then
7048   if test -s conftest || test -s conftest.exe ; then
7049     we_are_ok=yes
7050   fi
7051 fi
7052 case $we_are_ok in
7053   no)
7054     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7055     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7056     rm -f conftest*
7057     exit 1
7058     ;;
7059 esac
7060 rm -f conftest*
7061
7062 # Decide which environment variable is used to find dynamic libraries.
7063 case "${host}" in
7064   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7065   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7066   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7067   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7068 esac
7069
7070 # On systems where the dynamic library environment variable is PATH,
7071 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7072 # built executables to PATH.
7073 if test "$RPATH_ENVVAR" = PATH; then
7074   GCC_SHLIB_SUBDIR=/shlib
7075 else
7076   GCC_SHLIB_SUBDIR=
7077 fi
7078
7079 # Adjust the toplevel makefile according to whether bootstrap was selected.
7080 case $enable_bootstrap in
7081   yes)
7082     bootstrap_suffix=bootstrap
7083     BUILD_CONFIG=bootstrap-debug
7084     ;;
7085   no)
7086     bootstrap_suffix=no-bootstrap
7087     BUILD_CONFIG=
7088     ;;
7089 esac
7090
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7092 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7093
7094
7095 # Check whether --with-build-config was given.
7096 if test "${with_build_config+set}" = set; then :
7097   withval=$with_build_config; case $with_build_config in
7098    yes) with_build_config= ;;
7099    no) with_build_config= BUILD_CONFIG= ;;
7100    esac
7101 fi
7102
7103
7104 if test "x${with_build_config}" != x; then
7105   BUILD_CONFIG=$with_build_config
7106 else
7107   case $BUILD_CONFIG in
7108   bootstrap-debug)
7109     if echo "int f (void) { return 0; }" > conftest.c &&
7110        ${CC} -c conftest.c &&
7111        mv conftest.o conftest.o.g0 &&
7112        ${CC} -c -g conftest.c &&
7113        mv conftest.o conftest.o.g &&
7114        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7115       :
7116     else
7117       BUILD_CONFIG=
7118     fi
7119     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7120     ;;
7121   esac
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7124 $as_echo "$BUILD_CONFIG" >&6; }
7125
7126
7127 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7129 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7130 # Check whether --enable-vtable-verify was given.
7131 if test "${enable_vtable_verify+set}" = set; then :
7132   enableval=$enable_vtable_verify; case "$enableval" in
7133  yes) enable_vtable_verify=yes ;;
7134  no)  enable_vtable_verify=no ;;
7135  *)   enable_vtable_verify=no;;
7136  esac
7137 else
7138   enable_vtable_verify=no
7139 fi
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7142 $as_echo "$enable_vtable_verify" >&6; }
7143
7144 # Record target_configdirs and the configure arguments for target and
7145 # build configuration in Makefile.
7146 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7147 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7148 bootstrap_fixincludes=no
7149
7150 # If we are building libgomp, bootstrap it.
7151 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7152   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7153 fi
7154
7155 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7156 # or bootstrap-ubsan, bootstrap it.
7157 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7158   case "$BUILD_CONFIG" in
7159     *bootstrap-asan* | *bootstrap-ubsan* )
7160       bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7161       bootstrap_fixincludes=yes
7162       ;;
7163   esac
7164 fi
7165
7166 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7167 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7168    test "$enable_vtable_verify" != no; then
7169   bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7170 fi
7171
7172 # If we are building libmpx, bootstrap it.
7173 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7174   bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7175 fi
7176
7177 # Determine whether gdb needs tk/tcl or not.
7178 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7179 # and in that case we want gdb to be built without tk.  Ugh!
7180 # In fact I believe gdb is the *only* package directly dependent on tk,
7181 # so we should be able to put the 'maybe's in unconditionally and
7182 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7183 # 100% sure that that's safe though.
7184
7185 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7186 case "$enable_gdbtk" in
7187   no)
7188     GDB_TK="" ;;
7189   yes)
7190     GDB_TK="${gdb_tk}" ;;
7191   *)
7192     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7193     # distro.  Eventually someone will fix this and move Insight, nee
7194     # gdbtk to a separate directory.
7195     if test -d ${srcdir}/gdb/gdbtk ; then
7196       GDB_TK="${gdb_tk}"
7197     else
7198       GDB_TK=""
7199     fi
7200     ;;
7201 esac
7202 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7203 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7204
7205 # Strip out unwanted targets.
7206
7207 # While at that, we remove Makefiles if we were started for recursive
7208 # configuration, so that the top-level Makefile reconfigures them,
7209 # like we used to do when configure itself was recursive.
7210
7211 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7212 # but now we're fixing up the Makefile ourselves with the additional
7213 # commands passed to AC_CONFIG_FILES.  Use separate variables
7214 # extrasub-{build,host,target} not because there is any reason to split
7215 # the substitutions up that way, but only to remain below the limit of
7216 # 99 commands in a script, for HP-UX sed.
7217 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7218
7219 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7220   yes:yes:*\ gold\ *:*,c++,*) ;;
7221   yes:yes:*\ gold\ *:*)
7222     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7223     ;;
7224 esac
7225
7226 extrasub_build=
7227 for module in ${build_configdirs} ; do
7228   if test -z "${no_recursion}" \
7229      && test -f ${build_subdir}/${module}/Makefile; then
7230     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7231     rm -f ${build_subdir}/${module}/Makefile
7232   fi
7233   extrasub_build="$extrasub_build
7234 /^@if build-$module\$/d
7235 /^@endif build-$module\$/d
7236 /^@if build-$module-$bootstrap_suffix\$/d
7237 /^@endif build-$module-$bootstrap_suffix\$/d"
7238 done
7239 extrasub_host=
7240 for module in ${configdirs} ; do
7241   if test -z "${no_recursion}"; then
7242     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7243       if test -f ${file}; then
7244         echo 1>&2 "*** removing ${file} to force reconfigure"
7245         rm -f ${file}
7246       fi
7247     done
7248   fi
7249   case ${module},${bootstrap_fixincludes} in
7250     fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7251     *) host_bootstrap_suffix=$bootstrap_suffix ;;
7252   esac
7253   extrasub_host="$extrasub_host
7254 /^@if $module\$/d
7255 /^@endif $module\$/d
7256 /^@if $module-$host_bootstrap_suffix\$/d
7257 /^@endif $module-$host_bootstrap_suffix\$/d"
7258 done
7259 extrasub_target=
7260 for module in ${target_configdirs} ; do
7261   if test -z "${no_recursion}" \
7262      && test -f ${target_subdir}/${module}/Makefile; then
7263     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7264     rm -f ${target_subdir}/${module}/Makefile
7265   fi
7266
7267   # We only bootstrap target libraries listed in bootstrap_target_libs.
7268   case $bootstrap_target_libs in
7269     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7270     *) target_bootstrap_suffix=no-bootstrap ;;
7271   esac
7272
7273   extrasub_target="$extrasub_target
7274 /^@if target-$module\$/d
7275 /^@endif target-$module\$/d
7276 /^@if target-$module-$target_bootstrap_suffix\$/d
7277 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7278 done
7279
7280 # Do the final fixup along with target modules.
7281 extrasub_target="$extrasub_target
7282 /^@if /,/^@endif /d"
7283
7284 # Create the serialization dependencies.  This uses a temporary file.
7285
7286 # Check whether --enable-serial-configure was given.
7287 if test "${enable_serial_configure+set}" = set; then :
7288   enableval=$enable_serial_configure;
7289 fi
7290
7291
7292 case ${enable_serial_configure} in
7293   yes)
7294     enable_serial_build_configure=yes
7295     enable_serial_host_configure=yes
7296     enable_serial_target_configure=yes
7297     ;;
7298 esac
7299
7300 # These force 'configure's to be done one at a time, to avoid problems
7301 # with contention over a shared config.cache.
7302 rm -f serdep.tmp
7303 echo '# serdep.tmp' > serdep.tmp
7304 olditem=
7305 test "x${enable_serial_build_configure}" = xyes &&
7306 for item in ${build_configdirs} ; do
7307   case ${olditem} in
7308     "") ;;
7309     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7310   esac
7311   olditem=${item}
7312 done
7313 olditem=
7314 test "x${enable_serial_host_configure}" = xyes &&
7315 for item in ${configdirs} ; do
7316   case ${olditem} in
7317     "") ;;
7318     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7319   esac
7320   olditem=${item}
7321 done
7322 olditem=
7323 test "x${enable_serial_target_configure}" = xyes &&
7324 for item in ${target_configdirs} ; do
7325   case ${olditem} in
7326     "") ;;
7327     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7328   esac
7329   olditem=${item}
7330 done
7331 serialization_dependencies=serdep.tmp
7332
7333
7334 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7335 # target, nonopt, and variable assignments.  These are the ones we
7336 # might not want to pass down to subconfigures.  The exception being
7337 # --cache-file=/dev/null, which is used to turn off the use of cache
7338 # files altogether, and which should be passed on to subconfigures.
7339 # Also strip program-prefix, program-suffix, and program-transform-name,
7340 # so that we can pass down a consistent program-transform-name.
7341 baseargs=
7342 tbaseargs=
7343 keep_next=no
7344 skip_next=no
7345 eval "set -- $ac_configure_args"
7346 for ac_arg
7347 do
7348   if test X"$skip_next" = X"yes"; then
7349     skip_next=no
7350     continue
7351   fi
7352   if test X"$keep_next" = X"yes"; then
7353     case $ac_arg in
7354       *\'*)
7355         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7356     esac
7357     baseargs="$baseargs '$ac_arg'"
7358     tbaseargs="$tbaseargs '$ac_arg'"
7359     keep_next=no
7360     continue
7361   fi
7362
7363   # Handle separated arguments.  Based on the logic generated by
7364   # autoconf 2.59.
7365   case $ac_arg in
7366     *=* | --config-cache | -C | -disable-* | --disable-* \
7367       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7368       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7369       | -with-* | --with-* | -without-* | --without-* | --x)
7370       separate_arg=no
7371       ;;
7372     -*)
7373       separate_arg=yes
7374       ;;
7375     *)
7376       separate_arg=no
7377       ;;
7378   esac
7379
7380   skip_targ=no
7381   case $ac_arg in
7382
7383   --with-* | --without-*)
7384     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7385
7386     case $libopt in
7387     *[-_]include)
7388       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7389       ;;
7390     *[-_]lib)
7391       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7392       ;;
7393     *)
7394       lib=$libopt
7395       ;;
7396     esac
7397
7398
7399     case $lib in
7400     mpc | mpfr | gmp | isl)
7401       # If we're processing --with-$lib, --with-$lib-include or
7402       # --with-$lib-lib, for one of the libs above, and target is
7403       # different from host, don't pass the current argument to any
7404       # target library's configure.
7405       if test x$is_cross_compiler = xyes; then
7406         skip_targ=yes
7407       fi
7408       ;;
7409     esac
7410     ;;
7411   esac
7412
7413   case "$ac_arg" in
7414     --cache-file=/dev/null | \
7415     -cache-file=/dev/null )
7416       # Handled here to avoid the test to skip args below.
7417       baseargs="$baseargs '$ac_arg'"
7418       tbaseargs="$tbaseargs '$ac_arg'"
7419       # Assert: $separate_arg should always be no.
7420       keep_next=$separate_arg
7421       ;;
7422     --no*)
7423       continue
7424       ;;
7425     --c* | \
7426     --sr* | \
7427     --ho* | \
7428     --bu* | \
7429     --t* | \
7430     --program-* | \
7431     -cache_file* | \
7432     -srcdir* | \
7433     -host* | \
7434     -build* | \
7435     -target* | \
7436     -program-prefix* | \
7437     -program-suffix* | \
7438     -program-transform-name* )
7439       skip_next=$separate_arg
7440       continue
7441       ;;
7442     -*)
7443       # An option.  Add it.
7444       case $ac_arg in
7445         *\'*)
7446           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7447       esac
7448       baseargs="$baseargs '$ac_arg'"
7449       if test X"$skip_targ" = Xno; then
7450         tbaseargs="$tbaseargs '$ac_arg'"
7451       fi
7452       keep_next=$separate_arg
7453       ;;
7454     *)
7455       # Either a variable assignment, or a nonopt (triplet).  Don't
7456       # pass it down; let the Makefile handle this.
7457       continue
7458       ;;
7459   esac
7460 done
7461 # Remove the initial space we just introduced and, as these will be
7462 # expanded by make, quote '$'.
7463 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7464
7465 # Add in --program-transform-name, after --program-prefix and
7466 # --program-suffix have been applied to it.  Autoconf has already
7467 # doubled dollar signs and backslashes in program_transform_name; we want
7468 # the backslashes un-doubled, and then the entire thing wrapped in single
7469 # quotes, because this will be expanded first by make and then by the shell.
7470 # Also, because we want to override the logic in subdir configure scripts to
7471 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7472 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7473 ${program_transform_name}
7474 EOF_SED
7475 gcc_transform_name=`cat conftestsed.out`
7476 rm -f conftestsed.out
7477 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7478 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7479 if test "$silent" = yes; then
7480   baseargs="$baseargs --silent"
7481   tbaseargs="$tbaseargs --silent"
7482 fi
7483 baseargs="$baseargs --disable-option-checking"
7484 tbaseargs="$tbaseargs --disable-option-checking"
7485
7486 # Record and document user additions to sub configure arguments.
7487
7488
7489
7490
7491 # For the build-side libraries, we just need to pretend we're native,
7492 # and not use the same cache file.  Multilibs are neither needed nor
7493 # desired.  We can't even use the same cache file for all build-side
7494 # libraries, as they're compiled differently; some with C, some with
7495 # C++ or with different feature-enabling options.
7496 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7497
7498 # For host modules, accept cache file option, or specification as blank.
7499 case "${cache_file}" in
7500 "") # empty
7501   cache_file_option="" ;;
7502 /* | [A-Za-z]:[\\/]* ) # absolute path
7503   cache_file_option="--cache-file=${cache_file}" ;;
7504 *) # relative path
7505   cache_file_option="--cache-file=../${cache_file}" ;;
7506 esac
7507
7508 # Host dirs don't like to share a cache file either, horribly enough.
7509 # This seems to be due to autoconf 2.5x stupidity.
7510 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7511
7512 target_configargs="$target_configargs ${tbaseargs}"
7513
7514 # Passing a --with-cross-host argument lets the target libraries know
7515 # whether they are being built with a cross-compiler or being built
7516 # native.  However, it would be better to use other mechanisms to make the
7517 # sorts of decisions they want to make on this basis.  Please consider
7518 # this option to be deprecated.  FIXME.
7519 if test x${is_cross_compiler} = xyes ; then
7520   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7521 fi
7522
7523 # Special user-friendly check for native x86_64-linux build, if
7524 # multilib is not explicitly enabled.
7525 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7526   x86_64-*linux*:yes:$build:$build:)
7527     # Make sure we have a development environment that handles 32-bit
7528     dev64=no
7529     echo "int main () { return 0; }" > conftest.c
7530     ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7531     if test $? = 0 ; then
7532       if test -s conftest || test -s conftest.exe ; then
7533         dev64=yes
7534       fi
7535     fi
7536     rm -f conftest*
7537     if test x${dev64} != xyes ; then
7538       as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7539     fi
7540     ;;
7541 esac
7542
7543 # Default to --enable-multilib.
7544 if test x${enable_multilib} = x ; then
7545   target_configargs="--enable-multilib ${target_configargs}"
7546 fi
7547
7548 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7549 # changed from the earlier setting of with_newlib.
7550 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7551   target_configargs="--with-newlib ${target_configargs}"
7552 fi
7553
7554 # Different target subdirs use different values of certain variables
7555 # (notably CXX).  Worse, multilibs use *lots* of different values.
7556 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7557 # it doesn't automatically accept command-line overrides of them.
7558 # This means it's not safe for target subdirs to share a cache file,
7559 # which is disgusting, but there you have it.  Hopefully this can be
7560 # fixed in future.  It's still worthwhile to use a cache file for each
7561 # directory.  I think.
7562
7563 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7564 # We need to pass --target, as newer autoconf's requires consistency
7565 # for target_alias and gcc doesn't manage it consistently.
7566 target_configargs="--cache-file=./config.cache ${target_configargs}"
7567
7568 FLAGS_FOR_TARGET=
7569 case " $target_configdirs " in
7570  *" newlib "*)
7571   case " $target_configargs " in
7572   *" --with-newlib "*)
7573    case "$target" in
7574     *-cygwin*)
7575       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7576       ;;
7577    esac
7578
7579    # If we're not building GCC, don't discard standard headers.
7580    if test -d ${srcdir}/gcc; then
7581      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7582
7583      if test "${build}" != "${host}"; then
7584        # On Canadian crosses, CC_FOR_TARGET will have already been set
7585        # by `configure', so we won't have an opportunity to add -Bgcc/
7586        # to it.  This is right: we don't want to search that directory
7587        # for binaries, but we want the header files in there, so add
7588        # them explicitly.
7589        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7590
7591        # Someone might think of using the pre-installed headers on
7592        # Canadian crosses, in case the installed compiler is not fully
7593        # compatible with the compiler being built.  In this case, it
7594        # would be better to flag an error than risking having
7595        # incompatible object files being constructed.  We can't
7596        # guarantee that an error will be flagged, but let's hope the
7597        # compiler will do it, when presented with incompatible header
7598        # files.
7599      fi
7600    fi
7601
7602    case "${target}-${is_cross_compiler}" in
7603    i[3456789]86-*-linux*-no)
7604       # Here host == target, so we don't need to build gcc,
7605       # so we don't want to discard standard headers.
7606       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7607       ;;
7608    *)
7609       # If we're building newlib, use its generic headers last, but search
7610       # for any libc-related directories first (so make it the last -B
7611       # switch).
7612       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7613
7614       # If we're building libgloss, find the startup file, simulator library
7615       # and linker script.
7616       case " $target_configdirs " in
7617         *" libgloss "*)
7618         # Look for startup file, simulator library and maybe linker script.
7619         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7620         # Look for libnosys.a in case the target needs it.
7621         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7622         # Most targets have the linker script in the source directory.
7623         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7624         ;;
7625       esac
7626       ;;
7627    esac
7628    ;;
7629   esac
7630   ;;
7631 esac
7632
7633 case "$target" in
7634   x86_64-*mingw* | *-w64-mingw*)
7635   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7636   # however, use a symlink named 'mingw' in ${prefix} .
7637     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7638     ;;
7639   *-mingw*)
7640   # MinGW can't be handled as Cygwin above since it does not use newlib.
7641     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'
7642     ;;
7643 esac
7644
7645 # Allow the user to override the flags for
7646 # our build compiler if desired.
7647 if test x"${build}" = x"${host}" ; then
7648   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7649   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7650   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7651 fi
7652
7653 # On Canadian crosses, we'll be searching the right directories for
7654 # the previously-installed cross compiler, so don't bother to add
7655 # flags for directories within the install tree of the compiler
7656 # being built; programs in there won't even run.
7657 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7658   # Search for pre-installed headers if nothing else fits.
7659   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7660 fi
7661
7662 if test "x${use_gnu_ld}" = x &&
7663    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7664   # Arrange for us to find uninstalled linker scripts.
7665   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7666 fi
7667
7668 # Search for other target-specific linker scripts and such.
7669 case "${target}" in
7670   mep*)
7671     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7672     ;;
7673 esac
7674
7675 # Makefile fragments.
7676 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7677 do
7678   eval fragval=\$$frag
7679   if test $fragval != /dev/null; then
7680     eval $frag=${srcdir}/$fragval
7681   fi
7682 done
7683
7684
7685
7686
7687
7688 # Miscellanea: directories, flags, etc.
7689
7690
7691
7692
7693
7694
7695
7696
7697 # Build module lists & subconfigure args.
7698
7699
7700
7701 # Host module lists & subconfigure args.
7702
7703
7704
7705
7706 # Target module lists & subconfigure args.
7707
7708
7709
7710 # Build tools.
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 # Generate default definitions for YACC, M4, LEX and other programs that run
7729 # on the build machine.  These are used if the Makefile can't locate these
7730 # programs in objdir.
7731 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7732
7733 for ac_prog in 'bison -y' byacc yacc
7734 do
7735   # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_YACC+set}" = set; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   if test -n "$YACC"; then
7743   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748   IFS=$as_save_IFS
7749   test -z "$as_dir" && as_dir=.
7750     for ac_exec_ext in '' $ac_executable_extensions; do
7751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752     ac_cv_prog_YACC="$ac_prog"
7753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754     break 2
7755   fi
7756 done
7757   done
7758 IFS=$as_save_IFS
7759
7760 fi
7761 fi
7762 YACC=$ac_cv_prog_YACC
7763 if test -n "$YACC"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7765 $as_echo "$YACC" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770
7771
7772   test -n "$YACC" && break
7773 done
7774 test -n "$YACC" || YACC="$MISSING bison -y"
7775
7776 case " $build_configdirs " in
7777   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7778 esac
7779
7780 for ac_prog in bison
7781 do
7782   # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_BISON+set}" = set; then :
7787   $as_echo_n "(cached) " >&6
7788 else
7789   if test -n "$BISON"; then
7790   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797     for ac_exec_ext in '' $ac_executable_extensions; do
7798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799     ac_cv_prog_BISON="$ac_prog"
7800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804   done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 BISON=$ac_cv_prog_BISON
7810 if test -n "$BISON"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7812 $as_echo "$BISON" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818
7819   test -n "$BISON" && break
7820 done
7821 test -n "$BISON" || BISON="$MISSING bison"
7822
7823 case " $build_configdirs " in
7824   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7825 esac
7826
7827 for ac_prog in gm4 gnum4 m4
7828 do
7829   # Extract the first word of "$ac_prog", so it can be a program name with args.
7830 set dummy $ac_prog; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if test "${ac_cv_prog_M4+set}" = set; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   if test -n "$M4"; then
7837   ac_cv_prog_M4="$M4" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844     for ac_exec_ext in '' $ac_executable_extensions; do
7845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846     ac_cv_prog_M4="$ac_prog"
7847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851   done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 M4=$ac_cv_prog_M4
7857 if test -n "$M4"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7859 $as_echo "$M4" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866   test -n "$M4" && break
7867 done
7868 test -n "$M4" || M4="$MISSING m4"
7869
7870 case " $build_configdirs " in
7871   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7872 esac
7873
7874 for ac_prog in flex lex
7875 do
7876   # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_LEX+set}" = set; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   if test -n "$LEX"; then
7884   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893     ac_cv_prog_LEX="$ac_prog"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900
7901 fi
7902 fi
7903 LEX=$ac_cv_prog_LEX
7904 if test -n "$LEX"; then
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7906 $as_echo "$LEX" >&6; }
7907 else
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7910 fi
7911
7912
7913   test -n "$LEX" && break
7914 done
7915 test -n "$LEX" || LEX="$MISSING flex"
7916
7917 case " $build_configdirs " in
7918   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7919   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7920 esac
7921
7922 for ac_prog in flex
7923 do
7924   # Extract the first word of "$ac_prog", so it can be a program name with args.
7925 set dummy $ac_prog; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_FLEX+set}" = set; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   if test -n "$FLEX"; then
7932   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937   IFS=$as_save_IFS
7938   test -z "$as_dir" && as_dir=.
7939     for ac_exec_ext in '' $ac_executable_extensions; do
7940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941     ac_cv_prog_FLEX="$ac_prog"
7942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946   done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 FLEX=$ac_cv_prog_FLEX
7952 if test -n "$FLEX"; then
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7954 $as_echo "$FLEX" >&6; }
7955 else
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961   test -n "$FLEX" && break
7962 done
7963 test -n "$FLEX" || FLEX="$MISSING flex"
7964
7965 case " $build_configdirs " in
7966   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7967 esac
7968
7969 for ac_prog in makeinfo
7970 do
7971   # Extract the first word of "$ac_prog", so it can be a program name with args.
7972 set dummy $ac_prog; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if test -n "$MAKEINFO"; then
7979   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988     ac_cv_prog_MAKEINFO="$ac_prog"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 MAKEINFO=$ac_cv_prog_MAKEINFO
7999 if test -n "$MAKEINFO"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8001 $as_echo "$MAKEINFO" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008   test -n "$MAKEINFO" && break
8009 done
8010 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8011
8012 case " $build_configdirs " in
8013   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8014   *)
8015
8016     # For an installed makeinfo, we require it to be from texinfo 4.7 or
8017     # higher, else we use the "missing" dummy.
8018     if ${MAKEINFO} --version \
8019        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8020       :
8021     else
8022       MAKEINFO="$MISSING makeinfo"
8023     fi
8024     ;;
8025
8026 esac
8027
8028 # FIXME: expect and dejagnu may become build tools?
8029
8030 for ac_prog in expect
8031 do
8032   # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   if test -n "$EXPECT"; then
8040   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_prog_EXPECT="$ac_prog"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 EXPECT=$ac_cv_prog_EXPECT
8060 if test -n "$EXPECT"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8062 $as_echo "$EXPECT" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069   test -n "$EXPECT" && break
8070 done
8071 test -n "$EXPECT" || EXPECT="expect"
8072
8073 case " $configdirs " in
8074   *" expect "*)
8075     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8076     ;;
8077 esac
8078
8079 for ac_prog in runtest
8080 do
8081   # Extract the first word of "$ac_prog", so it can be a program name with args.
8082 set dummy $ac_prog; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   if test -n "$RUNTEST"; then
8089   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098     ac_cv_prog_RUNTEST="$ac_prog"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 RUNTEST=$ac_cv_prog_RUNTEST
8109 if test -n "$RUNTEST"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8111 $as_echo "$RUNTEST" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118   test -n "$RUNTEST" && break
8119 done
8120 test -n "$RUNTEST" || RUNTEST="runtest"
8121
8122 case " $configdirs " in
8123   *" dejagnu "*)
8124     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8125     ;;
8126 esac
8127
8128
8129 # Host tools.
8130 ncn_tool_prefix=
8131 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8132 ncn_target_tool_prefix=
8133 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8134
8135
8136
8137 if test -n "$AR"; then
8138   ac_cv_prog_AR=$AR
8139 elif test -n "$ac_cv_prog_AR"; then
8140   AR=$ac_cv_prog_AR
8141 fi
8142
8143 if test -n "$ac_cv_prog_AR"; then
8144   for ncn_progname in ar; do
8145     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then :
8150   $as_echo_n "(cached) " >&6
8151 else
8152   if test -n "$AR"; then
8153   ac_cv_prog_AR="$AR" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158   IFS=$as_save_IFS
8159   test -z "$as_dir" && as_dir=.
8160     for ac_exec_ext in '' $ac_executable_extensions; do
8161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162     ac_cv_prog_AR="${ncn_progname}"
8163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164     break 2
8165   fi
8166 done
8167   done
8168 IFS=$as_save_IFS
8169
8170 fi
8171 fi
8172 AR=$ac_cv_prog_AR
8173 if test -n "$AR"; then
8174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8175 $as_echo "$AR" >&6; }
8176 else
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8179 fi
8180
8181
8182   done
8183 fi
8184
8185 for ncn_progname in ar; do
8186   if test -n "$ncn_tool_prefix"; then
8187     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_AR+set}" = set; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   if test -n "$AR"; then
8195   ac_cv_prog_AR="$AR" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8199 do
8200   IFS=$as_save_IFS
8201   test -z "$as_dir" && as_dir=.
8202     for ac_exec_ext in '' $ac_executable_extensions; do
8203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206     break 2
8207   fi
8208 done
8209   done
8210 IFS=$as_save_IFS
8211
8212 fi
8213 fi
8214 AR=$ac_cv_prog_AR
8215 if test -n "$AR"; then
8216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8217 $as_echo "$AR" >&6; }
8218 else
8219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 fi
8222
8223
8224   fi
8225   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8226     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227 set dummy ${ncn_progname}; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_AR+set}" = set; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   if test -n "$AR"; then
8234   ac_cv_prog_AR="$AR" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239   IFS=$as_save_IFS
8240   test -z "$as_dir" && as_dir=.
8241     for ac_exec_ext in '' $ac_executable_extensions; do
8242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243     ac_cv_prog_AR="${ncn_progname}"
8244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245     break 2
8246   fi
8247 done
8248   done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 AR=$ac_cv_prog_AR
8254 if test -n "$AR"; then
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8256 $as_echo "$AR" >&6; }
8257 else
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263   fi
8264   test -n "$ac_cv_prog_AR" && break
8265 done
8266
8267 if test -z "$ac_cv_prog_AR" ; then
8268   set dummy ar
8269   if test $build = $host ; then
8270     AR="$2"
8271   else
8272     AR="${ncn_tool_prefix}$2"
8273   fi
8274 fi
8275
8276
8277
8278 if test -n "$AS"; then
8279   ac_cv_prog_AS=$AS
8280 elif test -n "$ac_cv_prog_AS"; then
8281   AS=$ac_cv_prog_AS
8282 fi
8283
8284 if test -n "$ac_cv_prog_AS"; then
8285   for ncn_progname in as; do
8286     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_AS+set}" = set; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   if test -n "$AS"; then
8294   ac_cv_prog_AS="$AS" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301     for ac_exec_ext in '' $ac_executable_extensions; do
8302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303     ac_cv_prog_AS="${ncn_progname}"
8304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308   done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 AS=$ac_cv_prog_AS
8314 if test -n "$AS"; then
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8316 $as_echo "$AS" >&6; }
8317 else
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323   done
8324 fi
8325
8326 for ncn_progname in as; do
8327   if test -n "$ncn_tool_prefix"; then
8328     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8329 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_AS+set}" = set; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   if test -n "$AS"; then
8336   ac_cv_prog_AS="$AS" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343     for ac_exec_ext in '' $ac_executable_extensions; do
8344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350   done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 AS=$ac_cv_prog_AS
8356 if test -n "$AS"; then
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8358 $as_echo "$AS" >&6; }
8359 else
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363
8364
8365   fi
8366   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8367     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368 set dummy ${ncn_progname}; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_AS+set}" = set; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   if test -n "$AS"; then
8375   ac_cv_prog_AS="$AS" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8379 do
8380   IFS=$as_save_IFS
8381   test -z "$as_dir" && as_dir=.
8382     for ac_exec_ext in '' $ac_executable_extensions; do
8383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384     ac_cv_prog_AS="${ncn_progname}"
8385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386     break 2
8387   fi
8388 done
8389   done
8390 IFS=$as_save_IFS
8391
8392 fi
8393 fi
8394 AS=$ac_cv_prog_AS
8395 if test -n "$AS"; then
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8397 $as_echo "$AS" >&6; }
8398 else
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403
8404   fi
8405   test -n "$ac_cv_prog_AS" && break
8406 done
8407
8408 if test -z "$ac_cv_prog_AS" ; then
8409   set dummy as
8410   if test $build = $host ; then
8411     AS="$2"
8412   else
8413     AS="${ncn_tool_prefix}$2"
8414   fi
8415 fi
8416
8417
8418
8419 if test -n "$DLLTOOL"; then
8420   ac_cv_prog_DLLTOOL=$DLLTOOL
8421 elif test -n "$ac_cv_prog_DLLTOOL"; then
8422   DLLTOOL=$ac_cv_prog_DLLTOOL
8423 fi
8424
8425 if test -n "$ac_cv_prog_DLLTOOL"; then
8426   for ncn_progname in dlltool; do
8427     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   if test -n "$DLLTOOL"; then
8435   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444     ac_cv_prog_DLLTOOL="${ncn_progname}"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 DLLTOOL=$ac_cv_prog_DLLTOOL
8455 if test -n "$DLLTOOL"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8457 $as_echo "$DLLTOOL" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464   done
8465 fi
8466
8467 for ncn_progname in dlltool; do
8468   if test -n "$ncn_tool_prefix"; then
8469     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8470 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   if test -n "$DLLTOOL"; then
8477   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484     for ac_exec_ext in '' $ac_executable_extensions; do
8485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491   done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 DLLTOOL=$ac_cv_prog_DLLTOOL
8497 if test -n "$DLLTOOL"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8499 $as_echo "$DLLTOOL" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506   fi
8507   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8508     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   if test -n "$DLLTOOL"; then
8516   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521   IFS=$as_save_IFS
8522   test -z "$as_dir" && as_dir=.
8523     for ac_exec_ext in '' $ac_executable_extensions; do
8524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525     ac_cv_prog_DLLTOOL="${ncn_progname}"
8526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527     break 2
8528   fi
8529 done
8530   done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 DLLTOOL=$ac_cv_prog_DLLTOOL
8536 if test -n "$DLLTOOL"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8538 $as_echo "$DLLTOOL" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545   fi
8546   test -n "$ac_cv_prog_DLLTOOL" && break
8547 done
8548
8549 if test -z "$ac_cv_prog_DLLTOOL" ; then
8550   set dummy dlltool
8551   if test $build = $host ; then
8552     DLLTOOL="$2"
8553   else
8554     DLLTOOL="${ncn_tool_prefix}$2"
8555   fi
8556 fi
8557
8558
8559
8560 if test -n "$LD"; then
8561   ac_cv_prog_LD=$LD
8562 elif test -n "$ac_cv_prog_LD"; then
8563   LD=$ac_cv_prog_LD
8564 fi
8565
8566 if test -n "$ac_cv_prog_LD"; then
8567   for ncn_progname in ld; do
8568     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_LD+set}" = set; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   if test -n "$LD"; then
8576   ac_cv_prog_LD="$LD" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585     ac_cv_prog_LD="${ncn_progname}"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592
8593 fi
8594 fi
8595 LD=$ac_cv_prog_LD
8596 if test -n "$LD"; then
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8598 $as_echo "$LD" >&6; }
8599 else
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604
8605   done
8606 fi
8607
8608 for ncn_progname in ld; do
8609   if test -n "$ncn_tool_prefix"; then
8610     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8611 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_LD+set}" = set; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   if test -n "$LD"; then
8618   ac_cv_prog_LD="$LD" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625     for ac_exec_ext in '' $ac_executable_extensions; do
8626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632   done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 LD=$ac_cv_prog_LD
8638 if test -n "$LD"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8640 $as_echo "$LD" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646
8647   fi
8648   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8649     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650 set dummy ${ncn_progname}; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_LD+set}" = set; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   if test -n "$LD"; then
8657   ac_cv_prog_LD="$LD" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666     ac_cv_prog_LD="${ncn_progname}"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673
8674 fi
8675 fi
8676 LD=$ac_cv_prog_LD
8677 if test -n "$LD"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8679 $as_echo "$LD" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686   fi
8687   test -n "$ac_cv_prog_LD" && break
8688 done
8689
8690 if test -z "$ac_cv_prog_LD" ; then
8691   set dummy ld
8692   if test $build = $host ; then
8693     LD="$2"
8694   else
8695     LD="${ncn_tool_prefix}$2"
8696   fi
8697 fi
8698
8699
8700
8701 if test -n "$LIPO"; then
8702   ac_cv_prog_LIPO=$LIPO
8703 elif test -n "$ac_cv_prog_LIPO"; then
8704   LIPO=$ac_cv_prog_LIPO
8705 fi
8706
8707 if test -n "$ac_cv_prog_LIPO"; then
8708   for ncn_progname in lipo; do
8709     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_LIPO+set}" = set; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   if test -n "$LIPO"; then
8717   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722   IFS=$as_save_IFS
8723   test -z "$as_dir" && as_dir=.
8724     for ac_exec_ext in '' $ac_executable_extensions; do
8725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726     ac_cv_prog_LIPO="${ncn_progname}"
8727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728     break 2
8729   fi
8730 done
8731   done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 LIPO=$ac_cv_prog_LIPO
8737 if test -n "$LIPO"; then
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8739 $as_echo "$LIPO" >&6; }
8740 else
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745
8746   done
8747 fi
8748
8749 for ncn_progname in lipo; do
8750   if test -n "$ncn_tool_prefix"; then
8751     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_LIPO+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   if test -n "$LIPO"; then
8759   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 LIPO=$ac_cv_prog_LIPO
8779 if test -n "$LIPO"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8781 $as_echo "$LIPO" >&6; }
8782 else
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788   fi
8789   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8790     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791 set dummy ${ncn_progname}; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_LIPO+set}" = set; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   if test -n "$LIPO"; then
8798   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803   IFS=$as_save_IFS
8804   test -z "$as_dir" && as_dir=.
8805     for ac_exec_ext in '' $ac_executable_extensions; do
8806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807     ac_cv_prog_LIPO="${ncn_progname}"
8808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809     break 2
8810   fi
8811 done
8812   done
8813 IFS=$as_save_IFS
8814
8815 fi
8816 fi
8817 LIPO=$ac_cv_prog_LIPO
8818 if test -n "$LIPO"; then
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8820 $as_echo "$LIPO" >&6; }
8821 else
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8824 fi
8825
8826
8827   fi
8828   test -n "$ac_cv_prog_LIPO" && break
8829 done
8830
8831 if test -z "$ac_cv_prog_LIPO" ; then
8832   set dummy lipo
8833   if test $build = $host ; then
8834     LIPO="$2"
8835   else
8836     LIPO="${ncn_tool_prefix}$2"
8837   fi
8838 fi
8839
8840
8841
8842 if test -n "$NM"; then
8843   ac_cv_prog_NM=$NM
8844 elif test -n "$ac_cv_prog_NM"; then
8845   NM=$ac_cv_prog_NM
8846 fi
8847
8848 if test -n "$ac_cv_prog_NM"; then
8849   for ncn_progname in nm; do
8850     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8851 set dummy ${ncn_progname}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_NM+set}" = set; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   if test -n "$NM"; then
8858   ac_cv_prog_NM="$NM" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863   IFS=$as_save_IFS
8864   test -z "$as_dir" && as_dir=.
8865     for ac_exec_ext in '' $ac_executable_extensions; do
8866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867     ac_cv_prog_NM="${ncn_progname}"
8868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869     break 2
8870   fi
8871 done
8872   done
8873 IFS=$as_save_IFS
8874
8875 fi
8876 fi
8877 NM=$ac_cv_prog_NM
8878 if test -n "$NM"; then
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8880 $as_echo "$NM" >&6; }
8881 else
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8884 fi
8885
8886
8887   done
8888 fi
8889
8890 for ncn_progname in nm; do
8891   if test -n "$ncn_tool_prefix"; then
8892     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if test "${ac_cv_prog_NM+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   if test -n "$NM"; then
8900   ac_cv_prog_NM="$NM" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905   IFS=$as_save_IFS
8906   test -z "$as_dir" && as_dir=.
8907     for ac_exec_ext in '' $ac_executable_extensions; do
8908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911     break 2
8912   fi
8913 done
8914   done
8915 IFS=$as_save_IFS
8916
8917 fi
8918 fi
8919 NM=$ac_cv_prog_NM
8920 if test -n "$NM"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8922 $as_echo "$NM" >&6; }
8923 else
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 fi
8927
8928
8929   fi
8930   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8931     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_NM+set}" = set; then :
8936   $as_echo_n "(cached) " >&6
8937 else
8938   if test -n "$NM"; then
8939   ac_cv_prog_NM="$NM" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8943 do
8944   IFS=$as_save_IFS
8945   test -z "$as_dir" && as_dir=.
8946     for ac_exec_ext in '' $ac_executable_extensions; do
8947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948     ac_cv_prog_NM="${ncn_progname}"
8949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950     break 2
8951   fi
8952 done
8953   done
8954 IFS=$as_save_IFS
8955
8956 fi
8957 fi
8958 NM=$ac_cv_prog_NM
8959 if test -n "$NM"; then
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8961 $as_echo "$NM" >&6; }
8962 else
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8965 fi
8966
8967
8968   fi
8969   test -n "$ac_cv_prog_NM" && break
8970 done
8971
8972 if test -z "$ac_cv_prog_NM" ; then
8973   set dummy nm
8974   if test $build = $host ; then
8975     NM="$2"
8976   else
8977     NM="${ncn_tool_prefix}$2"
8978   fi
8979 fi
8980
8981
8982
8983 if test -n "$RANLIB"; then
8984   ac_cv_prog_RANLIB=$RANLIB
8985 elif test -n "$ac_cv_prog_RANLIB"; then
8986   RANLIB=$ac_cv_prog_RANLIB
8987 fi
8988
8989 if test -n "$ac_cv_prog_RANLIB"; then
8990   for ncn_progname in ranlib; do
8991     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8992 set dummy ${ncn_progname}; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8996   $as_echo_n "(cached) " >&6
8997 else
8998   if test -n "$RANLIB"; then
8999   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9003 do
9004   IFS=$as_save_IFS
9005   test -z "$as_dir" && as_dir=.
9006     for ac_exec_ext in '' $ac_executable_extensions; do
9007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008     ac_cv_prog_RANLIB="${ncn_progname}"
9009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010     break 2
9011   fi
9012 done
9013   done
9014 IFS=$as_save_IFS
9015
9016 fi
9017 fi
9018 RANLIB=$ac_cv_prog_RANLIB
9019 if test -n "$RANLIB"; then
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9021 $as_echo "$RANLIB" >&6; }
9022 else
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9025 fi
9026
9027
9028   done
9029 fi
9030
9031 for ncn_progname in ranlib; do
9032   if test -n "$ncn_tool_prefix"; then
9033     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9034 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   if test -n "$RANLIB"; then
9041   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9042 else
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9045 do
9046   IFS=$as_save_IFS
9047   test -z "$as_dir" && as_dir=.
9048     for ac_exec_ext in '' $ac_executable_extensions; do
9049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052     break 2
9053   fi
9054 done
9055   done
9056 IFS=$as_save_IFS
9057
9058 fi
9059 fi
9060 RANLIB=$ac_cv_prog_RANLIB
9061 if test -n "$RANLIB"; then
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9063 $as_echo "$RANLIB" >&6; }
9064 else
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 fi
9068
9069
9070   fi
9071   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9072     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9073 set dummy ${ncn_progname}; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   if test -n "$RANLIB"; then
9080   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9081 else
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9084 do
9085   IFS=$as_save_IFS
9086   test -z "$as_dir" && as_dir=.
9087     for ac_exec_ext in '' $ac_executable_extensions; do
9088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089     ac_cv_prog_RANLIB="${ncn_progname}"
9090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091     break 2
9092   fi
9093 done
9094   done
9095 IFS=$as_save_IFS
9096
9097 fi
9098 fi
9099 RANLIB=$ac_cv_prog_RANLIB
9100 if test -n "$RANLIB"; then
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9102 $as_echo "$RANLIB" >&6; }
9103 else
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 fi
9107
9108
9109   fi
9110   test -n "$ac_cv_prog_RANLIB" && break
9111 done
9112
9113 if test -z "$ac_cv_prog_RANLIB" ; then
9114   RANLIB="true"
9115 fi
9116
9117
9118
9119 if test -n "$STRIP"; then
9120   ac_cv_prog_STRIP=$STRIP
9121 elif test -n "$ac_cv_prog_STRIP"; then
9122   STRIP=$ac_cv_prog_STRIP
9123 fi
9124
9125 if test -n "$ac_cv_prog_STRIP"; then
9126   for ncn_progname in strip; do
9127     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9128 set dummy ${ncn_progname}; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_STRIP+set}" = set; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   if test -n "$STRIP"; then
9135   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9139 do
9140   IFS=$as_save_IFS
9141   test -z "$as_dir" && as_dir=.
9142     for ac_exec_ext in '' $ac_executable_extensions; do
9143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144     ac_cv_prog_STRIP="${ncn_progname}"
9145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146     break 2
9147   fi
9148 done
9149   done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 STRIP=$ac_cv_prog_STRIP
9155 if test -n "$STRIP"; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9157 $as_echo "$STRIP" >&6; }
9158 else
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162
9163
9164   done
9165 fi
9166
9167 for ncn_progname in strip; do
9168   if test -n "$ncn_tool_prefix"; then
9169     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if test "${ac_cv_prog_STRIP+set}" = set; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   if test -n "$STRIP"; then
9177   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9178 else
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182   IFS=$as_save_IFS
9183   test -z "$as_dir" && as_dir=.
9184     for ac_exec_ext in '' $ac_executable_extensions; do
9185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188     break 2
9189   fi
9190 done
9191   done
9192 IFS=$as_save_IFS
9193
9194 fi
9195 fi
9196 STRIP=$ac_cv_prog_STRIP
9197 if test -n "$STRIP"; then
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9199 $as_echo "$STRIP" >&6; }
9200 else
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204
9205
9206   fi
9207   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9208     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9209 set dummy ${ncn_progname}; ac_word=$2
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211 $as_echo_n "checking for $ac_word... " >&6; }
9212 if test "${ac_cv_prog_STRIP+set}" = set; then :
9213   $as_echo_n "(cached) " >&6
9214 else
9215   if test -n "$STRIP"; then
9216   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9217 else
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in $PATH
9220 do
9221   IFS=$as_save_IFS
9222   test -z "$as_dir" && as_dir=.
9223     for ac_exec_ext in '' $ac_executable_extensions; do
9224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225     ac_cv_prog_STRIP="${ncn_progname}"
9226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227     break 2
9228   fi
9229 done
9230   done
9231 IFS=$as_save_IFS
9232
9233 fi
9234 fi
9235 STRIP=$ac_cv_prog_STRIP
9236 if test -n "$STRIP"; then
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9238 $as_echo "$STRIP" >&6; }
9239 else
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242 fi
9243
9244
9245   fi
9246   test -n "$ac_cv_prog_STRIP" && break
9247 done
9248
9249 if test -z "$ac_cv_prog_STRIP" ; then
9250   STRIP="true"
9251 fi
9252
9253
9254
9255 if test -n "$WINDRES"; then
9256   ac_cv_prog_WINDRES=$WINDRES
9257 elif test -n "$ac_cv_prog_WINDRES"; then
9258   WINDRES=$ac_cv_prog_WINDRES
9259 fi
9260
9261 if test -n "$ac_cv_prog_WINDRES"; then
9262   for ncn_progname in windres; do
9263     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9268   $as_echo_n "(cached) " >&6
9269 else
9270   if test -n "$WINDRES"; then
9271   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280     ac_cv_prog_WINDRES="${ncn_progname}"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287
9288 fi
9289 fi
9290 WINDRES=$ac_cv_prog_WINDRES
9291 if test -n "$WINDRES"; then
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9293 $as_echo "$WINDRES" >&6; }
9294 else
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298
9299
9300   done
9301 fi
9302
9303 for ncn_progname in windres; do
9304   if test -n "$ncn_tool_prefix"; then
9305     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9310   $as_echo_n "(cached) " >&6
9311 else
9312   if test -n "$WINDRES"; then
9313   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318   IFS=$as_save_IFS
9319   test -z "$as_dir" && as_dir=.
9320     for ac_exec_ext in '' $ac_executable_extensions; do
9321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324     break 2
9325   fi
9326 done
9327   done
9328 IFS=$as_save_IFS
9329
9330 fi
9331 fi
9332 WINDRES=$ac_cv_prog_WINDRES
9333 if test -n "$WINDRES"; then
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9335 $as_echo "$WINDRES" >&6; }
9336 else
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9339 fi
9340
9341
9342   fi
9343   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9344     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345 set dummy ${ncn_progname}; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9349   $as_echo_n "(cached) " >&6
9350 else
9351   if test -n "$WINDRES"; then
9352   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9353 else
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 for as_dir in $PATH
9356 do
9357   IFS=$as_save_IFS
9358   test -z "$as_dir" && as_dir=.
9359     for ac_exec_ext in '' $ac_executable_extensions; do
9360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361     ac_cv_prog_WINDRES="${ncn_progname}"
9362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363     break 2
9364   fi
9365 done
9366   done
9367 IFS=$as_save_IFS
9368
9369 fi
9370 fi
9371 WINDRES=$ac_cv_prog_WINDRES
9372 if test -n "$WINDRES"; then
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9374 $as_echo "$WINDRES" >&6; }
9375 else
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9378 fi
9379
9380
9381   fi
9382   test -n "$ac_cv_prog_WINDRES" && break
9383 done
9384
9385 if test -z "$ac_cv_prog_WINDRES" ; then
9386   set dummy windres
9387   if test $build = $host ; then
9388     WINDRES="$2"
9389   else
9390     WINDRES="${ncn_tool_prefix}$2"
9391   fi
9392 fi
9393
9394
9395
9396 if test -n "$WINDMC"; then
9397   ac_cv_prog_WINDMC=$WINDMC
9398 elif test -n "$ac_cv_prog_WINDMC"; then
9399   WINDMC=$ac_cv_prog_WINDMC
9400 fi
9401
9402 if test -n "$ac_cv_prog_WINDMC"; then
9403   for ncn_progname in windmc; do
9404     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   if test -n "$WINDMC"; then
9412   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417   IFS=$as_save_IFS
9418   test -z "$as_dir" && as_dir=.
9419     for ac_exec_ext in '' $ac_executable_extensions; do
9420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421     ac_cv_prog_WINDMC="${ncn_progname}"
9422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423     break 2
9424   fi
9425 done
9426   done
9427 IFS=$as_save_IFS
9428
9429 fi
9430 fi
9431 WINDMC=$ac_cv_prog_WINDMC
9432 if test -n "$WINDMC"; then
9433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9434 $as_echo "$WINDMC" >&6; }
9435 else
9436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 fi
9439
9440
9441   done
9442 fi
9443
9444 for ncn_progname in windmc; do
9445   if test -n "$ncn_tool_prefix"; then
9446     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   if test -n "$WINDMC"; then
9454   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459   IFS=$as_save_IFS
9460   test -z "$as_dir" && as_dir=.
9461     for ac_exec_ext in '' $ac_executable_extensions; do
9462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465     break 2
9466   fi
9467 done
9468   done
9469 IFS=$as_save_IFS
9470
9471 fi
9472 fi
9473 WINDMC=$ac_cv_prog_WINDMC
9474 if test -n "$WINDMC"; then
9475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9476 $as_echo "$WINDMC" >&6; }
9477 else
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9480 fi
9481
9482
9483   fi
9484   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9485     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486 set dummy ${ncn_progname}; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9490   $as_echo_n "(cached) " >&6
9491 else
9492   if test -n "$WINDMC"; then
9493   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9494 else
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9497 do
9498   IFS=$as_save_IFS
9499   test -z "$as_dir" && as_dir=.
9500     for ac_exec_ext in '' $ac_executable_extensions; do
9501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502     ac_cv_prog_WINDMC="${ncn_progname}"
9503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504     break 2
9505   fi
9506 done
9507   done
9508 IFS=$as_save_IFS
9509
9510 fi
9511 fi
9512 WINDMC=$ac_cv_prog_WINDMC
9513 if test -n "$WINDMC"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9515 $as_echo "$WINDMC" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520
9521
9522   fi
9523   test -n "$ac_cv_prog_WINDMC" && break
9524 done
9525
9526 if test -z "$ac_cv_prog_WINDMC" ; then
9527   set dummy windmc
9528   if test $build = $host ; then
9529     WINDMC="$2"
9530   else
9531     WINDMC="${ncn_tool_prefix}$2"
9532   fi
9533 fi
9534
9535
9536
9537 if test -n "$OBJCOPY"; then
9538   ac_cv_prog_OBJCOPY=$OBJCOPY
9539 elif test -n "$ac_cv_prog_OBJCOPY"; then
9540   OBJCOPY=$ac_cv_prog_OBJCOPY
9541 fi
9542
9543 if test -n "$ac_cv_prog_OBJCOPY"; then
9544   for ncn_progname in objcopy; do
9545     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   if test -n "$OBJCOPY"; then
9553   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9557 do
9558   IFS=$as_save_IFS
9559   test -z "$as_dir" && as_dir=.
9560     for ac_exec_ext in '' $ac_executable_extensions; do
9561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562     ac_cv_prog_OBJCOPY="${ncn_progname}"
9563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564     break 2
9565   fi
9566 done
9567   done
9568 IFS=$as_save_IFS
9569
9570 fi
9571 fi
9572 OBJCOPY=$ac_cv_prog_OBJCOPY
9573 if test -n "$OBJCOPY"; then
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9575 $as_echo "$OBJCOPY" >&6; }
9576 else
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580
9581
9582   done
9583 fi
9584
9585 for ncn_progname in objcopy; do
9586   if test -n "$ncn_tool_prefix"; then
9587     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9588 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   if test -n "$OBJCOPY"; then
9595   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9596 else
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9599 do
9600   IFS=$as_save_IFS
9601   test -z "$as_dir" && as_dir=.
9602     for ac_exec_ext in '' $ac_executable_extensions; do
9603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606     break 2
9607   fi
9608 done
9609   done
9610 IFS=$as_save_IFS
9611
9612 fi
9613 fi
9614 OBJCOPY=$ac_cv_prog_OBJCOPY
9615 if test -n "$OBJCOPY"; then
9616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9617 $as_echo "$OBJCOPY" >&6; }
9618 else
9619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9621 fi
9622
9623
9624   fi
9625   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9626     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627 set dummy ${ncn_progname}; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   if test -n "$OBJCOPY"; then
9634   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9638 do
9639   IFS=$as_save_IFS
9640   test -z "$as_dir" && as_dir=.
9641     for ac_exec_ext in '' $ac_executable_extensions; do
9642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643     ac_cv_prog_OBJCOPY="${ncn_progname}"
9644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645     break 2
9646   fi
9647 done
9648   done
9649 IFS=$as_save_IFS
9650
9651 fi
9652 fi
9653 OBJCOPY=$ac_cv_prog_OBJCOPY
9654 if test -n "$OBJCOPY"; then
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9656 $as_echo "$OBJCOPY" >&6; }
9657 else
9658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9660 fi
9661
9662
9663   fi
9664   test -n "$ac_cv_prog_OBJCOPY" && break
9665 done
9666
9667 if test -z "$ac_cv_prog_OBJCOPY" ; then
9668   set dummy objcopy
9669   if test $build = $host ; then
9670     OBJCOPY="$2"
9671   else
9672     OBJCOPY="${ncn_tool_prefix}$2"
9673   fi
9674 fi
9675
9676
9677
9678 if test -n "$OBJDUMP"; then
9679   ac_cv_prog_OBJDUMP=$OBJDUMP
9680 elif test -n "$ac_cv_prog_OBJDUMP"; then
9681   OBJDUMP=$ac_cv_prog_OBJDUMP
9682 fi
9683
9684 if test -n "$ac_cv_prog_OBJDUMP"; then
9685   for ncn_progname in objdump; do
9686     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   if test -n "$OBJDUMP"; then
9694   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9698 do
9699   IFS=$as_save_IFS
9700   test -z "$as_dir" && as_dir=.
9701     for ac_exec_ext in '' $ac_executable_extensions; do
9702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703     ac_cv_prog_OBJDUMP="${ncn_progname}"
9704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705     break 2
9706   fi
9707 done
9708   done
9709 IFS=$as_save_IFS
9710
9711 fi
9712 fi
9713 OBJDUMP=$ac_cv_prog_OBJDUMP
9714 if test -n "$OBJDUMP"; then
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9716 $as_echo "$OBJDUMP" >&6; }
9717 else
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9720 fi
9721
9722
9723   done
9724 fi
9725
9726 for ncn_progname in objdump; do
9727   if test -n "$ncn_tool_prefix"; then
9728     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9729 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9733   $as_echo_n "(cached) " >&6
9734 else
9735   if test -n "$OBJDUMP"; then
9736   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9737 else
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9740 do
9741   IFS=$as_save_IFS
9742   test -z "$as_dir" && as_dir=.
9743     for ac_exec_ext in '' $ac_executable_extensions; do
9744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747     break 2
9748   fi
9749 done
9750   done
9751 IFS=$as_save_IFS
9752
9753 fi
9754 fi
9755 OBJDUMP=$ac_cv_prog_OBJDUMP
9756 if test -n "$OBJDUMP"; then
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9758 $as_echo "$OBJDUMP" >&6; }
9759 else
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9762 fi
9763
9764
9765   fi
9766   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9767     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768 set dummy ${ncn_progname}; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   if test -n "$OBJDUMP"; then
9775   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782     for ac_exec_ext in '' $ac_executable_extensions; do
9783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784     ac_cv_prog_OBJDUMP="${ncn_progname}"
9785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789   done
9790 IFS=$as_save_IFS
9791
9792 fi
9793 fi
9794 OBJDUMP=$ac_cv_prog_OBJDUMP
9795 if test -n "$OBJDUMP"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9797 $as_echo "$OBJDUMP" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802
9803
9804   fi
9805   test -n "$ac_cv_prog_OBJDUMP" && break
9806 done
9807
9808 if test -z "$ac_cv_prog_OBJDUMP" ; then
9809   set dummy objdump
9810   if test $build = $host ; then
9811     OBJDUMP="$2"
9812   else
9813     OBJDUMP="${ncn_tool_prefix}$2"
9814   fi
9815 fi
9816
9817
9818
9819 if test -n "$READELF"; then
9820   ac_cv_prog_READELF=$READELF
9821 elif test -n "$ac_cv_prog_READELF"; then
9822   READELF=$ac_cv_prog_READELF
9823 fi
9824
9825 if test -n "$ac_cv_prog_READELF"; then
9826   for ncn_progname in readelf; do
9827     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828 set dummy ${ncn_progname}; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if test "${ac_cv_prog_READELF+set}" = set; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   if test -n "$READELF"; then
9835   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842     for ac_exec_ext in '' $ac_executable_extensions; do
9843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844     ac_cv_prog_READELF="${ncn_progname}"
9845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846     break 2
9847   fi
9848 done
9849   done
9850 IFS=$as_save_IFS
9851
9852 fi
9853 fi
9854 READELF=$ac_cv_prog_READELF
9855 if test -n "$READELF"; then
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9857 $as_echo "$READELF" >&6; }
9858 else
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9861 fi
9862
9863
9864   done
9865 fi
9866
9867 for ncn_progname in readelf; do
9868   if test -n "$ncn_tool_prefix"; then
9869     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9870 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 $as_echo_n "checking for $ac_word... " >&6; }
9873 if test "${ac_cv_prog_READELF+set}" = set; then :
9874   $as_echo_n "(cached) " >&6
9875 else
9876   if test -n "$READELF"; then
9877   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9878 else
9879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 for as_dir in $PATH
9881 do
9882   IFS=$as_save_IFS
9883   test -z "$as_dir" && as_dir=.
9884     for ac_exec_ext in '' $ac_executable_extensions; do
9885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9886     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888     break 2
9889   fi
9890 done
9891   done
9892 IFS=$as_save_IFS
9893
9894 fi
9895 fi
9896 READELF=$ac_cv_prog_READELF
9897 if test -n "$READELF"; then
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9899 $as_echo "$READELF" >&6; }
9900 else
9901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 $as_echo "no" >&6; }
9903 fi
9904
9905
9906   fi
9907   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9908     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9909 set dummy ${ncn_progname}; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_READELF+set}" = set; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   if test -n "$READELF"; then
9916   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9917 else
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9920 do
9921   IFS=$as_save_IFS
9922   test -z "$as_dir" && as_dir=.
9923     for ac_exec_ext in '' $ac_executable_extensions; do
9924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925     ac_cv_prog_READELF="${ncn_progname}"
9926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927     break 2
9928   fi
9929 done
9930   done
9931 IFS=$as_save_IFS
9932
9933 fi
9934 fi
9935 READELF=$ac_cv_prog_READELF
9936 if test -n "$READELF"; then
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9938 $as_echo "$READELF" >&6; }
9939 else
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9942 fi
9943
9944
9945   fi
9946   test -n "$ac_cv_prog_READELF" && break
9947 done
9948
9949 if test -z "$ac_cv_prog_READELF" ; then
9950   set dummy readelf
9951   if test $build = $host ; then
9952     READELF="$2"
9953   else
9954     READELF="${ncn_tool_prefix}$2"
9955   fi
9956 fi
9957
9958
9959
9960
9961
9962
9963 # Target tools.
9964
9965 # Check whether --with-build-time-tools was given.
9966 if test "${with_build_time_tools+set}" = set; then :
9967   withval=$with_build_time_tools; case x"$withval" in
9968      x/*) ;;
9969      *)
9970        with_build_time_tools=
9971        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9972 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9973        ;;
9974    esac
9975 else
9976   with_build_time_tools=
9977 fi
9978
9979
9980
9981
9982 if test -n "$CC_FOR_TARGET"; then
9983   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9984 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9985   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9986 fi
9987
9988 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9989   for ncn_progname in cc gcc; do
9990     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9991 set dummy ${ncn_progname}; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9995   $as_echo_n "(cached) " >&6
9996 else
9997   if test -n "$CC_FOR_TARGET"; then
9998   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9999 else
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003   IFS=$as_save_IFS
10004   test -z "$as_dir" && as_dir=.
10005     for ac_exec_ext in '' $ac_executable_extensions; do
10006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009     break 2
10010   fi
10011 done
10012   done
10013 IFS=$as_save_IFS
10014
10015 fi
10016 fi
10017 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10018 if test -n "$CC_FOR_TARGET"; then
10019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10020 $as_echo "$CC_FOR_TARGET" >&6; }
10021 else
10022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10024 fi
10025
10026
10027   done
10028 fi
10029
10030 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10031   for ncn_progname in cc gcc; do
10032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10034     if test -x $with_build_time_tools/${ncn_progname}; then
10035       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10038       break
10039     else
10040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042     fi
10043   done
10044 fi
10045
10046 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10047   for ncn_progname in cc gcc; do
10048     if test -n "$ncn_target_tool_prefix"; then
10049       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   if test -n "$CC_FOR_TARGET"; then
10057   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062   IFS=$as_save_IFS
10063   test -z "$as_dir" && as_dir=.
10064     for ac_exec_ext in '' $ac_executable_extensions; do
10065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068     break 2
10069   fi
10070 done
10071   done
10072 IFS=$as_save_IFS
10073
10074 fi
10075 fi
10076 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10077 if test -n "$CC_FOR_TARGET"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10079 $as_echo "$CC_FOR_TARGET" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084
10085
10086     fi
10087     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10088       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10089 set dummy ${ncn_progname}; ac_word=$2
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091 $as_echo_n "checking for $ac_word... " >&6; }
10092 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10093   $as_echo_n "(cached) " >&6
10094 else
10095   if test -n "$CC_FOR_TARGET"; then
10096   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10097 else
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099 for as_dir in $PATH
10100 do
10101   IFS=$as_save_IFS
10102   test -z "$as_dir" && as_dir=.
10103     for ac_exec_ext in '' $ac_executable_extensions; do
10104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107     break 2
10108   fi
10109 done
10110   done
10111 IFS=$as_save_IFS
10112
10113 fi
10114 fi
10115 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10116 if test -n "$CC_FOR_TARGET"; then
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10118 $as_echo "$CC_FOR_TARGET" >&6; }
10119 else
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10122 fi
10123
10124
10125     fi
10126     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10127   done
10128 fi
10129
10130 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10131   set dummy cc gcc
10132   if test $build = $target ; then
10133     CC_FOR_TARGET="$2"
10134   else
10135     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10136   fi
10137 else
10138   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10139 fi
10140
10141
10142
10143 if test -n "$CXX_FOR_TARGET"; then
10144   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10145 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10146   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10147 fi
10148
10149 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10150   for ncn_progname in c++ g++ cxx gxx; do
10151     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10152 set dummy ${ncn_progname}; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158   if test -n "$CXX_FOR_TARGET"; then
10159   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164   IFS=$as_save_IFS
10165   test -z "$as_dir" && as_dir=.
10166     for ac_exec_ext in '' $ac_executable_extensions; do
10167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170     break 2
10171   fi
10172 done
10173   done
10174 IFS=$as_save_IFS
10175
10176 fi
10177 fi
10178 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10179 if test -n "$CXX_FOR_TARGET"; then
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10181 $as_echo "$CXX_FOR_TARGET" >&6; }
10182 else
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10185 fi
10186
10187
10188   done
10189 fi
10190
10191 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10192   for ncn_progname in c++ g++ cxx gxx; do
10193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10195     if test -x $with_build_time_tools/${ncn_progname}; then
10196       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10198 $as_echo "yes" >&6; }
10199       break
10200     else
10201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203     fi
10204   done
10205 fi
10206
10207 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10208   for ncn_progname in c++ g++ cxx gxx; do
10209     if test -n "$ncn_target_tool_prefix"; then
10210       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   if test -n "$CXX_FOR_TARGET"; then
10218   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10219 else
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10222 do
10223   IFS=$as_save_IFS
10224   test -z "$as_dir" && as_dir=.
10225     for ac_exec_ext in '' $ac_executable_extensions; do
10226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229     break 2
10230   fi
10231 done
10232   done
10233 IFS=$as_save_IFS
10234
10235 fi
10236 fi
10237 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10238 if test -n "$CXX_FOR_TARGET"; then
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10240 $as_echo "$CXX_FOR_TARGET" >&6; }
10241 else
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10244 fi
10245
10246
10247     fi
10248     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10249       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10250 set dummy ${ncn_progname}; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10254   $as_echo_n "(cached) " >&6
10255 else
10256   if test -n "$CXX_FOR_TARGET"; then
10257   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10258 else
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262   IFS=$as_save_IFS
10263   test -z "$as_dir" && as_dir=.
10264     for ac_exec_ext in '' $ac_executable_extensions; do
10265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268     break 2
10269   fi
10270 done
10271   done
10272 IFS=$as_save_IFS
10273
10274 fi
10275 fi
10276 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10277 if test -n "$CXX_FOR_TARGET"; then
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10279 $as_echo "$CXX_FOR_TARGET" >&6; }
10280 else
10281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 fi
10284
10285
10286     fi
10287     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10288   done
10289 fi
10290
10291 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10292   set dummy c++ g++ cxx gxx
10293   if test $build = $target ; then
10294     CXX_FOR_TARGET="$2"
10295   else
10296     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10297   fi
10298 else
10299   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10300 fi
10301
10302
10303
10304 if test -n "$GCC_FOR_TARGET"; then
10305   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10306 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10307   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10308 fi
10309
10310 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10311   for ncn_progname in gcc; do
10312     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10313 set dummy ${ncn_progname}; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319   if test -n "$GCC_FOR_TARGET"; then
10320   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10324 do
10325   IFS=$as_save_IFS
10326   test -z "$as_dir" && as_dir=.
10327     for ac_exec_ext in '' $ac_executable_extensions; do
10328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331     break 2
10332   fi
10333 done
10334   done
10335 IFS=$as_save_IFS
10336
10337 fi
10338 fi
10339 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10340 if test -n "$GCC_FOR_TARGET"; then
10341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10342 $as_echo "$GCC_FOR_TARGET" >&6; }
10343 else
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347
10348
10349   done
10350 fi
10351
10352 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10353   for ncn_progname in gcc; do
10354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10355 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10356     if test -x $with_build_time_tools/${ncn_progname}; then
10357       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }
10360       break
10361     else
10362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10364     fi
10365   done
10366 fi
10367
10368 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10369   for ncn_progname in gcc; do
10370     if test -n "$ncn_target_tool_prefix"; then
10371       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10372 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10376   $as_echo_n "(cached) " >&6
10377 else
10378   if test -n "$GCC_FOR_TARGET"; then
10379   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384   IFS=$as_save_IFS
10385   test -z "$as_dir" && as_dir=.
10386     for ac_exec_ext in '' $ac_executable_extensions; do
10387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390     break 2
10391   fi
10392 done
10393   done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10399 if test -n "$GCC_FOR_TARGET"; then
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10401 $as_echo "$GCC_FOR_TARGET" >&6; }
10402 else
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408     fi
10409     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10410       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10411 set dummy ${ncn_progname}; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   if test -n "$GCC_FOR_TARGET"; then
10418   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10422 do
10423   IFS=$as_save_IFS
10424   test -z "$as_dir" && as_dir=.
10425     for ac_exec_ext in '' $ac_executable_extensions; do
10426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10427     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429     break 2
10430   fi
10431 done
10432   done
10433 IFS=$as_save_IFS
10434
10435 fi
10436 fi
10437 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10438 if test -n "$GCC_FOR_TARGET"; then
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10440 $as_echo "$GCC_FOR_TARGET" >&6; }
10441 else
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 fi
10445
10446
10447     fi
10448     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10449   done
10450 fi
10451
10452 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10453   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10454 else
10455   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10456 fi
10457
10458
10459
10460 if test -n "$GCJ_FOR_TARGET"; then
10461   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10462 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10463   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10464 fi
10465
10466 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10467   for ncn_progname in gcj; do
10468     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10469 set dummy ${ncn_progname}; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   if test -n "$GCJ_FOR_TARGET"; then
10476   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481   IFS=$as_save_IFS
10482   test -z "$as_dir" && as_dir=.
10483     for ac_exec_ext in '' $ac_executable_extensions; do
10484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487     break 2
10488   fi
10489 done
10490   done
10491 IFS=$as_save_IFS
10492
10493 fi
10494 fi
10495 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10496 if test -n "$GCJ_FOR_TARGET"; then
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10498 $as_echo "$GCJ_FOR_TARGET" >&6; }
10499 else
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503
10504
10505   done
10506 fi
10507
10508 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10509   for ncn_progname in gcj; do
10510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10511 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10512     if test -x $with_build_time_tools/${ncn_progname}; then
10513       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10514       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515 $as_echo "yes" >&6; }
10516       break
10517     else
10518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520     fi
10521   done
10522 fi
10523
10524 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10525   for ncn_progname in gcj; do
10526     if test -n "$ncn_target_tool_prefix"; then
10527       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   if test -n "$GCJ_FOR_TARGET"; then
10535   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10539 do
10540   IFS=$as_save_IFS
10541   test -z "$as_dir" && as_dir=.
10542     for ac_exec_ext in '' $ac_executable_extensions; do
10543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546     break 2
10547   fi
10548 done
10549   done
10550 IFS=$as_save_IFS
10551
10552 fi
10553 fi
10554 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10555 if test -n "$GCJ_FOR_TARGET"; then
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10557 $as_echo "$GCJ_FOR_TARGET" >&6; }
10558 else
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10560 $as_echo "no" >&6; }
10561 fi
10562
10563
10564     fi
10565     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10566       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10567 set dummy ${ncn_progname}; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10569 $as_echo_n "checking for $ac_word... " >&6; }
10570 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10571   $as_echo_n "(cached) " >&6
10572 else
10573   if test -n "$GCJ_FOR_TARGET"; then
10574   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10575 else
10576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10578 do
10579   IFS=$as_save_IFS
10580   test -z "$as_dir" && as_dir=.
10581     for ac_exec_ext in '' $ac_executable_extensions; do
10582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10583     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10585     break 2
10586   fi
10587 done
10588   done
10589 IFS=$as_save_IFS
10590
10591 fi
10592 fi
10593 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10594 if test -n "$GCJ_FOR_TARGET"; then
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10596 $as_echo "$GCJ_FOR_TARGET" >&6; }
10597 else
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10600 fi
10601
10602
10603     fi
10604     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10605   done
10606 fi
10607
10608 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10609   set dummy gcj
10610   if test $build = $target ; then
10611     GCJ_FOR_TARGET="$2"
10612   else
10613     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10614   fi
10615 else
10616   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10617 fi
10618
10619
10620
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10623 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10624   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10625 fi
10626
10627 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10628   for ncn_progname in gfortran; do
10629     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10630 set dummy ${ncn_progname}; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   if test -n "$GFORTRAN_FOR_TARGET"; then
10637   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642   IFS=$as_save_IFS
10643   test -z "$as_dir" && as_dir=.
10644     for ac_exec_ext in '' $ac_executable_extensions; do
10645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648     break 2
10649   fi
10650 done
10651   done
10652 IFS=$as_save_IFS
10653
10654 fi
10655 fi
10656 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10657 if test -n "$GFORTRAN_FOR_TARGET"; then
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10659 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10660 else
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 fi
10664
10665
10666   done
10667 fi
10668
10669 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10670   for ncn_progname in gfortran; do
10671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10672 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10673     if test -x $with_build_time_tools/${ncn_progname}; then
10674       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677       break
10678     else
10679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10681     fi
10682   done
10683 fi
10684
10685 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10686   for ncn_progname in gfortran; do
10687     if test -n "$ncn_target_tool_prefix"; then
10688       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10689 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   if test -n "$GFORTRAN_FOR_TARGET"; then
10696   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10697 else
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701   IFS=$as_save_IFS
10702   test -z "$as_dir" && as_dir=.
10703     for ac_exec_ext in '' $ac_executable_extensions; do
10704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707     break 2
10708   fi
10709 done
10710   done
10711 IFS=$as_save_IFS
10712
10713 fi
10714 fi
10715 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10716 if test -n "$GFORTRAN_FOR_TARGET"; then
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10718 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10719 else
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10721 $as_echo "no" >&6; }
10722 fi
10723
10724
10725     fi
10726     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10727       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   if test -n "$GFORTRAN_FOR_TARGET"; then
10735   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740   IFS=$as_save_IFS
10741   test -z "$as_dir" && as_dir=.
10742     for ac_exec_ext in '' $ac_executable_extensions; do
10743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746     break 2
10747   fi
10748 done
10749   done
10750 IFS=$as_save_IFS
10751
10752 fi
10753 fi
10754 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10755 if test -n "$GFORTRAN_FOR_TARGET"; then
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10757 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10758 else
10759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10761 fi
10762
10763
10764     fi
10765     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10766   done
10767 fi
10768
10769 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10770   set dummy gfortran
10771   if test $build = $target ; then
10772     GFORTRAN_FOR_TARGET="$2"
10773   else
10774     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10775   fi
10776 else
10777   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10778 fi
10779
10780
10781
10782 if test -n "$GOC_FOR_TARGET"; then
10783   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10784 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10785   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10786 fi
10787
10788 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10789   for ncn_progname in gccgo; do
10790     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10795   $as_echo_n "(cached) " >&6
10796 else
10797   if test -n "$GOC_FOR_TARGET"; then
10798   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10802 do
10803   IFS=$as_save_IFS
10804   test -z "$as_dir" && as_dir=.
10805     for ac_exec_ext in '' $ac_executable_extensions; do
10806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809     break 2
10810   fi
10811 done
10812   done
10813 IFS=$as_save_IFS
10814
10815 fi
10816 fi
10817 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10818 if test -n "$GOC_FOR_TARGET"; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10820 $as_echo "$GOC_FOR_TARGET" >&6; }
10821 else
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 fi
10825
10826
10827   done
10828 fi
10829
10830 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10831   for ncn_progname in gccgo; do
10832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10834     if test -x $with_build_time_tools/${ncn_progname}; then
10835       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837 $as_echo "yes" >&6; }
10838       break
10839     else
10840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842     fi
10843   done
10844 fi
10845
10846 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10847   for ncn_progname in gccgo; do
10848     if test -n "$ncn_target_tool_prefix"; then
10849       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10854   $as_echo_n "(cached) " >&6
10855 else
10856   if test -n "$GOC_FOR_TARGET"; then
10857   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10858 else
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862   IFS=$as_save_IFS
10863   test -z "$as_dir" && as_dir=.
10864     for ac_exec_ext in '' $ac_executable_extensions; do
10865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868     break 2
10869   fi
10870 done
10871   done
10872 IFS=$as_save_IFS
10873
10874 fi
10875 fi
10876 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10877 if test -n "$GOC_FOR_TARGET"; then
10878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10879 $as_echo "$GOC_FOR_TARGET" >&6; }
10880 else
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10883 fi
10884
10885
10886     fi
10887     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10888       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10889 set dummy ${ncn_progname}; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895   if test -n "$GOC_FOR_TARGET"; then
10896   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10897 else
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $PATH
10900 do
10901   IFS=$as_save_IFS
10902   test -z "$as_dir" && as_dir=.
10903     for ac_exec_ext in '' $ac_executable_extensions; do
10904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907     break 2
10908   fi
10909 done
10910   done
10911 IFS=$as_save_IFS
10912
10913 fi
10914 fi
10915 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10916 if test -n "$GOC_FOR_TARGET"; then
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10918 $as_echo "$GOC_FOR_TARGET" >&6; }
10919 else
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10922 fi
10923
10924
10925     fi
10926     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10927   done
10928 fi
10929
10930 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10931   set dummy gccgo
10932   if test $build = $target ; then
10933     GOC_FOR_TARGET="$2"
10934   else
10935     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10936   fi
10937 else
10938   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10939 fi
10940
10941
10942
10943 cat > conftest.c << \EOF
10944 #ifdef __GNUC__
10945   gcc_yay;
10946 #endif
10947 EOF
10948 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10949   have_gcc_for_target=yes
10950 else
10951   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10952   have_gcc_for_target=no
10953 fi
10954 rm conftest.c
10955
10956
10957
10958
10959 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10960   if test -n "$with_build_time_tools"; then
10961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10962 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10963     if test -x $with_build_time_tools/ar; then
10964       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10965       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10967 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10968     else
10969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971     fi
10972   elif test $build != $host && test $have_gcc_for_target = yes; then
10973     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10974     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10975     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10976   fi
10977 fi
10978 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10979   # Extract the first word of "ar", so it can be a program name with args.
10980 set dummy ar; ac_word=$2
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10982 $as_echo_n "checking for $ac_word... " >&6; }
10983 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10984   $as_echo_n "(cached) " >&6
10985 else
10986   case $AR_FOR_TARGET in
10987   [\\/]* | ?:[\\/]*)
10988   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10989   ;;
10990   *)
10991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $gcc_cv_tool_dirs
10993 do
10994   IFS=$as_save_IFS
10995   test -z "$as_dir" && as_dir=.
10996     for ac_exec_ext in '' $ac_executable_extensions; do
10997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000     break 2
11001   fi
11002 done
11003   done
11004 IFS=$as_save_IFS
11005
11006   ;;
11007 esac
11008 fi
11009 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11010 if test -n "$AR_FOR_TARGET"; then
11011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11012 $as_echo "$AR_FOR_TARGET" >&6; }
11013 else
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018
11019 fi
11020 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11021
11022
11023 if test -n "$AR_FOR_TARGET"; then
11024   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11025 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11026   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11027 fi
11028
11029 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11030   for ncn_progname in ar; do
11031     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11032 set dummy ${ncn_progname}; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   if test -n "$AR_FOR_TARGET"; then
11039   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044   IFS=$as_save_IFS
11045   test -z "$as_dir" && as_dir=.
11046     for ac_exec_ext in '' $ac_executable_extensions; do
11047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050     break 2
11051   fi
11052 done
11053   done
11054 IFS=$as_save_IFS
11055
11056 fi
11057 fi
11058 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11059 if test -n "$AR_FOR_TARGET"; then
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11061 $as_echo "$AR_FOR_TARGET" >&6; }
11062 else
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067
11068   done
11069 fi
11070
11071 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11072   for ncn_progname in ar; do
11073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11075     if test -x $with_build_time_tools/${ncn_progname}; then
11076       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11078 $as_echo "yes" >&6; }
11079       break
11080     else
11081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083     fi
11084   done
11085 fi
11086
11087 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11088   for ncn_progname in ar; do
11089     if test -n "$ncn_target_tool_prefix"; then
11090       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097   if test -n "$AR_FOR_TARGET"; then
11098   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103   IFS=$as_save_IFS
11104   test -z "$as_dir" && as_dir=.
11105     for ac_exec_ext in '' $ac_executable_extensions; do
11106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109     break 2
11110   fi
11111 done
11112   done
11113 IFS=$as_save_IFS
11114
11115 fi
11116 fi
11117 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11118 if test -n "$AR_FOR_TARGET"; then
11119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11120 $as_echo "$AR_FOR_TARGET" >&6; }
11121 else
11122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127     fi
11128     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11129       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11130 set dummy ${ncn_progname}; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   if test -n "$AR_FOR_TARGET"; then
11137   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11138 else
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153
11154 fi
11155 fi
11156 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11157 if test -n "$AR_FOR_TARGET"; then
11158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11159 $as_echo "$AR_FOR_TARGET" >&6; }
11160 else
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164
11165
11166     fi
11167     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11168   done
11169 fi
11170
11171 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11172   set dummy ar
11173   if test $build = $target ; then
11174     AR_FOR_TARGET="$2"
11175   else
11176     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11177   fi
11178 else
11179   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11180 fi
11181
11182 else
11183   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11184 fi
11185
11186
11187
11188
11189 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11190   if test -n "$with_build_time_tools"; then
11191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11192 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11193     if test -x $with_build_time_tools/as; then
11194       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11195       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11197 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11198     else
11199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201     fi
11202   elif test $build != $host && test $have_gcc_for_target = yes; then
11203     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11204     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11205     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11206   fi
11207 fi
11208 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11209   # Extract the first word of "as", so it can be a program name with args.
11210 set dummy as; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11214   $as_echo_n "(cached) " >&6
11215 else
11216   case $AS_FOR_TARGET in
11217   [\\/]* | ?:[\\/]*)
11218   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11219   ;;
11220   *)
11221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $gcc_cv_tool_dirs
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226     for ac_exec_ext in '' $ac_executable_extensions; do
11227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233   done
11234 IFS=$as_save_IFS
11235
11236   ;;
11237 esac
11238 fi
11239 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11240 if test -n "$AS_FOR_TARGET"; then
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11242 $as_echo "$AS_FOR_TARGET" >&6; }
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247
11248
11249 fi
11250 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11251
11252
11253 if test -n "$AS_FOR_TARGET"; then
11254   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11255 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11256   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11257 fi
11258
11259 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11260   for ncn_progname in as; do
11261     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11262 set dummy ${ncn_progname}; ac_word=$2
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 $as_echo_n "checking for $ac_word... " >&6; }
11265 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11266   $as_echo_n "(cached) " >&6
11267 else
11268   if test -n "$AS_FOR_TARGET"; then
11269   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11270 else
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276     for ac_exec_ext in '' $ac_executable_extensions; do
11277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283   done
11284 IFS=$as_save_IFS
11285
11286 fi
11287 fi
11288 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11289 if test -n "$AS_FOR_TARGET"; then
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11291 $as_echo "$AS_FOR_TARGET" >&6; }
11292 else
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 fi
11296
11297
11298   done
11299 fi
11300
11301 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11302   for ncn_progname in as; do
11303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11304 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11305     if test -x $with_build_time_tools/${ncn_progname}; then
11306       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11308 $as_echo "yes" >&6; }
11309       break
11310     else
11311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313     fi
11314   done
11315 fi
11316
11317 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11318   for ncn_progname in as; do
11319     if test -n "$ncn_target_tool_prefix"; then
11320       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   if test -n "$AS_FOR_TARGET"; then
11328   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11332 do
11333   IFS=$as_save_IFS
11334   test -z "$as_dir" && as_dir=.
11335     for ac_exec_ext in '' $ac_executable_extensions; do
11336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339     break 2
11340   fi
11341 done
11342   done
11343 IFS=$as_save_IFS
11344
11345 fi
11346 fi
11347 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11348 if test -n "$AS_FOR_TARGET"; then
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11350 $as_echo "$AS_FOR_TARGET" >&6; }
11351 else
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11354 fi
11355
11356
11357     fi
11358     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11359       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11360 set dummy ${ncn_progname}; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11364   $as_echo_n "(cached) " >&6
11365 else
11366   if test -n "$AS_FOR_TARGET"; then
11367   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11368 else
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11371 do
11372   IFS=$as_save_IFS
11373   test -z "$as_dir" && as_dir=.
11374     for ac_exec_ext in '' $ac_executable_extensions; do
11375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11376     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378     break 2
11379   fi
11380 done
11381   done
11382 IFS=$as_save_IFS
11383
11384 fi
11385 fi
11386 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11387 if test -n "$AS_FOR_TARGET"; then
11388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11389 $as_echo "$AS_FOR_TARGET" >&6; }
11390 else
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11393 fi
11394
11395
11396     fi
11397     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11398   done
11399 fi
11400
11401 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11402   set dummy as
11403   if test $build = $target ; then
11404     AS_FOR_TARGET="$2"
11405   else
11406     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11407   fi
11408 else
11409   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11410 fi
11411
11412 else
11413   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11414 fi
11415
11416
11417
11418
11419 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11420   if test -n "$with_build_time_tools"; then
11421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11422 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11423     if test -x $with_build_time_tools/dlltool; then
11424       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11425       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11427 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11428     else
11429       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11431     fi
11432   elif test $build != $host && test $have_gcc_for_target = yes; then
11433     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11434     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11435     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11436   fi
11437 fi
11438 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11439   # Extract the first word of "dlltool", so it can be a program name with args.
11440 set dummy dlltool; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   case $DLLTOOL_FOR_TARGET in
11447   [\\/]* | ?:[\\/]*)
11448   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11449   ;;
11450   *)
11451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $gcc_cv_tool_dirs
11453 do
11454   IFS=$as_save_IFS
11455   test -z "$as_dir" && as_dir=.
11456     for ac_exec_ext in '' $ac_executable_extensions; do
11457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11458     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460     break 2
11461   fi
11462 done
11463   done
11464 IFS=$as_save_IFS
11465
11466   ;;
11467 esac
11468 fi
11469 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11470 if test -n "$DLLTOOL_FOR_TARGET"; then
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11472 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11473 else
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 fi
11480 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11481
11482
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11485 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11486   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11487 fi
11488
11489 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11490   for ncn_progname in dlltool; do
11491     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11492 set dummy ${ncn_progname}; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   if test -n "$DLLTOOL_FOR_TARGET"; then
11499   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515
11516 fi
11517 fi
11518 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11519 if test -n "$DLLTOOL_FOR_TARGET"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11521 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526
11527
11528   done
11529 fi
11530
11531 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11532   for ncn_progname in dlltool; do
11533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11534 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11535     if test -x $with_build_time_tools/${ncn_progname}; then
11536       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11539       break
11540     else
11541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543     fi
11544   done
11545 fi
11546
11547 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11548   for ncn_progname in dlltool; do
11549     if test -n "$ncn_target_tool_prefix"; then
11550       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   if test -n "$DLLTOOL_FOR_TARGET"; then
11558   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563   IFS=$as_save_IFS
11564   test -z "$as_dir" && as_dir=.
11565     for ac_exec_ext in '' $ac_executable_extensions; do
11566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569     break 2
11570   fi
11571 done
11572   done
11573 IFS=$as_save_IFS
11574
11575 fi
11576 fi
11577 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11578 if test -n "$DLLTOOL_FOR_TARGET"; then
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11580 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11581 else
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11584 fi
11585
11586
11587     fi
11588     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11589       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11590 set dummy ${ncn_progname}; ac_word=$2
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11592 $as_echo_n "checking for $ac_word... " >&6; }
11593 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   if test -n "$DLLTOOL_FOR_TARGET"; then
11597   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11598 else
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602   IFS=$as_save_IFS
11603   test -z "$as_dir" && as_dir=.
11604     for ac_exec_ext in '' $ac_executable_extensions; do
11605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608     break 2
11609   fi
11610 done
11611   done
11612 IFS=$as_save_IFS
11613
11614 fi
11615 fi
11616 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11617 if test -n "$DLLTOOL_FOR_TARGET"; then
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11619 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11620 else
11621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11622 $as_echo "no" >&6; }
11623 fi
11624
11625
11626     fi
11627     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11628   done
11629 fi
11630
11631 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11632   set dummy dlltool
11633   if test $build = $target ; then
11634     DLLTOOL_FOR_TARGET="$2"
11635   else
11636     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11637   fi
11638 else
11639   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11640 fi
11641
11642 else
11643   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11644 fi
11645
11646
11647
11648
11649 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11650   if test -n "$with_build_time_tools"; then
11651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11652 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11653     if test -x $with_build_time_tools/ld; then
11654       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11655       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11657 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11658     else
11659       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11661     fi
11662   elif test $build != $host && test $have_gcc_for_target = yes; then
11663     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11664     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11665     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11666   fi
11667 fi
11668 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11669   # Extract the first word of "ld", so it can be a program name with args.
11670 set dummy ld; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676   case $LD_FOR_TARGET in
11677   [\\/]* | ?:[\\/]*)
11678   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11679   ;;
11680   *)
11681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $gcc_cv_tool_dirs
11683 do
11684   IFS=$as_save_IFS
11685   test -z "$as_dir" && as_dir=.
11686     for ac_exec_ext in '' $ac_executable_extensions; do
11687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690     break 2
11691   fi
11692 done
11693   done
11694 IFS=$as_save_IFS
11695
11696   ;;
11697 esac
11698 fi
11699 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11700 if test -n "$LD_FOR_TARGET"; then
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11702 $as_echo "$LD_FOR_TARGET" >&6; }
11703 else
11704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 fi
11707
11708
11709 fi
11710 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11711
11712
11713 if test -n "$LD_FOR_TARGET"; then
11714   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11715 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11716   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11717 fi
11718
11719 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11720   for ncn_progname in ld; do
11721     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   if test -n "$LD_FOR_TARGET"; then
11729   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11730 else
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11733 do
11734   IFS=$as_save_IFS
11735   test -z "$as_dir" && as_dir=.
11736     for ac_exec_ext in '' $ac_executable_extensions; do
11737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11738     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740     break 2
11741   fi
11742 done
11743   done
11744 IFS=$as_save_IFS
11745
11746 fi
11747 fi
11748 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11749 if test -n "$LD_FOR_TARGET"; then
11750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11751 $as_echo "$LD_FOR_TARGET" >&6; }
11752 else
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 fi
11756
11757
11758   done
11759 fi
11760
11761 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11762   for ncn_progname in ld; do
11763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11764 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11765     if test -x $with_build_time_tools/${ncn_progname}; then
11766       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769       break
11770     else
11771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773     fi
11774   done
11775 fi
11776
11777 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11778   for ncn_progname in ld; do
11779     if test -n "$ncn_target_tool_prefix"; then
11780       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   if test -n "$LD_FOR_TARGET"; then
11788   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11792 do
11793   IFS=$as_save_IFS
11794   test -z "$as_dir" && as_dir=.
11795     for ac_exec_ext in '' $ac_executable_extensions; do
11796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799     break 2
11800   fi
11801 done
11802   done
11803 IFS=$as_save_IFS
11804
11805 fi
11806 fi
11807 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11808 if test -n "$LD_FOR_TARGET"; then
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11810 $as_echo "$LD_FOR_TARGET" >&6; }
11811 else
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814 fi
11815
11816
11817     fi
11818     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11819       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11820 set dummy ${ncn_progname}; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   if test -n "$LD_FOR_TARGET"; then
11827   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11828 else
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834     for ac_exec_ext in '' $ac_executable_extensions; do
11835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841   done
11842 IFS=$as_save_IFS
11843
11844 fi
11845 fi
11846 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11847 if test -n "$LD_FOR_TARGET"; then
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11849 $as_echo "$LD_FOR_TARGET" >&6; }
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854
11855
11856     fi
11857     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11858   done
11859 fi
11860
11861 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11862   set dummy ld
11863   if test $build = $target ; then
11864     LD_FOR_TARGET="$2"
11865   else
11866     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11867   fi
11868 else
11869   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11870 fi
11871
11872 else
11873   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11874 fi
11875
11876
11877
11878
11879 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11880   if test -n "$with_build_time_tools"; then
11881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11882 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11883     if test -x $with_build_time_tools/lipo; then
11884       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11885       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11887 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11888     else
11889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 $as_echo "no" >&6; }
11891     fi
11892   elif test $build != $host && test $have_gcc_for_target = yes; then
11893     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11894     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11895     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11896   fi
11897 fi
11898 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11899   # Extract the first word of "lipo", so it can be a program name with args.
11900 set dummy lipo; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   case $LIPO_FOR_TARGET in
11907   [\\/]* | ?:[\\/]*)
11908   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11909   ;;
11910   *)
11911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $gcc_cv_tool_dirs
11913 do
11914   IFS=$as_save_IFS
11915   test -z "$as_dir" && as_dir=.
11916     for ac_exec_ext in '' $ac_executable_extensions; do
11917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11918     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920     break 2
11921   fi
11922 done
11923   done
11924 IFS=$as_save_IFS
11925
11926   ;;
11927 esac
11928 fi
11929 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11930 if test -n "$LIPO_FOR_TARGET"; then
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11932 $as_echo "$LIPO_FOR_TARGET" >&6; }
11933 else
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938
11939 fi
11940 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11941
11942
11943 if test -n "$LIPO_FOR_TARGET"; then
11944   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11945 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11946   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11947 fi
11948
11949 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11950   for ncn_progname in lipo; do
11951     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11952 set dummy ${ncn_progname}; ac_word=$2
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11954 $as_echo_n "checking for $ac_word... " >&6; }
11955 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11956   $as_echo_n "(cached) " >&6
11957 else
11958   if test -n "$LIPO_FOR_TARGET"; then
11959   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11960 else
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11963 do
11964   IFS=$as_save_IFS
11965   test -z "$as_dir" && as_dir=.
11966     for ac_exec_ext in '' $ac_executable_extensions; do
11967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11968     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970     break 2
11971   fi
11972 done
11973   done
11974 IFS=$as_save_IFS
11975
11976 fi
11977 fi
11978 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11979 if test -n "$LIPO_FOR_TARGET"; then
11980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11981 $as_echo "$LIPO_FOR_TARGET" >&6; }
11982 else
11983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984 $as_echo "no" >&6; }
11985 fi
11986
11987
11988   done
11989 fi
11990
11991 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11992   for ncn_progname in lipo; do
11993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11994 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11995     if test -x $with_build_time_tools/${ncn_progname}; then
11996       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999       break
12000     else
12001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12003     fi
12004   done
12005 fi
12006
12007 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12008   for ncn_progname in lipo; do
12009     if test -n "$ncn_target_tool_prefix"; then
12010       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   if test -n "$LIPO_FOR_TARGET"; then
12018   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023   IFS=$as_save_IFS
12024   test -z "$as_dir" && as_dir=.
12025     for ac_exec_ext in '' $ac_executable_extensions; do
12026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029     break 2
12030   fi
12031 done
12032   done
12033 IFS=$as_save_IFS
12034
12035 fi
12036 fi
12037 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12038 if test -n "$LIPO_FOR_TARGET"; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12040 $as_echo "$LIPO_FOR_TARGET" >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045
12046
12047     fi
12048     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12049       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   if test -n "$LIPO_FOR_TARGET"; then
12057   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062   IFS=$as_save_IFS
12063   test -z "$as_dir" && as_dir=.
12064     for ac_exec_ext in '' $ac_executable_extensions; do
12065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068     break 2
12069   fi
12070 done
12071   done
12072 IFS=$as_save_IFS
12073
12074 fi
12075 fi
12076 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12077 if test -n "$LIPO_FOR_TARGET"; then
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12079 $as_echo "$LIPO_FOR_TARGET" >&6; }
12080 else
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12084
12085
12086     fi
12087     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12088   done
12089 fi
12090
12091 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12092   set dummy lipo
12093   if test $build = $target ; then
12094     LIPO_FOR_TARGET="$2"
12095   else
12096     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12097   fi
12098 else
12099   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12100 fi
12101
12102 else
12103   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12104 fi
12105
12106
12107
12108
12109 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12110   if test -n "$with_build_time_tools"; then
12111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12112 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12113     if test -x $with_build_time_tools/nm; then
12114       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12115       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12117 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12118     else
12119       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12121     fi
12122   elif test $build != $host && test $have_gcc_for_target = yes; then
12123     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12124     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12125     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12126   fi
12127 fi
12128 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12129   # Extract the first word of "nm", so it can be a program name with args.
12130 set dummy nm; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   case $NM_FOR_TARGET in
12137   [\\/]* | ?:[\\/]*)
12138   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12139   ;;
12140   *)
12141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $gcc_cv_tool_dirs
12143 do
12144   IFS=$as_save_IFS
12145   test -z "$as_dir" && as_dir=.
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150     break 2
12151   fi
12152 done
12153   done
12154 IFS=$as_save_IFS
12155
12156   ;;
12157 esac
12158 fi
12159 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12160 if test -n "$NM_FOR_TARGET"; then
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12162 $as_echo "$NM_FOR_TARGET" >&6; }
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 fi
12167
12168
12169 fi
12170 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12171
12172
12173 if test -n "$NM_FOR_TARGET"; then
12174   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12175 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12176   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12177 fi
12178
12179 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12180   for ncn_progname in nm; do
12181     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12184 $as_echo_n "checking for $ac_word... " >&6; }
12185 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12186   $as_echo_n "(cached) " >&6
12187 else
12188   if test -n "$NM_FOR_TARGET"; then
12189   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12190 else
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196     for ac_exec_ext in '' $ac_executable_extensions; do
12197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12198     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200     break 2
12201   fi
12202 done
12203   done
12204 IFS=$as_save_IFS
12205
12206 fi
12207 fi
12208 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12209 if test -n "$NM_FOR_TARGET"; then
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12211 $as_echo "$NM_FOR_TARGET" >&6; }
12212 else
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215 fi
12216
12217
12218   done
12219 fi
12220
12221 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12222   for ncn_progname in nm; do
12223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12225     if test -x $with_build_time_tools/${ncn_progname}; then
12226       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 $as_echo "yes" >&6; }
12229       break
12230     else
12231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233     fi
12234   done
12235 fi
12236
12237 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12238   for ncn_progname in nm; do
12239     if test -n "$ncn_target_tool_prefix"; then
12240       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12245   $as_echo_n "(cached) " >&6
12246 else
12247   if test -n "$NM_FOR_TARGET"; then
12248   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12252 do
12253   IFS=$as_save_IFS
12254   test -z "$as_dir" && as_dir=.
12255     for ac_exec_ext in '' $ac_executable_extensions; do
12256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259     break 2
12260   fi
12261 done
12262   done
12263 IFS=$as_save_IFS
12264
12265 fi
12266 fi
12267 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12268 if test -n "$NM_FOR_TARGET"; then
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12270 $as_echo "$NM_FOR_TARGET" >&6; }
12271 else
12272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12274 fi
12275
12276
12277     fi
12278     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12279       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12280 set dummy ${ncn_progname}; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286   if test -n "$NM_FOR_TARGET"; then
12287   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12288 else
12289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in $PATH
12291 do
12292   IFS=$as_save_IFS
12293   test -z "$as_dir" && as_dir=.
12294     for ac_exec_ext in '' $ac_executable_extensions; do
12295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298     break 2
12299   fi
12300 done
12301   done
12302 IFS=$as_save_IFS
12303
12304 fi
12305 fi
12306 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12307 if test -n "$NM_FOR_TARGET"; then
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12309 $as_echo "$NM_FOR_TARGET" >&6; }
12310 else
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313 fi
12314
12315
12316     fi
12317     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12318   done
12319 fi
12320
12321 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12322   set dummy nm
12323   if test $build = $target ; then
12324     NM_FOR_TARGET="$2"
12325   else
12326     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12327   fi
12328 else
12329   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12330 fi
12331
12332 else
12333   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12334 fi
12335
12336
12337
12338
12339 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12340   if test -n "$with_build_time_tools"; then
12341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12342 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12343     if test -x $with_build_time_tools/objcopy; then
12344       OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12345       ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12347 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12348     else
12349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351     fi
12352   elif test $build != $host && test $have_gcc_for_target = yes; then
12353     OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12354     test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12355     test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12356   fi
12357 fi
12358 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12359   # Extract the first word of "objcopy", so it can be a program name with args.
12360 set dummy objcopy; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12364   $as_echo_n "(cached) " >&6
12365 else
12366   case $OBJCOPY_FOR_TARGET in
12367   [\\/]* | ?:[\\/]*)
12368   ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12369   ;;
12370   *)
12371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $gcc_cv_tool_dirs
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376     for ac_exec_ext in '' $ac_executable_extensions; do
12377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12378     ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12380     break 2
12381   fi
12382 done
12383   done
12384 IFS=$as_save_IFS
12385
12386   ;;
12387 esac
12388 fi
12389 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12390 if test -n "$OBJCOPY_FOR_TARGET"; then
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12392 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12393 else
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12401
12402
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404   ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12405 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12406   OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12407 fi
12408
12409 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12410   for ncn_progname in objcopy; do
12411     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12416   $as_echo_n "(cached) " >&6
12417 else
12418   if test -n "$OBJCOPY_FOR_TARGET"; then
12419   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12423 do
12424   IFS=$as_save_IFS
12425   test -z "$as_dir" && as_dir=.
12426     for ac_exec_ext in '' $ac_executable_extensions; do
12427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12428     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430     break 2
12431   fi
12432 done
12433   done
12434 IFS=$as_save_IFS
12435
12436 fi
12437 fi
12438 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12439 if test -n "$OBJCOPY_FOR_TARGET"; then
12440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12441 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12442 else
12443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12445 fi
12446
12447
12448   done
12449 fi
12450
12451 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12452   for ncn_progname in objcopy; do
12453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12455     if test -x $with_build_time_tools/${ncn_progname}; then
12456       ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12458 $as_echo "yes" >&6; }
12459       break
12460     else
12461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; }
12463     fi
12464   done
12465 fi
12466
12467 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12468   for ncn_progname in objcopy; do
12469     if test -n "$ncn_target_tool_prefix"; then
12470       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   if test -n "$OBJCOPY_FOR_TARGET"; then
12478   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483   IFS=$as_save_IFS
12484   test -z "$as_dir" && as_dir=.
12485     for ac_exec_ext in '' $ac_executable_extensions; do
12486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489     break 2
12490   fi
12491 done
12492   done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12498 if test -n "$OBJCOPY_FOR_TARGET"; then
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12500 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12501 else
12502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505
12506
12507     fi
12508     if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12509       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12510 set dummy ${ncn_progname}; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12514   $as_echo_n "(cached) " >&6
12515 else
12516   if test -n "$OBJCOPY_FOR_TARGET"; then
12517   ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12521 do
12522   IFS=$as_save_IFS
12523   test -z "$as_dir" && as_dir=.
12524     for ac_exec_ext in '' $ac_executable_extensions; do
12525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526     ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528     break 2
12529   fi
12530 done
12531   done
12532 IFS=$as_save_IFS
12533
12534 fi
12535 fi
12536 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12537 if test -n "$OBJCOPY_FOR_TARGET"; then
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12539 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12540 else
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544
12545
12546     fi
12547     test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12548   done
12549 fi
12550
12551 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12552   set dummy objcopy
12553   if test $build = $target ; then
12554     OBJCOPY_FOR_TARGET="$2"
12555   else
12556     OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12557   fi
12558 else
12559   OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12560 fi
12561
12562 else
12563   OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12564 fi
12565
12566
12567
12568
12569 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12570   if test -n "$with_build_time_tools"; then
12571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12572 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12573     if test -x $with_build_time_tools/objdump; then
12574       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12575       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12577 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12578     else
12579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12581     fi
12582   elif test $build != $host && test $have_gcc_for_target = yes; then
12583     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12584     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12585     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12586   fi
12587 fi
12588 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12589   # Extract the first word of "objdump", so it can be a program name with args.
12590 set dummy objdump; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12594   $as_echo_n "(cached) " >&6
12595 else
12596   case $OBJDUMP_FOR_TARGET in
12597   [\\/]* | ?:[\\/]*)
12598   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12599   ;;
12600   *)
12601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $gcc_cv_tool_dirs
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606     for ac_exec_ext in '' $ac_executable_extensions; do
12607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12610     break 2
12611   fi
12612 done
12613   done
12614 IFS=$as_save_IFS
12615
12616   ;;
12617 esac
12618 fi
12619 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12620 if test -n "$OBJDUMP_FOR_TARGET"; then
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12622 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628
12629 fi
12630 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12631
12632
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12635 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12636   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12637 fi
12638
12639 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12640   for ncn_progname in objdump; do
12641     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12642 set dummy ${ncn_progname}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   if test -n "$OBJDUMP_FOR_TARGET"; then
12649   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12653 do
12654   IFS=$as_save_IFS
12655   test -z "$as_dir" && as_dir=.
12656     for ac_exec_ext in '' $ac_executable_extensions; do
12657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660     break 2
12661   fi
12662 done
12663   done
12664 IFS=$as_save_IFS
12665
12666 fi
12667 fi
12668 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12669 if test -n "$OBJDUMP_FOR_TARGET"; then
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12671 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12672 else
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677
12678   done
12679 fi
12680
12681 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12682   for ncn_progname in objdump; do
12683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12685     if test -x $with_build_time_tools/${ncn_progname}; then
12686       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12689       break
12690     else
12691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693     fi
12694   done
12695 fi
12696
12697 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12698   for ncn_progname in objdump; do
12699     if test -n "$ncn_target_tool_prefix"; then
12700       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   if test -n "$OBJDUMP_FOR_TARGET"; then
12708   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12712 do
12713   IFS=$as_save_IFS
12714   test -z "$as_dir" && as_dir=.
12715     for ac_exec_ext in '' $ac_executable_extensions; do
12716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719     break 2
12720   fi
12721 done
12722   done
12723 IFS=$as_save_IFS
12724
12725 fi
12726 fi
12727 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12728 if test -n "$OBJDUMP_FOR_TARGET"; then
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12730 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12731 else
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734 fi
12735
12736
12737     fi
12738     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12739       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12740 set dummy ${ncn_progname}; ac_word=$2
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12742 $as_echo_n "checking for $ac_word... " >&6; }
12743 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   if test -n "$OBJDUMP_FOR_TARGET"; then
12747   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12748 else
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12751 do
12752   IFS=$as_save_IFS
12753   test -z "$as_dir" && as_dir=.
12754     for ac_exec_ext in '' $ac_executable_extensions; do
12755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12758     break 2
12759   fi
12760 done
12761   done
12762 IFS=$as_save_IFS
12763
12764 fi
12765 fi
12766 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12767 if test -n "$OBJDUMP_FOR_TARGET"; then
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12769 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12770 else
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12773 fi
12774
12775
12776     fi
12777     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12778   done
12779 fi
12780
12781 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12782   set dummy objdump
12783   if test $build = $target ; then
12784     OBJDUMP_FOR_TARGET="$2"
12785   else
12786     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12787   fi
12788 else
12789   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12790 fi
12791
12792 else
12793   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12794 fi
12795
12796
12797
12798
12799 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12800   if test -n "$with_build_time_tools"; then
12801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12802 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12803     if test -x $with_build_time_tools/ranlib; then
12804       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12805       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12807 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12808     else
12809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12811     fi
12812   elif test $build != $host && test $have_gcc_for_target = yes; then
12813     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12814     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12815     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12816   fi
12817 fi
12818 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12819   # Extract the first word of "ranlib", so it can be a program name with args.
12820 set dummy ranlib; ac_word=$2
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822 $as_echo_n "checking for $ac_word... " >&6; }
12823 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12824   $as_echo_n "(cached) " >&6
12825 else
12826   case $RANLIB_FOR_TARGET in
12827   [\\/]* | ?:[\\/]*)
12828   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12829   ;;
12830   *)
12831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $gcc_cv_tool_dirs
12833 do
12834   IFS=$as_save_IFS
12835   test -z "$as_dir" && as_dir=.
12836     for ac_exec_ext in '' $ac_executable_extensions; do
12837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840     break 2
12841   fi
12842 done
12843   done
12844 IFS=$as_save_IFS
12845
12846   ;;
12847 esac
12848 fi
12849 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12850 if test -n "$RANLIB_FOR_TARGET"; then
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12852 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12853 else
12854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 fi
12857
12858
12859 fi
12860 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12861
12862
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12865 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12866   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12867 fi
12868
12869 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12870   for ncn_progname in ranlib; do
12871     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12872 set dummy ${ncn_progname}; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878   if test -n "$RANLIB_FOR_TARGET"; then
12879   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12880 else
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12883 do
12884   IFS=$as_save_IFS
12885   test -z "$as_dir" && as_dir=.
12886     for ac_exec_ext in '' $ac_executable_extensions; do
12887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12890     break 2
12891   fi
12892 done
12893   done
12894 IFS=$as_save_IFS
12895
12896 fi
12897 fi
12898 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12899 if test -n "$RANLIB_FOR_TARGET"; then
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12901 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12902 else
12903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12905 fi
12906
12907
12908   done
12909 fi
12910
12911 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12912   for ncn_progname in ranlib; do
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12915     if test -x $with_build_time_tools/${ncn_progname}; then
12916       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919       break
12920     else
12921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12923     fi
12924   done
12925 fi
12926
12927 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12928   for ncn_progname in ranlib; do
12929     if test -n "$ncn_target_tool_prefix"; then
12930       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937   if test -n "$RANLIB_FOR_TARGET"; then
12938   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943   IFS=$as_save_IFS
12944   test -z "$as_dir" && as_dir=.
12945     for ac_exec_ext in '' $ac_executable_extensions; do
12946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949     break 2
12950   fi
12951 done
12952   done
12953 IFS=$as_save_IFS
12954
12955 fi
12956 fi
12957 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12958 if test -n "$RANLIB_FOR_TARGET"; then
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12960 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12961 else
12962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12964 fi
12965
12966
12967     fi
12968     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12969       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12970 set dummy ${ncn_progname}; ac_word=$2
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12972 $as_echo_n "checking for $ac_word... " >&6; }
12973 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12974   $as_echo_n "(cached) " >&6
12975 else
12976   if test -n "$RANLIB_FOR_TARGET"; then
12977   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12978 else
12979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12980 for as_dir in $PATH
12981 do
12982   IFS=$as_save_IFS
12983   test -z "$as_dir" && as_dir=.
12984     for ac_exec_ext in '' $ac_executable_extensions; do
12985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12986     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12988     break 2
12989   fi
12990 done
12991   done
12992 IFS=$as_save_IFS
12993
12994 fi
12995 fi
12996 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12997 if test -n "$RANLIB_FOR_TARGET"; then
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12999 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13000 else
13001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 fi
13004
13005
13006     fi
13007     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13008   done
13009 fi
13010
13011 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13012   set dummy ranlib
13013   if test $build = $target ; then
13014     RANLIB_FOR_TARGET="$2"
13015   else
13016     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13017   fi
13018 else
13019   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13020 fi
13021
13022 else
13023   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13024 fi
13025
13026
13027
13028
13029 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13030   if test -n "$with_build_time_tools"; then
13031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13032 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13033     if test -x $with_build_time_tools/readelf; then
13034       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13035       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13036       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13037 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13038     else
13039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041     fi
13042   elif test $build != $host && test $have_gcc_for_target = yes; then
13043     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13044     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13045     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13046   fi
13047 fi
13048 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13049   # Extract the first word of "readelf", so it can be a program name with args.
13050 set dummy readelf; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13054   $as_echo_n "(cached) " >&6
13055 else
13056   case $READELF_FOR_TARGET in
13057   [\\/]* | ?:[\\/]*)
13058   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13059   ;;
13060   *)
13061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $gcc_cv_tool_dirs
13063 do
13064   IFS=$as_save_IFS
13065   test -z "$as_dir" && as_dir=.
13066     for ac_exec_ext in '' $ac_executable_extensions; do
13067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070     break 2
13071   fi
13072 done
13073   done
13074 IFS=$as_save_IFS
13075
13076   ;;
13077 esac
13078 fi
13079 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13080 if test -n "$READELF_FOR_TARGET"; then
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13082 $as_echo "$READELF_FOR_TARGET" >&6; }
13083 else
13084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087
13088
13089 fi
13090 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13091
13092
13093 if test -n "$READELF_FOR_TARGET"; then
13094   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13095 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13096   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13097 fi
13098
13099 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13100   for ncn_progname in readelf; do
13101     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13102 set dummy ${ncn_progname}; ac_word=$2
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104 $as_echo_n "checking for $ac_word... " >&6; }
13105 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   if test -n "$READELF_FOR_TARGET"; then
13109   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13110 else
13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112 for as_dir in $PATH
13113 do
13114   IFS=$as_save_IFS
13115   test -z "$as_dir" && as_dir=.
13116     for ac_exec_ext in '' $ac_executable_extensions; do
13117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13118     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120     break 2
13121   fi
13122 done
13123   done
13124 IFS=$as_save_IFS
13125
13126 fi
13127 fi
13128 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13129 if test -n "$READELF_FOR_TARGET"; then
13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13131 $as_echo "$READELF_FOR_TARGET" >&6; }
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13135 fi
13136
13137
13138   done
13139 fi
13140
13141 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13142   for ncn_progname in readelf; do
13143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13145     if test -x $with_build_time_tools/${ncn_progname}; then
13146       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; }
13149       break
13150     else
13151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153     fi
13154   done
13155 fi
13156
13157 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13158   for ncn_progname in readelf; do
13159     if test -n "$ncn_target_tool_prefix"; then
13160       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13165   $as_echo_n "(cached) " >&6
13166 else
13167   if test -n "$READELF_FOR_TARGET"; then
13168   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13172 do
13173   IFS=$as_save_IFS
13174   test -z "$as_dir" && as_dir=.
13175     for ac_exec_ext in '' $ac_executable_extensions; do
13176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179     break 2
13180   fi
13181 done
13182   done
13183 IFS=$as_save_IFS
13184
13185 fi
13186 fi
13187 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13188 if test -n "$READELF_FOR_TARGET"; then
13189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13190 $as_echo "$READELF_FOR_TARGET" >&6; }
13191 else
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13194 fi
13195
13196
13197     fi
13198     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13199       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   if test -n "$READELF_FOR_TARGET"; then
13207   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13211 do
13212   IFS=$as_save_IFS
13213   test -z "$as_dir" && as_dir=.
13214     for ac_exec_ext in '' $ac_executable_extensions; do
13215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218     break 2
13219   fi
13220 done
13221   done
13222 IFS=$as_save_IFS
13223
13224 fi
13225 fi
13226 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13227 if test -n "$READELF_FOR_TARGET"; then
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13229 $as_echo "$READELF_FOR_TARGET" >&6; }
13230 else
13231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234
13235
13236     fi
13237     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13238   done
13239 fi
13240
13241 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13242   set dummy readelf
13243   if test $build = $target ; then
13244     READELF_FOR_TARGET="$2"
13245   else
13246     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13247   fi
13248 else
13249   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13250 fi
13251
13252 else
13253   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13254 fi
13255
13256
13257
13258
13259 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13260   if test -n "$with_build_time_tools"; then
13261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13262 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13263     if test -x $with_build_time_tools/strip; then
13264       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13265       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13267 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13268     else
13269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13271     fi
13272   elif test $build != $host && test $have_gcc_for_target = yes; then
13273     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13274     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13275     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13276   fi
13277 fi
13278 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13279   # Extract the first word of "strip", so it can be a program name with args.
13280 set dummy strip; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   case $STRIP_FOR_TARGET in
13287   [\\/]* | ?:[\\/]*)
13288   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13289   ;;
13290   *)
13291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $gcc_cv_tool_dirs
13293 do
13294   IFS=$as_save_IFS
13295   test -z "$as_dir" && as_dir=.
13296     for ac_exec_ext in '' $ac_executable_extensions; do
13297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13298     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300     break 2
13301   fi
13302 done
13303   done
13304 IFS=$as_save_IFS
13305
13306   ;;
13307 esac
13308 fi
13309 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13310 if test -n "$STRIP_FOR_TARGET"; then
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13312 $as_echo "$STRIP_FOR_TARGET" >&6; }
13313 else
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317
13318
13319 fi
13320 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13321
13322
13323 if test -n "$STRIP_FOR_TARGET"; then
13324   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13325 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13326   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13327 fi
13328
13329 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13330   for ncn_progname in strip; do
13331     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13332 set dummy ${ncn_progname}; ac_word=$2
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334 $as_echo_n "checking for $ac_word... " >&6; }
13335 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338   if test -n "$STRIP_FOR_TARGET"; then
13339   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13340 else
13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342 for as_dir in $PATH
13343 do
13344   IFS=$as_save_IFS
13345   test -z "$as_dir" && as_dir=.
13346     for ac_exec_ext in '' $ac_executable_extensions; do
13347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350     break 2
13351   fi
13352 done
13353   done
13354 IFS=$as_save_IFS
13355
13356 fi
13357 fi
13358 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13359 if test -n "$STRIP_FOR_TARGET"; then
13360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13361 $as_echo "$STRIP_FOR_TARGET" >&6; }
13362 else
13363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365 fi
13366
13367
13368   done
13369 fi
13370
13371 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13372   for ncn_progname in strip; do
13373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13374 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13375     if test -x $with_build_time_tools/${ncn_progname}; then
13376       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13378 $as_echo "yes" >&6; }
13379       break
13380     else
13381       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13383     fi
13384   done
13385 fi
13386
13387 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13388   for ncn_progname in strip; do
13389     if test -n "$ncn_target_tool_prefix"; then
13390       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   if test -n "$STRIP_FOR_TARGET"; then
13398   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13407     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13418 if test -n "$STRIP_FOR_TARGET"; then
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13420 $as_echo "$STRIP_FOR_TARGET" >&6; }
13421 else
13422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427     fi
13428     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13429       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13430 set dummy ${ncn_progname}; ac_word=$2
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432 $as_echo_n "checking for $ac_word... " >&6; }
13433 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13434   $as_echo_n "(cached) " >&6
13435 else
13436   if test -n "$STRIP_FOR_TARGET"; then
13437   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13438 else
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13441 do
13442   IFS=$as_save_IFS
13443   test -z "$as_dir" && as_dir=.
13444     for ac_exec_ext in '' $ac_executable_extensions; do
13445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13446     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448     break 2
13449   fi
13450 done
13451   done
13452 IFS=$as_save_IFS
13453
13454 fi
13455 fi
13456 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13457 if test -n "$STRIP_FOR_TARGET"; then
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13459 $as_echo "$STRIP_FOR_TARGET" >&6; }
13460 else
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13463 fi
13464
13465
13466     fi
13467     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13468   done
13469 fi
13470
13471 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13472   set dummy strip
13473   if test $build = $target ; then
13474     STRIP_FOR_TARGET="$2"
13475   else
13476     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13477   fi
13478 else
13479   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13480 fi
13481
13482 else
13483   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13484 fi
13485
13486
13487
13488
13489 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13490   if test -n "$with_build_time_tools"; then
13491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13492 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13493     if test -x $with_build_time_tools/windres; then
13494       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13495       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13496       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13497 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13498     else
13499       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501     fi
13502   elif test $build != $host && test $have_gcc_for_target = yes; then
13503     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13504     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13505     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13506   fi
13507 fi
13508 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13509   # Extract the first word of "windres", so it can be a program name with args.
13510 set dummy windres; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   case $WINDRES_FOR_TARGET in
13517   [\\/]* | ?:[\\/]*)
13518   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13519   ;;
13520   *)
13521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $gcc_cv_tool_dirs
13523 do
13524   IFS=$as_save_IFS
13525   test -z "$as_dir" && as_dir=.
13526     for ac_exec_ext in '' $ac_executable_extensions; do
13527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530     break 2
13531   fi
13532 done
13533   done
13534 IFS=$as_save_IFS
13535
13536   ;;
13537 esac
13538 fi
13539 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13540 if test -n "$WINDRES_FOR_TARGET"; then
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13542 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13543 else
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547
13548
13549 fi
13550 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13551
13552
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13555 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13556   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13557 fi
13558
13559 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13560   for ncn_progname in windres; do
13561     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13562 set dummy ${ncn_progname}; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   if test -n "$WINDRES_FOR_TARGET"; then
13569   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586 fi
13587 fi
13588 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13589 if test -n "$WINDRES_FOR_TARGET"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13591 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596
13597
13598   done
13599 fi
13600
13601 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13602   for ncn_progname in windres; do
13603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13605     if test -x $with_build_time_tools/${ncn_progname}; then
13606       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609       break
13610     else
13611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13613     fi
13614   done
13615 fi
13616
13617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13618   for ncn_progname in windres; do
13619     if test -n "$ncn_target_tool_prefix"; then
13620       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13625   $as_echo_n "(cached) " >&6
13626 else
13627   if test -n "$WINDRES_FOR_TARGET"; then
13628   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13629 else
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13632 do
13633   IFS=$as_save_IFS
13634   test -z "$as_dir" && as_dir=.
13635     for ac_exec_ext in '' $ac_executable_extensions; do
13636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13637     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639     break 2
13640   fi
13641 done
13642   done
13643 IFS=$as_save_IFS
13644
13645 fi
13646 fi
13647 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13648 if test -n "$WINDRES_FOR_TARGET"; then
13649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13650 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13651 else
13652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 fi
13655
13656
13657     fi
13658     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13659       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13660 set dummy ${ncn_progname}; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13664   $as_echo_n "(cached) " >&6
13665 else
13666   if test -n "$WINDRES_FOR_TARGET"; then
13667   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13668 else
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13671 do
13672   IFS=$as_save_IFS
13673   test -z "$as_dir" && as_dir=.
13674     for ac_exec_ext in '' $ac_executable_extensions; do
13675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13678     break 2
13679   fi
13680 done
13681   done
13682 IFS=$as_save_IFS
13683
13684 fi
13685 fi
13686 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13687 if test -n "$WINDRES_FOR_TARGET"; then
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13689 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13690 else
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13693 fi
13694
13695
13696     fi
13697     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13698   done
13699 fi
13700
13701 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13702   set dummy windres
13703   if test $build = $target ; then
13704     WINDRES_FOR_TARGET="$2"
13705   else
13706     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13707   fi
13708 else
13709   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13710 fi
13711
13712 else
13713   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13714 fi
13715
13716
13717
13718
13719 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13720   if test -n "$with_build_time_tools"; then
13721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13722 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13723     if test -x $with_build_time_tools/windmc; then
13724       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13725       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13727 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13728     else
13729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731     fi
13732   elif test $build != $host && test $have_gcc_for_target = yes; then
13733     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13734     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13735     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13736   fi
13737 fi
13738 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13739   # Extract the first word of "windmc", so it can be a program name with args.
13740 set dummy windmc; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746   case $WINDMC_FOR_TARGET in
13747   [\\/]* | ?:[\\/]*)
13748   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13749   ;;
13750   *)
13751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $gcc_cv_tool_dirs
13753 do
13754   IFS=$as_save_IFS
13755   test -z "$as_dir" && as_dir=.
13756     for ac_exec_ext in '' $ac_executable_extensions; do
13757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13758     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760     break 2
13761   fi
13762 done
13763   done
13764 IFS=$as_save_IFS
13765
13766   ;;
13767 esac
13768 fi
13769 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13770 if test -n "$WINDMC_FOR_TARGET"; then
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13772 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13773 else
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778
13779 fi
13780 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13781
13782
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13785 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13786   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13787 fi
13788
13789 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13790   for ncn_progname in windmc; do
13791     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13792 set dummy ${ncn_progname}; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13796   $as_echo_n "(cached) " >&6
13797 else
13798   if test -n "$WINDMC_FOR_TARGET"; then
13799   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13800 else
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13803 do
13804   IFS=$as_save_IFS
13805   test -z "$as_dir" && as_dir=.
13806     for ac_exec_ext in '' $ac_executable_extensions; do
13807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810     break 2
13811   fi
13812 done
13813   done
13814 IFS=$as_save_IFS
13815
13816 fi
13817 fi
13818 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13819 if test -n "$WINDMC_FOR_TARGET"; then
13820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13821 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13822 else
13823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13825 fi
13826
13827
13828   done
13829 fi
13830
13831 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13832   for ncn_progname in windmc; do
13833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13835     if test -x $with_build_time_tools/${ncn_progname}; then
13836       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13838 $as_echo "yes" >&6; }
13839       break
13840     else
13841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843     fi
13844   done
13845 fi
13846
13847 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13848   for ncn_progname in windmc; do
13849     if test -n "$ncn_target_tool_prefix"; then
13850       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13855   $as_echo_n "(cached) " >&6
13856 else
13857   if test -n "$WINDMC_FOR_TARGET"; then
13858   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13859 else
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13862 do
13863   IFS=$as_save_IFS
13864   test -z "$as_dir" && as_dir=.
13865     for ac_exec_ext in '' $ac_executable_extensions; do
13866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13867     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869     break 2
13870   fi
13871 done
13872   done
13873 IFS=$as_save_IFS
13874
13875 fi
13876 fi
13877 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13878 if test -n "$WINDMC_FOR_TARGET"; then
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13880 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13881 else
13882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 $as_echo "no" >&6; }
13884 fi
13885
13886
13887     fi
13888     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13889       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13890 set dummy ${ncn_progname}; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892 $as_echo_n "checking for $ac_word... " >&6; }
13893 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13894   $as_echo_n "(cached) " >&6
13895 else
13896   if test -n "$WINDMC_FOR_TARGET"; then
13897   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13898 else
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13901 do
13902   IFS=$as_save_IFS
13903   test -z "$as_dir" && as_dir=.
13904     for ac_exec_ext in '' $ac_executable_extensions; do
13905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13908     break 2
13909   fi
13910 done
13911   done
13912 IFS=$as_save_IFS
13913
13914 fi
13915 fi
13916 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13917 if test -n "$WINDMC_FOR_TARGET"; then
13918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13919 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13920 else
13921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "no" >&6; }
13923 fi
13924
13925
13926     fi
13927     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13928   done
13929 fi
13930
13931 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13932   set dummy windmc
13933   if test $build = $target ; then
13934     WINDMC_FOR_TARGET="$2"
13935   else
13936     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13937   fi
13938 else
13939   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13940 fi
13941
13942 else
13943   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13944 fi
13945
13946
13947 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13950 $as_echo_n "checking where to find the target ar... " >&6; }
13951 if test "x${build}" != "x${host}" ; then
13952   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13953     # We already found the complete path
13954     ac_dir=`dirname $AR_FOR_TARGET`
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956 $as_echo "pre-installed in $ac_dir" >&6; }
13957   else
13958     # Canadian cross, just use what we found
13959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960 $as_echo "pre-installed" >&6; }
13961   fi
13962 else
13963   ok=yes
13964   case " ${configdirs} " in
13965     *" binutils "*) ;;
13966     *) ok=no ;;
13967   esac
13968
13969   if test $ok = yes; then
13970     # An in-tree tool is available and we can use it
13971     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13973 $as_echo "just compiled" >&6; }
13974   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13975     # We already found the complete path
13976     ac_dir=`dirname $AR_FOR_TARGET`
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13978 $as_echo "pre-installed in $ac_dir" >&6; }
13979   elif test "x$target" = "x$host"; then
13980     # We can use an host tool
13981     AR_FOR_TARGET='$(AR)'
13982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13983 $as_echo "host tool" >&6; }
13984   else
13985     # We need a cross tool
13986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987 $as_echo "pre-installed" >&6; }
13988   fi
13989 fi
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13992 $as_echo_n "checking where to find the target as... " >&6; }
13993 if test "x${build}" != "x${host}" ; then
13994   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13995     # We already found the complete path
13996     ac_dir=`dirname $AS_FOR_TARGET`
13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998 $as_echo "pre-installed in $ac_dir" >&6; }
13999   else
14000     # Canadian cross, just use what we found
14001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14002 $as_echo "pre-installed" >&6; }
14003   fi
14004 else
14005   ok=yes
14006   case " ${configdirs} " in
14007     *" gas "*) ;;
14008     *) ok=no ;;
14009   esac
14010
14011   if test $ok = yes; then
14012     # An in-tree tool is available and we can use it
14013     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14015 $as_echo "just compiled" >&6; }
14016   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14017     # We already found the complete path
14018     ac_dir=`dirname $AS_FOR_TARGET`
14019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14020 $as_echo "pre-installed in $ac_dir" >&6; }
14021   elif test "x$target" = "x$host"; then
14022     # We can use an host tool
14023     AS_FOR_TARGET='$(AS)'
14024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14025 $as_echo "host tool" >&6; }
14026   else
14027     # We need a cross tool
14028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029 $as_echo "pre-installed" >&6; }
14030   fi
14031 fi
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14034 $as_echo_n "checking where to find the target cc... " >&6; }
14035 if test "x${build}" != "x${host}" ; then
14036   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14037     # We already found the complete path
14038     ac_dir=`dirname $CC_FOR_TARGET`
14039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14040 $as_echo "pre-installed in $ac_dir" >&6; }
14041   else
14042     # Canadian cross, just use what we found
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14044 $as_echo "pre-installed" >&6; }
14045   fi
14046 else
14047   ok=yes
14048   case " ${configdirs} " in
14049     *" gcc "*) ;;
14050     *) ok=no ;;
14051   esac
14052
14053   if test $ok = yes; then
14054     # An in-tree tool is available and we can use it
14055     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14057 $as_echo "just compiled" >&6; }
14058   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14059     # We already found the complete path
14060     ac_dir=`dirname $CC_FOR_TARGET`
14061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14062 $as_echo "pre-installed in $ac_dir" >&6; }
14063   elif test "x$target" = "x$host"; then
14064     # We can use an host tool
14065     CC_FOR_TARGET='$(CC)'
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14067 $as_echo "host tool" >&6; }
14068   else
14069     # We need a cross tool
14070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071 $as_echo "pre-installed" >&6; }
14072   fi
14073 fi
14074
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14076 $as_echo_n "checking where to find the target c++... " >&6; }
14077 if test "x${build}" != "x${host}" ; then
14078   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14079     # We already found the complete path
14080     ac_dir=`dirname $CXX_FOR_TARGET`
14081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14082 $as_echo "pre-installed in $ac_dir" >&6; }
14083   else
14084     # Canadian cross, just use what we found
14085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086 $as_echo "pre-installed" >&6; }
14087   fi
14088 else
14089   ok=yes
14090   case " ${configdirs} " in
14091     *" gcc "*) ;;
14092     *) ok=no ;;
14093   esac
14094   case ,${enable_languages}, in
14095     *,c++,*) ;;
14096     *) ok=no ;;
14097   esac
14098   if test $ok = yes; then
14099     # An in-tree tool is available and we can use it
14100     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'
14101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14102 $as_echo "just compiled" >&6; }
14103   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14104     # We already found the complete path
14105     ac_dir=`dirname $CXX_FOR_TARGET`
14106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14107 $as_echo "pre-installed in $ac_dir" >&6; }
14108   elif test "x$target" = "x$host"; then
14109     # We can use an host tool
14110     CXX_FOR_TARGET='$(CXX)'
14111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14112 $as_echo "host tool" >&6; }
14113   else
14114     # We need a cross tool
14115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116 $as_echo "pre-installed" >&6; }
14117   fi
14118 fi
14119
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14121 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14122 if test "x${build}" != "x${host}" ; then
14123   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14124     # We already found the complete path
14125     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127 $as_echo "pre-installed in $ac_dir" >&6; }
14128   else
14129     # Canadian cross, just use what we found
14130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131 $as_echo "pre-installed" >&6; }
14132   fi
14133 else
14134   ok=yes
14135   case " ${configdirs} " in
14136     *" gcc "*) ;;
14137     *) ok=no ;;
14138   esac
14139   case ,${enable_languages}, in
14140     *,c++,*) ;;
14141     *) ok=no ;;
14142   esac
14143   if test $ok = yes; then
14144     # An in-tree tool is available and we can use it
14145     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'
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14147 $as_echo "just compiled" >&6; }
14148   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14149     # We already found the complete path
14150     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152 $as_echo "pre-installed in $ac_dir" >&6; }
14153   elif test "x$target" = "x$host"; then
14154     # We can use an host tool
14155     RAW_CXX_FOR_TARGET='$(CXX)'
14156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14157 $as_echo "host tool" >&6; }
14158   else
14159     # We need a cross tool
14160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161 $as_echo "pre-installed" >&6; }
14162   fi
14163 fi
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14166 $as_echo_n "checking where to find the target dlltool... " >&6; }
14167 if test "x${build}" != "x${host}" ; then
14168   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14169     # We already found the complete path
14170     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172 $as_echo "pre-installed in $ac_dir" >&6; }
14173   else
14174     # Canadian cross, just use what we found
14175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14177   fi
14178 else
14179   ok=yes
14180   case " ${configdirs} " in
14181     *" binutils "*) ;;
14182     *) ok=no ;;
14183   esac
14184
14185   if test $ok = yes; then
14186     # An in-tree tool is available and we can use it
14187     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14189 $as_echo "just compiled" >&6; }
14190   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14191     # We already found the complete path
14192     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194 $as_echo "pre-installed in $ac_dir" >&6; }
14195   elif test "x$target" = "x$host"; then
14196     # We can use an host tool
14197     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14199 $as_echo "host tool" >&6; }
14200   else
14201     # We need a cross tool
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203 $as_echo "pre-installed" >&6; }
14204   fi
14205 fi
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14208 $as_echo_n "checking where to find the target gcc... " >&6; }
14209 if test "x${build}" != "x${host}" ; then
14210   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14211     # We already found the complete path
14212     ac_dir=`dirname $GCC_FOR_TARGET`
14213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14215   else
14216     # Canadian cross, just use what we found
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14219   fi
14220 else
14221   ok=yes
14222   case " ${configdirs} " in
14223     *" gcc "*) ;;
14224     *) ok=no ;;
14225   esac
14226
14227   if test $ok = yes; then
14228     # An in-tree tool is available and we can use it
14229     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14231 $as_echo "just compiled" >&6; }
14232   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14233     # We already found the complete path
14234     ac_dir=`dirname $GCC_FOR_TARGET`
14235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236 $as_echo "pre-installed in $ac_dir" >&6; }
14237   elif test "x$target" = "x$host"; then
14238     # We can use an host tool
14239     GCC_FOR_TARGET='$()'
14240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14241 $as_echo "host tool" >&6; }
14242   else
14243     # We need a cross tool
14244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245 $as_echo "pre-installed" >&6; }
14246   fi
14247 fi
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14250 $as_echo_n "checking where to find the target gcj... " >&6; }
14251 if test "x${build}" != "x${host}" ; then
14252   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14253     # We already found the complete path
14254     ac_dir=`dirname $GCJ_FOR_TARGET`
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14257   else
14258     # Canadian cross, just use what we found
14259     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14261   fi
14262 else
14263   ok=yes
14264   case " ${configdirs} " in
14265     *" gcc "*) ;;
14266     *) ok=no ;;
14267   esac
14268   case ,${enable_languages}, in
14269     *,java,*) ;;
14270     *) ok=no ;;
14271   esac
14272   if test $ok = yes; then
14273     # An in-tree tool is available and we can use it
14274     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14276 $as_echo "just compiled" >&6; }
14277   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14278     # We already found the complete path
14279     ac_dir=`dirname $GCJ_FOR_TARGET`
14280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281 $as_echo "pre-installed in $ac_dir" >&6; }
14282   elif test "x$target" = "x$host"; then
14283     # We can use an host tool
14284     GCJ_FOR_TARGET='$(GCJ)'
14285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14286 $as_echo "host tool" >&6; }
14287   else
14288     # We need a cross tool
14289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290 $as_echo "pre-installed" >&6; }
14291   fi
14292 fi
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14295 $as_echo_n "checking where to find the target gfortran... " >&6; }
14296 if test "x${build}" != "x${host}" ; then
14297   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14298     # We already found the complete path
14299     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14301 $as_echo "pre-installed in $ac_dir" >&6; }
14302   else
14303     # Canadian cross, just use what we found
14304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14305 $as_echo "pre-installed" >&6; }
14306   fi
14307 else
14308   ok=yes
14309   case " ${configdirs} " in
14310     *" gcc "*) ;;
14311     *) ok=no ;;
14312   esac
14313   case ,${enable_languages}, in
14314     *,fortran,*) ;;
14315     *) ok=no ;;
14316   esac
14317   if test $ok = yes; then
14318     # An in-tree tool is available and we can use it
14319     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14321 $as_echo "just compiled" >&6; }
14322   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14323     # We already found the complete path
14324     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14326 $as_echo "pre-installed in $ac_dir" >&6; }
14327   elif test "x$target" = "x$host"; then
14328     # We can use an host tool
14329     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14331 $as_echo "host tool" >&6; }
14332   else
14333     # We need a cross tool
14334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335 $as_echo "pre-installed" >&6; }
14336   fi
14337 fi
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14340 $as_echo_n "checking where to find the target gccgo... " >&6; }
14341 if test "x${build}" != "x${host}" ; then
14342   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14343     # We already found the complete path
14344     ac_dir=`dirname $GOC_FOR_TARGET`
14345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14346 $as_echo "pre-installed in $ac_dir" >&6; }
14347   else
14348     # Canadian cross, just use what we found
14349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14350 $as_echo "pre-installed" >&6; }
14351   fi
14352 else
14353   ok=yes
14354   case " ${configdirs} " in
14355     *" gcc "*) ;;
14356     *) ok=no ;;
14357   esac
14358   case ,${enable_languages}, in
14359     *,go,*) ;;
14360     *) ok=no ;;
14361   esac
14362   if test $ok = yes; then
14363     # An in-tree tool is available and we can use it
14364     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14366 $as_echo "just compiled" >&6; }
14367   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14368     # We already found the complete path
14369     ac_dir=`dirname $GOC_FOR_TARGET`
14370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371 $as_echo "pre-installed in $ac_dir" >&6; }
14372   elif test "x$target" = "x$host"; then
14373     # We can use an host tool
14374     GOC_FOR_TARGET='$(GOC)'
14375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14376 $as_echo "host tool" >&6; }
14377   else
14378     # We need a cross tool
14379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14381   fi
14382 fi
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14385 $as_echo_n "checking where to find the target ld... " >&6; }
14386 if test "x${build}" != "x${host}" ; then
14387   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14388     # We already found the complete path
14389     ac_dir=`dirname $LD_FOR_TARGET`
14390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392   else
14393     # Canadian cross, just use what we found
14394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14396   fi
14397 else
14398   ok=yes
14399   case " ${configdirs} " in
14400     *" ld "*) ;;
14401     *) ok=no ;;
14402   esac
14403
14404   if test $ok = yes; then
14405     # An in-tree tool is available and we can use it
14406     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14408 $as_echo "just compiled" >&6; }
14409   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14410     # We already found the complete path
14411     ac_dir=`dirname $LD_FOR_TARGET`
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413 $as_echo "pre-installed in $ac_dir" >&6; }
14414   elif test "x$target" = "x$host"; then
14415     # We can use an host tool
14416     LD_FOR_TARGET='$(LD)'
14417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14418 $as_echo "host tool" >&6; }
14419   else
14420     # We need a cross tool
14421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14423   fi
14424 fi
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14427 $as_echo_n "checking where to find the target lipo... " >&6; }
14428 if test "x${build}" != "x${host}" ; then
14429   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14430     # We already found the complete path
14431     ac_dir=`dirname $LIPO_FOR_TARGET`
14432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14434   else
14435     # Canadian cross, just use what we found
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437 $as_echo "pre-installed" >&6; }
14438   fi
14439 else
14440   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14441     # We already found the complete path
14442     ac_dir=`dirname $LIPO_FOR_TARGET`
14443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445   elif test "x$target" = "x$host"; then
14446     # We can use an host tool
14447     LIPO_FOR_TARGET='$(LIPO)'
14448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449 $as_echo "host tool" >&6; }
14450   else
14451     # We need a cross tool
14452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14454   fi
14455 fi
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14458 $as_echo_n "checking where to find the target nm... " >&6; }
14459 if test "x${build}" != "x${host}" ; then
14460   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14461     # We already found the complete path
14462     ac_dir=`dirname $NM_FOR_TARGET`
14463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464 $as_echo "pre-installed in $ac_dir" >&6; }
14465   else
14466     # Canadian cross, just use what we found
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14469   fi
14470 else
14471   ok=yes
14472   case " ${configdirs} " in
14473     *" binutils "*) ;;
14474     *) ok=no ;;
14475   esac
14476
14477   if test $ok = yes; then
14478     # An in-tree tool is available and we can use it
14479     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14481 $as_echo "just compiled" >&6; }
14482   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14483     # We already found the complete path
14484     ac_dir=`dirname $NM_FOR_TARGET`
14485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486 $as_echo "pre-installed in $ac_dir" >&6; }
14487   elif test "x$target" = "x$host"; then
14488     # We can use an host tool
14489     NM_FOR_TARGET='$(NM)'
14490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14491 $as_echo "host tool" >&6; }
14492   else
14493     # We need a cross tool
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14496   fi
14497 fi
14498
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14500 $as_echo_n "checking where to find the target objcopy... " >&6; }
14501 if test "x${build}" != "x${host}" ; then
14502   if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14503     # We already found the complete path
14504     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506 $as_echo "pre-installed in $ac_dir" >&6; }
14507   else
14508     # Canadian cross, just use what we found
14509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510 $as_echo "pre-installed" >&6; }
14511   fi
14512 else
14513   ok=yes
14514   case " ${configdirs} " in
14515     *" binutils "*) ;;
14516     *) ok=no ;;
14517   esac
14518
14519   if test $ok = yes; then
14520     # An in-tree tool is available and we can use it
14521     OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14523 $as_echo "just compiled" >&6; }
14524   elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14525     # We already found the complete path
14526     ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528 $as_echo "pre-installed in $ac_dir" >&6; }
14529   elif test "x$target" = "x$host"; then
14530     # We can use an host tool
14531     OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14533 $as_echo "host tool" >&6; }
14534   else
14535     # We need a cross tool
14536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14538   fi
14539 fi
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14542 $as_echo_n "checking where to find the target objdump... " >&6; }
14543 if test "x${build}" != "x${host}" ; then
14544   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14545     # We already found the complete path
14546     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548 $as_echo "pre-installed in $ac_dir" >&6; }
14549   else
14550     # Canadian cross, just use what we found
14551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552 $as_echo "pre-installed" >&6; }
14553   fi
14554 else
14555   ok=yes
14556   case " ${configdirs} " in
14557     *" binutils "*) ;;
14558     *) ok=no ;;
14559   esac
14560
14561   if test $ok = yes; then
14562     # An in-tree tool is available and we can use it
14563     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14565 $as_echo "just compiled" >&6; }
14566   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14567     # We already found the complete path
14568     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14570 $as_echo "pre-installed in $ac_dir" >&6; }
14571   elif test "x$target" = "x$host"; then
14572     # We can use an host tool
14573     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14575 $as_echo "host tool" >&6; }
14576   else
14577     # We need a cross tool
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14580   fi
14581 fi
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14584 $as_echo_n "checking where to find the target ranlib... " >&6; }
14585 if test "x${build}" != "x${host}" ; then
14586   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14587     # We already found the complete path
14588     ac_dir=`dirname $RANLIB_FOR_TARGET`
14589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590 $as_echo "pre-installed in $ac_dir" >&6; }
14591   else
14592     # Canadian cross, just use what we found
14593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594 $as_echo "pre-installed" >&6; }
14595   fi
14596 else
14597   ok=yes
14598   case " ${configdirs} " in
14599     *" binutils "*) ;;
14600     *) ok=no ;;
14601   esac
14602
14603   if test $ok = yes; then
14604     # An in-tree tool is available and we can use it
14605     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14607 $as_echo "just compiled" >&6; }
14608   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14609     # We already found the complete path
14610     ac_dir=`dirname $RANLIB_FOR_TARGET`
14611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14612 $as_echo "pre-installed in $ac_dir" >&6; }
14613   elif test "x$target" = "x$host"; then
14614     # We can use an host tool
14615     RANLIB_FOR_TARGET='$(RANLIB)'
14616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14617 $as_echo "host tool" >&6; }
14618   else
14619     # We need a cross tool
14620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14622   fi
14623 fi
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14626 $as_echo_n "checking where to find the target readelf... " >&6; }
14627 if test "x${build}" != "x${host}" ; then
14628   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14629     # We already found the complete path
14630     ac_dir=`dirname $READELF_FOR_TARGET`
14631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14632 $as_echo "pre-installed in $ac_dir" >&6; }
14633   else
14634     # Canadian cross, just use what we found
14635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14636 $as_echo "pre-installed" >&6; }
14637   fi
14638 else
14639   ok=yes
14640   case " ${configdirs} " in
14641     *" binutils "*) ;;
14642     *) ok=no ;;
14643   esac
14644
14645   if test $ok = yes; then
14646     # An in-tree tool is available and we can use it
14647     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14649 $as_echo "just compiled" >&6; }
14650   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14651     # We already found the complete path
14652     ac_dir=`dirname $READELF_FOR_TARGET`
14653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14654 $as_echo "pre-installed in $ac_dir" >&6; }
14655   elif test "x$target" = "x$host"; then
14656     # We can use an host tool
14657     READELF_FOR_TARGET='$(READELF)'
14658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14659 $as_echo "host tool" >&6; }
14660   else
14661     # We need a cross tool
14662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663 $as_echo "pre-installed" >&6; }
14664   fi
14665 fi
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14668 $as_echo_n "checking where to find the target strip... " >&6; }
14669 if test "x${build}" != "x${host}" ; then
14670   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14671     # We already found the complete path
14672     ac_dir=`dirname $STRIP_FOR_TARGET`
14673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14674 $as_echo "pre-installed in $ac_dir" >&6; }
14675   else
14676     # Canadian cross, just use what we found
14677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14678 $as_echo "pre-installed" >&6; }
14679   fi
14680 else
14681   ok=yes
14682   case " ${configdirs} " in
14683     *" binutils "*) ;;
14684     *) ok=no ;;
14685   esac
14686
14687   if test $ok = yes; then
14688     # An in-tree tool is available and we can use it
14689     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14691 $as_echo "just compiled" >&6; }
14692   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14693     # We already found the complete path
14694     ac_dir=`dirname $STRIP_FOR_TARGET`
14695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14696 $as_echo "pre-installed in $ac_dir" >&6; }
14697   elif test "x$target" = "x$host"; then
14698     # We can use an host tool
14699     STRIP_FOR_TARGET='$(STRIP)'
14700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14701 $as_echo "host tool" >&6; }
14702   else
14703     # We need a cross tool
14704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705 $as_echo "pre-installed" >&6; }
14706   fi
14707 fi
14708
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14710 $as_echo_n "checking where to find the target windres... " >&6; }
14711 if test "x${build}" != "x${host}" ; then
14712   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14713     # We already found the complete path
14714     ac_dir=`dirname $WINDRES_FOR_TARGET`
14715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14716 $as_echo "pre-installed in $ac_dir" >&6; }
14717   else
14718     # Canadian cross, just use what we found
14719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14720 $as_echo "pre-installed" >&6; }
14721   fi
14722 else
14723   ok=yes
14724   case " ${configdirs} " in
14725     *" binutils "*) ;;
14726     *) ok=no ;;
14727   esac
14728
14729   if test $ok = yes; then
14730     # An in-tree tool is available and we can use it
14731     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14733 $as_echo "just compiled" >&6; }
14734   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14735     # We already found the complete path
14736     ac_dir=`dirname $WINDRES_FOR_TARGET`
14737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14738 $as_echo "pre-installed in $ac_dir" >&6; }
14739   elif test "x$target" = "x$host"; then
14740     # We can use an host tool
14741     WINDRES_FOR_TARGET='$(WINDRES)'
14742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14743 $as_echo "host tool" >&6; }
14744   else
14745     # We need a cross tool
14746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747 $as_echo "pre-installed" >&6; }
14748   fi
14749 fi
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14752 $as_echo_n "checking where to find the target windmc... " >&6; }
14753 if test "x${build}" != "x${host}" ; then
14754   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14755     # We already found the complete path
14756     ac_dir=`dirname $WINDMC_FOR_TARGET`
14757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14758 $as_echo "pre-installed in $ac_dir" >&6; }
14759   else
14760     # Canadian cross, just use what we found
14761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14762 $as_echo "pre-installed" >&6; }
14763   fi
14764 else
14765   ok=yes
14766   case " ${configdirs} " in
14767     *" binutils "*) ;;
14768     *) ok=no ;;
14769   esac
14770
14771   if test $ok = yes; then
14772     # An in-tree tool is available and we can use it
14773     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14775 $as_echo "just compiled" >&6; }
14776   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14777     # We already found the complete path
14778     ac_dir=`dirname $WINDMC_FOR_TARGET`
14779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14780 $as_echo "pre-installed in $ac_dir" >&6; }
14781   elif test "x$target" = "x$host"; then
14782     # We can use an host tool
14783     WINDMC_FOR_TARGET='$(WINDMC)'
14784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14785 $as_echo "host tool" >&6; }
14786   else
14787     # We need a cross tool
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14789 $as_echo "pre-installed" >&6; }
14790   fi
14791 fi
14792
14793
14794
14795
14796
14797 # Certain tools may need extra flags.
14798 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14799 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14800 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14801
14802 # When building target libraries, except in a Canadian cross, we use
14803 # the same toolchain as the compiler we just built.
14804 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14805 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14806 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14807 if test $host = $build; then
14808   case " $configdirs " in
14809     *" gcc "*)
14810       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14811       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14812       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14813       ;;
14814   esac
14815 fi
14816
14817
14818
14819
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14822 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14823 # Check whether --enable-maintainer-mode was given.
14824 if test "${enable_maintainer_mode+set}" = set; then :
14825   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14826 else
14827   USE_MAINTAINER_MODE=no
14828 fi
14829
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14831 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14832
14833
14834 if test "$USE_MAINTAINER_MODE" = yes; then
14835   MAINTAINER_MODE_TRUE=
14836   MAINTAINER_MODE_FALSE='#'
14837 else
14838   MAINTAINER_MODE_TRUE='#'
14839   MAINTAINER_MODE_FALSE=
14840 fi
14841 MAINT=$MAINTAINER_MODE_TRUE
14842
14843 # ---------------------
14844 # GCC bootstrap support
14845 # ---------------------
14846
14847 # Stage specific cflags for build.
14848 stage1_cflags="-g"
14849 case $build in
14850   vax-*-*)
14851     case ${GCC} in
14852       yes) stage1_cflags="-g -Wa,-J" ;;
14853       *) stage1_cflags="-g -J" ;;
14854     esac ;;
14855 esac
14856
14857
14858
14859 # Enable --enable-checking in stage1 of the compiler.
14860 # Check whether --enable-stage1-checking was given.
14861 if test "${enable_stage1_checking+set}" = set; then :
14862   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14863 else
14864   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14865   # For --disable-checking or implicit --enable-checking=release, avoid
14866   # setting --enable-checking=gc in the default stage1 checking for LTO
14867   # bootstraps.  See PR62077.
14868   stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14869   case $BUILD_CONFIG in
14870     *lto*)
14871       if test "x$enable_checking" = x && \
14872          test -d ${srcdir}/gcc && \
14873          test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14874         stage1_checking=--enable-checking=yes,types
14875       fi;;
14876     *) stage1_checking=--enable-checking=yes,types;;
14877   esac
14878 else
14879   stage1_checking=--enable-checking=$enable_checking,types
14880 fi
14881 fi
14882
14883
14884
14885 # Enable -Werror in bootstrap stage2 and later.
14886 # Check whether --enable-werror was given.
14887 if test "${enable_werror+set}" = set; then :
14888   enableval=$enable_werror;
14889 else
14890   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14891   enable_werror=yes
14892 else
14893   enable_werror=no
14894 fi
14895 fi
14896
14897 case ${enable_werror} in
14898   yes) stage2_werror_flag="--enable-werror-always" ;;
14899   *) stage2_werror_flag="" ;;
14900 esac
14901
14902
14903 # Enable --enable-host-shared.
14904 # Check whether --enable-host-shared was given.
14905 if test "${enable_host_shared+set}" = set; then :
14906   enableval=$enable_host_shared; host_shared=$enableval
14907 else
14908   host_shared=no
14909 fi
14910
14911
14912
14913 # PR jit/64780: Require the user to explicitly specify
14914 # --enable-host-shared if the jit is enabled, hinting
14915 # that they might want to do a separate configure/build of
14916 # the jit, to avoid users from slowing down the rest of the
14917 # compiler by enabling the jit.
14918 if test ${host_shared} = "no" ; then
14919   case "${enable_languages}" in
14920     *jit*)
14921       as_fn_error "
14922 Enabling language \"jit\" requires --enable-host-shared.
14923
14924 --enable-host-shared typically slows the rest of the compiler down by
14925 a few %, so you must explicitly enable it.
14926
14927 If you want to build both the jit and the regular compiler, it is often
14928 best to do this via two separate configure/builds, in separate
14929 directories, to avoid imposing the performance cost of
14930 --enable-host-shared on the regular compiler." "$LINENO" 5
14931       ;;
14932     *)
14933       ;;
14934   esac
14935 fi
14936
14937 # Specify what files to not compare during bootstrap.
14938
14939 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14940 case "$target" in
14941   hppa*64*-*-hpux*) ;;
14942   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14943   powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14944 esac
14945
14946
14947 ac_config_files="$ac_config_files Makefile"
14948
14949 cat >confcache <<\_ACEOF
14950 # This file is a shell script that caches the results of configure
14951 # tests run on this system so they can be shared between configure
14952 # scripts and configure runs, see configure's option --config-cache.
14953 # It is not useful on other systems.  If it contains results you don't
14954 # want to keep, you may remove or edit it.
14955 #
14956 # config.status only pays attention to the cache file if you give it
14957 # the --recheck option to rerun configure.
14958 #
14959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14961 # following values.
14962
14963 _ACEOF
14964
14965 # The following way of writing the cache mishandles newlines in values,
14966 # but we know of no workaround that is simple, portable, and efficient.
14967 # So, we kill variables containing newlines.
14968 # Ultrix sh set writes to stderr and can't be redirected directly,
14969 # and sets the high bit in the cache file unless we assign to the vars.
14970 (
14971   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14972     eval ac_val=\$$ac_var
14973     case $ac_val in #(
14974     *${as_nl}*)
14975       case $ac_var in #(
14976       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14978       esac
14979       case $ac_var in #(
14980       _ | IFS | as_nl) ;; #(
14981       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14982       *) { eval $ac_var=; unset $ac_var;} ;;
14983       esac ;;
14984     esac
14985   done
14986
14987   (set) 2>&1 |
14988     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14989     *${as_nl}ac_space=\ *)
14990       # `set' does not quote correctly, so add quotes: double-quote
14991       # substitution turns \\\\ into \\, and sed turns \\ into \.
14992       sed -n \
14993         "s/'/'\\\\''/g;
14994           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14995       ;; #(
14996     *)
14997       # `set' quotes correctly as required by POSIX, so do not add quotes.
14998       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14999       ;;
15000     esac |
15001     sort
15002 ) |
15003   sed '
15004      /^ac_cv_env_/b end
15005      t clear
15006      :clear
15007      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15008      t end
15009      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15010      :end' >>confcache
15011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15012   if test -w "$cache_file"; then
15013     test "x$cache_file" != "x/dev/null" &&
15014       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15015 $as_echo "$as_me: updating cache $cache_file" >&6;}
15016     cat confcache >$cache_file
15017   else
15018     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15020   fi
15021 fi
15022 rm -f confcache
15023
15024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15025 # Let make expand exec_prefix.
15026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15027
15028 # Transform confdefs.h into DEFS.
15029 # Protect against shell expansion while executing Makefile rules.
15030 # Protect against Makefile macro expansion.
15031 #
15032 # If the first sed substitution is executed (which looks for macros that
15033 # take arguments), then branch to the quote section.  Otherwise,
15034 # look for a macro that doesn't take arguments.
15035 ac_script='
15036 :mline
15037 /\\$/{
15038  N
15039  s,\\\n,,
15040  b mline
15041 }
15042 t clear
15043 :clear
15044 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15045 t quote
15046 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15047 t quote
15048 b any
15049 :quote
15050 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15051 s/\[/\\&/g
15052 s/\]/\\&/g
15053 s/\$/$$/g
15054 H
15055 :any
15056 ${
15057         g
15058         s/^\n//
15059         s/\n/ /g
15060         p
15061 }
15062 '
15063 DEFS=`sed -n "$ac_script" confdefs.h`
15064
15065
15066 ac_libobjs=
15067 ac_ltlibobjs=
15068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15069   # 1. Remove the extension, and $U if already installed.
15070   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15071   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15072   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15073   #    will be set to the directory where LIBOBJS objects are built.
15074   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15075   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15076 done
15077 LIBOBJS=$ac_libobjs
15078
15079 LTLIBOBJS=$ac_ltlibobjs
15080
15081
15082
15083 : ${CONFIG_STATUS=./config.status}
15084 ac_write_fail=0
15085 ac_clean_files_save=$ac_clean_files
15086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15089 as_write_fail=0
15090 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15091 #! $SHELL
15092 # Generated by $as_me.
15093 # Run this file to recreate the current configuration.
15094 # Compiler output produced by configure, useful for debugging
15095 # configure, is in config.log if it exists.
15096
15097 debug=false
15098 ac_cs_recheck=false
15099 ac_cs_silent=false
15100
15101 SHELL=\${CONFIG_SHELL-$SHELL}
15102 export SHELL
15103 _ASEOF
15104 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15105 ## -------------------- ##
15106 ## M4sh Initialization. ##
15107 ## -------------------- ##
15108
15109 # Be more Bourne compatible
15110 DUALCASE=1; export DUALCASE # for MKS sh
15111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15112   emulate sh
15113   NULLCMD=:
15114   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15115   # is contrary to our usage.  Disable this feature.
15116   alias -g '${1+"$@"}'='"$@"'
15117   setopt NO_GLOB_SUBST
15118 else
15119   case `(set -o) 2>/dev/null` in #(
15120   *posix*) :
15121     set -o posix ;; #(
15122   *) :
15123      ;;
15124 esac
15125 fi
15126
15127
15128 as_nl='
15129 '
15130 export as_nl
15131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15135 # Prefer a ksh shell builtin over an external printf program on Solaris,
15136 # but without wasting forks for bash or zsh.
15137 if test -z "$BASH_VERSION$ZSH_VERSION" \
15138     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15139   as_echo='print -r --'
15140   as_echo_n='print -rn --'
15141 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15142   as_echo='printf %s\n'
15143   as_echo_n='printf %s'
15144 else
15145   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15146     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15147     as_echo_n='/usr/ucb/echo -n'
15148   else
15149     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15150     as_echo_n_body='eval
15151       arg=$1;
15152       case $arg in #(
15153       *"$as_nl"*)
15154         expr "X$arg" : "X\\(.*\\)$as_nl";
15155         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15156       esac;
15157       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15158     '
15159     export as_echo_n_body
15160     as_echo_n='sh -c $as_echo_n_body as_echo'
15161   fi
15162   export as_echo_body
15163   as_echo='sh -c $as_echo_body as_echo'
15164 fi
15165
15166 # The user is always right.
15167 if test "${PATH_SEPARATOR+set}" != set; then
15168   PATH_SEPARATOR=:
15169   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15170     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15171       PATH_SEPARATOR=';'
15172   }
15173 fi
15174
15175
15176 # IFS
15177 # We need space, tab and new line, in precisely that order.  Quoting is
15178 # there to prevent editors from complaining about space-tab.
15179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15180 # splitting by setting IFS to empty value.)
15181 IFS=" ""        $as_nl"
15182
15183 # Find who we are.  Look in the path if we contain no directory separator.
15184 case $0 in #((
15185   *[\\/]* ) as_myself=$0 ;;
15186   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15188 do
15189   IFS=$as_save_IFS
15190   test -z "$as_dir" && as_dir=.
15191     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15192   done
15193 IFS=$as_save_IFS
15194
15195      ;;
15196 esac
15197 # We did not find ourselves, most probably we were run as `sh COMMAND'
15198 # in which case we are not to be found in the path.
15199 if test "x$as_myself" = x; then
15200   as_myself=$0
15201 fi
15202 if test ! -f "$as_myself"; then
15203   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15204   exit 1
15205 fi
15206
15207 # Unset variables that we do not need and which cause bugs (e.g. in
15208 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15209 # suppresses any "Segmentation fault" message there.  '((' could
15210 # trigger a bug in pdksh 5.2.14.
15211 for as_var in BASH_ENV ENV MAIL MAILPATH
15212 do eval test x\${$as_var+set} = xset \
15213   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15214 done
15215 PS1='$ '
15216 PS2='> '
15217 PS4='+ '
15218
15219 # NLS nuisances.
15220 LC_ALL=C
15221 export LC_ALL
15222 LANGUAGE=C
15223 export LANGUAGE
15224
15225 # CDPATH.
15226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15227
15228
15229 # as_fn_error ERROR [LINENO LOG_FD]
15230 # ---------------------------------
15231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15233 # script with status $?, using 1 if that was 0.
15234 as_fn_error ()
15235 {
15236   as_status=$?; test $as_status -eq 0 && as_status=1
15237   if test "$3"; then
15238     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15239     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15240   fi
15241   $as_echo "$as_me: error: $1" >&2
15242   as_fn_exit $as_status
15243 } # as_fn_error
15244
15245
15246 # as_fn_set_status STATUS
15247 # -----------------------
15248 # Set $? to STATUS, without forking.
15249 as_fn_set_status ()
15250 {
15251   return $1
15252 } # as_fn_set_status
15253
15254 # as_fn_exit STATUS
15255 # -----------------
15256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15257 as_fn_exit ()
15258 {
15259   set +e
15260   as_fn_set_status $1
15261   exit $1
15262 } # as_fn_exit
15263
15264 # as_fn_unset VAR
15265 # ---------------
15266 # Portably unset VAR.
15267 as_fn_unset ()
15268 {
15269   { eval $1=; unset $1;}
15270 }
15271 as_unset=as_fn_unset
15272 # as_fn_append VAR VALUE
15273 # ----------------------
15274 # Append the text in VALUE to the end of the definition contained in VAR. Take
15275 # advantage of any shell optimizations that allow amortized linear growth over
15276 # repeated appends, instead of the typical quadratic growth present in naive
15277 # implementations.
15278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15279   eval 'as_fn_append ()
15280   {
15281     eval $1+=\$2
15282   }'
15283 else
15284   as_fn_append ()
15285   {
15286     eval $1=\$$1\$2
15287   }
15288 fi # as_fn_append
15289
15290 # as_fn_arith ARG...
15291 # ------------------
15292 # Perform arithmetic evaluation on the ARGs, and store the result in the
15293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15294 # must be portable across $(()) and expr.
15295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15296   eval 'as_fn_arith ()
15297   {
15298     as_val=$(( $* ))
15299   }'
15300 else
15301   as_fn_arith ()
15302   {
15303     as_val=`expr "$@" || test $? -eq 1`
15304   }
15305 fi # as_fn_arith
15306
15307
15308 if expr a : '\(a\)' >/dev/null 2>&1 &&
15309    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15310   as_expr=expr
15311 else
15312   as_expr=false
15313 fi
15314
15315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15316   as_basename=basename
15317 else
15318   as_basename=false
15319 fi
15320
15321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15322   as_dirname=dirname
15323 else
15324   as_dirname=false
15325 fi
15326
15327 as_me=`$as_basename -- "$0" ||
15328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15329          X"$0" : 'X\(//\)$' \| \
15330          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15331 $as_echo X/"$0" |
15332     sed '/^.*\/\([^/][^/]*\)\/*$/{
15333             s//\1/
15334             q
15335           }
15336           /^X\/\(\/\/\)$/{
15337             s//\1/
15338             q
15339           }
15340           /^X\/\(\/\).*/{
15341             s//\1/
15342             q
15343           }
15344           s/.*/./; q'`
15345
15346 # Avoid depending upon Character Ranges.
15347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15350 as_cr_digits='0123456789'
15351 as_cr_alnum=$as_cr_Letters$as_cr_digits
15352
15353 ECHO_C= ECHO_N= ECHO_T=
15354 case `echo -n x` in #(((((
15355 -n*)
15356   case `echo 'xy\c'` in
15357   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15358   xy)  ECHO_C='\c';;
15359   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15360        ECHO_T=' ';;
15361   esac;;
15362 *)
15363   ECHO_N='-n';;
15364 esac
15365
15366 rm -f conf$$ conf$$.exe conf$$.file
15367 if test -d conf$$.dir; then
15368   rm -f conf$$.dir/conf$$.file
15369 else
15370   rm -f conf$$.dir
15371   mkdir conf$$.dir 2>/dev/null
15372 fi
15373 if (echo >conf$$.file) 2>/dev/null; then
15374   if ln -s conf$$.file conf$$ 2>/dev/null; then
15375     as_ln_s='ln -s'
15376     # ... but there are two gotchas:
15377     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15378     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15379     # In both cases, we have to default to `cp -p'.
15380     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15381       as_ln_s='cp -p'
15382   elif ln conf$$.file conf$$ 2>/dev/null; then
15383     as_ln_s=ln
15384   else
15385     as_ln_s='cp -p'
15386   fi
15387 else
15388   as_ln_s='cp -p'
15389 fi
15390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15391 rmdir conf$$.dir 2>/dev/null
15392
15393
15394 # as_fn_mkdir_p
15395 # -------------
15396 # Create "$as_dir" as a directory, including parents if necessary.
15397 as_fn_mkdir_p ()
15398 {
15399
15400   case $as_dir in #(
15401   -*) as_dir=./$as_dir;;
15402   esac
15403   test -d "$as_dir" || eval $as_mkdir_p || {
15404     as_dirs=
15405     while :; do
15406       case $as_dir in #(
15407       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15408       *) as_qdir=$as_dir;;
15409       esac
15410       as_dirs="'$as_qdir' $as_dirs"
15411       as_dir=`$as_dirname -- "$as_dir" ||
15412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15413          X"$as_dir" : 'X\(//\)[^/]' \| \
15414          X"$as_dir" : 'X\(//\)$' \| \
15415          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15416 $as_echo X"$as_dir" |
15417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15418             s//\1/
15419             q
15420           }
15421           /^X\(\/\/\)[^/].*/{
15422             s//\1/
15423             q
15424           }
15425           /^X\(\/\/\)$/{
15426             s//\1/
15427             q
15428           }
15429           /^X\(\/\).*/{
15430             s//\1/
15431             q
15432           }
15433           s/.*/./; q'`
15434       test -d "$as_dir" && break
15435     done
15436     test -z "$as_dirs" || eval "mkdir $as_dirs"
15437   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15438
15439
15440 } # as_fn_mkdir_p
15441 if mkdir -p . 2>/dev/null; then
15442   as_mkdir_p='mkdir -p "$as_dir"'
15443 else
15444   test -d ./-p && rmdir ./-p
15445   as_mkdir_p=false
15446 fi
15447
15448 if test -x / >/dev/null 2>&1; then
15449   as_test_x='test -x'
15450 else
15451   if ls -dL / >/dev/null 2>&1; then
15452     as_ls_L_option=L
15453   else
15454     as_ls_L_option=
15455   fi
15456   as_test_x='
15457     eval sh -c '\''
15458       if test -d "$1"; then
15459         test -d "$1/.";
15460       else
15461         case $1 in #(
15462         -*)set "./$1";;
15463         esac;
15464         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15465         ???[sx]*):;;*)false;;esac;fi
15466     '\'' sh
15467   '
15468 fi
15469 as_executable_p=$as_test_x
15470
15471 # Sed expression to map a string onto a valid CPP name.
15472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15473
15474 # Sed expression to map a string onto a valid variable name.
15475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15476
15477
15478 exec 6>&1
15479 ## ----------------------------------- ##
15480 ## Main body of $CONFIG_STATUS script. ##
15481 ## ----------------------------------- ##
15482 _ASEOF
15483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15484
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 # Save the log message, to keep $0 and so on meaningful, and to
15487 # report actual input values of CONFIG_FILES etc. instead of their
15488 # values after options handling.
15489 ac_log="
15490 This file was extended by $as_me, which was
15491 generated by GNU Autoconf 2.64.  Invocation command line was
15492
15493   CONFIG_FILES    = $CONFIG_FILES
15494   CONFIG_HEADERS  = $CONFIG_HEADERS
15495   CONFIG_LINKS    = $CONFIG_LINKS
15496   CONFIG_COMMANDS = $CONFIG_COMMANDS
15497   $ $0 $@
15498
15499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15500 "
15501
15502 _ACEOF
15503
15504 case $ac_config_files in *"
15505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15506 esac
15507
15508
15509
15510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15511 # Files that config.status was made for.
15512 config_files="$ac_config_files"
15513
15514 _ACEOF
15515
15516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517 ac_cs_usage="\
15518 \`$as_me' instantiates files and other configuration actions
15519 from templates according to the current configuration.  Unless the files
15520 and actions are specified as TAGs, all are instantiated by default.
15521
15522 Usage: $0 [OPTION]... [TAG]...
15523
15524   -h, --help       print this help, then exit
15525   -V, --version    print version number and configuration settings, then exit
15526   -q, --quiet, --silent
15527                    do not print progress messages
15528   -d, --debug      don't remove temporary files
15529       --recheck    update $as_me by reconfiguring in the same conditions
15530       --file=FILE[:TEMPLATE]
15531                    instantiate the configuration file FILE
15532
15533 Configuration files:
15534 $config_files
15535
15536 Report bugs to the package provider."
15537
15538 _ACEOF
15539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15540 ac_cs_version="\\
15541 config.status
15542 configured by $0, generated by GNU Autoconf 2.64,
15543   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15544
15545 Copyright (C) 2009 Free Software Foundation, Inc.
15546 This config.status script is free software; the Free Software Foundation
15547 gives unlimited permission to copy, distribute and modify it."
15548
15549 ac_pwd='$ac_pwd'
15550 srcdir='$srcdir'
15551 INSTALL='$INSTALL'
15552 AWK='$AWK'
15553 test -n "\$AWK" || AWK=awk
15554 _ACEOF
15555
15556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15557 # The default lists apply if the user does not specify any file.
15558 ac_need_defaults=:
15559 while test $# != 0
15560 do
15561   case $1 in
15562   --*=*)
15563     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15564     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15565     ac_shift=:
15566     ;;
15567   *)
15568     ac_option=$1
15569     ac_optarg=$2
15570     ac_shift=shift
15571     ;;
15572   esac
15573
15574   case $ac_option in
15575   # Handling of the options.
15576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15577     ac_cs_recheck=: ;;
15578   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15579     $as_echo "$ac_cs_version"; exit ;;
15580   --debug | --debu | --deb | --de | --d | -d )
15581     debug=: ;;
15582   --file | --fil | --fi | --f )
15583     $ac_shift
15584     case $ac_optarg in
15585     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15586     esac
15587     as_fn_append CONFIG_FILES " '$ac_optarg'"
15588     ac_need_defaults=false;;
15589   --he | --h |  --help | --hel | -h )
15590     $as_echo "$ac_cs_usage"; exit ;;
15591   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15592   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15593     ac_cs_silent=: ;;
15594
15595   # This is an error.
15596   -*) as_fn_error "unrecognized option: \`$1'
15597 Try \`$0 --help' for more information." ;;
15598
15599   *) as_fn_append ac_config_targets " $1"
15600      ac_need_defaults=false ;;
15601
15602   esac
15603   shift
15604 done
15605
15606 ac_configure_extra_args=
15607
15608 if $ac_cs_silent; then
15609   exec 6>/dev/null
15610   ac_configure_extra_args="$ac_configure_extra_args --silent"
15611 fi
15612
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 if \$ac_cs_recheck; then
15616   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15617   shift
15618   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15619   CONFIG_SHELL='$SHELL'
15620   export CONFIG_SHELL
15621   exec "\$@"
15622 fi
15623
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15626 exec 5>>config.log
15627 {
15628   echo
15629   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15630 ## Running $as_me. ##
15631 _ASBOX
15632   $as_echo "$ac_log"
15633 } >&5
15634
15635 _ACEOF
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 #
15638 # INIT-COMMANDS
15639 #
15640 extrasub_build="$extrasub_build"
15641    extrasub_host="$extrasub_host"
15642    extrasub_target="$extrasub_target"
15643
15644 _ACEOF
15645
15646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647
15648 # Handling of arguments.
15649 for ac_config_target in $ac_config_targets
15650 do
15651   case $ac_config_target in
15652     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15653
15654   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15655   esac
15656 done
15657
15658
15659 # If the user did not use the arguments to specify the items to instantiate,
15660 # then the envvar interface is used.  Set only those that are not.
15661 # We use the long form for the default assignment because of an extremely
15662 # bizarre bug on SunOS 4.1.3.
15663 if $ac_need_defaults; then
15664   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15665 fi
15666
15667 # Have a temporary directory for convenience.  Make it in the build tree
15668 # simply because there is no reason against having it here, and in addition,
15669 # creating and moving files from /tmp can sometimes cause problems.
15670 # Hook for its removal unless debugging.
15671 # Note that there is a small window in which the directory will not be cleaned:
15672 # after its creation but before its name has been assigned to `$tmp'.
15673 $debug ||
15674 {
15675   tmp=
15676   trap 'exit_status=$?
15677   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15678 ' 0
15679   trap 'as_fn_exit 1' 1 2 13 15
15680 }
15681 # Create a (secure) tmp directory for tmp files.
15682
15683 {
15684   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15685   test -n "$tmp" && test -d "$tmp"
15686 }  ||
15687 {
15688   tmp=./conf$$-$RANDOM
15689   (umask 077 && mkdir "$tmp")
15690 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15691
15692 # Set up the scripts for CONFIG_FILES section.
15693 # No need to generate them if there are no CONFIG_FILES.
15694 # This happens for instance with `./config.status config.h'.
15695 if test -n "$CONFIG_FILES"; then
15696
15697 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15698   ac_cs_awk_getline=:
15699   ac_cs_awk_pipe_init=
15700   ac_cs_awk_read_file='
15701       while ((getline aline < (F[key])) > 0)
15702         print(aline)
15703       close(F[key])'
15704   ac_cs_awk_pipe_fini=
15705 else
15706   ac_cs_awk_getline=false
15707   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15708   ac_cs_awk_read_file='
15709       print "|#_!!_#|"
15710       print "cat " F[key] " &&"
15711       '$ac_cs_awk_pipe_init
15712   # The final `:' finishes the AND list.
15713   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15714 fi
15715 ac_cr=`echo X | tr X '\015'`
15716 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15717 # But we know of no other shell where ac_cr would be empty at this
15718 # point, so we can use a bashism as a fallback.
15719 if test "x$ac_cr" = x; then
15720   eval ac_cr=\$\'\\r\'
15721 fi
15722 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15723 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15724   ac_cs_awk_cr='\r'
15725 else
15726   ac_cs_awk_cr=$ac_cr
15727 fi
15728
15729 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15730 _ACEOF
15731
15732 # Create commands to substitute file output variables.
15733 {
15734   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15735   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15736   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15737   echo "_ACAWK" &&
15738   echo "_ACEOF"
15739 } >conf$$files.sh &&
15740 . ./conf$$files.sh ||
15741   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15742 rm -f conf$$files.sh
15743
15744 {
15745   echo "cat >conf$$subs.awk <<_ACEOF" &&
15746   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15747   echo "_ACEOF"
15748 } >conf$$subs.sh ||
15749   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15751 ac_delim='%!_!# '
15752 for ac_last_try in false false false false false :; do
15753   . ./conf$$subs.sh ||
15754     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15755
15756   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15757   if test $ac_delim_n = $ac_delim_num; then
15758     break
15759   elif $ac_last_try; then
15760     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15761   else
15762     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15763   fi
15764 done
15765 rm -f conf$$subs.sh
15766
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15769 _ACEOF
15770 sed -n '
15771 h
15772 s/^/S["/; s/!.*/"]=/
15773 p
15774 g
15775 s/^[^!]*!//
15776 :repl
15777 t repl
15778 s/'"$ac_delim"'$//
15779 t delim
15780 :nl
15781 h
15782 s/\(.\{148\}\).*/\1/
15783 t more1
15784 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15785 p
15786 n
15787 b repl
15788 :more1
15789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15790 p
15791 g
15792 s/.\{148\}//
15793 t nl
15794 :delim
15795 h
15796 s/\(.\{148\}\).*/\1/
15797 t more2
15798 s/["\\]/\\&/g; s/^/"/; s/$/"/
15799 p
15800 b
15801 :more2
15802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15803 p
15804 g
15805 s/.\{148\}//
15806 t delim
15807 ' <conf$$subs.awk | sed '
15808 /^[^""]/{
15809   N
15810   s/\n//
15811 }
15812 ' >>$CONFIG_STATUS || ac_write_fail=1
15813 rm -f conf$$subs.awk
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15815 _ACAWK
15816 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15817   for (key in S) S_is_set[key] = 1
15818   FS = "\a"
15819   \$ac_cs_awk_pipe_init
15820 }
15821 {
15822   line = $ 0
15823   nfields = split(line, field, "@")
15824   substed = 0
15825   len = length(field[1])
15826   for (i = 2; i < nfields; i++) {
15827     key = field[i]
15828     keylen = length(key)
15829     if (S_is_set[key]) {
15830       value = S[key]
15831       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15832       len += length(value) + length(field[++i])
15833       substed = 1
15834     } else
15835       len += 1 + keylen
15836   }
15837   if (nfields == 3 && !substed) {
15838     key = field[2]
15839     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15840       \$ac_cs_awk_read_file
15841       next
15842     }
15843   }
15844   print line
15845 }
15846 \$ac_cs_awk_pipe_fini
15847 _ACAWK
15848 _ACEOF
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15851   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15852 else
15853   cat
15854 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15855   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15856 _ACEOF
15857
15858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15860 # trailing colons and then remove the whole line if VPATH becomes empty
15861 # (actually we leave an empty line to preserve line numbers).
15862 if test "x$srcdir" = x.; then
15863   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15864 s/:*\$(srcdir):*/:/
15865 s/:*\${srcdir}:*/:/
15866 s/:*@srcdir@:*/:/
15867 s/^\([^=]*=[     ]*\):*/\1/
15868 s/:*$//
15869 s/^[^=]*=[       ]*$//
15870 }'
15871 fi
15872
15873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15874 fi # test -n "$CONFIG_FILES"
15875
15876
15877 eval set X "  :F $CONFIG_FILES      "
15878 shift
15879 for ac_tag
15880 do
15881   case $ac_tag in
15882   :[FHLC]) ac_mode=$ac_tag; continue;;
15883   esac
15884   case $ac_mode$ac_tag in
15885   :[FHL]*:*);;
15886   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15887   :[FH]-) ac_tag=-:-;;
15888   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15889   esac
15890   ac_save_IFS=$IFS
15891   IFS=:
15892   set x $ac_tag
15893   IFS=$ac_save_IFS
15894   shift
15895   ac_file=$1
15896   shift
15897
15898   case $ac_mode in
15899   :L) ac_source=$1;;
15900   :[FH])
15901     ac_file_inputs=
15902     for ac_f
15903     do
15904       case $ac_f in
15905       -) ac_f="$tmp/stdin";;
15906       *) # Look for the file first in the build tree, then in the source tree
15907          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15908          # because $ac_f cannot contain `:'.
15909          test -f "$ac_f" ||
15910            case $ac_f in
15911            [\\/$]*) false;;
15912            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15913            esac ||
15914            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15915       esac
15916       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15917       as_fn_append ac_file_inputs " '$ac_f'"
15918     done
15919
15920     # Let's still pretend it is `configure' which instantiates (i.e., don't
15921     # use $as_me), people would be surprised to read:
15922     #    /* config.h.  Generated by config.status.  */
15923     configure_input='Generated from '`
15924           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15925         `' by configure.'
15926     if test x"$ac_file" != x-; then
15927       configure_input="$ac_file.  $configure_input"
15928       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15929 $as_echo "$as_me: creating $ac_file" >&6;}
15930     fi
15931     # Neutralize special characters interpreted by sed in replacement strings.
15932     case $configure_input in #(
15933     *\&* | *\|* | *\\* )
15934        ac_sed_conf_input=`$as_echo "$configure_input" |
15935        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15936     *) ac_sed_conf_input=$configure_input;;
15937     esac
15938
15939     case $ac_tag in
15940     *:-:* | *:-) cat >"$tmp/stdin" \
15941       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15942     esac
15943     ;;
15944   esac
15945
15946   ac_dir=`$as_dirname -- "$ac_file" ||
15947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15948          X"$ac_file" : 'X\(//\)[^/]' \| \
15949          X"$ac_file" : 'X\(//\)$' \| \
15950          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15951 $as_echo X"$ac_file" |
15952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953             s//\1/
15954             q
15955           }
15956           /^X\(\/\/\)[^/].*/{
15957             s//\1/
15958             q
15959           }
15960           /^X\(\/\/\)$/{
15961             s//\1/
15962             q
15963           }
15964           /^X\(\/\).*/{
15965             s//\1/
15966             q
15967           }
15968           s/.*/./; q'`
15969   as_dir="$ac_dir"; as_fn_mkdir_p
15970   ac_builddir=.
15971
15972 case "$ac_dir" in
15973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15974 *)
15975   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15976   # A ".." for each directory in $ac_dir_suffix.
15977   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15978   case $ac_top_builddir_sub in
15979   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15980   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15981   esac ;;
15982 esac
15983 ac_abs_top_builddir=$ac_pwd
15984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15985 # for backward compatibility:
15986 ac_top_builddir=$ac_top_build_prefix
15987
15988 case $srcdir in
15989   .)  # We are building in place.
15990     ac_srcdir=.
15991     ac_top_srcdir=$ac_top_builddir_sub
15992     ac_abs_top_srcdir=$ac_pwd ;;
15993   [\\/]* | ?:[\\/]* )  # Absolute name.
15994     ac_srcdir=$srcdir$ac_dir_suffix;
15995     ac_top_srcdir=$srcdir
15996     ac_abs_top_srcdir=$srcdir ;;
15997   *) # Relative name.
15998     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15999     ac_top_srcdir=$ac_top_build_prefix$srcdir
16000     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16001 esac
16002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16003
16004
16005   case $ac_mode in
16006   :F)
16007   #
16008   # CONFIG_FILE
16009   #
16010
16011   case $INSTALL in
16012   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16013   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16014   esac
16015 _ACEOF
16016
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018 # If the template does not know about datarootdir, expand it.
16019 # FIXME: This hack should be removed a few years after 2.60.
16020 ac_datarootdir_hack=; ac_datarootdir_seen=
16021 ac_sed_dataroot='
16022 /datarootdir/ {
16023   p
16024   q
16025 }
16026 /@datadir@/p
16027 /@docdir@/p
16028 /@infodir@/p
16029 /@localedir@/p
16030 /@mandir@/p'
16031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16032 *datarootdir*) ac_datarootdir_seen=yes;;
16033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16034   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16035 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16036 _ACEOF
16037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038   ac_datarootdir_hack='
16039   s&@datadir@&$datadir&g
16040   s&@docdir@&$docdir&g
16041   s&@infodir@&$infodir&g
16042   s&@localedir@&$localedir&g
16043   s&@mandir@&$mandir&g
16044   s&\\\${datarootdir}&$datarootdir&g' ;;
16045 esac
16046 _ACEOF
16047
16048 # Neutralize VPATH when `$srcdir' = `.'.
16049 # Shell code in configure.ac might set extrasub.
16050 # FIXME: do we really want to maintain this feature?
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052 ac_sed_extra="$ac_vpsub
16053 $extrasub
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 :t
16057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16058 s|@configure_input@|$ac_sed_conf_input|;t t
16059 s&@top_builddir@&$ac_top_builddir_sub&;t t
16060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16061 s&@srcdir@&$ac_srcdir&;t t
16062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16063 s&@top_srcdir@&$ac_top_srcdir&;t t
16064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16065 s&@builddir@&$ac_builddir&;t t
16066 s&@abs_builddir@&$ac_abs_builddir&;t t
16067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16068 s&@INSTALL@&$ac_INSTALL&;t t
16069 $ac_datarootdir_hack
16070 "
16071 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16072 if $ac_cs_awk_getline; then
16073   $AWK -f "$tmp/subs.awk"
16074 else
16075   $AWK -f "$tmp/subs.awk" | $SHELL
16076 fi >$tmp/out \
16077   || as_fn_error "could not create $ac_file" "$LINENO" 5
16078
16079 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16080   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16081   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16083 which seems to be undefined.  Please make sure it is defined." >&5
16084 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16085 which seems to be undefined.  Please make sure it is defined." >&2;}
16086
16087   rm -f "$tmp/stdin"
16088   case $ac_file in
16089   -) cat "$tmp/out" && rm -f "$tmp/out";;
16090   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16091   esac \
16092   || as_fn_error "could not create $ac_file" "$LINENO" 5
16093  ;;
16094
16095
16096
16097   esac
16098
16099
16100   case $ac_file$ac_mode in
16101     "Makefile":F) sed "$extrasub_build" Makefile |
16102    sed "$extrasub_host" |
16103    sed "$extrasub_target" > mf$$
16104    mv -f mf$$ Makefile ;;
16105
16106   esac
16107 done # for ac_tag
16108
16109
16110 as_fn_exit 0
16111 _ACEOF
16112 ac_clean_files=$ac_clean_files_save
16113
16114 test $ac_write_fail = 0 ||
16115   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16116
16117
16118 # configure is writing to config.log, and then calls config.status.
16119 # config.status does its own redirection, appending to config.log.
16120 # Unfortunately, on DOS this fails, as config.log is still kept open
16121 # by configure, so config.status won't be able to write to it; its
16122 # output is simply discarded.  So we exec the FD to /dev/null,
16123 # effectively closing config.log, so it can be properly (re)opened and
16124 # appended to by config.status.  When coming back to configure, we
16125 # need to make the FD available again.
16126 if test "$no_create" != yes; then
16127   ac_cs_success=:
16128   ac_config_status_args=
16129   test "$silent" = yes &&
16130     ac_config_status_args="$ac_config_status_args --quiet"
16131   exec 5>/dev/null
16132   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16133   exec 5>>config.log
16134   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16135   # would make configure fail if this is the last instruction.
16136   $ac_cs_success || as_fn_exit $?
16137 fi
16138 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16139   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16140 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16141 fi
16142