OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.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 POSTSTAGE1_CONFIGURE_FLAGS
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 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 pplinc
650 ppllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_libs
654 stage1_ldflags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 AWK
679 SED
680 LN_S
681 LN
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_static_libjava
754 enable_bootstrap
755 enable_build_with_cxx
756 enable_build_poststage1_with_cxx
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_ldflags
770 with_stage1_libs
771 with_boot_libs
772 with_boot_ldflags
773 with_ppl
774 with_ppl_include
775 with_ppl_lib
776 enable_ppl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_backend
781 enable_cloog_version_check
782 enable_lto
783 enable_stage1_languages
784 enable_objc_gc
785 with_build_sysroot
786 with_debug_prefix_map
787 with_build_config
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
793 '
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 build_configargs
806 host_configargs
807 target_configargs
808 AR
809 AS
810 DLLTOOL
811 LD
812 LIPO
813 NM
814 RANLIB
815 STRIP
816 WINDRES
817 WINDMC
818 OBJCOPY
819 OBJDUMP
820 READELF
821 CC_FOR_TARGET
822 CXX_FOR_TARGET
823 GCC_FOR_TARGET
824 GCJ_FOR_TARGET
825 GFORTRAN_FOR_TARGET
826 GOC_FOR_TARGET
827 AR_FOR_TARGET
828 AS_FOR_TARGET
829 DLLTOOL_FOR_TARGET
830 LD_FOR_TARGET
831 LIPO_FOR_TARGET
832 NM_FOR_TARGET
833 OBJDUMP_FOR_TARGET
834 RANLIB_FOR_TARGET
835 READELF_FOR_TARGET
836 STRIP_FOR_TARGET
837 WINDRES_FOR_TARGET
838 WINDMC_FOR_TARGET'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893   # If the previous option needs an argument, assign it.
894   if test -n "$ac_prev"; then
895     eval $ac_prev=\$ac_option
896     ac_prev=
897     continue
898   fi
899
900   case $ac_option in
901   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294     If a cross compiler is detected then cross compile mode will be used." >&2
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   as_fn_error "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316   ac_srcdir_defaulted=yes
1317   # Try the directory containing this script, then the parent directory.
1318   ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320          X"$as_myself" : 'X\(//\)[^/]' \| \
1321          X"$as_myself" : 'X\(//\)$' \| \
1322          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)[^/].*/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\).*/{
1337             s//\1/
1338             q
1339           }
1340           s/.*/./; q'`
1341   srcdir=$ac_confdir
1342   if test ! -r "$srcdir/$ac_unique_file"; then
1343     srcdir=..
1344   fi
1345 else
1346   ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 case $srcdir in
1367   *" "*)
1368     as_fn_error "path to source, $srcdir, contains spaces"
1369     ;;
1370 esac
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1372
1373 for ac_var in $ac_precious_vars; do
1374   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_env_${ac_var}_value=\$${ac_var}
1376   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384   # Omit some internal or obsolete options to make the list less imposing.
1385   # This message is too long to be a string in the A/UX 3.1 sh.
1386   cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397   -h, --help              display this help and exit
1398       --help=short        display options specific to this package
1399       --help=recursive    display the short help of all the included packages
1400   -V, --version           display version information and exit
1401   -q, --quiet, --silent   do not print \`checking...' messages
1402       --cache-file=FILE   cache test results in FILE [disabled]
1403   -C, --config-cache      alias for \`--cache-file=config.cache'
1404   -n, --no-create         do not create output files
1405       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408   --prefix=PREFIX         install architecture-independent files in PREFIX
1409                           [$ac_default_prefix]
1410   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                           [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421   --bindir=DIR            user executables [EPREFIX/bin]
1422   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423   --libexecdir=DIR        program executables [EPREFIX/libexec]
1424   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427   --libdir=DIR            object code libraries [EPREFIX/lib]
1428   --includedir=DIR        C header files [PREFIX/include]
1429   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1430   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1431   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1432   --infodir=DIR           info documentation [DATAROOTDIR/info]
1433   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1434   --mandir=DIR            man documentation [DATAROOTDIR/man]
1435   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1436   --htmldir=DIR           html documentation [DOCDIR]
1437   --dvidir=DIR            dvi documentation [DOCDIR]
1438   --pdfdir=DIR            pdf documentation [DOCDIR]
1439   --psdir=DIR             ps documentation [DOCDIR]
1440 _ACEOF
1441
1442   cat <<\_ACEOF
1443
1444 Program names:
1445   --program-prefix=PREFIX            prepend PREFIX to installed program names
1446   --program-suffix=SUFFIX            append SUFFIX to installed program names
1447   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1448
1449 System types:
1450   --build=BUILD     configure for building on BUILD [guessed]
1451   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452   --target=TARGET   configure for building compilers for TARGET [HOST]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-option-checking  ignore unrecognized --enable/--with options
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --enable-gold[=ARG]     build gold [ARG={default,yes,no}]
1465   --enable-ld[=ARG]       build ld [ARG={default,yes,no}]
1466   --disable-libquadmath   do not build libquadmath directory
1467   --disable-libquadmath-support
1468                           disable libquadmath support for Fortran
1469   --enable-libada         build libada directory
1470   --enable-libssp         build libssp directory
1471   --enable-static-libjava[=ARG]
1472                           build static libjava [default=no]
1473   --enable-bootstrap      enable bootstrapping [yes if native build]
1474   --enable-build-with-cxx build with C++ compiler instead of C compiler
1475   --enable-build-poststage1-with-cxx
1476                           build stages 2 and 3 with C++, not C
1477   --disable-ppl-version-check
1478                           disable check for PPL version
1479   --enable-cloog-backend[=BACKEND]
1480                           set the CLooG BACKEND used to either isl, ppl or
1481                           ppl-legacy (default)
1482   --disable-cloog-version-check
1483                           disable check for CLooG version
1484   --enable-lto            enable link time optimization support
1485   --enable-stage1-languages[=all]
1486                           choose additional languages to build during stage1.
1487                           Mostly useful for compiler development
1488   --enable-objc-gc        enable use of Boehm's garbage collector with the GNU
1489                           Objective-C runtime
1490   --enable-serial-[{host,target,build}-]configure
1491                           force sequential configuration of sub-packages for
1492                           the host, target or build machine, or all
1493                           sub-packages
1494   --enable-maintainer-mode
1495                           enable make rules and dependencies not useful (and
1496                           sometimes confusing) to the casual installer
1497   --enable-stage1-checking[=all]
1498                           choose additional checking for stage1 of the
1499                           compiler
1500   --enable-werror         enable -Werror in bootstrap stage2 and later
1501
1502 Optional Packages:
1503   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1506   --with-mpc=PATH         specify prefix directory for installed MPC package.
1507                           Equivalent to --with-mpc-include=PATH/include plus
1508                           --with-mpc-lib=PATH/lib
1509   --with-mpc-include=PATH specify directory for installed MPC include files
1510   --with-mpc-lib=PATH     specify directory for the installed MPC library
1511   --with-mpfr-dir=PATH    this option has been REMOVED
1512   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1513                           Equivalent to --with-mpfr-include=PATH/include plus
1514                           --with-mpfr-lib=PATH/lib
1515   --with-mpfr-include=PATH
1516                           specify directory for installed MPFR include files
1517   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1518   --with-gmp-dir=PATH     this option has been REMOVED
1519   --with-gmp=PATH         specify prefix directory for the installed GMP
1520                           package. Equivalent to
1521                           --with-gmp-include=PATH/include plus
1522                           --with-gmp-lib=PATH/lib
1523   --with-gmp-include=PATH specify directory for installed GMP include files
1524   --with-gmp-lib=PATH     specify directory for the installed GMP library
1525   --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1526                           linking with PPL
1527   --with-stage1-ldflags=FLAGS
1528                           linker flags for stage1
1529   --with-stage1-libs=LIBS libraries for stage1
1530   --with-boot-libs=LIBS   libraries for stage2 and later
1531   --with-boot-ldflags=FLAGS
1532                           linker flags for stage2 and later
1533   --with-ppl=PATH         specify prefix directory for the installed PPL
1534                           package. Equivalent to
1535                           --with-ppl-include=PATH/include plus
1536                           --with-ppl-lib=PATH/lib
1537   --with-ppl-include=PATH specify directory for installed PPL include files
1538   --with-ppl-lib=PATH     specify directory for the installed PPL library
1539   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL
1540                           package. Equivalent to
1541                           --with-cloog-include=PATH/include plus
1542                           --with-cloog-lib=PATH/lib
1543   --with-cloog-include=PATH
1544                           Specify directory for installed CLooG include files
1545   --with-cloog-lib=PATH   Specify the directory for the installed CLooG
1546                           library
1547   --with-build-sysroot=SYSROOT
1548                           use sysroot as the system root during the build
1549   --with-debug-prefix-map='A=B C=D ...'
1550                           map A to B, C to D ... in debug information
1551   --with-build-config='NAME NAME2...'
1552                           use config/NAME.mk build configuration
1553   --with-build-time-tools=PATH
1554                           use given path to find target tools during the build
1555
1556 Some influential environment variables:
1557   CC          C compiler command
1558   CFLAGS      C compiler flags
1559   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1560               nonstandard directory <lib dir>
1561   LIBS        libraries to pass to the linker, e.g. -l<library>
1562   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563               you have headers in a nonstandard directory <include dir>
1564   CXX         C++ compiler command
1565   CXXFLAGS    C++ compiler flags
1566   build_configargs
1567               additional configure arguments for build directories
1568   host_configargs
1569               additional configure arguments for host directories
1570   target_configargs
1571               additional configure arguments for target directories
1572   AR          AR for the host
1573   AS          AS for the host
1574   DLLTOOL     DLLTOOL for the host
1575   LD          LD for the host
1576   LIPO        LIPO for the host
1577   NM          NM for the host
1578   RANLIB      RANLIB for the host
1579   STRIP       STRIP for the host
1580   WINDRES     WINDRES for the host
1581   WINDMC      WINDMC for the host
1582   OBJCOPY     OBJCOPY for the host
1583   OBJDUMP     OBJDUMP for the host
1584   READELF     READELF for the host
1585   CC_FOR_TARGET
1586               CC for the target
1587   CXX_FOR_TARGET
1588               CXX for the target
1589   GCC_FOR_TARGET
1590               GCC for the target
1591   GCJ_FOR_TARGET
1592               GCJ for the target
1593   GFORTRAN_FOR_TARGET
1594               GFORTRAN for the target
1595   GOC_FOR_TARGET
1596               GOC for the target
1597   AR_FOR_TARGET
1598               AR for the target
1599   AS_FOR_TARGET
1600               AS for the target
1601   DLLTOOL_FOR_TARGET
1602               DLLTOOL for the target
1603   LD_FOR_TARGET
1604               LD for the target
1605   LIPO_FOR_TARGET
1606               LIPO for the target
1607   NM_FOR_TARGET
1608               NM for the target
1609   OBJDUMP_FOR_TARGET
1610               OBJDUMP for the target
1611   RANLIB_FOR_TARGET
1612               RANLIB for the target
1613   READELF_FOR_TARGET
1614               READELF for the target
1615   STRIP_FOR_TARGET
1616               STRIP for the target
1617   WINDRES_FOR_TARGET
1618               WINDRES for the target
1619   WINDMC_FOR_TARGET
1620               WINDMC for the target
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 Report bugs to the package provider.
1626 _ACEOF
1627 ac_status=$?
1628 fi
1629
1630 if test "$ac_init_help" = "recursive"; then
1631   # If there are subdirs, report their specific --help.
1632   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633     test -d "$ac_dir" ||
1634       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635       continue
1636     ac_builddir=.
1637
1638 case "$ac_dir" in
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *)
1641   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642   # A ".." for each directory in $ac_dir_suffix.
1643   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644   case $ac_top_builddir_sub in
1645   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647   esac ;;
1648 esac
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1653
1654 case $srcdir in
1655   .)  # We are building in place.
1656     ac_srcdir=.
1657     ac_top_srcdir=$ac_top_builddir_sub
1658     ac_abs_top_srcdir=$ac_pwd ;;
1659   [\\/]* | ?:[\\/]* )  # Absolute name.
1660     ac_srcdir=$srcdir$ac_dir_suffix;
1661     ac_top_srcdir=$srcdir
1662     ac_abs_top_srcdir=$srcdir ;;
1663   *) # Relative name.
1664     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665     ac_top_srcdir=$ac_top_build_prefix$srcdir
1666     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667 esac
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670     cd "$ac_dir" || { ac_status=$?; continue; }
1671     # Check for guested configure.
1672     if test -f "$ac_srcdir/configure.gnu"; then
1673       echo &&
1674       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675     elif test -f "$ac_srcdir/configure"; then
1676       echo &&
1677       $SHELL "$ac_srcdir/configure" --help=recursive
1678     else
1679       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680     fi || ac_status=$?
1681     cd "$ac_pwd" || { ac_status=$?; break; }
1682   done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687   cat <<\_ACEOF
1688 configure
1689 generated by GNU Autoconf 2.64
1690
1691 Copyright (C) 2009 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695   exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   rm -f conftest.$ac_objext
1709   if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712   *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716   (eval "$ac_compile") 2>conftest.err
1717   ac_status=$?
1718   if test -s conftest.err; then
1719     grep -v '^ *+' conftest.err >conftest.er1
1720     cat conftest.er1 >&5
1721     mv -f conftest.er1 conftest.err
1722   fi
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } && {
1725          test -z "$ac_c_werror_flag" ||
1726          test ! -s conftest.err
1727        } && test -s conftest.$ac_objext; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733         ac_retval=1
1734 fi
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736   return $ac_retval
1737
1738 } # ac_fn_c_try_compile
1739
1740 # ac_fn_cxx_try_compile LINENO
1741 # ----------------------------
1742 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_cxx_try_compile ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   rm -f conftest.$ac_objext
1747   if { { ac_try="$ac_compile"
1748 case "(($ac_try" in
1749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750   *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754   (eval "$ac_compile") 2>conftest.err
1755   ac_status=$?
1756   if test -s conftest.err; then
1757     grep -v '^ *+' conftest.err >conftest.er1
1758     cat conftest.er1 >&5
1759     mv -f conftest.er1 conftest.err
1760   fi
1761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762   test $ac_status = 0; } && {
1763          test -z "$ac_cxx_werror_flag" ||
1764          test ! -s conftest.err
1765        } && test -s conftest.$ac_objext; then :
1766   ac_retval=0
1767 else
1768   $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771         ac_retval=1
1772 fi
1773   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774   return $ac_retval
1775
1776 } # ac_fn_cxx_try_compile
1777
1778 # ac_fn_c_try_link LINENO
1779 # -----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_link ()
1782 {
1783   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784   rm -f conftest.$ac_objext conftest$ac_exeext
1785   if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788   *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792   (eval "$ac_link") 2>conftest.err
1793   ac_status=$?
1794   if test -s conftest.err; then
1795     grep -v '^ *+' conftest.err >conftest.er1
1796     cat conftest.er1 >&5
1797     mv -f conftest.er1 conftest.err
1798   fi
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; } && {
1801          test -z "$ac_c_werror_flag" ||
1802          test ! -s conftest.err
1803        } && test -s conftest$ac_exeext && {
1804          test "$cross_compiling" = yes ||
1805          $as_test_x conftest$ac_exeext
1806        }; then :
1807   ac_retval=0
1808 else
1809   $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812         ac_retval=1
1813 fi
1814   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816   # interfere with the next link command; also delete a directory that is
1817   # left behind by Apple's compiler.  We do this before executing the actions.
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820   return $ac_retval
1821
1822 } # ac_fn_c_try_link
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by $as_me, which was
1828 generated by GNU Autoconf 2.64.  Invocation command line was
1829
1830   $ $0 $@
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1848
1849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864     $as_echo "PATH: $as_dir"
1865   done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891   for ac_arg
1892   do
1893     case $ac_arg in
1894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896     | -silent | --silent | --silen | --sile | --sil)
1897       continue ;;
1898     *\'*)
1899       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     esac
1901     case $ac_pass in
1902     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903     2)
1904       as_fn_append ac_configure_args1 " '$ac_arg'"
1905       if test $ac_must_keep_next = true; then
1906         ac_must_keep_next=false # Got value, back to normal.
1907       else
1908         case $ac_arg in
1909           *=* | --config-cache | -C | -disable-* | --disable-* \
1910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912           | -with-* | --with-* | -without-* | --without-* | --x)
1913             case "$ac_configure_args0 " in
1914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915             esac
1916             ;;
1917           -* ) ac_must_keep_next=true ;;
1918         esac
1919       fi
1920       as_fn_append ac_configure_args " '$ac_arg'"
1921       ;;
1922     esac
1923   done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log.  We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934   # Save into config.log some information that might help in debugging.
1935   {
1936     echo
1937
1938     cat <<\_ASBOX
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1942 _ASBOX
1943     echo
1944     # The following way of writing the cache mishandles newlines in values,
1945 (
1946   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947     eval ac_val=\$$ac_var
1948     case $ac_val in #(
1949     *${as_nl}*)
1950       case $ac_var in #(
1951       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953       esac
1954       case $ac_var in #(
1955       _ | IFS | as_nl) ;; #(
1956       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957       *) { eval $ac_var=; unset $ac_var;} ;;
1958       esac ;;
1959     esac
1960   done
1961   (set) 2>&1 |
1962     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963     *${as_nl}ac_space=\ *)
1964       sed -n \
1965         "s/'\''/'\''\\\\'\'''\''/g;
1966           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967       ;; #(
1968     *)
1969       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970       ;;
1971     esac |
1972     sort
1973 )
1974     echo
1975
1976     cat <<\_ASBOX
1977 ## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##
1980 _ASBOX
1981     echo
1982     for ac_var in $ac_subst_vars
1983     do
1984       eval ac_val=\$$ac_var
1985       case $ac_val in
1986       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987       esac
1988       $as_echo "$ac_var='\''$ac_val'\''"
1989     done | sort
1990     echo
1991
1992     if test -n "$ac_subst_files"; then
1993       cat <<\_ASBOX
1994 ## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##
1997 _ASBOX
1998       echo
1999       for ac_var in $ac_subst_files
2000       do
2001         eval ac_val=\$$ac_var
2002         case $ac_val in
2003         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004         esac
2005         $as_echo "$ac_var='\''$ac_val'\''"
2006       done | sort
2007       echo
2008     fi
2009
2010     if test -s confdefs.h; then
2011       cat <<\_ASBOX
2012 ## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##
2015 _ASBOX
2016       echo
2017       cat confdefs.h
2018       echo
2019     fi
2020     test "$ac_signal" != 0 &&
2021       $as_echo "$as_me: caught signal $ac_signal"
2022     $as_echo "$as_me: exit $exit_status"
2023   } >&5
2024   rm -f core *.core core.conftest.* &&
2025     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026     exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070   ac_site_file1=$CONFIG_SITE
2071 elif test "x$prefix" != xNONE; then
2072   ac_site_file1=$prefix/share/config.site
2073   ac_site_file2=$prefix/etc/config.site
2074 else
2075   ac_site_file1=$ac_default_prefix/share/config.site
2076   ac_site_file2=$ac_default_prefix/etc/config.site
2077 fi
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 do
2080   test "x$ac_site_file" = xNONE && continue
2081   if test -r "$ac_site_file"; then
2082     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084     sed 's/^/| /' "$ac_site_file" >&5
2085     . "$ac_site_file"
2086   fi
2087 done
2088
2089 if test -r "$cache_file"; then
2090   # Some versions of bash will fail to source /dev/null (special
2091   # files actually), so we avoid doing that.
2092   if test -f "$cache_file"; then
2093     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 $as_echo "$as_me: loading cache $cache_file" >&6;}
2095     case $cache_file in
2096       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097       *)                      . "./$cache_file";;
2098     esac
2099   fi
2100 else
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 $as_echo "$as_me: creating cache $cache_file" >&6;}
2103   >$cache_file
2104 fi
2105
2106 # Check that the precious variables saved in the cache have kept the same
2107 # value.
2108 ac_cache_corrupted=false
2109 for ac_var in $ac_precious_vars; do
2110   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111   eval ac_new_set=\$ac_env_${ac_var}_set
2112   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113   eval ac_new_val=\$ac_env_${ac_var}_value
2114   case $ac_old_set,$ac_new_set in
2115     set,)
2116       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118       ac_cache_corrupted=: ;;
2119     ,set)
2120       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122       ac_cache_corrupted=: ;;
2123     ,);;
2124     *)
2125       if test "x$ac_old_val" != "x$ac_new_val"; then
2126         # differences in whitespace do not lead to failure.
2127         ac_old_val_w=`echo x $ac_old_val`
2128         ac_new_val_w=`echo x $ac_new_val`
2129         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132           ac_cache_corrupted=:
2133         else
2134           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136           eval $ac_var=\$ac_old_val
2137         fi
2138         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2139 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2140         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2141 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2142       fi;;
2143   esac
2144   # Pass precious variables to config.status.
2145   if test "$ac_new_set" = set; then
2146     case $ac_new_val in
2147     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148     *) ac_arg=$ac_var=$ac_new_val ;;
2149     esac
2150     case " $ac_configure_args " in
2151       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153     esac
2154   fi
2155 done
2156 if $ac_cache_corrupted; then
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162 fi
2163 ## -------------------- ##
2164 ## Main body of script. ##
2165 ## -------------------- ##
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181 progname=$0
2182 # if PWD already has a value, it is probably wrong.
2183 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2184
2185 # Export original configure arguments for use by sub-configures.
2186 # Quote arguments with shell meta charatcers.
2187 TOPLEVEL_CONFIGURE_ARGUMENTS=
2188 set -- "$progname" "$@"
2189 for ac_arg
2190 do
2191   case "$ac_arg" in
2192   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2193     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2194     # if the argument is of the form -foo=baz, quote the baz part only
2195     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2196   *) ;;
2197   esac
2198   # Add the quoted argument to the list.
2199   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2200 done
2201 if test "$silent" = yes; then
2202   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2203 fi
2204 # Remove the initial space we just introduced and, as these will be
2205 # expanded by make, quote '$'.
2206 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2207
2208
2209 # Find the build, host, and target systems.
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212   for ac_t in install-sh install.sh shtool; do
2213     if test -f "$ac_dir/$ac_t"; then
2214       ac_aux_dir=$ac_dir
2215       ac_install_sh="$ac_aux_dir/$ac_t -c"
2216       break 2
2217     fi
2218   done
2219 done
2220 if test -z "$ac_aux_dir"; then
2221   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2222 fi
2223
2224 # These three variables are undocumented and unsupported,
2225 # and are intended to be withdrawn in a future Autoconf release.
2226 # They can cause serious problems if a builder's source tree is in a directory
2227 # whose full name contains unusual characters.
2228 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2229 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2230 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2231
2232
2233 # Make sure we can run config.sub.
2234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238 $as_echo_n "checking build system type... " >&6; }
2239 if test "${ac_cv_build+set}" = set; then :
2240   $as_echo_n "(cached) " >&6
2241 else
2242   ac_build_alias=$build_alias
2243 test "x$ac_build_alias" = x &&
2244   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245 test "x$ac_build_alias" = x &&
2246   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2249
2250 fi
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252 $as_echo "$ac_cv_build" >&6; }
2253 case $ac_cv_build in
2254 *-*-*) ;;
2255 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2256 esac
2257 build=$ac_cv_build
2258 ac_save_IFS=$IFS; IFS='-'
2259 set x $ac_cv_build
2260 shift
2261 build_cpu=$1
2262 build_vendor=$2
2263 shift; shift
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2266 build_os=$*
2267 IFS=$ac_save_IFS
2268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2269
2270
2271  case ${build_alias} in
2272   "") build_noncanonical=${build} ;;
2273   *) build_noncanonical=${build_alias} ;;
2274 esac
2275
2276
2277
2278  case ${host_alias} in
2279   "") host_noncanonical=${build_noncanonical} ;;
2280   *) host_noncanonical=${host_alias} ;;
2281 esac
2282
2283
2284
2285  case ${target_alias} in
2286   "") target_noncanonical=${host_noncanonical} ;;
2287   *) target_noncanonical=${target_alias} ;;
2288 esac
2289
2290
2291
2292
2293 test "$host_noncanonical" = "$target_noncanonical" &&
2294   test "$program_prefix$program_suffix$program_transform_name" = \
2295     NONENONEs,x,x, &&
2296   program_transform_name=s,y,y,
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if test "${ac_cv_host+set}" = set; then :
2301   $as_echo_n "(cached) " >&6
2302 else
2303   if test "x$host_alias" = x; then
2304   ac_cv_host=$ac_cv_build
2305 else
2306   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2308 fi
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2313 case $ac_cv_host in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if test "${ac_cv_target+set}" = set; then :
2334   $as_echo_n "(cached) " >&6
2335 else
2336   if test "x$target_alias" = x; then
2337   ac_cv_target=$ac_cv_host
2338 else
2339   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2341 fi
2342
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2347 *-*-*) ;;
2348 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2349 esac
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_target
2353 shift
2354 target_cpu=$1
2355 target_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 target_os=$*
2360 IFS=$ac_save_IFS
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2362
2363
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367   test "$program_prefix$program_suffix$program_transform_name" = \
2368     NONENONEs,x,x, &&
2369   program_prefix=${target_alias}-
2370
2371 test "$program_prefix" != NONE &&
2372   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
2381
2382
2383 # Get 'install' or 'install-sh' and its variants.
2384 # Find a good install program.  We prefer a C program (faster),
2385 # so one script is as good as another.  But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if test "${ac_cv_path_install+set}" = set; then :
2402   $as_echo_n "(cached) " >&6
2403 else
2404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409     # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411   ./ | .// | /[cC]/* | \
2412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414   /usr/ucb/* ) ;;
2415   *)
2416     # OSF1 and SCO ODT 3.0 have their own names for install.
2417     # Don't use installbsd from OSF since it installs stuff as root
2418     # by default.
2419     for ac_prog in ginstall scoinst install; do
2420       for ac_exec_ext in '' $ac_executable_extensions; do
2421         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2422           if test $ac_prog = install &&
2423             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424             # AIX install.  It has an incompatible calling convention.
2425             :
2426           elif test $ac_prog = install &&
2427             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428             # program-specific install script used by HP pwplus--don't use.
2429             :
2430           else
2431             rm -rf conftest.one conftest.two conftest.dir
2432             echo one > conftest.one
2433             echo two > conftest.two
2434             mkdir conftest.dir
2435             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436               test -s conftest.one && test -s conftest.two &&
2437               test -s conftest.dir/conftest.one &&
2438               test -s conftest.dir/conftest.two
2439             then
2440               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441               break 3
2442             fi
2443           fi
2444         fi
2445       done
2446     done
2447     ;;
2448 esac
2449
2450   done
2451 IFS=$as_save_IFS
2452
2453 rm -rf conftest.one conftest.two conftest.dir
2454
2455 fi
2456   if test "${ac_cv_path_install+set}" = set; then
2457     INSTALL=$ac_cv_path_install
2458   else
2459     # As a last resort, use the slow shell script.  Don't cache a
2460     # value for INSTALL within a source directory, because that will
2461     # break other packages using the cache if that directory is
2462     # removed, or if the value is a relative name.
2463     INSTALL=$ac_install_sh
2464   fi
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2468
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2478 $as_echo_n "checking whether ln works... " >&6; }
2479 if test "${acx_cv_prog_LN+set}" = set; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   rm -f conftestdata_t
2483 echo >conftestdata_f
2484 if ln conftestdata_f conftestdata_t 2>/dev/null
2485 then
2486   acx_cv_prog_LN=ln
2487 else
2488   acx_cv_prog_LN=no
2489 fi
2490 rm -f conftestdata_f conftestdata_t
2491
2492 fi
2493 if test $acx_cv_prog_LN = no; then
2494   LN="cp"
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2496 $as_echo "no, using $LN" >&6; }
2497 else
2498   LN="$acx_cv_prog_LN"
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 fi
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2504 $as_echo_n "checking whether ln -s works... " >&6; }
2505 LN_S=$as_ln_s
2506 if test "$LN_S" = "ln -s"; then
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 else
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2511 $as_echo "no, using $LN_S" >&6; }
2512 fi
2513
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2516 if test "${ac_cv_path_SED+set}" = set; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2520      for ac_i in 1 2 3 4 5 6 7; do
2521        ac_script="$ac_script$as_nl$ac_script"
2522      done
2523      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2524      { ac_script=; unset ac_script;}
2525      if test -z "$SED"; then
2526   ac_path_SED_found=false
2527   # Loop through the user's path and test for each of PROGNAME-LIST
2528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     for ac_prog in sed gsed; do
2534     for ac_exec_ext in '' $ac_executable_extensions; do
2535       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2536       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2537 # Check for GNU ac_path_SED and select it if it is found.
2538   # Check for GNU $ac_path_SED
2539 case `"$ac_path_SED" --version 2>&1` in
2540 *GNU*)
2541   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2542 *)
2543   ac_count=0
2544   $as_echo_n 0123456789 >"conftest.in"
2545   while :
2546   do
2547     cat "conftest.in" "conftest.in" >"conftest.tmp"
2548     mv "conftest.tmp" "conftest.in"
2549     cp "conftest.in" "conftest.nl"
2550     $as_echo '' >> "conftest.nl"
2551     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2552     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2553     as_fn_arith $ac_count + 1 && ac_count=$as_val
2554     if test $ac_count -gt ${ac_path_SED_max-0}; then
2555       # Best one so far, save it but keep looking for a better one
2556       ac_cv_path_SED="$ac_path_SED"
2557       ac_path_SED_max=$ac_count
2558     fi
2559     # 10*(2^10) chars as input seems more than enough
2560     test $ac_count -gt 10 && break
2561   done
2562   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2563 esac
2564
2565       $ac_path_SED_found && break 3
2566     done
2567   done
2568   done
2569 IFS=$as_save_IFS
2570   if test -z "$ac_cv_path_SED"; then
2571     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2572   fi
2573 else
2574   ac_cv_path_SED=$SED
2575 fi
2576
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2579 $as_echo "$ac_cv_path_SED" >&6; }
2580  SED="$ac_cv_path_SED"
2581   rm -f conftest.sed
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585   # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_AWK+set}" = set; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$AWK"; then
2593   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602     ac_cv_prog_AWK="$ac_prog"
2603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622   test -n "$AWK" && break
2623 done
2624
2625
2626 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2627
2628 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2629 # a relative path.
2630 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2631   INSTALL="${srcpwd}/install-sh -c"
2632 fi
2633
2634 # Set srcdir to "." if that's what it is.
2635 # This is important for multilib support.
2636 pwd=`${PWDCMD-pwd}`
2637 if test "${pwd}" = "${srcpwd}" ; then
2638   srcdir=.
2639 fi
2640
2641 topsrcdir=$srcpwd
2642
2643 extra_host_args=
2644
2645 ### To add a new directory to the tree, first choose whether it is a target
2646 ### or a host dependent tool.  Then put it into the appropriate list
2647 ### (library or tools, host or target), doing a dependency sort.
2648
2649 # Subdirs will be configured in the order listed in build_configdirs,
2650 # configdirs, or target_configdirs; see the serialization section below.
2651
2652 # Dependency sorting is only needed when *configuration* must be done in
2653 # a particular order.  In all cases a dependency should be specified in
2654 # the Makefile, whether or not it's implicitly specified here.
2655
2656 # Double entries in build_configdirs, configdirs, or target_configdirs may
2657 # cause circular dependencies and break everything horribly.
2658
2659 # these library is used by various programs built for the build
2660 # environment
2661 #
2662 build_libs="build-libiberty"
2663
2664 # these tools are built for the build environment
2665 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2666
2667 # these libraries are used by various programs built for the host environment
2668 #
2669 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2670
2671 # these tools are built for the host environment
2672 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2673 # know that we are building the simulator.
2674 # binutils, gas and ld appear in that order because it makes sense to run
2675 # "make check" in that particular order.
2676 # If --enable-gold is used, "gold" may replace "ld".
2677 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2678
2679 # libgcj represents the runtime libraries only used by gcj.
2680 libgcj="target-libffi \
2681         target-zlib \
2682         target-libjava"
2683
2684 # these libraries are built for the target environment, and are built after
2685 # the host libraries and the host tools (which may be a cross compiler)
2686 # Note that libiberty is not a target library.
2687 target_libraries="target-libgcc \
2688                 target-libgloss \
2689                 target-newlib \
2690                 target-libgomp \
2691                 target-libitm \
2692                 target-libstdc++-v3 \
2693                 target-libmudflap \
2694                 target-libssp \
2695                 target-libquadmath \
2696                 target-libgfortran \
2697                 target-boehm-gc \
2698                 ${libgcj} \
2699                 target-libobjc \
2700                 target-libada \
2701                 target-libgo"
2702
2703 # these tools are built using the target libraries, and are intended to
2704 # run only in the target environment
2705 #
2706 # note: any program that *uses* libraries that are in the "target_libraries"
2707 # list belongs in this list.
2708 #
2709 target_tools="target-rda"
2710
2711 ################################################################################
2712
2713 ## All tools belong in one of the four categories, and are assigned above
2714 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2715 ## is important because configure will choke if they ever get through.
2716 ## ${configdirs} is directories we build using the host tools.
2717 ## ${target_configdirs} is directories we build using the target tools.
2718 configdirs=`echo ${host_libs} ${host_tools}`
2719 target_configdirs=`echo ${target_libraries} ${target_tools}`
2720 build_configdirs=`echo ${build_libs} ${build_tools}`
2721
2722
2723
2724 ################################################################################
2725
2726 srcname="gnu development package"
2727
2728 # This gets set non-empty for some net releases of packages.
2729 appdirs=""
2730
2731 # Define is_cross_compiler to save on calls to 'test'.
2732 is_cross_compiler=
2733 if test x"${host}" = x"${target}" ; then
2734   is_cross_compiler=no
2735 else
2736   is_cross_compiler=yes
2737 fi
2738
2739 # Find the build and target subdir names.
2740
2741 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2742 # have matching libraries, they should use host libraries: Makefile.tpl
2743 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2744 # However, they still use the build modules, because the corresponding
2745 # host modules (e.g. bison) are only built for the host when bootstrap
2746 # finishes. So:
2747 # - build_subdir is where we find build modules, and never changes.
2748 # - build_libsubdir is where we find build libraries, and can be overridden.
2749
2750 # Prefix 'build-' so this never conflicts with target_subdir.
2751 build_subdir="build-${build_noncanonical}"
2752
2753 # Check whether --with-build-libsubdir was given.
2754 if test "${with_build_libsubdir+set}" = set; then :
2755   withval=$with_build_libsubdir; build_libsubdir="$withval"
2756 else
2757   build_libsubdir="$build_subdir"
2758 fi
2759
2760 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2761 if ( test $srcdir = . && test -d gcc ) \
2762    || test -d $srcdir/../host-${host_noncanonical}; then
2763   host_subdir="host-${host_noncanonical}"
2764 else
2765   host_subdir=.
2766 fi
2767 # No prefix.
2768 target_subdir=${target_noncanonical}
2769
2770 # Be sure to cover against remnants of an in-tree build.
2771 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2772   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2773 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2774 fi
2775
2776 # Skipdirs are removed silently.
2777 skipdirs=
2778 # Noconfigdirs are removed loudly.
2779 noconfigdirs=""
2780
2781 use_gnu_ld=
2782 # Make sure we don't let GNU ld be added if we didn't want it.
2783 if test x$with_gnu_ld = xno ; then
2784   use_gnu_ld=no
2785   noconfigdirs="$noconfigdirs ld gold"
2786 fi
2787
2788 use_gnu_as=
2789 # Make sure we don't let GNU as be added if we didn't want it.
2790 if test x$with_gnu_as = xno ; then
2791   use_gnu_as=no
2792   noconfigdirs="$noconfigdirs gas"
2793 fi
2794
2795 use_included_zlib=
2796 # Make sure we don't let ZLIB be added if we didn't want it.
2797 if test x$with_system_zlib = xyes ; then
2798   use_included_zlib=no
2799   noconfigdirs="$noconfigdirs zlib"
2800 fi
2801
2802 # some tools are so dependent upon X11 that if we're not building with X,
2803 # it's not even worth trying to configure, much less build, that tool.
2804
2805 case ${with_x} in
2806   yes | "") ;; # the default value for this tree is that X11 is available
2807   no)
2808     skipdirs="${skipdirs} tk itcl libgui"
2809     # We won't be able to build gdbtk without X.
2810     enable_gdbtk=no
2811     ;;
2812   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2813 esac
2814
2815 # Some are only suitable for cross toolchains.
2816 # Remove these if host=target.
2817 cross_only="target-libgloss target-newlib target-opcodes"
2818
2819 case $is_cross_compiler in
2820   no) skipdirs="${skipdirs} ${cross_only}" ;;
2821 esac
2822
2823 # If both --with-headers and --with-libs are specified, default to
2824 # --without-newlib.
2825 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2826    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2827   if test x"${with_newlib}" = x ; then
2828     with_newlib=no
2829   fi
2830 fi
2831
2832 # Recognize --with-newlib/--without-newlib.
2833 case ${with_newlib} in
2834   no) skipdirs="${skipdirs} target-newlib" ;;
2835   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2836 esac
2837
2838 # Handle --enable-gold, --enable-ld.
2839 # --disable-gold [--enable-ld]
2840 #     Build only ld.  Default option.
2841 # --enable-gold [--enable-ld]
2842 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2843 #     as "ld.bfd" and "ld".
2844 # --enable-gold=default [--enable-ld]
2845 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2846 #     install ld as "ld.bfd".
2847 # --enable-gold[=default] --disable-ld
2848 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2849 # --enable-gold --enable-ld=default
2850 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2851 #     and ld.bfd).
2852 #     In other words, ld is default
2853 # --enable-gold=default --enable-ld=default
2854 #     Error.
2855
2856 default_ld=
2857 # Check whether --enable-gold was given.
2858 if test "${enable_gold+set}" = set; then :
2859   enableval=$enable_gold; ENABLE_GOLD=$enableval
2860 else
2861   ENABLE_GOLD=no
2862 fi
2863
2864 case "${ENABLE_GOLD}" in
2865   yes|default)
2866     # Check for ELF target.
2867     is_elf=no
2868     case "${target}" in
2869       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2870       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2871       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2872       | *-*-solaris2* | *-*-nto*)
2873         case "${target}" in
2874           *-*-linux*aout* | *-*-linux*oldld*)
2875             ;;
2876           *)
2877             is_elf=yes
2878             ;;
2879         esac
2880     esac
2881
2882     if test "$is_elf" = "yes"; then
2883       # Check for target supported by gold.
2884       case "${target}" in
2885         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2886           configdirs="$configdirs gold"
2887           if test x${ENABLE_GOLD} = xdefault; then
2888             default_ld=gold
2889           fi
2890           ENABLE_GOLD=yes
2891           ;;
2892       esac
2893     fi
2894     ;;
2895   no)
2896     ;;
2897   *)
2898     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2899     ;;
2900 esac
2901
2902 # Check whether --enable-ld was given.
2903 if test "${enable_ld+set}" = set; then :
2904   enableval=$enable_ld; ENABLE_LD=$enableval
2905 else
2906   ENABLE_LD=yes
2907 fi
2908
2909
2910 case "${ENABLE_LD}" in
2911   default)
2912     if test x${default_ld} != x; then
2913       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2914     fi
2915     ;;
2916   yes)
2917     ;;
2918   no)
2919     if test x${ENABLE_GOLD} != xyes; then
2920       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2921 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2922     fi
2923     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2924     ;;
2925   *)
2926     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2927     ;;
2928 esac
2929
2930 # Configure extra directories which are host specific
2931
2932 case "${host}" in
2933   *-cygwin*)
2934     configdirs="$configdirs libtermcap" ;;
2935 esac
2936
2937 # A target can indicate whether a language isn't supported for some reason.
2938 # Only spaces may be used in this macro; not newlines or tabs.
2939 unsupported_languages=
2940
2941 # Remove more programs from consideration, based on the host or
2942 # target this usually means that a port of the program doesn't
2943 # exist yet.
2944
2945 case "${host}" in
2946   i[3456789]86-*-msdosdjgpp*)
2947     noconfigdirs="$noconfigdirs tcl tk itcl"
2948     ;;
2949 esac
2950
2951
2952 # Check whether --enable-libquadmath was given.
2953 if test "${enable_libquadmath+set}" = set; then :
2954   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2955 else
2956   ENABLE_LIBQUADMATH=yes
2957 fi
2958
2959 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2960   noconfigdirs="$noconfigdirs target-libquadmath"
2961 fi
2962
2963
2964 # Check whether --enable-libquadmath-support was given.
2965 if test "${enable_libquadmath_support+set}" = set; then :
2966   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2967 else
2968   ENABLE_LIBQUADMATH_SUPPORT=yes
2969 fi
2970
2971 enable_libquadmath_support=
2972 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2973   enable_libquadmath_support=no
2974 fi
2975
2976
2977 # Check whether --enable-libada was given.
2978 if test "${enable_libada+set}" = set; then :
2979   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2980 else
2981   ENABLE_LIBADA=yes
2982 fi
2983
2984 if test "${ENABLE_LIBADA}" != "yes" ; then
2985   noconfigdirs="$noconfigdirs gnattools"
2986 fi
2987
2988 # Check whether --enable-libssp was given.
2989 if test "${enable_libssp+set}" = set; then :
2990   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2991 else
2992   ENABLE_LIBSSP=yes
2993 fi
2994
2995
2996 # Save it here so that, even in case of --enable-libgcj, if the Java
2997 # front-end isn't enabled, we still get libgcj disabled.
2998 libgcj_saved=$libgcj
2999 case $enable_libgcj in
3000 yes)
3001   # If we reset it here, it won't get added to noconfigdirs in the
3002   # target-specific build rules, so it will be forcibly enabled
3003   # (unless the Java language itself isn't enabled).
3004   libgcj=
3005   ;;
3006 no)
3007   # Make sure we get it printed in the list of not supported target libs.
3008   # Don't disable libffi, though, other languages use it.
3009   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3010   # Clear libgcj_saved so that even if java is enabled libffi won't be
3011   # built.
3012   libgcj_saved=
3013   ;;
3014 esac
3015
3016 # Check whether --enable-static-libjava was given.
3017 if test "${enable_static_libjava+set}" = set; then :
3018   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3019 else
3020   ENABLE_STATIC_LIBJAVA=no
3021 fi
3022
3023 enable_static_libjava=
3024 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3025   enable_static_libjava=yes
3026 fi
3027
3028 if test x$enable_static_libjava != xyes ; then
3029   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3030 fi
3031
3032
3033 # Disable libmudflap on some systems.
3034 if test x$enable_libmudflap = x ; then
3035     case "${target}" in
3036     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3037         # Enable libmudflap by default in GNU and friends.
3038         ;;
3039     *-*-freebsd*)
3040         # Enable libmudflap by default in FreeBSD.
3041         ;;
3042     *)
3043         # Disable it by default everywhere else.
3044         noconfigdirs="$noconfigdirs target-libmudflap"
3045         ;;
3046     esac
3047 fi
3048
3049 # Disable libgomp on non POSIX hosted systems.
3050 if test x$enable_libgomp = x ; then
3051     # Enable libgomp by default on hosted POSIX systems.
3052     case "${target}" in
3053     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3054         ;;
3055     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3056         ;;
3057     *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3058         ;;
3059     *-*-darwin* | *-*-aix*)
3060         ;;
3061     *)
3062         noconfigdirs="$noconfigdirs target-libgomp"
3063         ;;
3064     esac
3065 fi
3066
3067 # Disable libitm on unsupported systems.
3068 if test -d ${srcdir}/libitm; then
3069     if test x$enable_libitm = x; then
3070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3071 $as_echo_n "checking for libitm support... " >&6; }
3072         if (srcdir=${srcdir}/libitm; \
3073                 . ${srcdir}/configure.tgt; \
3074                 test -n "$UNSUPPORTED")
3075         then
3076             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078             noconfigdirs="$noconfigdirs target-libitm"
3079         else
3080             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082         fi
3083     fi
3084 fi
3085
3086 # Disable libssp for some systems.
3087 case "${target}" in
3088   avr-*-*)
3089     # No hosted I/O support.
3090     noconfigdirs="$noconfigdirs target-libssp"
3091     ;;
3092   powerpc-*-aix* | rs6000-*-aix*)
3093     noconfigdirs="$noconfigdirs target-libssp"
3094     ;;
3095   rl78-*-*)
3096     # libssp uses a misaligned load to trigger a fault, but the RL78
3097     # doesn't fault for those - instead, it gives a build-time error
3098     # for explicit misaligned loads.
3099     noconfigdirs="$noconfigdirs target-libssp"
3100     ;;
3101 esac
3102
3103 # Disable libstdc++-v3 for some systems.
3104 case "${target}" in
3105   *-*-vxworks*)
3106     # VxWorks uses the Dinkumware C++ library.
3107     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3108     ;;
3109   arm*-wince-pe*)
3110     # the C++ libraries don't build on top of CE's C libraries
3111     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3112     ;;
3113   avr-*-*)
3114     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3115     ;;
3116 esac
3117
3118 # Disable Fortran for some systems.
3119 case "${target}" in
3120   mmix-*-*)
3121     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3122     unsupported_languages="$unsupported_languages fortran"
3123     ;;
3124 esac
3125
3126 # Disable Java if libffi is not supported.
3127 case "${target}" in
3128   alpha*-*-*)
3129     ;;
3130   arm*-*-*)
3131     ;;
3132   cris-*-*)
3133     ;;
3134   frv-*-*)
3135     ;;
3136   hppa*-*-linux*)
3137     ;;
3138   hppa*-*-hpux*)
3139     ;;
3140   i?86-*-*)
3141     ;;
3142   ia64*-*-*)
3143     ;;
3144   m32r*-*-*)
3145     ;;
3146   m68k-*-*)
3147     ;;
3148   mips-sgi-irix6.* | mips*-*-rtems*)
3149     ;;
3150   mips*-*-linux*)
3151     ;;
3152   powerpc*-*-linux*)
3153     ;;
3154   powerpc-*-darwin*)
3155     ;;
3156   powerpc-*-aix* | rs6000-*-aix*)
3157     ;;
3158   powerpc-*-freebsd*)
3159     ;;
3160   powerpc64-*-freebsd*)
3161     ;;
3162   powerpc*-*-rtems*)
3163     ;;
3164   s390-*-* | s390x-*-*)
3165     ;;
3166   sh-*-* | sh[34]*-*-*)
3167     ;;
3168   sh64-*-* | sh5*-*-*)
3169     ;;
3170   sparc*-*-*)
3171     ;;
3172   x86_64-*-*)
3173     ;;
3174   *-*-*)
3175     unsupported_languages="$unsupported_languages java"
3176     ;;
3177 esac
3178
3179 # Disable Java, libgcj or related libraries for some systems.
3180 case "${target}" in
3181   powerpc-*-darwin*)
3182     ;;
3183   i[3456789]86-*-darwin*)
3184     ;;
3185   x86_64-*-darwin[912]*)
3186     ;;
3187   *-*-darwin*)
3188     noconfigdirs="$noconfigdirs ${libgcj}"
3189     ;;
3190   *-*-netware*)
3191     noconfigdirs="$noconfigdirs ${libgcj}"
3192     ;;
3193   *-*-rtems*)
3194     noconfigdirs="$noconfigdirs ${libgcj}"
3195     ;;
3196   *-*-tpf*)
3197     noconfigdirs="$noconfigdirs ${libgcj}"
3198     ;;
3199   *-*-uclinux*)
3200     noconfigdirs="$noconfigdirs ${libgcj}"
3201     ;;
3202   *-*-vxworks*)
3203     noconfigdirs="$noconfigdirs ${libgcj}"
3204     ;;
3205   alpha*-*-*vms*)
3206     noconfigdirs="$noconfigdirs ${libgcj}"
3207     ;;
3208   arm-wince-pe)
3209     noconfigdirs="$noconfigdirs ${libgcj}"
3210     ;;
3211   arm*-*-symbianelf*)
3212     noconfigdirs="$noconfigdirs ${libgcj}"
3213     ;;
3214   bfin-*-*)
3215     noconfigdirs="$noconfigdirs target-boehm-gc"
3216     ;;
3217   cris-*-* | crisv32-*-*)
3218     unsupported_languages="$unsupported_languages java"
3219     case "${target}" in
3220       *-*-linux*)
3221         ;;
3222       *) # See PR46792 regarding target-libffi.
3223         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3224     esac
3225     ;;
3226   hppa*64*-*-linux*)
3227     # In this case, it's because the hppa64-linux target is for
3228     # the kernel only at this point and has no libc, and thus no
3229     # headers, crt*.o, etc., all of which are needed by these.
3230     unsupported_languages="$unsupported_languages java"
3231     ;;
3232   hppa*64*-*-hpux*)
3233     noconfigdirs="$noconfigdirs ${libgcj}"
3234     ;;
3235   hppa*-hp-hpux11*)
3236     ;;
3237   hppa*-*-hpux*)
3238     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3239     # build on HP-UX 10.20.
3240     noconfigdirs="$noconfigdirs ${libgcj}"
3241     ;;
3242   ia64*-*-*vms*)
3243     noconfigdirs="$noconfigdirs ${libgcj}"
3244     ;;
3245   i[3456789]86-w64-mingw*)
3246     noconfigdirs="$noconfigdirs ${libgcj}"
3247     ;;
3248   i[3456789]86-*-mingw*)
3249     noconfigdirs="$noconfigdirs ${libgcj}"
3250     ;;
3251   x86_64-*-mingw*)
3252     noconfigdirs="$noconfigdirs ${libgcj}"
3253     ;;
3254   mmix-*-*)
3255     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3256     ;;
3257   powerpc-*-aix*)
3258     # copied from rs6000-*-* entry
3259     noconfigdirs="$noconfigdirs ${libgcj}"
3260     ;;
3261   rs6000-*-aix*)
3262     noconfigdirs="$noconfigdirs ${libgcj}"
3263     ;;
3264   mips*-*-irix6*)
3265     # Linking libjava exceeds command-line length limits on at least
3266     # IRIX 6.2, but not on IRIX 6.5.
3267     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3268     # <oldham@codesourcery.com>
3269     noconfigdirs="$noconfigdirs ${libgcj}"
3270     ;;
3271   *-*-lynxos*)
3272     noconfigdirs="$noconfigdirs ${libgcj}"
3273     ;;
3274 esac
3275
3276 # Default libgloss CPU subdirectory.
3277 libgloss_dir="$target_cpu"
3278
3279 case "${target}" in
3280   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3281     libgloss_dir=wince
3282     ;;
3283   arm*-*-*)
3284     libgloss_dir=arm
3285     ;;
3286   cris-*-* | crisv32-*-*)
3287     libgloss_dir=cris
3288     ;;
3289   hppa*-*-*)
3290     libgloss_dir=pa
3291     ;;
3292   i[3456789]86-*-*)
3293     libgloss_dir=i386
3294     ;;
3295   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3296     libgloss_dir=m68hc11
3297     ;;
3298   m68*-*-* | fido-*-*)
3299     libgloss_dir=m68k
3300     ;;
3301   mips*-*-*)
3302     libgloss_dir=mips
3303     ;;
3304   powerpc*-*-*)
3305     libgloss_dir=rs6000
3306     ;;
3307   sparc*-*-*)
3308     libgloss_dir=sparc
3309     ;;
3310 esac
3311
3312 # Disable newlib and libgloss for various target OSes.
3313 case "${target}" in
3314   alpha*-dec-osf*)
3315     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3316     ;;
3317   i[3456789]86-*-linux*)
3318     # This section makes it possible to build newlib natively on linux.
3319     # If we are using a cross compiler then don't configure newlib.
3320     if test x${is_cross_compiler} != xno ; then
3321       noconfigdirs="$noconfigdirs target-newlib"
3322     fi
3323     noconfigdirs="$noconfigdirs target-libgloss"
3324     # If we are not using a cross compiler, do configure newlib.
3325     # Note however, that newlib will only be configured in this situation
3326     # if the --with-newlib option has been given, because otherwise
3327     # 'target-newlib' will appear in skipdirs.
3328     ;;
3329   i[3456789]86-*-rdos*)
3330     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3331     ;;
3332   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3333     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3334     ;;
3335   sparc-*-sunos4*)
3336     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3337     ;;
3338   *-*-aix*)
3339     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3340     ;;
3341   *-*-beos*)
3342     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3343     ;;
3344   *-*-chorusos)
3345     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3346     ;;
3347   *-*-dragonfly*)
3348     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3349     ;;
3350   *-*-freebsd*)
3351     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3352     ;;
3353   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3354     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3355     ;;
3356   *-*-lynxos*)
3357     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3358     ;;
3359   *-*-mingw*)
3360     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361     ;;
3362   *-*-netbsd*)
3363     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3364     ;;
3365   *-*-netware*)
3366     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3367     ;;
3368   *-*-tpf*)
3369     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3370     ;;
3371   *-*-uclinux*)
3372     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3373     ;;
3374   *-*-vxworks*)
3375     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3376     ;;
3377 esac
3378
3379 case "${target}" in
3380   *-*-chorusos)
3381     ;;
3382   powerpc-*-darwin*)
3383     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3384     noconfigdirs="$noconfigdirs sim target-rda"
3385     ;;
3386   i[3456789]86-*-darwin*)
3387     noconfigdirs="$noconfigdirs ld gprof"
3388     noconfigdirs="$noconfigdirs sim target-rda"
3389     ;;
3390   x86_64-*-darwin[912]*)
3391     noconfigdirs="$noconfigdirs ld gas gprof"
3392     noconfigdirs="$noconfigdirs sim target-rda"
3393     ;;
3394   *-*-darwin*)
3395     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3396     noconfigdirs="$noconfigdirs sim target-rda"
3397     ;;
3398   *-*-dragonfly*)
3399     ;;
3400   *-*-freebsd*)
3401     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3402         && test -f /usr/local/include/gmp.h; then
3403       with_gmp=/usr/local
3404     fi
3405     ;;
3406   *-*-kaos*)
3407     # Remove unsupported stuff on all kaOS configurations.
3408     noconfigdirs="$noconfigdirs target-libgloss"
3409     ;;
3410   *-*-netbsd*)
3411     ;;
3412   *-*-netware*)
3413     ;;
3414   *-*-rtems*)
3415     noconfigdirs="$noconfigdirs target-libgloss"
3416     ;;
3417     # The tpf target doesn't support gdb yet.
3418   *-*-tpf*)
3419     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3420     ;;
3421   *-*-uclinux*)
3422     noconfigdirs="$noconfigdirs target-rda"
3423     ;;
3424   *-*-vxworks*)
3425     ;;
3426   alpha*-dec-osf*)
3427     # ld works, but does not support shared libraries.
3428     # gas doesn't generate exception information.
3429     noconfigdirs="$noconfigdirs gas ld"
3430     ;;
3431   alpha*-*-*vms*)
3432     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3433     ;;
3434   alpha*-*-*)
3435     # newlib is not 64 bit ready
3436     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3437     ;;
3438   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3439     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3440     ;;
3441   arc-*-*)
3442     noconfigdirs="$noconfigdirs target-libgloss"
3443     ;;
3444   arm-*-pe*)
3445     noconfigdirs="$noconfigdirs target-libgloss"
3446     ;;
3447   arm-*-riscix*)
3448     noconfigdirs="$noconfigdirs ld target-libgloss"
3449     ;;
3450   c4x-*-* | tic4x-*-*)
3451     noconfigdirs="$noconfigdirs target-libgloss"
3452     ;;
3453   tic54x-*-*)
3454     noconfigdirs="$noconfigdirs target-libgloss gdb"
3455     ;;
3456   cr16-*-*)
3457     noconfigdirs="$noconfigdirs gdb"
3458     ;;
3459   d10v-*-*)
3460     noconfigdirs="$noconfigdirs target-libgloss"
3461     ;;
3462   d30v-*-*)
3463     noconfigdirs="$noconfigdirs gdb"
3464     ;;
3465   fr30-*-elf*)
3466     noconfigdirs="$noconfigdirs gdb"
3467     ;;
3468   moxie-*-*)
3469     noconfigdirs="$noconfigdirs gprof"
3470     ;;
3471   h8300*-*-*)
3472     noconfigdirs="$noconfigdirs target-libgloss"
3473     ;;
3474   h8500-*-*)
3475     noconfigdirs="$noconfigdirs target-libgloss"
3476     ;;
3477   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3478     ;;
3479   hppa*64*-*-linux*)
3480     ;;
3481   hppa*-*-linux*)
3482     ;;
3483   hppa*-*-*elf* | \
3484   hppa*-*-lites* | \
3485   hppa*-*-openbsd* | \
3486   hppa*64*-*-*)
3487     ;;
3488   hppa*-hp-hpux11*)
3489     noconfigdirs="$noconfigdirs ld"
3490     ;;
3491   hppa*-*-pro*)
3492     ;;
3493   hppa*-*-*)
3494     noconfigdirs="$noconfigdirs ld"
3495     ;;
3496   i960-*-*)
3497     noconfigdirs="$noconfigdirs gdb"
3498     ;;
3499   ia64*-*-elf*)
3500     # No gdb support yet.
3501     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3502     ;;
3503   ia64*-**-hpux*)
3504     # No ld support yet.
3505     noconfigdirs="$noconfigdirs libgui itcl ld"
3506     ;;
3507   ia64*-*-*vms*)
3508     # No gdb or ld support yet.
3509     noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3510     ;;
3511   i[3456789]86-w64-mingw*)
3512     ;;
3513   i[3456789]86-*-mingw*)
3514     target_configdirs="$target_configdirs target-winsup"
3515     ;;
3516   *-*-cygwin*)
3517     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3518     noconfigdirs="$noconfigdirs target-libgloss"
3519     # always build newlib if winsup directory is present.
3520     if test -d "$srcdir/winsup/cygwin"; then
3521       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3522     elif test -d "$srcdir/newlib"; then
3523       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3524     fi
3525     ;;
3526   i[3456789]86-*-pe)
3527     noconfigdirs="$noconfigdirs target-libgloss"
3528     ;;
3529   i[3456789]86-*-sco3.2v5*)
3530     # The linker does not yet know about weak symbols in COFF,
3531     # and is not configured to handle mixed ELF and COFF.
3532     noconfigdirs="$noconfigdirs ld target-libgloss"
3533     ;;
3534   i[3456789]86-*-sco*)
3535     noconfigdirs="$noconfigdirs gprof target-libgloss"
3536     ;;
3537   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3538     noconfigdirs="$noconfigdirs target-libgloss"
3539     ;;
3540   i[3456789]86-*-sysv4*)
3541     noconfigdirs="$noconfigdirs target-libgloss"
3542     ;;
3543   i[3456789]86-*-beos*)
3544     noconfigdirs="$noconfigdirs gdb"
3545     ;;
3546   i[3456789]86-*-rdos*)
3547     noconfigdirs="$noconfigdirs gdb"
3548     ;;
3549   mmix-*-*)
3550     noconfigdirs="$noconfigdirs gdb"
3551     ;;
3552   mt-*-*)
3553     noconfigdirs="$noconfigdirs sim"
3554     ;;
3555   powerpc-*-aix*)
3556     # copied from rs6000-*-* entry
3557     noconfigdirs="$noconfigdirs gprof"
3558     ;;
3559   powerpc*-*-winnt* | powerpc*-*-pe*)
3560     target_configdirs="$target_configdirs target-winsup"
3561     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3562     # always build newlib.
3563     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3564     ;;
3565     # This is temporary until we can link against shared libraries
3566   powerpcle-*-solaris*)
3567     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3568     ;;
3569   powerpc-*-beos*)
3570     noconfigdirs="$noconfigdirs gdb"
3571     ;;
3572   rs6000-*-lynxos*)
3573     noconfigdirs="$noconfigdirs gprof"
3574     ;;
3575   rs6000-*-aix*)
3576     noconfigdirs="$noconfigdirs gprof"
3577     ;;
3578   rs6000-*-*)
3579     noconfigdirs="$noconfigdirs gprof"
3580     ;;
3581   m68k-apollo-*)
3582     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3583     ;;
3584   microblaze*)
3585     noconfigdirs="$noconfigdirs gprof"
3586     ;;
3587   mips*-sde-elf*)
3588     if test x$with_newlib = xyes; then
3589       noconfigdirs="$noconfigdirs gprof"
3590     fi
3591     ;;
3592   mips*-*-irix5*)
3593     noconfigdirs="$noconfigdirs gprof target-libgloss"
3594     ;;
3595   mips*-*-irix6*)
3596     noconfigdirs="$noconfigdirs gprof target-libgloss"
3597     ;;
3598   mips*-*-bsd*)
3599     noconfigdirs="$noconfigdirs gprof target-libgloss"
3600     ;;
3601   mips*-*-linux*)
3602     ;;
3603   mips*-*-*)
3604     noconfigdirs="$noconfigdirs gprof"
3605     ;;
3606   sh-*-* | sh64-*-*)
3607     case "${target}" in
3608       sh*-*-elf)
3609          ;;
3610       *)
3611          noconfigdirs="$noconfigdirs target-libgloss" ;;
3612     esac
3613     ;;
3614   sparc-*-sunos4*)
3615     if test x${is_cross_compiler} = xno ; then
3616            use_gnu_ld=no
3617     fi
3618     ;;
3619   tic6x-*-*)
3620     noconfigdirs="$noconfigdirs sim"
3621     ;;
3622   tilepro-*-* | tilegx-*-*)
3623     noconfigdirs="$noconfigdirs sim"
3624     ;;
3625   v810-*-*)
3626     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3627     ;;
3628   vax-*-*)
3629     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630     ;;
3631 esac
3632
3633 # If we aren't building newlib, then don't build libgloss, since libgloss
3634 # depends upon some newlib header files.
3635 case "${noconfigdirs}" in
3636   *target-libgloss*) ;;
3637   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3638 esac
3639
3640 # Work in distributions that contain no compiler tools, like Autoconf.
3641 host_makefile_frag=/dev/null
3642 if test -d ${srcdir}/config ; then
3643 case "${host}" in
3644   i[3456789]86-*-msdosdjgpp*)
3645     host_makefile_frag="config/mh-djgpp"
3646     ;;
3647   *-cygwin*)
3648
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3650 $as_echo_n "checking to see if cat works as expected... " >&6; }
3651 echo a >cygwin-cat-check
3652 if test `cat cygwin-cat-check` = a ; then
3653   rm cygwin-cat-check
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655 $as_echo "yes" >&6; }
3656 else
3657   rm cygwin-cat-check
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660   as_fn_error "The cat command does not ignore carriage return characters.
3661   Please either mount the build directory in binary mode or run the following
3662   commands before running any configure script:
3663 set -o igncr
3664 export SHELLOPTS
3665   " "$LINENO" 5
3666 fi
3667
3668     host_makefile_frag="config/mh-cygwin"
3669     ;;
3670   *-mingw*)
3671     host_makefile_frag="config/mh-mingw"
3672     ;;
3673   *-interix*)
3674     host_makefile_frag="config/mh-interix"
3675     ;;
3676   hppa*-hp-hpux10*)
3677     host_makefile_frag="config/mh-pa-hpux10"
3678     ;;
3679   hppa*-hp-hpux*)
3680     host_makefile_frag="config/mh-pa"
3681     ;;
3682   hppa*-*)
3683     host_makefile_frag="config/mh-pa"
3684     ;;
3685   *-*-darwin*)
3686     host_makefile_frag="config/mh-darwin"
3687     ;;
3688   powerpc-*-aix*)
3689     host_makefile_frag="config/mh-ppc-aix"
3690     ;;
3691   rs6000-*-aix*)
3692     host_makefile_frag="config/mh-ppc-aix"
3693     ;;
3694 esac
3695 fi
3696
3697 if test "${build}" != "${host}" ; then
3698   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3699   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3700   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3701   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3702   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3703   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3704   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3705   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3706   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3707   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3708   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3709   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3710   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3711 else
3712   AR_FOR_BUILD="\$(AR)"
3713   AS_FOR_BUILD="\$(AS)"
3714   CC_FOR_BUILD="\$(CC)"
3715   CXX_FOR_BUILD="\$(CXX)"
3716   GCJ_FOR_BUILD="\$(GCJ)"
3717   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3718   GOC_FOR_BUILD="\$(GOC)"
3719   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3720   LD_FOR_BUILD="\$(LD)"
3721   NM_FOR_BUILD="\$(NM)"
3722   RANLIB_FOR_BUILD="\$(RANLIB)"
3723   WINDRES_FOR_BUILD="\$(WINDRES)"
3724   WINDMC_FOR_BUILD="\$(WINDMC)"
3725 fi
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 if test -n "$ac_tool_prefix"; then
3733   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3734 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_CC+set}" = set; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if test -n "$CC"; then
3741   ac_cv_prog_CC="$CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748     for ac_exec_ext in '' $ac_executable_extensions; do
3749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755   done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 $as_echo "$CC" >&6; }
3764 else
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769
3770 fi
3771 if test -z "$ac_cv_prog_CC"; then
3772   ac_ct_CC=$CC
3773   # Extract the first word of "gcc", so it can be a program name with args.
3774 set dummy gcc; ac_word=$2
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3778   $as_echo_n "(cached) " >&6
3779 else
3780   if test -n "$ac_ct_CC"; then
3781   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788     for ac_exec_ext in '' $ac_executable_extensions; do
3789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790     ac_cv_prog_ac_ct_CC="gcc"
3791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792     break 2
3793   fi
3794 done
3795   done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 $as_echo "$ac_ct_CC" >&6; }
3804 else
3805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3807 fi
3808
3809   if test "x$ac_ct_CC" = x; then
3810     CC=""
3811   else
3812     case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818     CC=$ac_ct_CC
3819   fi
3820 else
3821   CC="$ac_cv_prog_CC"
3822 fi
3823
3824 if test -z "$CC"; then
3825           if test -n "$ac_tool_prefix"; then
3826     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3827 set dummy ${ac_tool_prefix}cc; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if test "${ac_cv_prog_CC+set}" = set; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   if test -n "$CC"; then
3834   ac_cv_prog_CC="$CC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841     for ac_exec_ext in '' $ac_executable_extensions; do
3842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843     ac_cv_prog_CC="${ac_tool_prefix}cc"
3844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848   done
3849 IFS=$as_save_IFS
3850
3851 fi
3852 fi
3853 CC=$ac_cv_prog_CC
3854 if test -n "$CC"; then
3855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3856 $as_echo "$CC" >&6; }
3857 else
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 fi
3861
3862
3863   fi
3864 fi
3865 if test -z "$CC"; then
3866   # Extract the first word of "cc", so it can be a program name with args.
3867 set dummy cc; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if test "${ac_cv_prog_CC+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if test -n "$CC"; then
3874   ac_cv_prog_CC="$CC" # Let the user override the test.
3875 else
3876   ac_prog_rejected=no
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3885        ac_prog_rejected=yes
3886        continue
3887      fi
3888     ac_cv_prog_CC="cc"
3889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893   done
3894 IFS=$as_save_IFS
3895
3896 if test $ac_prog_rejected = yes; then
3897   # We found a bogon in the path, so make sure we never use it.
3898   set dummy $ac_cv_prog_CC
3899   shift
3900   if test $# != 0; then
3901     # We chose a different compiler from the bogus one.
3902     # However, it has the same basename, so the bogon will be chosen
3903     # first if we set CC to just the basename; use the full file name.
3904     shift
3905     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3906   fi
3907 fi
3908 fi
3909 fi
3910 CC=$ac_cv_prog_CC
3911 if test -n "$CC"; then
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3914 else
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919
3920 fi
3921 if test -z "$CC"; then
3922   if test -n "$ac_tool_prefix"; then
3923   for ac_prog in cl.exe
3924   do
3925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_CC+set}" = set; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   if test -n "$CC"; then
3933   ac_cv_prog_CC="$CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940     for ac_exec_ext in '' $ac_executable_extensions; do
3941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947   done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 CC=$ac_cv_prog_CC
3953 if test -n "$CC"; then
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3955 $as_echo "$CC" >&6; }
3956 else
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961
3962     test -n "$CC" && break
3963   done
3964 fi
3965 if test -z "$CC"; then
3966   ac_ct_CC=$CC
3967   for ac_prog in cl.exe
3968 do
3969   # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3974   $as_echo_n "(cached) " >&6
3975 else
3976   if test -n "$ac_ct_CC"; then
3977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984     for ac_exec_ext in '' $ac_executable_extensions; do
3985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986     ac_cv_prog_ac_ct_CC="$ac_prog"
3987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991   done
3992 IFS=$as_save_IFS
3993
3994 fi
3995 fi
3996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3997 if test -n "$ac_ct_CC"; then
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3999 $as_echo "$ac_ct_CC" >&6; }
4000 else
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4003 fi
4004
4005
4006   test -n "$ac_ct_CC" && break
4007 done
4008
4009   if test "x$ac_ct_CC" = x; then
4010     CC=""
4011   else
4012     case $cross_compiling:$ac_tool_warned in
4013 yes:)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016 ac_tool_warned=yes ;;
4017 esac
4018     CC=$ac_ct_CC
4019   fi
4020 fi
4021
4022 fi
4023
4024
4025 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "no acceptable C compiler found in \$PATH
4028 See \`config.log' for more details." "$LINENO" 5; }
4029
4030 # Provide some information about the compiler.
4031 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4032 set X $ac_compile
4033 ac_compiler=$2
4034 for ac_option in --version -v -V -qversion; do
4035   { { ac_try="$ac_compiler $ac_option >&5"
4036 case "(($ac_try" in
4037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038   *) ac_try_echo=$ac_try;;
4039 esac
4040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041 $as_echo "$ac_try_echo"; } >&5
4042   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4043   ac_status=$?
4044   if test -s conftest.err; then
4045     sed '10a\
4046 ... rest of stderr output deleted ...
4047          10q' conftest.err >conftest.er1
4048     cat conftest.er1 >&5
4049     rm -f conftest.er1 conftest.err
4050   fi
4051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052   test $ac_status = 0; }
4053 done
4054
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 ac_clean_files_save=$ac_clean_files
4067 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4068 # Try to create an executable without -o first, disregard a.out.
4069 # It will help us diagnose broken compilers, and finding out an intuition
4070 # of exeext.
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4072 $as_echo_n "checking for C compiler default output file name... " >&6; }
4073 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4074
4075 # The possible output files:
4076 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4077
4078 ac_rmfiles=
4079 for ac_file in $ac_files
4080 do
4081   case $ac_file in
4082     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4083     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4084   esac
4085 done
4086 rm -f $ac_rmfiles
4087
4088 if { { ac_try="$ac_link_default"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095   (eval "$ac_link_default") 2>&5
4096   ac_status=$?
4097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098   test $ac_status = 0; }; then :
4099   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4100 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4101 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4102 # so that the user can short-circuit this test for compilers unknown to
4103 # Autoconf.
4104 for ac_file in $ac_files ''
4105 do
4106   test -f "$ac_file" || continue
4107   case $ac_file in
4108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4109         ;;
4110     [ab].out )
4111         # We found the default executable, but exeext='' is most
4112         # certainly right.
4113         break;;
4114     *.* )
4115         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4116         then :; else
4117            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4118         fi
4119         # We set ac_cv_exeext here because the later test for it is not
4120         # safe: cross compilers may not add the suffix if given an `-o'
4121         # argument, so we may need to know it at that point already.
4122         # Even if this section looks crufty: it has the advantage of
4123         # actually working.
4124         break;;
4125     * )
4126         break;;
4127   esac
4128 done
4129 test "$ac_cv_exeext" = no && ac_cv_exeext=
4130
4131 else
4132   ac_file=''
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 $as_echo "$ac_file" >&6; }
4136 if test -z "$ac_file"; then :
4137   $as_echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4139
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 { as_fn_set_status 77
4143 as_fn_error "C compiler cannot create executables
4144 See \`config.log' for more details." "$LINENO" 5; }; }
4145 fi
4146 ac_exeext=$ac_cv_exeext
4147
4148 # Check that the compiler produces executables we can run.  If not, either
4149 # the compiler is broken, or we cross compile.
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4151 $as_echo_n "checking whether the C compiler works... " >&6; }
4152 # If not cross compiling, check that we can run a simple program.
4153 if test "$cross_compiling" != yes; then
4154   if { ac_try='./$ac_file'
4155   { { case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161   (eval "$ac_try") 2>&5
4162   ac_status=$?
4163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164   test $ac_status = 0; }; }; then
4165     cross_compiling=no
4166   else
4167     if test "$cross_compiling" = maybe; then
4168         cross_compiling=yes
4169     else
4170         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4172 as_fn_error "cannot run C compiled programs.
4173 If you meant to cross compile, use \`--host'.
4174 See \`config.log' for more details." "$LINENO" 5; }
4175     fi
4176   fi
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180
4181 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4182 ac_clean_files=$ac_clean_files_save
4183 # Check that the compiler produces executables we can run.  If not, either
4184 # the compiler is broken, or we cross compile.
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4186 $as_echo_n "checking whether we are cross compiling... " >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4188 $as_echo "$cross_compiling" >&6; }
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4191 $as_echo_n "checking for suffix of executables... " >&6; }
4192 if { { ac_try="$ac_link"
4193 case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 $as_echo "$ac_try_echo"; } >&5
4199   (eval "$ac_link") 2>&5
4200   ac_status=$?
4201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202   test $ac_status = 0; }; then :
4203   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4204 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4205 # work properly (i.e., refer to `conftest.exe'), while it won't with
4206 # `rm'.
4207 for ac_file in conftest.exe conftest conftest.*; do
4208   test -f "$ac_file" || continue
4209   case $ac_file in
4210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4211     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4212           break;;
4213     * ) break;;
4214   esac
4215 done
4216 else
4217   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error "cannot compute suffix of executables: cannot compile and link
4220 See \`config.log' for more details." "$LINENO" 5; }
4221 fi
4222 rm -f conftest$ac_cv_exeext
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4224 $as_echo "$ac_cv_exeext" >&6; }
4225
4226 rm -f conftest.$ac_ext
4227 EXEEXT=$ac_cv_exeext
4228 ac_exeext=$EXEEXT
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4230 $as_echo_n "checking for suffix of object files... " >&6; }
4231 if test "${ac_cv_objext+set}" = set; then :
4232   $as_echo_n "(cached) " >&6
4233 else
4234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4236
4237 int
4238 main ()
4239 {
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.o conftest.obj
4246 if { { ac_try="$ac_compile"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253   (eval "$ac_compile") 2>&5
4254   ac_status=$?
4255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256   test $ac_status = 0; }; then :
4257   for ac_file in conftest.o conftest.obj conftest.*; do
4258   test -f "$ac_file" || continue;
4259   case $ac_file in
4260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4261     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4262        break;;
4263   esac
4264 done
4265 else
4266   $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error "cannot compute suffix of object files: cannot compile
4272 See \`config.log' for more details." "$LINENO" 5; }
4273 fi
4274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4277 $as_echo "$ac_cv_objext" >&6; }
4278 OBJEXT=$ac_cv_objext
4279 ac_objext=$OBJEXT
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4282 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287
4288 int
4289 main ()
4290 {
4291 #ifndef __GNUC__
4292        choke me
4293 #endif
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300   ac_compiler_gnu=yes
4301 else
4302   ac_compiler_gnu=no
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4310 if test $ac_compiler_gnu = yes; then
4311   GCC=yes
4312 else
4313   GCC=
4314 fi
4315 ac_test_CFLAGS=${CFLAGS+set}
4316 ac_save_CFLAGS=$CFLAGS
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4319 if test "${ac_cv_prog_cc_g+set}" = set; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   ac_save_c_werror_flag=$ac_c_werror_flag
4323    ac_c_werror_flag=yes
4324    ac_cv_prog_cc_g=no
4325    CFLAGS="-g"
4326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328
4329 int
4330 main ()
4331 {
4332
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 if ac_fn_c_try_compile "$LINENO"; then :
4338   ac_cv_prog_cc_g=yes
4339 else
4340   CFLAGS=""
4341       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h.  */
4343
4344 int
4345 main ()
4346 {
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353
4354 else
4355   ac_c_werror_flag=$ac_save_c_werror_flag
4356          CFLAGS="-g"
4357          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359
4360 int
4361 main ()
4362 {
4363
4364   ;
4365   return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_compile "$LINENO"; then :
4369   ac_cv_prog_cc_g=yes
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 fi
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376    ac_c_werror_flag=$ac_save_c_werror_flag
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4379 $as_echo "$ac_cv_prog_cc_g" >&6; }
4380 if test "$ac_test_CFLAGS" = set; then
4381   CFLAGS=$ac_save_CFLAGS
4382 elif test $ac_cv_prog_cc_g = yes; then
4383   if test "$GCC" = yes; then
4384     CFLAGS="-g -O2"
4385   else
4386     CFLAGS="-g"
4387   fi
4388 else
4389   if test "$GCC" = yes; then
4390     CFLAGS="-O2"
4391   else
4392     CFLAGS=
4393   fi
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4397 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   ac_cv_prog_cc_c89=no
4401 ac_save_CC=$CC
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h.  */
4404 #include <stdarg.h>
4405 #include <stdio.h>
4406 #include <sys/types.h>
4407 #include <sys/stat.h>
4408 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4409 struct buf { int x; };
4410 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4411 static char *e (p, i)
4412      char **p;
4413      int i;
4414 {
4415   return p[i];
4416 }
4417 static char *f (char * (*g) (char **, int), char **p, ...)
4418 {
4419   char *s;
4420   va_list v;
4421   va_start (v,p);
4422   s = g (p, va_arg (v,int));
4423   va_end (v);
4424   return s;
4425 }
4426
4427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4428    function prototypes and stuff, but not '\xHH' hex character constants.
4429    These don't provoke an error unfortunately, instead are silently treated
4430    as 'x'.  The following induces an error, until -std is added to get
4431    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4432    array size at least.  It's necessary to write '\x00'==0 to get something
4433    that's true only with -std.  */
4434 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4435
4436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4437    inside strings and character constants.  */
4438 #define FOO(x) 'x'
4439 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4440
4441 int test (int i, double x);
4442 struct s1 {int (*f) (int a);};
4443 struct s2 {int (*f) (double a);};
4444 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4445 int argc;
4446 char **argv;
4447 int
4448 main ()
4449 {
4450 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4456         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4457 do
4458   CC="$ac_save_CC $ac_arg"
4459   if ac_fn_c_try_compile "$LINENO"; then :
4460   ac_cv_prog_cc_c89=$ac_arg
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext
4463   test "x$ac_cv_prog_cc_c89" != "xno" && break
4464 done
4465 rm -f conftest.$ac_ext
4466 CC=$ac_save_CC
4467
4468 fi
4469 # AC_CACHE_VAL
4470 case "x$ac_cv_prog_cc_c89" in
4471   x)
4472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473 $as_echo "none needed" >&6; } ;;
4474   xno)
4475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4476 $as_echo "unsupported" >&6; } ;;
4477   *)
4478     CC="$CC $ac_cv_prog_cc_c89"
4479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4480 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4481 esac
4482 if test "x$ac_cv_prog_cc_c89" != xno; then :
4483
4484 fi
4485
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492 ac_ext=cpp
4493 ac_cpp='$CXXCPP $CPPFLAGS'
4494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4497 if test -z "$CXX"; then
4498   if test -n "$CCC"; then
4499     CXX=$CCC
4500   else
4501     if test -n "$ac_tool_prefix"; then
4502   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4503   do
4504     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if test "${ac_cv_prog_CXX+set}" = set; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if test -n "$CXX"; then
4512   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519     for ac_exec_ext in '' $ac_executable_extensions; do
4520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526   done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 CXX=$ac_cv_prog_CXX
4532 if test -n "$CXX"; then
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4534 $as_echo "$CXX" >&6; }
4535 else
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541     test -n "$CXX" && break
4542   done
4543 fi
4544 if test -z "$CXX"; then
4545   ac_ct_CXX=$CXX
4546   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   if test -n "$ac_ct_CXX"; then
4556   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563     for ac_exec_ext in '' $ac_executable_extensions; do
4564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565     ac_cv_prog_ac_ct_CXX="$ac_prog"
4566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570   done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4576 if test -n "$ac_ct_CXX"; then
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4578 $as_echo "$ac_ct_CXX" >&6; }
4579 else
4580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583
4584
4585   test -n "$ac_ct_CXX" && break
4586 done
4587
4588   if test "x$ac_ct_CXX" = x; then
4589     CXX="g++"
4590   else
4591     case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597     CXX=$ac_ct_CXX
4598   fi
4599 fi
4600
4601   fi
4602 fi
4603 # Provide some information about the compiler.
4604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 for ac_option in --version -v -V -qversion; do
4608   { { ac_try="$ac_compiler $ac_option >&5"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4616   ac_status=$?
4617   if test -s conftest.err; then
4618     sed '10a\
4619 ... rest of stderr output deleted ...
4620          10q' conftest.err >conftest.er1
4621     cat conftest.er1 >&5
4622     rm -f conftest.er1 conftest.err
4623   fi
4624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625   test $ac_status = 0; }
4626 done
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4629 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4630 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h.  */
4635
4636 int
4637 main ()
4638 {
4639 #ifndef __GNUC__
4640        choke me
4641 #endif
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_cxx_try_compile "$LINENO"; then :
4648   ac_compiler_gnu=yes
4649 else
4650   ac_compiler_gnu=no
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4657 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4658 if test $ac_compiler_gnu = yes; then
4659   GXX=yes
4660 else
4661   GXX=
4662 fi
4663 ac_test_CXXFLAGS=${CXXFLAGS+set}
4664 ac_save_CXXFLAGS=$CXXFLAGS
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4666 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4667 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4668   $as_echo_n "(cached) " >&6
4669 else
4670   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4671    ac_cxx_werror_flag=yes
4672    ac_cv_prog_cxx_g=no
4673    CXXFLAGS="-g"
4674    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676
4677 int
4678 main ()
4679 {
4680
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_cxx_try_compile "$LINENO"; then :
4686   ac_cv_prog_cxx_g=yes
4687 else
4688   CXXFLAGS=""
4689       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691
4692 int
4693 main ()
4694 {
4695
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 if ac_fn_cxx_try_compile "$LINENO"; then :
4701
4702 else
4703   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704          CXXFLAGS="-g"
4705          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717   ac_cv_prog_cxx_g=yes
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4727 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4728 if test "$ac_test_CXXFLAGS" = set; then
4729   CXXFLAGS=$ac_save_CXXFLAGS
4730 elif test $ac_cv_prog_cxx_g = yes; then
4731   if test "$GXX" = yes; then
4732     CXXFLAGS="-g -O2"
4733   else
4734     CXXFLAGS="-g"
4735   fi
4736 else
4737   if test "$GXX" = yes; then
4738     CXXFLAGS="-O2"
4739   else
4740     CXXFLAGS=
4741   fi
4742 fi
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749
4750 # We must set the default linker to the linker used by gcc for the correct
4751 # operation of libtool.  If LD is not defined and we are using gcc, try to
4752 # set the LD default to the ld used by gcc.
4753 if test -z "$LD"; then
4754   if test "$GCC" = yes; then
4755     case $build in
4756     *-*-mingw*)
4757       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4758     *)
4759       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4760     esac
4761     case $gcc_prog_ld in
4762     # Accept absolute paths.
4763     [\\/]* | [A-Za-z]:[\\/]*)
4764       LD="$gcc_prog_ld" ;;
4765     esac
4766   fi
4767 fi
4768
4769
4770
4771
4772 if test -n "$ac_tool_prefix"; then
4773   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4774 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if test -n "$GNATBIND"; then
4781   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795   done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 GNATBIND=$ac_cv_prog_GNATBIND
4801 if test -n "$GNATBIND"; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4803 $as_echo "$GNATBIND" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 fi
4811 if test -z "$ac_cv_prog_GNATBIND"; then
4812   ac_ct_GNATBIND=$GNATBIND
4813   # Extract the first word of "gnatbind", so it can be a program name with args.
4814 set dummy gnatbind; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   if test -n "$ac_ct_GNATBIND"; then
4821   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835   done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4841 if test -n "$ac_ct_GNATBIND"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4843 $as_echo "$ac_ct_GNATBIND" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849   if test "x$ac_ct_GNATBIND" = x; then
4850     GNATBIND="no"
4851   else
4852     case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858     GNATBIND=$ac_ct_GNATBIND
4859   fi
4860 else
4861   GNATBIND="$ac_cv_prog_GNATBIND"
4862 fi
4863
4864 if test -n "$ac_tool_prefix"; then
4865   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   if test -n "$GNATMAKE"; then
4873   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880     for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887   done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 GNATMAKE=$ac_cv_prog_GNATMAKE
4893 if test -n "$GNATMAKE"; then
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4895 $as_echo "$GNATMAKE" >&6; }
4896 else
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902 fi
4903 if test -z "$ac_cv_prog_GNATMAKE"; then
4904   ac_ct_GNATMAKE=$GNATMAKE
4905   # Extract the first word of "gnatmake", so it can be a program name with args.
4906 set dummy gnatmake; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   if test -n "$ac_ct_GNATMAKE"; then
4913   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920     for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927   done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4933 if test -n "$ac_ct_GNATMAKE"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4935 $as_echo "$ac_ct_GNATMAKE" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941   if test "x$ac_ct_GNATMAKE" = x; then
4942     GNATMAKE="no"
4943   else
4944     case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948 ac_tool_warned=yes ;;
4949 esac
4950     GNATMAKE=$ac_ct_GNATMAKE
4951   fi
4952 else
4953   GNATMAKE="$ac_cv_prog_GNATMAKE"
4954 fi
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4957 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4958 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   cat >conftest.adb <<EOF
4962 procedure conftest is begin null; end conftest;
4963 EOF
4964 acx_cv_cc_gcc_supports_ada=no
4965 # There is a bug in old released versions of GCC which causes the
4966 # driver to exit successfully when the appropriate language module
4967 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4968 # Therefore we must check for the error message as well as an
4969 # unsuccessful exit.
4970 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4971 # given a .adb file, but produce no object file.  So we must check
4972 # if an object file was really produced to guard against this.
4973 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4974 if test x"$errors" = x && test -f conftest.$ac_objext; then
4975   acx_cv_cc_gcc_supports_ada=yes
4976 fi
4977 rm -f conftest.*
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4980 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4981
4982 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4983   have_gnat=yes
4984 else
4985   have_gnat=no
4986 fi
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4989 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4990 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993    echo abfoo >t1
4994   echo cdfoo >t2
4995   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4996   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4997     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4998       :
4999     else
5000       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5001     fi
5002   fi
5003   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5004     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5005       :
5006     else
5007       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5008     fi
5009   fi
5010   rm t1 t2
5011
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5014 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5015 do_compare="$gcc_cv_prog_cmp_skip"
5016
5017
5018
5019 # Check whether --enable-bootstrap was given.
5020 if test "${enable_bootstrap+set}" = set; then :
5021   enableval=$enable_bootstrap;
5022 else
5023   enable_bootstrap=default
5024 fi
5025
5026
5027 # Issue errors and warnings for invalid/strange bootstrap combinations.
5028 if test -r $srcdir/gcc/configure; then
5029   have_compiler=yes
5030 else
5031   have_compiler=no
5032 fi
5033
5034 case "$have_compiler:$host:$target:$enable_bootstrap" in
5035   *:*:*:no) ;;
5036
5037   # Default behavior.  Enable bootstrap if we have a compiler
5038   # and we are in a native configuration.
5039   yes:$build:$build:default)
5040     enable_bootstrap=yes ;;
5041
5042   *:*:*:default)
5043     enable_bootstrap=no ;;
5044
5045   # We have a compiler and we are in a native configuration, bootstrap is ok
5046   yes:$build:$build:yes)
5047     ;;
5048
5049   # Other configurations, but we have a compiler.  Assume the user knows
5050   # what he's doing.
5051   yes:*:*:yes)
5052     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5053 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5054     ;;
5055
5056   # No compiler: if they passed --enable-bootstrap explicitly, fail
5057   no:*:*:yes)
5058     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5059
5060   # Fail if wrong command line
5061   *)
5062     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5063     ;;
5064 esac
5065
5066 # See if we are building gcc with C++.
5067 # Check whether --enable-build-with-cxx was given.
5068 if test "${enable_build_with_cxx+set}" = set; then :
5069   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5070 else
5071   ENABLE_BUILD_WITH_CXX=no
5072 fi
5073
5074
5075 # Build stage1 with C and build stages 2 and 3 with C++.
5076 # Check whether --enable-build-poststage1-with-cxx was given.
5077 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5078   enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5079 else
5080   ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5081 fi
5082
5083
5084 # Used for setting $lt_cv_objdir
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5086 $as_echo_n "checking for objdir... " >&6; }
5087 if test "${lt_cv_objdir+set}" = set; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   rm -f .libs 2>/dev/null
5091 mkdir .libs 2>/dev/null
5092 if test -d .libs; then
5093   lt_cv_objdir=.libs
5094 else
5095   # MS-DOS does not allow filenames that begin with a dot.
5096   lt_cv_objdir=_libs
5097 fi
5098 rmdir .libs 2>/dev/null
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5101 $as_echo "$lt_cv_objdir" >&6; }
5102 objdir=$lt_cv_objdir
5103
5104
5105
5106
5107
5108 cat >>confdefs.h <<_ACEOF
5109 #define LT_OBJDIR "$lt_cv_objdir/"
5110 _ACEOF
5111
5112
5113
5114 # Check for GMP, MPFR and MPC
5115 gmplibs="-lmpc -lmpfr -lgmp"
5116 gmpinc=
5117 have_gmp=no
5118
5119 # Specify a location for mpc
5120 # check for this first so it ends up on the link line before mpfr.
5121
5122 # Check whether --with-mpc was given.
5123 if test "${with_mpc+set}" = set; then :
5124   withval=$with_mpc;
5125 fi
5126
5127
5128 # Check whether --with-mpc-include was given.
5129 if test "${with_mpc_include+set}" = set; then :
5130   withval=$with_mpc_include;
5131 fi
5132
5133
5134 # Check whether --with-mpc-lib was given.
5135 if test "${with_mpc_lib+set}" = set; then :
5136   withval=$with_mpc_lib;
5137 fi
5138
5139
5140 if test "x$with_mpc" != x; then
5141   gmplibs="-L$with_mpc/lib $gmplibs"
5142   gmpinc="-I$with_mpc/include $gmpinc"
5143 fi
5144 if test "x$with_mpc_include" != x; then
5145   gmpinc="-I$with_mpc_include $gmpinc"
5146 fi
5147 if test "x$with_mpc_lib" != x; then
5148   gmplibs="-L$with_mpc_lib $gmplibs"
5149 fi
5150 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5151   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5152   gmpinc='-I$$s/mpc/src '"$gmpinc"
5153   # Do not test the mpc version.  Assume that it is sufficient, since
5154   # it is in the source tree, and the library has not been built yet
5155   # but it would be included on the link line in the version check below
5156   # hence making the test fail.
5157   have_gmp=yes
5158 fi
5159
5160 # Specify a location for mpfr
5161 # check for this first so it ends up on the link line before gmp.
5162
5163 # Check whether --with-mpfr-dir was given.
5164 if test "${with_mpfr_dir+set}" = set; then :
5165   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5166 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5167 fi
5168
5169
5170
5171 # Check whether --with-mpfr was given.
5172 if test "${with_mpfr+set}" = set; then :
5173   withval=$with_mpfr;
5174 fi
5175
5176
5177 # Check whether --with-mpfr-include was given.
5178 if test "${with_mpfr_include+set}" = set; then :
5179   withval=$with_mpfr_include;
5180 fi
5181
5182
5183 # Check whether --with-mpfr-lib was given.
5184 if test "${with_mpfr_lib+set}" = set; then :
5185   withval=$with_mpfr_lib;
5186 fi
5187
5188
5189 if test "x$with_mpfr" != x; then
5190   gmplibs="-L$with_mpfr/lib $gmplibs"
5191   gmpinc="-I$with_mpfr/include $gmpinc"
5192 fi
5193 if test "x$with_mpfr_include" != x; then
5194   gmpinc="-I$with_mpfr_include $gmpinc"
5195 fi
5196 if test "x$with_mpfr_lib" != x; then
5197   gmplibs="-L$with_mpfr_lib $gmplibs"
5198 fi
5199 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5200   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5201   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5202   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5203   # Do not test the mpfr version.  Assume that it is sufficient, since
5204   # it is in the source tree, and the library has not been built yet
5205   # but it would be included on the link line in the version check below
5206   # hence making the test fail.
5207   have_gmp=yes
5208 fi
5209
5210 # Specify a location for gmp
5211
5212 # Check whether --with-gmp-dir was given.
5213 if test "${with_gmp_dir+set}" = set; then :
5214   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5215 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5216 fi
5217
5218
5219
5220 # Check whether --with-gmp was given.
5221 if test "${with_gmp+set}" = set; then :
5222   withval=$with_gmp;
5223 fi
5224
5225
5226 # Check whether --with-gmp-include was given.
5227 if test "${with_gmp_include+set}" = set; then :
5228   withval=$with_gmp_include;
5229 fi
5230
5231
5232 # Check whether --with-gmp-lib was given.
5233 if test "${with_gmp_lib+set}" = set; then :
5234   withval=$with_gmp_lib;
5235 fi
5236
5237
5238
5239 if test "x$with_gmp" != x; then
5240   gmplibs="-L$with_gmp/lib $gmplibs"
5241   gmpinc="-I$with_gmp/include $gmpinc"
5242 fi
5243 if test "x$with_gmp_include" != x; then
5244   gmpinc="-I$with_gmp_include $gmpinc"
5245 fi
5246 if test "x$with_gmp_lib" != x; then
5247   gmplibs="-L$with_gmp_lib $gmplibs"
5248 fi
5249 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5250   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5251   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5252   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5253   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5254   # Do not test the gmp version.  Assume that it is sufficient, since
5255   # it is in the source tree, and the library has not been built yet
5256   # but it would be included on the link line in the version check below
5257   # hence making the test fail.
5258   have_gmp=yes
5259 fi
5260
5261 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5262   have_gmp=yes
5263   saved_CFLAGS="$CFLAGS"
5264   CFLAGS="$CFLAGS $gmpinc"
5265   # Check for the recommended and required versions of GMP.
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5267 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5268
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h.  */
5271 #include "gmp.h"
5272 int
5273 main ()
5274 {
5275
5276   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5277   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5278   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5279   choke me
5280   #endif
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"; then :
5287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289 #include <gmp.h>
5290 int
5291 main ()
5292 {
5293
5294   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5295   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5296   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5297   choke me
5298   #endif
5299
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5309 $as_echo "buggy but acceptable" >&6; }
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 else
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }; have_gmp=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317
5318   # If we have GMP, check the MPFR version.
5319   if test x"$have_gmp" = xyes; then
5320     # Check for the recommended and required versions of MPFR.
5321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5322 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325 #include <gmp.h>
5326     #include <mpfr.h>
5327 int
5328 main ()
5329 {
5330
5331     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5332     choke me
5333     #endif
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"; then :
5340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h.  */
5342 #include <gmp.h>
5343     #include <mpfr.h>
5344 int
5345 main ()
5346 {
5347
5348     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5349     choke me
5350     #endif
5351
5352   ;
5353   return 0;
5354 }
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5361 $as_echo "buggy but acceptable" >&6; }
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }; have_gmp=no
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369   fi
5370
5371   # Check for the MPC header version.
5372   if test x"$have_gmp" = xyes ; then
5373     # Check for the recommended and required versions of MPC.
5374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5375 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5376     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #include <mpc.h>
5379 int
5380 main ()
5381 {
5382
5383     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5384     choke me
5385     #endif
5386
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h.  */
5394 #include <mpc.h>
5395 int
5396 main ()
5397 {
5398
5399     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5400     choke me
5401     #endif
5402
5403   ;
5404   return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409 $as_echo "yes" >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5412 $as_echo "buggy but acceptable" >&6; }
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 else
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }; have_gmp=no
5418 fi
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420   fi
5421
5422   # Now check the MPFR library.
5423   if test x"$have_gmp" = xyes; then
5424     saved_LIBS="$LIBS"
5425     LIBS="$LIBS $gmplibs"
5426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5427 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5428     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h.  */
5430 #include <mpc.h>
5431 int
5432 main ()
5433 {
5434
5435     mpfr_t n;
5436     mpfr_t x;
5437     mpc_t c;
5438     int t;
5439     mpfr_init (n);
5440     mpfr_init (x);
5441     mpfr_atan2 (n, n, x, GMP_RNDN);
5442     mpfr_erfc (n, x, GMP_RNDN);
5443     mpfr_subnormalize (x, t, GMP_RNDN);
5444     mpfr_clear(n);
5445     mpfr_clear(x);
5446     mpc_init2 (c, 53);
5447     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5448     mpc_cosh (c, c, MPC_RNDNN);
5449     mpc_pow (c, c, c, MPC_RNDNN);
5450     mpc_acosh (c, c, MPC_RNDNN);
5451     mpc_clear (c);
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_link "$LINENO"; then :
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459 $as_echo "yes" >&6; }
5460 else
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }; have_gmp=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext \
5465     conftest$ac_exeext conftest.$ac_ext
5466     LIBS="$saved_LIBS"
5467   fi
5468
5469   CFLAGS="$saved_CFLAGS"
5470
5471 # The library versions listed in the error message below should match
5472 # the HARD-minimums enforced above.
5473   if test x$have_gmp != xyes; then
5474     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5475 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5476 their locations.  Source code for these libraries can be found at
5477 their respective hosting sites as well as at
5478 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5479 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5480 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5481 make sure that you have installed both the libraries and the header
5482 files.  They may be located in separate packages." "$LINENO" 5
5483   fi
5484 fi
5485
5486 # Flags needed for both GMP, MPFR and/or MPC.
5487
5488
5489
5490
5491
5492
5493 # Allow host libstdc++ to be specified for static linking with PPL.
5494
5495 # Check whether --with-host-libstdcxx was given.
5496 if test "${with_host_libstdcxx+set}" = set; then :
5497   withval=$with_host_libstdcxx;
5498 fi
5499
5500
5501 case $with_host_libstdcxx in
5502   no|yes)
5503     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5504     ;;
5505 esac
5506
5507 # Linker flags to use for stage1 or when not boostrapping.
5508
5509 # Check whether --with-stage1-ldflags was given.
5510 if test "${with_stage1_ldflags+set}" = set; then :
5511   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5512    stage1_ldflags=
5513  else
5514    stage1_ldflags=$withval
5515  fi
5516 else
5517   stage1_ldflags=
5518 fi
5519
5520
5521
5522 # Libraries to use for stage1 or when not bootstrapping.
5523
5524 # Check whether --with-stage1-libs was given.
5525 if test "${with_stage1_libs+set}" = set; then :
5526   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5527    stage1_libs=
5528  else
5529    stage1_libs=$withval
5530  fi
5531 else
5532   stage1_libs=$with_host_libstdcxx
5533 fi
5534
5535
5536
5537 # Libraries to use for stage2 and later builds.  This defaults to the
5538 # argument passed to --with-host-libstdcxx.
5539
5540 # Check whether --with-boot-libs was given.
5541 if test "${with_boot_libs+set}" = set; then :
5542   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5543    poststage1_libs=
5544  else
5545    poststage1_libs=$withval
5546  fi
5547 else
5548   poststage1_libs=$with_host_libstdcxx
5549 fi
5550
5551
5552
5553 # Linker flags to use for stage2 and later builds.
5554
5555 # Check whether --with-boot-ldflags was given.
5556 if test "${with_boot_ldflags+set}" = set; then :
5557   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5558    poststage1_ldflags=
5559  else
5560    poststage1_ldflags=$withval
5561  fi
5562 else
5563   poststage1_ldflags=
5564  # In stages 2 and 3, default to linking libstdc++ and libgcc
5565  # statically.  But if the user explicitly specified the libraries to
5566  # use, trust that they are doing what they want.
5567  if test "$poststage1_libs" = ""; then
5568    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5569  fi
5570 fi
5571
5572
5573
5574 # Check for PPL
5575 ppllibs=
5576 pplinc=
5577 pwllib=
5578
5579
5580 # Check whether --with-ppl was given.
5581 if test "${with_ppl+set}" = set; then :
5582   withval=$with_ppl;
5583 fi
5584
5585
5586 # Check whether --with-ppl-include was given.
5587 if test "${with_ppl_include+set}" = set; then :
5588   withval=$with_ppl_include;
5589 fi
5590
5591
5592 # Check whether --with-ppl-lib was given.
5593 if test "${with_ppl_lib+set}" = set; then :
5594   withval=$with_ppl_lib;
5595 fi
5596
5597
5598 # Check whether --enable-ppl-version-check was given.
5599 if test "${enable_ppl_version_check+set}" = set; then :
5600   enableval=$enable_ppl_version_check;
5601 fi
5602
5603
5604 case $with_ppl in
5605   yes | no | "")
5606     ;;
5607   *)
5608     ppllibs="-L$with_ppl/lib"
5609     pplinc="-I$with_ppl/include $pplinc"
5610     if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5611       with_ppl=yes
5612     else
5613       as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5614     fi
5615     ;;
5616 esac
5617
5618 if test x"$with_ppl_include" != x; then
5619   pplinc="-I$with_ppl_include $pplinc"
5620   with_ppl=yes
5621 fi
5622
5623 if test "x$with_ppl_lib" != x; then
5624   ppllibs="-L$with_ppl_lib"
5625   with_ppl=yes
5626 fi
5627
5628 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5629   if test x"$enable_watchdog" = xyes; then
5630     pwllib="-lpwl"
5631   fi
5632   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5633   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5634   enable_ppl_version_check=no
5635   with_ppl=yes
5636 fi
5637
5638 if test "x$with_ppl" != xno; then
5639   if test "x$pwllib" = x; then
5640     saved_LIBS="$LIBS"
5641     LIBS="$LIBS $ppllibs -lstdc++ -lm"
5642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5643 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5644 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   ac_check_lib_save_LIBS=$LIBS
5648 LIBS="-lpwl  $LIBS"
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h.  */
5651
5652 /* Override any GCC internal prototype to avoid an error.
5653    Use char because int might match the return type of a GCC
5654    builtin and then its argument prototype would still apply.  */
5655 #ifdef __cplusplus
5656 extern "C"
5657 #endif
5658 char PWL_handle_timeout ();
5659 int
5660 main ()
5661 {
5662 return PWL_handle_timeout ();
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_link "$LINENO"; then :
5668   ac_cv_lib_pwl_PWL_handle_timeout=yes
5669 else
5670   ac_cv_lib_pwl_PWL_handle_timeout=no
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext \
5673     conftest$ac_exeext conftest.$ac_ext
5674 LIBS=$ac_check_lib_save_LIBS
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5677 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5678 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5679   pwllib="-lpwl"
5680 fi
5681
5682     LIBS="$saved_LIBS"
5683   fi
5684
5685   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5686
5687   if test "$enable_ppl_version_check" != no; then
5688     saved_CFLAGS="$CFLAGS"
5689     CFLAGS="$CFLAGS $pplinc $gmpinc"
5690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5691 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694 #include "ppl_c.h"
5695 int
5696 main ()
5697 {
5698
5699     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5700     choke me
5701     #endif
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709 $as_echo "yes" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715     CFLAGS="$saved_CFLAGS"
5716   fi
5717 fi
5718
5719 # Flags needed for PPL
5720
5721
5722
5723
5724 # Check for CLOOG
5725
5726
5727
5728 # Check whether --with-cloog was given.
5729 if test "${with_cloog+set}" = set; then :
5730   withval=$with_cloog;
5731 fi
5732
5733
5734 # Check whether --with-cloog-include was given.
5735 if test "${with_cloog_include+set}" = set; then :
5736   withval=$with_cloog_include;
5737 fi
5738
5739
5740 # Check whether --with-cloog-lib was given.
5741 if test "${with_cloog_lib+set}" = set; then :
5742   withval=$with_cloog_lib;
5743 fi
5744
5745
5746   # Check whether --enable-cloog-backend was given.
5747 if test "${enable_cloog_backend+set}" = set; then :
5748   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5749         cloog_backend=isl
5750       elif test "x${enableval}" = "xppl"; then
5751         cloog_backend=ppl
5752       else
5753         cloog_backend=ppl-legacy
5754       fi
5755 else
5756   cloog_backend=ppl-legacy
5757 fi
5758
5759   # Check whether --enable-cloog-version-check was given.
5760 if test "${enable_cloog_version_check+set}" = set; then :
5761   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5762 else
5763   ENABLE_CLOOG_CHECK=yes
5764 fi
5765
5766
5767   # Initialize clooglibs and clooginc.
5768   case $with_cloog in
5769     no)
5770       clooglibs=
5771       clooginc=
5772       ;;
5773     "" | yes)
5774       ;;
5775     *)
5776       clooglibs="-L$with_cloog/lib"
5777       clooginc="-I$with_cloog/include"
5778       ;;
5779   esac
5780   if test "x${with_cloog_include}" != x ; then
5781     clooginc="-I$with_cloog_include"
5782   fi
5783   if test "x${with_cloog_lib}" != x; then
5784     clooglibs="-L$with_cloog_lib"
5785   fi
5786
5787
5788
5789
5790
5791 if test "x$with_ppl" = "xno"; then
5792
5793
5794
5795   if test "x${with_cloog}" = xno; then
5796     graphite_requested=no
5797   elif test "x${with_cloog}" != x \
5798     || test "x${with_cloog_include}" != x \
5799     || test "x${with_cloog_lib}" != x ; then
5800     graphite_requested=yes
5801   else
5802     graphite_requested=no
5803   fi
5804
5805
5806   if test "${graphite_requested}" = yes; then
5807     as_fn_error "Unable to find a usable PPL.  See config.log for details." "$LINENO" 5
5808   fi
5809   with_cloog=no
5810 fi
5811 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5812   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5813   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5814   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5815 fi
5816 if test "x$with_cloog" != "xno"; then
5817
5818
5819
5820   _cloog_saved_CFLAGS=$CFLAGS
5821   _cloog_saved_CPPFLAGS=$CPPFLAGS
5822   _cloog_saved_LDFLAGS=$LDFLAGS
5823   _cloog_saved_LIBS=$LIBS
5824
5825   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5826
5827     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5828   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5829   LDFLAGS="${LDFLAGS} ${clooglibs}"
5830
5831   case $cloog_backend in
5832     "ppl-legacy")
5833     CFLAGS="${CFLAGS} ${pplinc}"
5834     LDFLAGS="${LDFLAGS} ${ppllibs}"
5835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5836 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5837 if test "${gcc_cv_cloog_type+set}" = set; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   LIBS="-lcloog ${_cloog_saved_LIBS}"
5841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h.  */
5843 #include "cloog/cloog.h"
5844 int
5845 main ()
5846 {
5847 #ifndef CLOOG_PPL_BACKEND
5848     choke me
5849    #endif
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_link "$LINENO"; then :
5855   gcc_cv_cloog_type="PPL Legacy"
5856 else
5857   gcc_cv_cloog_type=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext \
5860     conftest$ac_exeext conftest.$ac_ext
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5863 $as_echo "$gcc_cv_cloog_type" >&6; }
5864     ;;
5865     "isl")
5866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5867 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5868 if test "${gcc_cv_cloog_type+set}" = set; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5872       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h.  */
5874 #include "cloog/cloog.h"
5875 int
5876 main ()
5877 {
5878 cloog_version ()
5879   ;
5880   return 0;
5881 }
5882 _ACEOF
5883 if ac_fn_c_try_link "$LINENO"; then :
5884   gcc_cv_cloog_type="ISL"
5885 else
5886   gcc_cv_cloog_type=no
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext \
5889     conftest$ac_exeext conftest.$ac_ext
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5892 $as_echo "$gcc_cv_cloog_type" >&6; }
5893     ;;
5894     "ppl")
5895     CFLAGS="${CFLAGS} ${pplinc}"
5896     LDFLAGS="${LDFLAGS} ${ppllibs}"
5897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5898 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5899 if test "${gcc_cv_cloog_type+set}" = set; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h.  */
5905 #include "cloog/cloog.h"
5906    #include "cloog/ppl/cloog.h"
5907 int
5908 main ()
5909 {
5910 cloog_version ()
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_link "$LINENO"; then :
5916   gcc_cv_cloog_type="PPL"
5917 else
5918   gcc_cv_cloog_type=no
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext \
5921     conftest$ac_exeext conftest.$ac_ext
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5924 $as_echo "$gcc_cv_cloog_type" >&6; }
5925     ;;
5926     *)
5927       gcc_cv_cloog_type=""
5928   esac
5929
5930   case $gcc_cv_cloog_type in
5931     "PPL Legacy")
5932       clooginc="${clooginc}"
5933       clooglibs="${clooglibs} -lcloog"
5934       cloog_org=no
5935       ;;
5936     "ISL")
5937       clooginc="${clooginc} ${_cloogorginc}"
5938       clooglibs="${clooglibs} -lcloog-isl -lisl"
5939       cloog_org=yes
5940       ;;
5941     "PPL")
5942       clooginc="${clooginc} ${_cloogorginc}"
5943       clooglibs="${clooglibs} -lcloog-ppl"
5944       cloog_org=yes
5945       ;;
5946     *)
5947       clooglibs=
5948       clooginc=
5949       cloog_org=
5950       ;;
5951   esac
5952
5953   LIBS=$_cloog_saved_LIBS
5954   CFLAGS=$_cloog_saved_CFLAGS
5955   CPPFLAGS=$_cloog_saved_CPPFLAGS
5956   LDFLAGS=$_cloog_saved_LDFLAGS
5957
5958
5959
5960
5961
5962   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5963     _cloog_saved_CFLAGS=$CFLAGS
5964     _cloog_saved_LDFLAGS=$LDFLAGS
5965
5966     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5967     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5968
5969     if test "${cloog_org}" = yes ; then
5970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5971 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5972 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h.  */
5977 #include "cloog/cloog.h"
5978 int
5979 main ()
5980 {
5981 #if CLOOG_VERSION_MAJOR != 0 \
5982     || CLOOG_VERSION_MINOR != 16 \
5983     || CLOOG_VERSION_REVISION < 1
5984     choke me
5985    #endif
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991   gcc_cv_cloog_ct_0_14_0=yes
5992 else
5993   gcc_cv_cloog_ct_0_14_0=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5998 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5999     elif test "${cloog_org}" = no ; then
6000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
6001 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
6002 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h.  */
6007 #include "cloog/cloog.h"
6008 int
6009 main ()
6010 {
6011 #if CLOOG_VERSION_MAJOR != 0 \
6012     || CLOOG_VERSION_MINOR != 15 \
6013     || CLOOG_VERSION_REVISION < 5
6014     choke me
6015    #endif
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"; then :
6021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023 #include "cloog/cloog.h"
6024 int
6025 main ()
6026 {
6027 #if CLOOG_VERSION_MAJOR != 0 \
6028     || CLOOG_VERSION_MINOR != 15 \
6029     || CLOOG_VERSION_REVISION < 9
6030     choke me
6031    #endif
6032   ;
6033   return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037   gcc_cv_cloog_ct_0_15_5=yes
6038 else
6039   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 else
6043   gcc_cv_cloog_ct_0_15_5=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6048 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6049     fi
6050
6051     CFLAGS=$_cloog_saved_CFLAGS
6052     LDFLAGS=$_cloog_saved_LDFLAGS
6053   fi
6054
6055
6056
6057
6058
6059
6060
6061   if test "x${with_cloog}" = xno; then
6062     graphite_requested=no
6063   elif test "x${with_cloog}" != x \
6064     || test "x${with_cloog_include}" != x \
6065     || test "x${with_cloog_lib}" != x ; then
6066     graphite_requested=yes
6067   else
6068     graphite_requested=no
6069   fi
6070
6071
6072
6073   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6074     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6075     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6076     clooglibs=
6077     clooginc=
6078   fi
6079
6080   if test "${graphite_requested}" = yes \
6081     && test "x${clooglibs}" = x \
6082     && test "x${clooginc}" = x ; then
6083
6084     as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
6085   fi
6086
6087
6088 fi
6089
6090 # Check for LTO support.
6091 # Check whether --enable-lto was given.
6092 if test "${enable_lto+set}" = set; then :
6093   enableval=$enable_lto; enable_lto=$enableval
6094 else
6095   enable_lto=yes; default_enable_lto=yes
6096 fi
6097
6098
6099
6100
6101
6102 target_elf=no
6103 case $target in
6104   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6105   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6106   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6107     target_elf=no
6108     ;;
6109   *)
6110     target_elf=yes
6111     ;;
6112 esac
6113
6114 if test $target_elf = yes; then :
6115   # ELF platforms build the lto-plugin always.
6116   build_lto_plugin=yes
6117
6118 else
6119   if test x"$default_enable_lto" = x"yes" ; then
6120     case $target in
6121       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6122       # On other non-ELF platforms, LTO has yet to be validated.
6123       *) enable_lto=no ;;
6124     esac
6125   else
6126   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6127   # It would also be nice to check the binutils support, but we don't
6128   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6129   # warn during gcc/ subconfigure; unless you're bootstrapping with
6130   # -flto it won't be needed until after installation anyway.
6131     case $target in
6132       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6133       *) if test x"$enable_lto" = x"yes"; then
6134         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6135         fi
6136       ;;
6137     esac
6138   fi
6139   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6140   # Build it unless LTO was explicitly disabled.
6141   case $target in
6142     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6143     *) ;;
6144   esac
6145
6146 fi
6147
6148
6149
6150 # By default, C is the only stage 1 language.
6151 stage1_languages=,c,
6152
6153 # Target libraries that we bootstrap.
6154 bootstrap_target_libs=,target-libgcc,
6155
6156 # Figure out what language subdirectories are present.
6157 # Look if the user specified --enable-languages="..."; if not, use
6158 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6159 # go away some day.
6160 # NB:  embedded tabs in this IF block -- do not untabify
6161 if test -d ${srcdir}/gcc; then
6162   if test x"${enable_languages+set}" != xset; then
6163     if test x"${LANGUAGES+set}" = xset; then
6164       enable_languages="${LANGUAGES}"
6165         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6166     else
6167       enable_languages=all
6168     fi
6169   else
6170     if test x"${enable_languages}" = x ||
6171        test x"${enable_languages}" = xyes;
6172        then
6173       echo configure.in: --enable-languages needs at least one language argument 1>&2
6174       exit 1
6175     fi
6176   fi
6177   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6178
6179   # 'f95' is the old name for the 'fortran' language. We issue a warning
6180   # and make the substitution.
6181   case ,${enable_languages}, in
6182     *,f95,*)
6183       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6184       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6185       ;;
6186   esac
6187
6188   # If bootstrapping, then using --enable-build-with-cxx or
6189   # --enable-build-poststage1-with-cxx requires enabling C++.
6190   case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6191     *,c++,*:*:*) ;;
6192     *:*,yes,*:yes)
6193       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6194         enable_languages="${enable_languages},c++"
6195       else
6196         as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6197       fi
6198       ;;
6199   esac
6200
6201   # First scan to see if an enabled language requires some other language.
6202   # We assume that a given config-lang.in will list all the language
6203   # front ends it requires, even if some are required indirectly.
6204   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6205     case ${lang_frag} in
6206       ..) ;;
6207       # The odd quoting in the next line works around
6208       # an apparent bug in bash 1.12 on linux.
6209       ${srcdir}/gcc/[*]/config-lang.in) ;;
6210       *)
6211         # From the config-lang.in, get $language, $lang_requires, and
6212         # $lang_requires_boot_languages.
6213         language=
6214         lang_requires=
6215         lang_requires_boot_languages=
6216         . ${lang_frag}
6217         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6218           case ,${enable_languages}, in
6219             *,$other,*) ;;
6220             *,all,*) ;;
6221             *,$language,*)
6222               echo " \`$other' language required by \`$language'; enabling" 1>&2
6223               enable_languages="${enable_languages},${other}"
6224               ;;
6225           esac
6226         done
6227         for other in ${lang_requires_boot_languages} ; do
6228           if test "$other" != "c"; then
6229             case ,${enable_stage1_languages}, in
6230               *,$other,*) ;;
6231               *,all,*) ;;
6232               *)
6233                 case ,${enable_languages}, in
6234                   *,$language,*)
6235                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6236                     enable_stage1_languages="$enable_stage1_languages,${other}"
6237                     ;;
6238                 esac
6239                 ;;
6240             esac
6241           fi
6242         done
6243         ;;
6244     esac
6245   done
6246
6247   new_enable_languages=,c,
6248
6249   # If LTO is enabled, add the LTO front end.
6250   extra_host_libiberty_configure_flags=
6251   if test "$enable_lto" = "yes" ; then
6252     case ,${enable_languages}, in
6253       *,lto,*) ;;
6254       *) enable_languages="${enable_languages},lto" ;;
6255     esac
6256     if test "${build_lto_plugin}" = "yes" ; then
6257       configdirs="$configdirs lto-plugin"
6258       extra_host_libiberty_configure_flags=--enable-shared
6259     fi
6260   fi
6261
6262
6263   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6264   potential_languages=,c,
6265
6266   enabled_target_libs=
6267   disabled_target_libs=
6268
6269   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6270     case ${lang_frag} in
6271       ..) ;;
6272       # The odd quoting in the next line works around
6273       # an apparent bug in bash 1.12 on linux.
6274       ${srcdir}/gcc/[*]/config-lang.in) ;;
6275       *)
6276         # From the config-lang.in, get $language, $target_libs,
6277         # $lang_dirs, $boot_language, and $build_by_default
6278         language=
6279         target_libs=
6280         lang_dirs=
6281         subdir_requires=
6282         boot_language=no
6283         build_by_default=yes
6284         . ${lang_frag}
6285         if test x${language} = x; then
6286           echo "${lang_frag} doesn't set \$language." 1>&2
6287           exit 1
6288         fi
6289
6290         if test "$language" = "c++"; then
6291           if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6292              || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6293             boot_language=yes
6294           fi
6295         fi
6296
6297         case ,${enable_languages}, in
6298           *,${language},*)
6299             # Language was explicitly selected; include it.
6300             add_this_lang=yes
6301             ;;
6302           *,all,*)
6303             # 'all' was selected, select it if it is a default language
6304             add_this_lang=${build_by_default}
6305             ;;
6306           *)
6307             add_this_lang=no
6308             ;;
6309         esac
6310
6311         # Disable languages that need other directories if these aren't available.
6312         for i in $subdir_requires; do
6313           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6314           case ,${enable_languages}, in
6315             *,${language},*)
6316               # Specifically requested language; tell them.
6317               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6318               ;;
6319             *)
6320               # Silently disable.
6321               add_this_lang=unsupported
6322               ;;
6323           esac
6324         done
6325
6326         # Disable Ada if no preexisting GNAT is available.
6327         case ,${enable_languages},:${language}:${have_gnat} in
6328           *,${language},*:ada:no)
6329             # Specifically requested language; tell them.
6330             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6331             ;;
6332           *:ada:no)
6333             # Silently disable.
6334             add_this_lang=unsupported
6335             ;;
6336         esac
6337
6338         # Disable a language that is unsupported by the target.
6339         case " $unsupported_languages " in
6340           *" $language "*)
6341             add_this_lang=unsupported
6342             ;;
6343         esac
6344
6345         case $add_this_lang in
6346           unsupported)
6347             # Remove language-dependent dirs.
6348             disabled_target_libs="$disabled_target_libs $target_libs"
6349             noconfigdirs="$noconfigdirs $lang_dirs"
6350             ;;
6351           no)
6352             # Remove language-dependent dirs; still show language as supported.
6353             disabled_target_libs="$disabled_target_libs $target_libs"
6354             noconfigdirs="$noconfigdirs $lang_dirs"
6355             potential_languages="${potential_languages}${language},"
6356             ;;
6357           yes)
6358             new_enable_languages="${new_enable_languages}${language},"
6359             potential_languages="${potential_languages}${language},"
6360             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6361             enabled_target_libs="$enabled_target_libs $target_libs"
6362             case "${boot_language}:,$enable_stage1_languages," in
6363               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6364                 # Add to (comma-separated) list of stage 1 languages.
6365                 case ",$stage1_languages," in
6366                   *,$language,* | ,yes, | ,all,) ;;
6367                   *) stage1_languages="${stage1_languages}${language}," ;;
6368                 esac
6369                 # We need to bootstrap any supporting libraries.
6370                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6371                 ;;
6372             esac
6373             ;;
6374         esac
6375         ;;
6376     esac
6377   done
6378
6379   # Add target libraries which are only needed for disabled languages
6380   # to noconfigdirs.
6381   if test -n "$disabled_target_libs"; then
6382     for dir in $disabled_target_libs; do
6383       case " $enabled_target_libs " in
6384       *" ${dir} "*) ;;
6385       *) noconfigdirs="$noconfigdirs $dir" ;;
6386       esac
6387     done
6388   fi
6389
6390   # Check whether --enable-stage1-languages was given.
6391 if test "${enable_stage1_languages+set}" = set; then :
6392   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6393     ,no,|,,)
6394       # Set it to something that will have no effect in the loop below
6395       enable_stage1_languages=c ;;
6396     ,yes,)
6397       enable_stage1_languages=`echo $new_enable_languages | \
6398         sed -e "s/^,//" -e "s/,$//" ` ;;
6399     *,all,*)
6400       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6401         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6402   esac
6403
6404   # Add "good" languages from enable_stage1_languages to stage1_languages,
6405   # while "bad" languages go in missing_languages.  Leave no duplicates.
6406   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6407     case $potential_languages in
6408       *,$i,*)
6409         case $stage1_languages in
6410           *,$i,*) ;;
6411           *) stage1_languages="$stage1_languages$i," ;;
6412         esac ;;
6413       *)
6414         case $missing_languages in
6415           *,$i,*) ;;
6416           *) missing_languages="$missing_languages$i," ;;
6417         esac ;;
6418      esac
6419   done
6420 fi
6421
6422
6423   # Remove leading/trailing commas that were added for simplicity
6424   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6425   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6426   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6427   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6428
6429   if test "x$missing_languages" != x; then
6430     as_fn_error "
6431 The following requested languages could not be built: ${missing_languages}
6432 Supported languages are: ${potential_languages}" "$LINENO" 5
6433   fi
6434   if test "x$new_enable_languages" != "x$enable_languages"; then
6435     echo The following languages will be built: ${new_enable_languages}
6436     enable_languages="$new_enable_languages"
6437   fi
6438
6439
6440   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6441 fi
6442
6443 # Handle --disable-<component> generically.
6444 for dir in $configdirs $build_configdirs $target_configdirs ; do
6445   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6446   varname=`echo $dirname | sed -e s/+/_/g`
6447   if eval test x\${enable_${varname}} "=" xno ; then
6448     noconfigdirs="$noconfigdirs $dir"
6449   fi
6450 done
6451
6452 # Check for Boehm's garbage collector
6453 # Check whether --enable-objc-gc was given.
6454 if test "${enable_objc_gc+set}" = set; then :
6455   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6456   *,objc,*:*:yes:*target-boehm-gc*)
6457     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6458     ;;
6459 esac
6460 fi
6461
6462
6463 # Make sure we only build Boehm's garbage collector if required.
6464 case ,${enable_languages},:${enable_objc_gc} in
6465   *,objc,*:yes)
6466     # Keep target-boehm-gc if requested for Objective-C.
6467     ;;
6468   *)
6469     # Otherwise remove target-boehm-gc depending on target-libjava.
6470     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6471       noconfigdirs="$noconfigdirs target-boehm-gc"
6472     fi
6473     ;;
6474 esac
6475
6476 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6477 # $build_configdirs and $target_configdirs.
6478 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6479
6480 notsupp=""
6481 for dir in . $skipdirs $noconfigdirs ; do
6482   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6483   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6485     if test -r $srcdir/$dirname/configure ; then
6486       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6487         true
6488       else
6489         notsupp="$notsupp $dir"
6490       fi
6491     fi
6492   fi
6493   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6495     if test -r $srcdir/$dirname/configure ; then
6496       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6497         true
6498       else
6499         notsupp="$notsupp $dir"
6500       fi
6501     fi
6502   fi
6503   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6504     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6505     if test -r $srcdir/$dirname/configure ; then
6506       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6507         true
6508       else
6509         notsupp="$notsupp $dir"
6510       fi
6511     fi
6512   fi
6513 done
6514
6515 # Quietly strip out all directories which aren't configurable in this tree.
6516 # This relies on all configurable subdirectories being autoconfiscated, which
6517 # is now the case.
6518 build_configdirs_all="$build_configdirs"
6519 build_configdirs=
6520 for i in ${build_configdirs_all} ; do
6521   j=`echo $i | sed -e s/build-//g`
6522   if test -f ${srcdir}/$j/configure ; then
6523     build_configdirs="${build_configdirs} $i"
6524   fi
6525 done
6526
6527 configdirs_all="$configdirs"
6528 configdirs=
6529 for i in ${configdirs_all} ; do
6530   if test -f ${srcdir}/$i/configure ; then
6531     configdirs="${configdirs} $i"
6532   fi
6533 done
6534
6535 target_configdirs_all="$target_configdirs"
6536 target_configdirs=
6537 for i in ${target_configdirs_all} ; do
6538   j=`echo $i | sed -e s/target-//g`
6539   if test -f ${srcdir}/$j/configure ; then
6540     target_configdirs="${target_configdirs} $i"
6541   fi
6542 done
6543
6544 # Produce a warning message for the subdirs we can't configure.
6545 # This isn't especially interesting in the Cygnus tree, but in the individual
6546 # FSF releases, it's important to let people know when their machine isn't
6547 # supported by the one or two programs in a package.
6548
6549 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6550   # If $appdirs is non-empty, at least one of those directories must still
6551   # be configured, or we error out.  (E.g., if the gas release supports a
6552   # specified target in some subdirs but not the gas subdir, we shouldn't
6553   # pretend that all is well.)
6554   if test -n "$appdirs" ; then
6555     for dir in $appdirs ; do
6556       if test -r $dir/Makefile.in ; then
6557         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6558           appdirs=""
6559           break
6560         fi
6561         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6562           appdirs=""
6563           break
6564         fi
6565       fi
6566     done
6567     if test -n "$appdirs" ; then
6568       echo "*** This configuration is not supported by this package." 1>&2
6569       exit 1
6570     fi
6571   fi
6572   # Okay, some application will build, or we don't care to check.  Still
6573   # notify of subdirs not getting built.
6574   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6575   echo "    ${notsupp}" 1>&2
6576   echo "    (Any other directories should still work fine.)" 1>&2
6577 fi
6578
6579 case "$host" in
6580   *msdosdjgpp*)
6581     enable_gdbtk=no ;;
6582 esac
6583
6584 # To find our prefix, in gcc_cv_tool_prefix.
6585
6586 # The user is always right.
6587 if test "${PATH_SEPARATOR+set}" != set; then
6588   echo "#! /bin/sh" >conf$$.sh
6589   echo  "exit 0"   >>conf$$.sh
6590   chmod +x conf$$.sh
6591   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6592     PATH_SEPARATOR=';'
6593   else
6594     PATH_SEPARATOR=:
6595   fi
6596   rm -f conf$$.sh
6597 fi
6598
6599
6600
6601 if test "x$exec_prefix" = xNONE; then
6602         if test "x$prefix" = xNONE; then
6603                 gcc_cv_tool_prefix=$ac_default_prefix
6604         else
6605                 gcc_cv_tool_prefix=$prefix
6606         fi
6607 else
6608         gcc_cv_tool_prefix=$exec_prefix
6609 fi
6610
6611 # If there is no compiler in the tree, use the PATH only.  In any
6612 # case, if there is no compiler in the tree nobody should use
6613 # AS_FOR_TARGET and LD_FOR_TARGET.
6614 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6615     gcc_version=`cat $srcdir/gcc/BASE-VER`
6616     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6617     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6618     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6619     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6620     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6621     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6622 else
6623     gcc_cv_tool_dirs=
6624 fi
6625
6626 if test x$build = x$target && test -n "$md_exec_prefix"; then
6627         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6628 fi
6629
6630
6631
6632 copy_dirs=
6633
6634
6635 # Check whether --with-build-sysroot was given.
6636 if test "${with_build_sysroot+set}" = set; then :
6637   withval=$with_build_sysroot; if test x"$withval" != x ; then
6638      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6639    fi
6640 else
6641   SYSROOT_CFLAGS_FOR_TARGET=
6642 fi
6643
6644
6645
6646
6647 # Check whether --with-debug-prefix-map was given.
6648 if test "${with_debug_prefix_map+set}" = set; then :
6649   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6650      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6651      for debug_map in $withval; do
6652        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6653      done
6654    fi
6655 else
6656   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6657 fi
6658
6659
6660
6661 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6662 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6663 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6664 # We want to ensure that TARGET libraries (which we know are built with
6665 # gcc) are built with "-O2 -g", so include those options when setting
6666 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6667 if test "x$CFLAGS_FOR_TARGET" = x; then
6668   CFLAGS_FOR_TARGET=$CFLAGS
6669   case " $CFLAGS " in
6670     *" -O2 "*) ;;
6671     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6672   esac
6673   case " $CFLAGS " in
6674     *" -g "* | *" -g3 "*) ;;
6675     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6676   esac
6677 fi
6678
6679
6680 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6681   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6682   case " $CXXFLAGS " in
6683     *" -O2 "*) ;;
6684     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6685   esac
6686   case " $CXXFLAGS " in
6687     *" -g "* | *" -g3 "*) ;;
6688     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6689   esac
6690 fi
6691
6692
6693
6694
6695 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6696 # the named directory are copied to $(tooldir)/sys-include.
6697 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6698   if test x${is_cross_compiler} = xno ; then
6699     echo 1>&2 '***' --with-headers is only supported when cross compiling
6700     exit 1
6701   fi
6702   if test x"${with_headers}" != xyes ; then
6703     x=${gcc_cv_tool_prefix}
6704     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6705   fi
6706 fi
6707
6708 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6709 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6710 # are permitted.
6711 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6712   if test x${is_cross_compiler} = xno ; then
6713     echo 1>&2 '***' --with-libs is only supported when cross compiling
6714     exit 1
6715   fi
6716   if test x"${with_libs}" != xyes ; then
6717     # Copy the libraries in reverse order, so that files in the first named
6718     # library override files in subsequent libraries.
6719     x=${gcc_cv_tool_prefix}
6720     for l in ${with_libs}; do
6721       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6722     done
6723   fi
6724 fi
6725
6726 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6727 #
6728 # This is done by determining whether or not the appropriate directory
6729 # is available, and by checking whether or not specific configurations
6730 # have requested that this magic not happen.
6731 #
6732 # The command line options always override the explicit settings in
6733 # configure.in, and the settings in configure.in override this magic.
6734 #
6735 # If the default for a toolchain is to use GNU as and ld, and you don't
6736 # want to do that, then you should use the --without-gnu-as and
6737 # --without-gnu-ld options for the configure script.  Similarly, if
6738 # the default is to use the included zlib and you don't want to do that,
6739 # you should use the --with-system-zlib option for the configure script.
6740
6741 if test x${use_gnu_as} = x &&
6742    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6743   with_gnu_as=yes
6744   extra_host_args="$extra_host_args --with-gnu-as"
6745 fi
6746
6747 if test x${use_gnu_ld} = x &&
6748    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6749   with_gnu_ld=yes
6750   extra_host_args="$extra_host_args --with-gnu-ld"
6751 fi
6752
6753 if test x${use_included_zlib} = x &&
6754    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6755   :
6756 else
6757   with_system_zlib=yes
6758   extra_host_args="$extra_host_args --with-system-zlib"
6759 fi
6760
6761 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6762 # can detect this case.
6763
6764 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6765   with_newlib=yes
6766   extra_host_args="$extra_host_args --with-newlib"
6767 fi
6768
6769 # Handle ${copy_dirs}
6770 set fnord ${copy_dirs}
6771 shift
6772 while test $# != 0 ; do
6773   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6774     :
6775   else
6776     echo Copying $1 to $2
6777
6778     # Use the install script to create the directory and all required
6779     # parent directories.
6780     if test -d $2 ; then
6781       :
6782     else
6783       echo >config.temp
6784       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6785     fi
6786
6787     # Copy the directory, assuming we have tar.
6788     # FIXME: Should we use B in the second tar?  Not all systems support it.
6789     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6790
6791     # It is the responsibility of the user to correctly adjust all
6792     # symlinks.  If somebody can figure out how to handle them correctly
6793     # here, feel free to add the code.
6794
6795     echo $1 > $2/COPIED
6796   fi
6797   shift; shift
6798 done
6799
6800 # Determine a target-dependent exec_prefix that the installed
6801 # gcc will search in.  Keep this list sorted by triplet, with
6802 # the *-*-osname triplets last.
6803 md_exec_prefix=
6804 case "${target}" in
6805   i[34567]86-pc-msdosdjgpp*)
6806     md_exec_prefix=/dev/env/DJDIR/bin
6807     ;;
6808   *-*-hpux* | \
6809   *-*-nto-qnx* | \
6810   *-*-solaris2*)
6811     md_exec_prefix=/usr/ccs/bin
6812     ;;
6813 esac
6814
6815 extra_arflags_for_target=
6816 extra_nmflags_for_target=
6817 extra_ranlibflags_for_target=
6818 target_makefile_frag=/dev/null
6819 case "${target}" in
6820   spu-*-*)
6821     target_makefile_frag="config/mt-spu"
6822     ;;
6823   mips*-sde-elf*)
6824     target_makefile_frag="config/mt-sde"
6825     ;;
6826   mipsisa*-*-elfoabi*)
6827     target_makefile_frag="config/mt-mips-elfoabi"
6828     ;;
6829   mips*-*-*linux* | mips*-*-gnu*)
6830     target_makefile_frag="config/mt-mips-gnu"
6831     ;;
6832   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6833     target_makefile_frag="config/mt-gnu"
6834     ;;
6835   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6836     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6837     # commands to handle both 32-bit and 64-bit objects.  These flags are
6838     # harmless if we're using GNU nm or ar.
6839     extra_arflags_for_target=" -X32_64"
6840     extra_nmflags_for_target=" -B -X32_64"
6841     ;;
6842 esac
6843
6844 alphaieee_frag=/dev/null
6845 case $target in
6846   alpha*-*-*)
6847     # This just makes sure to use the -mieee option to build target libs.
6848     # This should probably be set individually by each library.
6849     alphaieee_frag="config/mt-alphaieee"
6850     ;;
6851 esac
6852
6853 # If --enable-target-optspace always use -Os instead of -O2 to build
6854 # the target libraries, similarly if it is not specified, use -Os
6855 # on selected platforms.
6856 ospace_frag=/dev/null
6857 case "${enable_target_optspace}:${target}" in
6858   yes:*)
6859     ospace_frag="config/mt-ospace"
6860     ;;
6861   :d30v-*)
6862     ospace_frag="config/mt-d30v"
6863     ;;
6864   :m32r-* | :d10v-* | :fr30-*)
6865     ospace_frag="config/mt-ospace"
6866     ;;
6867   no:* | :*)
6868     ;;
6869   *)
6870     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6871     ;;
6872 esac
6873
6874 # Default to using --with-stabs for certain targets.
6875 if test x${with_stabs} = x ; then
6876   case "${target}" in
6877   mips*-*-irix[56]*)
6878     ;;
6879   mips*-*-* | alpha*-*-osf*)
6880     with_stabs=yes;
6881     extra_host_args="${extra_host_args} --with-stabs"
6882     ;;
6883   esac
6884 fi
6885
6886 # Some systems (e.g., one of the i386-aix systems the gas testers are
6887 # using) don't handle "\$" correctly, so don't use it here.
6888 tooldir='${exec_prefix}'/${target_noncanonical}
6889 build_tooldir=${tooldir}
6890
6891 # Create a .gdbinit file which runs the one in srcdir
6892 # and tells GDB to look there for source files.
6893
6894 if test -r ${srcdir}/.gdbinit ; then
6895   case ${srcdir} in
6896     .) ;;
6897     *) cat > ./.gdbinit <<EOF
6898 # ${NO_EDIT}
6899 dir ${srcdir}
6900 dir .
6901 source ${srcdir}/.gdbinit
6902 EOF
6903     ;;
6904   esac
6905 fi
6906
6907 # Make sure that the compiler is able to generate an executable.  If it
6908 # can't, we are probably in trouble.  We don't care whether we can run the
6909 # executable--we might be using a cross compiler--we only care whether it
6910 # can be created.  At this point the main configure script has set CC.
6911 we_are_ok=no
6912 echo "int main () { return 0; }" > conftest.c
6913 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6914 if test $? = 0 ; then
6915   if test -s conftest || test -s conftest.exe ; then
6916     we_are_ok=yes
6917   fi
6918 fi
6919 case $we_are_ok in
6920   no)
6921     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6922     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6923     rm -f conftest*
6924     exit 1
6925     ;;
6926 esac
6927 rm -f conftest*
6928
6929 # Decide which environment variable is used to find dynamic libraries.
6930 case "${host}" in
6931   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6932   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6933   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6934   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6935 esac
6936
6937 # On systems where the dynamic library environment variable is PATH,
6938 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6939 # built executables to PATH.
6940 if test "$RPATH_ENVVAR" = PATH; then
6941   GCC_SHLIB_SUBDIR=/shlib
6942 else
6943   GCC_SHLIB_SUBDIR=
6944 fi
6945
6946 # Record target_configdirs and the configure arguments for target and
6947 # build configuration in Makefile.
6948 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6949 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6950
6951 # If we are building libgomp, bootstrap it.
6952 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6953   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6954 fi
6955
6956 # Determine whether gdb needs tk/tcl or not.
6957 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6958 # and in that case we want gdb to be built without tk.  Ugh!
6959 # In fact I believe gdb is the *only* package directly dependent on tk,
6960 # so we should be able to put the 'maybe's in unconditionally and
6961 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6962 # 100% sure that that's safe though.
6963
6964 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6965 case "$enable_gdbtk" in
6966   no)
6967     GDB_TK="" ;;
6968   yes)
6969     GDB_TK="${gdb_tk}" ;;
6970   *)
6971     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6972     # distro.  Eventually someone will fix this and move Insight, nee
6973     # gdbtk to a separate directory.
6974     if test -d ${srcdir}/gdb/gdbtk ; then
6975       GDB_TK="${gdb_tk}"
6976     else
6977       GDB_TK=""
6978     fi
6979     ;;
6980 esac
6981 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6982 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6983
6984 # Strip out unwanted targets.
6985
6986 # While at that, we remove Makefiles if we were started for recursive
6987 # configuration, so that the top-level Makefile reconfigures them,
6988 # like we used to do when configure itself was recursive.
6989
6990 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6991 # but now we're fixing up the Makefile ourselves with the additional
6992 # commands passed to AC_CONFIG_FILES.  Use separate variables
6993 # extrasub-{build,host,target} not because there is any reason to split
6994 # the substitutions up that way, but only to remain below the limit of
6995 # 99 commands in a script, for HP-UX sed.
6996 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6997
6998 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6999   yes:yes:*\ gold\ *:*,c++,*) ;;
7000   yes:yes:*\ gold\ *:*)
7001     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7002     ;;
7003 esac
7004
7005 # Adjust the toplevel makefile according to whether bootstrap was selected.
7006 case $enable_bootstrap in
7007   yes)
7008     bootstrap_suffix=bootstrap
7009     BUILD_CONFIG=bootstrap-debug
7010     ;;
7011   no)
7012     bootstrap_suffix=no-bootstrap
7013     BUILD_CONFIG=
7014     ;;
7015 esac
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7018 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7019
7020
7021 # Check whether --with-build-config was given.
7022 if test "${with_build_config+set}" = set; then :
7023   withval=$with_build_config; case $with_build_config in
7024    yes) with_build_config= ;;
7025    no) with_build_config= BUILD_CONFIG= ;;
7026    esac
7027 fi
7028
7029
7030 if test "x${with_build_config}" != x; then
7031   BUILD_CONFIG=$with_build_config
7032 else
7033   case $BUILD_CONFIG in
7034   bootstrap-debug)
7035     if echo "int f (void) { return 0; }" > conftest.c &&
7036        ${CC} -c conftest.c &&
7037        mv conftest.o conftest.o.g0 &&
7038        ${CC} -c -g conftest.c &&
7039        mv conftest.o conftest.o.g &&
7040        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7041       :
7042     else
7043       BUILD_CONFIG=
7044     fi
7045     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7046     ;;
7047   esac
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7050 $as_echo "$BUILD_CONFIG" >&6; }
7051
7052
7053 extrasub_build=
7054 for module in ${build_configdirs} ; do
7055   if test -z "${no_recursion}" \
7056      && test -f ${build_subdir}/${module}/Makefile; then
7057     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7058     rm -f ${build_subdir}/${module}/Makefile
7059   fi
7060   extrasub_build="$extrasub_build
7061 /^@if build-$module\$/d
7062 /^@endif build-$module\$/d
7063 /^@if build-$module-$bootstrap_suffix\$/d
7064 /^@endif build-$module-$bootstrap_suffix\$/d"
7065 done
7066 extrasub_host=
7067 for module in ${configdirs} ; do
7068   if test -z "${no_recursion}"; then
7069     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7070       if test -f ${file}; then
7071         echo 1>&2 "*** removing ${file} to force reconfigure"
7072         rm -f ${file}
7073       fi
7074     done
7075   fi
7076   extrasub_host="$extrasub_host
7077 /^@if $module\$/d
7078 /^@endif $module\$/d
7079 /^@if $module-$bootstrap_suffix\$/d
7080 /^@endif $module-$bootstrap_suffix\$/d"
7081 done
7082 extrasub_target=
7083 for module in ${target_configdirs} ; do
7084   if test -z "${no_recursion}" \
7085      && test -f ${target_subdir}/${module}/Makefile; then
7086     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7087     rm -f ${target_subdir}/${module}/Makefile
7088   fi
7089
7090   # We only bootstrap target libraries listed in bootstrap_target_libs.
7091   case $bootstrap_target_libs in
7092     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7093     *) target_bootstrap_suffix=no-bootstrap ;;
7094   esac
7095
7096   extrasub_target="$extrasub_target
7097 /^@if target-$module\$/d
7098 /^@endif target-$module\$/d
7099 /^@if target-$module-$target_bootstrap_suffix\$/d
7100 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7101 done
7102
7103 # Do the final fixup along with target modules.
7104 extrasub_target="$extrasub_target
7105 /^@if /,/^@endif /d"
7106
7107 # Create the serialization dependencies.  This uses a temporary file.
7108
7109 # Check whether --enable-serial-configure was given.
7110 if test "${enable_serial_configure+set}" = set; then :
7111   enableval=$enable_serial_configure;
7112 fi
7113
7114
7115 case ${enable_serial_configure} in
7116   yes)
7117     enable_serial_build_configure=yes
7118     enable_serial_host_configure=yes
7119     enable_serial_target_configure=yes
7120     ;;
7121 esac
7122
7123 # These force 'configure's to be done one at a time, to avoid problems
7124 # with contention over a shared config.cache.
7125 rm -f serdep.tmp
7126 echo '# serdep.tmp' > serdep.tmp
7127 olditem=
7128 test "x${enable_serial_build_configure}" = xyes &&
7129 for item in ${build_configdirs} ; do
7130   case ${olditem} in
7131     "") ;;
7132     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7133   esac
7134   olditem=${item}
7135 done
7136 olditem=
7137 test "x${enable_serial_host_configure}" = xyes &&
7138 for item in ${configdirs} ; do
7139   case ${olditem} in
7140     "") ;;
7141     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7142   esac
7143   olditem=${item}
7144 done
7145 olditem=
7146 test "x${enable_serial_target_configure}" = xyes &&
7147 for item in ${target_configdirs} ; do
7148   case ${olditem} in
7149     "") ;;
7150     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7151   esac
7152   olditem=${item}
7153 done
7154 serialization_dependencies=serdep.tmp
7155
7156
7157 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7158 # target, nonopt, and variable assignments.  These are the ones we
7159 # might not want to pass down to subconfigures.  The exception being
7160 # --cache-file=/dev/null, which is used to turn off the use of cache
7161 # files altogether, and which should be passed on to subconfigures.
7162 # Also strip program-prefix, program-suffix, and program-transform-name,
7163 # so that we can pass down a consistent program-transform-name.
7164 baseargs=
7165 tbaseargs=
7166 keep_next=no
7167 skip_next=no
7168 eval "set -- $ac_configure_args"
7169 for ac_arg
7170 do
7171   if test X"$skip_next" = X"yes"; then
7172     skip_next=no
7173     continue
7174   fi
7175   if test X"$keep_next" = X"yes"; then
7176     case $ac_arg in
7177       *\'*)
7178         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7179     esac
7180     baseargs="$baseargs '$ac_arg'"
7181     tbaseargs="$tbaseargs '$ac_arg'"
7182     keep_next=no
7183     continue
7184   fi
7185
7186   # Handle separated arguments.  Based on the logic generated by
7187   # autoconf 2.59.
7188   case $ac_arg in
7189     *=* | --config-cache | -C | -disable-* | --disable-* \
7190       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7191       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7192       | -with-* | --with-* | -without-* | --without-* | --x)
7193       separate_arg=no
7194       ;;
7195     -*)
7196       separate_arg=yes
7197       ;;
7198     *)
7199       separate_arg=no
7200       ;;
7201   esac
7202
7203   skip_targ=no
7204   case $ac_arg in
7205
7206   --with-* | --without-*)
7207     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7208
7209     case $libopt in
7210     *[-_]include)
7211       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7212       ;;
7213     *[-_]lib)
7214       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7215       ;;
7216     *)
7217       lib=$libopt
7218       ;;
7219     esac
7220
7221
7222     case $lib in
7223     mpc | mpfr | gmp | ppl | cloog)
7224       # If we're processing --with-$lib, --with-$lib-include or
7225       # --with-$lib-lib, for one of the libs above, and target is
7226       # different from host, don't pass the current argument to any
7227       # target library's configure.
7228       if test x$is_cross_compiler = xyes; then
7229         skip_targ=yes
7230       fi
7231       ;;
7232     esac
7233     ;;
7234   esac
7235
7236   case "$ac_arg" in
7237     --cache-file=/dev/null | \
7238     -cache-file=/dev/null )
7239       # Handled here to avoid the test to skip args below.
7240       baseargs="$baseargs '$ac_arg'"
7241       tbaseargs="$tbaseargs '$ac_arg'"
7242       # Assert: $separate_arg should always be no.
7243       keep_next=$separate_arg
7244       ;;
7245     --no*)
7246       continue
7247       ;;
7248     --c* | \
7249     --sr* | \
7250     --ho* | \
7251     --bu* | \
7252     --t* | \
7253     --program-* | \
7254     -cache_file* | \
7255     -srcdir* | \
7256     -host* | \
7257     -build* | \
7258     -target* | \
7259     -program-prefix* | \
7260     -program-suffix* | \
7261     -program-transform-name* )
7262       skip_next=$separate_arg
7263       continue
7264       ;;
7265     -*)
7266       # An option.  Add it.
7267       case $ac_arg in
7268         *\'*)
7269           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7270       esac
7271       baseargs="$baseargs '$ac_arg'"
7272       if test X"$skip_targ" = Xno; then
7273         tbaseargs="$tbaseargs '$ac_arg'"
7274       fi
7275       keep_next=$separate_arg
7276       ;;
7277     *)
7278       # Either a variable assignment, or a nonopt (triplet).  Don't
7279       # pass it down; let the Makefile handle this.
7280       continue
7281       ;;
7282   esac
7283 done
7284 # Remove the initial space we just introduced and, as these will be
7285 # expanded by make, quote '$'.
7286 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7287
7288 # Add in --program-transform-name, after --program-prefix and
7289 # --program-suffix have been applied to it.  Autoconf has already
7290 # doubled dollar signs and backslashes in program_transform_name; we want
7291 # the backslashes un-doubled, and then the entire thing wrapped in single
7292 # quotes, because this will be expanded first by make and then by the shell.
7293 # Also, because we want to override the logic in subdir configure scripts to
7294 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7295 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7296 ${program_transform_name}
7297 EOF_SED
7298 gcc_transform_name=`cat conftestsed.out`
7299 rm -f conftestsed.out
7300 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7301 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7302 if test "$silent" = yes; then
7303   baseargs="$baseargs --silent"
7304   tbaseargs="$tbaseargs --silent"
7305 fi
7306 baseargs="$baseargs --disable-option-checking"
7307 tbaseargs="$tbaseargs --disable-option-checking"
7308
7309 # Record and document user additions to sub configure arguments.
7310
7311
7312
7313
7314 # For the build-side libraries, we just need to pretend we're native,
7315 # and not use the same cache file.  Multilibs are neither needed nor
7316 # desired.
7317 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7318
7319 # For host modules, accept cache file option, or specification as blank.
7320 case "${cache_file}" in
7321 "") # empty
7322   cache_file_option="" ;;
7323 /* | [A-Za-z]:[\\/]* ) # absolute path
7324   cache_file_option="--cache-file=${cache_file}" ;;
7325 *) # relative path
7326   cache_file_option="--cache-file=../${cache_file}" ;;
7327 esac
7328
7329 # Host dirs don't like to share a cache file either, horribly enough.
7330 # This seems to be due to autoconf 2.5x stupidity.
7331 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7332
7333 target_configargs="$target_configargs ${tbaseargs}"
7334
7335 # Passing a --with-cross-host argument lets the target libraries know
7336 # whether they are being built with a cross-compiler or being built
7337 # native.  However, it would be better to use other mechanisms to make the
7338 # sorts of decisions they want to make on this basis.  Please consider
7339 # this option to be deprecated.  FIXME.
7340 if test x${is_cross_compiler} = xyes ; then
7341   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7342 fi
7343
7344 # Default to --enable-multilib.
7345 if test x${enable_multilib} = x ; then
7346   target_configargs="--enable-multilib ${target_configargs}"
7347 fi
7348
7349 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7350 # changed from the earlier setting of with_newlib.
7351 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7352   target_configargs="--with-newlib ${target_configargs}"
7353 fi
7354
7355 # Different target subdirs use different values of certain variables
7356 # (notably CXX).  Worse, multilibs use *lots* of different values.
7357 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7358 # it doesn't automatically accept command-line overrides of them.
7359 # This means it's not safe for target subdirs to share a cache file,
7360 # which is disgusting, but there you have it.  Hopefully this can be
7361 # fixed in future.  It's still worthwhile to use a cache file for each
7362 # directory.  I think.
7363
7364 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7365 # We need to pass --target, as newer autoconf's requires consistency
7366 # for target_alias and gcc doesn't manage it consistently.
7367 target_configargs="--cache-file=./config.cache ${target_configargs}"
7368
7369 FLAGS_FOR_TARGET=
7370 case " $target_configdirs " in
7371  *" newlib "*)
7372   case " $target_configargs " in
7373   *" --with-newlib "*)
7374    case "$target" in
7375     *-cygwin*)
7376       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7377       ;;
7378    esac
7379
7380    # If we're not building GCC, don't discard standard headers.
7381    if test -d ${srcdir}/gcc; then
7382      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7383
7384      if test "${build}" != "${host}"; then
7385        # On Canadian crosses, CC_FOR_TARGET will have already been set
7386        # by `configure', so we won't have an opportunity to add -Bgcc/
7387        # to it.  This is right: we don't want to search that directory
7388        # for binaries, but we want the header files in there, so add
7389        # them explicitly.
7390        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7391
7392        # Someone might think of using the pre-installed headers on
7393        # Canadian crosses, in case the installed compiler is not fully
7394        # compatible with the compiler being built.  In this case, it
7395        # would be better to flag an error than risking having
7396        # incompatible object files being constructed.  We can't
7397        # guarantee that an error will be flagged, but let's hope the
7398        # compiler will do it, when presented with incompatible header
7399        # files.
7400      fi
7401    fi
7402
7403    case "${target}-${is_cross_compiler}" in
7404    i[3456789]86-*-linux*-no)
7405       # Here host == target, so we don't need to build gcc,
7406       # so we don't want to discard standard headers.
7407       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7408       ;;
7409    *)
7410       # If we're building newlib, use its generic headers last, but search
7411       # for any libc-related directories first (so make it the last -B
7412       # switch).
7413       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7414
7415       # If we're building libgloss, find the startup file, simulator library
7416       # and linker script.
7417       case " $target_configdirs " in
7418         *" libgloss "*)
7419         # Look for startup file, simulator library and maybe linker script.
7420         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7421         # Look for libnosys.a in case the target needs it.
7422         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7423         # Most targets have the linker script in the source directory.
7424         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7425         ;;
7426       esac
7427       ;;
7428    esac
7429    ;;
7430   esac
7431   ;;
7432 esac
7433
7434 case "$target" in
7435   x86_64-*mingw* | *-w64-mingw*)
7436   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7437   # however, use a symlink named 'mingw' in ${prefix} .
7438     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7439     ;;
7440   *-mingw*)
7441   # MinGW can't be handled as Cygwin above since it does not use newlib.
7442     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'
7443     ;;
7444 esac
7445
7446 # Allow the user to override the flags for
7447 # our build compiler if desired.
7448 if test x"${build}" = x"${host}" ; then
7449   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7450   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7451   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7452 fi
7453
7454 # On Canadian crosses, we'll be searching the right directories for
7455 # the previously-installed cross compiler, so don't bother to add
7456 # flags for directories within the install tree of the compiler
7457 # being built; programs in there won't even run.
7458 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7459   # Search for pre-installed headers if nothing else fits.
7460   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7461 fi
7462
7463 if test "x${use_gnu_ld}" = x &&
7464    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7465   # Arrange for us to find uninstalled linker scripts.
7466   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7467 fi
7468
7469 # Search for other target-specific linker scripts and such.
7470 case "${target}" in
7471   mep*)
7472     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7473     ;;
7474 esac
7475
7476 # Makefile fragments.
7477 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7478 do
7479   eval fragval=\$$frag
7480   if test $fragval != /dev/null; then
7481     eval $frag=${srcdir}/$fragval
7482   fi
7483 done
7484
7485
7486
7487
7488
7489 # Miscellanea: directories, flags, etc.
7490
7491
7492
7493
7494
7495
7496
7497
7498 # Build module lists & subconfigure args.
7499
7500
7501
7502 # Host module lists & subconfigure args.
7503
7504
7505
7506
7507 # Target module lists & subconfigure args.
7508
7509
7510
7511 # Build tools.
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 # Generate default definitions for YACC, M4, LEX and other programs that run
7530 # on the build machine.  These are used if the Makefile can't locate these
7531 # programs in objdir.
7532 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7533
7534 for ac_prog in 'bison -y' byacc yacc
7535 do
7536   # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_YACC+set}" = set; then :
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$YACC"; then
7544   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_prog_YACC="$ac_prog"
7554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 YACC=$ac_cv_prog_YACC
7564 if test -n "$YACC"; then
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7566 $as_echo "$YACC" >&6; }
7567 else
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572
7573   test -n "$YACC" && break
7574 done
7575 test -n "$YACC" || YACC="$MISSING bison -y"
7576
7577 case " $build_configdirs " in
7578   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7579 esac
7580
7581 for ac_prog in bison
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if test "${ac_cv_prog_BISON+set}" = set; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   if test -n "$BISON"; then
7591   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7592 else
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598     for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_prog_BISON="$ac_prog"
7601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605   done
7606 IFS=$as_save_IFS
7607
7608 fi
7609 fi
7610 BISON=$ac_cv_prog_BISON
7611 if test -n "$BISON"; then
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7613 $as_echo "$BISON" >&6; }
7614 else
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620   test -n "$BISON" && break
7621 done
7622 test -n "$BISON" || BISON="$MISSING bison"
7623
7624 case " $build_configdirs " in
7625   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7626 esac
7627
7628 for ac_prog in gm4 gnum4 m4
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_M4+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   if test -n "$M4"; then
7638   ac_cv_prog_M4="$M4" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_prog_M4="$ac_prog"
7648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652   done
7653 IFS=$as_save_IFS
7654
7655 fi
7656 fi
7657 M4=$ac_cv_prog_M4
7658 if test -n "$M4"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7660 $as_echo "$M4" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665
7666
7667   test -n "$M4" && break
7668 done
7669 test -n "$M4" || M4="$MISSING m4"
7670
7671 case " $build_configdirs " in
7672   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7673 esac
7674
7675 for ac_prog in flex lex
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_LEX+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$LEX"; then
7685   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_prog_LEX="$ac_prog"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 LEX=$ac_cv_prog_LEX
7705 if test -n "$LEX"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7707 $as_echo "$LEX" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714   test -n "$LEX" && break
7715 done
7716 test -n "$LEX" || LEX="$MISSING flex"
7717
7718 case " $build_configdirs " in
7719   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7720   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7721 esac
7722
7723 for ac_prog in flex
7724 do
7725   # Extract the first word of "$ac_prog", so it can be a program name with args.
7726 set dummy $ac_prog; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_FLEX+set}" = set; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   if test -n "$FLEX"; then
7733   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740     for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_prog_FLEX="$ac_prog"
7743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747   done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 FLEX=$ac_cv_prog_FLEX
7753 if test -n "$FLEX"; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7755 $as_echo "$FLEX" >&6; }
7756 else
7757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762   test -n "$FLEX" && break
7763 done
7764 test -n "$FLEX" || FLEX="$MISSING flex"
7765
7766 case " $build_configdirs " in
7767   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7768 esac
7769
7770 for ac_prog in makeinfo
7771 do
7772   # Extract the first word of "$ac_prog", so it can be a program name with args.
7773 set dummy $ac_prog; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$MAKEINFO"; then
7780   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_prog_MAKEINFO="$ac_prog"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 MAKEINFO=$ac_cv_prog_MAKEINFO
7800 if test -n "$MAKEINFO"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7802 $as_echo "$MAKEINFO" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809   test -n "$MAKEINFO" && break
7810 done
7811 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7812
7813 case " $build_configdirs " in
7814   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7815   *)
7816
7817     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7818     # higher, else we use the "missing" dummy.
7819     if ${MAKEINFO} --version \
7820        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7821       :
7822     else
7823       MAKEINFO="$MISSING makeinfo"
7824     fi
7825     ;;
7826
7827 esac
7828
7829 # FIXME: expect and dejagnu may become build tools?
7830
7831 for ac_prog in expect
7832 do
7833   # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   if test -n "$EXPECT"; then
7841   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7850     ac_cv_prog_EXPECT="$ac_prog"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 EXPECT=$ac_cv_prog_EXPECT
7861 if test -n "$EXPECT"; then
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7863 $as_echo "$EXPECT" >&6; }
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869
7870   test -n "$EXPECT" && break
7871 done
7872 test -n "$EXPECT" || EXPECT="expect"
7873
7874 case " $configdirs " in
7875   *" expect "*)
7876     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7877     ;;
7878 esac
7879
7880 for ac_prog in runtest
7881 do
7882   # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$RUNTEST"; then
7890   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_RUNTEST="$ac_prog"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 RUNTEST=$ac_cv_prog_RUNTEST
7910 if test -n "$RUNTEST"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7912 $as_echo "$RUNTEST" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919   test -n "$RUNTEST" && break
7920 done
7921 test -n "$RUNTEST" || RUNTEST="runtest"
7922
7923 case " $configdirs " in
7924   *" dejagnu "*)
7925     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7926     ;;
7927 esac
7928
7929
7930 # Host tools.
7931 ncn_tool_prefix=
7932 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7933 ncn_target_tool_prefix=
7934 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7935
7936
7937
7938 if test -n "$AR"; then
7939   ac_cv_prog_AR=$AR
7940 elif test -n "$ac_cv_prog_AR"; then
7941   AR=$ac_cv_prog_AR
7942 fi
7943
7944 if test -n "$ac_cv_prog_AR"; then
7945   for ncn_progname in ar; do
7946     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7947 set dummy ${ncn_progname}; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_AR+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$AR"; then
7954   ac_cv_prog_AR="$AR" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_AR="${ncn_progname}"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 AR=$ac_cv_prog_AR
7974 if test -n "$AR"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976 $as_echo "$AR" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983   done
7984 fi
7985
7986 for ncn_progname in ar; do
7987   if test -n "$ncn_tool_prefix"; then
7988     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7989 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_AR+set}" = set; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   if test -n "$AR"; then
7996   ac_cv_prog_AR="$AR" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 AR=$ac_cv_prog_AR
8016 if test -n "$AR"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018 $as_echo "$AR" >&6; }
8019 else
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025   fi
8026   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8027     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8028 set dummy ${ncn_progname}; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_AR+set}" = set; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   if test -n "$AR"; then
8035   ac_cv_prog_AR="$AR" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040   IFS=$as_save_IFS
8041   test -z "$as_dir" && as_dir=.
8042     for ac_exec_ext in '' $ac_executable_extensions; do
8043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044     ac_cv_prog_AR="${ncn_progname}"
8045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046     break 2
8047   fi
8048 done
8049   done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 AR=$ac_cv_prog_AR
8055 if test -n "$AR"; then
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8058 else
8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062
8063
8064   fi
8065   test -n "$ac_cv_prog_AR" && break
8066 done
8067
8068 if test -z "$ac_cv_prog_AR" ; then
8069   set dummy ar
8070   if test $build = $host ; then
8071     AR="$2"
8072   else
8073     AR="${ncn_tool_prefix}$2"
8074   fi
8075 fi
8076
8077
8078
8079 if test -n "$AS"; then
8080   ac_cv_prog_AS=$AS
8081 elif test -n "$ac_cv_prog_AS"; then
8082   AS=$ac_cv_prog_AS
8083 fi
8084
8085 if test -n "$ac_cv_prog_AS"; then
8086   for ncn_progname in as; do
8087     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8088 set dummy ${ncn_progname}; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_AS+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$AS"; then
8095   ac_cv_prog_AS="$AS" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104     ac_cv_prog_AS="${ncn_progname}"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 AS=$ac_cv_prog_AS
8115 if test -n "$AS"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8117 $as_echo "$AS" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124   done
8125 fi
8126
8127 for ncn_progname in as; do
8128   if test -n "$ncn_tool_prefix"; then
8129     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8130 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_AS+set}" = set; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   if test -n "$AS"; then
8137   ac_cv_prog_AS="$AS" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142   IFS=$as_save_IFS
8143   test -z "$as_dir" && as_dir=.
8144     for ac_exec_ext in '' $ac_executable_extensions; do
8145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151   done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 AS=$ac_cv_prog_AS
8157 if test -n "$AS"; then
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159 $as_echo "$AS" >&6; }
8160 else
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165
8166   fi
8167   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8168     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8169 set dummy ${ncn_progname}; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_AS+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   if test -n "$AS"; then
8176   ac_cv_prog_AS="$AS" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183     for ac_exec_ext in '' $ac_executable_extensions; do
8184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185     ac_cv_prog_AS="${ncn_progname}"
8186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190   done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 AS=$ac_cv_prog_AS
8196 if test -n "$AS"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198 $as_echo "$AS" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204
8205   fi
8206   test -n "$ac_cv_prog_AS" && break
8207 done
8208
8209 if test -z "$ac_cv_prog_AS" ; then
8210   set dummy as
8211   if test $build = $host ; then
8212     AS="$2"
8213   else
8214     AS="${ncn_tool_prefix}$2"
8215   fi
8216 fi
8217
8218
8219
8220 if test -n "$DLLTOOL"; then
8221   ac_cv_prog_DLLTOOL=$DLLTOOL
8222 elif test -n "$ac_cv_prog_DLLTOOL"; then
8223   DLLTOOL=$ac_cv_prog_DLLTOOL
8224 fi
8225
8226 if test -n "$ac_cv_prog_DLLTOOL"; then
8227   for ncn_progname in dlltool; do
8228     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8229 set dummy ${ncn_progname}; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   if test -n "$DLLTOOL"; then
8236   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245     ac_cv_prog_DLLTOOL="${ncn_progname}"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 DLLTOOL=$ac_cv_prog_DLLTOOL
8256 if test -n "$DLLTOOL"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8258 $as_echo "$DLLTOOL" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265   done
8266 fi
8267
8268 for ncn_progname in dlltool; do
8269   if test -n "$ncn_tool_prefix"; then
8270     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   if test -n "$DLLTOOL"; then
8278   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285     for ac_exec_ext in '' $ac_executable_extensions; do
8286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292   done
8293 IFS=$as_save_IFS
8294
8295 fi
8296 fi
8297 DLLTOOL=$ac_cv_prog_DLLTOOL
8298 if test -n "$DLLTOOL"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300 $as_echo "$DLLTOOL" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307   fi
8308   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8309     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8310 set dummy ${ncn_progname}; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   if test -n "$DLLTOOL"; then
8317   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324     for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_prog_DLLTOOL="${ncn_progname}"
8327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331   done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 DLLTOOL=$ac_cv_prog_DLLTOOL
8337 if test -n "$DLLTOOL"; then
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8339 $as_echo "$DLLTOOL" >&6; }
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8343 fi
8344
8345
8346   fi
8347   test -n "$ac_cv_prog_DLLTOOL" && break
8348 done
8349
8350 if test -z "$ac_cv_prog_DLLTOOL" ; then
8351   set dummy dlltool
8352   if test $build = $host ; then
8353     DLLTOOL="$2"
8354   else
8355     DLLTOOL="${ncn_tool_prefix}$2"
8356   fi
8357 fi
8358
8359
8360
8361 if test -n "$LD"; then
8362   ac_cv_prog_LD=$LD
8363 elif test -n "$ac_cv_prog_LD"; then
8364   LD=$ac_cv_prog_LD
8365 fi
8366
8367 if test -n "$ac_cv_prog_LD"; then
8368   for ncn_progname in ld; do
8369     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8370 set dummy ${ncn_progname}; ac_word=$2
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 $as_echo_n "checking for $ac_word... " >&6; }
8373 if test "${ac_cv_prog_LD+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   if test -n "$LD"; then
8377   ac_cv_prog_LD="$LD" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8386     ac_cv_prog_LD="${ncn_progname}"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393
8394 fi
8395 fi
8396 LD=$ac_cv_prog_LD
8397 if test -n "$LD"; then
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8399 $as_echo "$LD" >&6; }
8400 else
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406   done
8407 fi
8408
8409 for ncn_progname in ld; do
8410   if test -n "$ncn_tool_prefix"; then
8411     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_LD+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   if test -n "$LD"; then
8419   ac_cv_prog_LD="$LD" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426     for ac_exec_ext in '' $ac_executable_extensions; do
8427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433   done
8434 IFS=$as_save_IFS
8435
8436 fi
8437 fi
8438 LD=$ac_cv_prog_LD
8439 if test -n "$LD"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441 $as_echo "$LD" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448   fi
8449   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8450     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_progname}; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_LD+set}" = set; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   if test -n "$LD"; then
8458   ac_cv_prog_LD="$LD" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465     for ac_exec_ext in '' $ac_executable_extensions; do
8466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467     ac_cv_prog_LD="${ncn_progname}"
8468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472   done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 LD=$ac_cv_prog_LD
8478 if test -n "$LD"; then
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8480 $as_echo "$LD" >&6; }
8481 else
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8484 fi
8485
8486
8487   fi
8488   test -n "$ac_cv_prog_LD" && break
8489 done
8490
8491 if test -z "$ac_cv_prog_LD" ; then
8492   set dummy ld
8493   if test $build = $host ; then
8494     LD="$2"
8495   else
8496     LD="${ncn_tool_prefix}$2"
8497   fi
8498 fi
8499
8500
8501
8502 if test -n "$LIPO"; then
8503   ac_cv_prog_LIPO=$LIPO
8504 elif test -n "$ac_cv_prog_LIPO"; then
8505   LIPO=$ac_cv_prog_LIPO
8506 fi
8507
8508 if test -n "$ac_cv_prog_LIPO"; then
8509   for ncn_progname in lipo; do
8510     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8511 set dummy ${ncn_progname}; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_prog_LIPO+set}" = set; then :
8515   $as_echo_n "(cached) " >&6
8516 else
8517   if test -n "$LIPO"; then
8518   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_prog_LIPO="${ncn_progname}"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534
8535 fi
8536 fi
8537 LIPO=$ac_cv_prog_LIPO
8538 if test -n "$LIPO"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8540 $as_echo "$LIPO" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545
8546
8547   done
8548 fi
8549
8550 for ncn_progname in lipo; do
8551   if test -n "$ncn_tool_prefix"; then
8552     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8553 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_LIPO+set}" = set; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559   if test -n "$LIPO"; then
8560   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565   IFS=$as_save_IFS
8566   test -z "$as_dir" && as_dir=.
8567     for ac_exec_ext in '' $ac_executable_extensions; do
8568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571     break 2
8572   fi
8573 done
8574   done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 LIPO=$ac_cv_prog_LIPO
8580 if test -n "$LIPO"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582 $as_echo "$LIPO" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589   fi
8590   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8591     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592 set dummy ${ncn_progname}; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if test "${ac_cv_prog_LIPO+set}" = set; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   if test -n "$LIPO"; then
8599   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604   IFS=$as_save_IFS
8605   test -z "$as_dir" && as_dir=.
8606     for ac_exec_ext in '' $ac_executable_extensions; do
8607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8608     ac_cv_prog_LIPO="${ncn_progname}"
8609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610     break 2
8611   fi
8612 done
8613   done
8614 IFS=$as_save_IFS
8615
8616 fi
8617 fi
8618 LIPO=$ac_cv_prog_LIPO
8619 if test -n "$LIPO"; then
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8621 $as_echo "$LIPO" >&6; }
8622 else
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8625 fi
8626
8627
8628   fi
8629   test -n "$ac_cv_prog_LIPO" && break
8630 done
8631
8632 if test -z "$ac_cv_prog_LIPO" ; then
8633   set dummy lipo
8634   if test $build = $host ; then
8635     LIPO="$2"
8636   else
8637     LIPO="${ncn_tool_prefix}$2"
8638   fi
8639 fi
8640
8641
8642
8643 if test -n "$NM"; then
8644   ac_cv_prog_NM=$NM
8645 elif test -n "$ac_cv_prog_NM"; then
8646   NM=$ac_cv_prog_NM
8647 fi
8648
8649 if test -n "$ac_cv_prog_NM"; then
8650   for ncn_progname in nm; do
8651     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652 set dummy ${ncn_progname}; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if test "${ac_cv_prog_NM+set}" = set; then :
8656   $as_echo_n "(cached) " >&6
8657 else
8658   if test -n "$NM"; then
8659   ac_cv_prog_NM="$NM" # Let the user override the test.
8660 else
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666     for ac_exec_ext in '' $ac_executable_extensions; do
8667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8668     ac_cv_prog_NM="${ncn_progname}"
8669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670     break 2
8671   fi
8672 done
8673   done
8674 IFS=$as_save_IFS
8675
8676 fi
8677 fi
8678 NM=$ac_cv_prog_NM
8679 if test -n "$NM"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8681 $as_echo "$NM" >&6; }
8682 else
8683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8685 fi
8686
8687
8688   done
8689 fi
8690
8691 for ncn_progname in nm; do
8692   if test -n "$ncn_tool_prefix"; then
8693     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if test "${ac_cv_prog_NM+set}" = set; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   if test -n "$NM"; then
8701   ac_cv_prog_NM="$NM" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715   done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 NM=$ac_cv_prog_NM
8721 if test -n "$NM"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723 $as_echo "$NM" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730   fi
8731   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8732     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733 set dummy ${ncn_progname}; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if test "${ac_cv_prog_NM+set}" = set; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   if test -n "$NM"; then
8740   ac_cv_prog_NM="$NM" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745   IFS=$as_save_IFS
8746   test -z "$as_dir" && as_dir=.
8747     for ac_exec_ext in '' $ac_executable_extensions; do
8748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8749     ac_cv_prog_NM="${ncn_progname}"
8750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751     break 2
8752   fi
8753 done
8754   done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 NM=$ac_cv_prog_NM
8760 if test -n "$NM"; then
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8762 $as_echo "$NM" >&6; }
8763 else
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768
8769   fi
8770   test -n "$ac_cv_prog_NM" && break
8771 done
8772
8773 if test -z "$ac_cv_prog_NM" ; then
8774   set dummy nm
8775   if test $build = $host ; then
8776     NM="$2"
8777   else
8778     NM="${ncn_tool_prefix}$2"
8779   fi
8780 fi
8781
8782
8783
8784 if test -n "$RANLIB"; then
8785   ac_cv_prog_RANLIB=$RANLIB
8786 elif test -n "$ac_cv_prog_RANLIB"; then
8787   RANLIB=$ac_cv_prog_RANLIB
8788 fi
8789
8790 if test -n "$ac_cv_prog_RANLIB"; then
8791   for ncn_progname in ranlib; do
8792     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793 set dummy ${ncn_progname}; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   if test -n "$RANLIB"; then
8800   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8801 else
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8809     ac_cv_prog_RANLIB="${ncn_progname}"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816
8817 fi
8818 fi
8819 RANLIB=$ac_cv_prog_RANLIB
8820 if test -n "$RANLIB"; then
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8822 $as_echo "$RANLIB" >&6; }
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8826 fi
8827
8828
8829   done
8830 fi
8831
8832 for ncn_progname in ranlib; do
8833   if test -n "$ncn_tool_prefix"; then
8834     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   if test -n "$RANLIB"; then
8842   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847   IFS=$as_save_IFS
8848   test -z "$as_dir" && as_dir=.
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856   done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 RANLIB=$ac_cv_prog_RANLIB
8862 if test -n "$RANLIB"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864 $as_echo "$RANLIB" >&6; }
8865 else
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870
8871   fi
8872   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8873     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8874 set dummy ${ncn_progname}; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   if test -n "$RANLIB"; then
8881   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8885 do
8886   IFS=$as_save_IFS
8887   test -z "$as_dir" && as_dir=.
8888     for ac_exec_ext in '' $ac_executable_extensions; do
8889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8890     ac_cv_prog_RANLIB="${ncn_progname}"
8891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892     break 2
8893   fi
8894 done
8895   done
8896 IFS=$as_save_IFS
8897
8898 fi
8899 fi
8900 RANLIB=$ac_cv_prog_RANLIB
8901 if test -n "$RANLIB"; then
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8903 $as_echo "$RANLIB" >&6; }
8904 else
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908
8909
8910   fi
8911   test -n "$ac_cv_prog_RANLIB" && break
8912 done
8913
8914 if test -z "$ac_cv_prog_RANLIB" ; then
8915   RANLIB="true"
8916 fi
8917
8918
8919
8920 if test -n "$STRIP"; then
8921   ac_cv_prog_STRIP=$STRIP
8922 elif test -n "$ac_cv_prog_STRIP"; then
8923   STRIP=$ac_cv_prog_STRIP
8924 fi
8925
8926 if test -n "$ac_cv_prog_STRIP"; then
8927   for ncn_progname in strip; do
8928     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8929 set dummy ${ncn_progname}; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_prog_STRIP+set}" = set; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   if test -n "$STRIP"; then
8936   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941   IFS=$as_save_IFS
8942   test -z "$as_dir" && as_dir=.
8943     for ac_exec_ext in '' $ac_executable_extensions; do
8944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945     ac_cv_prog_STRIP="${ncn_progname}"
8946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947     break 2
8948   fi
8949 done
8950   done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 STRIP=$ac_cv_prog_STRIP
8956 if test -n "$STRIP"; then
8957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8958 $as_echo "$STRIP" >&6; }
8959 else
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965   done
8966 fi
8967
8968 for ncn_progname in strip; do
8969   if test -n "$ncn_tool_prefix"; then
8970     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if test "${ac_cv_prog_STRIP+set}" = set; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   if test -n "$STRIP"; then
8978   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983   IFS=$as_save_IFS
8984   test -z "$as_dir" && as_dir=.
8985     for ac_exec_ext in '' $ac_executable_extensions; do
8986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8987     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989     break 2
8990   fi
8991 done
8992   done
8993 IFS=$as_save_IFS
8994
8995 fi
8996 fi
8997 STRIP=$ac_cv_prog_STRIP
8998 if test -n "$STRIP"; then
8999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000 $as_echo "$STRIP" >&6; }
9001 else
9002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007   fi
9008   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9009     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010 set dummy ${ncn_progname}; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if test "${ac_cv_prog_STRIP+set}" = set; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   if test -n "$STRIP"; then
9017   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022   IFS=$as_save_IFS
9023   test -z "$as_dir" && as_dir=.
9024     for ac_exec_ext in '' $ac_executable_extensions; do
9025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026     ac_cv_prog_STRIP="${ncn_progname}"
9027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028     break 2
9029   fi
9030 done
9031   done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 STRIP=$ac_cv_prog_STRIP
9037 if test -n "$STRIP"; then
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9039 $as_echo "$STRIP" >&6; }
9040 else
9041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046   fi
9047   test -n "$ac_cv_prog_STRIP" && break
9048 done
9049
9050 if test -z "$ac_cv_prog_STRIP" ; then
9051   STRIP="true"
9052 fi
9053
9054
9055
9056 if test -n "$WINDRES"; then
9057   ac_cv_prog_WINDRES=$WINDRES
9058 elif test -n "$ac_cv_prog_WINDRES"; then
9059   WINDRES=$ac_cv_prog_WINDRES
9060 fi
9061
9062 if test -n "$ac_cv_prog_WINDRES"; then
9063   for ncn_progname in windres; do
9064     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065 set dummy ${ncn_progname}; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   if test -n "$WINDRES"; then
9072   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9073 else
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081     ac_cv_prog_WINDRES="${ncn_progname}"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 WINDRES=$ac_cv_prog_WINDRES
9092 if test -n "$WINDRES"; then
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9094 $as_echo "$WINDRES" >&6; }
9095 else
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101   done
9102 fi
9103
9104 for ncn_progname in windres; do
9105   if test -n "$ncn_tool_prefix"; then
9106     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9107 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111   $as_echo_n "(cached) " >&6
9112 else
9113   if test -n "$WINDRES"; then
9114   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9118 do
9119   IFS=$as_save_IFS
9120   test -z "$as_dir" && as_dir=.
9121     for ac_exec_ext in '' $ac_executable_extensions; do
9122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125     break 2
9126   fi
9127 done
9128   done
9129 IFS=$as_save_IFS
9130
9131 fi
9132 fi
9133 WINDRES=$ac_cv_prog_WINDRES
9134 if test -n "$WINDRES"; then
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136 $as_echo "$WINDRES" >&6; }
9137 else
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9140 fi
9141
9142
9143   fi
9144   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9145     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146 set dummy ${ncn_progname}; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   if test -n "$WINDRES"; then
9153   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9157 do
9158   IFS=$as_save_IFS
9159   test -z "$as_dir" && as_dir=.
9160     for ac_exec_ext in '' $ac_executable_extensions; do
9161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9162     ac_cv_prog_WINDRES="${ncn_progname}"
9163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164     break 2
9165   fi
9166 done
9167   done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 WINDRES=$ac_cv_prog_WINDRES
9173 if test -n "$WINDRES"; then
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9175 $as_echo "$WINDRES" >&6; }
9176 else
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182   fi
9183   test -n "$ac_cv_prog_WINDRES" && break
9184 done
9185
9186 if test -z "$ac_cv_prog_WINDRES" ; then
9187   set dummy windres
9188   if test $build = $host ; then
9189     WINDRES="$2"
9190   else
9191     WINDRES="${ncn_tool_prefix}$2"
9192   fi
9193 fi
9194
9195
9196
9197 if test -n "$WINDMC"; then
9198   ac_cv_prog_WINDMC=$WINDMC
9199 elif test -n "$ac_cv_prog_WINDMC"; then
9200   WINDMC=$ac_cv_prog_WINDMC
9201 fi
9202
9203 if test -n "$ac_cv_prog_WINDMC"; then
9204   for ncn_progname in windmc; do
9205     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9206 set dummy ${ncn_progname}; ac_word=$2
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   if test -n "$WINDMC"; then
9213   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9214 else
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9222     ac_cv_prog_WINDMC="${ncn_progname}"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229
9230 fi
9231 fi
9232 WINDMC=$ac_cv_prog_WINDMC
9233 if test -n "$WINDMC"; then
9234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9235 $as_echo "$WINDMC" >&6; }
9236 else
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9239 fi
9240
9241
9242   done
9243 fi
9244
9245 for ncn_progname in windmc; do
9246   if test -n "$ncn_tool_prefix"; then
9247     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252   $as_echo_n "(cached) " >&6
9253 else
9254   if test -n "$WINDMC"; then
9255   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256 else
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260   IFS=$as_save_IFS
9261   test -z "$as_dir" && as_dir=.
9262     for ac_exec_ext in '' $ac_executable_extensions; do
9263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269   done
9270 IFS=$as_save_IFS
9271
9272 fi
9273 fi
9274 WINDMC=$ac_cv_prog_WINDMC
9275 if test -n "$WINDMC"; then
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277 $as_echo "$WINDMC" >&6; }
9278 else
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282
9283
9284   fi
9285   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9286     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9287 set dummy ${ncn_progname}; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   if test -n "$WINDMC"; then
9294   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299   IFS=$as_save_IFS
9300   test -z "$as_dir" && as_dir=.
9301     for ac_exec_ext in '' $ac_executable_extensions; do
9302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303     ac_cv_prog_WINDMC="${ncn_progname}"
9304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305     break 2
9306   fi
9307 done
9308   done
9309 IFS=$as_save_IFS
9310
9311 fi
9312 fi
9313 WINDMC=$ac_cv_prog_WINDMC
9314 if test -n "$WINDMC"; then
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9316 $as_echo "$WINDMC" >&6; }
9317 else
9318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319 $as_echo "no" >&6; }
9320 fi
9321
9322
9323   fi
9324   test -n "$ac_cv_prog_WINDMC" && break
9325 done
9326
9327 if test -z "$ac_cv_prog_WINDMC" ; then
9328   set dummy windmc
9329   if test $build = $host ; then
9330     WINDMC="$2"
9331   else
9332     WINDMC="${ncn_tool_prefix}$2"
9333   fi
9334 fi
9335
9336
9337
9338 if test -n "$OBJCOPY"; then
9339   ac_cv_prog_OBJCOPY=$OBJCOPY
9340 elif test -n "$ac_cv_prog_OBJCOPY"; then
9341   OBJCOPY=$ac_cv_prog_OBJCOPY
9342 fi
9343
9344 if test -n "$ac_cv_prog_OBJCOPY"; then
9345   for ncn_progname in objcopy; do
9346     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347 set dummy ${ncn_progname}; ac_word=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   if test -n "$OBJCOPY"; then
9354   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9355 else
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9358 do
9359   IFS=$as_save_IFS
9360   test -z "$as_dir" && as_dir=.
9361     for ac_exec_ext in '' $ac_executable_extensions; do
9362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363     ac_cv_prog_OBJCOPY="${ncn_progname}"
9364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365     break 2
9366   fi
9367 done
9368   done
9369 IFS=$as_save_IFS
9370
9371 fi
9372 fi
9373 OBJCOPY=$ac_cv_prog_OBJCOPY
9374 if test -n "$OBJCOPY"; then
9375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9376 $as_echo "$OBJCOPY" >&6; }
9377 else
9378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9380 fi
9381
9382
9383   done
9384 fi
9385
9386 for ncn_progname in objcopy; do
9387   if test -n "$ncn_tool_prefix"; then
9388     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   if test -n "$OBJCOPY"; then
9396   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401   IFS=$as_save_IFS
9402   test -z "$as_dir" && as_dir=.
9403     for ac_exec_ext in '' $ac_executable_extensions; do
9404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9405     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9407     break 2
9408   fi
9409 done
9410   done
9411 IFS=$as_save_IFS
9412
9413 fi
9414 fi
9415 OBJCOPY=$ac_cv_prog_OBJCOPY
9416 if test -n "$OBJCOPY"; then
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418 $as_echo "$OBJCOPY" >&6; }
9419 else
9420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9422 fi
9423
9424
9425   fi
9426   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9427     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9428 set dummy ${ncn_progname}; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   if test -n "$OBJCOPY"; then
9435   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9436 else
9437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 for as_dir in $PATH
9439 do
9440   IFS=$as_save_IFS
9441   test -z "$as_dir" && as_dir=.
9442     for ac_exec_ext in '' $ac_executable_extensions; do
9443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444     ac_cv_prog_OBJCOPY="${ncn_progname}"
9445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446     break 2
9447   fi
9448 done
9449   done
9450 IFS=$as_save_IFS
9451
9452 fi
9453 fi
9454 OBJCOPY=$ac_cv_prog_OBJCOPY
9455 if test -n "$OBJCOPY"; then
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9457 $as_echo "$OBJCOPY" >&6; }
9458 else
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9461 fi
9462
9463
9464   fi
9465   test -n "$ac_cv_prog_OBJCOPY" && break
9466 done
9467
9468 if test -z "$ac_cv_prog_OBJCOPY" ; then
9469   set dummy objcopy
9470   if test $build = $host ; then
9471     OBJCOPY="$2"
9472   else
9473     OBJCOPY="${ncn_tool_prefix}$2"
9474   fi
9475 fi
9476
9477
9478
9479 if test -n "$OBJDUMP"; then
9480   ac_cv_prog_OBJDUMP=$OBJDUMP
9481 elif test -n "$ac_cv_prog_OBJDUMP"; then
9482   OBJDUMP=$ac_cv_prog_OBJDUMP
9483 fi
9484
9485 if test -n "$ac_cv_prog_OBJDUMP"; then
9486   for ncn_progname in objdump; do
9487     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_progname}; ac_word=$2
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490 $as_echo_n "checking for $ac_word... " >&6; }
9491 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -n "$OBJDUMP"; then
9495   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500   IFS=$as_save_IFS
9501   test -z "$as_dir" && as_dir=.
9502     for ac_exec_ext in '' $ac_executable_extensions; do
9503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504     ac_cv_prog_OBJDUMP="${ncn_progname}"
9505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506     break 2
9507   fi
9508 done
9509   done
9510 IFS=$as_save_IFS
9511
9512 fi
9513 fi
9514 OBJDUMP=$ac_cv_prog_OBJDUMP
9515 if test -n "$OBJDUMP"; then
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9517 $as_echo "$OBJDUMP" >&6; }
9518 else
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524   done
9525 fi
9526
9527 for ncn_progname in objdump; do
9528   if test -n "$ncn_tool_prefix"; then
9529     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9530 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532 $as_echo_n "checking for $ac_word... " >&6; }
9533 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534   $as_echo_n "(cached) " >&6
9535 else
9536   if test -n "$OBJDUMP"; then
9537   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538 else
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   test -z "$as_dir" && as_dir=.
9544     for ac_exec_ext in '' $ac_executable_extensions; do
9545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9546     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548     break 2
9549   fi
9550 done
9551   done
9552 IFS=$as_save_IFS
9553
9554 fi
9555 fi
9556 OBJDUMP=$ac_cv_prog_OBJDUMP
9557 if test -n "$OBJDUMP"; then
9558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559 $as_echo "$OBJDUMP" >&6; }
9560 else
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563 fi
9564
9565
9566   fi
9567   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9568     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9569 set dummy ${ncn_progname}; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   if test -n "$OBJDUMP"; then
9576   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9577 else
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9580 do
9581   IFS=$as_save_IFS
9582   test -z "$as_dir" && as_dir=.
9583     for ac_exec_ext in '' $ac_executable_extensions; do
9584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585     ac_cv_prog_OBJDUMP="${ncn_progname}"
9586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587     break 2
9588   fi
9589 done
9590   done
9591 IFS=$as_save_IFS
9592
9593 fi
9594 fi
9595 OBJDUMP=$ac_cv_prog_OBJDUMP
9596 if test -n "$OBJDUMP"; then
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9598 $as_echo "$OBJDUMP" >&6; }
9599 else
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9602 fi
9603
9604
9605   fi
9606   test -n "$ac_cv_prog_OBJDUMP" && break
9607 done
9608
9609 if test -z "$ac_cv_prog_OBJDUMP" ; then
9610   set dummy objdump
9611   if test $build = $host ; then
9612     OBJDUMP="$2"
9613   else
9614     OBJDUMP="${ncn_tool_prefix}$2"
9615   fi
9616 fi
9617
9618
9619
9620 if test -n "$READELF"; then
9621   ac_cv_prog_READELF=$READELF
9622 elif test -n "$ac_cv_prog_READELF"; then
9623   READELF=$ac_cv_prog_READELF
9624 fi
9625
9626 if test -n "$ac_cv_prog_READELF"; then
9627   for ncn_progname in readelf; do
9628     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9629 set dummy ${ncn_progname}; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_prog_READELF+set}" = set; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   if test -n "$READELF"; then
9636   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9637 else
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9640 do
9641   IFS=$as_save_IFS
9642   test -z "$as_dir" && as_dir=.
9643     for ac_exec_ext in '' $ac_executable_extensions; do
9644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645     ac_cv_prog_READELF="${ncn_progname}"
9646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647     break 2
9648   fi
9649 done
9650   done
9651 IFS=$as_save_IFS
9652
9653 fi
9654 fi
9655 READELF=$ac_cv_prog_READELF
9656 if test -n "$READELF"; then
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9658 $as_echo "$READELF" >&6; }
9659 else
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661 $as_echo "no" >&6; }
9662 fi
9663
9664
9665   done
9666 fi
9667
9668 for ncn_progname in readelf; do
9669   if test -n "$ncn_tool_prefix"; then
9670     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9671 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 $as_echo_n "checking for $ac_word... " >&6; }
9674 if test "${ac_cv_prog_READELF+set}" = set; then :
9675   $as_echo_n "(cached) " >&6
9676 else
9677   if test -n "$READELF"; then
9678   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9679 else
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 for as_dir in $PATH
9682 do
9683   IFS=$as_save_IFS
9684   test -z "$as_dir" && as_dir=.
9685     for ac_exec_ext in '' $ac_executable_extensions; do
9686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9687     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689     break 2
9690   fi
9691 done
9692   done
9693 IFS=$as_save_IFS
9694
9695 fi
9696 fi
9697 READELF=$ac_cv_prog_READELF
9698 if test -n "$READELF"; then
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9700 $as_echo "$READELF" >&6; }
9701 else
9702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705
9706
9707   fi
9708   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9709     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9710 set dummy ${ncn_progname}; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if test "${ac_cv_prog_READELF+set}" = set; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   if test -n "$READELF"; then
9717   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9718 else
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9721 do
9722   IFS=$as_save_IFS
9723   test -z "$as_dir" && as_dir=.
9724     for ac_exec_ext in '' $ac_executable_extensions; do
9725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726     ac_cv_prog_READELF="${ncn_progname}"
9727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728     break 2
9729   fi
9730 done
9731   done
9732 IFS=$as_save_IFS
9733
9734 fi
9735 fi
9736 READELF=$ac_cv_prog_READELF
9737 if test -n "$READELF"; then
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9739 $as_echo "$READELF" >&6; }
9740 else
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9743 fi
9744
9745
9746   fi
9747   test -n "$ac_cv_prog_READELF" && break
9748 done
9749
9750 if test -z "$ac_cv_prog_READELF" ; then
9751   set dummy readelf
9752   if test $build = $host ; then
9753     READELF="$2"
9754   else
9755     READELF="${ncn_tool_prefix}$2"
9756   fi
9757 fi
9758
9759
9760
9761
9762
9763
9764 # Target tools.
9765
9766 # Check whether --with-build-time-tools was given.
9767 if test "${with_build_time_tools+set}" = set; then :
9768   withval=$with_build_time_tools; case x"$withval" in
9769      x/*) ;;
9770      *)
9771        with_build_time_tools=
9772        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9773 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9774        ;;
9775    esac
9776 else
9777   with_build_time_tools=
9778 fi
9779
9780
9781
9782
9783 if test -n "$CC_FOR_TARGET"; then
9784   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9785 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9786   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9787 fi
9788
9789 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9790   for ncn_progname in cc gcc; do
9791     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9792 set dummy ${ncn_progname}; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   if test -n "$CC_FOR_TARGET"; then
9799   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9803 do
9804   IFS=$as_save_IFS
9805   test -z "$as_dir" && as_dir=.
9806     for ac_exec_ext in '' $ac_executable_extensions; do
9807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810     break 2
9811   fi
9812 done
9813   done
9814 IFS=$as_save_IFS
9815
9816 fi
9817 fi
9818 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9819 if test -n "$CC_FOR_TARGET"; then
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9821 $as_echo "$CC_FOR_TARGET" >&6; }
9822 else
9823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 fi
9826
9827
9828   done
9829 fi
9830
9831 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9832   for ncn_progname in cc gcc; do
9833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9835     if test -x $with_build_time_tools/${ncn_progname}; then
9836       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9838 $as_echo "yes" >&6; }
9839       break
9840     else
9841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9843     fi
9844   done
9845 fi
9846
9847 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9848   for ncn_progname in cc gcc; do
9849     if test -n "$ncn_target_tool_prefix"; then
9850       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9855   $as_echo_n "(cached) " >&6
9856 else
9857   if test -n "$CC_FOR_TARGET"; then
9858   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9859 else
9860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 for as_dir in $PATH
9862 do
9863   IFS=$as_save_IFS
9864   test -z "$as_dir" && as_dir=.
9865     for ac_exec_ext in '' $ac_executable_extensions; do
9866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869     break 2
9870   fi
9871 done
9872   done
9873 IFS=$as_save_IFS
9874
9875 fi
9876 fi
9877 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9878 if test -n "$CC_FOR_TARGET"; then
9879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9880 $as_echo "$CC_FOR_TARGET" >&6; }
9881 else
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9884 fi
9885
9886
9887     fi
9888     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9889       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9890 set dummy ${ncn_progname}; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   if test -n "$CC_FOR_TARGET"; then
9897   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9898 else
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9901 do
9902   IFS=$as_save_IFS
9903   test -z "$as_dir" && as_dir=.
9904     for ac_exec_ext in '' $ac_executable_extensions; do
9905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9906     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908     break 2
9909   fi
9910 done
9911   done
9912 IFS=$as_save_IFS
9913
9914 fi
9915 fi
9916 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9917 if test -n "$CC_FOR_TARGET"; then
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9919 $as_echo "$CC_FOR_TARGET" >&6; }
9920 else
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922 $as_echo "no" >&6; }
9923 fi
9924
9925
9926     fi
9927     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9928   done
9929 fi
9930
9931 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9932   set dummy cc gcc
9933   if test $build = $target ; then
9934     CC_FOR_TARGET="$2"
9935   else
9936     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9937   fi
9938 else
9939   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9940 fi
9941
9942
9943
9944 if test -n "$CXX_FOR_TARGET"; then
9945   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9946 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9947   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9948 fi
9949
9950 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9951   for ncn_progname in c++ g++ cxx gxx; do
9952     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9953 set dummy ${ncn_progname}; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   if test -n "$CXX_FOR_TARGET"; then
9960   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965   IFS=$as_save_IFS
9966   test -z "$as_dir" && as_dir=.
9967     for ac_exec_ext in '' $ac_executable_extensions; do
9968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971     break 2
9972   fi
9973 done
9974   done
9975 IFS=$as_save_IFS
9976
9977 fi
9978 fi
9979 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9980 if test -n "$CXX_FOR_TARGET"; then
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9982 $as_echo "$CXX_FOR_TARGET" >&6; }
9983 else
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987
9988
9989   done
9990 fi
9991
9992 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9993   for ncn_progname in c++ g++ cxx gxx; do
9994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9995 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9996     if test -x $with_build_time_tools/${ncn_progname}; then
9997       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9999 $as_echo "yes" >&6; }
10000       break
10001     else
10002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004     fi
10005   done
10006 fi
10007
10008 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10009   for ncn_progname in c++ g++ cxx gxx; do
10010     if test -n "$ncn_target_tool_prefix"; then
10011       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10012 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   if test -n "$CXX_FOR_TARGET"; then
10019   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10020 else
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10023 do
10024   IFS=$as_save_IFS
10025   test -z "$as_dir" && as_dir=.
10026     for ac_exec_ext in '' $ac_executable_extensions; do
10027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030     break 2
10031   fi
10032 done
10033   done
10034 IFS=$as_save_IFS
10035
10036 fi
10037 fi
10038 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10039 if test -n "$CXX_FOR_TARGET"; then
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10041 $as_echo "$CXX_FOR_TARGET" >&6; }
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046
10047
10048     fi
10049     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10050       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10051 set dummy ${ncn_progname}; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   if test -n "$CXX_FOR_TARGET"; then
10058   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065     for ac_exec_ext in '' $ac_executable_extensions; do
10066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069     break 2
10070   fi
10071 done
10072   done
10073 IFS=$as_save_IFS
10074
10075 fi
10076 fi
10077 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10078 if test -n "$CXX_FOR_TARGET"; then
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10080 $as_echo "$CXX_FOR_TARGET" >&6; }
10081 else
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 fi
10085
10086
10087     fi
10088     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10089   done
10090 fi
10091
10092 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10093   set dummy c++ g++ cxx gxx
10094   if test $build = $target ; then
10095     CXX_FOR_TARGET="$2"
10096   else
10097     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10098   fi
10099 else
10100   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10101 fi
10102
10103
10104
10105 if test -n "$GCC_FOR_TARGET"; then
10106   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10107 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10108   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10109 fi
10110
10111 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10112   for ncn_progname in gcc; do
10113     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10114 set dummy ${ncn_progname}; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10118   $as_echo_n "(cached) " >&6
10119 else
10120   if test -n "$GCC_FOR_TARGET"; then
10121   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10122 else
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10125 do
10126   IFS=$as_save_IFS
10127   test -z "$as_dir" && as_dir=.
10128     for ac_exec_ext in '' $ac_executable_extensions; do
10129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10130     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132     break 2
10133   fi
10134 done
10135   done
10136 IFS=$as_save_IFS
10137
10138 fi
10139 fi
10140 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10141 if test -n "$GCC_FOR_TARGET"; then
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10143 $as_echo "$GCC_FOR_TARGET" >&6; }
10144 else
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148
10149
10150   done
10151 fi
10152
10153 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10154   for ncn_progname in gcc; do
10155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10156 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10157     if test -x $with_build_time_tools/${ncn_progname}; then
10158       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10160 $as_echo "yes" >&6; }
10161       break
10162     else
10163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165     fi
10166   done
10167 fi
10168
10169 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10170   for ncn_progname in gcc; do
10171     if test -n "$ncn_target_tool_prefix"; then
10172       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10173 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10177   $as_echo_n "(cached) " >&6
10178 else
10179   if test -n "$GCC_FOR_TARGET"; then
10180   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10181 else
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10184 do
10185   IFS=$as_save_IFS
10186   test -z "$as_dir" && as_dir=.
10187     for ac_exec_ext in '' $ac_executable_extensions; do
10188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10189     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191     break 2
10192   fi
10193 done
10194   done
10195 IFS=$as_save_IFS
10196
10197 fi
10198 fi
10199 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10200 if test -n "$GCC_FOR_TARGET"; then
10201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10202 $as_echo "$GCC_FOR_TARGET" >&6; }
10203 else
10204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10206 fi
10207
10208
10209     fi
10210     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10211       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10212 set dummy ${ncn_progname}; ac_word=$2
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10216   $as_echo_n "(cached) " >&6
10217 else
10218   if test -n "$GCC_FOR_TARGET"; then
10219   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10220 else
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10223 do
10224   IFS=$as_save_IFS
10225   test -z "$as_dir" && as_dir=.
10226     for ac_exec_ext in '' $ac_executable_extensions; do
10227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230     break 2
10231   fi
10232 done
10233   done
10234 IFS=$as_save_IFS
10235
10236 fi
10237 fi
10238 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10239 if test -n "$GCC_FOR_TARGET"; then
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10241 $as_echo "$GCC_FOR_TARGET" >&6; }
10242 else
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10245 fi
10246
10247
10248     fi
10249     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10250   done
10251 fi
10252
10253 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10254   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10255 else
10256   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10257 fi
10258
10259
10260
10261 if test -n "$GCJ_FOR_TARGET"; then
10262   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10263 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10264   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10265 fi
10266
10267 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10268   for ncn_progname in gcj; do
10269     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10270 set dummy ${ncn_progname}; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   if test -n "$GCJ_FOR_TARGET"; then
10277   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10281 do
10282   IFS=$as_save_IFS
10283   test -z "$as_dir" && as_dir=.
10284     for ac_exec_ext in '' $ac_executable_extensions; do
10285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288     break 2
10289   fi
10290 done
10291   done
10292 IFS=$as_save_IFS
10293
10294 fi
10295 fi
10296 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10297 if test -n "$GCJ_FOR_TARGET"; then
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10299 $as_echo "$GCJ_FOR_TARGET" >&6; }
10300 else
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10303 fi
10304
10305
10306   done
10307 fi
10308
10309 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10310   for ncn_progname in gcj; do
10311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10312 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10313     if test -x $with_build_time_tools/${ncn_progname}; then
10314       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10316 $as_echo "yes" >&6; }
10317       break
10318     else
10319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321     fi
10322   done
10323 fi
10324
10325 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10326   for ncn_progname in gcj; do
10327     if test -n "$ncn_target_tool_prefix"; then
10328       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10329 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10333   $as_echo_n "(cached) " >&6
10334 else
10335   if test -n "$GCJ_FOR_TARGET"; then
10336   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10337 else
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10340 do
10341   IFS=$as_save_IFS
10342   test -z "$as_dir" && as_dir=.
10343     for ac_exec_ext in '' $ac_executable_extensions; do
10344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10345     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10347     break 2
10348   fi
10349 done
10350   done
10351 IFS=$as_save_IFS
10352
10353 fi
10354 fi
10355 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10356 if test -n "$GCJ_FOR_TARGET"; then
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10358 $as_echo "$GCJ_FOR_TARGET" >&6; }
10359 else
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10362 fi
10363
10364
10365     fi
10366     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10367       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10368 set dummy ${ncn_progname}; ac_word=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10372   $as_echo_n "(cached) " >&6
10373 else
10374   if test -n "$GCJ_FOR_TARGET"; then
10375   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10376 else
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10379 do
10380   IFS=$as_save_IFS
10381   test -z "$as_dir" && as_dir=.
10382     for ac_exec_ext in '' $ac_executable_extensions; do
10383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10384     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386     break 2
10387   fi
10388 done
10389   done
10390 IFS=$as_save_IFS
10391
10392 fi
10393 fi
10394 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10395 if test -n "$GCJ_FOR_TARGET"; then
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10397 $as_echo "$GCJ_FOR_TARGET" >&6; }
10398 else
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10401 fi
10402
10403
10404     fi
10405     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10406   done
10407 fi
10408
10409 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10410   set dummy gcj
10411   if test $build = $target ; then
10412     GCJ_FOR_TARGET="$2"
10413   else
10414     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10415   fi
10416 else
10417   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10418 fi
10419
10420
10421
10422 if test -n "$GFORTRAN_FOR_TARGET"; then
10423   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10424 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10425   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10426 fi
10427
10428 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10429   for ncn_progname in gfortran; do
10430     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10431 set dummy ${ncn_progname}; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10435   $as_echo_n "(cached) " >&6
10436 else
10437   if test -n "$GFORTRAN_FOR_TARGET"; then
10438   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10439 else
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10442 do
10443   IFS=$as_save_IFS
10444   test -z "$as_dir" && as_dir=.
10445     for ac_exec_ext in '' $ac_executable_extensions; do
10446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10447     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449     break 2
10450   fi
10451 done
10452   done
10453 IFS=$as_save_IFS
10454
10455 fi
10456 fi
10457 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10458 if test -n "$GFORTRAN_FOR_TARGET"; then
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10460 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10461 else
10462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10464 fi
10465
10466
10467   done
10468 fi
10469
10470 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10471   for ncn_progname in gfortran; do
10472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10473 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10474     if test -x $with_build_time_tools/${ncn_progname}; then
10475       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10477 $as_echo "yes" >&6; }
10478       break
10479     else
10480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481 $as_echo "no" >&6; }
10482     fi
10483   done
10484 fi
10485
10486 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10487   for ncn_progname in gfortran; do
10488     if test -n "$ncn_target_tool_prefix"; then
10489       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10490 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   if test -n "$GFORTRAN_FOR_TARGET"; then
10497   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10501 do
10502   IFS=$as_save_IFS
10503   test -z "$as_dir" && as_dir=.
10504     for ac_exec_ext in '' $ac_executable_extensions; do
10505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508     break 2
10509   fi
10510 done
10511   done
10512 IFS=$as_save_IFS
10513
10514 fi
10515 fi
10516 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10517 if test -n "$GFORTRAN_FOR_TARGET"; then
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10519 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10520 else
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10523 fi
10524
10525
10526     fi
10527     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10528       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10529 set dummy ${ncn_progname}; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531 $as_echo_n "checking for $ac_word... " >&6; }
10532 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10533   $as_echo_n "(cached) " >&6
10534 else
10535   if test -n "$GFORTRAN_FOR_TARGET"; then
10536   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10537 else
10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541   IFS=$as_save_IFS
10542   test -z "$as_dir" && as_dir=.
10543     for ac_exec_ext in '' $ac_executable_extensions; do
10544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10545     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547     break 2
10548   fi
10549 done
10550   done
10551 IFS=$as_save_IFS
10552
10553 fi
10554 fi
10555 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10556 if test -n "$GFORTRAN_FOR_TARGET"; then
10557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10558 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10559 else
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10562 fi
10563
10564
10565     fi
10566     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10567   done
10568 fi
10569
10570 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10571   set dummy gfortran
10572   if test $build = $target ; then
10573     GFORTRAN_FOR_TARGET="$2"
10574   else
10575     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10576   fi
10577 else
10578   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10579 fi
10580
10581
10582
10583 if test -n "$GOC_FOR_TARGET"; then
10584   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10585 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10586   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10587 fi
10588
10589 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10590   for ncn_progname in gccgo; do
10591     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10592 set dummy ${ncn_progname}; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10596   $as_echo_n "(cached) " >&6
10597 else
10598   if test -n "$GOC_FOR_TARGET"; then
10599   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10600 else
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10603 do
10604   IFS=$as_save_IFS
10605   test -z "$as_dir" && as_dir=.
10606     for ac_exec_ext in '' $ac_executable_extensions; do
10607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610     break 2
10611   fi
10612 done
10613   done
10614 IFS=$as_save_IFS
10615
10616 fi
10617 fi
10618 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10619 if test -n "$GOC_FOR_TARGET"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10621 $as_echo "$GOC_FOR_TARGET" >&6; }
10622 else
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626
10627
10628   done
10629 fi
10630
10631 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10632   for ncn_progname in gccgo; do
10633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10634 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10635     if test -x $with_build_time_tools/${ncn_progname}; then
10636       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10638 $as_echo "yes" >&6; }
10639       break
10640     else
10641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643     fi
10644   done
10645 fi
10646
10647 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10648   for ncn_progname in gccgo; do
10649     if test -n "$ncn_target_tool_prefix"; then
10650       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10651 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657   if test -n "$GOC_FOR_TARGET"; then
10658   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663   IFS=$as_save_IFS
10664   test -z "$as_dir" && as_dir=.
10665     for ac_exec_ext in '' $ac_executable_extensions; do
10666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669     break 2
10670   fi
10671 done
10672   done
10673 IFS=$as_save_IFS
10674
10675 fi
10676 fi
10677 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10678 if test -n "$GOC_FOR_TARGET"; then
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10680 $as_echo "$GOC_FOR_TARGET" >&6; }
10681 else
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685
10686
10687     fi
10688     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10689       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10690 set dummy ${ncn_progname}; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   if test -n "$GOC_FOR_TARGET"; then
10697   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10698 else
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702   IFS=$as_save_IFS
10703   test -z "$as_dir" && as_dir=.
10704     for ac_exec_ext in '' $ac_executable_extensions; do
10705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10706     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708     break 2
10709   fi
10710 done
10711   done
10712 IFS=$as_save_IFS
10713
10714 fi
10715 fi
10716 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10717 if test -n "$GOC_FOR_TARGET"; then
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10719 $as_echo "$GOC_FOR_TARGET" >&6; }
10720 else
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10723 fi
10724
10725
10726     fi
10727     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10728   done
10729 fi
10730
10731 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10732   set dummy gccgo
10733   if test $build = $target ; then
10734     GOC_FOR_TARGET="$2"
10735   else
10736     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10737   fi
10738 else
10739   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10740 fi
10741
10742
10743
10744 cat > conftest.c << \EOF
10745 #ifdef __GNUC__
10746   gcc_yay;
10747 #endif
10748 EOF
10749 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10750   have_gcc_for_target=yes
10751 else
10752   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10753   have_gcc_for_target=no
10754 fi
10755 rm conftest.c
10756
10757
10758
10759
10760 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10761   if test -n "$with_build_time_tools"; then
10762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10763 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10764     if test -x $with_build_time_tools/ar; then
10765       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10766       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10768 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10769     else
10770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772     fi
10773   elif test $build != $host && test $have_gcc_for_target = yes; then
10774     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10775     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10776     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10777   fi
10778 fi
10779 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10780   # Extract the first word of "ar", so it can be a program name with args.
10781 set dummy ar; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   case $AR_FOR_TARGET in
10788   [\\/]* | ?:[\\/]*)
10789   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10790   ;;
10791   *)
10792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $gcc_cv_tool_dirs
10794 do
10795   IFS=$as_save_IFS
10796   test -z "$as_dir" && as_dir=.
10797     for ac_exec_ext in '' $ac_executable_extensions; do
10798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10801     break 2
10802   fi
10803 done
10804   done
10805 IFS=$as_save_IFS
10806
10807   ;;
10808 esac
10809 fi
10810 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10811 if test -n "$AR_FOR_TARGET"; then
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10813 $as_echo "$AR_FOR_TARGET" >&6; }
10814 else
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10817 fi
10818
10819
10820 fi
10821 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10822
10823
10824 if test -n "$AR_FOR_TARGET"; then
10825   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10826 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10827   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10828 fi
10829
10830 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10831   for ncn_progname in ar; do
10832     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10833 set dummy ${ncn_progname}; ac_word=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   if test -n "$AR_FOR_TARGET"; then
10840   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10841 else
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10844 do
10845   IFS=$as_save_IFS
10846   test -z "$as_dir" && as_dir=.
10847     for ac_exec_ext in '' $ac_executable_extensions; do
10848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10849     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851     break 2
10852   fi
10853 done
10854   done
10855 IFS=$as_save_IFS
10856
10857 fi
10858 fi
10859 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10860 if test -n "$AR_FOR_TARGET"; then
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10862 $as_echo "$AR_FOR_TARGET" >&6; }
10863 else
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10866 fi
10867
10868
10869   done
10870 fi
10871
10872 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10873   for ncn_progname in ar; do
10874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10876     if test -x $with_build_time_tools/${ncn_progname}; then
10877       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10880       break
10881     else
10882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10884     fi
10885   done
10886 fi
10887
10888 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10889   for ncn_progname in ar; do
10890     if test -n "$ncn_target_tool_prefix"; then
10891       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898   if test -n "$AR_FOR_TARGET"; then
10899   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904   IFS=$as_save_IFS
10905   test -z "$as_dir" && as_dir=.
10906     for ac_exec_ext in '' $ac_executable_extensions; do
10907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910     break 2
10911   fi
10912 done
10913   done
10914 IFS=$as_save_IFS
10915
10916 fi
10917 fi
10918 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10919 if test -n "$AR_FOR_TARGET"; then
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10921 $as_echo "$AR_FOR_TARGET" >&6; }
10922 else
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10925 fi
10926
10927
10928     fi
10929     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10930       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   if test -n "$AR_FOR_TARGET"; then
10938   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   test -z "$as_dir" && as_dir=.
10945     for ac_exec_ext in '' $ac_executable_extensions; do
10946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952   done
10953 IFS=$as_save_IFS
10954
10955 fi
10956 fi
10957 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10958 if test -n "$AR_FOR_TARGET"; then
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10960 $as_echo "$AR_FOR_TARGET" >&6; }
10961 else
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964 fi
10965
10966
10967     fi
10968     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10969   done
10970 fi
10971
10972 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10973   set dummy ar
10974   if test $build = $target ; then
10975     AR_FOR_TARGET="$2"
10976   else
10977     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10978   fi
10979 else
10980   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10981 fi
10982
10983 else
10984   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10985 fi
10986
10987
10988
10989
10990 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10991   if test -n "$with_build_time_tools"; then
10992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10993 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10994     if test -x $with_build_time_tools/as; then
10995       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10996       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10998 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10999     else
11000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002     fi
11003   elif test $build != $host && test $have_gcc_for_target = yes; then
11004     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11005     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11006     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11007   fi
11008 fi
11009 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11010   # Extract the first word of "as", so it can be a program name with args.
11011 set dummy as; ac_word=$2
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013 $as_echo_n "checking for $ac_word... " >&6; }
11014 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   case $AS_FOR_TARGET in
11018   [\\/]* | ?:[\\/]*)
11019   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11020   ;;
11021   *)
11022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $gcc_cv_tool_dirs
11024 do
11025   IFS=$as_save_IFS
11026   test -z "$as_dir" && as_dir=.
11027     for ac_exec_ext in '' $ac_executable_extensions; do
11028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031     break 2
11032   fi
11033 done
11034   done
11035 IFS=$as_save_IFS
11036
11037   ;;
11038 esac
11039 fi
11040 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11041 if test -n "$AS_FOR_TARGET"; then
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11043 $as_echo "$AS_FOR_TARGET" >&6; }
11044 else
11045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048
11049
11050 fi
11051 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11052
11053
11054 if test -n "$AS_FOR_TARGET"; then
11055   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11056 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11057   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11058 fi
11059
11060 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11061   for ncn_progname in as; do
11062     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   if test -n "$AS_FOR_TARGET"; then
11070   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11071 else
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075   IFS=$as_save_IFS
11076   test -z "$as_dir" && as_dir=.
11077     for ac_exec_ext in '' $ac_executable_extensions; do
11078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081     break 2
11082   fi
11083 done
11084   done
11085 IFS=$as_save_IFS
11086
11087 fi
11088 fi
11089 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11090 if test -n "$AS_FOR_TARGET"; then
11091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11092 $as_echo "$AS_FOR_TARGET" >&6; }
11093 else
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11096 fi
11097
11098
11099   done
11100 fi
11101
11102 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11103   for ncn_progname in as; do
11104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11105 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11106     if test -x $with_build_time_tools/${ncn_progname}; then
11107       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; }
11110       break
11111     else
11112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11114     fi
11115   done
11116 fi
11117
11118 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11119   for ncn_progname in as; do
11120     if test -n "$ncn_target_tool_prefix"; then
11121       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11122 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   if test -n "$AS_FOR_TARGET"; then
11129   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11130 else
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11133 do
11134   IFS=$as_save_IFS
11135   test -z "$as_dir" && as_dir=.
11136     for ac_exec_ext in '' $ac_executable_extensions; do
11137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140     break 2
11141   fi
11142 done
11143   done
11144 IFS=$as_save_IFS
11145
11146 fi
11147 fi
11148 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11149 if test -n "$AS_FOR_TARGET"; then
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11151 $as_echo "$AS_FOR_TARGET" >&6; }
11152 else
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156
11157
11158     fi
11159     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11160       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11161 set dummy ${ncn_progname}; ac_word=$2
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11163 $as_echo_n "checking for $ac_word... " >&6; }
11164 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11165   $as_echo_n "(cached) " >&6
11166 else
11167   if test -n "$AS_FOR_TARGET"; then
11168   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11169 else
11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11171 for as_dir in $PATH
11172 do
11173   IFS=$as_save_IFS
11174   test -z "$as_dir" && as_dir=.
11175     for ac_exec_ext in '' $ac_executable_extensions; do
11176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11177     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179     break 2
11180   fi
11181 done
11182   done
11183 IFS=$as_save_IFS
11184
11185 fi
11186 fi
11187 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11188 if test -n "$AS_FOR_TARGET"; then
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11190 $as_echo "$AS_FOR_TARGET" >&6; }
11191 else
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 fi
11195
11196
11197     fi
11198     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11199   done
11200 fi
11201
11202 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11203   set dummy as
11204   if test $build = $target ; then
11205     AS_FOR_TARGET="$2"
11206   else
11207     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11208   fi
11209 else
11210   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11211 fi
11212
11213 else
11214   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11215 fi
11216
11217
11218
11219
11220 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11221   if test -n "$with_build_time_tools"; then
11222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11223 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11224     if test -x $with_build_time_tools/dlltool; then
11225       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11226       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11228 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11229     else
11230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232     fi
11233   elif test $build != $host && test $have_gcc_for_target = yes; then
11234     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11235     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11236     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11237   fi
11238 fi
11239 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11240   # Extract the first word of "dlltool", so it can be a program name with args.
11241 set dummy dlltool; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   case $DLLTOOL_FOR_TARGET in
11248   [\\/]* | ?:[\\/]*)
11249   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11250   ;;
11251   *)
11252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $gcc_cv_tool_dirs
11254 do
11255   IFS=$as_save_IFS
11256   test -z "$as_dir" && as_dir=.
11257     for ac_exec_ext in '' $ac_executable_extensions; do
11258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11259     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261     break 2
11262   fi
11263 done
11264   done
11265 IFS=$as_save_IFS
11266
11267   ;;
11268 esac
11269 fi
11270 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11271 if test -n "$DLLTOOL_FOR_TARGET"; then
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11273 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11274 else
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277 fi
11278
11279
11280 fi
11281 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11282
11283
11284 if test -n "$DLLTOOL_FOR_TARGET"; then
11285   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11286 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11287   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11288 fi
11289
11290 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11291   for ncn_progname in dlltool; do
11292     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11293 set dummy ${ncn_progname}; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   if test -n "$DLLTOOL_FOR_TARGET"; then
11300   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11301 else
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11304 do
11305   IFS=$as_save_IFS
11306   test -z "$as_dir" && as_dir=.
11307     for ac_exec_ext in '' $ac_executable_extensions; do
11308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11309     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311     break 2
11312   fi
11313 done
11314   done
11315 IFS=$as_save_IFS
11316
11317 fi
11318 fi
11319 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11320 if test -n "$DLLTOOL_FOR_TARGET"; then
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11322 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11323 else
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11326 fi
11327
11328
11329   done
11330 fi
11331
11332 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11333   for ncn_progname in dlltool; do
11334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11336     if test -x $with_build_time_tools/${ncn_progname}; then
11337       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11340       break
11341     else
11342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344     fi
11345   done
11346 fi
11347
11348 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11349   for ncn_progname in dlltool; do
11350     if test -n "$ncn_target_tool_prefix"; then
11351       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11356   $as_echo_n "(cached) " >&6
11357 else
11358   if test -n "$DLLTOOL_FOR_TARGET"; then
11359   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11363 do
11364   IFS=$as_save_IFS
11365   test -z "$as_dir" && as_dir=.
11366     for ac_exec_ext in '' $ac_executable_extensions; do
11367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370     break 2
11371   fi
11372 done
11373   done
11374 IFS=$as_save_IFS
11375
11376 fi
11377 fi
11378 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11379 if test -n "$DLLTOOL_FOR_TARGET"; then
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11381 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11382 else
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386
11387
11388     fi
11389     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11390       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11391 set dummy ${ncn_progname}; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11395   $as_echo_n "(cached) " >&6
11396 else
11397   if test -n "$DLLTOOL_FOR_TARGET"; then
11398   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11399 else
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11402 do
11403   IFS=$as_save_IFS
11404   test -z "$as_dir" && as_dir=.
11405     for ac_exec_ext in '' $ac_executable_extensions; do
11406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11407     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409     break 2
11410   fi
11411 done
11412   done
11413 IFS=$as_save_IFS
11414
11415 fi
11416 fi
11417 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11418 if test -n "$DLLTOOL_FOR_TARGET"; then
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11420 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11421 else
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11424 fi
11425
11426
11427     fi
11428     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11429   done
11430 fi
11431
11432 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11433   set dummy dlltool
11434   if test $build = $target ; then
11435     DLLTOOL_FOR_TARGET="$2"
11436   else
11437     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11438   fi
11439 else
11440   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11441 fi
11442
11443 else
11444   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11445 fi
11446
11447
11448
11449
11450 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11451   if test -n "$with_build_time_tools"; then
11452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11453 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11454     if test -x $with_build_time_tools/ld; then
11455       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11456       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11458 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11459     else
11460       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462     fi
11463   elif test $build != $host && test $have_gcc_for_target = yes; then
11464     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11465     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11466     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11467   fi
11468 fi
11469 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11470   # Extract the first word of "ld", so it can be a program name with args.
11471 set dummy ld; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477   case $LD_FOR_TARGET in
11478   [\\/]* | ?:[\\/]*)
11479   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11480   ;;
11481   *)
11482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $gcc_cv_tool_dirs
11484 do
11485   IFS=$as_save_IFS
11486   test -z "$as_dir" && as_dir=.
11487     for ac_exec_ext in '' $ac_executable_extensions; do
11488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11489     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491     break 2
11492   fi
11493 done
11494   done
11495 IFS=$as_save_IFS
11496
11497   ;;
11498 esac
11499 fi
11500 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11501 if test -n "$LD_FOR_TARGET"; then
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11503 $as_echo "$LD_FOR_TARGET" >&6; }
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508
11509
11510 fi
11511 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11512
11513
11514 if test -n "$LD_FOR_TARGET"; then
11515   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11516 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11517   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11518 fi
11519
11520 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11521   for ncn_progname in ld; do
11522     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11523 set dummy ${ncn_progname}; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   if test -n "$LD_FOR_TARGET"; then
11530   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11531 else
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11534 do
11535   IFS=$as_save_IFS
11536   test -z "$as_dir" && as_dir=.
11537     for ac_exec_ext in '' $ac_executable_extensions; do
11538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541     break 2
11542   fi
11543 done
11544   done
11545 IFS=$as_save_IFS
11546
11547 fi
11548 fi
11549 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11550 if test -n "$LD_FOR_TARGET"; then
11551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11552 $as_echo "$LD_FOR_TARGET" >&6; }
11553 else
11554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 fi
11557
11558
11559   done
11560 fi
11561
11562 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11563   for ncn_progname in ld; do
11564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11565 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11566     if test -x $with_build_time_tools/${ncn_progname}; then
11567       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11568       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11569 $as_echo "yes" >&6; }
11570       break
11571     else
11572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574     fi
11575   done
11576 fi
11577
11578 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11579   for ncn_progname in ld; do
11580     if test -n "$ncn_target_tool_prefix"; then
11581       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   if test -n "$LD_FOR_TARGET"; then
11589   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594   IFS=$as_save_IFS
11595   test -z "$as_dir" && as_dir=.
11596     for ac_exec_ext in '' $ac_executable_extensions; do
11597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603   done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11609 if test -n "$LD_FOR_TARGET"; then
11610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11611 $as_echo "$LD_FOR_TARGET" >&6; }
11612 else
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616
11617
11618     fi
11619     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11620       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11621 set dummy ${ncn_progname}; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   if test -n "$LD_FOR_TARGET"; then
11628   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633   IFS=$as_save_IFS
11634   test -z "$as_dir" && as_dir=.
11635     for ac_exec_ext in '' $ac_executable_extensions; do
11636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11637     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639     break 2
11640   fi
11641 done
11642   done
11643 IFS=$as_save_IFS
11644
11645 fi
11646 fi
11647 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11648 if test -n "$LD_FOR_TARGET"; then
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11650 $as_echo "$LD_FOR_TARGET" >&6; }
11651 else
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 fi
11655
11656
11657     fi
11658     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11659   done
11660 fi
11661
11662 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11663   set dummy ld
11664   if test $build = $target ; then
11665     LD_FOR_TARGET="$2"
11666   else
11667     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11668   fi
11669 else
11670   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11671 fi
11672
11673 else
11674   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11675 fi
11676
11677
11678
11679
11680 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11681   if test -n "$with_build_time_tools"; then
11682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11683 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11684     if test -x $with_build_time_tools/lipo; then
11685       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11686       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11687       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11688 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11689     else
11690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692     fi
11693   elif test $build != $host && test $have_gcc_for_target = yes; then
11694     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11695     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11696     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11697   fi
11698 fi
11699 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11700   # Extract the first word of "lipo", so it can be a program name with args.
11701 set dummy lipo; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11705   $as_echo_n "(cached) " >&6
11706 else
11707   case $LIPO_FOR_TARGET in
11708   [\\/]* | ?:[\\/]*)
11709   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11710   ;;
11711   *)
11712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $gcc_cv_tool_dirs
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_exec_ext in '' $ac_executable_extensions; do
11718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721     break 2
11722   fi
11723 done
11724   done
11725 IFS=$as_save_IFS
11726
11727   ;;
11728 esac
11729 fi
11730 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11731 if test -n "$LIPO_FOR_TARGET"; then
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11733 $as_echo "$LIPO_FOR_TARGET" >&6; }
11734 else
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738
11739
11740 fi
11741 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11742
11743
11744 if test -n "$LIPO_FOR_TARGET"; then
11745   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11746 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11747   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11748 fi
11749
11750 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11751   for ncn_progname in lipo; do
11752     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11753 set dummy ${ncn_progname}; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755 $as_echo_n "checking for $ac_word... " >&6; }
11756 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   if test -n "$LIPO_FOR_TARGET"; then
11760   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11761 else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765   IFS=$as_save_IFS
11766   test -z "$as_dir" && as_dir=.
11767     for ac_exec_ext in '' $ac_executable_extensions; do
11768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11769     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771     break 2
11772   fi
11773 done
11774   done
11775 IFS=$as_save_IFS
11776
11777 fi
11778 fi
11779 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11780 if test -n "$LIPO_FOR_TARGET"; then
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11782 $as_echo "$LIPO_FOR_TARGET" >&6; }
11783 else
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786 fi
11787
11788
11789   done
11790 fi
11791
11792 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11793   for ncn_progname in lipo; do
11794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11795 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11796     if test -x $with_build_time_tools/${ncn_progname}; then
11797       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11798       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11799 $as_echo "yes" >&6; }
11800       break
11801     else
11802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11804     fi
11805   done
11806 fi
11807
11808 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11809   for ncn_progname in lipo; do
11810     if test -n "$ncn_target_tool_prefix"; then
11811       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11812 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11816   $as_echo_n "(cached) " >&6
11817 else
11818   if test -n "$LIPO_FOR_TARGET"; then
11819   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11823 do
11824   IFS=$as_save_IFS
11825   test -z "$as_dir" && as_dir=.
11826     for ac_exec_ext in '' $ac_executable_extensions; do
11827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830     break 2
11831   fi
11832 done
11833   done
11834 IFS=$as_save_IFS
11835
11836 fi
11837 fi
11838 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11839 if test -n "$LIPO_FOR_TARGET"; then
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11841 $as_echo "$LIPO_FOR_TARGET" >&6; }
11842 else
11843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846
11847
11848     fi
11849     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11850       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11851 set dummy ${ncn_progname}; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   if test -n "$LIPO_FOR_TARGET"; then
11858   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11859 else
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11862 do
11863   IFS=$as_save_IFS
11864   test -z "$as_dir" && as_dir=.
11865     for ac_exec_ext in '' $ac_executable_extensions; do
11866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11867     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869     break 2
11870   fi
11871 done
11872   done
11873 IFS=$as_save_IFS
11874
11875 fi
11876 fi
11877 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11878 if test -n "$LIPO_FOR_TARGET"; then
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11880 $as_echo "$LIPO_FOR_TARGET" >&6; }
11881 else
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883 $as_echo "no" >&6; }
11884 fi
11885
11886
11887     fi
11888     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11889   done
11890 fi
11891
11892 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11893   set dummy lipo
11894   if test $build = $target ; then
11895     LIPO_FOR_TARGET="$2"
11896   else
11897     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11898   fi
11899 else
11900   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11901 fi
11902
11903 else
11904   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11905 fi
11906
11907
11908
11909
11910 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11911   if test -n "$with_build_time_tools"; then
11912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11913 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11914     if test -x $with_build_time_tools/nm; then
11915       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11916       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11918 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11919     else
11920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922     fi
11923   elif test $build != $host && test $have_gcc_for_target = yes; then
11924     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11925     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11926     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11927   fi
11928 fi
11929 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11930   # Extract the first word of "nm", so it can be a program name with args.
11931 set dummy nm; ac_word=$2
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933 $as_echo_n "checking for $ac_word... " >&6; }
11934 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   case $NM_FOR_TARGET in
11938   [\\/]* | ?:[\\/]*)
11939   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11940   ;;
11941   *)
11942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $gcc_cv_tool_dirs
11944 do
11945   IFS=$as_save_IFS
11946   test -z "$as_dir" && as_dir=.
11947     for ac_exec_ext in '' $ac_executable_extensions; do
11948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11949     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951     break 2
11952   fi
11953 done
11954   done
11955 IFS=$as_save_IFS
11956
11957   ;;
11958 esac
11959 fi
11960 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11961 if test -n "$NM_FOR_TARGET"; then
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11963 $as_echo "$NM_FOR_TARGET" >&6; }
11964 else
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966 $as_echo "no" >&6; }
11967 fi
11968
11969
11970 fi
11971 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11972
11973
11974 if test -n "$NM_FOR_TARGET"; then
11975   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11976 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11977   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11978 fi
11979
11980 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11981   for ncn_progname in nm; do
11982     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11983 set dummy ${ncn_progname}; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   if test -n "$NM_FOR_TARGET"; then
11990   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11991 else
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995   IFS=$as_save_IFS
11996   test -z "$as_dir" && as_dir=.
11997     for ac_exec_ext in '' $ac_executable_extensions; do
11998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001     break 2
12002   fi
12003 done
12004   done
12005 IFS=$as_save_IFS
12006
12007 fi
12008 fi
12009 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12010 if test -n "$NM_FOR_TARGET"; then
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12012 $as_echo "$NM_FOR_TARGET" >&6; }
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 fi
12017
12018
12019   done
12020 fi
12021
12022 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12023   for ncn_progname in nm; do
12024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12025 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12026     if test -x $with_build_time_tools/${ncn_progname}; then
12027       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029 $as_echo "yes" >&6; }
12030       break
12031     else
12032       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034     fi
12035   done
12036 fi
12037
12038 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12039   for ncn_progname in nm; do
12040     if test -n "$ncn_target_tool_prefix"; then
12041       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12042 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if test -n "$NM_FOR_TARGET"; then
12049   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056     for ac_exec_ext in '' $ac_executable_extensions; do
12057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060     break 2
12061   fi
12062 done
12063   done
12064 IFS=$as_save_IFS
12065
12066 fi
12067 fi
12068 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12069 if test -n "$NM_FOR_TARGET"; then
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12071 $as_echo "$NM_FOR_TARGET" >&6; }
12072 else
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077
12078     fi
12079     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12080       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12081 set dummy ${ncn_progname}; ac_word=$2
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12083 $as_echo_n "checking for $ac_word... " >&6; }
12084 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   if test -n "$NM_FOR_TARGET"; then
12088   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12089 else
12090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093   IFS=$as_save_IFS
12094   test -z "$as_dir" && as_dir=.
12095     for ac_exec_ext in '' $ac_executable_extensions; do
12096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12097     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099     break 2
12100   fi
12101 done
12102   done
12103 IFS=$as_save_IFS
12104
12105 fi
12106 fi
12107 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12108 if test -n "$NM_FOR_TARGET"; then
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12110 $as_echo "$NM_FOR_TARGET" >&6; }
12111 else
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115
12116
12117     fi
12118     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12119   done
12120 fi
12121
12122 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12123   set dummy nm
12124   if test $build = $target ; then
12125     NM_FOR_TARGET="$2"
12126   else
12127     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12128   fi
12129 else
12130   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12131 fi
12132
12133 else
12134   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12135 fi
12136
12137
12138
12139
12140 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12141   if test -n "$with_build_time_tools"; then
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12143 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12144     if test -x $with_build_time_tools/objdump; then
12145       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12146       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12148 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12149     else
12150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152     fi
12153   elif test $build != $host && test $have_gcc_for_target = yes; then
12154     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12155     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12156     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12157   fi
12158 fi
12159 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12160   # Extract the first word of "objdump", so it can be a program name with args.
12161 set dummy objdump; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   case $OBJDUMP_FOR_TARGET in
12168   [\\/]* | ?:[\\/]*)
12169   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12170   ;;
12171   *)
12172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $gcc_cv_tool_dirs
12174 do
12175   IFS=$as_save_IFS
12176   test -z "$as_dir" && as_dir=.
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181     break 2
12182   fi
12183 done
12184   done
12185 IFS=$as_save_IFS
12186
12187   ;;
12188 esac
12189 fi
12190 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12191 if test -n "$OBJDUMP_FOR_TARGET"; then
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12193 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12194 else
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198
12199
12200 fi
12201 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12202
12203
12204 if test -n "$OBJDUMP_FOR_TARGET"; then
12205   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12206 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12207   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12208 fi
12209
12210 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12211   for ncn_progname in objdump; do
12212     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12213 set dummy ${ncn_progname}; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   if test -n "$OBJDUMP_FOR_TARGET"; then
12220   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12221 else
12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12223 for as_dir in $PATH
12224 do
12225   IFS=$as_save_IFS
12226   test -z "$as_dir" && as_dir=.
12227     for ac_exec_ext in '' $ac_executable_extensions; do
12228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12229     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231     break 2
12232   fi
12233 done
12234   done
12235 IFS=$as_save_IFS
12236
12237 fi
12238 fi
12239 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12240 if test -n "$OBJDUMP_FOR_TARGET"; then
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12242 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12243 else
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12246 fi
12247
12248
12249   done
12250 fi
12251
12252 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12253   for ncn_progname in objdump; do
12254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12255 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12256     if test -x $with_build_time_tools/${ncn_progname}; then
12257       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259 $as_echo "yes" >&6; }
12260       break
12261     else
12262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264     fi
12265   done
12266 fi
12267
12268 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12269   for ncn_progname in objdump; do
12270     if test -n "$ncn_target_tool_prefix"; then
12271       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   if test -n "$OBJDUMP_FOR_TARGET"; then
12279   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284   IFS=$as_save_IFS
12285   test -z "$as_dir" && as_dir=.
12286     for ac_exec_ext in '' $ac_executable_extensions; do
12287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290     break 2
12291   fi
12292 done
12293   done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12299 if test -n "$OBJDUMP_FOR_TARGET"; then
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12301 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12302 else
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307
12308     fi
12309     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12310       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12311 set dummy ${ncn_progname}; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12315   $as_echo_n "(cached) " >&6
12316 else
12317   if test -n "$OBJDUMP_FOR_TARGET"; then
12318   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12322 do
12323   IFS=$as_save_IFS
12324   test -z "$as_dir" && as_dir=.
12325     for ac_exec_ext in '' $ac_executable_extensions; do
12326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329     break 2
12330   fi
12331 done
12332   done
12333 IFS=$as_save_IFS
12334
12335 fi
12336 fi
12337 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12338 if test -n "$OBJDUMP_FOR_TARGET"; then
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12340 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12341 else
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12344 fi
12345
12346
12347     fi
12348     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12349   done
12350 fi
12351
12352 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12353   set dummy objdump
12354   if test $build = $target ; then
12355     OBJDUMP_FOR_TARGET="$2"
12356   else
12357     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12358   fi
12359 else
12360   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12361 fi
12362
12363 else
12364   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12365 fi
12366
12367
12368
12369
12370 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12371   if test -n "$with_build_time_tools"; then
12372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12373 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12374     if test -x $with_build_time_tools/ranlib; then
12375       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12376       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12378 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12379     else
12380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382     fi
12383   elif test $build != $host && test $have_gcc_for_target = yes; then
12384     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12385     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12386     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12387   fi
12388 fi
12389 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12390   # Extract the first word of "ranlib", so it can be a program name with args.
12391 set dummy ranlib; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   case $RANLIB_FOR_TARGET in
12398   [\\/]* | ?:[\\/]*)
12399   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12400   ;;
12401   *)
12402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $gcc_cv_tool_dirs
12404 do
12405   IFS=$as_save_IFS
12406   test -z "$as_dir" && as_dir=.
12407     for ac_exec_ext in '' $ac_executable_extensions; do
12408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411     break 2
12412   fi
12413 done
12414   done
12415 IFS=$as_save_IFS
12416
12417   ;;
12418 esac
12419 fi
12420 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12421 if test -n "$RANLIB_FOR_TARGET"; then
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12423 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12424 else
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428
12429
12430 fi
12431 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12432
12433
12434 if test -n "$RANLIB_FOR_TARGET"; then
12435   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12436 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12437   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12438 fi
12439
12440 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12441   for ncn_progname in ranlib; do
12442     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12443 set dummy ${ncn_progname}; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12447   $as_echo_n "(cached) " >&6
12448 else
12449   if test -n "$RANLIB_FOR_TARGET"; then
12450   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12451 else
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455   IFS=$as_save_IFS
12456   test -z "$as_dir" && as_dir=.
12457     for ac_exec_ext in '' $ac_executable_extensions; do
12458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12459     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461     break 2
12462   fi
12463 done
12464   done
12465 IFS=$as_save_IFS
12466
12467 fi
12468 fi
12469 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12470 if test -n "$RANLIB_FOR_TARGET"; then
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12472 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12473 else
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477
12478
12479   done
12480 fi
12481
12482 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12483   for ncn_progname in ranlib; do
12484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12485 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12486     if test -x $with_build_time_tools/${ncn_progname}; then
12487       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12489 $as_echo "yes" >&6; }
12490       break
12491     else
12492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12494     fi
12495   done
12496 fi
12497
12498 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12499   for ncn_progname in ranlib; do
12500     if test -n "$ncn_target_tool_prefix"; then
12501       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12502 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   if test -n "$RANLIB_FOR_TARGET"; then
12509   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12510 else
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514   IFS=$as_save_IFS
12515   test -z "$as_dir" && as_dir=.
12516     for ac_exec_ext in '' $ac_executable_extensions; do
12517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520     break 2
12521   fi
12522 done
12523   done
12524 IFS=$as_save_IFS
12525
12526 fi
12527 fi
12528 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12529 if test -n "$RANLIB_FOR_TARGET"; then
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12531 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12532 else
12533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 fi
12536
12537
12538     fi
12539     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12540       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12541 set dummy ${ncn_progname}; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   if test -n "$RANLIB_FOR_TARGET"; then
12548   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12549 else
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12552 do
12553   IFS=$as_save_IFS
12554   test -z "$as_dir" && as_dir=.
12555     for ac_exec_ext in '' $ac_executable_extensions; do
12556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559     break 2
12560   fi
12561 done
12562   done
12563 IFS=$as_save_IFS
12564
12565 fi
12566 fi
12567 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12568 if test -n "$RANLIB_FOR_TARGET"; then
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12570 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12571 else
12572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12574 fi
12575
12576
12577     fi
12578     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12579   done
12580 fi
12581
12582 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12583   set dummy ranlib
12584   if test $build = $target ; then
12585     RANLIB_FOR_TARGET="$2"
12586   else
12587     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12588   fi
12589 else
12590   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12591 fi
12592
12593 else
12594   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12595 fi
12596
12597
12598
12599
12600 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12601   if test -n "$with_build_time_tools"; then
12602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12603 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12604     if test -x $with_build_time_tools/readelf; then
12605       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12606       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12608 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12609     else
12610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612     fi
12613   elif test $build != $host && test $have_gcc_for_target = yes; then
12614     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12615     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12616     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12617   fi
12618 fi
12619 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12620   # Extract the first word of "readelf", so it can be a program name with args.
12621 set dummy readelf; ac_word=$2
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   case $READELF_FOR_TARGET in
12628   [\\/]* | ?:[\\/]*)
12629   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12630   ;;
12631   *)
12632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $gcc_cv_tool_dirs
12634 do
12635   IFS=$as_save_IFS
12636   test -z "$as_dir" && as_dir=.
12637     for ac_exec_ext in '' $ac_executable_extensions; do
12638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12639     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641     break 2
12642   fi
12643 done
12644   done
12645 IFS=$as_save_IFS
12646
12647   ;;
12648 esac
12649 fi
12650 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12651 if test -n "$READELF_FOR_TARGET"; then
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12653 $as_echo "$READELF_FOR_TARGET" >&6; }
12654 else
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12657 fi
12658
12659
12660 fi
12661 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12662
12663
12664 if test -n "$READELF_FOR_TARGET"; then
12665   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12666 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12667   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12668 fi
12669
12670 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12671   for ncn_progname in readelf; do
12672     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12673 set dummy ${ncn_progname}; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675 $as_echo_n "checking for $ac_word... " >&6; }
12676 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12677   $as_echo_n "(cached) " >&6
12678 else
12679   if test -n "$READELF_FOR_TARGET"; then
12680   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12681 else
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12684 do
12685   IFS=$as_save_IFS
12686   test -z "$as_dir" && as_dir=.
12687     for ac_exec_ext in '' $ac_executable_extensions; do
12688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12689     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691     break 2
12692   fi
12693 done
12694   done
12695 IFS=$as_save_IFS
12696
12697 fi
12698 fi
12699 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12700 if test -n "$READELF_FOR_TARGET"; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12702 $as_echo "$READELF_FOR_TARGET" >&6; }
12703 else
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707
12708
12709   done
12710 fi
12711
12712 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12713   for ncn_progname in readelf; do
12714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12715 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12716     if test -x $with_build_time_tools/${ncn_progname}; then
12717       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12718       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12719 $as_echo "yes" >&6; }
12720       break
12721     else
12722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12724     fi
12725   done
12726 fi
12727
12728 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12729   for ncn_progname in readelf; do
12730     if test -n "$ncn_target_tool_prefix"; then
12731       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12732 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738   if test -n "$READELF_FOR_TARGET"; then
12739   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746     for ac_exec_ext in '' $ac_executable_extensions; do
12747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753   done
12754 IFS=$as_save_IFS
12755
12756 fi
12757 fi
12758 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12759 if test -n "$READELF_FOR_TARGET"; then
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12761 $as_echo "$READELF_FOR_TARGET" >&6; }
12762 else
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766
12767
12768     fi
12769     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12770       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12771 set dummy ${ncn_progname}; ac_word=$2
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773 $as_echo_n "checking for $ac_word... " >&6; }
12774 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   if test -n "$READELF_FOR_TARGET"; then
12778   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12779 else
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 for as_dir in $PATH
12782 do
12783   IFS=$as_save_IFS
12784   test -z "$as_dir" && as_dir=.
12785     for ac_exec_ext in '' $ac_executable_extensions; do
12786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12787     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789     break 2
12790   fi
12791 done
12792   done
12793 IFS=$as_save_IFS
12794
12795 fi
12796 fi
12797 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12798 if test -n "$READELF_FOR_TARGET"; then
12799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12800 $as_echo "$READELF_FOR_TARGET" >&6; }
12801 else
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804 fi
12805
12806
12807     fi
12808     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12809   done
12810 fi
12811
12812 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12813   set dummy readelf
12814   if test $build = $target ; then
12815     READELF_FOR_TARGET="$2"
12816   else
12817     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12818   fi
12819 else
12820   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12821 fi
12822
12823 else
12824   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12825 fi
12826
12827
12828
12829
12830 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12831   if test -n "$with_build_time_tools"; then
12832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12833 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12834     if test -x $with_build_time_tools/strip; then
12835       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12836       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12838 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12839     else
12840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12842     fi
12843   elif test $build != $host && test $have_gcc_for_target = yes; then
12844     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12845     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12846     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12847   fi
12848 fi
12849 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12850   # Extract the first word of "strip", so it can be a program name with args.
12851 set dummy strip; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   case $STRIP_FOR_TARGET in
12858   [\\/]* | ?:[\\/]*)
12859   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12860   ;;
12861   *)
12862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $gcc_cv_tool_dirs
12864 do
12865   IFS=$as_save_IFS
12866   test -z "$as_dir" && as_dir=.
12867     for ac_exec_ext in '' $ac_executable_extensions; do
12868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12869     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871     break 2
12872   fi
12873 done
12874   done
12875 IFS=$as_save_IFS
12876
12877   ;;
12878 esac
12879 fi
12880 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12881 if test -n "$STRIP_FOR_TARGET"; then
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12883 $as_echo "$STRIP_FOR_TARGET" >&6; }
12884 else
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886 $as_echo "no" >&6; }
12887 fi
12888
12889
12890 fi
12891 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12892
12893
12894 if test -n "$STRIP_FOR_TARGET"; then
12895   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12896 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12897   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12898 fi
12899
12900 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12901   for ncn_progname in strip; do
12902     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12903 set dummy ${ncn_progname}; ac_word=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   if test -n "$STRIP_FOR_TARGET"; then
12910   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12911 else
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12914 do
12915   IFS=$as_save_IFS
12916   test -z "$as_dir" && as_dir=.
12917     for ac_exec_ext in '' $ac_executable_extensions; do
12918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12919     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921     break 2
12922   fi
12923 done
12924   done
12925 IFS=$as_save_IFS
12926
12927 fi
12928 fi
12929 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12930 if test -n "$STRIP_FOR_TARGET"; then
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12932 $as_echo "$STRIP_FOR_TARGET" >&6; }
12933 else
12934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12936 fi
12937
12938
12939   done
12940 fi
12941
12942 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12943   for ncn_progname in strip; do
12944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12946     if test -x $with_build_time_tools/${ncn_progname}; then
12947       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12948       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12949 $as_echo "yes" >&6; }
12950       break
12951     else
12952       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954     fi
12955   done
12956 fi
12957
12958 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12959   for ncn_progname in strip; do
12960     if test -n "$ncn_target_tool_prefix"; then
12961       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964 $as_echo_n "checking for $ac_word... " >&6; }
12965 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12966   $as_echo_n "(cached) " >&6
12967 else
12968   if test -n "$STRIP_FOR_TARGET"; then
12969   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12970 else
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974   IFS=$as_save_IFS
12975   test -z "$as_dir" && as_dir=.
12976     for ac_exec_ext in '' $ac_executable_extensions; do
12977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983   done
12984 IFS=$as_save_IFS
12985
12986 fi
12987 fi
12988 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12989 if test -n "$STRIP_FOR_TARGET"; then
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12991 $as_echo "$STRIP_FOR_TARGET" >&6; }
12992 else
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996
12997
12998     fi
12999     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13000       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13001 set dummy ${ncn_progname}; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007   if test -n "$STRIP_FOR_TARGET"; then
13008   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13012 do
13013   IFS=$as_save_IFS
13014   test -z "$as_dir" && as_dir=.
13015     for ac_exec_ext in '' $ac_executable_extensions; do
13016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019     break 2
13020   fi
13021 done
13022   done
13023 IFS=$as_save_IFS
13024
13025 fi
13026 fi
13027 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13028 if test -n "$STRIP_FOR_TARGET"; then
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13030 $as_echo "$STRIP_FOR_TARGET" >&6; }
13031 else
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037     fi
13038     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13039   done
13040 fi
13041
13042 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13043   set dummy strip
13044   if test $build = $target ; then
13045     STRIP_FOR_TARGET="$2"
13046   else
13047     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13048   fi
13049 else
13050   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13051 fi
13052
13053 else
13054   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13055 fi
13056
13057
13058
13059
13060 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13061   if test -n "$with_build_time_tools"; then
13062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13063 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13064     if test -x $with_build_time_tools/windres; then
13065       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13066       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13068 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13069     else
13070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13072     fi
13073   elif test $build != $host && test $have_gcc_for_target = yes; then
13074     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13075     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13076     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13077   fi
13078 fi
13079 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13080   # Extract the first word of "windres", so it can be a program name with args.
13081 set dummy windres; ac_word=$2
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 $as_echo_n "checking for $ac_word... " >&6; }
13084 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   case $WINDRES_FOR_TARGET in
13088   [\\/]* | ?:[\\/]*)
13089   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13090   ;;
13091   *)
13092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $gcc_cv_tool_dirs
13094 do
13095   IFS=$as_save_IFS
13096   test -z "$as_dir" && as_dir=.
13097     for ac_exec_ext in '' $ac_executable_extensions; do
13098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101     break 2
13102   fi
13103 done
13104   done
13105 IFS=$as_save_IFS
13106
13107   ;;
13108 esac
13109 fi
13110 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13111 if test -n "$WINDRES_FOR_TARGET"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13113 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118
13119
13120 fi
13121 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13122
13123
13124 if test -n "$WINDRES_FOR_TARGET"; then
13125   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13126 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13127   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13128 fi
13129
13130 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13131   for ncn_progname in windres; do
13132     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13133 set dummy ${ncn_progname}; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   if test -n "$WINDRES_FOR_TARGET"; then
13140   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13141 else
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145   IFS=$as_save_IFS
13146   test -z "$as_dir" && as_dir=.
13147     for ac_exec_ext in '' $ac_executable_extensions; do
13148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13149     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151     break 2
13152   fi
13153 done
13154   done
13155 IFS=$as_save_IFS
13156
13157 fi
13158 fi
13159 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13160 if test -n "$WINDRES_FOR_TARGET"; then
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13162 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13163 else
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13165 $as_echo "no" >&6; }
13166 fi
13167
13168
13169   done
13170 fi
13171
13172 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13173   for ncn_progname in windres; do
13174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13175 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13176     if test -x $with_build_time_tools/${ncn_progname}; then
13177       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13179 $as_echo "yes" >&6; }
13180       break
13181     else
13182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13184     fi
13185   done
13186 fi
13187
13188 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13189   for ncn_progname in windres; do
13190     if test -n "$ncn_target_tool_prefix"; then
13191       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13196   $as_echo_n "(cached) " >&6
13197 else
13198   if test -n "$WINDRES_FOR_TARGET"; then
13199   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204   IFS=$as_save_IFS
13205   test -z "$as_dir" && as_dir=.
13206     for ac_exec_ext in '' $ac_executable_extensions; do
13207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210     break 2
13211   fi
13212 done
13213   done
13214 IFS=$as_save_IFS
13215
13216 fi
13217 fi
13218 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13219 if test -n "$WINDRES_FOR_TARGET"; then
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13221 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13222 else
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226
13227
13228     fi
13229     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13230       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13231 set dummy ${ncn_progname}; ac_word=$2
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13235   $as_echo_n "(cached) " >&6
13236 else
13237   if test -n "$WINDRES_FOR_TARGET"; then
13238   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13239 else
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13242 do
13243   IFS=$as_save_IFS
13244   test -z "$as_dir" && as_dir=.
13245     for ac_exec_ext in '' $ac_executable_extensions; do
13246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13249     break 2
13250   fi
13251 done
13252   done
13253 IFS=$as_save_IFS
13254
13255 fi
13256 fi
13257 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13258 if test -n "$WINDRES_FOR_TARGET"; then
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13260 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13261 else
13262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264 fi
13265
13266
13267     fi
13268     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13269   done
13270 fi
13271
13272 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13273   set dummy windres
13274   if test $build = $target ; then
13275     WINDRES_FOR_TARGET="$2"
13276   else
13277     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13278   fi
13279 else
13280   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13281 fi
13282
13283 else
13284   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13285 fi
13286
13287
13288
13289
13290 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13291   if test -n "$with_build_time_tools"; then
13292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13293 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13294     if test -x $with_build_time_tools/windmc; then
13295       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13296       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13298 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13299     else
13300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302     fi
13303   elif test $build != $host && test $have_gcc_for_target = yes; then
13304     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13305     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13306     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13307   fi
13308 fi
13309 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13310   # Extract the first word of "windmc", so it can be a program name with args.
13311 set dummy windmc; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13315   $as_echo_n "(cached) " >&6
13316 else
13317   case $WINDMC_FOR_TARGET in
13318   [\\/]* | ?:[\\/]*)
13319   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13320   ;;
13321   *)
13322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $gcc_cv_tool_dirs
13324 do
13325   IFS=$as_save_IFS
13326   test -z "$as_dir" && as_dir=.
13327     for ac_exec_ext in '' $ac_executable_extensions; do
13328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13329     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13331     break 2
13332   fi
13333 done
13334   done
13335 IFS=$as_save_IFS
13336
13337   ;;
13338 esac
13339 fi
13340 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13341 if test -n "$WINDMC_FOR_TARGET"; then
13342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13343 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13344 else
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347 fi
13348
13349
13350 fi
13351 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13352
13353
13354 if test -n "$WINDMC_FOR_TARGET"; then
13355   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13356 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13357   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13358 fi
13359
13360 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13361   for ncn_progname in windmc; do
13362     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13363 set dummy ${ncn_progname}; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13365 $as_echo_n "checking for $ac_word... " >&6; }
13366 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13367   $as_echo_n "(cached) " >&6
13368 else
13369   if test -n "$WINDMC_FOR_TARGET"; then
13370   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13371 else
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375   IFS=$as_save_IFS
13376   test -z "$as_dir" && as_dir=.
13377     for ac_exec_ext in '' $ac_executable_extensions; do
13378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13381     break 2
13382   fi
13383 done
13384   done
13385 IFS=$as_save_IFS
13386
13387 fi
13388 fi
13389 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13390 if test -n "$WINDMC_FOR_TARGET"; then
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13392 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13393 else
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 $as_echo "no" >&6; }
13396 fi
13397
13398
13399   done
13400 fi
13401
13402 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13403   for ncn_progname in windmc; do
13404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13405 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13406     if test -x $with_build_time_tools/${ncn_progname}; then
13407       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13409 $as_echo "yes" >&6; }
13410       break
13411     else
13412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13414     fi
13415   done
13416 fi
13417
13418 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13419   for ncn_progname in windmc; do
13420     if test -n "$ncn_target_tool_prefix"; then
13421       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13422 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13426   $as_echo_n "(cached) " >&6
13427 else
13428   if test -n "$WINDMC_FOR_TARGET"; then
13429   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434   IFS=$as_save_IFS
13435   test -z "$as_dir" && as_dir=.
13436     for ac_exec_ext in '' $ac_executable_extensions; do
13437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13438     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440     break 2
13441   fi
13442 done
13443   done
13444 IFS=$as_save_IFS
13445
13446 fi
13447 fi
13448 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13449 if test -n "$WINDMC_FOR_TARGET"; then
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13451 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456
13457
13458     fi
13459     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13460       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13461 set dummy ${ncn_progname}; ac_word=$2
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463 $as_echo_n "checking for $ac_word... " >&6; }
13464 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   if test -n "$WINDMC_FOR_TARGET"; then
13468   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473   IFS=$as_save_IFS
13474   test -z "$as_dir" && as_dir=.
13475     for ac_exec_ext in '' $ac_executable_extensions; do
13476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13477     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479     break 2
13480   fi
13481 done
13482   done
13483 IFS=$as_save_IFS
13484
13485 fi
13486 fi
13487 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13488 if test -n "$WINDMC_FOR_TARGET"; then
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13490 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13491 else
13492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13494 fi
13495
13496
13497     fi
13498     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13499   done
13500 fi
13501
13502 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13503   set dummy windmc
13504   if test $build = $target ; then
13505     WINDMC_FOR_TARGET="$2"
13506   else
13507     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13508   fi
13509 else
13510   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13511 fi
13512
13513 else
13514   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13515 fi
13516
13517
13518 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13519
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13521 $as_echo_n "checking where to find the target ar... " >&6; }
13522 if test "x${build}" != "x${host}" ; then
13523   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13524     # We already found the complete path
13525     ac_dir=`dirname $AR_FOR_TARGET`
13526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13527 $as_echo "pre-installed in $ac_dir" >&6; }
13528   else
13529     # Canadian cross, just use what we found
13530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13531 $as_echo "pre-installed" >&6; }
13532   fi
13533 else
13534   ok=yes
13535   case " ${configdirs} " in
13536     *" binutils "*) ;;
13537     *) ok=no ;;
13538   esac
13539
13540   if test $ok = yes; then
13541     # An in-tree tool is available and we can use it
13542     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13544 $as_echo "just compiled" >&6; }
13545   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13546     # We already found the complete path
13547     ac_dir=`dirname $AR_FOR_TARGET`
13548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13549 $as_echo "pre-installed in $ac_dir" >&6; }
13550   elif test "x$target" = "x$host"; then
13551     # We can use an host tool
13552     AR_FOR_TARGET='$(AR)'
13553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13554 $as_echo "host tool" >&6; }
13555   else
13556     # We need a cross tool
13557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13558 $as_echo "pre-installed" >&6; }
13559   fi
13560 fi
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13563 $as_echo_n "checking where to find the target as... " >&6; }
13564 if test "x${build}" != "x${host}" ; then
13565   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13566     # We already found the complete path
13567     ac_dir=`dirname $AS_FOR_TARGET`
13568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13569 $as_echo "pre-installed in $ac_dir" >&6; }
13570   else
13571     # Canadian cross, just use what we found
13572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13573 $as_echo "pre-installed" >&6; }
13574   fi
13575 else
13576   ok=yes
13577   case " ${configdirs} " in
13578     *" gas "*) ;;
13579     *) ok=no ;;
13580   esac
13581
13582   if test $ok = yes; then
13583     # An in-tree tool is available and we can use it
13584     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13586 $as_echo "just compiled" >&6; }
13587   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13588     # We already found the complete path
13589     ac_dir=`dirname $AS_FOR_TARGET`
13590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591 $as_echo "pre-installed in $ac_dir" >&6; }
13592   elif test "x$target" = "x$host"; then
13593     # We can use an host tool
13594     AS_FOR_TARGET='$(AS)'
13595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13596 $as_echo "host tool" >&6; }
13597   else
13598     # We need a cross tool
13599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13600 $as_echo "pre-installed" >&6; }
13601   fi
13602 fi
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13605 $as_echo_n "checking where to find the target cc... " >&6; }
13606 if test "x${build}" != "x${host}" ; then
13607   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13608     # We already found the complete path
13609     ac_dir=`dirname $CC_FOR_TARGET`
13610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13611 $as_echo "pre-installed in $ac_dir" >&6; }
13612   else
13613     # Canadian cross, just use what we found
13614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13615 $as_echo "pre-installed" >&6; }
13616   fi
13617 else
13618   ok=yes
13619   case " ${configdirs} " in
13620     *" gcc "*) ;;
13621     *) ok=no ;;
13622   esac
13623
13624   if test $ok = yes; then
13625     # An in-tree tool is available and we can use it
13626     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13628 $as_echo "just compiled" >&6; }
13629   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13630     # We already found the complete path
13631     ac_dir=`dirname $CC_FOR_TARGET`
13632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633 $as_echo "pre-installed in $ac_dir" >&6; }
13634   elif test "x$target" = "x$host"; then
13635     # We can use an host tool
13636     CC_FOR_TARGET='$(CC)'
13637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13638 $as_echo "host tool" >&6; }
13639   else
13640     # We need a cross tool
13641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13642 $as_echo "pre-installed" >&6; }
13643   fi
13644 fi
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13647 $as_echo_n "checking where to find the target c++... " >&6; }
13648 if test "x${build}" != "x${host}" ; then
13649   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13650     # We already found the complete path
13651     ac_dir=`dirname $CXX_FOR_TARGET`
13652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653 $as_echo "pre-installed in $ac_dir" >&6; }
13654   else
13655     # Canadian cross, just use what we found
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657 $as_echo "pre-installed" >&6; }
13658   fi
13659 else
13660   ok=yes
13661   case " ${configdirs} " in
13662     *" gcc "*) ;;
13663     *) ok=no ;;
13664   esac
13665   case ,${enable_languages}, in
13666     *,c++,*) ;;
13667     *) ok=no ;;
13668   esac
13669   if test $ok = yes; then
13670     # An in-tree tool is available and we can use it
13671     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13673 $as_echo "just compiled" >&6; }
13674   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13675     # We already found the complete path
13676     ac_dir=`dirname $CXX_FOR_TARGET`
13677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13678 $as_echo "pre-installed in $ac_dir" >&6; }
13679   elif test "x$target" = "x$host"; then
13680     # We can use an host tool
13681     CXX_FOR_TARGET='$(CXX)'
13682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13683 $as_echo "host tool" >&6; }
13684   else
13685     # We need a cross tool
13686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13687 $as_echo "pre-installed" >&6; }
13688   fi
13689 fi
13690
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13692 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13693 if test "x${build}" != "x${host}" ; then
13694   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13695     # We already found the complete path
13696     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13698 $as_echo "pre-installed in $ac_dir" >&6; }
13699   else
13700     # Canadian cross, just use what we found
13701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13702 $as_echo "pre-installed" >&6; }
13703   fi
13704 else
13705   ok=yes
13706   case " ${configdirs} " in
13707     *" gcc "*) ;;
13708     *) ok=no ;;
13709   esac
13710   case ,${enable_languages}, in
13711     *,c++,*) ;;
13712     *) ok=no ;;
13713   esac
13714   if test $ok = yes; then
13715     # An in-tree tool is available and we can use it
13716     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'
13717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13718 $as_echo "just compiled" >&6; }
13719   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13720     # We already found the complete path
13721     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723 $as_echo "pre-installed in $ac_dir" >&6; }
13724   elif test "x$target" = "x$host"; then
13725     # We can use an host tool
13726     RAW_CXX_FOR_TARGET='$(CXX)'
13727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13728 $as_echo "host tool" >&6; }
13729   else
13730     # We need a cross tool
13731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13732 $as_echo "pre-installed" >&6; }
13733   fi
13734 fi
13735
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13737 $as_echo_n "checking where to find the target dlltool... " >&6; }
13738 if test "x${build}" != "x${host}" ; then
13739   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13740     # We already found the complete path
13741     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13743 $as_echo "pre-installed in $ac_dir" >&6; }
13744   else
13745     # Canadian cross, just use what we found
13746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13747 $as_echo "pre-installed" >&6; }
13748   fi
13749 else
13750   ok=yes
13751   case " ${configdirs} " in
13752     *" binutils "*) ;;
13753     *) ok=no ;;
13754   esac
13755
13756   if test $ok = yes; then
13757     # An in-tree tool is available and we can use it
13758     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13760 $as_echo "just compiled" >&6; }
13761   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13762     # We already found the complete path
13763     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13765 $as_echo "pre-installed in $ac_dir" >&6; }
13766   elif test "x$target" = "x$host"; then
13767     # We can use an host tool
13768     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13770 $as_echo "host tool" >&6; }
13771   else
13772     # We need a cross tool
13773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13774 $as_echo "pre-installed" >&6; }
13775   fi
13776 fi
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13779 $as_echo_n "checking where to find the target gcc... " >&6; }
13780 if test "x${build}" != "x${host}" ; then
13781   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13782     # We already found the complete path
13783     ac_dir=`dirname $GCC_FOR_TARGET`
13784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13785 $as_echo "pre-installed in $ac_dir" >&6; }
13786   else
13787     # Canadian cross, just use what we found
13788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789 $as_echo "pre-installed" >&6; }
13790   fi
13791 else
13792   ok=yes
13793   case " ${configdirs} " in
13794     *" gcc "*) ;;
13795     *) ok=no ;;
13796   esac
13797
13798   if test $ok = yes; then
13799     # An in-tree tool is available and we can use it
13800     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13802 $as_echo "just compiled" >&6; }
13803   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13804     # We already found the complete path
13805     ac_dir=`dirname $GCC_FOR_TARGET`
13806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13807 $as_echo "pre-installed in $ac_dir" >&6; }
13808   elif test "x$target" = "x$host"; then
13809     # We can use an host tool
13810     GCC_FOR_TARGET='$()'
13811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13812 $as_echo "host tool" >&6; }
13813   else
13814     # We need a cross tool
13815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13816 $as_echo "pre-installed" >&6; }
13817   fi
13818 fi
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13821 $as_echo_n "checking where to find the target gcj... " >&6; }
13822 if test "x${build}" != "x${host}" ; then
13823   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13824     # We already found the complete path
13825     ac_dir=`dirname $GCJ_FOR_TARGET`
13826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13827 $as_echo "pre-installed in $ac_dir" >&6; }
13828   else
13829     # Canadian cross, just use what we found
13830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13831 $as_echo "pre-installed" >&6; }
13832   fi
13833 else
13834   ok=yes
13835   case " ${configdirs} " in
13836     *" gcc "*) ;;
13837     *) ok=no ;;
13838   esac
13839   case ,${enable_languages}, in
13840     *,java,*) ;;
13841     *) ok=no ;;
13842   esac
13843   if test $ok = yes; then
13844     # An in-tree tool is available and we can use it
13845     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13847 $as_echo "just compiled" >&6; }
13848   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13849     # We already found the complete path
13850     ac_dir=`dirname $GCJ_FOR_TARGET`
13851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13852 $as_echo "pre-installed in $ac_dir" >&6; }
13853   elif test "x$target" = "x$host"; then
13854     # We can use an host tool
13855     GCJ_FOR_TARGET='$(GCJ)'
13856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13857 $as_echo "host tool" >&6; }
13858   else
13859     # We need a cross tool
13860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13861 $as_echo "pre-installed" >&6; }
13862   fi
13863 fi
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13866 $as_echo_n "checking where to find the target gfortran... " >&6; }
13867 if test "x${build}" != "x${host}" ; then
13868   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13869     # We already found the complete path
13870     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13872 $as_echo "pre-installed in $ac_dir" >&6; }
13873   else
13874     # Canadian cross, just use what we found
13875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13876 $as_echo "pre-installed" >&6; }
13877   fi
13878 else
13879   ok=yes
13880   case " ${configdirs} " in
13881     *" gcc "*) ;;
13882     *) ok=no ;;
13883   esac
13884   case ,${enable_languages}, in
13885     *,fortran,*) ;;
13886     *) ok=no ;;
13887   esac
13888   if test $ok = yes; then
13889     # An in-tree tool is available and we can use it
13890     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13892 $as_echo "just compiled" >&6; }
13893   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13894     # We already found the complete path
13895     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898   elif test "x$target" = "x$host"; then
13899     # We can use an host tool
13900     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13902 $as_echo "host tool" >&6; }
13903   else
13904     # We need a cross tool
13905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13907   fi
13908 fi
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13911 $as_echo_n "checking where to find the target gccgo... " >&6; }
13912 if test "x${build}" != "x${host}" ; then
13913   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13914     # We already found the complete path
13915     ac_dir=`dirname $GOC_FOR_TARGET`
13916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13917 $as_echo "pre-installed in $ac_dir" >&6; }
13918   else
13919     # Canadian cross, just use what we found
13920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13922   fi
13923 else
13924   ok=yes
13925   case " ${configdirs} " in
13926     *" gcc "*) ;;
13927     *) ok=no ;;
13928   esac
13929   case ,${enable_languages}, in
13930     *,go,*) ;;
13931     *) ok=no ;;
13932   esac
13933   if test $ok = yes; then
13934     # An in-tree tool is available and we can use it
13935     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13937 $as_echo "just compiled" >&6; }
13938   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13939     # We already found the complete path
13940     ac_dir=`dirname $GOC_FOR_TARGET`
13941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943   elif test "x$target" = "x$host"; then
13944     # We can use an host tool
13945     GOC_FOR_TARGET='$(GOC)'
13946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13947 $as_echo "host tool" >&6; }
13948   else
13949     # We need a cross tool
13950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13951 $as_echo "pre-installed" >&6; }
13952   fi
13953 fi
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13956 $as_echo_n "checking where to find the target ld... " >&6; }
13957 if test "x${build}" != "x${host}" ; then
13958   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13959     # We already found the complete path
13960     ac_dir=`dirname $LD_FOR_TARGET`
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962 $as_echo "pre-installed in $ac_dir" >&6; }
13963   else
13964     # Canadian cross, just use what we found
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13966 $as_echo "pre-installed" >&6; }
13967   fi
13968 else
13969   ok=yes
13970   case " ${configdirs} " in
13971     *" ld "*) ;;
13972     *) ok=no ;;
13973   esac
13974
13975   if test $ok = yes; then
13976     # An in-tree tool is available and we can use it
13977     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979 $as_echo "just compiled" >&6; }
13980   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13981     # We already found the complete path
13982     ac_dir=`dirname $LD_FOR_TARGET`
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985   elif test "x$target" = "x$host"; then
13986     # We can use an host tool
13987     LD_FOR_TARGET='$(LD)'
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989 $as_echo "host tool" >&6; }
13990   else
13991     # We need a cross tool
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993 $as_echo "pre-installed" >&6; }
13994   fi
13995 fi
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13998 $as_echo_n "checking where to find the target lipo... " >&6; }
13999 if test "x${build}" != "x${host}" ; then
14000   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14001     # We already found the complete path
14002     ac_dir=`dirname $LIPO_FOR_TARGET`
14003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004 $as_echo "pre-installed in $ac_dir" >&6; }
14005   else
14006     # Canadian cross, just use what we found
14007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008 $as_echo "pre-installed" >&6; }
14009   fi
14010 else
14011   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14012     # We already found the complete path
14013     ac_dir=`dirname $LIPO_FOR_TARGET`
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14015 $as_echo "pre-installed in $ac_dir" >&6; }
14016   elif test "x$target" = "x$host"; then
14017     # We can use an host tool
14018     LIPO_FOR_TARGET='$(LIPO)'
14019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14020 $as_echo "host tool" >&6; }
14021   else
14022     # We need a cross tool
14023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024 $as_echo "pre-installed" >&6; }
14025   fi
14026 fi
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14029 $as_echo_n "checking where to find the target nm... " >&6; }
14030 if test "x${build}" != "x${host}" ; then
14031   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14032     # We already found the complete path
14033     ac_dir=`dirname $NM_FOR_TARGET`
14034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035 $as_echo "pre-installed in $ac_dir" >&6; }
14036   else
14037     # Canadian cross, just use what we found
14038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039 $as_echo "pre-installed" >&6; }
14040   fi
14041 else
14042   ok=yes
14043   case " ${configdirs} " in
14044     *" binutils "*) ;;
14045     *) ok=no ;;
14046   esac
14047
14048   if test $ok = yes; then
14049     # An in-tree tool is available and we can use it
14050     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052 $as_echo "just compiled" >&6; }
14053   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14054     # We already found the complete path
14055     ac_dir=`dirname $NM_FOR_TARGET`
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057 $as_echo "pre-installed in $ac_dir" >&6; }
14058   elif test "x$target" = "x$host"; then
14059     # We can use an host tool
14060     NM_FOR_TARGET='$(NM)'
14061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062 $as_echo "host tool" >&6; }
14063   else
14064     # We need a cross tool
14065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066 $as_echo "pre-installed" >&6; }
14067   fi
14068 fi
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14071 $as_echo_n "checking where to find the target objdump... " >&6; }
14072 if test "x${build}" != "x${host}" ; then
14073   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14074     # We already found the complete path
14075     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077 $as_echo "pre-installed in $ac_dir" >&6; }
14078   else
14079     # Canadian cross, just use what we found
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081 $as_echo "pre-installed" >&6; }
14082   fi
14083 else
14084   ok=yes
14085   case " ${configdirs} " in
14086     *" binutils "*) ;;
14087     *) ok=no ;;
14088   esac
14089
14090   if test $ok = yes; then
14091     # An in-tree tool is available and we can use it
14092     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094 $as_echo "just compiled" >&6; }
14095   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14096     # We already found the complete path
14097     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100   elif test "x$target" = "x$host"; then
14101     # We can use an host tool
14102     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104 $as_echo "host tool" >&6; }
14105   else
14106     # We need a cross tool
14107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108 $as_echo "pre-installed" >&6; }
14109   fi
14110 fi
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14113 $as_echo_n "checking where to find the target ranlib... " >&6; }
14114 if test "x${build}" != "x${host}" ; then
14115   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14116     # We already found the complete path
14117     ac_dir=`dirname $RANLIB_FOR_TARGET`
14118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119 $as_echo "pre-installed in $ac_dir" >&6; }
14120   else
14121     # Canadian cross, just use what we found
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14124   fi
14125 else
14126   ok=yes
14127   case " ${configdirs} " in
14128     *" binutils "*) ;;
14129     *) ok=no ;;
14130   esac
14131
14132   if test $ok = yes; then
14133     # An in-tree tool is available and we can use it
14134     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14138     # We already found the complete path
14139     ac_dir=`dirname $RANLIB_FOR_TARGET`
14140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142   elif test "x$target" = "x$host"; then
14143     # We can use an host tool
14144     RANLIB_FOR_TARGET='$(RANLIB)'
14145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147   else
14148     # We need a cross tool
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14151   fi
14152 fi
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14155 $as_echo_n "checking where to find the target readelf... " >&6; }
14156 if test "x${build}" != "x${host}" ; then
14157   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14158     # We already found the complete path
14159     ac_dir=`dirname $READELF_FOR_TARGET`
14160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162   else
14163     # Canadian cross, just use what we found
14164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165 $as_echo "pre-installed" >&6; }
14166   fi
14167 else
14168   ok=yes
14169   case " ${configdirs} " in
14170     *" binutils "*) ;;
14171     *) ok=no ;;
14172   esac
14173
14174   if test $ok = yes; then
14175     # An in-tree tool is available and we can use it
14176     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14178 $as_echo "just compiled" >&6; }
14179   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14180     # We already found the complete path
14181     ac_dir=`dirname $READELF_FOR_TARGET`
14182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183 $as_echo "pre-installed in $ac_dir" >&6; }
14184   elif test "x$target" = "x$host"; then
14185     # We can use an host tool
14186     READELF_FOR_TARGET='$(READELF)'
14187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14188 $as_echo "host tool" >&6; }
14189   else
14190     # We need a cross tool
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192 $as_echo "pre-installed" >&6; }
14193   fi
14194 fi
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14197 $as_echo_n "checking where to find the target strip... " >&6; }
14198 if test "x${build}" != "x${host}" ; then
14199   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14200     # We already found the complete path
14201     ac_dir=`dirname $STRIP_FOR_TARGET`
14202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204   else
14205     # Canadian cross, just use what we found
14206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207 $as_echo "pre-installed" >&6; }
14208   fi
14209 else
14210   ok=yes
14211   case " ${configdirs} " in
14212     *" binutils "*) ;;
14213     *) ok=no ;;
14214   esac
14215
14216   if test $ok = yes; then
14217     # An in-tree tool is available and we can use it
14218     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14220 $as_echo "just compiled" >&6; }
14221   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14222     # We already found the complete path
14223     ac_dir=`dirname $STRIP_FOR_TARGET`
14224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14225 $as_echo "pre-installed in $ac_dir" >&6; }
14226   elif test "x$target" = "x$host"; then
14227     # We can use an host tool
14228     STRIP_FOR_TARGET='$(STRIP)'
14229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14230 $as_echo "host tool" >&6; }
14231   else
14232     # We need a cross tool
14233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14234 $as_echo "pre-installed" >&6; }
14235   fi
14236 fi
14237
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14239 $as_echo_n "checking where to find the target windres... " >&6; }
14240 if test "x${build}" != "x${host}" ; then
14241   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14242     # We already found the complete path
14243     ac_dir=`dirname $WINDRES_FOR_TARGET`
14244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245 $as_echo "pre-installed in $ac_dir" >&6; }
14246   else
14247     # Canadian cross, just use what we found
14248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14249 $as_echo "pre-installed" >&6; }
14250   fi
14251 else
14252   ok=yes
14253   case " ${configdirs} " in
14254     *" binutils "*) ;;
14255     *) ok=no ;;
14256   esac
14257
14258   if test $ok = yes; then
14259     # An in-tree tool is available and we can use it
14260     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14262 $as_echo "just compiled" >&6; }
14263   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14264     # We already found the complete path
14265     ac_dir=`dirname $WINDRES_FOR_TARGET`
14266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14267 $as_echo "pre-installed in $ac_dir" >&6; }
14268   elif test "x$target" = "x$host"; then
14269     # We can use an host tool
14270     WINDRES_FOR_TARGET='$(WINDRES)'
14271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14272 $as_echo "host tool" >&6; }
14273   else
14274     # We need a cross tool
14275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14276 $as_echo "pre-installed" >&6; }
14277   fi
14278 fi
14279
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14281 $as_echo_n "checking where to find the target windmc... " >&6; }
14282 if test "x${build}" != "x${host}" ; then
14283   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14284     # We already found the complete path
14285     ac_dir=`dirname $WINDMC_FOR_TARGET`
14286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14287 $as_echo "pre-installed in $ac_dir" >&6; }
14288   else
14289     # Canadian cross, just use what we found
14290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14291 $as_echo "pre-installed" >&6; }
14292   fi
14293 else
14294   ok=yes
14295   case " ${configdirs} " in
14296     *" binutils "*) ;;
14297     *) ok=no ;;
14298   esac
14299
14300   if test $ok = yes; then
14301     # An in-tree tool is available and we can use it
14302     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304 $as_echo "just compiled" >&6; }
14305   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14306     # We already found the complete path
14307     ac_dir=`dirname $WINDMC_FOR_TARGET`
14308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309 $as_echo "pre-installed in $ac_dir" >&6; }
14310   elif test "x$target" = "x$host"; then
14311     # We can use an host tool
14312     WINDMC_FOR_TARGET='$(WINDMC)'
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314 $as_echo "host tool" >&6; }
14315   else
14316     # We need a cross tool
14317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318 $as_echo "pre-installed" >&6; }
14319   fi
14320 fi
14321
14322
14323
14324
14325
14326 # Certain tools may need extra flags.
14327 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14328 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14329 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14330
14331 # When building target libraries, except in a Canadian cross, we use
14332 # the same toolchain as the compiler we just built.
14333 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14334 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14335 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14336 if test $host = $build; then
14337   case " $configdirs " in
14338     *" gcc "*)
14339       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14340       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14341       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14342       ;;
14343   esac
14344 fi
14345
14346
14347
14348
14349
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14351 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14352 # Check whether --enable-maintainer-mode was given.
14353 if test "${enable_maintainer_mode+set}" = set; then :
14354   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14355 else
14356   USE_MAINTAINER_MODE=no
14357 fi
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14360 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14361
14362
14363 if test "$USE_MAINTAINER_MODE" = yes; then
14364   MAINTAINER_MODE_TRUE=
14365   MAINTAINER_MODE_FALSE='#'
14366 else
14367   MAINTAINER_MODE_TRUE='#'
14368   MAINTAINER_MODE_FALSE=
14369 fi
14370 MAINT=$MAINTAINER_MODE_TRUE
14371
14372 # ---------------------
14373 # GCC bootstrap support
14374 # ---------------------
14375
14376 # Stage specific cflags for build.
14377 stage1_cflags="-g"
14378 case $build in
14379   vax-*-*)
14380     case ${GCC} in
14381       yes) stage1_cflags="-g -Wa,-J" ;;
14382       *) stage1_cflags="-g -J" ;;
14383     esac ;;
14384 esac
14385
14386 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14387 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14388   saved_CFLAGS="$CFLAGS"
14389
14390   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14391   CFLAGS="$CFLAGS -fkeep-inline-functions"
14392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14393 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h.  */
14396
14397 #if (__GNUC__ < 3) \
14398     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14399                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14400 #error http://gcc.gnu.org/PR29382
14401 #endif
14402
14403 int
14404 main ()
14405 {
14406
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"; then :
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14413 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14414 else
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419
14420   CFLAGS="$saved_CFLAGS"
14421 fi
14422
14423
14424
14425 # Enable --enable-checking in stage1 of the compiler.
14426 # Check whether --enable-stage1-checking was given.
14427 if test "${enable_stage1_checking+set}" = set; then :
14428   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14429 else
14430   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14431   stage1_checking=--enable-checking=yes,types
14432 else
14433   stage1_checking=--enable-checking=$enable_checking,types
14434 fi
14435 fi
14436
14437
14438
14439 # Enable -Werror in bootstrap stage2 and later.
14440 # Check whether --enable-werror was given.
14441 if test "${enable_werror+set}" = set; then :
14442   enableval=$enable_werror;
14443 else
14444   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14445   enable_werror=yes
14446 else
14447   enable_werror=no
14448 fi
14449 fi
14450
14451 case ${enable_werror} in
14452   yes) stage2_werror_flag="--enable-werror-always" ;;
14453   *) stage2_werror_flag="" ;;
14454 esac
14455
14456
14457 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14458 # --enable-build-with-cxx after stage1.
14459 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14460   POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14461 else
14462   POSTSTAGE1_CONFIGURE_FLAGS=
14463 fi
14464
14465
14466 # Specify what files to not compare during bootstrap.
14467
14468 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14469 case "$target" in
14470   hppa*64*-*-hpux*) ;;
14471   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14472 esac
14473 case " $configdirs " in
14474 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14475 esac
14476
14477
14478 ac_config_files="$ac_config_files Makefile"
14479
14480 cat >confcache <<\_ACEOF
14481 # This file is a shell script that caches the results of configure
14482 # tests run on this system so they can be shared between configure
14483 # scripts and configure runs, see configure's option --config-cache.
14484 # It is not useful on other systems.  If it contains results you don't
14485 # want to keep, you may remove or edit it.
14486 #
14487 # config.status only pays attention to the cache file if you give it
14488 # the --recheck option to rerun configure.
14489 #
14490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14492 # following values.
14493
14494 _ACEOF
14495
14496 # The following way of writing the cache mishandles newlines in values,
14497 # but we know of no workaround that is simple, portable, and efficient.
14498 # So, we kill variables containing newlines.
14499 # Ultrix sh set writes to stderr and can't be redirected directly,
14500 # and sets the high bit in the cache file unless we assign to the vars.
14501 (
14502   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14503     eval ac_val=\$$ac_var
14504     case $ac_val in #(
14505     *${as_nl}*)
14506       case $ac_var in #(
14507       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14509       esac
14510       case $ac_var in #(
14511       _ | IFS | as_nl) ;; #(
14512       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14513       *) { eval $ac_var=; unset $ac_var;} ;;
14514       esac ;;
14515     esac
14516   done
14517
14518   (set) 2>&1 |
14519     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14520     *${as_nl}ac_space=\ *)
14521       # `set' does not quote correctly, so add quotes: double-quote
14522       # substitution turns \\\\ into \\, and sed turns \\ into \.
14523       sed -n \
14524         "s/'/'\\\\''/g;
14525           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14526       ;; #(
14527     *)
14528       # `set' quotes correctly as required by POSIX, so do not add quotes.
14529       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14530       ;;
14531     esac |
14532     sort
14533 ) |
14534   sed '
14535      /^ac_cv_env_/b end
14536      t clear
14537      :clear
14538      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14539      t end
14540      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14541      :end' >>confcache
14542 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14543   if test -w "$cache_file"; then
14544     test "x$cache_file" != "x/dev/null" &&
14545       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14546 $as_echo "$as_me: updating cache $cache_file" >&6;}
14547     cat confcache >$cache_file
14548   else
14549     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14550 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14551   fi
14552 fi
14553 rm -f confcache
14554
14555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14556 # Let make expand exec_prefix.
14557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14558
14559 # Transform confdefs.h into DEFS.
14560 # Protect against shell expansion while executing Makefile rules.
14561 # Protect against Makefile macro expansion.
14562 #
14563 # If the first sed substitution is executed (which looks for macros that
14564 # take arguments), then branch to the quote section.  Otherwise,
14565 # look for a macro that doesn't take arguments.
14566 ac_script='
14567 :mline
14568 /\\$/{
14569  N
14570  s,\\\n,,
14571  b mline
14572 }
14573 t clear
14574 :clear
14575 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14576 t quote
14577 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14578 t quote
14579 b any
14580 :quote
14581 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14582 s/\[/\\&/g
14583 s/\]/\\&/g
14584 s/\$/$$/g
14585 H
14586 :any
14587 ${
14588         g
14589         s/^\n//
14590         s/\n/ /g
14591         p
14592 }
14593 '
14594 DEFS=`sed -n "$ac_script" confdefs.h`
14595
14596
14597 ac_libobjs=
14598 ac_ltlibobjs=
14599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14600   # 1. Remove the extension, and $U if already installed.
14601   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14602   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14603   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14604   #    will be set to the directory where LIBOBJS objects are built.
14605   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14606   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14607 done
14608 LIBOBJS=$ac_libobjs
14609
14610 LTLIBOBJS=$ac_ltlibobjs
14611
14612
14613
14614 : ${CONFIG_STATUS=./config.status}
14615 ac_write_fail=0
14616 ac_clean_files_save=$ac_clean_files
14617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14619 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14620 as_write_fail=0
14621 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14622 #! $SHELL
14623 # Generated by $as_me.
14624 # Run this file to recreate the current configuration.
14625 # Compiler output produced by configure, useful for debugging
14626 # configure, is in config.log if it exists.
14627
14628 debug=false
14629 ac_cs_recheck=false
14630 ac_cs_silent=false
14631
14632 SHELL=\${CONFIG_SHELL-$SHELL}
14633 export SHELL
14634 _ASEOF
14635 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14636 ## -------------------- ##
14637 ## M4sh Initialization. ##
14638 ## -------------------- ##
14639
14640 # Be more Bourne compatible
14641 DUALCASE=1; export DUALCASE # for MKS sh
14642 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14643   emulate sh
14644   NULLCMD=:
14645   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14646   # is contrary to our usage.  Disable this feature.
14647   alias -g '${1+"$@"}'='"$@"'
14648   setopt NO_GLOB_SUBST
14649 else
14650   case `(set -o) 2>/dev/null` in #(
14651   *posix*) :
14652     set -o posix ;; #(
14653   *) :
14654      ;;
14655 esac
14656 fi
14657
14658
14659 as_nl='
14660 '
14661 export as_nl
14662 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14663 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14666 # Prefer a ksh shell builtin over an external printf program on Solaris,
14667 # but without wasting forks for bash or zsh.
14668 if test -z "$BASH_VERSION$ZSH_VERSION" \
14669     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14670   as_echo='print -r --'
14671   as_echo_n='print -rn --'
14672 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14673   as_echo='printf %s\n'
14674   as_echo_n='printf %s'
14675 else
14676   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14677     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14678     as_echo_n='/usr/ucb/echo -n'
14679   else
14680     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14681     as_echo_n_body='eval
14682       arg=$1;
14683       case $arg in #(
14684       *"$as_nl"*)
14685         expr "X$arg" : "X\\(.*\\)$as_nl";
14686         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14687       esac;
14688       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14689     '
14690     export as_echo_n_body
14691     as_echo_n='sh -c $as_echo_n_body as_echo'
14692   fi
14693   export as_echo_body
14694   as_echo='sh -c $as_echo_body as_echo'
14695 fi
14696
14697 # The user is always right.
14698 if test "${PATH_SEPARATOR+set}" != set; then
14699   PATH_SEPARATOR=:
14700   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14701     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14702       PATH_SEPARATOR=';'
14703   }
14704 fi
14705
14706
14707 # IFS
14708 # We need space, tab and new line, in precisely that order.  Quoting is
14709 # there to prevent editors from complaining about space-tab.
14710 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14711 # splitting by setting IFS to empty value.)
14712 IFS=" ""        $as_nl"
14713
14714 # Find who we are.  Look in the path if we contain no directory separator.
14715 case $0 in #((
14716   *[\\/]* ) as_myself=$0 ;;
14717   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14719 do
14720   IFS=$as_save_IFS
14721   test -z "$as_dir" && as_dir=.
14722     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14723   done
14724 IFS=$as_save_IFS
14725
14726      ;;
14727 esac
14728 # We did not find ourselves, most probably we were run as `sh COMMAND'
14729 # in which case we are not to be found in the path.
14730 if test "x$as_myself" = x; then
14731   as_myself=$0
14732 fi
14733 if test ! -f "$as_myself"; then
14734   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14735   exit 1
14736 fi
14737
14738 # Unset variables that we do not need and which cause bugs (e.g. in
14739 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14740 # suppresses any "Segmentation fault" message there.  '((' could
14741 # trigger a bug in pdksh 5.2.14.
14742 for as_var in BASH_ENV ENV MAIL MAILPATH
14743 do eval test x\${$as_var+set} = xset \
14744   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14745 done
14746 PS1='$ '
14747 PS2='> '
14748 PS4='+ '
14749
14750 # NLS nuisances.
14751 LC_ALL=C
14752 export LC_ALL
14753 LANGUAGE=C
14754 export LANGUAGE
14755
14756 # CDPATH.
14757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14758
14759
14760 # as_fn_error ERROR [LINENO LOG_FD]
14761 # ---------------------------------
14762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14764 # script with status $?, using 1 if that was 0.
14765 as_fn_error ()
14766 {
14767   as_status=$?; test $as_status -eq 0 && as_status=1
14768   if test "$3"; then
14769     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14770     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14771   fi
14772   $as_echo "$as_me: error: $1" >&2
14773   as_fn_exit $as_status
14774 } # as_fn_error
14775
14776
14777 # as_fn_set_status STATUS
14778 # -----------------------
14779 # Set $? to STATUS, without forking.
14780 as_fn_set_status ()
14781 {
14782   return $1
14783 } # as_fn_set_status
14784
14785 # as_fn_exit STATUS
14786 # -----------------
14787 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14788 as_fn_exit ()
14789 {
14790   set +e
14791   as_fn_set_status $1
14792   exit $1
14793 } # as_fn_exit
14794
14795 # as_fn_unset VAR
14796 # ---------------
14797 # Portably unset VAR.
14798 as_fn_unset ()
14799 {
14800   { eval $1=; unset $1;}
14801 }
14802 as_unset=as_fn_unset
14803 # as_fn_append VAR VALUE
14804 # ----------------------
14805 # Append the text in VALUE to the end of the definition contained in VAR. Take
14806 # advantage of any shell optimizations that allow amortized linear growth over
14807 # repeated appends, instead of the typical quadratic growth present in naive
14808 # implementations.
14809 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14810   eval 'as_fn_append ()
14811   {
14812     eval $1+=\$2
14813   }'
14814 else
14815   as_fn_append ()
14816   {
14817     eval $1=\$$1\$2
14818   }
14819 fi # as_fn_append
14820
14821 # as_fn_arith ARG...
14822 # ------------------
14823 # Perform arithmetic evaluation on the ARGs, and store the result in the
14824 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14825 # must be portable across $(()) and expr.
14826 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14827   eval 'as_fn_arith ()
14828   {
14829     as_val=$(( $* ))
14830   }'
14831 else
14832   as_fn_arith ()
14833   {
14834     as_val=`expr "$@" || test $? -eq 1`
14835   }
14836 fi # as_fn_arith
14837
14838
14839 if expr a : '\(a\)' >/dev/null 2>&1 &&
14840    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14841   as_expr=expr
14842 else
14843   as_expr=false
14844 fi
14845
14846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14847   as_basename=basename
14848 else
14849   as_basename=false
14850 fi
14851
14852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14853   as_dirname=dirname
14854 else
14855   as_dirname=false
14856 fi
14857
14858 as_me=`$as_basename -- "$0" ||
14859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14860          X"$0" : 'X\(//\)$' \| \
14861          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14862 $as_echo X/"$0" |
14863     sed '/^.*\/\([^/][^/]*\)\/*$/{
14864             s//\1/
14865             q
14866           }
14867           /^X\/\(\/\/\)$/{
14868             s//\1/
14869             q
14870           }
14871           /^X\/\(\/\).*/{
14872             s//\1/
14873             q
14874           }
14875           s/.*/./; q'`
14876
14877 # Avoid depending upon Character Ranges.
14878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14881 as_cr_digits='0123456789'
14882 as_cr_alnum=$as_cr_Letters$as_cr_digits
14883
14884 ECHO_C= ECHO_N= ECHO_T=
14885 case `echo -n x` in #(((((
14886 -n*)
14887   case `echo 'xy\c'` in
14888   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14889   xy)  ECHO_C='\c';;
14890   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14891        ECHO_T=' ';;
14892   esac;;
14893 *)
14894   ECHO_N='-n';;
14895 esac
14896
14897 rm -f conf$$ conf$$.exe conf$$.file
14898 if test -d conf$$.dir; then
14899   rm -f conf$$.dir/conf$$.file
14900 else
14901   rm -f conf$$.dir
14902   mkdir conf$$.dir 2>/dev/null
14903 fi
14904 if (echo >conf$$.file) 2>/dev/null; then
14905   if ln -s conf$$.file conf$$ 2>/dev/null; then
14906     as_ln_s='ln -s'
14907     # ... but there are two gotchas:
14908     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14909     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14910     # In both cases, we have to default to `cp -p'.
14911     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14912       as_ln_s='cp -p'
14913   elif ln conf$$.file conf$$ 2>/dev/null; then
14914     as_ln_s=ln
14915   else
14916     as_ln_s='cp -p'
14917   fi
14918 else
14919   as_ln_s='cp -p'
14920 fi
14921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14922 rmdir conf$$.dir 2>/dev/null
14923
14924
14925 # as_fn_mkdir_p
14926 # -------------
14927 # Create "$as_dir" as a directory, including parents if necessary.
14928 as_fn_mkdir_p ()
14929 {
14930
14931   case $as_dir in #(
14932   -*) as_dir=./$as_dir;;
14933   esac
14934   test -d "$as_dir" || eval $as_mkdir_p || {
14935     as_dirs=
14936     while :; do
14937       case $as_dir in #(
14938       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14939       *) as_qdir=$as_dir;;
14940       esac
14941       as_dirs="'$as_qdir' $as_dirs"
14942       as_dir=`$as_dirname -- "$as_dir" ||
14943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14944          X"$as_dir" : 'X\(//\)[^/]' \| \
14945          X"$as_dir" : 'X\(//\)$' \| \
14946          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14947 $as_echo X"$as_dir" |
14948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14949             s//\1/
14950             q
14951           }
14952           /^X\(\/\/\)[^/].*/{
14953             s//\1/
14954             q
14955           }
14956           /^X\(\/\/\)$/{
14957             s//\1/
14958             q
14959           }
14960           /^X\(\/\).*/{
14961             s//\1/
14962             q
14963           }
14964           s/.*/./; q'`
14965       test -d "$as_dir" && break
14966     done
14967     test -z "$as_dirs" || eval "mkdir $as_dirs"
14968   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14969
14970
14971 } # as_fn_mkdir_p
14972 if mkdir -p . 2>/dev/null; then
14973   as_mkdir_p='mkdir -p "$as_dir"'
14974 else
14975   test -d ./-p && rmdir ./-p
14976   as_mkdir_p=false
14977 fi
14978
14979 if test -x / >/dev/null 2>&1; then
14980   as_test_x='test -x'
14981 else
14982   if ls -dL / >/dev/null 2>&1; then
14983     as_ls_L_option=L
14984   else
14985     as_ls_L_option=
14986   fi
14987   as_test_x='
14988     eval sh -c '\''
14989       if test -d "$1"; then
14990         test -d "$1/.";
14991       else
14992         case $1 in #(
14993         -*)set "./$1";;
14994         esac;
14995         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14996         ???[sx]*):;;*)false;;esac;fi
14997     '\'' sh
14998   '
14999 fi
15000 as_executable_p=$as_test_x
15001
15002 # Sed expression to map a string onto a valid CPP name.
15003 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15004
15005 # Sed expression to map a string onto a valid variable name.
15006 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15007
15008
15009 exec 6>&1
15010 ## ----------------------------------- ##
15011 ## Main body of $CONFIG_STATUS script. ##
15012 ## ----------------------------------- ##
15013 _ASEOF
15014 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15015
15016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017 # Save the log message, to keep $0 and so on meaningful, and to
15018 # report actual input values of CONFIG_FILES etc. instead of their
15019 # values after options handling.
15020 ac_log="
15021 This file was extended by $as_me, which was
15022 generated by GNU Autoconf 2.64.  Invocation command line was
15023
15024   CONFIG_FILES    = $CONFIG_FILES
15025   CONFIG_HEADERS  = $CONFIG_HEADERS
15026   CONFIG_LINKS    = $CONFIG_LINKS
15027   CONFIG_COMMANDS = $CONFIG_COMMANDS
15028   $ $0 $@
15029
15030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15031 "
15032
15033 _ACEOF
15034
15035 case $ac_config_files in *"
15036 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15037 esac
15038
15039
15040
15041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15042 # Files that config.status was made for.
15043 config_files="$ac_config_files"
15044
15045 _ACEOF
15046
15047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15048 ac_cs_usage="\
15049 \`$as_me' instantiates files and other configuration actions
15050 from templates according to the current configuration.  Unless the files
15051 and actions are specified as TAGs, all are instantiated by default.
15052
15053 Usage: $0 [OPTION]... [TAG]...
15054
15055   -h, --help       print this help, then exit
15056   -V, --version    print version number and configuration settings, then exit
15057   -q, --quiet, --silent
15058                    do not print progress messages
15059   -d, --debug      don't remove temporary files
15060       --recheck    update $as_me by reconfiguring in the same conditions
15061       --file=FILE[:TEMPLATE]
15062                    instantiate the configuration file FILE
15063
15064 Configuration files:
15065 $config_files
15066
15067 Report bugs to the package provider."
15068
15069 _ACEOF
15070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071 ac_cs_version="\\
15072 config.status
15073 configured by $0, generated by GNU Autoconf 2.64,
15074   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15075
15076 Copyright (C) 2009 Free Software Foundation, Inc.
15077 This config.status script is free software; the Free Software Foundation
15078 gives unlimited permission to copy, distribute and modify it."
15079
15080 ac_pwd='$ac_pwd'
15081 srcdir='$srcdir'
15082 INSTALL='$INSTALL'
15083 AWK='$AWK'
15084 test -n "\$AWK" || AWK=awk
15085 _ACEOF
15086
15087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15088 # The default lists apply if the user does not specify any file.
15089 ac_need_defaults=:
15090 while test $# != 0
15091 do
15092   case $1 in
15093   --*=*)
15094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15095     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15096     ac_shift=:
15097     ;;
15098   *)
15099     ac_option=$1
15100     ac_optarg=$2
15101     ac_shift=shift
15102     ;;
15103   esac
15104
15105   case $ac_option in
15106   # Handling of the options.
15107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15108     ac_cs_recheck=: ;;
15109   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15110     $as_echo "$ac_cs_version"; exit ;;
15111   --debug | --debu | --deb | --de | --d | -d )
15112     debug=: ;;
15113   --file | --fil | --fi | --f )
15114     $ac_shift
15115     case $ac_optarg in
15116     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15117     esac
15118     as_fn_append CONFIG_FILES " '$ac_optarg'"
15119     ac_need_defaults=false;;
15120   --he | --h |  --help | --hel | -h )
15121     $as_echo "$ac_cs_usage"; exit ;;
15122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15124     ac_cs_silent=: ;;
15125
15126   # This is an error.
15127   -*) as_fn_error "unrecognized option: \`$1'
15128 Try \`$0 --help' for more information." ;;
15129
15130   *) as_fn_append ac_config_targets " $1"
15131      ac_need_defaults=false ;;
15132
15133   esac
15134   shift
15135 done
15136
15137 ac_configure_extra_args=
15138
15139 if $ac_cs_silent; then
15140   exec 6>/dev/null
15141   ac_configure_extra_args="$ac_configure_extra_args --silent"
15142 fi
15143
15144 _ACEOF
15145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15146 if \$ac_cs_recheck; then
15147   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15148   shift
15149   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15150   CONFIG_SHELL='$SHELL'
15151   export CONFIG_SHELL
15152   exec "\$@"
15153 fi
15154
15155 _ACEOF
15156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15157 exec 5>>config.log
15158 {
15159   echo
15160   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15161 ## Running $as_me. ##
15162 _ASBOX
15163   $as_echo "$ac_log"
15164 } >&5
15165
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 #
15169 # INIT-COMMANDS
15170 #
15171 extrasub_build="$extrasub_build"
15172    extrasub_host="$extrasub_host"
15173    extrasub_target="$extrasub_target"
15174
15175 _ACEOF
15176
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178
15179 # Handling of arguments.
15180 for ac_config_target in $ac_config_targets
15181 do
15182   case $ac_config_target in
15183     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15184
15185   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15186   esac
15187 done
15188
15189
15190 # If the user did not use the arguments to specify the items to instantiate,
15191 # then the envvar interface is used.  Set only those that are not.
15192 # We use the long form for the default assignment because of an extremely
15193 # bizarre bug on SunOS 4.1.3.
15194 if $ac_need_defaults; then
15195   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15196 fi
15197
15198 # Have a temporary directory for convenience.  Make it in the build tree
15199 # simply because there is no reason against having it here, and in addition,
15200 # creating and moving files from /tmp can sometimes cause problems.
15201 # Hook for its removal unless debugging.
15202 # Note that there is a small window in which the directory will not be cleaned:
15203 # after its creation but before its name has been assigned to `$tmp'.
15204 $debug ||
15205 {
15206   tmp=
15207   trap 'exit_status=$?
15208   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15209 ' 0
15210   trap 'as_fn_exit 1' 1 2 13 15
15211 }
15212 # Create a (secure) tmp directory for tmp files.
15213
15214 {
15215   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15216   test -n "$tmp" && test -d "$tmp"
15217 }  ||
15218 {
15219   tmp=./conf$$-$RANDOM
15220   (umask 077 && mkdir "$tmp")
15221 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15222
15223 # Set up the scripts for CONFIG_FILES section.
15224 # No need to generate them if there are no CONFIG_FILES.
15225 # This happens for instance with `./config.status config.h'.
15226 if test -n "$CONFIG_FILES"; then
15227
15228 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15229   ac_cs_awk_getline=:
15230   ac_cs_awk_pipe_init=
15231   ac_cs_awk_read_file='
15232       while ((getline aline < (F[key])) > 0)
15233         print(aline)
15234       close(F[key])'
15235   ac_cs_awk_pipe_fini=
15236 else
15237   ac_cs_awk_getline=false
15238   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15239   ac_cs_awk_read_file='
15240       print "|#_!!_#|"
15241       print "cat " F[key] " &&"
15242       '$ac_cs_awk_pipe_init
15243   # The final `:' finishes the AND list.
15244   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15245 fi
15246 ac_cr=`echo X | tr X '\015'`
15247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15248 # But we know of no other shell where ac_cr would be empty at this
15249 # point, so we can use a bashism as a fallback.
15250 if test "x$ac_cr" = x; then
15251   eval ac_cr=\$\'\\r\'
15252 fi
15253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15255   ac_cs_awk_cr='\r'
15256 else
15257   ac_cs_awk_cr=$ac_cr
15258 fi
15259
15260 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15261 _ACEOF
15262
15263 # Create commands to substitute file output variables.
15264 {
15265   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15266   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15267   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15268   echo "_ACAWK" &&
15269   echo "_ACEOF"
15270 } >conf$$files.sh &&
15271 . ./conf$$files.sh ||
15272   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15273 rm -f conf$$files.sh
15274
15275 {
15276   echo "cat >conf$$subs.awk <<_ACEOF" &&
15277   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15278   echo "_ACEOF"
15279 } >conf$$subs.sh ||
15280   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15282 ac_delim='%!_!# '
15283 for ac_last_try in false false false false false :; do
15284   . ./conf$$subs.sh ||
15285     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15286
15287   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15288   if test $ac_delim_n = $ac_delim_num; then
15289     break
15290   elif $ac_last_try; then
15291     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15292   else
15293     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15294   fi
15295 done
15296 rm -f conf$$subs.sh
15297
15298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15299 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15300 _ACEOF
15301 sed -n '
15302 h
15303 s/^/S["/; s/!.*/"]=/
15304 p
15305 g
15306 s/^[^!]*!//
15307 :repl
15308 t repl
15309 s/'"$ac_delim"'$//
15310 t delim
15311 :nl
15312 h
15313 s/\(.\{148\}\).*/\1/
15314 t more1
15315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15316 p
15317 n
15318 b repl
15319 :more1
15320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15321 p
15322 g
15323 s/.\{148\}//
15324 t nl
15325 :delim
15326 h
15327 s/\(.\{148\}\).*/\1/
15328 t more2
15329 s/["\\]/\\&/g; s/^/"/; s/$/"/
15330 p
15331 b
15332 :more2
15333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15334 p
15335 g
15336 s/.\{148\}//
15337 t delim
15338 ' <conf$$subs.awk | sed '
15339 /^[^""]/{
15340   N
15341   s/\n//
15342 }
15343 ' >>$CONFIG_STATUS || ac_write_fail=1
15344 rm -f conf$$subs.awk
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 _ACAWK
15347 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15348   for (key in S) S_is_set[key] = 1
15349   FS = "\a"
15350   \$ac_cs_awk_pipe_init
15351 }
15352 {
15353   line = $ 0
15354   nfields = split(line, field, "@")
15355   substed = 0
15356   len = length(field[1])
15357   for (i = 2; i < nfields; i++) {
15358     key = field[i]
15359     keylen = length(key)
15360     if (S_is_set[key]) {
15361       value = S[key]
15362       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15363       len += length(value) + length(field[++i])
15364       substed = 1
15365     } else
15366       len += 1 + keylen
15367   }
15368   if (nfields == 3 && !substed) {
15369     key = field[2]
15370     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15371       \$ac_cs_awk_read_file
15372       next
15373     }
15374   }
15375   print line
15376 }
15377 \$ac_cs_awk_pipe_fini
15378 _ACAWK
15379 _ACEOF
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15382   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15383 else
15384   cat
15385 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15386   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15387 _ACEOF
15388
15389 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15390 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15391 # trailing colons and then remove the whole line if VPATH becomes empty
15392 # (actually we leave an empty line to preserve line numbers).
15393 if test "x$srcdir" = x.; then
15394   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15395 s/:*\$(srcdir):*/:/
15396 s/:*\${srcdir}:*/:/
15397 s/:*@srcdir@:*/:/
15398 s/^\([^=]*=[     ]*\):*/\1/
15399 s/:*$//
15400 s/^[^=]*=[       ]*$//
15401 }'
15402 fi
15403
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 fi # test -n "$CONFIG_FILES"
15406
15407
15408 eval set X "  :F $CONFIG_FILES      "
15409 shift
15410 for ac_tag
15411 do
15412   case $ac_tag in
15413   :[FHLC]) ac_mode=$ac_tag; continue;;
15414   esac
15415   case $ac_mode$ac_tag in
15416   :[FHL]*:*);;
15417   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15418   :[FH]-) ac_tag=-:-;;
15419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15420   esac
15421   ac_save_IFS=$IFS
15422   IFS=:
15423   set x $ac_tag
15424   IFS=$ac_save_IFS
15425   shift
15426   ac_file=$1
15427   shift
15428
15429   case $ac_mode in
15430   :L) ac_source=$1;;
15431   :[FH])
15432     ac_file_inputs=
15433     for ac_f
15434     do
15435       case $ac_f in
15436       -) ac_f="$tmp/stdin";;
15437       *) # Look for the file first in the build tree, then in the source tree
15438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15439          # because $ac_f cannot contain `:'.
15440          test -f "$ac_f" ||
15441            case $ac_f in
15442            [\\/$]*) false;;
15443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15444            esac ||
15445            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15446       esac
15447       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15448       as_fn_append ac_file_inputs " '$ac_f'"
15449     done
15450
15451     # Let's still pretend it is `configure' which instantiates (i.e., don't
15452     # use $as_me), people would be surprised to read:
15453     #    /* config.h.  Generated by config.status.  */
15454     configure_input='Generated from '`
15455           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15456         `' by configure.'
15457     if test x"$ac_file" != x-; then
15458       configure_input="$ac_file.  $configure_input"
15459       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15460 $as_echo "$as_me: creating $ac_file" >&6;}
15461     fi
15462     # Neutralize special characters interpreted by sed in replacement strings.
15463     case $configure_input in #(
15464     *\&* | *\|* | *\\* )
15465        ac_sed_conf_input=`$as_echo "$configure_input" |
15466        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15467     *) ac_sed_conf_input=$configure_input;;
15468     esac
15469
15470     case $ac_tag in
15471     *:-:* | *:-) cat >"$tmp/stdin" \
15472       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15473     esac
15474     ;;
15475   esac
15476
15477   ac_dir=`$as_dirname -- "$ac_file" ||
15478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15479          X"$ac_file" : 'X\(//\)[^/]' \| \
15480          X"$ac_file" : 'X\(//\)$' \| \
15481          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15482 $as_echo X"$ac_file" |
15483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15484             s//\1/
15485             q
15486           }
15487           /^X\(\/\/\)[^/].*/{
15488             s//\1/
15489             q
15490           }
15491           /^X\(\/\/\)$/{
15492             s//\1/
15493             q
15494           }
15495           /^X\(\/\).*/{
15496             s//\1/
15497             q
15498           }
15499           s/.*/./; q'`
15500   as_dir="$ac_dir"; as_fn_mkdir_p
15501   ac_builddir=.
15502
15503 case "$ac_dir" in
15504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15505 *)
15506   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15507   # A ".." for each directory in $ac_dir_suffix.
15508   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15509   case $ac_top_builddir_sub in
15510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15512   esac ;;
15513 esac
15514 ac_abs_top_builddir=$ac_pwd
15515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15516 # for backward compatibility:
15517 ac_top_builddir=$ac_top_build_prefix
15518
15519 case $srcdir in
15520   .)  # We are building in place.
15521     ac_srcdir=.
15522     ac_top_srcdir=$ac_top_builddir_sub
15523     ac_abs_top_srcdir=$ac_pwd ;;
15524   [\\/]* | ?:[\\/]* )  # Absolute name.
15525     ac_srcdir=$srcdir$ac_dir_suffix;
15526     ac_top_srcdir=$srcdir
15527     ac_abs_top_srcdir=$srcdir ;;
15528   *) # Relative name.
15529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15530     ac_top_srcdir=$ac_top_build_prefix$srcdir
15531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15532 esac
15533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15534
15535
15536   case $ac_mode in
15537   :F)
15538   #
15539   # CONFIG_FILE
15540   #
15541
15542   case $INSTALL in
15543   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15544   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15545   esac
15546 _ACEOF
15547
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 # If the template does not know about datarootdir, expand it.
15550 # FIXME: This hack should be removed a few years after 2.60.
15551 ac_datarootdir_hack=; ac_datarootdir_seen=
15552 ac_sed_dataroot='
15553 /datarootdir/ {
15554   p
15555   q
15556 }
15557 /@datadir@/p
15558 /@docdir@/p
15559 /@infodir@/p
15560 /@localedir@/p
15561 /@mandir@/p'
15562 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15563 *datarootdir*) ac_datarootdir_seen=yes;;
15564 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15566 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15567 _ACEOF
15568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569   ac_datarootdir_hack='
15570   s&@datadir@&$datadir&g
15571   s&@docdir@&$docdir&g
15572   s&@infodir@&$infodir&g
15573   s&@localedir@&$localedir&g
15574   s&@mandir@&$mandir&g
15575   s&\\\${datarootdir}&$datarootdir&g' ;;
15576 esac
15577 _ACEOF
15578
15579 # Neutralize VPATH when `$srcdir' = `.'.
15580 # Shell code in configure.ac might set extrasub.
15581 # FIXME: do we really want to maintain this feature?
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 ac_sed_extra="$ac_vpsub
15584 $extrasub
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 :t
15588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15589 s|@configure_input@|$ac_sed_conf_input|;t t
15590 s&@top_builddir@&$ac_top_builddir_sub&;t t
15591 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15592 s&@srcdir@&$ac_srcdir&;t t
15593 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15594 s&@top_srcdir@&$ac_top_srcdir&;t t
15595 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15596 s&@builddir@&$ac_builddir&;t t
15597 s&@abs_builddir@&$ac_abs_builddir&;t t
15598 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15599 s&@INSTALL@&$ac_INSTALL&;t t
15600 $ac_datarootdir_hack
15601 "
15602 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15603 if $ac_cs_awk_getline; then
15604   $AWK -f "$tmp/subs.awk"
15605 else
15606   $AWK -f "$tmp/subs.awk" | $SHELL
15607 fi >$tmp/out \
15608   || as_fn_error "could not create $ac_file" "$LINENO" 5
15609
15610 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15611   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15612   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15614 which seems to be undefined.  Please make sure it is defined." >&5
15615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15616 which seems to be undefined.  Please make sure it is defined." >&2;}
15617
15618   rm -f "$tmp/stdin"
15619   case $ac_file in
15620   -) cat "$tmp/out" && rm -f "$tmp/out";;
15621   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15622   esac \
15623   || as_fn_error "could not create $ac_file" "$LINENO" 5
15624  ;;
15625
15626
15627
15628   esac
15629
15630
15631   case $ac_file$ac_mode in
15632     "Makefile":F) sed "$extrasub_build" Makefile |
15633    sed "$extrasub_host" |
15634    sed "$extrasub_target" > mf$$
15635    mv -f mf$$ Makefile ;;
15636
15637   esac
15638 done # for ac_tag
15639
15640
15641 as_fn_exit 0
15642 _ACEOF
15643 ac_clean_files=$ac_clean_files_save
15644
15645 test $ac_write_fail = 0 ||
15646   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15647
15648
15649 # configure is writing to config.log, and then calls config.status.
15650 # config.status does its own redirection, appending to config.log.
15651 # Unfortunately, on DOS this fails, as config.log is still kept open
15652 # by configure, so config.status won't be able to write to it; its
15653 # output is simply discarded.  So we exec the FD to /dev/null,
15654 # effectively closing config.log, so it can be properly (re)opened and
15655 # appended to by config.status.  When coming back to configure, we
15656 # need to make the FD available again.
15657 if test "$no_create" != yes; then
15658   ac_cs_success=:
15659   ac_config_status_args=
15660   test "$silent" = yes &&
15661     ac_config_status_args="$ac_config_status_args --quiet"
15662   exec 5>/dev/null
15663   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15664   exec 5>>config.log
15665   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15666   # would make configure fail if this is the last instruction.
15667   $ac_cs_success || as_fn_exit $?
15668 fi
15669 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15671 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15672 fi
15673