OSDN Git Service

Latest updates from FSF 4.7 branch
[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 # This is a hack to get around the mis-configuring of libintl.a
2646 # support in GNUPro 05r1.  In theory this should not be necessary
2647 # but test building native toolchains under Solaris and Cygwin
2648 # before permanently removing it.
2649 case "$ac_configure_args" in
2650   *--with-included-gettext=* )
2651       ;;
2652   *--disable-nls* )
2653       ;;
2654   * )
2655       ac_configure_args="$ac_configure_args --with-included-gettext"
2656       ;;
2657 esac
2658
2659 ### To add a new directory to the tree, first choose whether it is a target
2660 ### or a host dependent tool.  Then put it into the appropriate list
2661 ### (library or tools, host or target), doing a dependency sort.
2662
2663 # Subdirs will be configured in the order listed in build_configdirs,
2664 # configdirs, or target_configdirs; see the serialization section below.
2665
2666 # Dependency sorting is only needed when *configuration* must be done in
2667 # a particular order.  In all cases a dependency should be specified in
2668 # the Makefile, whether or not it's implicitly specified here.
2669
2670 # Double entries in build_configdirs, configdirs, or target_configdirs may
2671 # cause circular dependencies and break everything horribly.
2672
2673 # these library is used by various programs built for the build
2674 # environment
2675 #
2676 build_libs="build-libiberty build-intl"
2677
2678 # these tools are built for the build environment
2679 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2680
2681 # these libraries are used by various programs built for the host environment
2682 #
2683 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2684
2685 # these tools are built for the host environment
2686 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2687 # know that we are building the simulator.
2688 # binutils, gas and ld appear in that order because it makes sense to run
2689 # "make check" in that particular order.
2690 # If --enable-gold is used, "gold" may replace "ld".
2691 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2692
2693 # libgcj represents the runtime libraries only used by gcj.
2694 libgcj="target-libffi \
2695         target-zlib \
2696         target-libjava"
2697
2698 # these libraries are built for the target environment, and are built after
2699 # the host libraries and the host tools (which may be a cross compiler)
2700 # Note that libiberty is not a target library.
2701 target_libraries="target-libgcc \
2702                 target-libgloss \
2703                 target-newlib \
2704                 target-libgomp \
2705                 target-libitm \
2706                 target-libstdc++-v3 \
2707                 target-libmudflap \
2708                 target-libssp \
2709                 target-libquadmath \
2710                 target-libgfortran \
2711                 target-boehm-gc \
2712                 ${libgcj} \
2713                 target-libobjc \
2714                 target-libada \
2715                 target-libgo"
2716
2717 # these tools are built using the target libraries, and are intended to
2718 # run only in the target environment
2719 #
2720 # note: any program that *uses* libraries that are in the "target_libraries"
2721 # list belongs in this list.
2722 #
2723 target_tools="target-rda"
2724
2725 ################################################################################
2726
2727 ## All tools belong in one of the four categories, and are assigned above
2728 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2729 ## is important because configure will choke if they ever get through.
2730 ## ${configdirs} is directories we build using the host tools.
2731 ## ${target_configdirs} is directories we build using the target tools.
2732 configdirs=`echo ${host_libs} ${host_tools}`
2733 target_configdirs=`echo ${target_libraries} ${target_tools}`
2734 build_configdirs=`echo ${build_libs} ${build_tools}`
2735
2736
2737
2738 ################################################################################
2739
2740 srcname="gnu development package"
2741
2742 # This gets set non-empty for some net releases of packages.
2743 appdirs=""
2744
2745 # Define is_cross_compiler to save on calls to 'test'.
2746 is_cross_compiler=
2747 if test x"${host}" = x"${target}" ; then
2748   is_cross_compiler=no
2749 else
2750   is_cross_compiler=yes
2751 fi
2752
2753 # Find the build and target subdir names.
2754
2755 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2756 # have matching libraries, they should use host libraries: Makefile.tpl
2757 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2758 # However, they still use the build modules, because the corresponding
2759 # host modules (e.g. bison) are only built for the host when bootstrap
2760 # finishes. So:
2761 # - build_subdir is where we find build modules, and never changes.
2762 # - build_libsubdir is where we find build libraries, and can be overridden.
2763
2764 # Prefix 'build-' so this never conflicts with target_subdir.
2765 build_subdir="build-${build_noncanonical}"
2766
2767 # Check whether --with-build-libsubdir was given.
2768 if test "${with_build_libsubdir+set}" = set; then :
2769   withval=$with_build_libsubdir; build_libsubdir="$withval"
2770 else
2771   build_libsubdir="$build_subdir"
2772 fi
2773
2774 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2775 if ( test $srcdir = . && test -d gcc ) \
2776    || test -d $srcdir/../host-${host_noncanonical}; then
2777   host_subdir="host-${host_noncanonical}"
2778 else
2779   host_subdir=.
2780 fi
2781 # No prefix.
2782 target_subdir=${target_noncanonical}
2783
2784 # Be sure to cover against remnants of an in-tree build.
2785 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2786   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2787 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2788 fi
2789
2790 # Skipdirs are removed silently.
2791 skipdirs=
2792 # Noconfigdirs are removed loudly.
2793 noconfigdirs=""
2794
2795 use_gnu_ld=
2796 # Make sure we don't let GNU ld be added if we didn't want it.
2797 if test x$with_gnu_ld = xno ; then
2798   use_gnu_ld=no
2799   noconfigdirs="$noconfigdirs ld gold"
2800 fi
2801
2802 use_gnu_as=
2803 # Make sure we don't let GNU as be added if we didn't want it.
2804 if test x$with_gnu_as = xno ; then
2805   use_gnu_as=no
2806   noconfigdirs="$noconfigdirs gas"
2807 fi
2808
2809 use_included_zlib=
2810 # Make sure we don't let ZLIB be added if we didn't want it.
2811 if test x$with_system_zlib = xyes ; then
2812   use_included_zlib=no
2813   noconfigdirs="$noconfigdirs zlib"
2814 fi
2815
2816 # some tools are so dependent upon X11 that if we're not building with X,
2817 # it's not even worth trying to configure, much less build, that tool.
2818
2819 case ${with_x} in
2820   yes | "") ;; # the default value for this tree is that X11 is available
2821   no)
2822     skipdirs="${skipdirs} tk itcl libgui"
2823     # We won't be able to build gdbtk without X.
2824     enable_gdbtk=no
2825     ;;
2826   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2827 esac
2828
2829 # Some are only suitable for cross toolchains.
2830 # Remove these if host=target.
2831 cross_only="target-libgloss target-newlib target-opcodes"
2832
2833 case $is_cross_compiler in
2834   no) skipdirs="${skipdirs} ${cross_only}" ;;
2835 esac
2836
2837 # If both --with-headers and --with-libs are specified, default to
2838 # --without-newlib.
2839 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2840    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2841   if test x"${with_newlib}" = x ; then
2842     with_newlib=no
2843   fi
2844 fi
2845
2846 # Recognize --with-newlib/--without-newlib.
2847 case ${with_newlib} in
2848   no) skipdirs="${skipdirs} target-newlib" ;;
2849   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2850 esac
2851
2852 # Handle --enable-gold, --enable-ld.
2853 # --disable-gold [--enable-ld]
2854 #     Build only ld.  Default option.
2855 # --enable-gold [--enable-ld]
2856 #     Build both gold and ld.  Install gold as "ld.gold", install ld
2857 #     as "ld.bfd" and "ld".
2858 # --enable-gold=default [--enable-ld]
2859 #     Build both gold and ld.  Install gold as "ld.gold" and "ld",
2860 #     install ld as "ld.bfd".
2861 # --enable-gold[=default] --disable-ld
2862 #     Build only gold, which is then installed as both "ld.gold" and "ld".
2863 # --enable-gold --enable-ld=default
2864 #     Build both gold (installed as "ld.gold") and ld (installed as "ld"
2865 #     and ld.bfd).
2866 #     In other words, ld is default
2867 # --enable-gold=default --enable-ld=default
2868 #     Error.
2869
2870 default_ld=
2871 # Check whether --enable-gold was given.
2872 if test "${enable_gold+set}" = set; then :
2873   enableval=$enable_gold; ENABLE_GOLD=$enableval
2874 else
2875   ENABLE_GOLD=no
2876 fi
2877
2878 case "${ENABLE_GOLD}" in
2879   yes|default|both)
2880     # Check for ELF target.
2881     is_elf=no
2882     case "${target}" in
2883       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2884       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2885       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2886       | *-*-solaris2* | *-*-nto*)
2887         case "${target}" in
2888           *-*-linux*aout* | *-*-linux*oldld*)
2889             ;;
2890           *)
2891             is_elf=yes
2892             ;;
2893         esac
2894     esac
2895
2896     if test "$is_elf" = "yes"; then
2897       # Check for target supported by gold.
2898       case "${target}" in
2899         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2900           configdirs="$configdirs gold"
2901           if test x${ENABLE_GOLD} = xdefault; then
2902             default_ld=gold
2903           fi
2904           ENABLE_GOLD=yes
2905           ;;
2906       esac
2907     fi
2908     ;;
2909   no)
2910     ;;
2911   *)
2912     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2913     ;;
2914 esac
2915
2916 # Check whether --enable-ld was given.
2917 if test "${enable_ld+set}" = set; then :
2918   enableval=$enable_ld; ENABLE_LD=$enableval
2919 else
2920   ENABLE_LD=yes
2921 fi
2922
2923
2924 case "${ENABLE_LD}" in
2925   default)
2926     if test x${default_ld} != x; then
2927       as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2928     fi
2929     ;;
2930   yes|both)
2931     ;;
2932   no)
2933     if test x${ENABLE_GOLD} != xyes; then
2934       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2935 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2936     fi
2937     configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2938     ;;
2939   *)
2940     as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2941     ;;
2942 esac
2943
2944 # Configure extra directories which are host specific
2945
2946 case "${host}" in
2947   *-cygwin*)
2948     configdirs="$configdirs libtermcap" ;;
2949 esac
2950
2951 # A target can indicate whether a language isn't supported for some reason.
2952 # Only spaces may be used in this macro; not newlines or tabs.
2953 unsupported_languages=
2954
2955 # Remove more programs from consideration, based on the host or
2956 # target this usually means that a port of the program doesn't
2957 # exist yet.
2958
2959 case "${host}" in
2960   i[3456789]86-*-msdosdjgpp*)
2961     noconfigdirs="$noconfigdirs tcl tk itcl"
2962     ;;
2963 esac
2964
2965
2966 # Check whether --enable-libquadmath was given.
2967 if test "${enable_libquadmath+set}" = set; then :
2968   enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2969 else
2970   ENABLE_LIBQUADMATH=yes
2971 fi
2972
2973 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2974   noconfigdirs="$noconfigdirs target-libquadmath"
2975 fi
2976
2977
2978 # Check whether --enable-libquadmath-support was given.
2979 if test "${enable_libquadmath_support+set}" = set; then :
2980   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2981 else
2982   ENABLE_LIBQUADMATH_SUPPORT=yes
2983 fi
2984
2985 enable_libquadmath_support=
2986 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2987   enable_libquadmath_support=no
2988 fi
2989
2990
2991 # Check whether --enable-libada was given.
2992 if test "${enable_libada+set}" = set; then :
2993   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2994 else
2995   ENABLE_LIBADA=yes
2996 fi
2997
2998 if test "${ENABLE_LIBADA}" != "yes" ; then
2999   noconfigdirs="$noconfigdirs gnattools"
3000 fi
3001
3002 # Check whether --enable-libssp was given.
3003 if test "${enable_libssp+set}" = set; then :
3004   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3005 else
3006   ENABLE_LIBSSP=yes
3007 fi
3008
3009
3010 # Save it here so that, even in case of --enable-libgcj, if the Java
3011 # front-end isn't enabled, we still get libgcj disabled.
3012 libgcj_saved=$libgcj
3013 case $enable_libgcj in
3014 yes)
3015   # If we reset it here, it won't get added to noconfigdirs in the
3016   # target-specific build rules, so it will be forcibly enabled
3017   # (unless the Java language itself isn't enabled).
3018   libgcj=
3019   ;;
3020 no)
3021   # Make sure we get it printed in the list of not supported target libs.
3022   # Don't disable libffi, though, other languages use it.
3023   noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3024   # Clear libgcj_saved so that even if java is enabled libffi won't be
3025   # built.
3026   libgcj_saved=
3027   ;;
3028 esac
3029
3030 # Check whether --enable-static-libjava was given.
3031 if test "${enable_static_libjava+set}" = set; then :
3032   enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3033 else
3034   ENABLE_STATIC_LIBJAVA=no
3035 fi
3036
3037 enable_static_libjava=
3038 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3039   enable_static_libjava=yes
3040 fi
3041
3042 if test x$enable_static_libjava != xyes ; then
3043   EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3044 fi
3045
3046
3047 # Disable libmudflap on some systems.
3048 if test x$enable_libmudflap = x ; then
3049     case "${target}" in
3050     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3051         # Enable libmudflap by default in GNU and friends.
3052         ;;
3053     *-*-freebsd*)
3054         # Enable libmudflap by default in FreeBSD.
3055         ;;
3056     *)
3057         # Disable it by default everywhere else.
3058         noconfigdirs="$noconfigdirs target-libmudflap"
3059         ;;
3060     esac
3061 fi
3062
3063 # Disable libgomp on non POSIX hosted systems.
3064 if test x$enable_libgomp = x ; then
3065     # Enable libgomp by default on hosted POSIX systems.
3066     case "${target}" in
3067     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3068         ;;
3069     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3070         ;;
3071     *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3072         ;;
3073     *-*-darwin* | *-*-aix*)
3074         ;;
3075     *)
3076         noconfigdirs="$noconfigdirs target-libgomp"
3077         ;;
3078     esac
3079 fi
3080
3081 # Disable libitm on unsupported systems.
3082 if test -d ${srcdir}/libitm; then
3083     if test x$enable_libitm = x; then
3084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3085 $as_echo_n "checking for libitm support... " >&6; }
3086         if (srcdir=${srcdir}/libitm; \
3087                 . ${srcdir}/configure.tgt; \
3088                 test -n "$UNSUPPORTED")
3089         then
3090             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092             noconfigdirs="$noconfigdirs target-libitm"
3093         else
3094             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3096         fi
3097     fi
3098 fi
3099
3100 # Disable libssp for some systems.
3101 case "${target}" in
3102   avr-*-*)
3103     # No hosted I/O support.
3104     noconfigdirs="$noconfigdirs target-libssp"
3105     ;;
3106   powerpc-*-aix* | rs6000-*-aix*)
3107     noconfigdirs="$noconfigdirs target-libssp"
3108     ;;
3109   rl78-*-*)
3110     # libssp uses a misaligned load to trigger a fault, but the RL78
3111     # doesn't fault for those - instead, it gives a build-time error
3112     # for explicit misaligned loads.
3113     noconfigdirs="$noconfigdirs target-libssp"
3114     ;;
3115    *-*-tpf*)
3116     noconfigdirs="$noconfigdirs target-libssp"
3117     ;;
3118 esac
3119
3120 # Disable libstdc++-v3 for some systems.
3121 case "${target}" in
3122   *-*-vxworks*)
3123     # VxWorks uses the Dinkumware C++ library.
3124     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3125     ;;
3126   arm*-wince-pe*)
3127     # the C++ libraries don't build on top of CE's C libraries
3128     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3129     ;;
3130   avr-*-*)
3131     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3132     ;;
3133 esac
3134
3135 # Disable Fortran for some systems.
3136 case "${target}" in
3137   mmix-*-*)
3138     # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3139     unsupported_languages="$unsupported_languages fortran"
3140     ;;
3141 esac
3142
3143 # Disable Java if libffi is not supported.
3144 case "${target}" in
3145   alpha*-*-*)
3146     ;;
3147   arm*-*-*)
3148     ;;
3149   cris-*-*)
3150     ;;
3151   frv-*-*)
3152     ;;
3153   hppa*-*-linux*)
3154     ;;
3155   hppa*-*-hpux*)
3156     ;;
3157   i?86-*-*)
3158     ;;
3159   ia64*-*-*)
3160     ;;
3161   m32r*-*-*)
3162     ;;
3163   m68k-*-*)
3164     ;;
3165   mips-sgi-irix6.* | mips*-*-rtems*)
3166     ;;
3167   mips*-*-linux*)
3168     ;;
3169   powerpc*-*-linux*)
3170     ;;
3171   powerpc-*-darwin*)
3172     ;;
3173   powerpc-*-aix* | rs6000-*-aix*)
3174     ;;
3175   powerpc-*-freebsd*)
3176     ;;
3177   powerpc64-*-freebsd*)
3178     ;;
3179   powerpc*-*-rtems*)
3180     ;;
3181   s390-*-* | s390x-*-*)
3182     ;;
3183   sh-*-* | sh[34]*-*-*)
3184     ;;
3185   sh64-*-* | sh5*-*-*)
3186     ;;
3187   sparc*-*-*)
3188     ;;
3189   x86_64-*-*)
3190     ;;
3191   *-*-*)
3192     unsupported_languages="$unsupported_languages java"
3193     ;;
3194 esac
3195
3196 # Disable Java, libgcj or related libraries for some systems.
3197 case "${target}" in
3198   powerpc-*-darwin*)
3199     ;;
3200   i[3456789]86-*-darwin*)
3201     ;;
3202   x86_64-*-darwin[912]*)
3203     ;;
3204   *-*-darwin*)
3205     noconfigdirs="$noconfigdirs ${libgcj}"
3206     ;;
3207   *-*-netware*)
3208     noconfigdirs="$noconfigdirs ${libgcj}"
3209     ;;
3210   *-*-rtems*)
3211     noconfigdirs="$noconfigdirs ${libgcj}"
3212     ;;
3213   *-*-tpf*)
3214     noconfigdirs="$noconfigdirs ${libgcj}"
3215     ;;
3216   *-*-uclinux*)
3217     noconfigdirs="$noconfigdirs ${libgcj}"
3218     ;;
3219   *-*-vxworks*)
3220     noconfigdirs="$noconfigdirs ${libgcj}"
3221     ;;
3222   alpha*-*-*vms*)
3223     noconfigdirs="$noconfigdirs ${libgcj}"
3224     ;;
3225   arm-wince-pe)
3226     noconfigdirs="$noconfigdirs ${libgcj}"
3227     ;;
3228   arm*-*-symbianelf*)
3229     noconfigdirs="$noconfigdirs ${libgcj}"
3230     ;;
3231   bfin-*-*)
3232     noconfigdirs="$noconfigdirs target-boehm-gc"
3233     ;;
3234   cris-*-* | crisv32-*-*)
3235     unsupported_languages="$unsupported_languages java"
3236     case "${target}" in
3237       *-*-linux*)
3238         ;;
3239       *) # See PR46792 regarding target-libffi.
3240         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3241     esac
3242     ;;
3243   hppa*64*-*-linux*)
3244     # In this case, it's because the hppa64-linux target is for
3245     # the kernel only at this point and has no libc, and thus no
3246     # headers, crt*.o, etc., all of which are needed by these.
3247     unsupported_languages="$unsupported_languages java"
3248     ;;
3249   hppa*64*-*-hpux*)
3250     noconfigdirs="$noconfigdirs ${libgcj}"
3251     ;;
3252   hppa*-hp-hpux11*)
3253     ;;
3254   hppa*-*-hpux*)
3255     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3256     # build on HP-UX 10.20.
3257     noconfigdirs="$noconfigdirs ${libgcj}"
3258     ;;
3259   ia64*-*-*vms*)
3260     noconfigdirs="$noconfigdirs ${libgcj}"
3261     ;;
3262   i[3456789]86-w64-mingw*)
3263     noconfigdirs="$noconfigdirs ${libgcj}"
3264     ;;
3265   i[3456789]86-*-mingw*)
3266     noconfigdirs="$noconfigdirs ${libgcj}"
3267     ;;
3268   x86_64-*-mingw*)
3269     noconfigdirs="$noconfigdirs ${libgcj}"
3270     ;;
3271   mmix-*-*)
3272     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3273     ;;
3274   powerpc-*-aix*)
3275     # copied from rs6000-*-* entry
3276     noconfigdirs="$noconfigdirs ${libgcj}"
3277     ;;
3278   rs6000-*-aix*)
3279     noconfigdirs="$noconfigdirs ${libgcj}"
3280     ;;
3281   mep-*-*)
3282     configdirs="$configdirs sid"
3283     ;;
3284   mips*-*-irix6*)
3285     # Linking libjava exceeds command-line length limits on at least
3286     # IRIX 6.2, but not on IRIX 6.5.
3287     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3288     # <oldham@codesourcery.com>
3289     noconfigdirs="$noconfigdirs ${libgcj}"
3290     ;;
3291   mips*-*-*)
3292     noconfigdirs="$noconfigdirs ${libgcj} target-libssp"
3293     ;;
3294   xstormy16*-*-*)
3295     configdirs="$configdirs sid"
3296     ;;
3297   *-*-lynxos*)
3298     noconfigdirs="$noconfigdirs ${libgcj}"
3299     ;;
3300 esac
3301
3302 # Default libgloss CPU subdirectory.
3303 libgloss_dir="$target_cpu"
3304
3305 case "${target}" in
3306   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3307     libgloss_dir=wince
3308     ;;
3309   arm*-*-*)
3310     libgloss_dir=arm
3311     ;;
3312   cris-*-* | crisv32-*-*)
3313     libgloss_dir=cris
3314     ;;
3315   hppa*-*-*)
3316     libgloss_dir=pa
3317     ;;
3318   i[3456789]86-*-*)
3319     libgloss_dir=i386
3320     ;;
3321   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3322     libgloss_dir=m68hc11
3323     ;;
3324   m68*-*-* | fido-*-*)
3325     libgloss_dir=m68k
3326     ;;
3327   mips*-*-*)
3328     libgloss_dir=mips
3329     ;;
3330   powerpc*-*-*)
3331     libgloss_dir=rs6000
3332     ;;
3333   sparc*-*-*)
3334     libgloss_dir=sparc
3335     ;;
3336 esac
3337
3338 # Disable newlib and libgloss for various target OSes.
3339 case "${target}" in
3340   alpha*-dec-osf*)
3341     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3342     ;;
3343   i[3456789]86-*-linux*)
3344     # This section makes it possible to build newlib natively on linux.
3345     # If we are using a cross compiler then don't configure newlib.
3346     if test x${is_cross_compiler} != xno ; then
3347       noconfigdirs="$noconfigdirs target-newlib"
3348     fi
3349     noconfigdirs="$noconfigdirs target-libgloss"
3350     # If we are not using a cross compiler, do configure newlib.
3351     # Note however, that newlib will only be configured in this situation
3352     # if the --with-newlib option has been given, because otherwise
3353     # 'target-newlib' will appear in skipdirs.
3354     ;;
3355   i[3456789]86-*-rdos*)
3356     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3357     ;;
3358   sh*-*-pe|mips*-*-pe|arm-wince-pe)
3359     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360     ;;
3361   sparc-*-sunos4*)
3362     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363     ;;
3364   *-*-aix*)
3365     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3366     ;;
3367   *-*-beos*)
3368     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3369     ;;
3370   *-*-chorusos)
3371     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3372     ;;
3373   *-*-dragonfly*)
3374     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3375     ;;
3376   *-*-freebsd*)
3377     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3378     ;;
3379   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3380     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3381     ;;
3382   *-*-lynxos*)
3383     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3384     ;;
3385   *-*-mingw*)
3386     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387     ;;
3388   *-*-netbsd*)
3389     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3390     ;;
3391   *-*-netware*)
3392     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3393     ;;
3394   *-*-tpf*)
3395     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3396     ;;
3397   *-*-uclinux*)
3398     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3399     ;;
3400   *-*-vxworks*)
3401     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3402     ;;
3403 esac
3404
3405 case "${target}" in
3406   *-*-chorusos)
3407     ;;
3408   powerpc-*-darwin*)
3409     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3410     noconfigdirs="$noconfigdirs sim target-rda"
3411     ;;
3412   i[3456789]86-*-darwin*)
3413     noconfigdirs="$noconfigdirs ld gprof"
3414     noconfigdirs="$noconfigdirs sim target-rda"
3415     ;;
3416   x86_64-*-darwin[912]*)
3417     noconfigdirs="$noconfigdirs ld gas gprof"
3418     noconfigdirs="$noconfigdirs sim target-rda"
3419     ;;
3420   *-*-darwin*)
3421     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3422     noconfigdirs="$noconfigdirs sim target-rda"
3423     ;;
3424   *-*-dragonfly*)
3425     ;;
3426   *-*-freebsd*)
3427     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3428         && test -f /usr/local/include/gmp.h; then
3429       with_gmp=/usr/local
3430     fi
3431     ;;
3432   *-*-kaos*)
3433     # Remove unsupported stuff on all kaOS configurations.
3434     noconfigdirs="$noconfigdirs target-libgloss"
3435     ;;
3436   *-*-netbsd*)
3437     ;;
3438   *-*-netware*)
3439     ;;
3440   *-*-rtems*)
3441     noconfigdirs="$noconfigdirs target-libgloss"
3442     ;;
3443     # The tpf target doesn't support gdb yet.
3444   *-*-tpf*)
3445     noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3446     ;;
3447   *-*-uclinux*)
3448     noconfigdirs="$noconfigdirs target-rda"
3449     ;;
3450   *-*-vxworks*)
3451     ;;
3452   alpha*-dec-osf*)
3453     # ld works, but does not support shared libraries.
3454     # gas doesn't generate exception information.
3455     noconfigdirs="$noconfigdirs gas ld"
3456     ;;
3457   alpha*-*-*vms*)
3458     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3459     ;;
3460   alpha*-*-*)
3461     # newlib is not 64 bit ready
3462     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3463     ;;
3464   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3465     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3466     ;;
3467   arc-*-*)
3468     noconfigdirs="$noconfigdirs target-libgloss"
3469     ;;
3470   arm-*-pe*)
3471     noconfigdirs="$noconfigdirs target-libgloss"
3472     ;;
3473   arm-*-riscix*)
3474     noconfigdirs="$noconfigdirs ld target-libgloss"
3475     ;;
3476   c4x-*-* | tic4x-*-*)
3477     noconfigdirs="$noconfigdirs target-libgloss"
3478     ;;
3479   tic54x-*-*)
3480     noconfigdirs="$noconfigdirs target-libgloss gdb"
3481     ;;
3482   cr16-*-*)
3483     noconfigdirs="$noconfigdirs gdb"
3484     ;;
3485   d10v-*-*)
3486     noconfigdirs="$noconfigdirs target-libgloss"
3487     ;;
3488   d30v-*-*)
3489     noconfigdirs="$noconfigdirs gdb"
3490     ;;
3491   fr30-*-elf*)
3492     noconfigdirs="$noconfigdirs gdb"
3493     ;;
3494   moxie-*-*)
3495     noconfigdirs="$noconfigdirs gprof"
3496     ;;
3497   h8300*-*-*)
3498     noconfigdirs="$noconfigdirs target-libgloss"
3499     ;;
3500   h8500-*-*)
3501     noconfigdirs="$noconfigdirs target-libgloss"
3502     ;;
3503   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3504     ;;
3505   hppa*64*-*-linux*)
3506     ;;
3507   hppa*-*-linux*)
3508     ;;
3509   hppa*-*-*elf* | \
3510   hppa*-*-lites* | \
3511   hppa*-*-openbsd* | \
3512   hppa*64*-*-*)
3513     ;;
3514   hppa*-hp-hpux11*)
3515     noconfigdirs="$noconfigdirs ld"
3516     ;;
3517   hppa*-*-pro*)
3518     ;;
3519   hppa*-*-*)
3520     noconfigdirs="$noconfigdirs ld"
3521     ;;
3522   i960-*-*)
3523     noconfigdirs="$noconfigdirs gdb"
3524     ;;
3525   ia64*-*-elf*)
3526     # No gdb support yet.
3527     noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3528     ;;
3529   ia64*-**-hpux*)
3530     # No ld support yet.
3531     noconfigdirs="$noconfigdirs libgui itcl ld"
3532     ;;
3533   ia64*-*-*vms*)
3534     # No gdb or ld support yet.
3535     noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3536     ;;
3537   i[3456789]86-w64-mingw*)
3538     ;;
3539   i[3456789]86-*-mingw*)
3540     target_configdirs="$target_configdirs target-winsup"
3541     ;;
3542   *-*-cygwin*)
3543     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3544     noconfigdirs="$noconfigdirs target-libgloss"
3545     # always build newlib if winsup directory is present.
3546     if test -d "$srcdir/winsup/cygwin"; then
3547       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3548     elif test -d "$srcdir/newlib"; then
3549       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3550     fi
3551     ;;
3552   i[3456789]86-*-pe)
3553     noconfigdirs="$noconfigdirs target-libgloss"
3554     ;;
3555   i[3456789]86-*-sco3.2v5*)
3556     # The linker does not yet know about weak symbols in COFF,
3557     # and is not configured to handle mixed ELF and COFF.
3558     noconfigdirs="$noconfigdirs ld target-libgloss"
3559     ;;
3560   i[3456789]86-*-sco*)
3561     noconfigdirs="$noconfigdirs gprof target-libgloss"
3562     ;;
3563   i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3564     noconfigdirs="$noconfigdirs target-libgloss"
3565     ;;
3566   i[3456789]86-*-sysv4*)
3567     noconfigdirs="$noconfigdirs target-libgloss"
3568     ;;
3569   i[3456789]86-*-beos*)
3570     noconfigdirs="$noconfigdirs gdb"
3571     ;;
3572   i[3456789]86-*-rdos*)
3573     noconfigdirs="$noconfigdirs gdb"
3574     ;;
3575   mmix-*-*)
3576     noconfigdirs="$noconfigdirs gdb"
3577     ;;
3578   mt-*-*)
3579     noconfigdirs="$noconfigdirs sim"
3580     ;;
3581   powerpc-*-aix*)
3582     # copied from rs6000-*-* entry
3583     noconfigdirs="$noconfigdirs gprof"
3584     ;;
3585   powerpc*-*-winnt* | powerpc*-*-pe*)
3586     target_configdirs="$target_configdirs target-winsup"
3587     noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3588     # always build newlib.
3589     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3590     ;;
3591     # This is temporary until we can link against shared libraries
3592   powerpcle-*-solaris*)
3593     noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3594     ;;
3595   powerpc-*-beos*)
3596     noconfigdirs="$noconfigdirs gdb"
3597     ;;
3598   rs6000-*-lynxos*)
3599     noconfigdirs="$noconfigdirs gprof"
3600     ;;
3601   rs6000-*-aix*)
3602     noconfigdirs="$noconfigdirs gprof"
3603     ;;
3604   rs6000-*-*)
3605     noconfigdirs="$noconfigdirs gprof"
3606     ;;
3607   m68k-apollo-*)
3608     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3609     ;;
3610   microblaze*)
3611     noconfigdirs="$noconfigdirs gprof"
3612     ;;
3613   mips*-sde-elf*)
3614     if test x$with_newlib = xyes; then
3615       noconfigdirs="$noconfigdirs gprof"
3616     fi
3617     ;;
3618   mips*-*-irix5*)
3619     noconfigdirs="$noconfigdirs gprof target-libgloss"
3620     ;;
3621   mips*-*-irix6*)
3622     noconfigdirs="$noconfigdirs gprof target-libgloss"
3623     ;;
3624   mips*-*-bsd*)
3625     noconfigdirs="$noconfigdirs gprof target-libgloss"
3626     ;;
3627   mips*-*-linux*)
3628     ;;
3629   mips*-*-*)
3630     noconfigdirs="$noconfigdirs gprof"
3631     ;;
3632   sh-*-* | sh64-*-*)
3633     case "${target}" in
3634       sh*-*-elf)
3635          ;;
3636       *)
3637          noconfigdirs="$noconfigdirs target-libgloss" ;;
3638     esac
3639     ;;
3640   sparc-*-sunos4*)
3641     if test x${is_cross_compiler} = xno ; then
3642            use_gnu_ld=no
3643     fi
3644     ;;
3645   tic6x-*-*)
3646     noconfigdirs="$noconfigdirs sim"
3647     ;;
3648   tilepro-*-* | tilegx-*-*)
3649     noconfigdirs="$noconfigdirs sim"
3650     ;;
3651   v810-*-*)
3652     noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3653     ;;
3654   vax-*-*)
3655     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656     ;;
3657 esac
3658
3659 # If we aren't building newlib, then don't build libgloss, since libgloss
3660 # depends upon some newlib header files.
3661 case "${noconfigdirs}" in
3662   *target-libgloss*) ;;
3663   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3664 esac
3665
3666 # Work in distributions that contain no compiler tools, like Autoconf.
3667 host_makefile_frag=/dev/null
3668 if test -d ${srcdir}/config ; then
3669 case "${host}" in
3670   i[3456789]86-*-msdosdjgpp*)
3671     host_makefile_frag="config/mh-djgpp"
3672     ;;
3673   *-cygwin*)
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3676 $as_echo_n "checking to see if cat works as expected... " >&6; }
3677 echo a >cygwin-cat-check
3678 if test `cat cygwin-cat-check` = a ; then
3679   rm cygwin-cat-check
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3681 $as_echo "yes" >&6; }
3682 else
3683   rm cygwin-cat-check
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686   as_fn_error "The cat command does not ignore carriage return characters.
3687   Please either mount the build directory in binary mode or run the following
3688   commands before running any configure script:
3689 set -o igncr
3690 export SHELLOPTS
3691   " "$LINENO" 5
3692 fi
3693
3694     host_makefile_frag="config/mh-cygwin"
3695     ;;
3696   *-mingw*)
3697     host_makefile_frag="config/mh-mingw"
3698     ;;
3699   *-interix*)
3700     host_makefile_frag="config/mh-interix"
3701     ;;
3702   hppa*-hp-hpux10*)
3703     host_makefile_frag="config/mh-pa-hpux10"
3704     ;;
3705   hppa*-hp-hpux*)
3706     host_makefile_frag="config/mh-pa"
3707     ;;
3708   hppa*-*)
3709     host_makefile_frag="config/mh-pa"
3710     ;;
3711   *-*-darwin*)
3712     host_makefile_frag="config/mh-darwin"
3713     ;;
3714   powerpc-*-aix*)
3715     host_makefile_frag="config/mh-ppc-aix"
3716     ;;
3717   rs6000-*-aix*)
3718     host_makefile_frag="config/mh-ppc-aix"
3719     ;;
3720 esac
3721 fi
3722
3723 if test "${build}" != "${host}" ; then
3724   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3725   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3726   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3727   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3728   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3729   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3730   GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3731   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3732   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3733   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3734   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3735   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3736   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3737 else
3738   AR_FOR_BUILD="\$(AR)"
3739   AS_FOR_BUILD="\$(AS)"
3740   CC_FOR_BUILD="\$(CC)"
3741   CXX_FOR_BUILD="\$(CXX)"
3742   GCJ_FOR_BUILD="\$(GCJ)"
3743   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3744   GOC_FOR_BUILD="\$(GOC)"
3745   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3746   LD_FOR_BUILD="\$(LD)"
3747   NM_FOR_BUILD="\$(NM)"
3748   RANLIB_FOR_BUILD="\$(RANLIB)"
3749   WINDRES_FOR_BUILD="\$(WINDRES)"
3750   WINDMC_FOR_BUILD="\$(WINDMC)"
3751 fi
3752
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 if test -n "$ac_tool_prefix"; then
3759   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$CC"; then
3767   ac_cv_prog_CC="$CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 CC=$ac_cv_prog_CC
3787 if test -n "$CC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 $as_echo "$CC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796 fi
3797 if test -z "$ac_cv_prog_CC"; then
3798   ac_ct_CC=$CC
3799   # Extract the first word of "gcc", so it can be a program name with args.
3800 set dummy gcc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if test -n "$ac_ct_CC"; then
3807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814     for ac_exec_ext in '' $ac_executable_extensions; do
3815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816     ac_cv_prog_ac_ct_CC="gcc"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827 if test -n "$ac_ct_CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829 $as_echo "$ac_ct_CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835   if test "x$ac_ct_CC" = x; then
3836     CC=""
3837   else
3838     case $cross_compiling:$ac_tool_warned in
3839 yes:)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842 ac_tool_warned=yes ;;
3843 esac
3844     CC=$ac_ct_CC
3845   fi
3846 else
3847   CC="$ac_cv_prog_CC"
3848 fi
3849
3850 if test -z "$CC"; then
3851           if test -n "$ac_tool_prefix"; then
3852     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_CC+set}" = set; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$CC"; then
3860   ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865   IFS=$as_save_IFS
3866   test -z "$as_dir" && as_dir=.
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869     ac_cv_prog_CC="${ac_tool_prefix}cc"
3870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871     break 2
3872   fi
3873 done
3874   done
3875 IFS=$as_save_IFS
3876
3877 fi
3878 fi
3879 CC=$ac_cv_prog_CC
3880 if test -n "$CC"; then
3881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3883 else
3884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 fi
3887
3888
3889   fi
3890 fi
3891 if test -z "$CC"; then
3892   # Extract the first word of "cc", so it can be a program name with args.
3893 set dummy cc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_CC+set}" = set; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$CC"; then
3900   ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902   ac_prog_rejected=no
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911        ac_prog_rejected=yes
3912        continue
3913      fi
3914     ac_cv_prog_CC="cc"
3915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922 if test $ac_prog_rejected = yes; then
3923   # We found a bogon in the path, so make sure we never use it.
3924   set dummy $ac_cv_prog_CC
3925   shift
3926   if test $# != 0; then
3927     # We chose a different compiler from the bogus one.
3928     # However, it has the same basename, so the bogon will be chosen
3929     # first if we set CC to just the basename; use the full file name.
3930     shift
3931     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932   fi
3933 fi
3934 fi
3935 fi
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946 fi
3947 if test -z "$CC"; then
3948   if test -n "$ac_tool_prefix"; then
3949   for ac_prog in cl.exe
3950   do
3951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_CC+set}" = set; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   if test -n "$CC"; then
3959   ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966     for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973   done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CC=$ac_cv_prog_CC
3979 if test -n "$CC"; then
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3982 else
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987
3988     test -n "$CC" && break
3989   done
3990 fi
3991 if test -z "$CC"; then
3992   ac_ct_CC=$CC
3993   for ac_prog in cl.exe
3994 do
3995   # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   if test -n "$ac_ct_CC"; then
4003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012     ac_cv_prog_ac_ct_CC="$ac_prog"
4013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017   done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 $as_echo "$ac_ct_CC" >&6; }
4026 else
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032   test -n "$ac_ct_CC" && break
4033 done
4034
4035   if test "x$ac_ct_CC" = x; then
4036     CC=""
4037   else
4038     case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042 ac_tool_warned=yes ;;
4043 esac
4044     CC=$ac_ct_CC
4045   fi
4046 fi
4047
4048 fi
4049
4050
4051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "no acceptable C compiler found in \$PATH
4054 See \`config.log' for more details." "$LINENO" 5; }
4055
4056 # Provide some information about the compiler.
4057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058 set X $ac_compile
4059 ac_compiler=$2
4060 for ac_option in --version -v -V -qversion; do
4061   { { ac_try="$ac_compiler $ac_option >&5"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4069   ac_status=$?
4070   if test -s conftest.err; then
4071     sed '10a\
4072 ... rest of stderr output deleted ...
4073          10q' conftest.err >conftest.er1
4074     cat conftest.er1 >&5
4075     rm -f conftest.er1 conftest.err
4076   fi
4077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078   test $ac_status = 0; }
4079 done
4080
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 ac_clean_files_save=$ac_clean_files
4093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4094 # Try to create an executable without -o first, disregard a.out.
4095 # It will help us diagnose broken compilers, and finding out an intuition
4096 # of exeext.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4098 $as_echo_n "checking for C compiler default output file name... " >&6; }
4099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4100
4101 # The possible output files:
4102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4103
4104 ac_rmfiles=
4105 for ac_file in $ac_files
4106 do
4107   case $ac_file in
4108     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4109     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4110   esac
4111 done
4112 rm -f $ac_rmfiles
4113
4114 if { { ac_try="$ac_link_default"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121   (eval "$ac_link_default") 2>&5
4122   ac_status=$?
4123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124   test $ac_status = 0; }; then :
4125   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4127 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4128 # so that the user can short-circuit this test for compilers unknown to
4129 # Autoconf.
4130 for ac_file in $ac_files ''
4131 do
4132   test -f "$ac_file" || continue
4133   case $ac_file in
4134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4135         ;;
4136     [ab].out )
4137         # We found the default executable, but exeext='' is most
4138         # certainly right.
4139         break;;
4140     *.* )
4141         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4142         then :; else
4143            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4144         fi
4145         # We set ac_cv_exeext here because the later test for it is not
4146         # safe: cross compilers may not add the suffix if given an `-o'
4147         # argument, so we may need to know it at that point already.
4148         # Even if this section looks crufty: it has the advantage of
4149         # actually working.
4150         break;;
4151     * )
4152         break;;
4153   esac
4154 done
4155 test "$ac_cv_exeext" = no && ac_cv_exeext=
4156
4157 else
4158   ac_file=''
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4161 $as_echo "$ac_file" >&6; }
4162 if test -z "$ac_file"; then :
4163   $as_echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 { as_fn_set_status 77
4169 as_fn_error "C compiler cannot create executables
4170 See \`config.log' for more details." "$LINENO" 5; }; }
4171 fi
4172 ac_exeext=$ac_cv_exeext
4173
4174 # Check that the compiler produces executables we can run.  If not, either
4175 # the compiler is broken, or we cross compile.
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4177 $as_echo_n "checking whether the C compiler works... " >&6; }
4178 # If not cross compiling, check that we can run a simple program.
4179 if test "$cross_compiling" != yes; then
4180   if { ac_try='./$ac_file'
4181   { { case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190   test $ac_status = 0; }; }; then
4191     cross_compiling=no
4192   else
4193     if test "$cross_compiling" = maybe; then
4194         cross_compiling=yes
4195     else
4196         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "cannot run C compiled programs.
4199 If you meant to cross compile, use \`--host'.
4200 See \`config.log' for more details." "$LINENO" 5; }
4201     fi
4202   fi
4203 fi
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4205 $as_echo "yes" >&6; }
4206
4207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4208 ac_clean_files=$ac_clean_files_save
4209 # Check that the compiler produces executables we can run.  If not, either
4210 # the compiler is broken, or we cross compile.
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4212 $as_echo_n "checking whether we are cross compiling... " >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4217 $as_echo_n "checking for suffix of executables... " >&6; }
4218 if { { ac_try="$ac_link"
4219 case "(($ac_try" in
4220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221   *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225   (eval "$ac_link") 2>&5
4226   ac_status=$?
4227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228   test $ac_status = 0; }; then :
4229   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4230 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4231 # work properly (i.e., refer to `conftest.exe'), while it won't with
4232 # `rm'.
4233 for ac_file in conftest.exe conftest conftest.*; do
4234   test -f "$ac_file" || continue
4235   case $ac_file in
4236     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4237     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238           break;;
4239     * ) break;;
4240   esac
4241 done
4242 else
4243   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4245 as_fn_error "cannot compute suffix of executables: cannot compile and link
4246 See \`config.log' for more details." "$LINENO" 5; }
4247 fi
4248 rm -f conftest$ac_cv_exeext
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4250 $as_echo "$ac_cv_exeext" >&6; }
4251
4252 rm -f conftest.$ac_ext
4253 EXEEXT=$ac_cv_exeext
4254 ac_exeext=$EXEEXT
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4256 $as_echo_n "checking for suffix of object files... " >&6; }
4257 if test "${ac_cv_objext+set}" = set; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h.  */
4262
4263 int
4264 main ()
4265 {
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.o conftest.obj
4272 if { { ac_try="$ac_compile"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 $as_echo "$ac_try_echo"; } >&5
4279   (eval "$ac_compile") 2>&5
4280   ac_status=$?
4281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282   test $ac_status = 0; }; then :
4283   for ac_file in conftest.o conftest.obj conftest.*; do
4284   test -f "$ac_file" || continue;
4285   case $ac_file in
4286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4287     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4288        break;;
4289   esac
4290 done
4291 else
4292   $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 as_fn_error "cannot compute suffix of object files: cannot compile
4298 See \`config.log' for more details." "$LINENO" 5; }
4299 fi
4300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4303 $as_echo "$ac_cv_objext" >&6; }
4304 OBJEXT=$ac_cv_objext
4305 ac_objext=$OBJEXT
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4307 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4308 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313
4314 int
4315 main ()
4316 {
4317 #ifndef __GNUC__
4318        choke me
4319 #endif
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326   ac_compiler_gnu=yes
4327 else
4328   ac_compiler_gnu=no
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4332
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4335 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4336 if test $ac_compiler_gnu = yes; then
4337   GCC=yes
4338 else
4339   GCC=
4340 fi
4341 ac_test_CFLAGS=${CFLAGS+set}
4342 ac_save_CFLAGS=$CFLAGS
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4344 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4345 if test "${ac_cv_prog_cc_g+set}" = set; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   ac_save_c_werror_flag=$ac_c_werror_flag
4349    ac_c_werror_flag=yes
4350    ac_cv_prog_cc_g=no
4351    CFLAGS="-g"
4352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364   ac_cv_prog_cc_g=yes
4365 else
4366   CFLAGS=""
4367       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h.  */
4369
4370 int
4371 main ()
4372 {
4373
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379
4380 else
4381   ac_c_werror_flag=$ac_save_c_werror_flag
4382          CFLAGS="-g"
4383          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395   ac_cv_prog_cc_g=yes
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402    ac_c_werror_flag=$ac_save_c_werror_flag
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4405 $as_echo "$ac_cv_prog_cc_g" >&6; }
4406 if test "$ac_test_CFLAGS" = set; then
4407   CFLAGS=$ac_save_CFLAGS
4408 elif test $ac_cv_prog_cc_g = yes; then
4409   if test "$GCC" = yes; then
4410     CFLAGS="-g -O2"
4411   else
4412     CFLAGS="-g"
4413   fi
4414 else
4415   if test "$GCC" = yes; then
4416     CFLAGS="-O2"
4417   else
4418     CFLAGS=
4419   fi
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4422 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4423 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   ac_cv_prog_cc_c89=no
4427 ac_save_CC=$CC
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430 #include <stdarg.h>
4431 #include <stdio.h>
4432 #include <sys/types.h>
4433 #include <sys/stat.h>
4434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4435 struct buf { int x; };
4436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4437 static char *e (p, i)
4438      char **p;
4439      int i;
4440 {
4441   return p[i];
4442 }
4443 static char *f (char * (*g) (char **, int), char **p, ...)
4444 {
4445   char *s;
4446   va_list v;
4447   va_start (v,p);
4448   s = g (p, va_arg (v,int));
4449   va_end (v);
4450   return s;
4451 }
4452
4453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4454    function prototypes and stuff, but not '\xHH' hex character constants.
4455    These don't provoke an error unfortunately, instead are silently treated
4456    as 'x'.  The following induces an error, until -std is added to get
4457    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4458    array size at least.  It's necessary to write '\x00'==0 to get something
4459    that's true only with -std.  */
4460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4461
4462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4463    inside strings and character constants.  */
4464 #define FOO(x) 'x'
4465 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4466
4467 int test (int i, double x);
4468 struct s1 {int (*f) (int a);};
4469 struct s2 {int (*f) (double a);};
4470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4471 int argc;
4472 char **argv;
4473 int
4474 main ()
4475 {
4476 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4482         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4483 do
4484   CC="$ac_save_CC $ac_arg"
4485   if ac_fn_c_try_compile "$LINENO"; then :
4486   ac_cv_prog_cc_c89=$ac_arg
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext
4489   test "x$ac_cv_prog_cc_c89" != "xno" && break
4490 done
4491 rm -f conftest.$ac_ext
4492 CC=$ac_save_CC
4493
4494 fi
4495 # AC_CACHE_VAL
4496 case "x$ac_cv_prog_cc_c89" in
4497   x)
4498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4499 $as_echo "none needed" >&6; } ;;
4500   xno)
4501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502 $as_echo "unsupported" >&6; } ;;
4503   *)
4504     CC="$CC $ac_cv_prog_cc_c89"
4505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4507 esac
4508 if test "x$ac_cv_prog_cc_c89" != xno; then :
4509
4510 fi
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518 ac_ext=cpp
4519 ac_cpp='$CXXCPP $CPPFLAGS'
4520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4523 if test -z "$CXX"; then
4524   if test -n "$CCC"; then
4525     CXX=$CCC
4526   else
4527     if test -n "$ac_tool_prefix"; then
4528   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4529   do
4530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CXX+set}" = set; then :
4535   $as_echo_n "(cached) " >&6
4536 else
4537   if test -n "$CXX"; then
4538   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4542 do
4543   IFS=$as_save_IFS
4544   test -z "$as_dir" && as_dir=.
4545     for ac_exec_ext in '' $ac_executable_extensions; do
4546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549     break 2
4550   fi
4551 done
4552   done
4553 IFS=$as_save_IFS
4554
4555 fi
4556 fi
4557 CXX=$ac_cv_prog_CXX
4558 if test -n "$CXX"; then
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4560 $as_echo "$CXX" >&6; }
4561 else
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4565
4566
4567     test -n "$CXX" && break
4568   done
4569 fi
4570 if test -z "$CXX"; then
4571   ac_ct_CXX=$CXX
4572   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4573 do
4574   # Extract the first word of "$ac_prog", so it can be a program name with args.
4575 set dummy $ac_prog; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   if test -n "$ac_ct_CXX"; then
4582   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_prog_ac_ct_CXX="$ac_prog"
4592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596   done
4597 IFS=$as_save_IFS
4598
4599 fi
4600 fi
4601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4602 if test -n "$ac_ct_CXX"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4604 $as_echo "$ac_ct_CXX" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610
4611   test -n "$ac_ct_CXX" && break
4612 done
4613
4614   if test "x$ac_ct_CXX" = x; then
4615     CXX="g++"
4616   else
4617     case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623     CXX=$ac_ct_CXX
4624   fi
4625 fi
4626
4627   fi
4628 fi
4629 # Provide some information about the compiler.
4630 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4631 set X $ac_compile
4632 ac_compiler=$2
4633 for ac_option in --version -v -V -qversion; do
4634   { { ac_try="$ac_compiler $ac_option >&5"
4635 case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4642   ac_status=$?
4643   if test -s conftest.err; then
4644     sed '10a\
4645 ... rest of stderr output deleted ...
4646          10q' conftest.err >conftest.er1
4647     cat conftest.er1 >&5
4648     rm -f conftest.er1 conftest.err
4649   fi
4650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4651   test $ac_status = 0; }
4652 done
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4656 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665 #ifndef __GNUC__
4666        choke me
4667 #endif
4668
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_cxx_try_compile "$LINENO"; then :
4674   ac_compiler_gnu=yes
4675 else
4676   ac_compiler_gnu=no
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4683 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4684 if test $ac_compiler_gnu = yes; then
4685   GXX=yes
4686 else
4687   GXX=
4688 fi
4689 ac_test_CXXFLAGS=${CXXFLAGS+set}
4690 ac_save_CXXFLAGS=$CXXFLAGS
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4692 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4693 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4697    ac_cxx_werror_flag=yes
4698    ac_cv_prog_cxx_g=no
4699    CXXFLAGS="-g"
4700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702
4703 int
4704 main ()
4705 {
4706
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_cxx_try_compile "$LINENO"; then :
4712   ac_cv_prog_cxx_g=yes
4713 else
4714   CXXFLAGS=""
4715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_cxx_try_compile "$LINENO"; then :
4727
4728 else
4729   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4730          CXXFLAGS="-g"
4731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733
4734 int
4735 main ()
4736 {
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_cxx_try_compile "$LINENO"; then :
4743   ac_cv_prog_cxx_g=yes
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4753 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4754 if test "$ac_test_CXXFLAGS" = set; then
4755   CXXFLAGS=$ac_save_CXXFLAGS
4756 elif test $ac_cv_prog_cxx_g = yes; then
4757   if test "$GXX" = yes; then
4758     CXXFLAGS="-g -O2"
4759   else
4760     CXXFLAGS="-g"
4761   fi
4762 else
4763   if test "$GXX" = yes; then
4764     CXXFLAGS="-O2"
4765   else
4766     CXXFLAGS=
4767   fi
4768 fi
4769 ac_ext=c
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774
4775
4776 # We must set the default linker to the linker used by gcc for the correct
4777 # operation of libtool.  If LD is not defined and we are using gcc, try to
4778 # set the LD default to the ld used by gcc.
4779 if test -z "$LD"; then
4780   if test "$GCC" = yes; then
4781     case $build in
4782     *-*-mingw*)
4783       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4784     *)
4785       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4786     esac
4787     case $gcc_prog_ld in
4788     # Accept absolute paths.
4789     [\\/]* | [A-Za-z]:[\\/]*)
4790       LD="$gcc_prog_ld" ;;
4791     esac
4792   fi
4793 fi
4794
4795
4796
4797
4798 if test -n "$ac_tool_prefix"; then
4799   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4800 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   if test -n "$GNATBIND"; then
4807   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814     for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821   done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 GNATBIND=$ac_cv_prog_GNATBIND
4827 if test -n "$GNATBIND"; then
4828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4829 $as_echo "$GNATBIND" >&6; }
4830 else
4831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834
4835
4836 fi
4837 if test -z "$ac_cv_prog_GNATBIND"; then
4838   ac_ct_GNATBIND=$GNATBIND
4839   # Extract the first word of "gnatbind", so it can be a program name with args.
4840 set dummy gnatbind; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   if test -n "$ac_ct_GNATBIND"; then
4847   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4867 if test -n "$ac_ct_GNATBIND"; then
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4869 $as_echo "$ac_ct_GNATBIND" >&6; }
4870 else
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875   if test "x$ac_ct_GNATBIND" = x; then
4876     GNATBIND="no"
4877   else
4878     case $cross_compiling:$ac_tool_warned in
4879 yes:)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882 ac_tool_warned=yes ;;
4883 esac
4884     GNATBIND=$ac_ct_GNATBIND
4885   fi
4886 else
4887   GNATBIND="$ac_cv_prog_GNATBIND"
4888 fi
4889
4890 if test -n "$ac_tool_prefix"; then
4891   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4892 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$GNATMAKE"; then
4899   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 GNATMAKE=$ac_cv_prog_GNATMAKE
4919 if test -n "$GNATMAKE"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4921 $as_echo "$GNATMAKE" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927
4928 fi
4929 if test -z "$ac_cv_prog_GNATMAKE"; then
4930   ac_ct_GNATMAKE=$GNATMAKE
4931   # Extract the first word of "gnatmake", so it can be a program name with args.
4932 set dummy gnatmake; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if test -n "$ac_ct_GNATMAKE"; then
4939   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950     break 2
4951   fi
4952 done
4953   done
4954 IFS=$as_save_IFS
4955
4956 fi
4957 fi
4958 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4959 if test -n "$ac_ct_GNATMAKE"; then
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4961 $as_echo "$ac_ct_GNATMAKE" >&6; }
4962 else
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966
4967   if test "x$ac_ct_GNATMAKE" = x; then
4968     GNATMAKE="no"
4969   else
4970     case $cross_compiling:$ac_tool_warned in
4971 yes:)
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4974 ac_tool_warned=yes ;;
4975 esac
4976     GNATMAKE=$ac_ct_GNATMAKE
4977   fi
4978 else
4979   GNATMAKE="$ac_cv_prog_GNATMAKE"
4980 fi
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4983 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4984 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   cat >conftest.adb <<EOF
4988 procedure conftest is begin null; end conftest;
4989 EOF
4990 acx_cv_cc_gcc_supports_ada=no
4991 # There is a bug in old released versions of GCC which causes the
4992 # driver to exit successfully when the appropriate language module
4993 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4994 # Therefore we must check for the error message as well as an
4995 # unsuccessful exit.
4996 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4997 # given a .adb file, but produce no object file.  So we must check
4998 # if an object file was really produced to guard against this.
4999 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5000 if test x"$errors" = x && test -f conftest.$ac_objext; then
5001   acx_cv_cc_gcc_supports_ada=yes
5002 fi
5003 rm -f conftest.*
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5006 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5007
5008 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5009   have_gnat=yes
5010 else
5011   have_gnat=no
5012 fi
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5015 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5016 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019    echo abfoo >t1
5020   echo cdfoo >t2
5021   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5022   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5023     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5024       :
5025     else
5026       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5027     fi
5028   fi
5029   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5030     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5031       :
5032     else
5033       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5034     fi
5035   fi
5036   rm t1 t2
5037
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5040 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5041 do_compare="$gcc_cv_prog_cmp_skip"
5042
5043
5044
5045 # Check whether --enable-bootstrap was given.
5046 if test "${enable_bootstrap+set}" = set; then :
5047   enableval=$enable_bootstrap;
5048 else
5049   enable_bootstrap=default
5050 fi
5051
5052
5053 # Issue errors and warnings for invalid/strange bootstrap combinations.
5054 if test -r $srcdir/gcc/configure; then
5055   have_compiler=yes
5056 else
5057   have_compiler=no
5058 fi
5059
5060 case "$have_compiler:$host:$target:$enable_bootstrap" in
5061   *:*:*:no) ;;
5062
5063   # Default behavior.  Enable bootstrap if we have a compiler
5064   # and we are in a native configuration.
5065   yes:$build:$build:default)
5066     enable_bootstrap=yes ;;
5067
5068   *:*:*:default)
5069     enable_bootstrap=no ;;
5070
5071   # We have a compiler and we are in a native configuration, bootstrap is ok
5072   yes:$build:$build:yes)
5073     ;;
5074
5075   # Other configurations, but we have a compiler.  Assume the user knows
5076   # what he's doing.
5077   yes:*:*:yes)
5078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5079 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5080     ;;
5081
5082   # No compiler: if they passed --enable-bootstrap explicitly, fail
5083   no:*:*:yes)
5084     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5085
5086   # Fail if wrong command line
5087   *)
5088     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5089     ;;
5090 esac
5091
5092 # See if we are building gcc with C++.
5093 # Check whether --enable-build-with-cxx was given.
5094 if test "${enable_build_with_cxx+set}" = set; then :
5095   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5096 else
5097   ENABLE_BUILD_WITH_CXX=no
5098 fi
5099
5100
5101 # Build stage1 with C and build stages 2 and 3 with C++.
5102 # Check whether --enable-build-poststage1-with-cxx was given.
5103 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5104   enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5105 else
5106   ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5107 fi
5108
5109
5110 # Used for setting $lt_cv_objdir
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5112 $as_echo_n "checking for objdir... " >&6; }
5113 if test "${lt_cv_objdir+set}" = set; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   rm -f .libs 2>/dev/null
5117 mkdir .libs 2>/dev/null
5118 if test -d .libs; then
5119   lt_cv_objdir=.libs
5120 else
5121   # MS-DOS does not allow filenames that begin with a dot.
5122   lt_cv_objdir=_libs
5123 fi
5124 rmdir .libs 2>/dev/null
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5127 $as_echo "$lt_cv_objdir" >&6; }
5128 objdir=$lt_cv_objdir
5129
5130
5131
5132
5133
5134 cat >>confdefs.h <<_ACEOF
5135 #define LT_OBJDIR "$lt_cv_objdir/"
5136 _ACEOF
5137
5138
5139
5140 # Check for GMP, MPFR and MPC
5141 gmplibs="-lmpc -lmpfr -lgmp"
5142 gmpinc=
5143 have_gmp=no
5144
5145 # Specify a location for mpc
5146 # check for this first so it ends up on the link line before mpfr.
5147
5148 # Check whether --with-mpc was given.
5149 if test "${with_mpc+set}" = set; then :
5150   withval=$with_mpc;
5151 fi
5152
5153
5154 # Check whether --with-mpc-include was given.
5155 if test "${with_mpc_include+set}" = set; then :
5156   withval=$with_mpc_include;
5157 fi
5158
5159
5160 # Check whether --with-mpc-lib was given.
5161 if test "${with_mpc_lib+set}" = set; then :
5162   withval=$with_mpc_lib;
5163 fi
5164
5165
5166 if test "x$with_mpc" != x; then
5167   gmplibs="-L$with_mpc/lib $gmplibs"
5168   gmpinc="-I$with_mpc/include $gmpinc"
5169 fi
5170 if test "x$with_mpc_include" != x; then
5171   gmpinc="-I$with_mpc_include $gmpinc"
5172 fi
5173 if test "x$with_mpc_lib" != x; then
5174   gmplibs="-L$with_mpc_lib $gmplibs"
5175 fi
5176 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5177   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5178   gmpinc='-I$$s/mpc/src '"$gmpinc"
5179   # Do not test the mpc version.  Assume that it is sufficient, since
5180   # it is in the source tree, and the library has not been built yet
5181   # but it would be included on the link line in the version check below
5182   # hence making the test fail.
5183   have_gmp=yes
5184 fi
5185
5186 # Specify a location for mpfr
5187 # check for this first so it ends up on the link line before gmp.
5188
5189 # Check whether --with-mpfr-dir was given.
5190 if test "${with_mpfr_dir+set}" = set; then :
5191   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5192 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5193 fi
5194
5195
5196
5197 # Check whether --with-mpfr was given.
5198 if test "${with_mpfr+set}" = set; then :
5199   withval=$with_mpfr;
5200 fi
5201
5202
5203 # Check whether --with-mpfr-include was given.
5204 if test "${with_mpfr_include+set}" = set; then :
5205   withval=$with_mpfr_include;
5206 fi
5207
5208
5209 # Check whether --with-mpfr-lib was given.
5210 if test "${with_mpfr_lib+set}" = set; then :
5211   withval=$with_mpfr_lib;
5212 fi
5213
5214
5215 if test "x$with_mpfr" != x; then
5216   gmplibs="-L$with_mpfr/lib $gmplibs"
5217   gmpinc="-I$with_mpfr/include $gmpinc"
5218 fi
5219 if test "x$with_mpfr_include" != x; then
5220   gmpinc="-I$with_mpfr_include $gmpinc"
5221 fi
5222 if test "x$with_mpfr_lib" != x; then
5223   gmplibs="-L$with_mpfr_lib $gmplibs"
5224 fi
5225 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5226   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5227   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5228   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5229   # Do not test the mpfr version.  Assume that it is sufficient, since
5230   # it is in the source tree, and the library has not been built yet
5231   # but it would be included on the link line in the version check below
5232   # hence making the test fail.
5233   have_gmp=yes
5234 fi
5235
5236 # Specify a location for gmp
5237
5238 # Check whether --with-gmp-dir was given.
5239 if test "${with_gmp_dir+set}" = set; then :
5240   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5241 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5242 fi
5243
5244
5245
5246 # Check whether --with-gmp was given.
5247 if test "${with_gmp+set}" = set; then :
5248   withval=$with_gmp;
5249 fi
5250
5251
5252 # Check whether --with-gmp-include was given.
5253 if test "${with_gmp_include+set}" = set; then :
5254   withval=$with_gmp_include;
5255 fi
5256
5257
5258 # Check whether --with-gmp-lib was given.
5259 if test "${with_gmp_lib+set}" = set; then :
5260   withval=$with_gmp_lib;
5261 fi
5262
5263
5264
5265 if test "x$with_gmp" != x; then
5266   gmplibs="-L$with_gmp/lib $gmplibs"
5267   gmpinc="-I$with_gmp/include $gmpinc"
5268 fi
5269 if test "x$with_gmp_include" != x; then
5270   gmpinc="-I$with_gmp_include $gmpinc"
5271 fi
5272 if test "x$with_gmp_lib" != x; then
5273   gmplibs="-L$with_gmp_lib $gmplibs"
5274 fi
5275 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5276   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5277   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5278   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5279   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5280   # Do not test the gmp version.  Assume that it is sufficient, since
5281   # it is in the source tree, and the library has not been built yet
5282   # but it would be included on the link line in the version check below
5283   # hence making the test fail.
5284   have_gmp=yes
5285 fi
5286
5287 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5288   have_gmp=yes
5289   saved_CFLAGS="$CFLAGS"
5290   CFLAGS="$CFLAGS $gmpinc"
5291   # Check for the recommended and required versions of GMP.
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5293 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5294
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297 #include "gmp.h"
5298 int
5299 main ()
5300 {
5301
5302   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5303   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5304   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5305   choke me
5306   #endif
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315 #include <gmp.h>
5316 int
5317 main ()
5318 {
5319
5320   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5321   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5322   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5323   choke me
5324   #endif
5325
5326   ;
5327   return 0;
5328 }
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332 $as_echo "yes" >&6; }
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5335 $as_echo "buggy but acceptable" >&6; }
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }; have_gmp=no
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343
5344   # If we have GMP, check the MPFR version.
5345   if test x"$have_gmp" = xyes; then
5346     # Check for the recommended and required versions of MPFR.
5347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5348 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351 #include <gmp.h>
5352     #include <mpfr.h>
5353 int
5354 main ()
5355 {
5356
5357     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5358     choke me
5359     #endif
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h.  */
5368 #include <gmp.h>
5369     #include <mpfr.h>
5370 int
5371 main ()
5372 {
5373
5374     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5375     choke me
5376     #endif
5377
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5387 $as_echo "buggy but acceptable" >&6; }
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 else
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }; have_gmp=no
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395   fi
5396
5397   # Check for the MPC header version.
5398   if test x"$have_gmp" = xyes ; then
5399     # Check for the recommended and required versions of MPC.
5400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5401 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h.  */
5404 #include <mpc.h>
5405 int
5406 main ()
5407 {
5408
5409     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5410     choke me
5411     #endif
5412
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h.  */
5420 #include <mpc.h>
5421 int
5422 main ()
5423 {
5424
5425     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5426     choke me
5427     #endif
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5435 $as_echo "yes" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5438 $as_echo "buggy but acceptable" >&6; }
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 else
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }; have_gmp=no
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446   fi
5447
5448   # Now check the MPFR library.
5449   if test x"$have_gmp" = xyes; then
5450     saved_LIBS="$LIBS"
5451     LIBS="$LIBS $gmplibs"
5452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5453 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h.  */
5456 #include <mpc.h>
5457 int
5458 main ()
5459 {
5460
5461     mpfr_t n;
5462     mpfr_t x;
5463     mpc_t c;
5464     int t;
5465     mpfr_init (n);
5466     mpfr_init (x);
5467     mpfr_atan2 (n, n, x, GMP_RNDN);
5468     mpfr_erfc (n, x, GMP_RNDN);
5469     mpfr_subnormalize (x, t, GMP_RNDN);
5470     mpfr_clear(n);
5471     mpfr_clear(x);
5472     mpc_init2 (c, 53);
5473     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5474     mpc_cosh (c, c, MPC_RNDNN);
5475     mpc_pow (c, c, c, MPC_RNDNN);
5476     mpc_acosh (c, c, MPC_RNDNN);
5477     mpc_clear (c);
5478
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_link "$LINENO"; then :
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5485 $as_echo "yes" >&6; }
5486 else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }; have_gmp=no
5489 fi
5490 rm -f core conftest.err conftest.$ac_objext \
5491     conftest$ac_exeext conftest.$ac_ext
5492     LIBS="$saved_LIBS"
5493   fi
5494
5495   CFLAGS="$saved_CFLAGS"
5496
5497 # The library versions listed in the error message below should match
5498 # the HARD-minimums enforced above.
5499   if test x$have_gmp != xyes; then
5500     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5501 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5502 their locations.  Source code for these libraries can be found at
5503 their respective hosting sites as well as at
5504 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5505 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5506 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5507 make sure that you have installed both the libraries and the header
5508 files.  They may be located in separate packages." "$LINENO" 5
5509   fi
5510 fi
5511
5512 # Flags needed for both GMP, MPFR and/or MPC.
5513
5514
5515
5516
5517
5518
5519 # Allow host libstdc++ to be specified for static linking with PPL.
5520
5521 # Check whether --with-host-libstdcxx was given.
5522 if test "${with_host_libstdcxx+set}" = set; then :
5523   withval=$with_host_libstdcxx;
5524 fi
5525
5526
5527 case $with_host_libstdcxx in
5528   no|yes)
5529     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5530     ;;
5531 esac
5532
5533 # Linker flags to use for stage1 or when not boostrapping.
5534
5535 # Check whether --with-stage1-ldflags was given.
5536 if test "${with_stage1_ldflags+set}" = set; then :
5537   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5538    stage1_ldflags=
5539  else
5540    stage1_ldflags=$withval
5541  fi
5542 else
5543   stage1_ldflags=
5544 fi
5545
5546
5547
5548 # Libraries to use for stage1 or when not bootstrapping.
5549
5550 # Check whether --with-stage1-libs was given.
5551 if test "${with_stage1_libs+set}" = set; then :
5552   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5553    stage1_libs=
5554  else
5555    stage1_libs=$withval
5556  fi
5557 else
5558   stage1_libs=$with_host_libstdcxx
5559 fi
5560
5561
5562
5563 # Libraries to use for stage2 and later builds.  This defaults to the
5564 # argument passed to --with-host-libstdcxx.
5565
5566 # Check whether --with-boot-libs was given.
5567 if test "${with_boot_libs+set}" = set; then :
5568   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5569    poststage1_libs=
5570  else
5571    poststage1_libs=$withval
5572  fi
5573 else
5574   poststage1_libs=$with_host_libstdcxx
5575 fi
5576
5577
5578
5579 # Linker flags to use for stage2 and later builds.
5580
5581 # Check whether --with-boot-ldflags was given.
5582 if test "${with_boot_ldflags+set}" = set; then :
5583   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5584    poststage1_ldflags=
5585  else
5586    poststage1_ldflags=$withval
5587  fi
5588 else
5589   poststage1_ldflags=
5590  # In stages 2 and 3, default to linking libstdc++ and libgcc
5591  # statically.  But if the user explicitly specified the libraries to
5592  # use, trust that they are doing what they want.
5593  if test "$poststage1_libs" = ""; then
5594    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5595  fi
5596 fi
5597
5598
5599
5600 # Check for PPL
5601 ppllibs=
5602 pplinc=
5603 pwllib=
5604
5605
5606 # Check whether --with-ppl was given.
5607 if test "${with_ppl+set}" = set; then :
5608   withval=$with_ppl;
5609 fi
5610
5611
5612 # Check whether --with-ppl-include was given.
5613 if test "${with_ppl_include+set}" = set; then :
5614   withval=$with_ppl_include;
5615 fi
5616
5617
5618 # Check whether --with-ppl-lib was given.
5619 if test "${with_ppl_lib+set}" = set; then :
5620   withval=$with_ppl_lib;
5621 fi
5622
5623
5624 # Check whether --enable-ppl-version-check was given.
5625 if test "${enable_ppl_version_check+set}" = set; then :
5626   enableval=$enable_ppl_version_check;
5627 fi
5628
5629
5630 case $with_ppl in
5631   yes | no | "")
5632     ;;
5633   *)
5634     ppllibs="-L$with_ppl/lib"
5635     pplinc="-I$with_ppl/include $pplinc"
5636     if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5637       with_ppl=yes
5638     else
5639       as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5640     fi
5641     ;;
5642 esac
5643
5644 if test x"$with_ppl_include" != x; then
5645   pplinc="-I$with_ppl_include $pplinc"
5646   with_ppl=yes
5647 fi
5648
5649 if test "x$with_ppl_lib" != x; then
5650   ppllibs="-L$with_ppl_lib"
5651   with_ppl=yes
5652 fi
5653
5654 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5655   if test x"$enable_watchdog" = xyes; then
5656     pwllib="-lpwl"
5657   fi
5658   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5659   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5660   enable_ppl_version_check=no
5661   with_ppl=yes
5662 fi
5663
5664 if test "x$with_ppl" != xno; then
5665   if test "x$pwllib" = x; then
5666     saved_LIBS="$LIBS"
5667     LIBS="$LIBS $ppllibs -lstdc++ -lm"
5668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5669 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5670 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   ac_check_lib_save_LIBS=$LIBS
5674 LIBS="-lpwl  $LIBS"
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h.  */
5677
5678 /* Override any GCC internal prototype to avoid an error.
5679    Use char because int might match the return type of a GCC
5680    builtin and then its argument prototype would still apply.  */
5681 #ifdef __cplusplus
5682 extern "C"
5683 #endif
5684 char PWL_handle_timeout ();
5685 int
5686 main ()
5687 {
5688 return PWL_handle_timeout ();
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_link "$LINENO"; then :
5694   ac_cv_lib_pwl_PWL_handle_timeout=yes
5695 else
5696   ac_cv_lib_pwl_PWL_handle_timeout=no
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext \
5699     conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5703 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5704 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5705   pwllib="-lpwl"
5706 fi
5707
5708     LIBS="$saved_LIBS"
5709   fi
5710
5711   ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5712
5713   if test "$enable_ppl_version_check" != no; then
5714     saved_CFLAGS="$CFLAGS"
5715     CFLAGS="$CFLAGS $pplinc $gmpinc"
5716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5717 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h.  */
5720 #include "ppl_c.h"
5721 int
5722 main ()
5723 {
5724
5725     #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5726     choke me
5727     #endif
5728
5729   ;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735 $as_echo "yes" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741     CFLAGS="$saved_CFLAGS"
5742   fi
5743 fi
5744
5745 # Flags needed for PPL
5746
5747
5748
5749
5750 # Check for CLOOG
5751
5752
5753
5754 # Check whether --with-cloog was given.
5755 if test "${with_cloog+set}" = set; then :
5756   withval=$with_cloog;
5757 fi
5758
5759
5760 # Check whether --with-cloog-include was given.
5761 if test "${with_cloog_include+set}" = set; then :
5762   withval=$with_cloog_include;
5763 fi
5764
5765
5766 # Check whether --with-cloog-lib was given.
5767 if test "${with_cloog_lib+set}" = set; then :
5768   withval=$with_cloog_lib;
5769 fi
5770
5771
5772   # Check whether --enable-cloog-backend was given.
5773 if test "${enable_cloog_backend+set}" = set; then :
5774   enableval=$enable_cloog_backend;  if   test "x${enableval}" = "xisl"; then
5775         cloog_backend=isl
5776       elif test "x${enableval}" = "xppl"; then
5777         cloog_backend=ppl
5778       else
5779         cloog_backend=ppl-legacy
5780       fi
5781 else
5782   cloog_backend=ppl-legacy
5783 fi
5784
5785   # Check whether --enable-cloog-version-check was given.
5786 if test "${enable_cloog_version_check+set}" = set; then :
5787   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5788 else
5789   ENABLE_CLOOG_CHECK=yes
5790 fi
5791
5792
5793   # Initialize clooglibs and clooginc.
5794   case $with_cloog in
5795     no)
5796       clooglibs=
5797       clooginc=
5798       ;;
5799     "" | yes)
5800       ;;
5801     *)
5802       clooglibs="-L$with_cloog/lib"
5803       clooginc="-I$with_cloog/include"
5804       ;;
5805   esac
5806   if test "x${with_cloog_include}" != x ; then
5807     clooginc="-I$with_cloog_include"
5808   fi
5809   if test "x${with_cloog_lib}" != x; then
5810     clooglibs="-L$with_cloog_lib"
5811   fi
5812
5813
5814
5815
5816
5817 if test "x$with_ppl" = "xno"; then
5818
5819
5820
5821   if test "x${with_cloog}" = xno; then
5822     graphite_requested=no
5823   elif test "x${with_cloog}" != x \
5824     || test "x${with_cloog_include}" != x \
5825     || test "x${with_cloog_lib}" != x ; then
5826     graphite_requested=yes
5827   else
5828     graphite_requested=no
5829   fi
5830
5831
5832   if test "${graphite_requested}" = yes; then
5833     as_fn_error "Unable to find a usable PPL.  See config.log for details." "$LINENO" 5
5834   fi
5835   with_cloog=no
5836 fi
5837 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5838   && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5839   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5840   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5841 fi
5842 if test "x$with_cloog" != "xno"; then
5843
5844
5845
5846   _cloog_saved_CFLAGS=$CFLAGS
5847   _cloog_saved_CPPFLAGS=$CPPFLAGS
5848   _cloog_saved_LDFLAGS=$LDFLAGS
5849   _cloog_saved_LIBS=$LIBS
5850
5851   _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5852
5853     CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5854   CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5855   LDFLAGS="${LDFLAGS} ${clooglibs}"
5856
5857   case $cloog_backend in
5858     "ppl-legacy")
5859     CFLAGS="${CFLAGS} ${pplinc}"
5860     LDFLAGS="${LDFLAGS} ${ppllibs}"
5861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5862 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5863 if test "${gcc_cv_cloog_type+set}" = set; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   LIBS="-lcloog ${_cloog_saved_LIBS}"
5867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869 #include "cloog/cloog.h"
5870 int
5871 main ()
5872 {
5873 #ifndef CLOOG_PPL_BACKEND
5874     choke me
5875    #endif
5876   ;
5877   return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_c_try_link "$LINENO"; then :
5881   gcc_cv_cloog_type="PPL Legacy"
5882 else
5883   gcc_cv_cloog_type=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext \
5886     conftest$ac_exeext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5889 $as_echo "$gcc_cv_cloog_type" >&6; }
5890     ;;
5891     "isl")
5892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5893 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5894 if test "${gcc_cv_cloog_type+set}" = set; then :
5895   $as_echo_n "(cached) " >&6
5896 else
5897   LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h.  */
5900 #include "cloog/cloog.h"
5901 int
5902 main ()
5903 {
5904 cloog_version ()
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 if ac_fn_c_try_link "$LINENO"; then :
5910   gcc_cv_cloog_type="ISL"
5911 else
5912   gcc_cv_cloog_type=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext \
5915     conftest$ac_exeext conftest.$ac_ext
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5918 $as_echo "$gcc_cv_cloog_type" >&6; }
5919     ;;
5920     "ppl")
5921     CFLAGS="${CFLAGS} ${pplinc}"
5922     LDFLAGS="${LDFLAGS} ${ppllibs}"
5923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5924 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5925 if test "${gcc_cv_cloog_type+set}" = set; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h.  */
5931 #include "cloog/cloog.h"
5932    #include "cloog/ppl/cloog.h"
5933 int
5934 main ()
5935 {
5936 cloog_version ()
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 if ac_fn_c_try_link "$LINENO"; then :
5942   gcc_cv_cloog_type="PPL"
5943 else
5944   gcc_cv_cloog_type=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext \
5947     conftest$ac_exeext conftest.$ac_ext
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5950 $as_echo "$gcc_cv_cloog_type" >&6; }
5951     ;;
5952     *)
5953       gcc_cv_cloog_type=""
5954   esac
5955
5956   case $gcc_cv_cloog_type in
5957     "PPL Legacy")
5958       clooginc="${clooginc}"
5959       clooglibs="${clooglibs} -lcloog"
5960       cloog_org=no
5961       ;;
5962     "ISL")
5963       clooginc="${clooginc} ${_cloogorginc}"
5964       clooglibs="${clooglibs} -lcloog-isl -lisl"
5965       cloog_org=yes
5966       ;;
5967     "PPL")
5968       clooginc="${clooginc} ${_cloogorginc}"
5969       clooglibs="${clooglibs} -lcloog-ppl"
5970       cloog_org=yes
5971       ;;
5972     *)
5973       clooglibs=
5974       clooginc=
5975       cloog_org=
5976       ;;
5977   esac
5978
5979   LIBS=$_cloog_saved_LIBS
5980   CFLAGS=$_cloog_saved_CFLAGS
5981   CPPFLAGS=$_cloog_saved_CPPFLAGS
5982   LDFLAGS=$_cloog_saved_LDFLAGS
5983
5984
5985
5986
5987
5988   if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5989     _cloog_saved_CFLAGS=$CFLAGS
5990     _cloog_saved_LDFLAGS=$LDFLAGS
5991
5992     CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5993     LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5994
5995     if test "${cloog_org}" = yes ; then
5996       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5997 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5998 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h.  */
6003 #include "cloog/cloog.h"
6004 int
6005 main ()
6006 {
6007 #if CLOOG_VERSION_MAJOR != 0 \
6008     || CLOOG_VERSION_MINOR != 16 \
6009     || CLOOG_VERSION_REVISION < 1
6010     choke me
6011    #endif
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017   gcc_cv_cloog_ct_0_14_0=yes
6018 else
6019   gcc_cv_cloog_ct_0_14_0=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6024 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6025     elif test "${cloog_org}" = no ; then
6026       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
6027 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
6028 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h.  */
6033 #include "cloog/cloog.h"
6034 int
6035 main ()
6036 {
6037 #if CLOOG_VERSION_MAJOR != 0 \
6038     || CLOOG_VERSION_MINOR != 15 \
6039     || CLOOG_VERSION_REVISION < 5
6040     choke me
6041    #endif
6042   ;
6043   return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"; then :
6047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h.  */
6049 #include "cloog/cloog.h"
6050 int
6051 main ()
6052 {
6053 #if CLOOG_VERSION_MAJOR != 0 \
6054     || CLOOG_VERSION_MINOR != 15 \
6055     || CLOOG_VERSION_REVISION < 9
6056     choke me
6057    #endif
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063   gcc_cv_cloog_ct_0_15_5=yes
6064 else
6065   gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 else
6069   gcc_cv_cloog_ct_0_15_5=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6074 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6075     fi
6076
6077     CFLAGS=$_cloog_saved_CFLAGS
6078     LDFLAGS=$_cloog_saved_LDFLAGS
6079   fi
6080
6081
6082
6083
6084
6085
6086
6087   if test "x${with_cloog}" = xno; then
6088     graphite_requested=no
6089   elif test "x${with_cloog}" != x \
6090     || test "x${with_cloog_include}" != x \
6091     || test "x${with_cloog_lib}" != x ; then
6092     graphite_requested=yes
6093   else
6094     graphite_requested=no
6095   fi
6096
6097
6098
6099   if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6100     || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6101     || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6102     clooglibs=
6103     clooginc=
6104   fi
6105
6106   if test "${graphite_requested}" = yes \
6107     && test "x${clooglibs}" = x \
6108     && test "x${clooginc}" = x ; then
6109
6110     as_fn_error "Unable to find a usable CLooG.  See config.log for details." "$LINENO" 5
6111   fi
6112
6113
6114 fi
6115
6116 # Check for LTO support.
6117 # Check whether --enable-lto was given.
6118 if test "${enable_lto+set}" = set; then :
6119   enableval=$enable_lto; enable_lto=$enableval
6120 else
6121   enable_lto=yes; default_enable_lto=yes
6122 fi
6123
6124
6125
6126
6127
6128 target_elf=no
6129 case $target in
6130   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6131   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6132   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6133     target_elf=no
6134     ;;
6135   *)
6136     target_elf=yes
6137     ;;
6138 esac
6139
6140 if test $target_elf = yes; then :
6141   # ELF platforms build the lto-plugin always.
6142   build_lto_plugin=yes
6143
6144 else
6145   if test x"$default_enable_lto" = x"yes" ; then
6146     case $target in
6147       *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6148       # On other non-ELF platforms, LTO has yet to be validated.
6149       *) enable_lto=no ;;
6150     esac
6151   else
6152   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6153   # It would also be nice to check the binutils support, but we don't
6154   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
6155   # warn during gcc/ subconfigure; unless you're bootstrapping with
6156   # -flto it won't be needed until after installation anyway.
6157     case $target in
6158       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6159       *) if test x"$enable_lto" = x"yes"; then
6160         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6161         fi
6162       ;;
6163     esac
6164   fi
6165   # Among non-ELF, only Windows platforms support the lto-plugin so far.
6166   # Build it unless LTO was explicitly disabled.
6167   case $target in
6168     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6169     *) ;;
6170   esac
6171
6172 fi
6173
6174
6175
6176 # By default, C is the only stage 1 language.
6177 stage1_languages=,c,
6178
6179 # Target libraries that we bootstrap.
6180 bootstrap_target_libs=,target-libgcc,
6181
6182 # Figure out what language subdirectories are present.
6183 # Look if the user specified --enable-languages="..."; if not, use
6184 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6185 # go away some day.
6186 # NB:  embedded tabs in this IF block -- do not untabify
6187 if test -d ${srcdir}/gcc; then
6188   if test x"${enable_languages+set}" != xset; then
6189     if test x"${LANGUAGES+set}" = xset; then
6190       enable_languages="${LANGUAGES}"
6191         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6192     else
6193       enable_languages=all
6194     fi
6195   else
6196     if test x"${enable_languages}" = x ||
6197        test x"${enable_languages}" = xyes;
6198        then
6199       echo configure.in: --enable-languages needs at least one language argument 1>&2
6200       exit 1
6201     fi
6202   fi
6203   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
6204
6205   # 'f95' is the old name for the 'fortran' language. We issue a warning
6206   # and make the substitution.
6207   case ,${enable_languages}, in
6208     *,f95,*)
6209       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6210       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6211       ;;
6212   esac
6213
6214   # If bootstrapping, then using --enable-build-with-cxx or
6215   # --enable-build-poststage1-with-cxx requires enabling C++.
6216   case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6217     *,c++,*:*:*) ;;
6218     *:*,yes,*:yes)
6219       if test -f ${srcdir}/gcc/cp/config-lang.in; then
6220         enable_languages="${enable_languages},c++"
6221       else
6222         as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6223       fi
6224       ;;
6225   esac
6226
6227   # First scan to see if an enabled language requires some other language.
6228   # We assume that a given config-lang.in will list all the language
6229   # front ends it requires, even if some are required indirectly.
6230   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6231     case ${lang_frag} in
6232       ..) ;;
6233       # The odd quoting in the next line works around
6234       # an apparent bug in bash 1.12 on linux.
6235       ${srcdir}/gcc/[*]/config-lang.in) ;;
6236       *)
6237         # From the config-lang.in, get $language, $lang_requires, and
6238         # $lang_requires_boot_languages.
6239         language=
6240         lang_requires=
6241         lang_requires_boot_languages=
6242         . ${lang_frag}
6243         for other in ${lang_requires} ${lang_requires_boot_languages}; do
6244           case ,${enable_languages}, in
6245             *,$other,*) ;;
6246             *,all,*) ;;
6247             *,$language,*)
6248               echo " \`$other' language required by \`$language'; enabling" 1>&2
6249               enable_languages="${enable_languages},${other}"
6250               ;;
6251           esac
6252         done
6253         for other in ${lang_requires_boot_languages} ; do
6254           if test "$other" != "c"; then
6255             case ,${enable_stage1_languages}, in
6256               *,$other,*) ;;
6257               *,all,*) ;;
6258               *)
6259                 case ,${enable_languages}, in
6260                   *,$language,*)
6261                     echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6262                     enable_stage1_languages="$enable_stage1_languages,${other}"
6263                     ;;
6264                 esac
6265                 ;;
6266             esac
6267           fi
6268         done
6269         ;;
6270     esac
6271   done
6272
6273   new_enable_languages=,c,
6274
6275   # If LTO is enabled, add the LTO front end.
6276   extra_host_libiberty_configure_flags=
6277   if test "$enable_lto" = "yes" ; then
6278     case ,${enable_languages}, in
6279       *,lto,*) ;;
6280       *) enable_languages="${enable_languages},lto" ;;
6281     esac
6282     if test "${build_lto_plugin}" = "yes" ; then
6283       configdirs="$configdirs lto-plugin"
6284       extra_host_libiberty_configure_flags=--enable-shared
6285     fi
6286   fi
6287
6288
6289   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6290   potential_languages=,c,
6291
6292   enabled_target_libs=
6293   disabled_target_libs=
6294
6295   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6296     case ${lang_frag} in
6297       ..) ;;
6298       # The odd quoting in the next line works around
6299       # an apparent bug in bash 1.12 on linux.
6300       ${srcdir}/gcc/[*]/config-lang.in) ;;
6301       *)
6302         # From the config-lang.in, get $language, $target_libs,
6303         # $lang_dirs, $boot_language, and $build_by_default
6304         language=
6305         target_libs=
6306         lang_dirs=
6307         subdir_requires=
6308         boot_language=no
6309         build_by_default=yes
6310         . ${lang_frag}
6311         if test x${language} = x; then
6312           echo "${lang_frag} doesn't set \$language." 1>&2
6313           exit 1
6314         fi
6315
6316         if test "$language" = "c++"; then
6317           if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6318              || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6319             boot_language=yes
6320           fi
6321         fi
6322
6323         case ,${enable_languages}, in
6324           *,${language},*)
6325             # Language was explicitly selected; include it.
6326             add_this_lang=yes
6327             ;;
6328           *,all,*)
6329             # 'all' was selected, select it if it is a default language
6330             add_this_lang=${build_by_default}
6331             ;;
6332           *)
6333             add_this_lang=no
6334             ;;
6335         esac
6336
6337         # Disable languages that need other directories if these aren't available.
6338         for i in $subdir_requires; do
6339           test -f "$srcdir/gcc/$i/config-lang.in" && continue
6340           case ,${enable_languages}, in
6341             *,${language},*)
6342               # Specifically requested language; tell them.
6343               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6344               ;;
6345             *)
6346               # Silently disable.
6347               add_this_lang=unsupported
6348               ;;
6349           esac
6350         done
6351
6352         # Disable Ada if no preexisting GNAT is available.
6353         case ,${enable_languages},:${language}:${have_gnat} in
6354           *,${language},*:ada:no)
6355             # Specifically requested language; tell them.
6356             as_fn_error "GNAT is required to build $language" "$LINENO" 5
6357             ;;
6358           *:ada:no)
6359             # Silently disable.
6360             add_this_lang=unsupported
6361             ;;
6362         esac
6363
6364         # Disable a language that is unsupported by the target.
6365         case " $unsupported_languages " in
6366           *" $language "*)
6367             add_this_lang=unsupported
6368             ;;
6369         esac
6370
6371         case $add_this_lang in
6372           unsupported)
6373             # Remove language-dependent dirs.
6374             disabled_target_libs="$disabled_target_libs $target_libs"
6375             noconfigdirs="$noconfigdirs $lang_dirs"
6376             ;;
6377           no)
6378             # Remove language-dependent dirs; still show language as supported.
6379             disabled_target_libs="$disabled_target_libs $target_libs"
6380             noconfigdirs="$noconfigdirs $lang_dirs"
6381             potential_languages="${potential_languages}${language},"
6382             ;;
6383           yes)
6384             new_enable_languages="${new_enable_languages}${language},"
6385             potential_languages="${potential_languages}${language},"
6386             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6387             enabled_target_libs="$enabled_target_libs $target_libs"
6388             case "${boot_language}:,$enable_stage1_languages," in
6389               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6390                 # Add to (comma-separated) list of stage 1 languages.
6391                 case ",$stage1_languages," in
6392                   *,$language,* | ,yes, | ,all,) ;;
6393                   *) stage1_languages="${stage1_languages}${language}," ;;
6394                 esac
6395                 # We need to bootstrap any supporting libraries.
6396                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6397                 ;;
6398             esac
6399             ;;
6400         esac
6401         ;;
6402     esac
6403   done
6404
6405   # Add target libraries which are only needed for disabled languages
6406   # to noconfigdirs.
6407   if test -n "$disabled_target_libs"; then
6408     for dir in $disabled_target_libs; do
6409       case " $enabled_target_libs " in
6410       *" ${dir} "*) ;;
6411       *) noconfigdirs="$noconfigdirs $dir" ;;
6412       esac
6413     done
6414   fi
6415
6416   # Check whether --enable-stage1-languages was given.
6417 if test "${enable_stage1_languages+set}" = set; then :
6418   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6419     ,no,|,,)
6420       # Set it to something that will have no effect in the loop below
6421       enable_stage1_languages=c ;;
6422     ,yes,)
6423       enable_stage1_languages=`echo $new_enable_languages | \
6424         sed -e "s/^,//" -e "s/,$//" ` ;;
6425     *,all,*)
6426       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6427         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6428   esac
6429
6430   # Add "good" languages from enable_stage1_languages to stage1_languages,
6431   # while "bad" languages go in missing_languages.  Leave no duplicates.
6432   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6433     case $potential_languages in
6434       *,$i,*)
6435         case $stage1_languages in
6436           *,$i,*) ;;
6437           *) stage1_languages="$stage1_languages$i," ;;
6438         esac ;;
6439       *)
6440         case $missing_languages in
6441           *,$i,*) ;;
6442           *) missing_languages="$missing_languages$i," ;;
6443         esac ;;
6444      esac
6445   done
6446 fi
6447
6448
6449   # Remove leading/trailing commas that were added for simplicity
6450   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6451   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6452   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6453   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6454
6455   if test "x$missing_languages" != x; then
6456     as_fn_error "
6457 The following requested languages could not be built: ${missing_languages}
6458 Supported languages are: ${potential_languages}" "$LINENO" 5
6459   fi
6460   if test "x$new_enable_languages" != "x$enable_languages"; then
6461     echo The following languages will be built: ${new_enable_languages}
6462     enable_languages="$new_enable_languages"
6463   fi
6464
6465
6466   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6467 fi
6468
6469 # Handle --disable-<component> generically.
6470 for dir in $configdirs $build_configdirs $target_configdirs ; do
6471   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6472   varname=`echo $dirname | sed -e s/+/_/g`
6473   if eval test x\${enable_${varname}} "=" xno ; then
6474     noconfigdirs="$noconfigdirs $dir"
6475   fi
6476 done
6477
6478 # Check for Boehm's garbage collector
6479 # Check whether --enable-objc-gc was given.
6480 if test "${enable_objc_gc+set}" = set; then :
6481   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6482   *,objc,*:*:yes:*target-boehm-gc*)
6483     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6484     ;;
6485 esac
6486 fi
6487
6488
6489 # Make sure we only build Boehm's garbage collector if required.
6490 case ,${enable_languages},:${enable_objc_gc} in
6491   *,objc,*:yes)
6492     # Keep target-boehm-gc if requested for Objective-C.
6493     ;;
6494   *)
6495     # Otherwise remove target-boehm-gc depending on target-libjava.
6496     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6497       noconfigdirs="$noconfigdirs target-boehm-gc"
6498     fi
6499     ;;
6500 esac
6501
6502 # Disable libitm if we're not building C++
6503 case ,${enable_languages}, in
6504   *,c++,*) ;;
6505   *)
6506     noconfigdirs="$noconfigdirs target-libitm"
6507     ;;
6508 esac
6509
6510 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6511 # $build_configdirs and $target_configdirs.
6512 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6513
6514 notsupp=""
6515 for dir in . $skipdirs $noconfigdirs ; do
6516   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6517   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6519     if test -r $srcdir/$dirname/configure ; then
6520       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6521         true
6522       else
6523         notsupp="$notsupp $dir"
6524       fi
6525     fi
6526   fi
6527   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6528     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6529     if test -r $srcdir/$dirname/configure ; then
6530       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6531         true
6532       else
6533         notsupp="$notsupp $dir"
6534       fi
6535     fi
6536   fi
6537   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6538     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6539     if test -r $srcdir/$dirname/configure ; then
6540       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6541         true
6542       else
6543         notsupp="$notsupp $dir"
6544       fi
6545     fi
6546   fi
6547 done
6548
6549 # Quietly strip out all directories which aren't configurable in this tree.
6550 # This relies on all configurable subdirectories being autoconfiscated, which
6551 # is now the case.
6552 build_configdirs_all="$build_configdirs"
6553 build_configdirs=
6554 for i in ${build_configdirs_all} ; do
6555   j=`echo $i | sed -e s/build-//g`
6556   if test -f ${srcdir}/$j/configure ; then
6557     build_configdirs="${build_configdirs} $i"
6558   fi
6559 done
6560
6561 configdirs_all="$configdirs"
6562 configdirs=
6563 for i in ${configdirs_all} ; do
6564   if test -f ${srcdir}/$i/configure ; then
6565     configdirs="${configdirs} $i"
6566   fi
6567 done
6568
6569 target_configdirs_all="$target_configdirs"
6570 target_configdirs=
6571 for i in ${target_configdirs_all} ; do
6572   j=`echo $i | sed -e s/target-//g`
6573   if test -f ${srcdir}/$j/configure ; then
6574     target_configdirs="${target_configdirs} $i"
6575   fi
6576 done
6577
6578 # Produce a warning message for the subdirs we can't configure.
6579 # This isn't especially interesting in the Cygnus tree, but in the individual
6580 # FSF releases, it's important to let people know when their machine isn't
6581 # supported by the one or two programs in a package.
6582
6583 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6584   # If $appdirs is non-empty, at least one of those directories must still
6585   # be configured, or we error out.  (E.g., if the gas release supports a
6586   # specified target in some subdirs but not the gas subdir, we shouldn't
6587   # pretend that all is well.)
6588   if test -n "$appdirs" ; then
6589     for dir in $appdirs ; do
6590       if test -r $dir/Makefile.in ; then
6591         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6592           appdirs=""
6593           break
6594         fi
6595         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6596           appdirs=""
6597           break
6598         fi
6599       fi
6600     done
6601     if test -n "$appdirs" ; then
6602       echo "*** This configuration is not supported by this package." 1>&2
6603       exit 1
6604     fi
6605   fi
6606   # Okay, some application will build, or we don't care to check.  Still
6607   # notify of subdirs not getting built.
6608   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6609   echo "    ${notsupp}" 1>&2
6610   echo "    (Any other directories should still work fine.)" 1>&2
6611 fi
6612
6613 case "$host" in
6614   *msdosdjgpp*)
6615     enable_gdbtk=no ;;
6616 esac
6617
6618 # To find our prefix, in gcc_cv_tool_prefix.
6619
6620 # The user is always right.
6621 if test "${PATH_SEPARATOR+set}" != set; then
6622   echo "#! /bin/sh" >conf$$.sh
6623   echo  "exit 0"   >>conf$$.sh
6624   chmod +x conf$$.sh
6625   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6626     PATH_SEPARATOR=';'
6627   else
6628     PATH_SEPARATOR=:
6629   fi
6630   rm -f conf$$.sh
6631 fi
6632
6633
6634
6635 if test "x$exec_prefix" = xNONE; then
6636         if test "x$prefix" = xNONE; then
6637                 gcc_cv_tool_prefix=$ac_default_prefix
6638         else
6639                 gcc_cv_tool_prefix=$prefix
6640         fi
6641 else
6642         gcc_cv_tool_prefix=$exec_prefix
6643 fi
6644
6645 # If there is no compiler in the tree, use the PATH only.  In any
6646 # case, if there is no compiler in the tree nobody should use
6647 # AS_FOR_TARGET and LD_FOR_TARGET.
6648 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6649     gcc_version=`cat $srcdir/gcc/BASE-VER`
6650     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6651     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6652     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6653     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6654     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6655     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6656 else
6657     gcc_cv_tool_dirs=
6658 fi
6659
6660 if test x$build = x$target && test -n "$md_exec_prefix"; then
6661         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6662 fi
6663
6664
6665
6666 copy_dirs=
6667
6668
6669 # Check whether --with-build-sysroot was given.
6670 if test "${with_build_sysroot+set}" = set; then :
6671   withval=$with_build_sysroot; if test x"$withval" != x ; then
6672      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6673    fi
6674 else
6675   SYSROOT_CFLAGS_FOR_TARGET=
6676 fi
6677
6678
6679
6680
6681 # Check whether --with-debug-prefix-map was given.
6682 if test "${with_debug_prefix_map+set}" = set; then :
6683   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6684      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6685      for debug_map in $withval; do
6686        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6687      done
6688    fi
6689 else
6690   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6691 fi
6692
6693
6694
6695 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6696 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6697 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6698 # We want to ensure that TARGET libraries (which we know are built with
6699 # gcc) are built with "-O2 -g", so include those options when setting
6700 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6701 if test "x$CFLAGS_FOR_TARGET" = x; then
6702   CFLAGS_FOR_TARGET=$CFLAGS
6703   case " $CFLAGS " in
6704     *" -O2 "*) ;;
6705     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6706   esac
6707   case " $CFLAGS " in
6708     *" -g "* | *" -g3 "*) ;;
6709     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6710   esac
6711 fi
6712
6713
6714 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6715   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6716   case " $CXXFLAGS " in
6717     *" -O2 "*) ;;
6718     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6719   esac
6720   case " $CXXFLAGS " in
6721     *" -g "* | *" -g3 "*) ;;
6722     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6723   esac
6724 fi
6725
6726
6727
6728
6729 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6730 # the named directory are copied to $(tooldir)/sys-include.
6731 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6732   if test x${is_cross_compiler} = xno ; then
6733     echo 1>&2 '***' --with-headers is only supported when cross compiling
6734     exit 1
6735   fi
6736   if test x"${with_headers}" != xyes ; then
6737     x=${gcc_cv_tool_prefix}
6738     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6739   fi
6740 fi
6741
6742 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6743 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6744 # are permitted.
6745 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6746   if test x${is_cross_compiler} = xno ; then
6747     echo 1>&2 '***' --with-libs is only supported when cross compiling
6748     exit 1
6749   fi
6750   if test x"${with_libs}" != xyes ; then
6751     # Copy the libraries in reverse order, so that files in the first named
6752     # library override files in subsequent libraries.
6753     x=${gcc_cv_tool_prefix}
6754     for l in ${with_libs}; do
6755       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6756     done
6757   fi
6758 fi
6759
6760 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6761 #
6762 # This is done by determining whether or not the appropriate directory
6763 # is available, and by checking whether or not specific configurations
6764 # have requested that this magic not happen.
6765 #
6766 # The command line options always override the explicit settings in
6767 # configure.in, and the settings in configure.in override this magic.
6768 #
6769 # If the default for a toolchain is to use GNU as and ld, and you don't
6770 # want to do that, then you should use the --without-gnu-as and
6771 # --without-gnu-ld options for the configure script.  Similarly, if
6772 # the default is to use the included zlib and you don't want to do that,
6773 # you should use the --with-system-zlib option for the configure script.
6774
6775 if test x${use_gnu_as} = x &&
6776    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6777   with_gnu_as=yes
6778   extra_host_args="$extra_host_args --with-gnu-as"
6779 fi
6780
6781 if test x${use_gnu_ld} = x &&
6782    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6783   with_gnu_ld=yes
6784   extra_host_args="$extra_host_args --with-gnu-ld"
6785 fi
6786
6787 if test x${use_included_zlib} = x &&
6788    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6789   :
6790 else
6791   with_system_zlib=yes
6792   extra_host_args="$extra_host_args --with-system-zlib"
6793 fi
6794
6795 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6796 # can detect this case.
6797
6798 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6799   with_newlib=yes
6800   extra_host_args="$extra_host_args --with-newlib"
6801 fi
6802
6803 # Handle ${copy_dirs}
6804 set fnord ${copy_dirs}
6805 shift
6806 while test $# != 0 ; do
6807   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6808     :
6809   else
6810     echo Copying $1 to $2
6811
6812     # Use the install script to create the directory and all required
6813     # parent directories.
6814     if test -d $2 ; then
6815       :
6816     else
6817       echo >config.temp
6818       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6819     fi
6820
6821     # Copy the directory, assuming we have tar.
6822     # FIXME: Should we use B in the second tar?  Not all systems support it.
6823     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6824
6825     # It is the responsibility of the user to correctly adjust all
6826     # symlinks.  If somebody can figure out how to handle them correctly
6827     # here, feel free to add the code.
6828
6829     echo $1 > $2/COPIED
6830   fi
6831   shift; shift
6832 done
6833
6834 # Determine a target-dependent exec_prefix that the installed
6835 # gcc will search in.  Keep this list sorted by triplet, with
6836 # the *-*-osname triplets last.
6837 md_exec_prefix=
6838 case "${target}" in
6839   i[34567]86-pc-msdosdjgpp*)
6840     md_exec_prefix=/dev/env/DJDIR/bin
6841     ;;
6842   *-*-hpux* | \
6843   *-*-nto-qnx* | \
6844   *-*-solaris2*)
6845     md_exec_prefix=/usr/ccs/bin
6846     ;;
6847 esac
6848
6849 extra_arflags_for_target=
6850 extra_nmflags_for_target=
6851 extra_ranlibflags_for_target=
6852 target_makefile_frag=/dev/null
6853 case "${target}" in
6854   spu-*-*)
6855     target_makefile_frag="config/mt-spu"
6856     ;;
6857   mips*-sde-elf*)
6858     target_makefile_frag="config/mt-sde"
6859     ;;
6860   mipsisa*-*-elfoabi*)
6861     target_makefile_frag="config/mt-mips-elfoabi"
6862     ;;
6863   mips*-*-*linux* | mips*-*-gnu*)
6864     target_makefile_frag="config/mt-mips-gnu"
6865     ;;
6866   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6867     target_makefile_frag="config/mt-gnu"
6868     ;;
6869   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6870     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6871     # commands to handle both 32-bit and 64-bit objects.  These flags are
6872     # harmless if we're using GNU nm or ar.
6873     extra_arflags_for_target=" -X32_64"
6874     extra_nmflags_for_target=" -B -X32_64"
6875     ;;
6876   *-*-darwin[3-9]*)
6877     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6878     extra_ranlibflags_for_target=" -c"
6879     ;;
6880 esac
6881
6882 alphaieee_frag=/dev/null
6883 case $target in
6884   alpha*-*-*)
6885     # This just makes sure to use the -mieee option to build target libs.
6886     # This should probably be set individually by each library.
6887     alphaieee_frag="config/mt-alphaieee"
6888     ;;
6889 esac
6890
6891 # If --enable-target-optspace always use -Os instead of -O2 to build
6892 # the target libraries, similarly if it is not specified, use -Os
6893 # on selected platforms.
6894 ospace_frag=/dev/null
6895 case "${enable_target_optspace}:${target}" in
6896   yes:*)
6897     ospace_frag="config/mt-ospace"
6898     ;;
6899   :d30v-*)
6900     ospace_frag="config/mt-d30v"
6901     ;;
6902   :m32r-* | :d10v-* | :fr30-*)
6903     ospace_frag="config/mt-ospace"
6904     ;;
6905   no:* | :*)
6906     ;;
6907   *)
6908     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6909     ;;
6910 esac
6911
6912 # Default to using --with-stabs for certain targets.
6913 if test x${with_stabs} = x ; then
6914   case "${target}" in
6915   mips*-*-irix[56]*)
6916     ;;
6917   mips*-*-* | alpha*-*-osf*)
6918     with_stabs=yes;
6919     extra_host_args="${extra_host_args} --with-stabs"
6920     ;;
6921   esac
6922 fi
6923
6924 # Some systems (e.g., one of the i386-aix systems the gas testers are
6925 # using) don't handle "\$" correctly, so don't use it here.
6926 tooldir='${exec_prefix}'/${target_noncanonical}
6927 build_tooldir=${tooldir}
6928
6929 # Create a .gdbinit file which runs the one in srcdir
6930 # and tells GDB to look there for source files.
6931
6932 if test -r ${srcdir}/.gdbinit ; then
6933   case ${srcdir} in
6934     .) ;;
6935     *) cat > ./.gdbinit <<EOF
6936 # ${NO_EDIT}
6937 dir ${srcdir}
6938 dir .
6939 source ${srcdir}/.gdbinit
6940 EOF
6941     ;;
6942   esac
6943 fi
6944
6945 # Make sure that the compiler is able to generate an executable.  If it
6946 # can't, we are probably in trouble.  We don't care whether we can run the
6947 # executable--we might be using a cross compiler--we only care whether it
6948 # can be created.  At this point the main configure script has set CC.
6949 we_are_ok=no
6950 echo "int main () { return 0; }" > conftest.c
6951 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6952 if test $? = 0 ; then
6953   if test -s conftest || test -s conftest.exe ; then
6954     we_are_ok=yes
6955   fi
6956 fi
6957 case $we_are_ok in
6958   no)
6959     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6960     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6961     rm -f conftest*
6962     exit 1
6963     ;;
6964 esac
6965 rm -f conftest*
6966
6967 # Decide which environment variable is used to find dynamic libraries.
6968 case "${host}" in
6969   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6970   *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6971   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6972   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6973 esac
6974
6975 # On systems where the dynamic library environment variable is PATH,
6976 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6977 # built executables to PATH.
6978 if test "$RPATH_ENVVAR" = PATH; then
6979   GCC_SHLIB_SUBDIR=/shlib
6980 else
6981   GCC_SHLIB_SUBDIR=
6982 fi
6983
6984 # Record target_configdirs and the configure arguments for target and
6985 # build configuration in Makefile.
6986 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6987 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6988
6989 # If we are building libgomp, bootstrap it.
6990 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6991   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6992 fi
6993
6994 # Determine whether gdb needs tk/tcl or not.
6995 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6996 # and in that case we want gdb to be built without tk.  Ugh!
6997 # In fact I believe gdb is the *only* package directly dependent on tk,
6998 # so we should be able to put the 'maybe's in unconditionally and
6999 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
7000 # 100% sure that that's safe though.
7001
7002 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7003 case "$enable_gdbtk" in
7004   no)
7005     GDB_TK="" ;;
7006   yes)
7007     GDB_TK="${gdb_tk}" ;;
7008   *)
7009     # Only add the dependency on gdbtk when GDBtk is part of the gdb
7010     # distro.  Eventually someone will fix this and move Insight, nee
7011     # gdbtk to a separate directory.
7012     if test -d ${srcdir}/gdb/gdbtk ; then
7013       GDB_TK="${gdb_tk}"
7014     else
7015       GDB_TK=""
7016     fi
7017     ;;
7018 esac
7019 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7020 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7021
7022 # Strip out unwanted targets.
7023
7024 # While at that, we remove Makefiles if we were started for recursive
7025 # configuration, so that the top-level Makefile reconfigures them,
7026 # like we used to do when configure itself was recursive.
7027
7028 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
7029 # but now we're fixing up the Makefile ourselves with the additional
7030 # commands passed to AC_CONFIG_FILES.  Use separate variables
7031 # extrasub-{build,host,target} not because there is any reason to split
7032 # the substitutions up that way, but only to remain below the limit of
7033 # 99 commands in a script, for HP-UX sed.
7034 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7035
7036 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7037   yes:both:*\ gold\ *:*,c++,* | \
7038   yes:yes:*\ gold\ *:*,c++,*) ;;
7039   yes:both:*\ gold\ *:* | \
7040   yes:yes:*\ gold\ *:*)
7041     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7042     ;;
7043 esac
7044
7045 # Adjust the toplevel makefile according to whether bootstrap was selected.
7046 case $enable_bootstrap in
7047   yes)
7048     bootstrap_suffix=bootstrap
7049     BUILD_CONFIG=bootstrap-debug
7050     ;;
7051   no)
7052     bootstrap_suffix=no-bootstrap
7053     BUILD_CONFIG=
7054     ;;
7055 esac
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7058 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7059
7060
7061 # Check whether --with-build-config was given.
7062 if test "${with_build_config+set}" = set; then :
7063   withval=$with_build_config; case $with_build_config in
7064    yes) with_build_config= ;;
7065    no) with_build_config= BUILD_CONFIG= ;;
7066    esac
7067 fi
7068
7069
7070 if test "x${with_build_config}" != x; then
7071   BUILD_CONFIG=$with_build_config
7072 else
7073   case $BUILD_CONFIG in
7074   bootstrap-debug)
7075     if echo "int f (void) { return 0; }" > conftest.c &&
7076        ${CC} -c conftest.c &&
7077        mv conftest.o conftest.o.g0 &&
7078        ${CC} -c -g conftest.c &&
7079        mv conftest.o conftest.o.g &&
7080        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7081       :
7082     else
7083       BUILD_CONFIG=
7084     fi
7085     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7086     ;;
7087   esac
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7090 $as_echo "$BUILD_CONFIG" >&6; }
7091
7092
7093 extrasub_build=
7094 for module in ${build_configdirs} ; do
7095   if test -z "${no_recursion}" \
7096      && test -f ${build_subdir}/${module}/Makefile; then
7097     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7098     rm -f ${build_subdir}/${module}/Makefile
7099   fi
7100   extrasub_build="$extrasub_build
7101 /^@if build-$module\$/d
7102 /^@endif build-$module\$/d
7103 /^@if build-$module-$bootstrap_suffix\$/d
7104 /^@endif build-$module-$bootstrap_suffix\$/d"
7105 done
7106 extrasub_host=
7107 for module in ${configdirs} ; do
7108   if test -z "${no_recursion}"; then
7109     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7110       if test -f ${file}; then
7111         echo 1>&2 "*** removing ${file} to force reconfigure"
7112         rm -f ${file}
7113       fi
7114     done
7115   fi
7116   extrasub_host="$extrasub_host
7117 /^@if $module\$/d
7118 /^@endif $module\$/d
7119 /^@if $module-$bootstrap_suffix\$/d
7120 /^@endif $module-$bootstrap_suffix\$/d"
7121 done
7122 extrasub_target=
7123 for module in ${target_configdirs} ; do
7124   if test -z "${no_recursion}" \
7125      && test -f ${target_subdir}/${module}/Makefile; then
7126     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7127     rm -f ${target_subdir}/${module}/Makefile
7128   fi
7129
7130   # We only bootstrap target libraries listed in bootstrap_target_libs.
7131   case $bootstrap_target_libs in
7132     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7133     *) target_bootstrap_suffix=no-bootstrap ;;
7134   esac
7135
7136   extrasub_target="$extrasub_target
7137 /^@if target-$module\$/d
7138 /^@endif target-$module\$/d
7139 /^@if target-$module-$target_bootstrap_suffix\$/d
7140 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7141 done
7142
7143 # Do the final fixup along with target modules.
7144 extrasub_target="$extrasub_target
7145 /^@if /,/^@endif /d"
7146
7147 # Create the serialization dependencies.  This uses a temporary file.
7148
7149 # Check whether --enable-serial-configure was given.
7150 if test "${enable_serial_configure+set}" = set; then :
7151   enableval=$enable_serial_configure;
7152 fi
7153
7154
7155 case ${enable_serial_configure} in
7156   yes)
7157     enable_serial_build_configure=yes
7158     enable_serial_host_configure=yes
7159     enable_serial_target_configure=yes
7160     ;;
7161 esac
7162
7163 # These force 'configure's to be done one at a time, to avoid problems
7164 # with contention over a shared config.cache.
7165 rm -f serdep.tmp
7166 echo '# serdep.tmp' > serdep.tmp
7167 olditem=
7168 test "x${enable_serial_build_configure}" = xyes &&
7169 for item in ${build_configdirs} ; do
7170   case ${olditem} in
7171     "") ;;
7172     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7173   esac
7174   olditem=${item}
7175 done
7176 olditem=
7177 test "x${enable_serial_host_configure}" = xyes &&
7178 for item in ${configdirs} ; do
7179   case ${olditem} in
7180     "") ;;
7181     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7182   esac
7183   olditem=${item}
7184 done
7185 olditem=
7186 test "x${enable_serial_target_configure}" = xyes &&
7187 for item in ${target_configdirs} ; do
7188   case ${olditem} in
7189     "") ;;
7190     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7191   esac
7192   olditem=${item}
7193 done
7194 serialization_dependencies=serdep.tmp
7195
7196
7197 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
7198 # target, nonopt, and variable assignments.  These are the ones we
7199 # might not want to pass down to subconfigures.  The exception being
7200 # --cache-file=/dev/null, which is used to turn off the use of cache
7201 # files altogether, and which should be passed on to subconfigures.
7202 # Also strip program-prefix, program-suffix, and program-transform-name,
7203 # so that we can pass down a consistent program-transform-name.
7204 baseargs=
7205 tbaseargs=
7206 keep_next=no
7207 skip_next=no
7208 eval "set -- $ac_configure_args"
7209 for ac_arg
7210 do
7211   if test X"$skip_next" = X"yes"; then
7212     skip_next=no
7213     continue
7214   fi
7215   if test X"$keep_next" = X"yes"; then
7216     case $ac_arg in
7217       *\'*)
7218         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7219     esac
7220     baseargs="$baseargs '$ac_arg'"
7221     tbaseargs="$tbaseargs '$ac_arg'"
7222     keep_next=no
7223     continue
7224   fi
7225
7226   # Handle separated arguments.  Based on the logic generated by
7227   # autoconf 2.59.
7228   case $ac_arg in
7229     *=* | --config-cache | -C | -disable-* | --disable-* \
7230       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7231       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7232       | -with-* | --with-* | -without-* | --without-* | --x)
7233       separate_arg=no
7234       ;;
7235     -*)
7236       separate_arg=yes
7237       ;;
7238     *)
7239       separate_arg=no
7240       ;;
7241   esac
7242
7243   skip_targ=no
7244   case $ac_arg in
7245
7246   --with-* | --without-*)
7247     libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7248
7249     case $libopt in
7250     *[-_]include)
7251       lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7252       ;;
7253     *[-_]lib)
7254       lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7255       ;;
7256     *)
7257       lib=$libopt
7258       ;;
7259     esac
7260
7261
7262     case $lib in
7263     mpc | mpfr | gmp | ppl | cloog)
7264       # If we're processing --with-$lib, --with-$lib-include or
7265       # --with-$lib-lib, for one of the libs above, and target is
7266       # different from host, don't pass the current argument to any
7267       # target library's configure.
7268       if test x$is_cross_compiler = xyes; then
7269         skip_targ=yes
7270       fi
7271       ;;
7272     esac
7273     ;;
7274   esac
7275
7276   case "$ac_arg" in
7277     --cache-file=/dev/null | \
7278     -cache-file=/dev/null )
7279       # Handled here to avoid the test to skip args below.
7280       baseargs="$baseargs '$ac_arg'"
7281       tbaseargs="$tbaseargs '$ac_arg'"
7282       # Assert: $separate_arg should always be no.
7283       keep_next=$separate_arg
7284       ;;
7285     --no*)
7286       continue
7287       ;;
7288     --c* | \
7289     --sr* | \
7290     --ho* | \
7291     --bu* | \
7292     --t* | \
7293     --program-* | \
7294     -cache_file* | \
7295     -srcdir* | \
7296     -host* | \
7297     -build* | \
7298     -target* | \
7299     -program-prefix* | \
7300     -program-suffix* | \
7301     -program-transform-name* )
7302       skip_next=$separate_arg
7303       continue
7304       ;;
7305     -*)
7306       # An option.  Add it.
7307       case $ac_arg in
7308         *\'*)
7309           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7310       esac
7311       baseargs="$baseargs '$ac_arg'"
7312       if test X"$skip_targ" = Xno; then
7313         tbaseargs="$tbaseargs '$ac_arg'"
7314       fi
7315       keep_next=$separate_arg
7316       ;;
7317     *)
7318       # Either a variable assignment, or a nonopt (triplet).  Don't
7319       # pass it down; let the Makefile handle this.
7320       continue
7321       ;;
7322   esac
7323 done
7324 # Remove the initial space we just introduced and, as these will be
7325 # expanded by make, quote '$'.
7326 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7327
7328 # Add in --program-transform-name, after --program-prefix and
7329 # --program-suffix have been applied to it.  Autoconf has already
7330 # doubled dollar signs and backslashes in program_transform_name; we want
7331 # the backslashes un-doubled, and then the entire thing wrapped in single
7332 # quotes, because this will be expanded first by make and then by the shell.
7333 # Also, because we want to override the logic in subdir configure scripts to
7334 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7335 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7336 ${program_transform_name}
7337 EOF_SED
7338 gcc_transform_name=`cat conftestsed.out`
7339 rm -f conftestsed.out
7340 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7341 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7342 if test "$silent" = yes; then
7343   baseargs="$baseargs --silent"
7344   tbaseargs="$tbaseargs --silent"
7345 fi
7346 baseargs="$baseargs --disable-option-checking"
7347 tbaseargs="$tbaseargs --disable-option-checking"
7348
7349 # Record and document user additions to sub configure arguments.
7350
7351
7352
7353
7354 # For the build-side libraries, we just need to pretend we're native,
7355 # and not use the same cache file.  Multilibs are neither needed nor
7356 # desired.
7357 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7358
7359 # For host modules, accept cache file option, or specification as blank.
7360 case "${cache_file}" in
7361 "") # empty
7362   cache_file_option="" ;;
7363 /* | [A-Za-z]:[\\/]* ) # absolute path
7364   cache_file_option="--cache-file=${cache_file}" ;;
7365 *) # relative path
7366   cache_file_option="--cache-file=../${cache_file}" ;;
7367 esac
7368
7369 # Host dirs don't like to share a cache file either, horribly enough.
7370 # This seems to be due to autoconf 2.5x stupidity.
7371 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7372
7373 target_configargs="$target_configargs ${tbaseargs}"
7374
7375 # Passing a --with-cross-host argument lets the target libraries know
7376 # whether they are being built with a cross-compiler or being built
7377 # native.  However, it would be better to use other mechanisms to make the
7378 # sorts of decisions they want to make on this basis.  Please consider
7379 # this option to be deprecated.  FIXME.
7380 if test x${is_cross_compiler} = xyes ; then
7381   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7382 fi
7383
7384 # Default to --enable-multilib.
7385 if test x${enable_multilib} = x ; then
7386   target_configargs="--enable-multilib ${target_configargs}"
7387 fi
7388
7389 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7390 # changed from the earlier setting of with_newlib.
7391 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392   target_configargs="--with-newlib ${target_configargs}"
7393 fi
7394
7395 # Different target subdirs use different values of certain variables
7396 # (notably CXX).  Worse, multilibs use *lots* of different values.
7397 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398 # it doesn't automatically accept command-line overrides of them.
7399 # This means it's not safe for target subdirs to share a cache file,
7400 # which is disgusting, but there you have it.  Hopefully this can be
7401 # fixed in future.  It's still worthwhile to use a cache file for each
7402 # directory.  I think.
7403
7404 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7405 # We need to pass --target, as newer autoconf's requires consistency
7406 # for target_alias and gcc doesn't manage it consistently.
7407 target_configargs="--cache-file=./config.cache ${target_configargs}"
7408
7409 FLAGS_FOR_TARGET=
7410 case " $target_configdirs " in
7411  *" newlib "*)
7412   case " $target_configargs " in
7413   *" --with-newlib "*)
7414    case "$target" in
7415     *-cygwin*)
7416       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'
7417       ;;
7418    esac
7419
7420    # If we're not building GCC, don't discard standard headers.
7421    if test -d ${srcdir}/gcc; then
7422      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7423
7424      if test "${build}" != "${host}"; then
7425        # On Canadian crosses, CC_FOR_TARGET will have already been set
7426        # by `configure', so we won't have an opportunity to add -Bgcc/
7427        # to it.  This is right: we don't want to search that directory
7428        # for binaries, but we want the header files in there, so add
7429        # them explicitly.
7430        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7431
7432        # Someone might think of using the pre-installed headers on
7433        # Canadian crosses, in case the installed compiler is not fully
7434        # compatible with the compiler being built.  In this case, it
7435        # would be better to flag an error than risking having
7436        # incompatible object files being constructed.  We can't
7437        # guarantee that an error will be flagged, but let's hope the
7438        # compiler will do it, when presented with incompatible header
7439        # files.
7440      fi
7441    fi
7442
7443    case "${target}-${is_cross_compiler}" in
7444    i[3456789]86-*-linux*-no)
7445       # Here host == target, so we don't need to build gcc,
7446       # so we don't want to discard standard headers.
7447       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7448       ;;
7449    *)
7450       # If we're building newlib, use its generic headers last, but search
7451       # for any libc-related directories first (so make it the last -B
7452       # switch).
7453       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7454
7455       # If we're building libgloss, find the startup file, simulator library
7456       # and linker script.
7457       case " $target_configdirs " in
7458         *" libgloss "*)
7459         # Look for startup file, simulator library and maybe linker script.
7460         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461         # Look for libnosys.a in case the target needs it.
7462         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463         # Most targets have the linker script in the source directory.
7464         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7465         ;;
7466       esac
7467       ;;
7468    esac
7469    ;;
7470   esac
7471   ;;
7472 esac
7473
7474 case "$target" in
7475   x86_64-*mingw* | *-w64-mingw*)
7476   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477   # however, use a symlink named 'mingw' in ${prefix} .
7478     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7479     ;;
7480   *-mingw*)
7481   # MinGW can't be handled as Cygwin above since it does not use newlib.
7482     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'
7483     ;;
7484 esac
7485
7486 # Allow the user to override the flags for
7487 # our build compiler if desired.
7488 if test x"${build}" = x"${host}" ; then
7489   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7492 fi
7493
7494 # On Canadian crosses, we'll be searching the right directories for
7495 # the previously-installed cross compiler, so don't bother to add
7496 # flags for directories within the install tree of the compiler
7497 # being built; programs in there won't even run.
7498 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499   # Search for pre-installed headers if nothing else fits.
7500   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7501 fi
7502
7503 if test "x${use_gnu_ld}" = x &&
7504    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505   # Arrange for us to find uninstalled linker scripts.
7506   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7507 fi
7508
7509 # Search for other target-specific linker scripts and such.
7510 case "${target}" in
7511   mep*)
7512     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7513     ;;
7514 esac
7515
7516 # Makefile fragments.
7517 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7518 do
7519   eval fragval=\$$frag
7520   if test $fragval != /dev/null; then
7521     eval $frag=${srcdir}/$fragval
7522   fi
7523 done
7524
7525
7526
7527
7528
7529 # Miscellanea: directories, flags, etc.
7530
7531
7532
7533
7534
7535
7536
7537
7538 # Build module lists & subconfigure args.
7539
7540
7541
7542 # Host module lists & subconfigure args.
7543
7544
7545
7546
7547 # Target module lists & subconfigure args.
7548
7549
7550
7551 # Build tools.
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 # Generate default definitions for YACC, M4, LEX and other programs that run
7570 # on the build machine.  These are used if the Makefile can't locate these
7571 # programs in objdir.
7572 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7573
7574 for ac_prog in 'bison -y' byacc yacc
7575 do
7576   # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_YACC+set}" = set; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$YACC"; then
7584   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_prog_YACC="$ac_prog"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 YACC=$ac_cv_prog_YACC
7604 if test -n "$YACC"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606 $as_echo "$YACC" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612
7613   test -n "$YACC" && break
7614 done
7615 test -n "$YACC" || YACC="$MISSING bison -y"
7616
7617
7618 for ac_prog in bison
7619 do
7620   # Extract the first word of "$ac_prog", so it can be a program name with args.
7621 set dummy $ac_prog; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_BISON+set}" = set; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if test -n "$BISON"; then
7628   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635     for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_prog_BISON="$ac_prog"
7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642   done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 BISON=$ac_cv_prog_BISON
7648 if test -n "$BISON"; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7650 $as_echo "$BISON" >&6; }
7651 else
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657   test -n "$BISON" && break
7658 done
7659 test -n "$BISON" || BISON="$MISSING bison"
7660
7661
7662 for ac_prog in gm4 gnum4 m4
7663 do
7664   # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 $as_echo_n "checking for $ac_word... " >&6; }
7668 if test "${ac_cv_prog_M4+set}" = set; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671   if test -n "$M4"; then
7672   ac_cv_prog_M4="$M4" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679     for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_prog_M4="$ac_prog"
7682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686   done
7687 IFS=$as_save_IFS
7688
7689 fi
7690 fi
7691 M4=$ac_cv_prog_M4
7692 if test -n "$M4"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7694 $as_echo "$M4" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701   test -n "$M4" && break
7702 done
7703 test -n "$M4" || M4="$MISSING m4"
7704
7705
7706 for ac_prog in flex lex
7707 do
7708   # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_LEX+set}" = set; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   if test -n "$LEX"; then
7716   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725     ac_cv_prog_LEX="$ac_prog"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732
7733 fi
7734 fi
7735 LEX=$ac_cv_prog_LEX
7736 if test -n "$LEX"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7738 $as_echo "$LEX" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745   test -n "$LEX" && break
7746 done
7747 test -n "$LEX" || LEX="$MISSING flex"
7748
7749
7750 for ac_prog in flex
7751 do
7752   # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_FLEX+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$FLEX"; then
7760   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_prog_FLEX="$ac_prog"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 FLEX=$ac_cv_prog_FLEX
7780 if test -n "$FLEX"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7782 $as_echo "$FLEX" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789   test -n "$FLEX" && break
7790 done
7791 test -n "$FLEX" || FLEX="$MISSING flex"
7792
7793
7794 for ac_prog in makeinfo
7795 do
7796   # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   if test -n "$MAKEINFO"; then
7804   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_prog_MAKEINFO="$ac_prog"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 MAKEINFO=$ac_cv_prog_MAKEINFO
7824 if test -n "$MAKEINFO"; then
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7826 $as_echo "$MAKEINFO" >&6; }
7827 else
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831
7832
7833   test -n "$MAKEINFO" && break
7834 done
7835 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7836
7837 case " $build_configdirs " in
7838   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7839   *)
7840
7841     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7842     # higher, else we use the "missing" dummy.
7843     if ${MAKEINFO} --version \
7844        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7845       :
7846     else
7847       MAKEINFO="$MISSING makeinfo"
7848     fi
7849     ;;
7850
7851 esac
7852
7853 # FIXME: expect and dejagnu may become build tools?
7854
7855 for ac_prog in expect
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$EXPECT"; then
7865   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_prog_EXPECT="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 EXPECT=$ac_cv_prog_EXPECT
7885 if test -n "$EXPECT"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7887 $as_echo "$EXPECT" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$EXPECT" && break
7895 done
7896 test -n "$EXPECT" || EXPECT="expect"
7897
7898 case " $configdirs " in
7899   *" expect "*)
7900     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7901     ;;
7902 esac
7903
7904 for ac_prog in runtest
7905 do
7906   # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$RUNTEST"; then
7914   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_RUNTEST="$ac_prog"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 RUNTEST=$ac_cv_prog_RUNTEST
7934 if test -n "$RUNTEST"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7936 $as_echo "$RUNTEST" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943   test -n "$RUNTEST" && break
7944 done
7945 test -n "$RUNTEST" || RUNTEST="runtest"
7946
7947 case " $configdirs " in
7948   *" dejagnu "*)
7949     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7950     ;;
7951 esac
7952
7953
7954 # Host tools.
7955 ncn_tool_prefix=
7956 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7957 ncn_target_tool_prefix=
7958 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7959
7960
7961
7962 if test -n "$AR"; then
7963   ac_cv_prog_AR=$AR
7964 elif test -n "$ac_cv_prog_AR"; then
7965   AR=$ac_cv_prog_AR
7966 fi
7967
7968 if test -n "$ac_cv_prog_AR"; then
7969   for ncn_progname in ar; do
7970     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971 set dummy ${ncn_progname}; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_AR+set}" = set; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   if test -n "$AR"; then
7978   ac_cv_prog_AR="$AR" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987     ac_cv_prog_AR="${ncn_progname}"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 AR=$ac_cv_prog_AR
7998 if test -n "$AR"; then
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8000 $as_echo "$AR" >&6; }
8001 else
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006
8007   done
8008 fi
8009
8010 for ncn_progname in ar; do
8011   if test -n "$ncn_tool_prefix"; then
8012     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8013 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if test "${ac_cv_prog_AR+set}" = set; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   if test -n "$AR"; then
8020   ac_cv_prog_AR="$AR" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025   IFS=$as_save_IFS
8026   test -z "$as_dir" && as_dir=.
8027     for ac_exec_ext in '' $ac_executable_extensions; do
8028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031     break 2
8032   fi
8033 done
8034   done
8035 IFS=$as_save_IFS
8036
8037 fi
8038 fi
8039 AR=$ac_cv_prog_AR
8040 if test -n "$AR"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042 $as_echo "$AR" >&6; }
8043 else
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047
8048
8049   fi
8050   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8051     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052 set dummy ${ncn_progname}; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_AR+set}" = set; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   if test -n "$AR"; then
8059   ac_cv_prog_AR="$AR" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064   IFS=$as_save_IFS
8065   test -z "$as_dir" && as_dir=.
8066     for ac_exec_ext in '' $ac_executable_extensions; do
8067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068     ac_cv_prog_AR="${ncn_progname}"
8069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070     break 2
8071   fi
8072 done
8073   done
8074 IFS=$as_save_IFS
8075
8076 fi
8077 fi
8078 AR=$ac_cv_prog_AR
8079 if test -n "$AR"; then
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8081 $as_echo "$AR" >&6; }
8082 else
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 fi
8086
8087
8088   fi
8089   test -n "$ac_cv_prog_AR" && break
8090 done
8091
8092 if test -z "$ac_cv_prog_AR" ; then
8093   set dummy ar
8094   if test $build = $host ; then
8095     AR="$2"
8096   else
8097     AR="${ncn_tool_prefix}$2"
8098   fi
8099 fi
8100
8101
8102
8103 if test -n "$AS"; then
8104   ac_cv_prog_AS=$AS
8105 elif test -n "$ac_cv_prog_AS"; then
8106   AS=$ac_cv_prog_AS
8107 fi
8108
8109 if test -n "$ac_cv_prog_AS"; then
8110   for ncn_progname in as; do
8111     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112 set dummy ${ncn_progname}; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AS+set}" = set; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$AS"; then
8119   ac_cv_prog_AS="$AS" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128     ac_cv_prog_AS="${ncn_progname}"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 AS=$ac_cv_prog_AS
8139 if test -n "$AS"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8141 $as_echo "$AS" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148   done
8149 fi
8150
8151 for ncn_progname in as; do
8152   if test -n "$ncn_tool_prefix"; then
8153     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8154 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_AS+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$AS"; then
8161   ac_cv_prog_AS="$AS" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166   IFS=$as_save_IFS
8167   test -z "$as_dir" && as_dir=.
8168     for ac_exec_ext in '' $ac_executable_extensions; do
8169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172     break 2
8173   fi
8174 done
8175   done
8176 IFS=$as_save_IFS
8177
8178 fi
8179 fi
8180 AS=$ac_cv_prog_AS
8181 if test -n "$AS"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183 $as_echo "$AS" >&6; }
8184 else
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8187 fi
8188
8189
8190   fi
8191   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8192     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8193 set dummy ${ncn_progname}; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if test "${ac_cv_prog_AS+set}" = set; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   if test -n "$AS"; then
8200   ac_cv_prog_AS="$AS" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207     for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_prog_AS="${ncn_progname}"
8210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214   done
8215 IFS=$as_save_IFS
8216
8217 fi
8218 fi
8219 AS=$ac_cv_prog_AS
8220 if test -n "$AS"; then
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8222 $as_echo "$AS" >&6; }
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8226 fi
8227
8228
8229   fi
8230   test -n "$ac_cv_prog_AS" && break
8231 done
8232
8233 if test -z "$ac_cv_prog_AS" ; then
8234   set dummy as
8235   if test $build = $host ; then
8236     AS="$2"
8237   else
8238     AS="${ncn_tool_prefix}$2"
8239   fi
8240 fi
8241
8242
8243
8244 if test -n "$DLLTOOL"; then
8245   ac_cv_prog_DLLTOOL=$DLLTOOL
8246 elif test -n "$ac_cv_prog_DLLTOOL"; then
8247   DLLTOOL=$ac_cv_prog_DLLTOOL
8248 fi
8249
8250 if test -n "$ac_cv_prog_DLLTOOL"; then
8251   for ncn_progname in dlltool; do
8252     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253 set dummy ${ncn_progname}; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   if test -n "$DLLTOOL"; then
8260   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265   IFS=$as_save_IFS
8266   test -z "$as_dir" && as_dir=.
8267     for ac_exec_ext in '' $ac_executable_extensions; do
8268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269     ac_cv_prog_DLLTOOL="${ncn_progname}"
8270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271     break 2
8272   fi
8273 done
8274   done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 DLLTOOL=$ac_cv_prog_DLLTOOL
8280 if test -n "$DLLTOOL"; then
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8282 $as_echo "$DLLTOOL" >&6; }
8283 else
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289   done
8290 fi
8291
8292 for ncn_progname in dlltool; do
8293   if test -n "$ncn_tool_prefix"; then
8294     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8295 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$DLLTOOL"; then
8302   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 DLLTOOL=$ac_cv_prog_DLLTOOL
8322 if test -n "$DLLTOOL"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324 $as_echo "$DLLTOOL" >&6; }
8325 else
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331   fi
8332   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8333     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334 set dummy ${ncn_progname}; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$DLLTOOL"; then
8341   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350     ac_cv_prog_DLLTOOL="${ncn_progname}"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 DLLTOOL=$ac_cv_prog_DLLTOOL
8361 if test -n "$DLLTOOL"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8363 $as_echo "$DLLTOOL" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370   fi
8371   test -n "$ac_cv_prog_DLLTOOL" && break
8372 done
8373
8374 if test -z "$ac_cv_prog_DLLTOOL" ; then
8375   set dummy dlltool
8376   if test $build = $host ; then
8377     DLLTOOL="$2"
8378   else
8379     DLLTOOL="${ncn_tool_prefix}$2"
8380   fi
8381 fi
8382
8383
8384
8385 if test -n "$LD"; then
8386   ac_cv_prog_LD=$LD
8387 elif test -n "$ac_cv_prog_LD"; then
8388   LD=$ac_cv_prog_LD
8389 fi
8390
8391 if test -n "$ac_cv_prog_LD"; then
8392   for ncn_progname in ld; do
8393     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394 set dummy ${ncn_progname}; ac_word=$2
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396 $as_echo_n "checking for $ac_word... " >&6; }
8397 if test "${ac_cv_prog_LD+set}" = set; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   if test -n "$LD"; then
8401   ac_cv_prog_LD="$LD" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   test -z "$as_dir" && as_dir=.
8408     for ac_exec_ext in '' $ac_executable_extensions; do
8409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410     ac_cv_prog_LD="${ncn_progname}"
8411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412     break 2
8413   fi
8414 done
8415   done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 LD=$ac_cv_prog_LD
8421 if test -n "$LD"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8423 $as_echo "$LD" >&6; }
8424 else
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430   done
8431 fi
8432
8433 for ncn_progname in ld; do
8434   if test -n "$ncn_tool_prefix"; then
8435     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_LD+set}" = set; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   if test -n "$LD"; then
8443   ac_cv_prog_LD="$LD" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448   IFS=$as_save_IFS
8449   test -z "$as_dir" && as_dir=.
8450     for ac_exec_ext in '' $ac_executable_extensions; do
8451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454     break 2
8455   fi
8456 done
8457   done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 LD=$ac_cv_prog_LD
8463 if test -n "$LD"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465 $as_echo "$LD" >&6; }
8466 else
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471
8472   fi
8473   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8474     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8475 set dummy ${ncn_progname}; ac_word=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_prog_LD+set}" = set; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   if test -n "$LD"; then
8482   ac_cv_prog_LD="$LD" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487   IFS=$as_save_IFS
8488   test -z "$as_dir" && as_dir=.
8489     for ac_exec_ext in '' $ac_executable_extensions; do
8490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491     ac_cv_prog_LD="${ncn_progname}"
8492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493     break 2
8494   fi
8495 done
8496   done
8497 IFS=$as_save_IFS
8498
8499 fi
8500 fi
8501 LD=$ac_cv_prog_LD
8502 if test -n "$LD"; then
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8504 $as_echo "$LD" >&6; }
8505 else
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510
8511   fi
8512   test -n "$ac_cv_prog_LD" && break
8513 done
8514
8515 if test -z "$ac_cv_prog_LD" ; then
8516   set dummy ld
8517   if test $build = $host ; then
8518     LD="$2"
8519   else
8520     LD="${ncn_tool_prefix}$2"
8521   fi
8522 fi
8523
8524
8525
8526 if test -n "$LIPO"; then
8527   ac_cv_prog_LIPO=$LIPO
8528 elif test -n "$ac_cv_prog_LIPO"; then
8529   LIPO=$ac_cv_prog_LIPO
8530 fi
8531
8532 if test -n "$ac_cv_prog_LIPO"; then
8533   for ncn_progname in lipo; do
8534     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535 set dummy ${ncn_progname}; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_LIPO+set}" = set; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   if test -n "$LIPO"; then
8542   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   test -z "$as_dir" && as_dir=.
8549     for ac_exec_ext in '' $ac_executable_extensions; do
8550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551     ac_cv_prog_LIPO="${ncn_progname}"
8552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553     break 2
8554   fi
8555 done
8556   done
8557 IFS=$as_save_IFS
8558
8559 fi
8560 fi
8561 LIPO=$ac_cv_prog_LIPO
8562 if test -n "$LIPO"; then
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8564 $as_echo "$LIPO" >&6; }
8565 else
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569
8570
8571   done
8572 fi
8573
8574 for ncn_progname in lipo; do
8575   if test -n "$ncn_tool_prefix"; then
8576     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8577 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if test "${ac_cv_prog_LIPO+set}" = set; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583   if test -n "$LIPO"; then
8584   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8588 do
8589   IFS=$as_save_IFS
8590   test -z "$as_dir" && as_dir=.
8591     for ac_exec_ext in '' $ac_executable_extensions; do
8592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595     break 2
8596   fi
8597 done
8598   done
8599 IFS=$as_save_IFS
8600
8601 fi
8602 fi
8603 LIPO=$ac_cv_prog_LIPO
8604 if test -n "$LIPO"; then
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606 $as_echo "$LIPO" >&6; }
8607 else
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611
8612
8613   fi
8614   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8615     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8616 set dummy ${ncn_progname}; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_prog_LIPO+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   if test -n "$LIPO"; then
8623   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630     for ac_exec_ext in '' $ac_executable_extensions; do
8631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632     ac_cv_prog_LIPO="${ncn_progname}"
8633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637   done
8638 IFS=$as_save_IFS
8639
8640 fi
8641 fi
8642 LIPO=$ac_cv_prog_LIPO
8643 if test -n "$LIPO"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8645 $as_echo "$LIPO" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652   fi
8653   test -n "$ac_cv_prog_LIPO" && break
8654 done
8655
8656 if test -z "$ac_cv_prog_LIPO" ; then
8657   set dummy lipo
8658   if test $build = $host ; then
8659     LIPO="$2"
8660   else
8661     LIPO="${ncn_tool_prefix}$2"
8662   fi
8663 fi
8664
8665
8666
8667 if test -n "$NM"; then
8668   ac_cv_prog_NM=$NM
8669 elif test -n "$ac_cv_prog_NM"; then
8670   NM=$ac_cv_prog_NM
8671 fi
8672
8673 if test -n "$ac_cv_prog_NM"; then
8674   for ncn_progname in nm; do
8675     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8676 set dummy ${ncn_progname}; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_NM+set}" = set; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   if test -n "$NM"; then
8683   ac_cv_prog_NM="$NM" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690     for ac_exec_ext in '' $ac_executable_extensions; do
8691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692     ac_cv_prog_NM="${ncn_progname}"
8693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697   done
8698 IFS=$as_save_IFS
8699
8700 fi
8701 fi
8702 NM=$ac_cv_prog_NM
8703 if test -n "$NM"; then
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8705 $as_echo "$NM" >&6; }
8706 else
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712   done
8713 fi
8714
8715 for ncn_progname in nm; do
8716   if test -n "$ncn_tool_prefix"; then
8717     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8718 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_prog_NM+set}" = set; then :
8722   $as_echo_n "(cached) " >&6
8723 else
8724   if test -n "$NM"; then
8725   ac_cv_prog_NM="$NM" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8729 do
8730   IFS=$as_save_IFS
8731   test -z "$as_dir" && as_dir=.
8732     for ac_exec_ext in '' $ac_executable_extensions; do
8733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736     break 2
8737   fi
8738 done
8739   done
8740 IFS=$as_save_IFS
8741
8742 fi
8743 fi
8744 NM=$ac_cv_prog_NM
8745 if test -n "$NM"; then
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747 $as_echo "$NM" >&6; }
8748 else
8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8751 fi
8752
8753
8754   fi
8755   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8756     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8757 set dummy ${ncn_progname}; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if test "${ac_cv_prog_NM+set}" = set; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   if test -n "$NM"; then
8764   ac_cv_prog_NM="$NM" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769   IFS=$as_save_IFS
8770   test -z "$as_dir" && as_dir=.
8771     for ac_exec_ext in '' $ac_executable_extensions; do
8772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773     ac_cv_prog_NM="${ncn_progname}"
8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775     break 2
8776   fi
8777 done
8778   done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 NM=$ac_cv_prog_NM
8784 if test -n "$NM"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8786 $as_echo "$NM" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792
8793   fi
8794   test -n "$ac_cv_prog_NM" && break
8795 done
8796
8797 if test -z "$ac_cv_prog_NM" ; then
8798   set dummy nm
8799   if test $build = $host ; then
8800     NM="$2"
8801   else
8802     NM="${ncn_tool_prefix}$2"
8803   fi
8804 fi
8805
8806
8807
8808 if test -n "$RANLIB"; then
8809   ac_cv_prog_RANLIB=$RANLIB
8810 elif test -n "$ac_cv_prog_RANLIB"; then
8811   RANLIB=$ac_cv_prog_RANLIB
8812 fi
8813
8814 if test -n "$ac_cv_prog_RANLIB"; then
8815   for ncn_progname in ranlib; do
8816     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8817 set dummy ${ncn_progname}; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   if test -n "$RANLIB"; then
8824   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829   IFS=$as_save_IFS
8830   test -z "$as_dir" && as_dir=.
8831     for ac_exec_ext in '' $ac_executable_extensions; do
8832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833     ac_cv_prog_RANLIB="${ncn_progname}"
8834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835     break 2
8836   fi
8837 done
8838   done
8839 IFS=$as_save_IFS
8840
8841 fi
8842 fi
8843 RANLIB=$ac_cv_prog_RANLIB
8844 if test -n "$RANLIB"; then
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8846 $as_echo "$RANLIB" >&6; }
8847 else
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8850 fi
8851
8852
8853   done
8854 fi
8855
8856 for ncn_progname in ranlib; do
8857   if test -n "$ncn_tool_prefix"; then
8858     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8859 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test -n "$RANLIB"; then
8866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871   IFS=$as_save_IFS
8872   test -z "$as_dir" && as_dir=.
8873     for ac_exec_ext in '' $ac_executable_extensions; do
8874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877     break 2
8878   fi
8879 done
8880   done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 RANLIB=$ac_cv_prog_RANLIB
8886 if test -n "$RANLIB"; then
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888 $as_echo "$RANLIB" >&6; }
8889 else
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895   fi
8896   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8897     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8898 set dummy ${ncn_progname}; ac_word=$2
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8900 $as_echo_n "checking for $ac_word... " >&6; }
8901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   if test -n "$RANLIB"; then
8905   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8906 else
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8909 do
8910   IFS=$as_save_IFS
8911   test -z "$as_dir" && as_dir=.
8912     for ac_exec_ext in '' $ac_executable_extensions; do
8913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914     ac_cv_prog_RANLIB="${ncn_progname}"
8915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916     break 2
8917   fi
8918 done
8919   done
8920 IFS=$as_save_IFS
8921
8922 fi
8923 fi
8924 RANLIB=$ac_cv_prog_RANLIB
8925 if test -n "$RANLIB"; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8927 $as_echo "$RANLIB" >&6; }
8928 else
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931 fi
8932
8933
8934   fi
8935   test -n "$ac_cv_prog_RANLIB" && break
8936 done
8937
8938 if test -z "$ac_cv_prog_RANLIB" ; then
8939   RANLIB="true"
8940 fi
8941
8942
8943
8944 if test -n "$STRIP"; then
8945   ac_cv_prog_STRIP=$STRIP
8946 elif test -n "$ac_cv_prog_STRIP"; then
8947   STRIP=$ac_cv_prog_STRIP
8948 fi
8949
8950 if test -n "$ac_cv_prog_STRIP"; then
8951   for ncn_progname in strip; do
8952     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8953 set dummy ${ncn_progname}; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_prog_STRIP+set}" = set; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   if test -n "$STRIP"; then
8960   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8964 do
8965   IFS=$as_save_IFS
8966   test -z "$as_dir" && as_dir=.
8967     for ac_exec_ext in '' $ac_executable_extensions; do
8968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969     ac_cv_prog_STRIP="${ncn_progname}"
8970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971     break 2
8972   fi
8973 done
8974   done
8975 IFS=$as_save_IFS
8976
8977 fi
8978 fi
8979 STRIP=$ac_cv_prog_STRIP
8980 if test -n "$STRIP"; then
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8982 $as_echo "$STRIP" >&6; }
8983 else
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988
8989   done
8990 fi
8991
8992 for ncn_progname in strip; do
8993   if test -n "$ncn_tool_prefix"; then
8994     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8995 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_STRIP+set}" = set; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   if test -n "$STRIP"; then
9002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009     for ac_exec_ext in '' $ac_executable_extensions; do
9010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016   done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 STRIP=$ac_cv_prog_STRIP
9022 if test -n "$STRIP"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024 $as_echo "$STRIP" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030
9031   fi
9032   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9033     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9034 set dummy ${ncn_progname}; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if test "${ac_cv_prog_STRIP+set}" = set; then :
9038   $as_echo_n "(cached) " >&6
9039 else
9040   if test -n "$STRIP"; then
9041   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9042 else
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9045 do
9046   IFS=$as_save_IFS
9047   test -z "$as_dir" && as_dir=.
9048     for ac_exec_ext in '' $ac_executable_extensions; do
9049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050     ac_cv_prog_STRIP="${ncn_progname}"
9051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052     break 2
9053   fi
9054 done
9055   done
9056 IFS=$as_save_IFS
9057
9058 fi
9059 fi
9060 STRIP=$ac_cv_prog_STRIP
9061 if test -n "$STRIP"; then
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9063 $as_echo "$STRIP" >&6; }
9064 else
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 fi
9068
9069
9070   fi
9071   test -n "$ac_cv_prog_STRIP" && break
9072 done
9073
9074 if test -z "$ac_cv_prog_STRIP" ; then
9075   STRIP="true"
9076 fi
9077
9078
9079
9080 if test -n "$WINDRES"; then
9081   ac_cv_prog_WINDRES=$WINDRES
9082 elif test -n "$ac_cv_prog_WINDRES"; then
9083   WINDRES=$ac_cv_prog_WINDRES
9084 fi
9085
9086 if test -n "$ac_cv_prog_WINDRES"; then
9087   for ncn_progname in windres; do
9088     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089 set dummy ${ncn_progname}; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095   if test -n "$WINDRES"; then
9096   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9097 else
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9100 do
9101   IFS=$as_save_IFS
9102   test -z "$as_dir" && as_dir=.
9103     for ac_exec_ext in '' $ac_executable_extensions; do
9104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105     ac_cv_prog_WINDRES="${ncn_progname}"
9106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107     break 2
9108   fi
9109 done
9110   done
9111 IFS=$as_save_IFS
9112
9113 fi
9114 fi
9115 WINDRES=$ac_cv_prog_WINDRES
9116 if test -n "$WINDRES"; then
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9118 $as_echo "$WINDRES" >&6; }
9119 else
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9122 fi
9123
9124
9125   done
9126 fi
9127
9128 for ncn_progname in windres; do
9129   if test -n "$ncn_tool_prefix"; then
9130     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9131 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9135   $as_echo_n "(cached) " >&6
9136 else
9137   if test -n "$WINDRES"; then
9138   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9139 else
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9142 do
9143   IFS=$as_save_IFS
9144   test -z "$as_dir" && as_dir=.
9145     for ac_exec_ext in '' $ac_executable_extensions; do
9146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149     break 2
9150   fi
9151 done
9152   done
9153 IFS=$as_save_IFS
9154
9155 fi
9156 fi
9157 WINDRES=$ac_cv_prog_WINDRES
9158 if test -n "$WINDRES"; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160 $as_echo "$WINDRES" >&6; }
9161 else
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164 fi
9165
9166
9167   fi
9168   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9169     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9170 set dummy ${ncn_progname}; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   if test -n "$WINDRES"; then
9177   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9178 else
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182   IFS=$as_save_IFS
9183   test -z "$as_dir" && as_dir=.
9184     for ac_exec_ext in '' $ac_executable_extensions; do
9185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9186     ac_cv_prog_WINDRES="${ncn_progname}"
9187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188     break 2
9189   fi
9190 done
9191   done
9192 IFS=$as_save_IFS
9193
9194 fi
9195 fi
9196 WINDRES=$ac_cv_prog_WINDRES
9197 if test -n "$WINDRES"; then
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9199 $as_echo "$WINDRES" >&6; }
9200 else
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204
9205
9206   fi
9207   test -n "$ac_cv_prog_WINDRES" && break
9208 done
9209
9210 if test -z "$ac_cv_prog_WINDRES" ; then
9211   set dummy windres
9212   if test $build = $host ; then
9213     WINDRES="$2"
9214   else
9215     WINDRES="${ncn_tool_prefix}$2"
9216   fi
9217 fi
9218
9219
9220
9221 if test -n "$WINDMC"; then
9222   ac_cv_prog_WINDMC=$WINDMC
9223 elif test -n "$ac_cv_prog_WINDMC"; then
9224   WINDMC=$ac_cv_prog_WINDMC
9225 fi
9226
9227 if test -n "$ac_cv_prog_WINDMC"; then
9228   for ncn_progname in windmc; do
9229     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230 set dummy ${ncn_progname}; ac_word=$2
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232 $as_echo_n "checking for $ac_word... " >&6; }
9233 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9234   $as_echo_n "(cached) " >&6
9235 else
9236   if test -n "$WINDMC"; then
9237   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9238 else
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in $PATH
9241 do
9242   IFS=$as_save_IFS
9243   test -z "$as_dir" && as_dir=.
9244     for ac_exec_ext in '' $ac_executable_extensions; do
9245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246     ac_cv_prog_WINDMC="${ncn_progname}"
9247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248     break 2
9249   fi
9250 done
9251   done
9252 IFS=$as_save_IFS
9253
9254 fi
9255 fi
9256 WINDMC=$ac_cv_prog_WINDMC
9257 if test -n "$WINDMC"; then
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9259 $as_echo "$WINDMC" >&6; }
9260 else
9261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9263 fi
9264
9265
9266   done
9267 fi
9268
9269 for ncn_progname in windmc; do
9270   if test -n "$ncn_tool_prefix"; then
9271     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9272 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 $as_echo_n "checking for $ac_word... " >&6; }
9275 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   if test -n "$WINDMC"; then
9279   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9280 else
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9283 do
9284   IFS=$as_save_IFS
9285   test -z "$as_dir" && as_dir=.
9286     for ac_exec_ext in '' $ac_executable_extensions; do
9287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290     break 2
9291   fi
9292 done
9293   done
9294 IFS=$as_save_IFS
9295
9296 fi
9297 fi
9298 WINDMC=$ac_cv_prog_WINDMC
9299 if test -n "$WINDMC"; then
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301 $as_echo "$WINDMC" >&6; }
9302 else
9303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9305 fi
9306
9307
9308   fi
9309   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9310     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311 set dummy ${ncn_progname}; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   if test -n "$WINDMC"; then
9318   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9319 else
9320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321 for as_dir in $PATH
9322 do
9323   IFS=$as_save_IFS
9324   test -z "$as_dir" && as_dir=.
9325     for ac_exec_ext in '' $ac_executable_extensions; do
9326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9327     ac_cv_prog_WINDMC="${ncn_progname}"
9328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9329     break 2
9330   fi
9331 done
9332   done
9333 IFS=$as_save_IFS
9334
9335 fi
9336 fi
9337 WINDMC=$ac_cv_prog_WINDMC
9338 if test -n "$WINDMC"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9340 $as_echo "$WINDMC" >&6; }
9341 else
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345
9346
9347   fi
9348   test -n "$ac_cv_prog_WINDMC" && break
9349 done
9350
9351 if test -z "$ac_cv_prog_WINDMC" ; then
9352   set dummy windmc
9353   if test $build = $host ; then
9354     WINDMC="$2"
9355   else
9356     WINDMC="${ncn_tool_prefix}$2"
9357   fi
9358 fi
9359
9360
9361
9362 if test -n "$OBJCOPY"; then
9363   ac_cv_prog_OBJCOPY=$OBJCOPY
9364 elif test -n "$ac_cv_prog_OBJCOPY"; then
9365   OBJCOPY=$ac_cv_prog_OBJCOPY
9366 fi
9367
9368 if test -n "$ac_cv_prog_OBJCOPY"; then
9369   for ncn_progname in objcopy; do
9370     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9371 set dummy ${ncn_progname}; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   if test -n "$OBJCOPY"; then
9378   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9379 else
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   test -z "$as_dir" && as_dir=.
9385     for ac_exec_ext in '' $ac_executable_extensions; do
9386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9387     ac_cv_prog_OBJCOPY="${ncn_progname}"
9388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389     break 2
9390   fi
9391 done
9392   done
9393 IFS=$as_save_IFS
9394
9395 fi
9396 fi
9397 OBJCOPY=$ac_cv_prog_OBJCOPY
9398 if test -n "$OBJCOPY"; then
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9400 $as_echo "$OBJCOPY" >&6; }
9401 else
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9404 fi
9405
9406
9407   done
9408 fi
9409
9410 for ncn_progname in objcopy; do
9411   if test -n "$ncn_tool_prefix"; then
9412     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9413 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 $as_echo_n "checking for $ac_word... " >&6; }
9416 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   if test -n "$OBJCOPY"; then
9420   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9421 else
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 for as_dir in $PATH
9424 do
9425   IFS=$as_save_IFS
9426   test -z "$as_dir" && as_dir=.
9427     for ac_exec_ext in '' $ac_executable_extensions; do
9428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431     break 2
9432   fi
9433 done
9434   done
9435 IFS=$as_save_IFS
9436
9437 fi
9438 fi
9439 OBJCOPY=$ac_cv_prog_OBJCOPY
9440 if test -n "$OBJCOPY"; then
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442 $as_echo "$OBJCOPY" >&6; }
9443 else
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9446 fi
9447
9448
9449   fi
9450   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9451     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9452 set dummy ${ncn_progname}; ac_word=$2
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454 $as_echo_n "checking for $ac_word... " >&6; }
9455 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9456   $as_echo_n "(cached) " >&6
9457 else
9458   if test -n "$OBJCOPY"; then
9459   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9460 else
9461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462 for as_dir in $PATH
9463 do
9464   IFS=$as_save_IFS
9465   test -z "$as_dir" && as_dir=.
9466     for ac_exec_ext in '' $ac_executable_extensions; do
9467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9468     ac_cv_prog_OBJCOPY="${ncn_progname}"
9469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9470     break 2
9471   fi
9472 done
9473   done
9474 IFS=$as_save_IFS
9475
9476 fi
9477 fi
9478 OBJCOPY=$ac_cv_prog_OBJCOPY
9479 if test -n "$OBJCOPY"; then
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9481 $as_echo "$OBJCOPY" >&6; }
9482 else
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 fi
9486
9487
9488   fi
9489   test -n "$ac_cv_prog_OBJCOPY" && break
9490 done
9491
9492 if test -z "$ac_cv_prog_OBJCOPY" ; then
9493   set dummy objcopy
9494   if test $build = $host ; then
9495     OBJCOPY="$2"
9496   else
9497     OBJCOPY="${ncn_tool_prefix}$2"
9498   fi
9499 fi
9500
9501
9502
9503 if test -n "$OBJDUMP"; then
9504   ac_cv_prog_OBJDUMP=$OBJDUMP
9505 elif test -n "$ac_cv_prog_OBJDUMP"; then
9506   OBJDUMP=$ac_cv_prog_OBJDUMP
9507 fi
9508
9509 if test -n "$ac_cv_prog_OBJDUMP"; then
9510   for ncn_progname in objdump; do
9511     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9512 set dummy ${ncn_progname}; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9516   $as_echo_n "(cached) " >&6
9517 else
9518   if test -n "$OBJDUMP"; then
9519   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9520 else
9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 for as_dir in $PATH
9523 do
9524   IFS=$as_save_IFS
9525   test -z "$as_dir" && as_dir=.
9526     for ac_exec_ext in '' $ac_executable_extensions; do
9527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9528     ac_cv_prog_OBJDUMP="${ncn_progname}"
9529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9530     break 2
9531   fi
9532 done
9533   done
9534 IFS=$as_save_IFS
9535
9536 fi
9537 fi
9538 OBJDUMP=$ac_cv_prog_OBJDUMP
9539 if test -n "$OBJDUMP"; then
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9541 $as_echo "$OBJDUMP" >&6; }
9542 else
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546
9547
9548   done
9549 fi
9550
9551 for ncn_progname in objdump; do
9552   if test -n "$ncn_tool_prefix"; then
9553     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9554 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   if test -n "$OBJDUMP"; then
9561   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562 else
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9565 do
9566   IFS=$as_save_IFS
9567   test -z "$as_dir" && as_dir=.
9568     for ac_exec_ext in '' $ac_executable_extensions; do
9569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572     break 2
9573   fi
9574 done
9575   done
9576 IFS=$as_save_IFS
9577
9578 fi
9579 fi
9580 OBJDUMP=$ac_cv_prog_OBJDUMP
9581 if test -n "$OBJDUMP"; then
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583 $as_echo "$OBJDUMP" >&6; }
9584 else
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 fi
9588
9589
9590   fi
9591   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9592     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9593 set dummy ${ncn_progname}; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   if test -n "$OBJDUMP"; then
9600   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9601 else
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9604 do
9605   IFS=$as_save_IFS
9606   test -z "$as_dir" && as_dir=.
9607     for ac_exec_ext in '' $ac_executable_extensions; do
9608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609     ac_cv_prog_OBJDUMP="${ncn_progname}"
9610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611     break 2
9612   fi
9613 done
9614   done
9615 IFS=$as_save_IFS
9616
9617 fi
9618 fi
9619 OBJDUMP=$ac_cv_prog_OBJDUMP
9620 if test -n "$OBJDUMP"; then
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9622 $as_echo "$OBJDUMP" >&6; }
9623 else
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627
9628
9629   fi
9630   test -n "$ac_cv_prog_OBJDUMP" && break
9631 done
9632
9633 if test -z "$ac_cv_prog_OBJDUMP" ; then
9634   set dummy objdump
9635   if test $build = $host ; then
9636     OBJDUMP="$2"
9637   else
9638     OBJDUMP="${ncn_tool_prefix}$2"
9639   fi
9640 fi
9641
9642
9643
9644 if test -n "$READELF"; then
9645   ac_cv_prog_READELF=$READELF
9646 elif test -n "$ac_cv_prog_READELF"; then
9647   READELF=$ac_cv_prog_READELF
9648 fi
9649
9650 if test -n "$ac_cv_prog_READELF"; then
9651   for ncn_progname in readelf; do
9652     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_READELF+set}" = set; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   if test -n "$READELF"; then
9660   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665   IFS=$as_save_IFS
9666   test -z "$as_dir" && as_dir=.
9667     for ac_exec_ext in '' $ac_executable_extensions; do
9668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669     ac_cv_prog_READELF="${ncn_progname}"
9670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671     break 2
9672   fi
9673 done
9674   done
9675 IFS=$as_save_IFS
9676
9677 fi
9678 fi
9679 READELF=$ac_cv_prog_READELF
9680 if test -n "$READELF"; then
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9682 $as_echo "$READELF" >&6; }
9683 else
9684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687
9688
9689   done
9690 fi
9691
9692 for ncn_progname in readelf; do
9693   if test -n "$ncn_tool_prefix"; then
9694     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697 $as_echo_n "checking for $ac_word... " >&6; }
9698 if test "${ac_cv_prog_READELF+set}" = set; then :
9699   $as_echo_n "(cached) " >&6
9700 else
9701   if test -n "$READELF"; then
9702   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9703 else
9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705 for as_dir in $PATH
9706 do
9707   IFS=$as_save_IFS
9708   test -z "$as_dir" && as_dir=.
9709     for ac_exec_ext in '' $ac_executable_extensions; do
9710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9711     ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9713     break 2
9714   fi
9715 done
9716   done
9717 IFS=$as_save_IFS
9718
9719 fi
9720 fi
9721 READELF=$ac_cv_prog_READELF
9722 if test -n "$READELF"; then
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9724 $as_echo "$READELF" >&6; }
9725 else
9726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9728 fi
9729
9730
9731   fi
9732   if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9733     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9734 set dummy ${ncn_progname}; ac_word=$2
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 $as_echo_n "checking for $ac_word... " >&6; }
9737 if test "${ac_cv_prog_READELF+set}" = set; then :
9738   $as_echo_n "(cached) " >&6
9739 else
9740   if test -n "$READELF"; then
9741   ac_cv_prog_READELF="$READELF" # Let the user override the test.
9742 else
9743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 for as_dir in $PATH
9745 do
9746   IFS=$as_save_IFS
9747   test -z "$as_dir" && as_dir=.
9748     for ac_exec_ext in '' $ac_executable_extensions; do
9749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9750     ac_cv_prog_READELF="${ncn_progname}"
9751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752     break 2
9753   fi
9754 done
9755   done
9756 IFS=$as_save_IFS
9757
9758 fi
9759 fi
9760 READELF=$ac_cv_prog_READELF
9761 if test -n "$READELF"; then
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9763 $as_echo "$READELF" >&6; }
9764 else
9765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9767 fi
9768
9769
9770   fi
9771   test -n "$ac_cv_prog_READELF" && break
9772 done
9773
9774 if test -z "$ac_cv_prog_READELF" ; then
9775   set dummy readelf
9776   if test $build = $host ; then
9777     READELF="$2"
9778   else
9779     READELF="${ncn_tool_prefix}$2"
9780   fi
9781 fi
9782
9783
9784
9785
9786
9787
9788 # Target tools.
9789
9790 # Check whether --with-build-time-tools was given.
9791 if test "${with_build_time_tools+set}" = set; then :
9792   withval=$with_build_time_tools; case x"$withval" in
9793      x/*) ;;
9794      *)
9795        with_build_time_tools=
9796        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9797 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9798        ;;
9799    esac
9800 else
9801   with_build_time_tools=
9802 fi
9803
9804
9805
9806
9807 if test -n "$CC_FOR_TARGET"; then
9808   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9809 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9810   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9811 fi
9812
9813 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9814   for ncn_progname in cc gcc; do
9815     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816 set dummy ${ncn_progname}; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9820   $as_echo_n "(cached) " >&6
9821 else
9822   if test -n "$CC_FOR_TARGET"; then
9823   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9824 else
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830     for ac_exec_ext in '' $ac_executable_extensions; do
9831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837   done
9838 IFS=$as_save_IFS
9839
9840 fi
9841 fi
9842 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9843 if test -n "$CC_FOR_TARGET"; then
9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9845 $as_echo "$CC_FOR_TARGET" >&6; }
9846 else
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9849 fi
9850
9851
9852   done
9853 fi
9854
9855 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9856   for ncn_progname in cc gcc; do
9857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9858 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9859     if test -x $with_build_time_tools/${ncn_progname}; then
9860       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9862 $as_echo "yes" >&6; }
9863       break
9864     else
9865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9867     fi
9868   done
9869 fi
9870
9871 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9872   for ncn_progname in cc gcc; do
9873     if test -n "$ncn_target_tool_prefix"; then
9874       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9875 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877 $as_echo_n "checking for $ac_word... " >&6; }
9878 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9879   $as_echo_n "(cached) " >&6
9880 else
9881   if test -n "$CC_FOR_TARGET"; then
9882   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9883 else
9884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885 for as_dir in $PATH
9886 do
9887   IFS=$as_save_IFS
9888   test -z "$as_dir" && as_dir=.
9889     for ac_exec_ext in '' $ac_executable_extensions; do
9890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9891     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893     break 2
9894   fi
9895 done
9896   done
9897 IFS=$as_save_IFS
9898
9899 fi
9900 fi
9901 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9902 if test -n "$CC_FOR_TARGET"; then
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9904 $as_echo "$CC_FOR_TARGET" >&6; }
9905 else
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9908 fi
9909
9910
9911     fi
9912     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9913       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914 set dummy ${ncn_progname}; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9918   $as_echo_n "(cached) " >&6
9919 else
9920   if test -n "$CC_FOR_TARGET"; then
9921   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926   IFS=$as_save_IFS
9927   test -z "$as_dir" && as_dir=.
9928     for ac_exec_ext in '' $ac_executable_extensions; do
9929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932     break 2
9933   fi
9934 done
9935   done
9936 IFS=$as_save_IFS
9937
9938 fi
9939 fi
9940 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9941 if test -n "$CC_FOR_TARGET"; then
9942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9943 $as_echo "$CC_FOR_TARGET" >&6; }
9944 else
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9947 fi
9948
9949
9950     fi
9951     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9952   done
9953 fi
9954
9955 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9956   set dummy cc gcc
9957   if test $build = $target ; then
9958     CC_FOR_TARGET="$2"
9959   else
9960     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9961   fi
9962 else
9963   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9964 fi
9965
9966
9967
9968 if test -n "$CXX_FOR_TARGET"; then
9969   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9970 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9971   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9972 fi
9973
9974 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9975   for ncn_progname in c++ g++ cxx gxx; do
9976     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977 set dummy ${ncn_progname}; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9981   $as_echo_n "(cached) " >&6
9982 else
9983   if test -n "$CXX_FOR_TARGET"; then
9984   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9985 else
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987 for as_dir in $PATH
9988 do
9989   IFS=$as_save_IFS
9990   test -z "$as_dir" && as_dir=.
9991     for ac_exec_ext in '' $ac_executable_extensions; do
9992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9993     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995     break 2
9996   fi
9997 done
9998   done
9999 IFS=$as_save_IFS
10000
10001 fi
10002 fi
10003 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10004 if test -n "$CXX_FOR_TARGET"; then
10005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10006 $as_echo "$CXX_FOR_TARGET" >&6; }
10007 else
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10010 fi
10011
10012
10013   done
10014 fi
10015
10016 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10017   for ncn_progname in c++ g++ cxx gxx; do
10018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10019 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10020     if test -x $with_build_time_tools/${ncn_progname}; then
10021       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023 $as_echo "yes" >&6; }
10024       break
10025     else
10026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028     fi
10029   done
10030 fi
10031
10032 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10033   for ncn_progname in c++ g++ cxx gxx; do
10034     if test -n "$ncn_target_tool_prefix"; then
10035       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10036 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   if test -n "$CXX_FOR_TARGET"; then
10043   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10044 else
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10047 do
10048   IFS=$as_save_IFS
10049   test -z "$as_dir" && as_dir=.
10050     for ac_exec_ext in '' $ac_executable_extensions; do
10051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10052     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057   done
10058 IFS=$as_save_IFS
10059
10060 fi
10061 fi
10062 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10063 if test -n "$CXX_FOR_TARGET"; then
10064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10065 $as_echo "$CXX_FOR_TARGET" >&6; }
10066 else
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10069 fi
10070
10071
10072     fi
10073     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10074       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10075 set dummy ${ncn_progname}; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10079   $as_echo_n "(cached) " >&6
10080 else
10081   if test -n "$CXX_FOR_TARGET"; then
10082   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087   IFS=$as_save_IFS
10088   test -z "$as_dir" && as_dir=.
10089     for ac_exec_ext in '' $ac_executable_extensions; do
10090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093     break 2
10094   fi
10095 done
10096   done
10097 IFS=$as_save_IFS
10098
10099 fi
10100 fi
10101 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10102 if test -n "$CXX_FOR_TARGET"; then
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10104 $as_echo "$CXX_FOR_TARGET" >&6; }
10105 else
10106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10108 fi
10109
10110
10111     fi
10112     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10113   done
10114 fi
10115
10116 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10117   set dummy c++ g++ cxx gxx
10118   if test $build = $target ; then
10119     CXX_FOR_TARGET="$2"
10120   else
10121     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10122   fi
10123 else
10124   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10125 fi
10126
10127
10128
10129 if test -n "$GCC_FOR_TARGET"; then
10130   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10131 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10132   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10133 fi
10134
10135 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10136   for ncn_progname in gcc; do
10137     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138 set dummy ${ncn_progname}; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   if test -n "$GCC_FOR_TARGET"; then
10145   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10149 do
10150   IFS=$as_save_IFS
10151   test -z "$as_dir" && as_dir=.
10152     for ac_exec_ext in '' $ac_executable_extensions; do
10153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156     break 2
10157   fi
10158 done
10159   done
10160 IFS=$as_save_IFS
10161
10162 fi
10163 fi
10164 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10165 if test -n "$GCC_FOR_TARGET"; then
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10167 $as_echo "$GCC_FOR_TARGET" >&6; }
10168 else
10169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171 fi
10172
10173
10174   done
10175 fi
10176
10177 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10178   for ncn_progname in gcc; do
10179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10180 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10181     if test -x $with_build_time_tools/${ncn_progname}; then
10182       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184 $as_echo "yes" >&6; }
10185       break
10186     else
10187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189     fi
10190   done
10191 fi
10192
10193 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10194   for ncn_progname in gcc; do
10195     if test -n "$ncn_target_tool_prefix"; then
10196       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10197 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   if test -n "$GCC_FOR_TARGET"; then
10204   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10205 else
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10208 do
10209   IFS=$as_save_IFS
10210   test -z "$as_dir" && as_dir=.
10211     for ac_exec_ext in '' $ac_executable_extensions; do
10212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215     break 2
10216   fi
10217 done
10218   done
10219 IFS=$as_save_IFS
10220
10221 fi
10222 fi
10223 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10224 if test -n "$GCC_FOR_TARGET"; then
10225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10226 $as_echo "$GCC_FOR_TARGET" >&6; }
10227 else
10228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10230 fi
10231
10232
10233     fi
10234     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10235       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10236 set dummy ${ncn_progname}; ac_word=$2
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10238 $as_echo_n "checking for $ac_word... " >&6; }
10239 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10240   $as_echo_n "(cached) " >&6
10241 else
10242   if test -n "$GCC_FOR_TARGET"; then
10243   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10244 else
10245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in $PATH
10247 do
10248   IFS=$as_save_IFS
10249   test -z "$as_dir" && as_dir=.
10250     for ac_exec_ext in '' $ac_executable_extensions; do
10251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254     break 2
10255   fi
10256 done
10257   done
10258 IFS=$as_save_IFS
10259
10260 fi
10261 fi
10262 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10263 if test -n "$GCC_FOR_TARGET"; then
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10265 $as_echo "$GCC_FOR_TARGET" >&6; }
10266 else
10267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269 fi
10270
10271
10272     fi
10273     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10274   done
10275 fi
10276
10277 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10278   GCC_FOR_TARGET="${CC_FOR_TARGET}"
10279 else
10280   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10281 fi
10282
10283
10284
10285 if test -n "$GCJ_FOR_TARGET"; then
10286   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10287 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10288   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10289 fi
10290
10291 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10292   for ncn_progname in gcj; do
10293     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10294 set dummy ${ncn_progname}; ac_word=$2
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296 $as_echo_n "checking for $ac_word... " >&6; }
10297 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10298   $as_echo_n "(cached) " >&6
10299 else
10300   if test -n "$GCJ_FOR_TARGET"; then
10301   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10302 else
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10305 do
10306   IFS=$as_save_IFS
10307   test -z "$as_dir" && as_dir=.
10308     for ac_exec_ext in '' $ac_executable_extensions; do
10309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312     break 2
10313   fi
10314 done
10315   done
10316 IFS=$as_save_IFS
10317
10318 fi
10319 fi
10320 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10321 if test -n "$GCJ_FOR_TARGET"; then
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10323 $as_echo "$GCJ_FOR_TARGET" >&6; }
10324 else
10325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10327 fi
10328
10329
10330   done
10331 fi
10332
10333 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10334   for ncn_progname in gcj; do
10335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10337     if test -x $with_build_time_tools/${ncn_progname}; then
10338       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340 $as_echo "yes" >&6; }
10341       break
10342     else
10343       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10345     fi
10346   done
10347 fi
10348
10349 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10350   for ncn_progname in gcj; do
10351     if test -n "$ncn_target_tool_prefix"; then
10352       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10353 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   if test -n "$GCJ_FOR_TARGET"; then
10360   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10361 else
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10364 do
10365   IFS=$as_save_IFS
10366   test -z "$as_dir" && as_dir=.
10367     for ac_exec_ext in '' $ac_executable_extensions; do
10368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371     break 2
10372   fi
10373 done
10374   done
10375 IFS=$as_save_IFS
10376
10377 fi
10378 fi
10379 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10380 if test -n "$GCJ_FOR_TARGET"; then
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10382 $as_echo "$GCJ_FOR_TARGET" >&6; }
10383 else
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10386 fi
10387
10388
10389     fi
10390     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10391       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392 set dummy ${ncn_progname}; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10396   $as_echo_n "(cached) " >&6
10397 else
10398   if test -n "$GCJ_FOR_TARGET"; then
10399   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10400 else
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10403 do
10404   IFS=$as_save_IFS
10405   test -z "$as_dir" && as_dir=.
10406     for ac_exec_ext in '' $ac_executable_extensions; do
10407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10408     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410     break 2
10411   fi
10412 done
10413   done
10414 IFS=$as_save_IFS
10415
10416 fi
10417 fi
10418 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10419 if test -n "$GCJ_FOR_TARGET"; then
10420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10421 $as_echo "$GCJ_FOR_TARGET" >&6; }
10422 else
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426
10427
10428     fi
10429     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10430   done
10431 fi
10432
10433 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10434   set dummy gcj
10435   if test $build = $target ; then
10436     GCJ_FOR_TARGET="$2"
10437   else
10438     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10439   fi
10440 else
10441   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10442 fi
10443
10444
10445
10446 if test -n "$GFORTRAN_FOR_TARGET"; then
10447   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10448 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10449   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10450 fi
10451
10452 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10453   for ncn_progname in gfortran; do
10454     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10455 set dummy ${ncn_progname}; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   if test -n "$GFORTRAN_FOR_TARGET"; then
10462   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10463 else
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10466 do
10467   IFS=$as_save_IFS
10468   test -z "$as_dir" && as_dir=.
10469     for ac_exec_ext in '' $ac_executable_extensions; do
10470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473     break 2
10474   fi
10475 done
10476   done
10477 IFS=$as_save_IFS
10478
10479 fi
10480 fi
10481 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10482 if test -n "$GFORTRAN_FOR_TARGET"; then
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10484 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10485 else
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10488 fi
10489
10490
10491   done
10492 fi
10493
10494 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10495   for ncn_progname in gfortran; do
10496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10497 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10498     if test -x $with_build_time_tools/${ncn_progname}; then
10499       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10501 $as_echo "yes" >&6; }
10502       break
10503     else
10504       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506     fi
10507   done
10508 fi
10509
10510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10511   for ncn_progname in gfortran; do
10512     if test -n "$ncn_target_tool_prefix"; then
10513       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10514 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   if test -n "$GFORTRAN_FOR_TARGET"; then
10521   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10522 else
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10525 do
10526   IFS=$as_save_IFS
10527   test -z "$as_dir" && as_dir=.
10528     for ac_exec_ext in '' $ac_executable_extensions; do
10529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532     break 2
10533   fi
10534 done
10535   done
10536 IFS=$as_save_IFS
10537
10538 fi
10539 fi
10540 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10541 if test -n "$GFORTRAN_FOR_TARGET"; then
10542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10543 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10544 else
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10547 fi
10548
10549
10550     fi
10551     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10552       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10553 set dummy ${ncn_progname}; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10557   $as_echo_n "(cached) " >&6
10558 else
10559   if test -n "$GFORTRAN_FOR_TARGET"; then
10560   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10561 else
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10564 do
10565   IFS=$as_save_IFS
10566   test -z "$as_dir" && as_dir=.
10567     for ac_exec_ext in '' $ac_executable_extensions; do
10568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574   done
10575 IFS=$as_save_IFS
10576
10577 fi
10578 fi
10579 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10580 if test -n "$GFORTRAN_FOR_TARGET"; then
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10582 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10583 else
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10586 fi
10587
10588
10589     fi
10590     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10591   done
10592 fi
10593
10594 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10595   set dummy gfortran
10596   if test $build = $target ; then
10597     GFORTRAN_FOR_TARGET="$2"
10598   else
10599     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10600   fi
10601 else
10602   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10603 fi
10604
10605
10606
10607 if test -n "$GOC_FOR_TARGET"; then
10608   ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10609 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10610   GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10611 fi
10612
10613 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10614   for ncn_progname in gccgo; do
10615     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10616 set dummy ${ncn_progname}; ac_word=$2
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10618 $as_echo_n "checking for $ac_word... " >&6; }
10619 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   if test -n "$GOC_FOR_TARGET"; then
10623   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10624 else
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10627 do
10628   IFS=$as_save_IFS
10629   test -z "$as_dir" && as_dir=.
10630     for ac_exec_ext in '' $ac_executable_extensions; do
10631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634     break 2
10635   fi
10636 done
10637   done
10638 IFS=$as_save_IFS
10639
10640 fi
10641 fi
10642 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10643 if test -n "$GOC_FOR_TARGET"; then
10644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10645 $as_echo "$GOC_FOR_TARGET" >&6; }
10646 else
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10649 fi
10650
10651
10652   done
10653 fi
10654
10655 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10656   for ncn_progname in gccgo; do
10657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10658 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10659     if test -x $with_build_time_tools/${ncn_progname}; then
10660       ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662 $as_echo "yes" >&6; }
10663       break
10664     else
10665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667     fi
10668   done
10669 fi
10670
10671 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10672   for ncn_progname in gccgo; do
10673     if test -n "$ncn_target_tool_prefix"; then
10674       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10675 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   if test -n "$GOC_FOR_TARGET"; then
10682   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10683 else
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10686 do
10687   IFS=$as_save_IFS
10688   test -z "$as_dir" && as_dir=.
10689     for ac_exec_ext in '' $ac_executable_extensions; do
10690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10691     ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693     break 2
10694   fi
10695 done
10696   done
10697 IFS=$as_save_IFS
10698
10699 fi
10700 fi
10701 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10702 if test -n "$GOC_FOR_TARGET"; then
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10704 $as_echo "$GOC_FOR_TARGET" >&6; }
10705 else
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10708 fi
10709
10710
10711     fi
10712     if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10713       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10714 set dummy ${ncn_progname}; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   if test -n "$GOC_FOR_TARGET"; then
10721   ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10722 else
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724 for as_dir in $PATH
10725 do
10726   IFS=$as_save_IFS
10727   test -z "$as_dir" && as_dir=.
10728     for ac_exec_ext in '' $ac_executable_extensions; do
10729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10730     ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732     break 2
10733   fi
10734 done
10735   done
10736 IFS=$as_save_IFS
10737
10738 fi
10739 fi
10740 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10741 if test -n "$GOC_FOR_TARGET"; then
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10743 $as_echo "$GOC_FOR_TARGET" >&6; }
10744 else
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10747 fi
10748
10749
10750     fi
10751     test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10752   done
10753 fi
10754
10755 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10756   set dummy gccgo
10757   if test $build = $target ; then
10758     GOC_FOR_TARGET="$2"
10759   else
10760     GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10761   fi
10762 else
10763   GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10764 fi
10765
10766
10767
10768 cat > conftest.c << \EOF
10769 #ifdef __GNUC__
10770   gcc_yay;
10771 #endif
10772 EOF
10773 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10774   have_gcc_for_target=yes
10775 else
10776   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10777   have_gcc_for_target=no
10778 fi
10779 rm conftest.c
10780
10781
10782
10783
10784 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10785   if test -n "$with_build_time_tools"; then
10786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10787 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10788     if test -x $with_build_time_tools/ar; then
10789       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10790       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10791       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10792 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10793     else
10794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796     fi
10797   elif test $build != $host && test $have_gcc_for_target = yes; then
10798     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10799     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10800     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10801   fi
10802 fi
10803 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10804   # Extract the first word of "ar", so it can be a program name with args.
10805 set dummy ar; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10809   $as_echo_n "(cached) " >&6
10810 else
10811   case $AR_FOR_TARGET in
10812   [\\/]* | ?:[\\/]*)
10813   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10814   ;;
10815   *)
10816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $gcc_cv_tool_dirs
10818 do
10819   IFS=$as_save_IFS
10820   test -z "$as_dir" && as_dir=.
10821     for ac_exec_ext in '' $ac_executable_extensions; do
10822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825     break 2
10826   fi
10827 done
10828   done
10829 IFS=$as_save_IFS
10830
10831   ;;
10832 esac
10833 fi
10834 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10835 if test -n "$AR_FOR_TARGET"; then
10836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10837 $as_echo "$AR_FOR_TARGET" >&6; }
10838 else
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10841 fi
10842
10843
10844 fi
10845 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10846
10847
10848 if test -n "$AR_FOR_TARGET"; then
10849   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10850 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10851   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10852 fi
10853
10854 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10855   for ncn_progname in ar; do
10856     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10857 set dummy ${ncn_progname}; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   if test -n "$AR_FOR_TARGET"; then
10864   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10865 else
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10868 do
10869   IFS=$as_save_IFS
10870   test -z "$as_dir" && as_dir=.
10871     for ac_exec_ext in '' $ac_executable_extensions; do
10872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875     break 2
10876   fi
10877 done
10878   done
10879 IFS=$as_save_IFS
10880
10881 fi
10882 fi
10883 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10884 if test -n "$AR_FOR_TARGET"; then
10885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10886 $as_echo "$AR_FOR_TARGET" >&6; }
10887 else
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10890 fi
10891
10892
10893   done
10894 fi
10895
10896 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10897   for ncn_progname in ar; do
10898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10899 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10900     if test -x $with_build_time_tools/${ncn_progname}; then
10901       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903 $as_echo "yes" >&6; }
10904       break
10905     else
10906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908     fi
10909   done
10910 fi
10911
10912 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10913   for ncn_progname in ar; do
10914     if test -n "$ncn_target_tool_prefix"; then
10915       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10920   $as_echo_n "(cached) " >&6
10921 else
10922   if test -n "$AR_FOR_TARGET"; then
10923   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10924 else
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930     for ac_exec_ext in '' $ac_executable_extensions; do
10931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937   done
10938 IFS=$as_save_IFS
10939
10940 fi
10941 fi
10942 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10943 if test -n "$AR_FOR_TARGET"; then
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10945 $as_echo "$AR_FOR_TARGET" >&6; }
10946 else
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10949 fi
10950
10951
10952     fi
10953     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10954       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10955 set dummy ${ncn_progname}; ac_word=$2
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957 $as_echo_n "checking for $ac_word... " >&6; }
10958 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10959   $as_echo_n "(cached) " >&6
10960 else
10961   if test -n "$AR_FOR_TARGET"; then
10962   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10963 else
10964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10966 do
10967   IFS=$as_save_IFS
10968   test -z "$as_dir" && as_dir=.
10969     for ac_exec_ext in '' $ac_executable_extensions; do
10970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10971     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973     break 2
10974   fi
10975 done
10976   done
10977 IFS=$as_save_IFS
10978
10979 fi
10980 fi
10981 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10982 if test -n "$AR_FOR_TARGET"; then
10983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10984 $as_echo "$AR_FOR_TARGET" >&6; }
10985 else
10986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10988 fi
10989
10990
10991     fi
10992     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10993   done
10994 fi
10995
10996 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10997   set dummy ar
10998   if test $build = $target ; then
10999     AR_FOR_TARGET="$2"
11000   else
11001     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11002   fi
11003 else
11004   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11005 fi
11006
11007 else
11008   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11009 fi
11010
11011
11012
11013
11014 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11015   if test -n "$with_build_time_tools"; then
11016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11017 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11018     if test -x $with_build_time_tools/as; then
11019       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11020       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11022 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11023     else
11024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026     fi
11027   elif test $build != $host && test $have_gcc_for_target = yes; then
11028     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11029     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11030     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11031   fi
11032 fi
11033 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11034   # Extract the first word of "as", so it can be a program name with args.
11035 set dummy as; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   case $AS_FOR_TARGET in
11042   [\\/]* | ?:[\\/]*)
11043   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11044   ;;
11045   *)
11046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $gcc_cv_tool_dirs
11048 do
11049   IFS=$as_save_IFS
11050   test -z "$as_dir" && as_dir=.
11051     for ac_exec_ext in '' $ac_executable_extensions; do
11052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11053     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055     break 2
11056   fi
11057 done
11058   done
11059 IFS=$as_save_IFS
11060
11061   ;;
11062 esac
11063 fi
11064 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11065 if test -n "$AS_FOR_TARGET"; then
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11067 $as_echo "$AS_FOR_TARGET" >&6; }
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11071 fi
11072
11073
11074 fi
11075 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11076
11077
11078 if test -n "$AS_FOR_TARGET"; then
11079   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11080 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11081   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11082 fi
11083
11084 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11085   for ncn_progname in as; do
11086     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11087 set dummy ${ncn_progname}; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11091   $as_echo_n "(cached) " >&6
11092 else
11093   if test -n "$AS_FOR_TARGET"; then
11094   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11095 else
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 for as_dir in $PATH
11098 do
11099   IFS=$as_save_IFS
11100   test -z "$as_dir" && as_dir=.
11101     for ac_exec_ext in '' $ac_executable_extensions; do
11102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11103     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105     break 2
11106   fi
11107 done
11108   done
11109 IFS=$as_save_IFS
11110
11111 fi
11112 fi
11113 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11114 if test -n "$AS_FOR_TARGET"; then
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11116 $as_echo "$AS_FOR_TARGET" >&6; }
11117 else
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11120 fi
11121
11122
11123   done
11124 fi
11125
11126 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11127   for ncn_progname in as; do
11128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11130     if test -x $with_build_time_tools/${ncn_progname}; then
11131       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; }
11134       break
11135     else
11136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11138     fi
11139   done
11140 fi
11141
11142 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11143   for ncn_progname in as; do
11144     if test -n "$ncn_target_tool_prefix"; then
11145       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   if test -n "$AS_FOR_TARGET"; then
11153   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11157 do
11158   IFS=$as_save_IFS
11159   test -z "$as_dir" && as_dir=.
11160     for ac_exec_ext in '' $ac_executable_extensions; do
11161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164     break 2
11165   fi
11166 done
11167   done
11168 IFS=$as_save_IFS
11169
11170 fi
11171 fi
11172 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11173 if test -n "$AS_FOR_TARGET"; then
11174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11175 $as_echo "$AS_FOR_TARGET" >&6; }
11176 else
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179 fi
11180
11181
11182     fi
11183     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11184       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11189   $as_echo_n "(cached) " >&6
11190 else
11191   if test -n "$AS_FOR_TARGET"; then
11192   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11193 else
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11196 do
11197   IFS=$as_save_IFS
11198   test -z "$as_dir" && as_dir=.
11199     for ac_exec_ext in '' $ac_executable_extensions; do
11200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203     break 2
11204   fi
11205 done
11206   done
11207 IFS=$as_save_IFS
11208
11209 fi
11210 fi
11211 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11212 if test -n "$AS_FOR_TARGET"; then
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11214 $as_echo "$AS_FOR_TARGET" >&6; }
11215 else
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11218 fi
11219
11220
11221     fi
11222     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11223   done
11224 fi
11225
11226 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11227   set dummy as
11228   if test $build = $target ; then
11229     AS_FOR_TARGET="$2"
11230   else
11231     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11232   fi
11233 else
11234   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11235 fi
11236
11237 else
11238   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11239 fi
11240
11241
11242
11243
11244 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11245   if test -n "$with_build_time_tools"; then
11246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11247 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11248     if test -x $with_build_time_tools/dlltool; then
11249       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11250       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11252 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11253     else
11254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256     fi
11257   elif test $build != $host && test $have_gcc_for_target = yes; then
11258     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11259     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11260     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11261   fi
11262 fi
11263 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11264   # Extract the first word of "dlltool", so it can be a program name with args.
11265 set dummy dlltool; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11269   $as_echo_n "(cached) " >&6
11270 else
11271   case $DLLTOOL_FOR_TARGET in
11272   [\\/]* | ?:[\\/]*)
11273   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11274   ;;
11275   *)
11276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $gcc_cv_tool_dirs
11278 do
11279   IFS=$as_save_IFS
11280   test -z "$as_dir" && as_dir=.
11281     for ac_exec_ext in '' $ac_executable_extensions; do
11282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285     break 2
11286   fi
11287 done
11288   done
11289 IFS=$as_save_IFS
11290
11291   ;;
11292 esac
11293 fi
11294 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11295 if test -n "$DLLTOOL_FOR_TARGET"; then
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11297 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11298 else
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302
11303
11304 fi
11305 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11306
11307
11308 if test -n "$DLLTOOL_FOR_TARGET"; then
11309   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11310 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11311   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11312 fi
11313
11314 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11315   for ncn_progname in dlltool; do
11316     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11321   $as_echo_n "(cached) " >&6
11322 else
11323   if test -n "$DLLTOOL_FOR_TARGET"; then
11324   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329   IFS=$as_save_IFS
11330   test -z "$as_dir" && as_dir=.
11331     for ac_exec_ext in '' $ac_executable_extensions; do
11332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11333     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11335     break 2
11336   fi
11337 done
11338   done
11339 IFS=$as_save_IFS
11340
11341 fi
11342 fi
11343 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11344 if test -n "$DLLTOOL_FOR_TARGET"; then
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11346 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11350 fi
11351
11352
11353   done
11354 fi
11355
11356 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11357   for ncn_progname in dlltool; do
11358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11359 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11360     if test -x $with_build_time_tools/${ncn_progname}; then
11361       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363 $as_echo "yes" >&6; }
11364       break
11365     else
11366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368     fi
11369   done
11370 fi
11371
11372 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11373   for ncn_progname in dlltool; do
11374     if test -n "$ncn_target_tool_prefix"; then
11375       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11376 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   if test -n "$DLLTOOL_FOR_TARGET"; then
11383   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11384 else
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388   IFS=$as_save_IFS
11389   test -z "$as_dir" && as_dir=.
11390     for ac_exec_ext in '' $ac_executable_extensions; do
11391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394     break 2
11395   fi
11396 done
11397   done
11398 IFS=$as_save_IFS
11399
11400 fi
11401 fi
11402 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11403 if test -n "$DLLTOOL_FOR_TARGET"; then
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11405 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11406 else
11407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11409 fi
11410
11411
11412     fi
11413     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11414       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11415 set dummy ${ncn_progname}; ac_word=$2
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417 $as_echo_n "checking for $ac_word... " >&6; }
11418 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   if test -n "$DLLTOOL_FOR_TARGET"; then
11422   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11423 else
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH
11426 do
11427   IFS=$as_save_IFS
11428   test -z "$as_dir" && as_dir=.
11429     for ac_exec_ext in '' $ac_executable_extensions; do
11430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433     break 2
11434   fi
11435 done
11436   done
11437 IFS=$as_save_IFS
11438
11439 fi
11440 fi
11441 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11442 if test -n "$DLLTOOL_FOR_TARGET"; then
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11444 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11448 fi
11449
11450
11451     fi
11452     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11453   done
11454 fi
11455
11456 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11457   set dummy dlltool
11458   if test $build = $target ; then
11459     DLLTOOL_FOR_TARGET="$2"
11460   else
11461     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11462   fi
11463 else
11464   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11465 fi
11466
11467 else
11468   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11469 fi
11470
11471
11472
11473
11474 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11475   if test -n "$with_build_time_tools"; then
11476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11477 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11478     if test -x $with_build_time_tools/ld; then
11479       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11480       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11482 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11483     else
11484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486     fi
11487   elif test $build != $host && test $have_gcc_for_target = yes; then
11488     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11489     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11490     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11491   fi
11492 fi
11493 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11494   # Extract the first word of "ld", so it can be a program name with args.
11495 set dummy ld; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11499   $as_echo_n "(cached) " >&6
11500 else
11501   case $LD_FOR_TARGET in
11502   [\\/]* | ?:[\\/]*)
11503   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11504   ;;
11505   *)
11506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $gcc_cv_tool_dirs
11508 do
11509   IFS=$as_save_IFS
11510   test -z "$as_dir" && as_dir=.
11511     for ac_exec_ext in '' $ac_executable_extensions; do
11512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515     break 2
11516   fi
11517 done
11518   done
11519 IFS=$as_save_IFS
11520
11521   ;;
11522 esac
11523 fi
11524 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11525 if test -n "$LD_FOR_TARGET"; then
11526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11527 $as_echo "$LD_FOR_TARGET" >&6; }
11528 else
11529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11531 fi
11532
11533
11534 fi
11535 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11536
11537
11538 if test -n "$LD_FOR_TARGET"; then
11539   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11540 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11541   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11542 fi
11543
11544 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11545   for ncn_progname in ld; do
11546     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11547 set dummy ${ncn_progname}; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   if test -n "$LD_FOR_TARGET"; then
11554   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11555 else
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559   IFS=$as_save_IFS
11560   test -z "$as_dir" && as_dir=.
11561     for ac_exec_ext in '' $ac_executable_extensions; do
11562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565     break 2
11566   fi
11567 done
11568   done
11569 IFS=$as_save_IFS
11570
11571 fi
11572 fi
11573 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11574 if test -n "$LD_FOR_TARGET"; then
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11576 $as_echo "$LD_FOR_TARGET" >&6; }
11577 else
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 fi
11581
11582
11583   done
11584 fi
11585
11586 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11587   for ncn_progname in ld; do
11588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11589 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11590     if test -x $with_build_time_tools/${ncn_progname}; then
11591       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593 $as_echo "yes" >&6; }
11594       break
11595     else
11596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11598     fi
11599   done
11600 fi
11601
11602 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11603   for ncn_progname in ld; do
11604     if test -n "$ncn_target_tool_prefix"; then
11605       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11606 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11608 $as_echo_n "checking for $ac_word... " >&6; }
11609 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   if test -n "$LD_FOR_TARGET"; then
11613   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11614 else
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618   IFS=$as_save_IFS
11619   test -z "$as_dir" && as_dir=.
11620     for ac_exec_ext in '' $ac_executable_extensions; do
11621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624     break 2
11625   fi
11626 done
11627   done
11628 IFS=$as_save_IFS
11629
11630 fi
11631 fi
11632 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11633 if test -n "$LD_FOR_TARGET"; then
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11635 $as_echo "$LD_FOR_TARGET" >&6; }
11636 else
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11639 fi
11640
11641
11642     fi
11643     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11644       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11645 set dummy ${ncn_progname}; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   if test -n "$LD_FOR_TARGET"; then
11652   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11653 else
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657   IFS=$as_save_IFS
11658   test -z "$as_dir" && as_dir=.
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663     break 2
11664   fi
11665 done
11666   done
11667 IFS=$as_save_IFS
11668
11669 fi
11670 fi
11671 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11672 if test -n "$LD_FOR_TARGET"; then
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11674 $as_echo "$LD_FOR_TARGET" >&6; }
11675 else
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678 fi
11679
11680
11681     fi
11682     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11683   done
11684 fi
11685
11686 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11687   set dummy ld
11688   if test $build = $target ; then
11689     LD_FOR_TARGET="$2"
11690   else
11691     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11692   fi
11693 else
11694   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11695 fi
11696
11697 else
11698   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11699 fi
11700
11701
11702
11703
11704 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11705   if test -n "$with_build_time_tools"; then
11706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11707 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11708     if test -x $with_build_time_tools/lipo; then
11709       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11710       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11712 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11713     else
11714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716     fi
11717   elif test $build != $host && test $have_gcc_for_target = yes; then
11718     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11719     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11720     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11721   fi
11722 fi
11723 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11724   # Extract the first word of "lipo", so it can be a program name with args.
11725 set dummy lipo; ac_word=$2
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 $as_echo_n "checking for $ac_word... " >&6; }
11728 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   case $LIPO_FOR_TARGET in
11732   [\\/]* | ?:[\\/]*)
11733   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11734   ;;
11735   *)
11736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $gcc_cv_tool_dirs
11738 do
11739   IFS=$as_save_IFS
11740   test -z "$as_dir" && as_dir=.
11741     for ac_exec_ext in '' $ac_executable_extensions; do
11742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745     break 2
11746   fi
11747 done
11748   done
11749 IFS=$as_save_IFS
11750
11751   ;;
11752 esac
11753 fi
11754 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11755 if test -n "$LIPO_FOR_TARGET"; then
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11757 $as_echo "$LIPO_FOR_TARGET" >&6; }
11758 else
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761 fi
11762
11763
11764 fi
11765 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11766
11767
11768 if test -n "$LIPO_FOR_TARGET"; then
11769   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11770 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11771   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11772 fi
11773
11774 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11775   for ncn_progname in lipo; do
11776     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   if test -n "$LIPO_FOR_TARGET"; then
11784   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11785 else
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789   IFS=$as_save_IFS
11790   test -z "$as_dir" && as_dir=.
11791     for ac_exec_ext in '' $ac_executable_extensions; do
11792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11793     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795     break 2
11796   fi
11797 done
11798   done
11799 IFS=$as_save_IFS
11800
11801 fi
11802 fi
11803 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11804 if test -n "$LIPO_FOR_TARGET"; then
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11806 $as_echo "$LIPO_FOR_TARGET" >&6; }
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811
11812
11813   done
11814 fi
11815
11816 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11817   for ncn_progname in lipo; do
11818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11819 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11820     if test -x $with_build_time_tools/${ncn_progname}; then
11821       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824       break
11825     else
11826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828     fi
11829   done
11830 fi
11831
11832 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11833   for ncn_progname in lipo; do
11834     if test -n "$ncn_target_tool_prefix"; then
11835       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11836 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11838 $as_echo_n "checking for $ac_word... " >&6; }
11839 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11840   $as_echo_n "(cached) " >&6
11841 else
11842   if test -n "$LIPO_FOR_TARGET"; then
11843   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11844 else
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848   IFS=$as_save_IFS
11849   test -z "$as_dir" && as_dir=.
11850     for ac_exec_ext in '' $ac_executable_extensions; do
11851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11854     break 2
11855   fi
11856 done
11857   done
11858 IFS=$as_save_IFS
11859
11860 fi
11861 fi
11862 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11863 if test -n "$LIPO_FOR_TARGET"; then
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11865 $as_echo "$LIPO_FOR_TARGET" >&6; }
11866 else
11867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869 fi
11870
11871
11872     fi
11873     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11874       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11875 set dummy ${ncn_progname}; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   if test -n "$LIPO_FOR_TARGET"; then
11882   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11883 else
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11886 do
11887   IFS=$as_save_IFS
11888   test -z "$as_dir" && as_dir=.
11889     for ac_exec_ext in '' $ac_executable_extensions; do
11890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11891     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11893     break 2
11894   fi
11895 done
11896   done
11897 IFS=$as_save_IFS
11898
11899 fi
11900 fi
11901 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11902 if test -n "$LIPO_FOR_TARGET"; then
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11904 $as_echo "$LIPO_FOR_TARGET" >&6; }
11905 else
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 fi
11909
11910
11911     fi
11912     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11913   done
11914 fi
11915
11916 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11917   set dummy lipo
11918   if test $build = $target ; then
11919     LIPO_FOR_TARGET="$2"
11920   else
11921     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11922   fi
11923 else
11924   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11925 fi
11926
11927 else
11928   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11929 fi
11930
11931
11932
11933
11934 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11935   if test -n "$with_build_time_tools"; then
11936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11937 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11938     if test -x $with_build_time_tools/nm; then
11939       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11940       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11942 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11943     else
11944       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11946     fi
11947   elif test $build != $host && test $have_gcc_for_target = yes; then
11948     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11949     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11950     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11951   fi
11952 fi
11953 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11954   # Extract the first word of "nm", so it can be a program name with args.
11955 set dummy nm; ac_word=$2
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957 $as_echo_n "checking for $ac_word... " >&6; }
11958 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   case $NM_FOR_TARGET in
11962   [\\/]* | ?:[\\/]*)
11963   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11964   ;;
11965   *)
11966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $gcc_cv_tool_dirs
11968 do
11969   IFS=$as_save_IFS
11970   test -z "$as_dir" && as_dir=.
11971     for ac_exec_ext in '' $ac_executable_extensions; do
11972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975     break 2
11976   fi
11977 done
11978   done
11979 IFS=$as_save_IFS
11980
11981   ;;
11982 esac
11983 fi
11984 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11985 if test -n "$NM_FOR_TARGET"; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11987 $as_echo "$NM_FOR_TARGET" >&6; }
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992
11993
11994 fi
11995 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11996
11997
11998 if test -n "$NM_FOR_TARGET"; then
11999   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12000 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12001   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12002 fi
12003
12004 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12005   for ncn_progname in nm; do
12006     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12007 set dummy ${ncn_progname}; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013   if test -n "$NM_FOR_TARGET"; then
12014   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12015 else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019   IFS=$as_save_IFS
12020   test -z "$as_dir" && as_dir=.
12021     for ac_exec_ext in '' $ac_executable_extensions; do
12022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12023     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025     break 2
12026   fi
12027 done
12028   done
12029 IFS=$as_save_IFS
12030
12031 fi
12032 fi
12033 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12034 if test -n "$NM_FOR_TARGET"; then
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12036 $as_echo "$NM_FOR_TARGET" >&6; }
12037 else
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040 fi
12041
12042
12043   done
12044 fi
12045
12046 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12047   for ncn_progname in nm; do
12048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12049 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12050     if test -x $with_build_time_tools/${ncn_progname}; then
12051       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12052       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12053 $as_echo "yes" >&6; }
12054       break
12055     else
12056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058     fi
12059   done
12060 fi
12061
12062 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12063   for ncn_progname in nm; do
12064     if test -n "$ncn_target_tool_prefix"; then
12065       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12066 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068 $as_echo_n "checking for $ac_word... " >&6; }
12069 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   if test -n "$NM_FOR_TARGET"; then
12073   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12074 else
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12077 do
12078   IFS=$as_save_IFS
12079   test -z "$as_dir" && as_dir=.
12080     for ac_exec_ext in '' $ac_executable_extensions; do
12081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084     break 2
12085   fi
12086 done
12087   done
12088 IFS=$as_save_IFS
12089
12090 fi
12091 fi
12092 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12093 if test -n "$NM_FOR_TARGET"; then
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12095 $as_echo "$NM_FOR_TARGET" >&6; }
12096 else
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12099 fi
12100
12101
12102     fi
12103     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12104       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12105 set dummy ${ncn_progname}; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   if test -n "$NM_FOR_TARGET"; then
12112   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12113 else
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117   IFS=$as_save_IFS
12118   test -z "$as_dir" && as_dir=.
12119     for ac_exec_ext in '' $ac_executable_extensions; do
12120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123     break 2
12124   fi
12125 done
12126   done
12127 IFS=$as_save_IFS
12128
12129 fi
12130 fi
12131 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12132 if test -n "$NM_FOR_TARGET"; then
12133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12134 $as_echo "$NM_FOR_TARGET" >&6; }
12135 else
12136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 fi
12139
12140
12141     fi
12142     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12143   done
12144 fi
12145
12146 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12147   set dummy nm
12148   if test $build = $target ; then
12149     NM_FOR_TARGET="$2"
12150   else
12151     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12152   fi
12153 else
12154   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12155 fi
12156
12157 else
12158   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12159 fi
12160
12161
12162
12163
12164 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12165   if test -n "$with_build_time_tools"; then
12166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12167 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12168     if test -x $with_build_time_tools/objdump; then
12169       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12170       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12172 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12173     else
12174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12176     fi
12177   elif test $build != $host && test $have_gcc_for_target = yes; then
12178     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12179     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12180     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12181   fi
12182 fi
12183 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12184   # Extract the first word of "objdump", so it can be a program name with args.
12185 set dummy objdump; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12189   $as_echo_n "(cached) " >&6
12190 else
12191   case $OBJDUMP_FOR_TARGET in
12192   [\\/]* | ?:[\\/]*)
12193   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12194   ;;
12195   *)
12196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $gcc_cv_tool_dirs
12198 do
12199   IFS=$as_save_IFS
12200   test -z "$as_dir" && as_dir=.
12201     for ac_exec_ext in '' $ac_executable_extensions; do
12202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205     break 2
12206   fi
12207 done
12208   done
12209 IFS=$as_save_IFS
12210
12211   ;;
12212 esac
12213 fi
12214 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12215 if test -n "$OBJDUMP_FOR_TARGET"; then
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12217 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222
12223
12224 fi
12225 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12226
12227
12228 if test -n "$OBJDUMP_FOR_TARGET"; then
12229   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12230 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12231   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12232 fi
12233
12234 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12235   for ncn_progname in objdump; do
12236     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12237 set dummy ${ncn_progname}; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243   if test -n "$OBJDUMP_FOR_TARGET"; then
12244   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251     for ac_exec_ext in '' $ac_executable_extensions; do
12252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12253     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258   done
12259 IFS=$as_save_IFS
12260
12261 fi
12262 fi
12263 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12264 if test -n "$OBJDUMP_FOR_TARGET"; then
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12266 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12267 else
12268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273   done
12274 fi
12275
12276 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12277   for ncn_progname in objdump; do
12278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12279 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12280     if test -x $with_build_time_tools/${ncn_progname}; then
12281       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284       break
12285     else
12286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288     fi
12289   done
12290 fi
12291
12292 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12293   for ncn_progname in objdump; do
12294     if test -n "$ncn_target_tool_prefix"; then
12295       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12296 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12300   $as_echo_n "(cached) " >&6
12301 else
12302   if test -n "$OBJDUMP_FOR_TARGET"; then
12303   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12304 else
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310     for ac_exec_ext in '' $ac_executable_extensions; do
12311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317   done
12318 IFS=$as_save_IFS
12319
12320 fi
12321 fi
12322 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12323 if test -n "$OBJDUMP_FOR_TARGET"; then
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12325 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12326 else
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12329 fi
12330
12331
12332     fi
12333     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12334       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12335 set dummy ${ncn_progname}; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   if test -n "$OBJDUMP_FOR_TARGET"; then
12342   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349     for ac_exec_ext in '' $ac_executable_extensions; do
12350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12351     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356   done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12362 if test -n "$OBJDUMP_FOR_TARGET"; then
12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12364 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12365 else
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12368 fi
12369
12370
12371     fi
12372     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12373   done
12374 fi
12375
12376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12377   set dummy objdump
12378   if test $build = $target ; then
12379     OBJDUMP_FOR_TARGET="$2"
12380   else
12381     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12382   fi
12383 else
12384   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12385 fi
12386
12387 else
12388   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12389 fi
12390
12391
12392
12393
12394 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12395   if test -n "$with_build_time_tools"; then
12396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12397 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12398     if test -x $with_build_time_tools/ranlib; then
12399       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12400       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12402 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12403     else
12404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406     fi
12407   elif test $build != $host && test $have_gcc_for_target = yes; then
12408     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12409     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12410     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12411   fi
12412 fi
12413 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12414   # Extract the first word of "ranlib", so it can be a program name with args.
12415 set dummy ranlib; ac_word=$2
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417 $as_echo_n "checking for $ac_word... " >&6; }
12418 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12419   $as_echo_n "(cached) " >&6
12420 else
12421   case $RANLIB_FOR_TARGET in
12422   [\\/]* | ?:[\\/]*)
12423   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12424   ;;
12425   *)
12426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $gcc_cv_tool_dirs
12428 do
12429   IFS=$as_save_IFS
12430   test -z "$as_dir" && as_dir=.
12431     for ac_exec_ext in '' $ac_executable_extensions; do
12432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12433     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435     break 2
12436   fi
12437 done
12438   done
12439 IFS=$as_save_IFS
12440
12441   ;;
12442 esac
12443 fi
12444 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12445 if test -n "$RANLIB_FOR_TARGET"; then
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12447 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12448 else
12449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12451 fi
12452
12453
12454 fi
12455 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12456
12457
12458 if test -n "$RANLIB_FOR_TARGET"; then
12459   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12460 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12461   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12462 fi
12463
12464 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12465   for ncn_progname in ranlib; do
12466     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12467 set dummy ${ncn_progname}; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if test -n "$RANLIB_FOR_TARGET"; then
12474   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12494 if test -n "$RANLIB_FOR_TARGET"; then
12495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12496 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12497 else
12498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 fi
12501
12502
12503   done
12504 fi
12505
12506 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12507   for ncn_progname in ranlib; do
12508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12509 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12510     if test -x $with_build_time_tools/${ncn_progname}; then
12511       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12512       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513 $as_echo "yes" >&6; }
12514       break
12515     else
12516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518     fi
12519   done
12520 fi
12521
12522 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12523   for ncn_progname in ranlib; do
12524     if test -n "$ncn_target_tool_prefix"; then
12525       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12526 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 $as_echo_n "checking for $ac_word... " >&6; }
12529 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532   if test -n "$RANLIB_FOR_TARGET"; then
12533   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12534 else
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538   IFS=$as_save_IFS
12539   test -z "$as_dir" && as_dir=.
12540     for ac_exec_ext in '' $ac_executable_extensions; do
12541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12542     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549
12550 fi
12551 fi
12552 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12553 if test -n "$RANLIB_FOR_TARGET"; then
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12555 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560
12561
12562     fi
12563     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12564       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12565 set dummy ${ncn_progname}; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   if test -n "$RANLIB_FOR_TARGET"; then
12572   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12573 else
12574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12575 for as_dir in $PATH
12576 do
12577   IFS=$as_save_IFS
12578   test -z "$as_dir" && as_dir=.
12579     for ac_exec_ext in '' $ac_executable_extensions; do
12580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12581     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12583     break 2
12584   fi
12585 done
12586   done
12587 IFS=$as_save_IFS
12588
12589 fi
12590 fi
12591 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12592 if test -n "$RANLIB_FOR_TARGET"; then
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12594 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12595 else
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 fi
12599
12600
12601     fi
12602     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12603   done
12604 fi
12605
12606 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12607   set dummy ranlib
12608   if test $build = $target ; then
12609     RANLIB_FOR_TARGET="$2"
12610   else
12611     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12612   fi
12613 else
12614   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12615 fi
12616
12617 else
12618   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12619 fi
12620
12621
12622
12623
12624 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12625   if test -n "$with_build_time_tools"; then
12626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12627 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12628     if test -x $with_build_time_tools/readelf; then
12629       READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12630       ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12632 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12633     else
12634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636     fi
12637   elif test $build != $host && test $have_gcc_for_target = yes; then
12638     READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12639     test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12640     test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12641   fi
12642 fi
12643 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12644   # Extract the first word of "readelf", so it can be a program name with args.
12645 set dummy readelf; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   case $READELF_FOR_TARGET in
12652   [\\/]* | ?:[\\/]*)
12653   ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12654   ;;
12655   *)
12656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $gcc_cv_tool_dirs
12658 do
12659   IFS=$as_save_IFS
12660   test -z "$as_dir" && as_dir=.
12661     for ac_exec_ext in '' $ac_executable_extensions; do
12662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663     ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665     break 2
12666   fi
12667 done
12668   done
12669 IFS=$as_save_IFS
12670
12671   ;;
12672 esac
12673 fi
12674 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12675 if test -n "$READELF_FOR_TARGET"; then
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12677 $as_echo "$READELF_FOR_TARGET" >&6; }
12678 else
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682
12683
12684 fi
12685 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12686
12687
12688 if test -n "$READELF_FOR_TARGET"; then
12689   ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12690 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12691   READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12692 fi
12693
12694 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12695   for ncn_progname in readelf; do
12696     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12697 set dummy ${ncn_progname}; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   if test -n "$READELF_FOR_TARGET"; then
12704   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12705 else
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12708 do
12709   IFS=$as_save_IFS
12710   test -z "$as_dir" && as_dir=.
12711     for ac_exec_ext in '' $ac_executable_extensions; do
12712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12713     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715     break 2
12716   fi
12717 done
12718   done
12719 IFS=$as_save_IFS
12720
12721 fi
12722 fi
12723 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12724 if test -n "$READELF_FOR_TARGET"; then
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12726 $as_echo "$READELF_FOR_TARGET" >&6; }
12727 else
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731
12732
12733   done
12734 fi
12735
12736 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12737   for ncn_progname in readelf; do
12738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12739 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12740     if test -x $with_build_time_tools/${ncn_progname}; then
12741       ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743 $as_echo "yes" >&6; }
12744       break
12745     else
12746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748     fi
12749   done
12750 fi
12751
12752 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12753   for ncn_progname in readelf; do
12754     if test -n "$ncn_target_tool_prefix"; then
12755       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12760   $as_echo_n "(cached) " >&6
12761 else
12762   if test -n "$READELF_FOR_TARGET"; then
12763   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768   IFS=$as_save_IFS
12769   test -z "$as_dir" && as_dir=.
12770     for ac_exec_ext in '' $ac_executable_extensions; do
12771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12772     ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774     break 2
12775   fi
12776 done
12777   done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12783 if test -n "$READELF_FOR_TARGET"; then
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12785 $as_echo "$READELF_FOR_TARGET" >&6; }
12786 else
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792     fi
12793     if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12794       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12799   $as_echo_n "(cached) " >&6
12800 else
12801   if test -n "$READELF_FOR_TARGET"; then
12802   ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809     for ac_exec_ext in '' $ac_executable_extensions; do
12810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811     ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816   done
12817 IFS=$as_save_IFS
12818
12819 fi
12820 fi
12821 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12822 if test -n "$READELF_FOR_TARGET"; then
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12824 $as_echo "$READELF_FOR_TARGET" >&6; }
12825 else
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831     fi
12832     test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12833   done
12834 fi
12835
12836 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12837   set dummy readelf
12838   if test $build = $target ; then
12839     READELF_FOR_TARGET="$2"
12840   else
12841     READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12842   fi
12843 else
12844   READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12845 fi
12846
12847 else
12848   READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12849 fi
12850
12851
12852
12853
12854 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12855   if test -n "$with_build_time_tools"; then
12856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12857 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12858     if test -x $with_build_time_tools/strip; then
12859       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12860       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12862 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12863     else
12864       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12866     fi
12867   elif test $build != $host && test $have_gcc_for_target = yes; then
12868     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12869     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12870     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12871   fi
12872 fi
12873 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12874   # Extract the first word of "strip", so it can be a program name with args.
12875 set dummy strip; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12879   $as_echo_n "(cached) " >&6
12880 else
12881   case $STRIP_FOR_TARGET in
12882   [\\/]* | ?:[\\/]*)
12883   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12884   ;;
12885   *)
12886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $gcc_cv_tool_dirs
12888 do
12889   IFS=$as_save_IFS
12890   test -z "$as_dir" && as_dir=.
12891     for ac_exec_ext in '' $ac_executable_extensions; do
12892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12893     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12895     break 2
12896   fi
12897 done
12898   done
12899 IFS=$as_save_IFS
12900
12901   ;;
12902 esac
12903 fi
12904 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12905 if test -n "$STRIP_FOR_TARGET"; then
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12907 $as_echo "$STRIP_FOR_TARGET" >&6; }
12908 else
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910 $as_echo "no" >&6; }
12911 fi
12912
12913
12914 fi
12915 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12916
12917
12918 if test -n "$STRIP_FOR_TARGET"; then
12919   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12920 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12921   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12922 fi
12923
12924 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12925   for ncn_progname in strip; do
12926     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12927 set dummy ${ncn_progname}; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933   if test -n "$STRIP_FOR_TARGET"; then
12934   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12935 else
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939   IFS=$as_save_IFS
12940   test -z "$as_dir" && as_dir=.
12941     for ac_exec_ext in '' $ac_executable_extensions; do
12942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12943     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945     break 2
12946   fi
12947 done
12948   done
12949 IFS=$as_save_IFS
12950
12951 fi
12952 fi
12953 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12954 if test -n "$STRIP_FOR_TARGET"; then
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12956 $as_echo "$STRIP_FOR_TARGET" >&6; }
12957 else
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960 fi
12961
12962
12963   done
12964 fi
12965
12966 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12967   for ncn_progname in strip; do
12968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12969 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12970     if test -x $with_build_time_tools/${ncn_progname}; then
12971       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12973 $as_echo "yes" >&6; }
12974       break
12975     else
12976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12978     fi
12979   done
12980 fi
12981
12982 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12983   for ncn_progname in strip; do
12984     if test -n "$ncn_target_tool_prefix"; then
12985       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12986 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   if test -n "$STRIP_FOR_TARGET"; then
12993   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000     for ac_exec_ext in '' $ac_executable_extensions; do
13001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13002     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004     break 2
13005   fi
13006 done
13007   done
13008 IFS=$as_save_IFS
13009
13010 fi
13011 fi
13012 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13013 if test -n "$STRIP_FOR_TARGET"; then
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13015 $as_echo "$STRIP_FOR_TARGET" >&6; }
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020
13021
13022     fi
13023     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13024       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13025 set dummy ${ncn_progname}; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13029   $as_echo_n "(cached) " >&6
13030 else
13031   if test -n "$STRIP_FOR_TARGET"; then
13032   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13033 else
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13041     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046   done
13047 IFS=$as_save_IFS
13048
13049 fi
13050 fi
13051 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13052 if test -n "$STRIP_FOR_TARGET"; then
13053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13054 $as_echo "$STRIP_FOR_TARGET" >&6; }
13055 else
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13058 fi
13059
13060
13061     fi
13062     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13063   done
13064 fi
13065
13066 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13067   set dummy strip
13068   if test $build = $target ; then
13069     STRIP_FOR_TARGET="$2"
13070   else
13071     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13072   fi
13073 else
13074   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13075 fi
13076
13077 else
13078   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13079 fi
13080
13081
13082
13083
13084 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13085   if test -n "$with_build_time_tools"; then
13086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13087 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13088     if test -x $with_build_time_tools/windres; then
13089       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13090       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13092 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13093     else
13094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096     fi
13097   elif test $build != $host && test $have_gcc_for_target = yes; then
13098     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13099     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13100     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13101   fi
13102 fi
13103 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13104   # Extract the first word of "windres", so it can be a program name with args.
13105 set dummy windres; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13109   $as_echo_n "(cached) " >&6
13110 else
13111   case $WINDRES_FOR_TARGET in
13112   [\\/]* | ?:[\\/]*)
13113   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13114   ;;
13115   *)
13116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $gcc_cv_tool_dirs
13118 do
13119   IFS=$as_save_IFS
13120   test -z "$as_dir" && as_dir=.
13121     for ac_exec_ext in '' $ac_executable_extensions; do
13122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13123     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125     break 2
13126   fi
13127 done
13128   done
13129 IFS=$as_save_IFS
13130
13131   ;;
13132 esac
13133 fi
13134 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13135 if test -n "$WINDRES_FOR_TARGET"; then
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13137 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13138 else
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 fi
13142
13143
13144 fi
13145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13146
13147
13148 if test -n "$WINDRES_FOR_TARGET"; then
13149   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13150 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13151   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13152 fi
13153
13154 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13155   for ncn_progname in windres; do
13156     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13157 set dummy ${ncn_progname}; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   if test -n "$WINDRES_FOR_TARGET"; then
13164   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169   IFS=$as_save_IFS
13170   test -z "$as_dir" && as_dir=.
13171     for ac_exec_ext in '' $ac_executable_extensions; do
13172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175     break 2
13176   fi
13177 done
13178   done
13179 IFS=$as_save_IFS
13180
13181 fi
13182 fi
13183 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13184 if test -n "$WINDRES_FOR_TARGET"; then
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13186 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13187 else
13188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13190 fi
13191
13192
13193   done
13194 fi
13195
13196 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13197   for ncn_progname in windres; do
13198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13199 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13200     if test -x $with_build_time_tools/${ncn_progname}; then
13201       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13203 $as_echo "yes" >&6; }
13204       break
13205     else
13206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208     fi
13209   done
13210 fi
13211
13212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13213   for ncn_progname in windres; do
13214     if test -n "$ncn_target_tool_prefix"; then
13215       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   if test -n "$WINDRES_FOR_TARGET"; then
13223   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230     for ac_exec_ext in '' $ac_executable_extensions; do
13231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13232     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237   done
13238 IFS=$as_save_IFS
13239
13240 fi
13241 fi
13242 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13243 if test -n "$WINDRES_FOR_TARGET"; then
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13245 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13246 else
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249 fi
13250
13251
13252     fi
13253     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13254       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13255 set dummy ${ncn_progname}; ac_word=$2
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13257 $as_echo_n "checking for $ac_word... " >&6; }
13258 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13259   $as_echo_n "(cached) " >&6
13260 else
13261   if test -n "$WINDRES_FOR_TARGET"; then
13262   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13263 else
13264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13265 for as_dir in $PATH
13266 do
13267   IFS=$as_save_IFS
13268   test -z "$as_dir" && as_dir=.
13269     for ac_exec_ext in '' $ac_executable_extensions; do
13270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13271     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13273     break 2
13274   fi
13275 done
13276   done
13277 IFS=$as_save_IFS
13278
13279 fi
13280 fi
13281 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13282 if test -n "$WINDRES_FOR_TARGET"; then
13283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13284 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13285 else
13286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288 fi
13289
13290
13291     fi
13292     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13293   done
13294 fi
13295
13296 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13297   set dummy windres
13298   if test $build = $target ; then
13299     WINDRES_FOR_TARGET="$2"
13300   else
13301     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13302   fi
13303 else
13304   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13305 fi
13306
13307 else
13308   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13309 fi
13310
13311
13312
13313
13314 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13315   if test -n "$with_build_time_tools"; then
13316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13317 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13318     if test -x $with_build_time_tools/windmc; then
13319       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13320       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13322 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13323     else
13324       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13326     fi
13327   elif test $build != $host && test $have_gcc_for_target = yes; then
13328     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13329     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13330     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13331   fi
13332 fi
13333 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13334   # Extract the first word of "windmc", so it can be a program name with args.
13335 set dummy windmc; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   case $WINDMC_FOR_TARGET in
13342   [\\/]* | ?:[\\/]*)
13343   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13344   ;;
13345   *)
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $gcc_cv_tool_dirs
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_exec_ext in '' $ac_executable_extensions; do
13352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13353     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355     break 2
13356   fi
13357 done
13358   done
13359 IFS=$as_save_IFS
13360
13361   ;;
13362 esac
13363 fi
13364 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13365 if test -n "$WINDMC_FOR_TARGET"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13367 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373
13374 fi
13375 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13376
13377
13378 if test -n "$WINDMC_FOR_TARGET"; then
13379   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13380 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13381   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13382 fi
13383
13384 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13385   for ncn_progname in windmc; do
13386     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13387 set dummy ${ncn_progname}; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13391   $as_echo_n "(cached) " >&6
13392 else
13393   if test -n "$WINDMC_FOR_TARGET"; then
13394   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13395 else
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13398 do
13399   IFS=$as_save_IFS
13400   test -z "$as_dir" && as_dir=.
13401     for ac_exec_ext in '' $ac_executable_extensions; do
13402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13403     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405     break 2
13406   fi
13407 done
13408   done
13409 IFS=$as_save_IFS
13410
13411 fi
13412 fi
13413 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13414 if test -n "$WINDMC_FOR_TARGET"; then
13415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13416 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13417 else
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420 fi
13421
13422
13423   done
13424 fi
13425
13426 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13427   for ncn_progname in windmc; do
13428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13429 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13430     if test -x $with_build_time_tools/${ncn_progname}; then
13431       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433 $as_echo "yes" >&6; }
13434       break
13435     else
13436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13438     fi
13439   done
13440 fi
13441
13442 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13443   for ncn_progname in windmc; do
13444     if test -n "$ncn_target_tool_prefix"; then
13445       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13450   $as_echo_n "(cached) " >&6
13451 else
13452   if test -n "$WINDMC_FOR_TARGET"; then
13453   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13454 else
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458   IFS=$as_save_IFS
13459   test -z "$as_dir" && as_dir=.
13460     for ac_exec_ext in '' $ac_executable_extensions; do
13461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13464     break 2
13465   fi
13466 done
13467   done
13468 IFS=$as_save_IFS
13469
13470 fi
13471 fi
13472 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13473 if test -n "$WINDMC_FOR_TARGET"; then
13474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13475 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13476 else
13477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 fi
13480
13481
13482     fi
13483     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13484       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13485 set dummy ${ncn_progname}; ac_word=$2
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13487 $as_echo_n "checking for $ac_word... " >&6; }
13488 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13489   $as_echo_n "(cached) " >&6
13490 else
13491   if test -n "$WINDMC_FOR_TARGET"; then
13492   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13493 else
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497   IFS=$as_save_IFS
13498   test -z "$as_dir" && as_dir=.
13499     for ac_exec_ext in '' $ac_executable_extensions; do
13500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13501     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13503     break 2
13504   fi
13505 done
13506   done
13507 IFS=$as_save_IFS
13508
13509 fi
13510 fi
13511 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13512 if test -n "$WINDMC_FOR_TARGET"; then
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13514 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13515 else
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13518 fi
13519
13520
13521     fi
13522     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13523   done
13524 fi
13525
13526 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13527   set dummy windmc
13528   if test $build = $target ; then
13529     WINDMC_FOR_TARGET="$2"
13530   else
13531     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13532   fi
13533 else
13534   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13535 fi
13536
13537 else
13538   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13539 fi
13540
13541
13542 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13545 $as_echo_n "checking where to find the target ar... " >&6; }
13546 if test "x${build}" != "x${host}" ; then
13547   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13548     # We already found the complete path
13549     ac_dir=`dirname $AR_FOR_TARGET`
13550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13551 $as_echo "pre-installed in $ac_dir" >&6; }
13552   else
13553     # Canadian cross, just use what we found
13554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13555 $as_echo "pre-installed" >&6; }
13556   fi
13557 else
13558   ok=yes
13559   case " ${configdirs} " in
13560     *" binutils "*) ;;
13561     *) ok=no ;;
13562   esac
13563
13564   if test $ok = yes; then
13565     # An in-tree tool is available and we can use it
13566     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13567     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13568 $as_echo "just compiled" >&6; }
13569   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13570     # We already found the complete path
13571     ac_dir=`dirname $AR_FOR_TARGET`
13572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13573 $as_echo "pre-installed in $ac_dir" >&6; }
13574   elif test "x$target" = "x$host"; then
13575     # We can use an host tool
13576     AR_FOR_TARGET='$(AR)'
13577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13578 $as_echo "host tool" >&6; }
13579   else
13580     # We need a cross tool
13581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13582 $as_echo "pre-installed" >&6; }
13583   fi
13584 fi
13585
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13587 $as_echo_n "checking where to find the target as... " >&6; }
13588 if test "x${build}" != "x${host}" ; then
13589   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13590     # We already found the complete path
13591     ac_dir=`dirname $AS_FOR_TARGET`
13592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13593 $as_echo "pre-installed in $ac_dir" >&6; }
13594   else
13595     # Canadian cross, just use what we found
13596     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13597 $as_echo "pre-installed" >&6; }
13598   fi
13599 else
13600   ok=yes
13601   case " ${configdirs} " in
13602     *" gas "*) ;;
13603     *) ok=no ;;
13604   esac
13605
13606   if test $ok = yes; then
13607     # An in-tree tool is available and we can use it
13608     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13610 $as_echo "just compiled" >&6; }
13611   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13612     # We already found the complete path
13613     ac_dir=`dirname $AS_FOR_TARGET`
13614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13615 $as_echo "pre-installed in $ac_dir" >&6; }
13616   elif test "x$target" = "x$host"; then
13617     # We can use an host tool
13618     AS_FOR_TARGET='$(AS)'
13619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13620 $as_echo "host tool" >&6; }
13621   else
13622     # We need a cross tool
13623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13624 $as_echo "pre-installed" >&6; }
13625   fi
13626 fi
13627
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13629 $as_echo_n "checking where to find the target cc... " >&6; }
13630 if test "x${build}" != "x${host}" ; then
13631   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13632     # We already found the complete path
13633     ac_dir=`dirname $CC_FOR_TARGET`
13634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635 $as_echo "pre-installed in $ac_dir" >&6; }
13636   else
13637     # Canadian cross, just use what we found
13638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13639 $as_echo "pre-installed" >&6; }
13640   fi
13641 else
13642   ok=yes
13643   case " ${configdirs} " in
13644     *" gcc "*) ;;
13645     *) ok=no ;;
13646   esac
13647
13648   if test $ok = yes; then
13649     # An in-tree tool is available and we can use it
13650     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13652 $as_echo "just compiled" >&6; }
13653   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13654     # We already found the complete path
13655     ac_dir=`dirname $CC_FOR_TARGET`
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657 $as_echo "pre-installed in $ac_dir" >&6; }
13658   elif test "x$target" = "x$host"; then
13659     # We can use an host tool
13660     CC_FOR_TARGET='$(CC)'
13661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13662 $as_echo "host tool" >&6; }
13663   else
13664     # We need a cross tool
13665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13666 $as_echo "pre-installed" >&6; }
13667   fi
13668 fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13671 $as_echo_n "checking where to find the target c++... " >&6; }
13672 if test "x${build}" != "x${host}" ; then
13673   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13674     # We already found the complete path
13675     ac_dir=`dirname $CXX_FOR_TARGET`
13676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677 $as_echo "pre-installed in $ac_dir" >&6; }
13678   else
13679     # Canadian cross, just use what we found
13680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13681 $as_echo "pre-installed" >&6; }
13682   fi
13683 else
13684   ok=yes
13685   case " ${configdirs} " in
13686     *" gcc "*) ;;
13687     *) ok=no ;;
13688   esac
13689   case ,${enable_languages}, in
13690     *,c++,*) ;;
13691     *) ok=no ;;
13692   esac
13693   if test $ok = yes; then
13694     # An in-tree tool is available and we can use it
13695     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'
13696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13697 $as_echo "just compiled" >&6; }
13698   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13699     # We already found the complete path
13700     ac_dir=`dirname $CXX_FOR_TARGET`
13701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13702 $as_echo "pre-installed in $ac_dir" >&6; }
13703   elif test "x$target" = "x$host"; then
13704     # We can use an host tool
13705     CXX_FOR_TARGET='$(CXX)'
13706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13707 $as_echo "host tool" >&6; }
13708   else
13709     # We need a cross tool
13710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13711 $as_echo "pre-installed" >&6; }
13712   fi
13713 fi
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13716 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13717 if test "x${build}" != "x${host}" ; then
13718   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13719     # We already found the complete path
13720     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13722 $as_echo "pre-installed in $ac_dir" >&6; }
13723   else
13724     # Canadian cross, just use what we found
13725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13726 $as_echo "pre-installed" >&6; }
13727   fi
13728 else
13729   ok=yes
13730   case " ${configdirs} " in
13731     *" gcc "*) ;;
13732     *) ok=no ;;
13733   esac
13734   case ,${enable_languages}, in
13735     *,c++,*) ;;
13736     *) ok=no ;;
13737   esac
13738   if test $ok = yes; then
13739     # An in-tree tool is available and we can use it
13740     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'
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13742 $as_echo "just compiled" >&6; }
13743   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13744     # We already found the complete path
13745     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13747 $as_echo "pre-installed in $ac_dir" >&6; }
13748   elif test "x$target" = "x$host"; then
13749     # We can use an host tool
13750     RAW_CXX_FOR_TARGET='$(CXX)'
13751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13752 $as_echo "host tool" >&6; }
13753   else
13754     # We need a cross tool
13755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13756 $as_echo "pre-installed" >&6; }
13757   fi
13758 fi
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13761 $as_echo_n "checking where to find the target dlltool... " >&6; }
13762 if test "x${build}" != "x${host}" ; then
13763   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13764     # We already found the complete path
13765     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13767 $as_echo "pre-installed in $ac_dir" >&6; }
13768   else
13769     # Canadian cross, just use what we found
13770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13771 $as_echo "pre-installed" >&6; }
13772   fi
13773 else
13774   ok=yes
13775   case " ${configdirs} " in
13776     *" binutils "*) ;;
13777     *) ok=no ;;
13778   esac
13779
13780   if test $ok = yes; then
13781     # An in-tree tool is available and we can use it
13782     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13784 $as_echo "just compiled" >&6; }
13785   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13786     # We already found the complete path
13787     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13789 $as_echo "pre-installed in $ac_dir" >&6; }
13790   elif test "x$target" = "x$host"; then
13791     # We can use an host tool
13792     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13794 $as_echo "host tool" >&6; }
13795   else
13796     # We need a cross tool
13797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798 $as_echo "pre-installed" >&6; }
13799   fi
13800 fi
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13803 $as_echo_n "checking where to find the target gcc... " >&6; }
13804 if test "x${build}" != "x${host}" ; then
13805   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13806     # We already found the complete path
13807     ac_dir=`dirname $GCC_FOR_TARGET`
13808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13809 $as_echo "pre-installed in $ac_dir" >&6; }
13810   else
13811     # Canadian cross, just use what we found
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13813 $as_echo "pre-installed" >&6; }
13814   fi
13815 else
13816   ok=yes
13817   case " ${configdirs} " in
13818     *" gcc "*) ;;
13819     *) ok=no ;;
13820   esac
13821
13822   if test $ok = yes; then
13823     # An in-tree tool is available and we can use it
13824     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13826 $as_echo "just compiled" >&6; }
13827   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13828     # We already found the complete path
13829     ac_dir=`dirname $GCC_FOR_TARGET`
13830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831 $as_echo "pre-installed in $ac_dir" >&6; }
13832   elif test "x$target" = "x$host"; then
13833     # We can use an host tool
13834     GCC_FOR_TARGET='$()'
13835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13836 $as_echo "host tool" >&6; }
13837   else
13838     # We need a cross tool
13839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840 $as_echo "pre-installed" >&6; }
13841   fi
13842 fi
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13845 $as_echo_n "checking where to find the target gcj... " >&6; }
13846 if test "x${build}" != "x${host}" ; then
13847   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13848     # We already found the complete path
13849     ac_dir=`dirname $GCJ_FOR_TARGET`
13850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851 $as_echo "pre-installed in $ac_dir" >&6; }
13852   else
13853     # Canadian cross, just use what we found
13854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13855 $as_echo "pre-installed" >&6; }
13856   fi
13857 else
13858   ok=yes
13859   case " ${configdirs} " in
13860     *" gcc "*) ;;
13861     *) ok=no ;;
13862   esac
13863   case ,${enable_languages}, in
13864     *,java,*) ;;
13865     *) ok=no ;;
13866   esac
13867   if test $ok = yes; then
13868     # An in-tree tool is available and we can use it
13869     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13871 $as_echo "just compiled" >&6; }
13872   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13873     # We already found the complete path
13874     ac_dir=`dirname $GCJ_FOR_TARGET`
13875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877   elif test "x$target" = "x$host"; then
13878     # We can use an host tool
13879     GCJ_FOR_TARGET='$(GCJ)'
13880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881 $as_echo "host tool" >&6; }
13882   else
13883     # We need a cross tool
13884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13886   fi
13887 fi
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13890 $as_echo_n "checking where to find the target gfortran... " >&6; }
13891 if test "x${build}" != "x${host}" ; then
13892   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13893     # We already found the complete path
13894     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13897   else
13898     # Canadian cross, just use what we found
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13901   fi
13902 else
13903   ok=yes
13904   case " ${configdirs} " in
13905     *" gcc "*) ;;
13906     *) ok=no ;;
13907   esac
13908   case ,${enable_languages}, in
13909     *,fortran,*) ;;
13910     *) ok=no ;;
13911   esac
13912   if test $ok = yes; then
13913     # An in-tree tool is available and we can use it
13914     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916 $as_echo "just compiled" >&6; }
13917   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13918     # We already found the complete path
13919     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921 $as_echo "pre-installed in $ac_dir" >&6; }
13922   elif test "x$target" = "x$host"; then
13923     # We can use an host tool
13924     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926 $as_echo "host tool" >&6; }
13927   else
13928     # We need a cross tool
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930 $as_echo "pre-installed" >&6; }
13931   fi
13932 fi
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13935 $as_echo_n "checking where to find the target gccgo... " >&6; }
13936 if test "x${build}" != "x${host}" ; then
13937   if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13938     # We already found the complete path
13939     ac_dir=`dirname $GOC_FOR_TARGET`
13940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941 $as_echo "pre-installed in $ac_dir" >&6; }
13942   else
13943     # Canadian cross, just use what we found
13944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945 $as_echo "pre-installed" >&6; }
13946   fi
13947 else
13948   ok=yes
13949   case " ${configdirs} " in
13950     *" gcc "*) ;;
13951     *) ok=no ;;
13952   esac
13953   case ,${enable_languages}, in
13954     *,go,*) ;;
13955     *) ok=no ;;
13956   esac
13957   if test $ok = yes; then
13958     # An in-tree tool is available and we can use it
13959     GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961 $as_echo "just compiled" >&6; }
13962   elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13963     # We already found the complete path
13964     ac_dir=`dirname $GOC_FOR_TARGET`
13965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967   elif test "x$target" = "x$host"; then
13968     # We can use an host tool
13969     GOC_FOR_TARGET='$(GOC)'
13970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971 $as_echo "host tool" >&6; }
13972   else
13973     # We need a cross tool
13974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13976   fi
13977 fi
13978
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13980 $as_echo_n "checking where to find the target ld... " >&6; }
13981 if test "x${build}" != "x${host}" ; then
13982   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13983     # We already found the complete path
13984     ac_dir=`dirname $LD_FOR_TARGET`
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987   else
13988     # Canadian cross, just use what we found
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13991   fi
13992 else
13993   ok=yes
13994   case " ${configdirs} " in
13995     *" ld "*) ;;
13996     *) ok=no ;;
13997   esac
13998
13999   if test $ok = yes; then
14000     # An in-tree tool is available and we can use it
14001     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14003 $as_echo "just compiled" >&6; }
14004   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14005     # We already found the complete path
14006     ac_dir=`dirname $LD_FOR_TARGET`
14007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008 $as_echo "pre-installed in $ac_dir" >&6; }
14009   elif test "x$target" = "x$host"; then
14010     # We can use an host tool
14011     LD_FOR_TARGET='$(LD)'
14012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14013 $as_echo "host tool" >&6; }
14014   else
14015     # We need a cross tool
14016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017 $as_echo "pre-installed" >&6; }
14018   fi
14019 fi
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14022 $as_echo_n "checking where to find the target lipo... " >&6; }
14023 if test "x${build}" != "x${host}" ; then
14024   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14025     # We already found the complete path
14026     ac_dir=`dirname $LIPO_FOR_TARGET`
14027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028 $as_echo "pre-installed in $ac_dir" >&6; }
14029   else
14030     # Canadian cross, just use what we found
14031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032 $as_echo "pre-installed" >&6; }
14033   fi
14034 else
14035   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14036     # We already found the complete path
14037     ac_dir=`dirname $LIPO_FOR_TARGET`
14038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040   elif test "x$target" = "x$host"; then
14041     # We can use an host tool
14042     LIPO_FOR_TARGET='$(LIPO)'
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044 $as_echo "host tool" >&6; }
14045   else
14046     # We need a cross tool
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14049   fi
14050 fi
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14053 $as_echo_n "checking where to find the target nm... " >&6; }
14054 if test "x${build}" != "x${host}" ; then
14055   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14056     # We already found the complete path
14057     ac_dir=`dirname $NM_FOR_TARGET`
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059 $as_echo "pre-installed in $ac_dir" >&6; }
14060   else
14061     # Canadian cross, just use what we found
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14064   fi
14065 else
14066   ok=yes
14067   case " ${configdirs} " in
14068     *" binutils "*) ;;
14069     *) ok=no ;;
14070   esac
14071
14072   if test $ok = yes; then
14073     # An in-tree tool is available and we can use it
14074     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076 $as_echo "just compiled" >&6; }
14077   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14078     # We already found the complete path
14079     ac_dir=`dirname $NM_FOR_TARGET`
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082   elif test "x$target" = "x$host"; then
14083     # We can use an host tool
14084     NM_FOR_TARGET='$(NM)'
14085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086 $as_echo "host tool" >&6; }
14087   else
14088     # We need a cross tool
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090 $as_echo "pre-installed" >&6; }
14091   fi
14092 fi
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14095 $as_echo_n "checking where to find the target objdump... " >&6; }
14096 if test "x${build}" != "x${host}" ; then
14097   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14098     # We already found the complete path
14099     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101 $as_echo "pre-installed in $ac_dir" >&6; }
14102   else
14103     # Canadian cross, just use what we found
14104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14106   fi
14107 else
14108   ok=yes
14109   case " ${configdirs} " in
14110     *" binutils "*) ;;
14111     *) ok=no ;;
14112   esac
14113
14114   if test $ok = yes; then
14115     # An in-tree tool is available and we can use it
14116     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14120     # We already found the complete path
14121     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124   elif test "x$target" = "x$host"; then
14125     # We can use an host tool
14126     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14129   else
14130     # We need a cross tool
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133   fi
14134 fi
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14137 $as_echo_n "checking where to find the target ranlib... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14140     # We already found the complete path
14141     ac_dir=`dirname $RANLIB_FOR_TARGET`
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144   else
14145     # Canadian cross, just use what we found
14146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14148   fi
14149 else
14150   ok=yes
14151   case " ${configdirs} " in
14152     *" binutils "*) ;;
14153     *) ok=no ;;
14154   esac
14155
14156   if test $ok = yes; then
14157     # An in-tree tool is available and we can use it
14158     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14162     # We already found the complete path
14163     ac_dir=`dirname $RANLIB_FOR_TARGET`
14164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166   elif test "x$target" = "x$host"; then
14167     # We can use an host tool
14168     RANLIB_FOR_TARGET='$(RANLIB)'
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14171   else
14172     # We need a cross tool
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14175   fi
14176 fi
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14179 $as_echo_n "checking where to find the target readelf... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181   if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14182     # We already found the complete path
14183     ac_dir=`dirname $READELF_FOR_TARGET`
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186   else
14187     # Canadian cross, just use what we found
14188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14190   fi
14191 else
14192   ok=yes
14193   case " ${configdirs} " in
14194     *" binutils "*) ;;
14195     *) ok=no ;;
14196   esac
14197
14198   if test $ok = yes; then
14199     # An in-tree tool is available and we can use it
14200     READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203   elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14204     # We already found the complete path
14205     ac_dir=`dirname $READELF_FOR_TARGET`
14206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208   elif test "x$target" = "x$host"; then
14209     # We can use an host tool
14210     READELF_FOR_TARGET='$(READELF)'
14211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14213   else
14214     # We need a cross tool
14215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14217   fi
14218 fi
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14221 $as_echo_n "checking where to find the target strip... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14224     # We already found the complete path
14225     ac_dir=`dirname $STRIP_FOR_TARGET`
14226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14228   else
14229     # Canadian cross, just use what we found
14230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14232   fi
14233 else
14234   ok=yes
14235   case " ${configdirs} " in
14236     *" binutils "*) ;;
14237     *) ok=no ;;
14238   esac
14239
14240   if test $ok = yes; then
14241     # An in-tree tool is available and we can use it
14242     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14244 $as_echo "just compiled" >&6; }
14245   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14246     # We already found the complete path
14247     ac_dir=`dirname $STRIP_FOR_TARGET`
14248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250   elif test "x$target" = "x$host"; then
14251     # We can use an host tool
14252     STRIP_FOR_TARGET='$(STRIP)'
14253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14254 $as_echo "host tool" >&6; }
14255   else
14256     # We need a cross tool
14257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14258 $as_echo "pre-installed" >&6; }
14259   fi
14260 fi
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14263 $as_echo_n "checking where to find the target windres... " >&6; }
14264 if test "x${build}" != "x${host}" ; then
14265   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14266     # We already found the complete path
14267     ac_dir=`dirname $WINDRES_FOR_TARGET`
14268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14269 $as_echo "pre-installed in $ac_dir" >&6; }
14270   else
14271     # Canadian cross, just use what we found
14272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14274   fi
14275 else
14276   ok=yes
14277   case " ${configdirs} " in
14278     *" binutils "*) ;;
14279     *) ok=no ;;
14280   esac
14281
14282   if test $ok = yes; then
14283     # An in-tree tool is available and we can use it
14284     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14286 $as_echo "just compiled" >&6; }
14287   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14288     # We already found the complete path
14289     ac_dir=`dirname $WINDRES_FOR_TARGET`
14290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291 $as_echo "pre-installed in $ac_dir" >&6; }
14292   elif test "x$target" = "x$host"; then
14293     # We can use an host tool
14294     WINDRES_FOR_TARGET='$(WINDRES)'
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14296 $as_echo "host tool" >&6; }
14297   else
14298     # We need a cross tool
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14301   fi
14302 fi
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14305 $as_echo_n "checking where to find the target windmc... " >&6; }
14306 if test "x${build}" != "x${host}" ; then
14307   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14308     # We already found the complete path
14309     ac_dir=`dirname $WINDMC_FOR_TARGET`
14310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311 $as_echo "pre-installed in $ac_dir" >&6; }
14312   else
14313     # Canadian cross, just use what we found
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14315 $as_echo "pre-installed" >&6; }
14316   fi
14317 else
14318   ok=yes
14319   case " ${configdirs} " in
14320     *" binutils "*) ;;
14321     *) ok=no ;;
14322   esac
14323
14324   if test $ok = yes; then
14325     # An in-tree tool is available and we can use it
14326     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14328 $as_echo "just compiled" >&6; }
14329   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14330     # We already found the complete path
14331     ac_dir=`dirname $WINDMC_FOR_TARGET`
14332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14333 $as_echo "pre-installed in $ac_dir" >&6; }
14334   elif test "x$target" = "x$host"; then
14335     # We can use an host tool
14336     WINDMC_FOR_TARGET='$(WINDMC)'
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14338 $as_echo "host tool" >&6; }
14339   else
14340     # We need a cross tool
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14343   fi
14344 fi
14345
14346
14347
14348
14349
14350 # Certain tools may need extra flags.
14351 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14352 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14353 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14354
14355 # When building target libraries, except in a Canadian cross, we use
14356 # the same toolchain as the compiler we just built.
14357 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14358 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14359 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14360 if test $host = $build; then
14361   case " $configdirs " in
14362     *" gcc "*)
14363       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14364       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14365       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14366       ;;
14367   esac
14368 fi
14369
14370
14371
14372
14373
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14375 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14376 # Check whether --enable-maintainer-mode was given.
14377 if test "${enable_maintainer_mode+set}" = set; then :
14378   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14379 else
14380   USE_MAINTAINER_MODE=no
14381 fi
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14384 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14385
14386
14387 if test "$USE_MAINTAINER_MODE" = yes; then
14388   MAINTAINER_MODE_TRUE=
14389   MAINTAINER_MODE_FALSE='#'
14390 else
14391   MAINTAINER_MODE_TRUE='#'
14392   MAINTAINER_MODE_FALSE=
14393 fi
14394 MAINT=$MAINTAINER_MODE_TRUE
14395
14396 # ---------------------
14397 # GCC bootstrap support
14398 # ---------------------
14399
14400 # Stage specific cflags for build.
14401 stage1_cflags="-g"
14402 case $build in
14403   vax-*-*)
14404     case ${GCC} in
14405       yes) stage1_cflags="-g -Wa,-J" ;;
14406       *) stage1_cflags="-g -J" ;;
14407     esac ;;
14408 esac
14409
14410 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14411 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14412   saved_CFLAGS="$CFLAGS"
14413
14414   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14415   CFLAGS="$CFLAGS -fkeep-inline-functions"
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14417 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h.  */
14420
14421 #if (__GNUC__ < 3) \
14422     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14423                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14424 #error http://gcc.gnu.org/PR29382
14425 #endif
14426
14427 int
14428 main ()
14429 {
14430
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14437 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14438 else
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443
14444   CFLAGS="$saved_CFLAGS"
14445 fi
14446
14447
14448
14449 # Enable --enable-checking in stage1 of the compiler.
14450 # Check whether --enable-stage1-checking was given.
14451 if test "${enable_stage1_checking+set}" = set; then :
14452   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14453 else
14454   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14455   stage1_checking=--enable-checking=yes,types
14456 else
14457   stage1_checking=--enable-checking=$enable_checking,types
14458 fi
14459 fi
14460
14461
14462
14463 # Enable -Werror in bootstrap stage2 and later.
14464 # Check whether --enable-werror was given.
14465 if test "${enable_werror+set}" = set; then :
14466   enableval=$enable_werror;
14467 else
14468   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14469   enable_werror=yes
14470 else
14471   enable_werror=no
14472 fi
14473 fi
14474
14475 case ${enable_werror} in
14476   yes) stage2_werror_flag="--enable-werror-always" ;;
14477   *) stage2_werror_flag="" ;;
14478 esac
14479
14480
14481 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14482 # --enable-build-with-cxx after stage1.
14483 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14484   POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14485 else
14486   POSTSTAGE1_CONFIGURE_FLAGS=
14487 fi
14488
14489
14490 # Specify what files to not compare during bootstrap.
14491
14492 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14493 case "$target" in
14494   hppa*64*-*-hpux*) ;;
14495   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14496 esac
14497 case " $configdirs " in
14498 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14499 esac
14500
14501
14502 ac_config_files="$ac_config_files Makefile"
14503
14504 cat >confcache <<\_ACEOF
14505 # This file is a shell script that caches the results of configure
14506 # tests run on this system so they can be shared between configure
14507 # scripts and configure runs, see configure's option --config-cache.
14508 # It is not useful on other systems.  If it contains results you don't
14509 # want to keep, you may remove or edit it.
14510 #
14511 # config.status only pays attention to the cache file if you give it
14512 # the --recheck option to rerun configure.
14513 #
14514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14516 # following values.
14517
14518 _ACEOF
14519
14520 # The following way of writing the cache mishandles newlines in values,
14521 # but we know of no workaround that is simple, portable, and efficient.
14522 # So, we kill variables containing newlines.
14523 # Ultrix sh set writes to stderr and can't be redirected directly,
14524 # and sets the high bit in the cache file unless we assign to the vars.
14525 (
14526   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527     eval ac_val=\$$ac_var
14528     case $ac_val in #(
14529     *${as_nl}*)
14530       case $ac_var in #(
14531       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14533       esac
14534       case $ac_var in #(
14535       _ | IFS | as_nl) ;; #(
14536       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537       *) { eval $ac_var=; unset $ac_var;} ;;
14538       esac ;;
14539     esac
14540   done
14541
14542   (set) 2>&1 |
14543     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544     *${as_nl}ac_space=\ *)
14545       # `set' does not quote correctly, so add quotes: double-quote
14546       # substitution turns \\\\ into \\, and sed turns \\ into \.
14547       sed -n \
14548         "s/'/'\\\\''/g;
14549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14550       ;; #(
14551     *)
14552       # `set' quotes correctly as required by POSIX, so do not add quotes.
14553       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14554       ;;
14555     esac |
14556     sort
14557 ) |
14558   sed '
14559      /^ac_cv_env_/b end
14560      t clear
14561      :clear
14562      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14563      t end
14564      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14565      :end' >>confcache
14566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567   if test -w "$cache_file"; then
14568     test "x$cache_file" != "x/dev/null" &&
14569       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570 $as_echo "$as_me: updating cache $cache_file" >&6;}
14571     cat confcache >$cache_file
14572   else
14573     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14575   fi
14576 fi
14577 rm -f confcache
14578
14579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14580 # Let make expand exec_prefix.
14581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14582
14583 # Transform confdefs.h into DEFS.
14584 # Protect against shell expansion while executing Makefile rules.
14585 # Protect against Makefile macro expansion.
14586 #
14587 # If the first sed substitution is executed (which looks for macros that
14588 # take arguments), then branch to the quote section.  Otherwise,
14589 # look for a macro that doesn't take arguments.
14590 ac_script='
14591 :mline
14592 /\\$/{
14593  N
14594  s,\\\n,,
14595  b mline
14596 }
14597 t clear
14598 :clear
14599 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
14600 t quote
14601 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
14602 t quote
14603 b any
14604 :quote
14605 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14606 s/\[/\\&/g
14607 s/\]/\\&/g
14608 s/\$/$$/g
14609 H
14610 :any
14611 ${
14612         g
14613         s/^\n//
14614         s/\n/ /g
14615         p
14616 }
14617 '
14618 DEFS=`sed -n "$ac_script" confdefs.h`
14619
14620
14621 ac_libobjs=
14622 ac_ltlibobjs=
14623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14624   # 1. Remove the extension, and $U if already installed.
14625   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14626   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14627   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14628   #    will be set to the directory where LIBOBJS objects are built.
14629   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14630   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14631 done
14632 LIBOBJS=$ac_libobjs
14633
14634 LTLIBOBJS=$ac_ltlibobjs
14635
14636
14637
14638 : ${CONFIG_STATUS=./config.status}
14639 ac_write_fail=0
14640 ac_clean_files_save=$ac_clean_files
14641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14644 as_write_fail=0
14645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14646 #! $SHELL
14647 # Generated by $as_me.
14648 # Run this file to recreate the current configuration.
14649 # Compiler output produced by configure, useful for debugging
14650 # configure, is in config.log if it exists.
14651
14652 debug=false
14653 ac_cs_recheck=false
14654 ac_cs_silent=false
14655
14656 SHELL=\${CONFIG_SHELL-$SHELL}
14657 export SHELL
14658 _ASEOF
14659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14660 ## -------------------- ##
14661 ## M4sh Initialization. ##
14662 ## -------------------- ##
14663
14664 # Be more Bourne compatible
14665 DUALCASE=1; export DUALCASE # for MKS sh
14666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14667   emulate sh
14668   NULLCMD=:
14669   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14670   # is contrary to our usage.  Disable this feature.
14671   alias -g '${1+"$@"}'='"$@"'
14672   setopt NO_GLOB_SUBST
14673 else
14674   case `(set -o) 2>/dev/null` in #(
14675   *posix*) :
14676     set -o posix ;; #(
14677   *) :
14678      ;;
14679 esac
14680 fi
14681
14682
14683 as_nl='
14684 '
14685 export as_nl
14686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14690 # Prefer a ksh shell builtin over an external printf program on Solaris,
14691 # but without wasting forks for bash or zsh.
14692 if test -z "$BASH_VERSION$ZSH_VERSION" \
14693     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14694   as_echo='print -r --'
14695   as_echo_n='print -rn --'
14696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14697   as_echo='printf %s\n'
14698   as_echo_n='printf %s'
14699 else
14700   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14701     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14702     as_echo_n='/usr/ucb/echo -n'
14703   else
14704     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14705     as_echo_n_body='eval
14706       arg=$1;
14707       case $arg in #(
14708       *"$as_nl"*)
14709         expr "X$arg" : "X\\(.*\\)$as_nl";
14710         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14711       esac;
14712       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14713     '
14714     export as_echo_n_body
14715     as_echo_n='sh -c $as_echo_n_body as_echo'
14716   fi
14717   export as_echo_body
14718   as_echo='sh -c $as_echo_body as_echo'
14719 fi
14720
14721 # The user is always right.
14722 if test "${PATH_SEPARATOR+set}" != set; then
14723   PATH_SEPARATOR=:
14724   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14725     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14726       PATH_SEPARATOR=';'
14727   }
14728 fi
14729
14730
14731 # IFS
14732 # We need space, tab and new line, in precisely that order.  Quoting is
14733 # there to prevent editors from complaining about space-tab.
14734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14735 # splitting by setting IFS to empty value.)
14736 IFS=" ""        $as_nl"
14737
14738 # Find who we are.  Look in the path if we contain no directory separator.
14739 case $0 in #((
14740   *[\\/]* ) as_myself=$0 ;;
14741   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14743 do
14744   IFS=$as_save_IFS
14745   test -z "$as_dir" && as_dir=.
14746     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14747   done
14748 IFS=$as_save_IFS
14749
14750      ;;
14751 esac
14752 # We did not find ourselves, most probably we were run as `sh COMMAND'
14753 # in which case we are not to be found in the path.
14754 if test "x$as_myself" = x; then
14755   as_myself=$0
14756 fi
14757 if test ! -f "$as_myself"; then
14758   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14759   exit 1
14760 fi
14761
14762 # Unset variables that we do not need and which cause bugs (e.g. in
14763 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14764 # suppresses any "Segmentation fault" message there.  '((' could
14765 # trigger a bug in pdksh 5.2.14.
14766 for as_var in BASH_ENV ENV MAIL MAILPATH
14767 do eval test x\${$as_var+set} = xset \
14768   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14769 done
14770 PS1='$ '
14771 PS2='> '
14772 PS4='+ '
14773
14774 # NLS nuisances.
14775 LC_ALL=C
14776 export LC_ALL
14777 LANGUAGE=C
14778 export LANGUAGE
14779
14780 # CDPATH.
14781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14782
14783
14784 # as_fn_error ERROR [LINENO LOG_FD]
14785 # ---------------------------------
14786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14788 # script with status $?, using 1 if that was 0.
14789 as_fn_error ()
14790 {
14791   as_status=$?; test $as_status -eq 0 && as_status=1
14792   if test "$3"; then
14793     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14794     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14795   fi
14796   $as_echo "$as_me: error: $1" >&2
14797   as_fn_exit $as_status
14798 } # as_fn_error
14799
14800
14801 # as_fn_set_status STATUS
14802 # -----------------------
14803 # Set $? to STATUS, without forking.
14804 as_fn_set_status ()
14805 {
14806   return $1
14807 } # as_fn_set_status
14808
14809 # as_fn_exit STATUS
14810 # -----------------
14811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14812 as_fn_exit ()
14813 {
14814   set +e
14815   as_fn_set_status $1
14816   exit $1
14817 } # as_fn_exit
14818
14819 # as_fn_unset VAR
14820 # ---------------
14821 # Portably unset VAR.
14822 as_fn_unset ()
14823 {
14824   { eval $1=; unset $1;}
14825 }
14826 as_unset=as_fn_unset
14827 # as_fn_append VAR VALUE
14828 # ----------------------
14829 # Append the text in VALUE to the end of the definition contained in VAR. Take
14830 # advantage of any shell optimizations that allow amortized linear growth over
14831 # repeated appends, instead of the typical quadratic growth present in naive
14832 # implementations.
14833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14834   eval 'as_fn_append ()
14835   {
14836     eval $1+=\$2
14837   }'
14838 else
14839   as_fn_append ()
14840   {
14841     eval $1=\$$1\$2
14842   }
14843 fi # as_fn_append
14844
14845 # as_fn_arith ARG...
14846 # ------------------
14847 # Perform arithmetic evaluation on the ARGs, and store the result in the
14848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14849 # must be portable across $(()) and expr.
14850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14851   eval 'as_fn_arith ()
14852   {
14853     as_val=$(( $* ))
14854   }'
14855 else
14856   as_fn_arith ()
14857   {
14858     as_val=`expr "$@" || test $? -eq 1`
14859   }
14860 fi # as_fn_arith
14861
14862
14863 if expr a : '\(a\)' >/dev/null 2>&1 &&
14864    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14865   as_expr=expr
14866 else
14867   as_expr=false
14868 fi
14869
14870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14871   as_basename=basename
14872 else
14873   as_basename=false
14874 fi
14875
14876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14877   as_dirname=dirname
14878 else
14879   as_dirname=false
14880 fi
14881
14882 as_me=`$as_basename -- "$0" ||
14883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14884          X"$0" : 'X\(//\)$' \| \
14885          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14886 $as_echo X/"$0" |
14887     sed '/^.*\/\([^/][^/]*\)\/*$/{
14888             s//\1/
14889             q
14890           }
14891           /^X\/\(\/\/\)$/{
14892             s//\1/
14893             q
14894           }
14895           /^X\/\(\/\).*/{
14896             s//\1/
14897             q
14898           }
14899           s/.*/./; q'`
14900
14901 # Avoid depending upon Character Ranges.
14902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14905 as_cr_digits='0123456789'
14906 as_cr_alnum=$as_cr_Letters$as_cr_digits
14907
14908 ECHO_C= ECHO_N= ECHO_T=
14909 case `echo -n x` in #(((((
14910 -n*)
14911   case `echo 'xy\c'` in
14912   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14913   xy)  ECHO_C='\c';;
14914   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14915        ECHO_T=' ';;
14916   esac;;
14917 *)
14918   ECHO_N='-n';;
14919 esac
14920
14921 rm -f conf$$ conf$$.exe conf$$.file
14922 if test -d conf$$.dir; then
14923   rm -f conf$$.dir/conf$$.file
14924 else
14925   rm -f conf$$.dir
14926   mkdir conf$$.dir 2>/dev/null
14927 fi
14928 if (echo >conf$$.file) 2>/dev/null; then
14929   if ln -s conf$$.file conf$$ 2>/dev/null; then
14930     as_ln_s='ln -s'
14931     # ... but there are two gotchas:
14932     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14933     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14934     # In both cases, we have to default to `cp -p'.
14935     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14936       as_ln_s='cp -p'
14937   elif ln conf$$.file conf$$ 2>/dev/null; then
14938     as_ln_s=ln
14939   else
14940     as_ln_s='cp -p'
14941   fi
14942 else
14943   as_ln_s='cp -p'
14944 fi
14945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14946 rmdir conf$$.dir 2>/dev/null
14947
14948
14949 # as_fn_mkdir_p
14950 # -------------
14951 # Create "$as_dir" as a directory, including parents if necessary.
14952 as_fn_mkdir_p ()
14953 {
14954
14955   case $as_dir in #(
14956   -*) as_dir=./$as_dir;;
14957   esac
14958   test -d "$as_dir" || eval $as_mkdir_p || {
14959     as_dirs=
14960     while :; do
14961       case $as_dir in #(
14962       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14963       *) as_qdir=$as_dir;;
14964       esac
14965       as_dirs="'$as_qdir' $as_dirs"
14966       as_dir=`$as_dirname -- "$as_dir" ||
14967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14968          X"$as_dir" : 'X\(//\)[^/]' \| \
14969          X"$as_dir" : 'X\(//\)$' \| \
14970          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14971 $as_echo X"$as_dir" |
14972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14973             s//\1/
14974             q
14975           }
14976           /^X\(\/\/\)[^/].*/{
14977             s//\1/
14978             q
14979           }
14980           /^X\(\/\/\)$/{
14981             s//\1/
14982             q
14983           }
14984           /^X\(\/\).*/{
14985             s//\1/
14986             q
14987           }
14988           s/.*/./; q'`
14989       test -d "$as_dir" && break
14990     done
14991     test -z "$as_dirs" || eval "mkdir $as_dirs"
14992   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14993
14994
14995 } # as_fn_mkdir_p
14996 if mkdir -p . 2>/dev/null; then
14997   as_mkdir_p='mkdir -p "$as_dir"'
14998 else
14999   test -d ./-p && rmdir ./-p
15000   as_mkdir_p=false
15001 fi
15002
15003 if test -x / >/dev/null 2>&1; then
15004   as_test_x='test -x'
15005 else
15006   if ls -dL / >/dev/null 2>&1; then
15007     as_ls_L_option=L
15008   else
15009     as_ls_L_option=
15010   fi
15011   as_test_x='
15012     eval sh -c '\''
15013       if test -d "$1"; then
15014         test -d "$1/.";
15015       else
15016         case $1 in #(
15017         -*)set "./$1";;
15018         esac;
15019         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15020         ???[sx]*):;;*)false;;esac;fi
15021     '\'' sh
15022   '
15023 fi
15024 as_executable_p=$as_test_x
15025
15026 # Sed expression to map a string onto a valid CPP name.
15027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15028
15029 # Sed expression to map a string onto a valid variable name.
15030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15031
15032
15033 exec 6>&1
15034 ## ----------------------------------- ##
15035 ## Main body of $CONFIG_STATUS script. ##
15036 ## ----------------------------------- ##
15037 _ASEOF
15038 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15039
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 # Save the log message, to keep $0 and so on meaningful, and to
15042 # report actual input values of CONFIG_FILES etc. instead of their
15043 # values after options handling.
15044 ac_log="
15045 This file was extended by $as_me, which was
15046 generated by GNU Autoconf 2.64.  Invocation command line was
15047
15048   CONFIG_FILES    = $CONFIG_FILES
15049   CONFIG_HEADERS  = $CONFIG_HEADERS
15050   CONFIG_LINKS    = $CONFIG_LINKS
15051   CONFIG_COMMANDS = $CONFIG_COMMANDS
15052   $ $0 $@
15053
15054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15055 "
15056
15057 _ACEOF
15058
15059 case $ac_config_files in *"
15060 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15061 esac
15062
15063
15064
15065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15066 # Files that config.status was made for.
15067 config_files="$ac_config_files"
15068
15069 _ACEOF
15070
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 ac_cs_usage="\
15073 \`$as_me' instantiates files and other configuration actions
15074 from templates according to the current configuration.  Unless the files
15075 and actions are specified as TAGs, all are instantiated by default.
15076
15077 Usage: $0 [OPTION]... [TAG]...
15078
15079   -h, --help       print this help, then exit
15080   -V, --version    print version number and configuration settings, then exit
15081   -q, --quiet, --silent
15082                    do not print progress messages
15083   -d, --debug      don't remove temporary files
15084       --recheck    update $as_me by reconfiguring in the same conditions
15085       --file=FILE[:TEMPLATE]
15086                    instantiate the configuration file FILE
15087
15088 Configuration files:
15089 $config_files
15090
15091 Report bugs to the package provider."
15092
15093 _ACEOF
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15095 ac_cs_version="\\
15096 config.status
15097 configured by $0, generated by GNU Autoconf 2.64,
15098   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15099
15100 Copyright (C) 2009 Free Software Foundation, Inc.
15101 This config.status script is free software; the Free Software Foundation
15102 gives unlimited permission to copy, distribute and modify it."
15103
15104 ac_pwd='$ac_pwd'
15105 srcdir='$srcdir'
15106 INSTALL='$INSTALL'
15107 AWK='$AWK'
15108 test -n "\$AWK" || AWK=awk
15109 _ACEOF
15110
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112 # The default lists apply if the user does not specify any file.
15113 ac_need_defaults=:
15114 while test $# != 0
15115 do
15116   case $1 in
15117   --*=*)
15118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15119     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15120     ac_shift=:
15121     ;;
15122   *)
15123     ac_option=$1
15124     ac_optarg=$2
15125     ac_shift=shift
15126     ;;
15127   esac
15128
15129   case $ac_option in
15130   # Handling of the options.
15131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15132     ac_cs_recheck=: ;;
15133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15134     $as_echo "$ac_cs_version"; exit ;;
15135   --debug | --debu | --deb | --de | --d | -d )
15136     debug=: ;;
15137   --file | --fil | --fi | --f )
15138     $ac_shift
15139     case $ac_optarg in
15140     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15141     esac
15142     as_fn_append CONFIG_FILES " '$ac_optarg'"
15143     ac_need_defaults=false;;
15144   --he | --h |  --help | --hel | -h )
15145     $as_echo "$ac_cs_usage"; exit ;;
15146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15147   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15148     ac_cs_silent=: ;;
15149
15150   # This is an error.
15151   -*) as_fn_error "unrecognized option: \`$1'
15152 Try \`$0 --help' for more information." ;;
15153
15154   *) as_fn_append ac_config_targets " $1"
15155      ac_need_defaults=false ;;
15156
15157   esac
15158   shift
15159 done
15160
15161 ac_configure_extra_args=
15162
15163 if $ac_cs_silent; then
15164   exec 6>/dev/null
15165   ac_configure_extra_args="$ac_configure_extra_args --silent"
15166 fi
15167
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170 if \$ac_cs_recheck; then
15171   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15172   shift
15173   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15174   CONFIG_SHELL='$SHELL'
15175   export CONFIG_SHELL
15176   exec "\$@"
15177 fi
15178
15179 _ACEOF
15180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181 exec 5>>config.log
15182 {
15183   echo
15184   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15185 ## Running $as_me. ##
15186 _ASBOX
15187   $as_echo "$ac_log"
15188 } >&5
15189
15190 _ACEOF
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192 #
15193 # INIT-COMMANDS
15194 #
15195 extrasub_build="$extrasub_build"
15196    extrasub_host="$extrasub_host"
15197    extrasub_target="$extrasub_target"
15198
15199 _ACEOF
15200
15201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202
15203 # Handling of arguments.
15204 for ac_config_target in $ac_config_targets
15205 do
15206   case $ac_config_target in
15207     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15208
15209   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15210   esac
15211 done
15212
15213
15214 # If the user did not use the arguments to specify the items to instantiate,
15215 # then the envvar interface is used.  Set only those that are not.
15216 # We use the long form for the default assignment because of an extremely
15217 # bizarre bug on SunOS 4.1.3.
15218 if $ac_need_defaults; then
15219   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15220 fi
15221
15222 # Have a temporary directory for convenience.  Make it in the build tree
15223 # simply because there is no reason against having it here, and in addition,
15224 # creating and moving files from /tmp can sometimes cause problems.
15225 # Hook for its removal unless debugging.
15226 # Note that there is a small window in which the directory will not be cleaned:
15227 # after its creation but before its name has been assigned to `$tmp'.
15228 $debug ||
15229 {
15230   tmp=
15231   trap 'exit_status=$?
15232   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15233 ' 0
15234   trap 'as_fn_exit 1' 1 2 13 15
15235 }
15236 # Create a (secure) tmp directory for tmp files.
15237
15238 {
15239   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15240   test -n "$tmp" && test -d "$tmp"
15241 }  ||
15242 {
15243   tmp=./conf$$-$RANDOM
15244   (umask 077 && mkdir "$tmp")
15245 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15246
15247 # Set up the scripts for CONFIG_FILES section.
15248 # No need to generate them if there are no CONFIG_FILES.
15249 # This happens for instance with `./config.status config.h'.
15250 if test -n "$CONFIG_FILES"; then
15251
15252 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15253   ac_cs_awk_getline=:
15254   ac_cs_awk_pipe_init=
15255   ac_cs_awk_read_file='
15256       while ((getline aline < (F[key])) > 0)
15257         print(aline)
15258       close(F[key])'
15259   ac_cs_awk_pipe_fini=
15260 else
15261   ac_cs_awk_getline=false
15262   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15263   ac_cs_awk_read_file='
15264       print "|#_!!_#|"
15265       print "cat " F[key] " &&"
15266       '$ac_cs_awk_pipe_init
15267   # The final `:' finishes the AND list.
15268   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15269 fi
15270 ac_cr=`echo X | tr X '\015'`
15271 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15272 # But we know of no other shell where ac_cr would be empty at this
15273 # point, so we can use a bashism as a fallback.
15274 if test "x$ac_cr" = x; then
15275   eval ac_cr=\$\'\\r\'
15276 fi
15277 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15278 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15279   ac_cs_awk_cr='\r'
15280 else
15281   ac_cs_awk_cr=$ac_cr
15282 fi
15283
15284 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15285 _ACEOF
15286
15287 # Create commands to substitute file output variables.
15288 {
15289   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15290   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15291   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15292   echo "_ACAWK" &&
15293   echo "_ACEOF"
15294 } >conf$$files.sh &&
15295 . ./conf$$files.sh ||
15296   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15297 rm -f conf$$files.sh
15298
15299 {
15300   echo "cat >conf$$subs.awk <<_ACEOF" &&
15301   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15302   echo "_ACEOF"
15303 } >conf$$subs.sh ||
15304   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15305 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15306 ac_delim='%!_!# '
15307 for ac_last_try in false false false false false :; do
15308   . ./conf$$subs.sh ||
15309     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15310
15311   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15312   if test $ac_delim_n = $ac_delim_num; then
15313     break
15314   elif $ac_last_try; then
15315     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15316   else
15317     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15318   fi
15319 done
15320 rm -f conf$$subs.sh
15321
15322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15323 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15324 _ACEOF
15325 sed -n '
15326 h
15327 s/^/S["/; s/!.*/"]=/
15328 p
15329 g
15330 s/^[^!]*!//
15331 :repl
15332 t repl
15333 s/'"$ac_delim"'$//
15334 t delim
15335 :nl
15336 h
15337 s/\(.\{148\}\).*/\1/
15338 t more1
15339 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15340 p
15341 n
15342 b repl
15343 :more1
15344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15345 p
15346 g
15347 s/.\{148\}//
15348 t nl
15349 :delim
15350 h
15351 s/\(.\{148\}\).*/\1/
15352 t more2
15353 s/["\\]/\\&/g; s/^/"/; s/$/"/
15354 p
15355 b
15356 :more2
15357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15358 p
15359 g
15360 s/.\{148\}//
15361 t delim
15362 ' <conf$$subs.awk | sed '
15363 /^[^""]/{
15364   N
15365   s/\n//
15366 }
15367 ' >>$CONFIG_STATUS || ac_write_fail=1
15368 rm -f conf$$subs.awk
15369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15370 _ACAWK
15371 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15372   for (key in S) S_is_set[key] = 1
15373   FS = "\a"
15374   \$ac_cs_awk_pipe_init
15375 }
15376 {
15377   line = $ 0
15378   nfields = split(line, field, "@")
15379   substed = 0
15380   len = length(field[1])
15381   for (i = 2; i < nfields; i++) {
15382     key = field[i]
15383     keylen = length(key)
15384     if (S_is_set[key]) {
15385       value = S[key]
15386       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15387       len += length(value) + length(field[++i])
15388       substed = 1
15389     } else
15390       len += 1 + keylen
15391   }
15392   if (nfields == 3 && !substed) {
15393     key = field[2]
15394     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15395       \$ac_cs_awk_read_file
15396       next
15397     }
15398   }
15399   print line
15400 }
15401 \$ac_cs_awk_pipe_fini
15402 _ACAWK
15403 _ACEOF
15404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15406   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15407 else
15408   cat
15409 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15410   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15411 _ACEOF
15412
15413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15415 # trailing colons and then remove the whole line if VPATH becomes empty
15416 # (actually we leave an empty line to preserve line numbers).
15417 if test "x$srcdir" = x.; then
15418   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15419 s/:*\$(srcdir):*/:/
15420 s/:*\${srcdir}:*/:/
15421 s/:*@srcdir@:*/:/
15422 s/^\([^=]*=[     ]*\):*/\1/
15423 s/:*$//
15424 s/^[^=]*=[       ]*$//
15425 }'
15426 fi
15427
15428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 fi # test -n "$CONFIG_FILES"
15430
15431
15432 eval set X "  :F $CONFIG_FILES      "
15433 shift
15434 for ac_tag
15435 do
15436   case $ac_tag in
15437   :[FHLC]) ac_mode=$ac_tag; continue;;
15438   esac
15439   case $ac_mode$ac_tag in
15440   :[FHL]*:*);;
15441   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15442   :[FH]-) ac_tag=-:-;;
15443   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15444   esac
15445   ac_save_IFS=$IFS
15446   IFS=:
15447   set x $ac_tag
15448   IFS=$ac_save_IFS
15449   shift
15450   ac_file=$1
15451   shift
15452
15453   case $ac_mode in
15454   :L) ac_source=$1;;
15455   :[FH])
15456     ac_file_inputs=
15457     for ac_f
15458     do
15459       case $ac_f in
15460       -) ac_f="$tmp/stdin";;
15461       *) # Look for the file first in the build tree, then in the source tree
15462          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15463          # because $ac_f cannot contain `:'.
15464          test -f "$ac_f" ||
15465            case $ac_f in
15466            [\\/$]*) false;;
15467            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15468            esac ||
15469            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15470       esac
15471       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15472       as_fn_append ac_file_inputs " '$ac_f'"
15473     done
15474
15475     # Let's still pretend it is `configure' which instantiates (i.e., don't
15476     # use $as_me), people would be surprised to read:
15477     #    /* config.h.  Generated by config.status.  */
15478     configure_input='Generated from '`
15479           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15480         `' by configure.'
15481     if test x"$ac_file" != x-; then
15482       configure_input="$ac_file.  $configure_input"
15483       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15484 $as_echo "$as_me: creating $ac_file" >&6;}
15485     fi
15486     # Neutralize special characters interpreted by sed in replacement strings.
15487     case $configure_input in #(
15488     *\&* | *\|* | *\\* )
15489        ac_sed_conf_input=`$as_echo "$configure_input" |
15490        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15491     *) ac_sed_conf_input=$configure_input;;
15492     esac
15493
15494     case $ac_tag in
15495     *:-:* | *:-) cat >"$tmp/stdin" \
15496       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15497     esac
15498     ;;
15499   esac
15500
15501   ac_dir=`$as_dirname -- "$ac_file" ||
15502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15503          X"$ac_file" : 'X\(//\)[^/]' \| \
15504          X"$ac_file" : 'X\(//\)$' \| \
15505          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15506 $as_echo X"$ac_file" |
15507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15508             s//\1/
15509             q
15510           }
15511           /^X\(\/\/\)[^/].*/{
15512             s//\1/
15513             q
15514           }
15515           /^X\(\/\/\)$/{
15516             s//\1/
15517             q
15518           }
15519           /^X\(\/\).*/{
15520             s//\1/
15521             q
15522           }
15523           s/.*/./; q'`
15524   as_dir="$ac_dir"; as_fn_mkdir_p
15525   ac_builddir=.
15526
15527 case "$ac_dir" in
15528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15529 *)
15530   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15531   # A ".." for each directory in $ac_dir_suffix.
15532   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15533   case $ac_top_builddir_sub in
15534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15536   esac ;;
15537 esac
15538 ac_abs_top_builddir=$ac_pwd
15539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15540 # for backward compatibility:
15541 ac_top_builddir=$ac_top_build_prefix
15542
15543 case $srcdir in
15544   .)  # We are building in place.
15545     ac_srcdir=.
15546     ac_top_srcdir=$ac_top_builddir_sub
15547     ac_abs_top_srcdir=$ac_pwd ;;
15548   [\\/]* | ?:[\\/]* )  # Absolute name.
15549     ac_srcdir=$srcdir$ac_dir_suffix;
15550     ac_top_srcdir=$srcdir
15551     ac_abs_top_srcdir=$srcdir ;;
15552   *) # Relative name.
15553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15554     ac_top_srcdir=$ac_top_build_prefix$srcdir
15555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15556 esac
15557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15558
15559
15560   case $ac_mode in
15561   :F)
15562   #
15563   # CONFIG_FILE
15564   #
15565
15566   case $INSTALL in
15567   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15568   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15569   esac
15570 _ACEOF
15571
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 # If the template does not know about datarootdir, expand it.
15574 # FIXME: This hack should be removed a few years after 2.60.
15575 ac_datarootdir_hack=; ac_datarootdir_seen=
15576 ac_sed_dataroot='
15577 /datarootdir/ {
15578   p
15579   q
15580 }
15581 /@datadir@/p
15582 /@docdir@/p
15583 /@infodir@/p
15584 /@localedir@/p
15585 /@mandir@/p'
15586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15587 *datarootdir*) ac_datarootdir_seen=yes;;
15588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15591 _ACEOF
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593   ac_datarootdir_hack='
15594   s&@datadir@&$datadir&g
15595   s&@docdir@&$docdir&g
15596   s&@infodir@&$infodir&g
15597   s&@localedir@&$localedir&g
15598   s&@mandir@&$mandir&g
15599   s&\\\${datarootdir}&$datarootdir&g' ;;
15600 esac
15601 _ACEOF
15602
15603 # Neutralize VPATH when `$srcdir' = `.'.
15604 # Shell code in configure.ac might set extrasub.
15605 # FIXME: do we really want to maintain this feature?
15606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15607 ac_sed_extra="$ac_vpsub
15608 $extrasub
15609 _ACEOF
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611 :t
15612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15613 s|@configure_input@|$ac_sed_conf_input|;t t
15614 s&@top_builddir@&$ac_top_builddir_sub&;t t
15615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15616 s&@srcdir@&$ac_srcdir&;t t
15617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15618 s&@top_srcdir@&$ac_top_srcdir&;t t
15619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15620 s&@builddir@&$ac_builddir&;t t
15621 s&@abs_builddir@&$ac_abs_builddir&;t t
15622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15623 s&@INSTALL@&$ac_INSTALL&;t t
15624 $ac_datarootdir_hack
15625 "
15626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15627 if $ac_cs_awk_getline; then
15628   $AWK -f "$tmp/subs.awk"
15629 else
15630   $AWK -f "$tmp/subs.awk" | $SHELL
15631 fi >$tmp/out \
15632   || as_fn_error "could not create $ac_file" "$LINENO" 5
15633
15634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15635   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15636   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638 which seems to be undefined.  Please make sure it is defined." >&5
15639 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15640 which seems to be undefined.  Please make sure it is defined." >&2;}
15641
15642   rm -f "$tmp/stdin"
15643   case $ac_file in
15644   -) cat "$tmp/out" && rm -f "$tmp/out";;
15645   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15646   esac \
15647   || as_fn_error "could not create $ac_file" "$LINENO" 5
15648  ;;
15649
15650
15651
15652   esac
15653
15654
15655   case $ac_file$ac_mode in
15656     "Makefile":F) sed "$extrasub_build" Makefile |
15657    sed "$extrasub_host" |
15658    sed "$extrasub_target" > mf$$
15659    mv -f mf$$ Makefile ;;
15660
15661   esac
15662 done # for ac_tag
15663
15664
15665 as_fn_exit 0
15666 _ACEOF
15667 ac_clean_files=$ac_clean_files_save
15668
15669 test $ac_write_fail = 0 ||
15670   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15671
15672
15673 # configure is writing to config.log, and then calls config.status.
15674 # config.status does its own redirection, appending to config.log.
15675 # Unfortunately, on DOS this fails, as config.log is still kept open
15676 # by configure, so config.status won't be able to write to it; its
15677 # output is simply discarded.  So we exec the FD to /dev/null,
15678 # effectively closing config.log, so it can be properly (re)opened and
15679 # appended to by config.status.  When coming back to configure, we
15680 # need to make the FD available again.
15681 if test "$no_create" != yes; then
15682   ac_cs_success=:
15683   ac_config_status_args=
15684   test "$silent" = yes &&
15685     ac_config_status_args="$ac_config_status_args --quiet"
15686   exec 5>/dev/null
15687   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15688   exec 5>>config.log
15689   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15690   # would make configure fail if this is the last instruction.
15691   $ac_cs_success || as_fn_exit $?
15692 fi
15693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15695 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15696 fi
15697