OSDN Git Service

2010-11-08 Steve Ellcey <sje@cup.hp.com>
[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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GFORTRAN_FOR_TARGET
582 GCJ_FOR_TARGET
583 GCC_FOR_TARGET
584 CXX_FOR_TARGET
585 CC_FOR_TARGET
586 OBJDUMP
587 OBJCOPY
588 WINDMC
589 WINDRES
590 STRIP
591 RANLIB
592 NM
593 LIPO
594 LD
595 DLLTOOL
596 AS
597 AR
598 RUNTEST
599 EXPECT
600 MAKEINFO
601 FLEX
602 LEX
603 M4
604 BISON
605 YACC
606 config_shell
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GFORTRAN_FOR_BUILD
614 GCJ_FOR_BUILD
615 DLLTOOL_FOR_BUILD
616 CXX_FOR_BUILD
617 CXXFLAGS_FOR_BUILD
618 CFLAGS_FOR_BUILD
619 CC_FOR_BUILD
620 AS_FOR_BUILD
621 AR_FOR_BUILD
622 target_configdirs
623 configdirs
624 build_configdirs
625 INSTALL_GDB_TK
626 GDB_TK
627 CONFIGURE_GDB_TK
628 build_tooldir
629 tooldir
630 GCC_SHLIB_SUBDIR
631 RPATH_ENVVAR
632 target_configargs
633 host_configargs
634 build_configargs
635 BUILD_CONFIG
636 CXXFLAGS_FOR_TARGET
637 CFLAGS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
640 stage1_languages
641 extra_host_libiberty_configure_flags
642 clooginc
643 clooglibs
644 pplinc
645 ppllibs
646 poststage1_ldflags
647 poststage1_libs
648 stage1_libs
649 stage1_ldflags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
653 gmpinc
654 gmplibs
655 do_compare
656 GNATMAKE
657 GNATBIND
658 ac_ct_CXX
659 CXXFLAGS
660 CXX
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 target_subdir
669 host_subdir
670 build_subdir
671 build_libsubdir
672 AWK
673 SED
674 LN_S
675 LN
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 target_noncanonical
688 host_noncanonical
689 build_noncanonical
690 build_os
691 build_vendor
692 build_cpu
693 build
694 TOPLEVEL_CONFIGURE_ARGUMENTS
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files='serialization_dependencies
734 host_makefile_frag
735 target_makefile_frag
736 alphaieee_frag
737 ospace_frag'
738 ac_user_opts='
739 enable_option_checking
740 with_build_libsubdir
741 enable_gold
742 enable_libada
743 enable_libssp
744 enable_build_with_cxx
745 with_mpc
746 with_mpc_include
747 with_mpc_lib
748 with_mpfr_dir
749 with_mpfr
750 with_mpfr_include
751 with_mpfr_lib
752 with_gmp_dir
753 with_gmp
754 with_gmp_include
755 with_gmp_lib
756 with_host_libstdcxx
757 with_stage1_ldflags
758 with_stage1_libs
759 with_boot_libs
760 with_boot_ldflags
761 with_ppl
762 with_ppl_include
763 with_ppl_lib
764 enable_ppl_version_check
765 with_cloog
766 with_cloog_include
767 with_cloog_lib
768 enable_cloog_version_check
769 enable_lto
770 enable_stage1_languages
771 enable_objc_gc
772 with_build_sysroot
773 with_debug_prefix_map
774 enable_bootstrap
775 with_build_config
776 enable_serial_configure
777 with_build_time_tools
778 enable_maintainer_mode
779 enable_stage1_checking
780 enable_werror
781 '
782       ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CXX
791 CXXFLAGS
792 CCC
793 build_configargs
794 host_configargs
795 target_configargs
796 AR
797 AS
798 DLLTOOL
799 LD
800 LIPO
801 NM
802 RANLIB
803 STRIP
804 WINDRES
805 WINDMC
806 OBJCOPY
807 OBJDUMP
808 CC_FOR_TARGET
809 CXX_FOR_TARGET
810 GCC_FOR_TARGET
811 GCJ_FOR_TARGET
812 GFORTRAN_FOR_TARGET
813 AR_FOR_TARGET
814 AS_FOR_TARGET
815 DLLTOOL_FOR_TARGET
816 LD_FOR_TARGET
817 LIPO_FOR_TARGET
818 NM_FOR_TARGET
819 OBJDUMP_FOR_TARGET
820 RANLIB_FOR_TARGET
821 STRIP_FOR_TARGET
822 WINDRES_FOR_TARGET
823 WINDMC_FOR_TARGET'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 includedir='${prefix}/include'
863 oldincludedir='/usr/include'
864 docdir='${datarootdir}/doc/${PACKAGE}'
865 infodir='${datarootdir}/info'
866 htmldir='${docdir}'
867 dvidir='${docdir}'
868 pdfdir='${docdir}'
869 psdir='${docdir}'
870 libdir='${exec_prefix}/lib'
871 localedir='${datarootdir}/locale'
872 mandir='${datarootdir}/man'
873
874 ac_prev=
875 ac_dashdash=
876 for ac_option
877 do
878   # If the previous option needs an argument, assign it.
879   if test -n "$ac_prev"; then
880     eval $ac_prev=\$ac_option
881     ac_prev=
882     continue
883   fi
884
885   case $ac_option in
886   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887   *)    ac_optarg=yes ;;
888   esac
889
890   # Accept the important Cygnus configure options, so we can diagnose typos.
891
892   case $ac_dashdash$ac_option in
893   --)
894     ac_dashdash=yes ;;
895
896   -bindir | --bindir | --bindi | --bind | --bin | --bi)
897     ac_prev=bindir ;;
898   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899     bindir=$ac_optarg ;;
900
901   -build | --build | --buil | --bui | --bu)
902     ac_prev=build_alias ;;
903   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904     build_alias=$ac_optarg ;;
905
906   -cache-file | --cache-file | --cache-fil | --cache-fi \
907   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908     ac_prev=cache_file ;;
909   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911     cache_file=$ac_optarg ;;
912
913   --config-cache | -C)
914     cache_file=config.cache ;;
915
916   -datadir | --datadir | --datadi | --datad)
917     ac_prev=datadir ;;
918   -datadir=* | --datadir=* | --datadi=* | --datad=*)
919     datadir=$ac_optarg ;;
920
921   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922   | --dataroo | --dataro | --datar)
923     ac_prev=datarootdir ;;
924   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926     datarootdir=$ac_optarg ;;
927
928   -disable-* | --disable-*)
929     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930     # Reject names that are not valid shell variable names.
931     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932       as_fn_error "invalid feature name: $ac_useropt"
933     ac_useropt_orig=$ac_useropt
934     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935     case $ac_user_opts in
936       *"
937 "enable_$ac_useropt"
938 "*) ;;
939       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940          ac_unrecognized_sep=', ';;
941     esac
942     eval enable_$ac_useropt=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958       as_fn_error "invalid feature name: $ac_useropt"
959     ac_useropt_orig=$ac_useropt
960     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961     case $ac_user_opts in
962       *"
963 "enable_$ac_useropt"
964 "*) ;;
965       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966          ac_unrecognized_sep=', ';;
967     esac
968     eval enable_$ac_useropt=\$ac_optarg ;;
969
970   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972   | --exec | --exe | --ex)
973     ac_prev=exec_prefix ;;
974   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976   | --exec=* | --exe=* | --ex=*)
977     exec_prefix=$ac_optarg ;;
978
979   -gas | --gas | --ga | --g)
980     # Obsolete; use --with-gas.
981     with_gas=yes ;;
982
983   -help | --help | --hel | --he | -h)
984     ac_init_help=long ;;
985   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986     ac_init_help=recursive ;;
987   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988     ac_init_help=short ;;
989
990   -host | --host | --hos | --ho)
991     ac_prev=host_alias ;;
992   -host=* | --host=* | --hos=* | --ho=*)
993     host_alias=$ac_optarg ;;
994
995   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996     ac_prev=htmldir ;;
997   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998   | --ht=*)
999     htmldir=$ac_optarg ;;
1000
1001   -includedir | --includedir | --includedi | --included | --include \
1002   | --includ | --inclu | --incl | --inc)
1003     ac_prev=includedir ;;
1004   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005   | --includ=* | --inclu=* | --incl=* | --inc=*)
1006     includedir=$ac_optarg ;;
1007
1008   -infodir | --infodir | --infodi | --infod | --info | --inf)
1009     ac_prev=infodir ;;
1010   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011     infodir=$ac_optarg ;;
1012
1013   -libdir | --libdir | --libdi | --libd)
1014     ac_prev=libdir ;;
1015   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016     libdir=$ac_optarg ;;
1017
1018   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019   | --libexe | --libex | --libe)
1020     ac_prev=libexecdir ;;
1021   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022   | --libexe=* | --libex=* | --libe=*)
1023     libexecdir=$ac_optarg ;;
1024
1025   -localedir | --localedir | --localedi | --localed | --locale)
1026     ac_prev=localedir ;;
1027   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028     localedir=$ac_optarg ;;
1029
1030   -localstatedir | --localstatedir | --localstatedi | --localstated \
1031   | --localstate | --localstat | --localsta | --localst | --locals)
1032     ac_prev=localstatedir ;;
1033   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035     localstatedir=$ac_optarg ;;
1036
1037   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038     ac_prev=mandir ;;
1039   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040     mandir=$ac_optarg ;;
1041
1042   -nfp | --nfp | --nf)
1043     # Obsolete; use --without-fp.
1044     with_fp=no ;;
1045
1046   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047   | --no-cr | --no-c | -n)
1048     no_create=yes ;;
1049
1050   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052     no_recursion=yes ;;
1053
1054   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056   | --oldin | --oldi | --old | --ol | --o)
1057     ac_prev=oldincludedir ;;
1058   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061     oldincludedir=$ac_optarg ;;
1062
1063   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064     ac_prev=prefix ;;
1065   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066     prefix=$ac_optarg ;;
1067
1068   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069   | --program-pre | --program-pr | --program-p)
1070     ac_prev=program_prefix ;;
1071   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073     program_prefix=$ac_optarg ;;
1074
1075   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076   | --program-suf | --program-su | --program-s)
1077     ac_prev=program_suffix ;;
1078   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080     program_suffix=$ac_optarg ;;
1081
1082   -program-transform-name | --program-transform-name \
1083   | --program-transform-nam | --program-transform-na \
1084   | --program-transform-n | --program-transform- \
1085   | --program-transform | --program-transfor \
1086   | --program-transfo | --program-transf \
1087   | --program-trans | --program-tran \
1088   | --progr-tra | --program-tr | --program-t)
1089     ac_prev=program_transform_name ;;
1090   -program-transform-name=* | --program-transform-name=* \
1091   | --program-transform-nam=* | --program-transform-na=* \
1092   | --program-transform-n=* | --program-transform-=* \
1093   | --program-transform=* | --program-transfor=* \
1094   | --program-transfo=* | --program-transf=* \
1095   | --program-trans=* | --program-tran=* \
1096   | --progr-tra=* | --program-tr=* | --program-t=*)
1097     program_transform_name=$ac_optarg ;;
1098
1099   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100     ac_prev=pdfdir ;;
1101   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102     pdfdir=$ac_optarg ;;
1103
1104   -psdir | --psdir | --psdi | --psd | --ps)
1105     ac_prev=psdir ;;
1106   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107     psdir=$ac_optarg ;;
1108
1109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110   | -silent | --silent | --silen | --sile | --sil)
1111     silent=yes ;;
1112
1113   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114     ac_prev=sbindir ;;
1115   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116   | --sbi=* | --sb=*)
1117     sbindir=$ac_optarg ;;
1118
1119   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121   | --sharedst | --shareds | --shared | --share | --shar \
1122   | --sha | --sh)
1123     ac_prev=sharedstatedir ;;
1124   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127   | --sha=* | --sh=*)
1128     sharedstatedir=$ac_optarg ;;
1129
1130   -site | --site | --sit)
1131     ac_prev=site ;;
1132   -site=* | --site=* | --sit=*)
1133     site=$ac_optarg ;;
1134
1135   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136     ac_prev=srcdir ;;
1137   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138     srcdir=$ac_optarg ;;
1139
1140   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141   | --syscon | --sysco | --sysc | --sys | --sy)
1142     ac_prev=sysconfdir ;;
1143   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145     sysconfdir=$ac_optarg ;;
1146
1147   -target | --target | --targe | --targ | --tar | --ta | --t)
1148     ac_prev=target_alias ;;
1149   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150     target_alias=$ac_optarg ;;
1151
1152   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153     verbose=yes ;;
1154
1155   -version | --version | --versio | --versi | --vers | -V)
1156     ac_init_version=: ;;
1157
1158   -with-* | --with-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error "invalid package name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval with_$ac_useropt=\$ac_optarg ;;
1173
1174   -without-* | --without-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=no ;;
1189
1190   --x)
1191     # Obsolete; use --with-x.
1192     with_x=yes ;;
1193
1194   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195   | --x-incl | --x-inc | --x-in | --x-i)
1196     ac_prev=x_includes ;;
1197   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199     x_includes=$ac_optarg ;;
1200
1201   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203     ac_prev=x_libraries ;;
1204   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206     x_libraries=$ac_optarg ;;
1207
1208   -*) as_fn_error "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information."
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     case $ac_envvar in #(
1216       '' | [0-9]* | *[!_$as_cr_alnum]* )
1217       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218     esac
1219     eval $ac_envvar=\$ac_optarg
1220     export $ac_envvar ;;
1221
1222   *)
1223     # FIXME: should be removed in autoconf 3.0.
1224     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228     ;;
1229
1230   esac
1231 done
1232
1233 if test -n "$ac_prev"; then
1234   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235   as_fn_error "missing argument to $ac_option"
1236 fi
1237
1238 if test -n "$ac_unrecognized_opts"; then
1239   case $enable_option_checking in
1240     no) ;;
1241     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243   esac
1244 fi
1245
1246 # Check all directory arguments for consistency.
1247 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248                 datadir sysconfdir sharedstatedir localstatedir includedir \
1249                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250                 libdir localedir mandir
1251 do
1252   eval ac_val=\$$ac_var
1253   # Remove trailing slashes.
1254   case $ac_val in
1255     */ )
1256       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257       eval $ac_var=\$ac_val;;
1258   esac
1259   # Be sure to have absolute directory names.
1260   case $ac_val in
1261     [\\/$]* | ?:[\\/]* )  continue;;
1262     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263   esac
1264   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1266
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1273
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276   if test "x$build_alias" = x; then
1277     cross_compiling=maybe
1278     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279     If a cross compiler is detected then cross compile mode will be used." >&2
1280   elif test "x$build_alias" != "x$host_alias"; then
1281     cross_compiling=yes
1282   fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294   as_fn_error "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296   as_fn_error "pwd does not report name of working directory"
1297
1298
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301   ac_srcdir_defaulted=yes
1302   # Try the directory containing this script, then the parent directory.
1303   ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305          X"$as_myself" : 'X\(//\)[^/]' \| \
1306          X"$as_myself" : 'X\(//\)$' \| \
1307          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)[^/].*/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\).*/{
1322             s//\1/
1323             q
1324           }
1325           s/.*/./; q'`
1326   srcdir=$ac_confdir
1327   if test ! -r "$srcdir/$ac_unique_file"; then
1328     srcdir=..
1329   fi
1330 else
1331   ac_srcdir_defaulted=no
1332 fi
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336 fi
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340         pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343   srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 case $srcdir in
1352   *" "*)
1353     as_fn_error "path to source, $srcdir, contains spaces"
1354     ;;
1355 esac
1356 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1357
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures this package to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 Program names:
1430   --program-prefix=PREFIX            prepend PREFIX to installed program names
1431   --program-suffix=SUFFIX            append SUFFIX to installed program names
1432   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434 System types:
1435   --build=BUILD     configure for building on BUILD [guessed]
1436   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437   --target=TARGET   configure for building compilers for TARGET [HOST]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442
1443   cat <<\_ACEOF
1444
1445 Optional Features:
1446   --disable-option-checking  ignore unrecognized --enable/--with options
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-gold[=ARG]     build gold [ARG={both}[/{gold,ld}]]
1450   --enable-libada         build libada directory
1451   --enable-libssp         build libssp directory
1452   --enable-build-with-cxx build with C++ compiler instead of C compiler
1453   --disable-ppl-version-check    disable check for PPL version
1454   --disable-cloog-version-check  disable check for CLooG version
1455   --enable-lto            enable link time optimization support
1456   --enable-stage1-languages[=all]   choose additional languages to build during
1457                           stage1.  Mostly useful for compiler development.
1458   --enable-objc-gc        enable use of Boehm's garbage collector with the
1459                           GNU Objective-C runtime
1460   --enable-bootstrap      enable bootstrapping [yes if native build]
1461   --enable-serial-[{host,target,build}-]configure
1462                           force sequential configuration of
1463                           sub-packages for the host, target or build
1464                           machine, or all sub-packages
1465   --enable-maintainer-mode enable make rules and dependencies not useful
1466                           (and sometimes confusing) to the casual installer
1467   --enable-stage1-checking[=all]   choose additional checking for stage1
1468                           of the compiler
1469   --enable-werror         enable -Werror in bootstrap stage2 and later
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1475   --with-mpc=PATH        specify prefix directory for installed MPC package.
1476                           Equivalent to --with-mpc-include=PATH/include
1477                           plus --with-mpc-lib=PATH/lib
1478   --with-mpc-include=PATH
1479                           specify directory for installed MPC include files
1480   --with-mpc-lib=PATH    specify directory for the installed MPC library
1481   --with-mpfr-dir=PATH    this option has been REMOVED
1482   --with-mpfr=PATH        specify prefix directory for installed MPFR package.
1483                           Equivalent to --with-mpfr-include=PATH/include
1484                           plus --with-mpfr-lib=PATH/lib
1485   --with-mpfr-include=PATH
1486                           specify directory for installed MPFR include files
1487   --with-mpfr-lib=PATH    specify directory for the installed MPFR library
1488   --with-gmp-dir=PATH     this option has been REMOVED
1489   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1490                           Equivalent to --with-gmp-include=PATH/include
1491                           plus --with-gmp-lib=PATH/lib
1492   --with-gmp-include=PATH specify directory for installed GMP include files
1493   --with-gmp-lib=PATH     specify directory for the installed GMP library
1494   --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1495                           when linking with PPL
1496   --with-stage1-ldflags=FLAGS Linker flags for stage1
1497   -with-stage1-libs=LIBS      Libraries for stage1
1498   --with-boot-libs=LIBS     Libraries for stage2 and later
1499   --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1500   --with-ppl=PATH         Specify prefix directory for the installed PPL package
1501                           Equivalent to --with-ppl-include=PATH/include
1502                           plus --with-ppl-lib=PATH/lib
1503   --with-ppl-include=PATH Specify directory for installed PPL include files
1504   --with-ppl-lib=PATH     Specify the directory for the installed PPL library
1505   --with-cloog=PATH       Specify prefix directory for the installed CLooG-PPL package
1506                           Equivalent to --with-cloog-include=PATH/include
1507                           plus --with-cloog-lib=PATH/lib
1508   --with-cloog-include=PATH Specify directory for installed CLooG include files
1509   --with-cloog-lib=PATH   Specify the directory for the installed CLooG library
1510   --with-build-sysroot=SYSROOT
1511                           use sysroot as the system root during the build
1512   --with-debug-prefix-map='A=B C=D ...'
1513                              map A to B, C to D ... in debug information
1514 --with-build-config='NAME NAME2...'
1515                           Use config/NAME.mk build configuration
1516   --with-build-time-tools=PATH
1517                           use given path to find target tools during the build
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CXX         C++ compiler command
1528   CXXFLAGS    C++ compiler flags
1529   build_configargs
1530               additional configure arguments for build directories
1531   host_configargs
1532               additional configure arguments for host directories
1533   target_configargs
1534               additional configure arguments for target directories
1535   AR          AR for the host
1536   AS          AS for the host
1537   DLLTOOL     DLLTOOL for the host
1538   LD          LD for the host
1539   LIPO        LIPO for the host
1540   NM          NM for the host
1541   RANLIB      RANLIB for the host
1542   STRIP       STRIP for the host
1543   WINDRES     WINDRES for the host
1544   WINDMC      WINDMC for the host
1545   OBJCOPY     OBJCOPY for the host
1546   OBJDUMP     OBJDUMP for the host
1547   CC_FOR_TARGET
1548               CC for the target
1549   CXX_FOR_TARGET
1550               CXX for the target
1551   GCC_FOR_TARGET
1552               GCC for the target
1553   GCJ_FOR_TARGET
1554               GCJ for the target
1555   GFORTRAN_FOR_TARGET
1556               GFORTRAN for the target
1557   AR_FOR_TARGET
1558               AR for the target
1559   AS_FOR_TARGET
1560               AS for the target
1561   DLLTOOL_FOR_TARGET
1562               DLLTOOL for the target
1563   LD_FOR_TARGET
1564               LD for the target
1565   LIPO_FOR_TARGET
1566               LIPO for the target
1567   NM_FOR_TARGET
1568               NM for the target
1569   OBJDUMP_FOR_TARGET
1570               OBJDUMP for the target
1571   RANLIB_FOR_TARGET
1572               RANLIB for the target
1573   STRIP_FOR_TARGET
1574               STRIP for the target
1575   WINDRES_FOR_TARGET
1576               WINDRES for the target
1577   WINDMC_FOR_TARGET
1578               WINDMC for the target
1579
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1582
1583 Report bugs to the package provider.
1584 _ACEOF
1585 ac_status=$?
1586 fi
1587
1588 if test "$ac_init_help" = "recursive"; then
1589   # If there are subdirs, report their specific --help.
1590   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591     test -d "$ac_dir" ||
1592       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593       continue
1594     ac_builddir=.
1595
1596 case "$ac_dir" in
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *)
1599   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600   # A ".." for each directory in $ac_dir_suffix.
1601   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602   case $ac_top_builddir_sub in
1603   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605   esac ;;
1606 esac
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1611
1612 case $srcdir in
1613   .)  # We are building in place.
1614     ac_srcdir=.
1615     ac_top_srcdir=$ac_top_builddir_sub
1616     ac_abs_top_srcdir=$ac_pwd ;;
1617   [\\/]* | ?:[\\/]* )  # Absolute name.
1618     ac_srcdir=$srcdir$ac_dir_suffix;
1619     ac_top_srcdir=$srcdir
1620     ac_abs_top_srcdir=$srcdir ;;
1621   *) # Relative name.
1622     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623     ac_top_srcdir=$ac_top_build_prefix$srcdir
1624     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625 esac
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628     cd "$ac_dir" || { ac_status=$?; continue; }
1629     # Check for guested configure.
1630     if test -f "$ac_srcdir/configure.gnu"; then
1631       echo &&
1632       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633     elif test -f "$ac_srcdir/configure"; then
1634       echo &&
1635       $SHELL "$ac_srcdir/configure" --help=recursive
1636     else
1637       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638     fi || ac_status=$?
1639     cd "$ac_pwd" || { ac_status=$?; break; }
1640   done
1641 fi
1642
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1645   cat <<\_ACEOF
1646 configure
1647 generated by GNU Autoconf 2.64
1648
1649 Copyright (C) 2009 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1652 _ACEOF
1653   exit
1654 fi
1655
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1659
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1664 {
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   rm -f conftest.$ac_objext
1667   if { { ac_try="$ac_compile"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_compile") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } && {
1683          test -z "$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        } && test -s conftest.$ac_objext; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691         ac_retval=1
1692 fi
1693   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694   return $ac_retval
1695
1696 } # ac_fn_c_try_compile
1697
1698 # ac_fn_cxx_try_compile LINENO
1699 # ----------------------------
1700 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_cxx_try_compile ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   rm -f conftest.$ac_objext
1705   if { { ac_try="$ac_compile"
1706 case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_compile") 2>conftest.err
1713   ac_status=$?
1714   if test -s conftest.err; then
1715     grep -v '^ *+' conftest.err >conftest.er1
1716     cat conftest.er1 >&5
1717     mv -f conftest.er1 conftest.err
1718   fi
1719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720   test $ac_status = 0; } && {
1721          test -z "$ac_cxx_werror_flag" ||
1722          test ! -s conftest.err
1723        } && test -s conftest.$ac_objext; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729         ac_retval=1
1730 fi
1731   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732   return $ac_retval
1733
1734 } # ac_fn_cxx_try_compile
1735
1736 # ac_fn_c_try_link LINENO
1737 # -----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_link ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   rm -f conftest.$ac_objext conftest$ac_exeext
1743   if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746   *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750   (eval "$ac_link") 2>conftest.err
1751   ac_status=$?
1752   if test -s conftest.err; then
1753     grep -v '^ *+' conftest.err >conftest.er1
1754     cat conftest.er1 >&5
1755     mv -f conftest.er1 conftest.err
1756   fi
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } && {
1759          test -z "$ac_c_werror_flag" ||
1760          test ! -s conftest.err
1761        } && test -s conftest$ac_exeext && {
1762          test "$cross_compiling" = yes ||
1763          $as_test_x conftest$ac_exeext
1764        }; then :
1765   ac_retval=0
1766 else
1767   $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770         ac_retval=1
1771 fi
1772   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774   # interfere with the next link command; also delete a directory that is
1775   # left behind by Apple's compiler.  We do this before executing the actions.
1776   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778   return $ac_retval
1779
1780 } # ac_fn_c_try_link
1781 cat >config.log <<_ACEOF
1782 This file contains any messages produced by compilers while
1783 running configure, to aid debugging if configure makes a mistake.
1784
1785 It was created by $as_me, which was
1786 generated by GNU Autoconf 2.64.  Invocation command line was
1787
1788   $ $0 $@
1789
1790 _ACEOF
1791 exec 5>>config.log
1792 {
1793 cat <<_ASUNAME
1794 ## --------- ##
1795 ## Platform. ##
1796 ## --------- ##
1797
1798 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803
1804 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1806
1807 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1808 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1809 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1810 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1811 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1812 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1813 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1814
1815 _ASUNAME
1816
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822     $as_echo "PATH: $as_dir"
1823   done
1824 IFS=$as_save_IFS
1825
1826 } >&5
1827
1828 cat >&5 <<_ACEOF
1829
1830
1831 ## ----------- ##
1832 ## Core tests. ##
1833 ## ----------- ##
1834
1835 _ACEOF
1836
1837
1838 # Keep a trace of the command line.
1839 # Strip out --no-create and --no-recursion so they do not pile up.
1840 # Strip out --silent because we don't want to record it for future runs.
1841 # Also quote any args containing shell meta-characters.
1842 # Make two passes to allow for proper duplicate-argument suppression.
1843 ac_configure_args=
1844 ac_configure_args0=
1845 ac_configure_args1=
1846 ac_must_keep_next=false
1847 for ac_pass in 1 2
1848 do
1849   for ac_arg
1850   do
1851     case $ac_arg in
1852     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854     | -silent | --silent | --silen | --sile | --sil)
1855       continue ;;
1856     *\'*)
1857       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     esac
1859     case $ac_pass in
1860     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1861     2)
1862       as_fn_append ac_configure_args1 " '$ac_arg'"
1863       if test $ac_must_keep_next = true; then
1864         ac_must_keep_next=false # Got value, back to normal.
1865       else
1866         case $ac_arg in
1867           *=* | --config-cache | -C | -disable-* | --disable-* \
1868           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870           | -with-* | --with-* | -without-* | --without-* | --x)
1871             case "$ac_configure_args0 " in
1872               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873             esac
1874             ;;
1875           -* ) ac_must_keep_next=true ;;
1876         esac
1877       fi
1878       as_fn_append ac_configure_args " '$ac_arg'"
1879       ;;
1880     esac
1881   done
1882 done
1883 { ac_configure_args0=; unset ac_configure_args0;}
1884 { ac_configure_args1=; unset ac_configure_args1;}
1885
1886 # When interrupted or exit'd, cleanup temporary files, and complete
1887 # config.log.  We remove comments because anyway the quotes in there
1888 # would cause problems or look ugly.
1889 # WARNING: Use '\'' to represent an apostrophe within the trap.
1890 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1891 trap 'exit_status=$?
1892   # Save into config.log some information that might help in debugging.
1893   {
1894     echo
1895
1896     cat <<\_ASBOX
1897 ## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##
1900 _ASBOX
1901     echo
1902     # The following way of writing the cache mishandles newlines in values,
1903 (
1904   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1905     eval ac_val=\$$ac_var
1906     case $ac_val in #(
1907     *${as_nl}*)
1908       case $ac_var in #(
1909       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1910 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1911       esac
1912       case $ac_var in #(
1913       _ | IFS | as_nl) ;; #(
1914       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1915       *) { eval $ac_var=; unset $ac_var;} ;;
1916       esac ;;
1917     esac
1918   done
1919   (set) 2>&1 |
1920     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1921     *${as_nl}ac_space=\ *)
1922       sed -n \
1923         "s/'\''/'\''\\\\'\'''\''/g;
1924           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1925       ;; #(
1926     *)
1927       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1928       ;;
1929     esac |
1930     sort
1931 )
1932     echo
1933
1934     cat <<\_ASBOX
1935 ## ----------------- ##
1936 ## Output variables. ##
1937 ## ----------------- ##
1938 _ASBOX
1939     echo
1940     for ac_var in $ac_subst_vars
1941     do
1942       eval ac_val=\$$ac_var
1943       case $ac_val in
1944       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945       esac
1946       $as_echo "$ac_var='\''$ac_val'\''"
1947     done | sort
1948     echo
1949
1950     if test -n "$ac_subst_files"; then
1951       cat <<\_ASBOX
1952 ## ------------------- ##
1953 ## File substitutions. ##
1954 ## ------------------- ##
1955 _ASBOX
1956       echo
1957       for ac_var in $ac_subst_files
1958       do
1959         eval ac_val=\$$ac_var
1960         case $ac_val in
1961         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962         esac
1963         $as_echo "$ac_var='\''$ac_val'\''"
1964       done | sort
1965       echo
1966     fi
1967
1968     if test -s confdefs.h; then
1969       cat <<\_ASBOX
1970 ## ----------- ##
1971 ## confdefs.h. ##
1972 ## ----------- ##
1973 _ASBOX
1974       echo
1975       cat confdefs.h
1976       echo
1977     fi
1978     test "$ac_signal" != 0 &&
1979       $as_echo "$as_me: caught signal $ac_signal"
1980     $as_echo "$as_me: exit $exit_status"
1981   } >&5
1982   rm -f core *.core core.conftest.* &&
1983     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1984     exit $exit_status
1985 ' 0
1986 for ac_signal in 1 2 13 15; do
1987   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1988 done
1989 ac_signal=0
1990
1991 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1992 rm -f -r conftest* confdefs.h
1993
1994 $as_echo "/* confdefs.h */" > confdefs.h
1995
1996 # Predefined preprocessor variables.
1997
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_NAME "$PACKAGE_NAME"
2000 _ACEOF
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004 _ACEOF
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2008 _ACEOF
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_STRING "$PACKAGE_STRING"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_URL "$PACKAGE_URL"
2020 _ACEOF
2021
2022
2023 # Let the site file select an alternate cache file if it wants to.
2024 # Prefer an explicitly selected file to automatically selected ones.
2025 ac_site_file1=NONE
2026 ac_site_file2=NONE
2027 if test -n "$CONFIG_SITE"; then
2028   ac_site_file1=$CONFIG_SITE
2029 elif test "x$prefix" != xNONE; then
2030   ac_site_file1=$prefix/share/config.site
2031   ac_site_file2=$prefix/etc/config.site
2032 else
2033   ac_site_file1=$ac_default_prefix/share/config.site
2034   ac_site_file2=$ac_default_prefix/etc/config.site
2035 fi
2036 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2037 do
2038   test "x$ac_site_file" = xNONE && continue
2039   if test -r "$ac_site_file"; then
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2042     sed 's/^/| /' "$ac_site_file" >&5
2043     . "$ac_site_file"
2044   fi
2045 done
2046
2047 if test -r "$cache_file"; then
2048   # Some versions of bash will fail to source /dev/null (special
2049   # files actually), so we avoid doing that.
2050   if test -f "$cache_file"; then
2051     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2052 $as_echo "$as_me: loading cache $cache_file" >&6;}
2053     case $cache_file in
2054       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055       *)                      . "./$cache_file";;
2056     esac
2057   fi
2058 else
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2060 $as_echo "$as_me: creating cache $cache_file" >&6;}
2061   >$cache_file
2062 fi
2063
2064 # Check that the precious variables saved in the cache have kept the same
2065 # value.
2066 ac_cache_corrupted=false
2067 for ac_var in $ac_precious_vars; do
2068   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2069   eval ac_new_set=\$ac_env_${ac_var}_set
2070   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2071   eval ac_new_val=\$ac_env_${ac_var}_value
2072   case $ac_old_set,$ac_new_set in
2073     set,)
2074       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2075 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2076       ac_cache_corrupted=: ;;
2077     ,set)
2078       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2080       ac_cache_corrupted=: ;;
2081     ,);;
2082     *)
2083       if test "x$ac_old_val" != "x$ac_new_val"; then
2084         # differences in whitespace do not lead to failure.
2085         ac_old_val_w=`echo x $ac_old_val`
2086         ac_new_val_w=`echo x $ac_new_val`
2087         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2088           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2089 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2090           ac_cache_corrupted=:
2091         else
2092           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2093 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2094           eval $ac_var=\$ac_old_val
2095         fi
2096         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2097 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2098         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2099 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2100       fi;;
2101   esac
2102   # Pass precious variables to config.status.
2103   if test "$ac_new_set" = set; then
2104     case $ac_new_val in
2105     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2106     *) ac_arg=$ac_var=$ac_new_val ;;
2107     esac
2108     case " $ac_configure_args " in
2109       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2110       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2111     esac
2112   fi
2113 done
2114 if $ac_cache_corrupted; then
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2118 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2119   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2120 fi
2121 ## -------------------- ##
2122 ## Main body of script. ##
2123 ## -------------------- ##
2124
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139 progname=$0
2140 # if PWD already has a value, it is probably wrong.
2141 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2142
2143 # Export original configure arguments for use by sub-configures.
2144 # Quote arguments with shell meta charatcers.
2145 TOPLEVEL_CONFIGURE_ARGUMENTS=
2146 set -- "$progname" "$@"
2147 for ac_arg
2148 do
2149   case "$ac_arg" in
2150   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2151     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2152     # if the argument is of the form -foo=baz, quote the baz part only
2153     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2154   *) ;;
2155   esac
2156   # Add the quoted argument to the list.
2157   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2158 done
2159 if test "$silent" = yes; then
2160   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2161 fi
2162 # Remove the initial space we just introduced and, as these will be
2163 # expanded by make, quote '$'.
2164 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2165
2166
2167 # Find the build, host, and target systems.
2168 ac_aux_dir=
2169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170   for ac_t in install-sh install.sh shtool; do
2171     if test -f "$ac_dir/$ac_t"; then
2172       ac_aux_dir=$ac_dir
2173       ac_install_sh="$ac_aux_dir/$ac_t -c"
2174       break 2
2175     fi
2176   done
2177 done
2178 if test -z "$ac_aux_dir"; then
2179   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2180 fi
2181
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2189
2190
2191 # Make sure we can run config.sub.
2192 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2194
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2196 $as_echo_n "checking build system type... " >&6; }
2197 if test "${ac_cv_build+set}" = set; then :
2198   $as_echo_n "(cached) " >&6
2199 else
2200   ac_build_alias=$build_alias
2201 test "x$ac_build_alias" = x &&
2202   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2203 test "x$ac_build_alias" = x &&
2204   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2205 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2206   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2207
2208 fi
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2210 $as_echo "$ac_cv_build" >&6; }
2211 case $ac_cv_build in
2212 *-*-*) ;;
2213 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2214 esac
2215 build=$ac_cv_build
2216 ac_save_IFS=$IFS; IFS='-'
2217 set x $ac_cv_build
2218 shift
2219 build_cpu=$1
2220 build_vendor=$2
2221 shift; shift
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2224 build_os=$*
2225 IFS=$ac_save_IFS
2226 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2227
2228
2229  case ${build_alias} in
2230   "") build_noncanonical=${build} ;;
2231   *) build_noncanonical=${build_alias} ;;
2232 esac
2233
2234
2235
2236  case ${host_alias} in
2237   "") host_noncanonical=${build_noncanonical} ;;
2238   *) host_noncanonical=${host_alias} ;;
2239 esac
2240
2241
2242
2243  case ${target_alias} in
2244   "") target_noncanonical=${host_noncanonical} ;;
2245   *) target_noncanonical=${target_alias} ;;
2246 esac
2247
2248
2249
2250
2251 test "$host_noncanonical" = "$target_noncanonical" &&
2252   test "$program_prefix$program_suffix$program_transform_name" = \
2253     NONENONEs,x,x, &&
2254   program_transform_name=s,y,y,
2255
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2257 $as_echo_n "checking host system type... " >&6; }
2258 if test "${ac_cv_host+set}" = set; then :
2259   $as_echo_n "(cached) " >&6
2260 else
2261   if test "x$host_alias" = x; then
2262   ac_cv_host=$ac_cv_build
2263 else
2264   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2265     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2266 fi
2267
2268 fi
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2270 $as_echo "$ac_cv_host" >&6; }
2271 case $ac_cv_host in
2272 *-*-*) ;;
2273 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2274 esac
2275 host=$ac_cv_host
2276 ac_save_IFS=$IFS; IFS='-'
2277 set x $ac_cv_host
2278 shift
2279 host_cpu=$1
2280 host_vendor=$2
2281 shift; shift
2282 # Remember, the first character of IFS is used to create $*,
2283 # except with old shells:
2284 host_os=$*
2285 IFS=$ac_save_IFS
2286 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2287
2288
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2290 $as_echo_n "checking target system type... " >&6; }
2291 if test "${ac_cv_target+set}" = set; then :
2292   $as_echo_n "(cached) " >&6
2293 else
2294   if test "x$target_alias" = x; then
2295   ac_cv_target=$ac_cv_host
2296 else
2297   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2298     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2299 fi
2300
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2303 $as_echo "$ac_cv_target" >&6; }
2304 case $ac_cv_target in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2307 esac
2308 target=$ac_cv_target
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_target
2311 shift
2312 target_cpu=$1
2313 target_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 target_os=$*
2318 IFS=$ac_save_IFS
2319 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2320
2321
2322 # The aliases save the names the user supplied, while $host etc.
2323 # will get canonicalized.
2324 test -n "$target_alias" &&
2325   test "$program_prefix$program_suffix$program_transform_name" = \
2326     NONENONEs,x,x, &&
2327   program_prefix=${target_alias}-
2328
2329 test "$program_prefix" != NONE &&
2330   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2331 # Use a double $ so make ignores it.
2332 test "$program_suffix" != NONE &&
2333   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334 # Double any \ or $.
2335 # By default was `s,x,x', remove it if useless.
2336 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2337 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2338
2339
2340
2341 # Get 'install' or 'install-sh' and its variants.
2342 # Find a good install program.  We prefer a C program (faster),
2343 # so one script is as good as another.  But avoid the broken or
2344 # incompatible versions:
2345 # SysV /etc/install, /usr/sbin/install
2346 # SunOS /usr/etc/install
2347 # IRIX /sbin/install
2348 # AIX /bin/install
2349 # AmigaOS /C/install, which installs bootblocks on floppy discs
2350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2353 # OS/2's system install, which has a completely different semantic
2354 # ./install, which can be erroneously created by make from ./install.sh.
2355 # Reject install programs that cannot install multiple files.
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2358 if test -z "$INSTALL"; then
2359 if test "${ac_cv_path_install+set}" = set; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367     # Account for people who put trailing slashes in PATH elements.
2368 case $as_dir/ in #((
2369   ./ | .// | /[cC]/* | \
2370   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2371   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2372   /usr/ucb/* ) ;;
2373   *)
2374     # OSF1 and SCO ODT 3.0 have their own names for install.
2375     # Don't use installbsd from OSF since it installs stuff as root
2376     # by default.
2377     for ac_prog in ginstall scoinst install; do
2378       for ac_exec_ext in '' $ac_executable_extensions; do
2379         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2380           if test $ac_prog = install &&
2381             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382             # AIX install.  It has an incompatible calling convention.
2383             :
2384           elif test $ac_prog = install &&
2385             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386             # program-specific install script used by HP pwplus--don't use.
2387             :
2388           else
2389             rm -rf conftest.one conftest.two conftest.dir
2390             echo one > conftest.one
2391             echo two > conftest.two
2392             mkdir conftest.dir
2393             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394               test -s conftest.one && test -s conftest.two &&
2395               test -s conftest.dir/conftest.one &&
2396               test -s conftest.dir/conftest.two
2397             then
2398               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399               break 3
2400             fi
2401           fi
2402         fi
2403       done
2404     done
2405     ;;
2406 esac
2407
2408   done
2409 IFS=$as_save_IFS
2410
2411 rm -rf conftest.one conftest.two conftest.dir
2412
2413 fi
2414   if test "${ac_cv_path_install+set}" = set; then
2415     INSTALL=$ac_cv_path_install
2416   else
2417     # As a last resort, use the slow shell script.  Don't cache a
2418     # value for INSTALL within a source directory, because that will
2419     # break other packages using the cache if that directory is
2420     # removed, or if the value is a relative name.
2421     INSTALL=$ac_install_sh
2422   fi
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425 $as_echo "$INSTALL" >&6; }
2426
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
2431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2432
2433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2436 $as_echo_n "checking whether ln works... " >&6; }
2437 if test "${acx_cv_prog_LN+set}" = set; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   rm -f conftestdata_t
2441 echo >conftestdata_f
2442 if ln conftestdata_f conftestdata_t 2>/dev/null
2443 then
2444   acx_cv_prog_LN=ln
2445 else
2446   acx_cv_prog_LN=no
2447 fi
2448 rm -f conftestdata_f conftestdata_t
2449
2450 fi
2451 if test $acx_cv_prog_LN = no; then
2452   LN="cp"
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2454 $as_echo "no, using $LN" >&6; }
2455 else
2456   LN="$acx_cv_prog_LN"
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458 $as_echo "yes" >&6; }
2459 fi
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2462 $as_echo_n "checking whether ln -s works... " >&6; }
2463 LN_S=$as_ln_s
2464 if test "$LN_S" = "ln -s"; then
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2466 $as_echo "yes" >&6; }
2467 else
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2469 $as_echo "no, using $LN_S" >&6; }
2470 fi
2471
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2473 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2474 if test "${ac_cv_path_SED+set}" = set; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2478      for ac_i in 1 2 3 4 5 6 7; do
2479        ac_script="$ac_script$as_nl$ac_script"
2480      done
2481      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2482      { ac_script=; unset ac_script;}
2483      if test -z "$SED"; then
2484   ac_path_SED_found=false
2485   # Loop through the user's path and test for each of PROGNAME-LIST
2486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     for ac_prog in sed gsed; do
2492     for ac_exec_ext in '' $ac_executable_extensions; do
2493       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2494       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2495 # Check for GNU ac_path_SED and select it if it is found.
2496   # Check for GNU $ac_path_SED
2497 case `"$ac_path_SED" --version 2>&1` in
2498 *GNU*)
2499   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2500 *)
2501   ac_count=0
2502   $as_echo_n 0123456789 >"conftest.in"
2503   while :
2504   do
2505     cat "conftest.in" "conftest.in" >"conftest.tmp"
2506     mv "conftest.tmp" "conftest.in"
2507     cp "conftest.in" "conftest.nl"
2508     $as_echo '' >> "conftest.nl"
2509     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2510     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2511     as_fn_arith $ac_count + 1 && ac_count=$as_val
2512     if test $ac_count -gt ${ac_path_SED_max-0}; then
2513       # Best one so far, save it but keep looking for a better one
2514       ac_cv_path_SED="$ac_path_SED"
2515       ac_path_SED_max=$ac_count
2516     fi
2517     # 10*(2^10) chars as input seems more than enough
2518     test $ac_count -gt 10 && break
2519   done
2520   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2521 esac
2522
2523       $ac_path_SED_found && break 3
2524     done
2525   done
2526   done
2527 IFS=$as_save_IFS
2528   if test -z "$ac_cv_path_SED"; then
2529     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2530   fi
2531 else
2532   ac_cv_path_SED=$SED
2533 fi
2534
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2537 $as_echo "$ac_cv_path_SED" >&6; }
2538  SED="$ac_cv_path_SED"
2539   rm -f conftest.sed
2540
2541 for ac_prog in gawk mawk nawk awk
2542 do
2543   # Extract the first word of "$ac_prog", so it can be a program name with args.
2544 set dummy $ac_prog; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if test "${ac_cv_prog_AWK+set}" = set; then :
2548   $as_echo_n "(cached) " >&6
2549 else
2550   if test -n "$AWK"; then
2551   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556   IFS=$as_save_IFS
2557   test -z "$as_dir" && as_dir=.
2558     for ac_exec_ext in '' $ac_executable_extensions; do
2559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560     ac_cv_prog_AWK="$ac_prog"
2561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562     break 2
2563   fi
2564 done
2565   done
2566 IFS=$as_save_IFS
2567
2568 fi
2569 fi
2570 AWK=$ac_cv_prog_AWK
2571 if test -n "$AWK"; then
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2573 $as_echo "$AWK" >&6; }
2574 else
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2577 fi
2578
2579
2580   test -n "$AWK" && break
2581 done
2582
2583
2584 ### we might need to use some other shell than /bin/sh for running subshells
2585 ### If we are on Windows, search for the shell.  This will permit people
2586 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2587 ### without also having to set CONFIG_SHELL.  This code will work when
2588 ### using bash, which sets OSTYPE.
2589 case "${OSTYPE}" in
2590 *win32*)
2591   if test x${CONFIG_SHELL} = x ; then
2592     if test ! -f /bin/sh ; then
2593       if test x${SHELL} != x && test -f ${SHELL} ; then
2594         CONFIG_SHELL=${SHELL}
2595         export CONFIG_SHELL
2596       else
2597         for prog in sh sh.exe bash bash.exe; do
2598           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2599           for dir in $PATH; do
2600             test -z "$dir" && dir=.
2601             if test -f $dir/$prog; then
2602               CONFIG_SHELL=$dir/$prog
2603               export CONFIG_SHELL
2604               break
2605             fi
2606           done
2607           IFS="$save_ifs"
2608           test -n "${CONFIG_SHELL}" && break
2609         done
2610       fi
2611     fi
2612   fi
2613   ;;
2614 esac
2615
2616 config_shell=${CONFIG_SHELL-/bin/sh}
2617
2618 moveifchange=${srcdir}/move-if-change
2619
2620 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2621
2622 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2623 # a relative path.
2624 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2625   INSTALL="${srcpwd}/install-sh -c"
2626 fi
2627
2628 # Set srcdir to "." if that's what it is.
2629 # This is important for multilib support.
2630 pwd=`${PWDCMD-pwd}`
2631 if test "${pwd}" = "${srcpwd}" ; then
2632   srcdir=.
2633 fi
2634
2635 topsrcdir=$srcpwd
2636
2637 extra_host_args=
2638
2639 ### To add a new directory to the tree, first choose whether it is a target
2640 ### or a host dependent tool.  Then put it into the appropriate list
2641 ### (library or tools, host or target), doing a dependency sort.
2642
2643 # Subdirs will be configured in the order listed in build_configdirs,
2644 # configdirs, or target_configdirs; see the serialization section below.
2645
2646 # Dependency sorting is only needed when *configuration* must be done in
2647 # a particular order.  In all cases a dependency should be specified in
2648 # the Makefile, whether or not it's implicitly specified here.
2649
2650 # Double entries in build_configdirs, configdirs, or target_configdirs may
2651 # cause circular dependencies and break everything horribly.
2652
2653 # these library is used by various programs built for the build
2654 # environment
2655 #
2656 build_libs="build-libiberty"
2657
2658 # these tools are built for the build environment
2659 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2660
2661 # these libraries are used by various programs built for the host environment
2662 #
2663 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2664
2665 # these tools are built for the host environment
2666 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2667 # know that we are building the simulator.
2668 # binutils, gas and ld appear in that order because it makes sense to run
2669 # "make check" in that particular order.
2670 # If --enable-gold is used, "gold" may replace "ld".
2671 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2672
2673 # libgcj represents the runtime libraries only used by gcj.
2674 libgcj="target-libffi \
2675         target-zlib \
2676         target-qthreads \
2677         target-libjava"
2678
2679 # these libraries are built for the target environment, and are built after
2680 # the host libraries and the host tools (which may be a cross compiler)
2681 #
2682 target_libraries="target-libgcc \
2683                 target-libiberty \
2684                 target-libgloss \
2685                 target-newlib \
2686                 target-libgomp \
2687                 target-libstdc++-v3 \
2688                 target-libmudflap \
2689                 target-libssp \
2690                 target-libgfortran \
2691                 target-boehm-gc \
2692                 ${libgcj} \
2693                 target-libobjc \
2694                 target-libada"
2695
2696 # these tools are built using the target libraries, and are intended to
2697 # run only in the target environment
2698 #
2699 # note: any program that *uses* libraries that are in the "target_libraries"
2700 # list belongs in this list.  those programs are also very likely
2701 # candidates for the "native_only" list which follows
2702 #
2703 target_tools="target-examples target-groff target-gperf target-rda"
2704
2705 ################################################################################
2706
2707 ## All tools belong in one of the four categories, and are assigned above
2708 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2709 ## is important because configure will choke if they ever get through.
2710 ## ${configdirs} is directories we build using the host tools.
2711 ## ${target_configdirs} is directories we build using the target tools.
2712 configdirs=`echo ${host_libs} ${host_tools}`
2713 target_configdirs=`echo ${target_libraries} ${target_tools}`
2714 build_configdirs=`echo ${build_libs} ${build_tools}`
2715
2716
2717
2718 ################################################################################
2719
2720 srcname="gnu development package"
2721
2722 # This gets set non-empty for some net releases of packages.
2723 appdirs=""
2724
2725 # Define is_cross_compiler to save on calls to 'test'.
2726 is_cross_compiler=
2727 if test x"${host}" = x"${target}" ; then
2728   is_cross_compiler=no
2729 else
2730   is_cross_compiler=yes
2731 fi
2732
2733 # Find the build and target subdir names.
2734
2735 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2736 # have matching libraries, they should use host libraries: Makefile.tpl
2737 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2738 # However, they still use the build modules, because the corresponding
2739 # host modules (e.g. bison) are only built for the host when bootstrap
2740 # finishes. So:
2741 # - build_subdir is where we find build modules, and never changes.
2742 # - build_libsubdir is where we find build libraries, and can be overridden.
2743
2744 # Prefix 'build-' so this never conflicts with target_subdir.
2745 build_subdir="build-${build_noncanonical}"
2746
2747 # Check whether --with-build-libsubdir was given.
2748 if test "${with_build_libsubdir+set}" = set; then :
2749   withval=$with_build_libsubdir; build_libsubdir="$withval"
2750 else
2751   build_libsubdir="$build_subdir"
2752 fi
2753
2754 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2755 if ( test $srcdir = . && test -d gcc ) \
2756    || test -d $srcdir/../host-${host_noncanonical}; then
2757   host_subdir="host-${host_noncanonical}"
2758 else
2759   host_subdir=.
2760 fi
2761 # No prefix.
2762 target_subdir=${target_noncanonical}
2763
2764 # Be sure to cover against remnants of an in-tree build.
2765 if test $srcdir != .  && test -d $srcdir/host-${host_noncanonical}; then
2766   as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2767 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2768 fi
2769
2770 # Skipdirs are removed silently.
2771 skipdirs=
2772 # Noconfigdirs are removed loudly.
2773 noconfigdirs=""
2774
2775 use_gnu_ld=
2776 # Make sure we don't let GNU ld be added if we didn't want it.
2777 if test x$with_gnu_ld = xno ; then
2778   use_gnu_ld=no
2779   noconfigdirs="$noconfigdirs ld gold"
2780 fi
2781
2782 use_gnu_as=
2783 # Make sure we don't let GNU as be added if we didn't want it.
2784 if test x$with_gnu_as = xno ; then
2785   use_gnu_as=no
2786   noconfigdirs="$noconfigdirs gas"
2787 fi
2788
2789 use_included_zlib=
2790 # Make sure we don't let ZLIB be added if we didn't want it.
2791 if test x$with_system_zlib = xyes ; then
2792   use_included_zlib=no
2793   noconfigdirs="$noconfigdirs zlib"
2794 fi
2795
2796 # some tools are so dependent upon X11 that if we're not building with X,
2797 # it's not even worth trying to configure, much less build, that tool.
2798
2799 case ${with_x} in
2800   yes | "") ;; # the default value for this tree is that X11 is available
2801   no)
2802     skipdirs="${skipdirs} tk itcl libgui"
2803     # We won't be able to build gdbtk without X.
2804     enable_gdbtk=no
2805     ;;
2806   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2807 esac
2808
2809 # Some tools are only suitable for building in a "native" situation.
2810 # Remove these if host!=target.
2811 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2812
2813 # Similarly, some are only suitable for cross toolchains.
2814 # Remove these if host=target.
2815 cross_only="target-libgloss target-newlib target-opcodes"
2816
2817 case $is_cross_compiler in
2818   no) skipdirs="${skipdirs} ${cross_only}" ;;
2819   yes) skipdirs="${skipdirs} ${native_only}" ;;
2820 esac
2821
2822 # If both --with-headers and --with-libs are specified, default to
2823 # --without-newlib.
2824 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2825    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2826   if test x"${with_newlib}" = x ; then
2827     with_newlib=no
2828   fi
2829 fi
2830
2831 # Recognize --with-newlib/--without-newlib.
2832 case ${with_newlib} in
2833   no) skipdirs="${skipdirs} target-newlib" ;;
2834   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2835 esac
2836
2837 # Handle --enable-gold.
2838 #   --enable-gold               Build only gold
2839 #   --disable-gold [default]    Build only ld
2840 #   --enable-gold=both          Build both gold and ld, ld is default
2841 #   --enable-gold=both/ld       Same
2842 #   --enable-gold=both/gold     Build both gold and ld, gold is default, ld is renamed ld.bfd
2843
2844 # Check whether --enable-gold was given.
2845 if test "${enable_gold+set}" = set; then :
2846   enableval=$enable_gold; ENABLE_GOLD=$enableval
2847 else
2848   ENABLE_GOLD=no
2849 fi
2850
2851   case "${ENABLE_GOLD}" in
2852   yes|both|both/gold|both/ld)
2853     # Check for ELF target.
2854     is_elf=no
2855     case "${target}" in
2856       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2857       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2858       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2859         case "${target}" in
2860           *-*-linux*aout* | *-*-linux*oldld*)
2861             ;;
2862           *)
2863             is_elf=yes
2864             ;;
2865         esac
2866     esac
2867
2868     if test "$is_elf" = "yes"; then
2869       # Check for target supported by gold.
2870       case "${target}" in
2871         i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2872           case "${ENABLE_GOLD}" in
2873           both*)
2874             configdirs="$configdirs gold"
2875             ;;
2876           *)
2877             configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2878             ;;
2879           esac
2880           ENABLE_GOLD=yes
2881           ;;
2882       esac
2883     fi
2884     ;;
2885   no)
2886     ;;
2887   *)
2888     as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2889     ;;
2890   esac
2891
2892 # Configure extra directories which are host specific
2893
2894 case "${host}" in
2895   *-cygwin*)
2896     configdirs="$configdirs libtermcap" ;;
2897 esac
2898
2899 # A target can indicate whether a language isn't supported for some reason.
2900 # Only spaces may be used in this macro; not newlines or tabs.
2901 unsupported_languages=
2902
2903 # Remove more programs from consideration, based on the host or
2904 # target this usually means that a port of the program doesn't
2905 # exist yet.
2906
2907 case "${host}" in
2908   hppa*64*-*-*)
2909     noconfigdirs="$noconfigdirs byacc"
2910     ;;
2911   i[3456789]86-*-vsta)
2912     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2913     ;;
2914   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2915     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2916     ;;
2917   x86_64-*-mingw*)
2918     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2919     ;;
2920   i[3456789]86-*-mingw32*)
2921     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2922     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2923     ;;
2924   i[3456789]86-*-beos*)
2925     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2926     ;;
2927   *-*-cygwin*)
2928     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2929     ;;
2930   *-*-netbsd*)
2931     noconfigdirs="$noconfigdirs rcs"
2932     ;;
2933   ppc*-*-pe)
2934     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2935     ;;
2936   powerpc-*-beos*)
2937     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2938     ;;
2939 esac
2940
2941
2942 # Check whether --enable-libada was given.
2943 if test "${enable_libada+set}" = set; then :
2944   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2945 else
2946   ENABLE_LIBADA=yes
2947 fi
2948
2949 if test "${ENABLE_LIBADA}" != "yes" ; then
2950   noconfigdirs="$noconfigdirs gnattools"
2951 fi
2952
2953 # Check whether --enable-libssp was given.
2954 if test "${enable_libssp+set}" = set; then :
2955   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2956 else
2957   ENABLE_LIBSSP=yes
2958 fi
2959
2960
2961 # Save it here so that, even in case of --enable-libgcj, if the Java
2962 # front-end isn't enabled, we still get libgcj disabled.
2963 libgcj_saved=$libgcj
2964 case $enable_libgcj in
2965 yes)
2966   # If we reset it here, it won't get added to noconfigdirs in the
2967   # target-specific build rules, so it will be forcibly enabled
2968   # (unless the Java language itself isn't enabled).
2969   libgcj=
2970   ;;
2971 no)
2972   # Make sure we get it printed in the list of not supported target libs.
2973   noconfigdirs="$noconfigdirs ${libgcj}"
2974   ;;
2975 esac
2976
2977
2978 # Disable libmudflap on some systems.
2979 if test x$enable_libmudflap = x ; then
2980     case "${target}" in
2981     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2982         # Enable libmudflap by default in GNU and friends.
2983         ;;
2984     *-*-freebsd*)
2985         # Enable libmudflap by default in FreeBSD.
2986         ;;
2987     *)
2988         # Disable it by default everywhere else.
2989         noconfigdirs="$noconfigdirs target-libmudflap"
2990         ;;
2991     esac
2992 fi
2993
2994 # Disable libgomp on non POSIX hosted systems.
2995 if test x$enable_libgomp = x ; then
2996     # Enable libgomp by default on hosted POSIX systems.
2997     case "${target}" in
2998     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2999         ;;
3000     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3001         ;;
3002     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3003         ;;
3004     *-*-darwin* | *-*-aix*)
3005         ;;
3006     *)
3007         noconfigdirs="$noconfigdirs target-libgomp"
3008         ;;
3009     esac
3010 fi
3011
3012 # Default libgloss CPU subdirectory.
3013 libgloss_dir="$target_cpu"
3014
3015 case "${target}" in
3016   *-*-chorusos)
3017     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3018     ;;
3019   powerpc-*-darwin*)
3020     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3021     noconfigdirs="$noconfigdirs sim target-rda"
3022     ;;
3023   i[3456789]86-*-darwin*)
3024     noconfigdirs="$noconfigdirs ld gprof"
3025     noconfigdirs="$noconfigdirs sim target-rda"
3026     ;;
3027   x86_64-*-darwin[912]*)
3028     noconfigdirs="$noconfigdirs ld gas gprof"
3029     noconfigdirs="$noconfigdirs sim target-rda"
3030     ;;
3031   *-*-darwin*)
3032     noconfigdirs="$noconfigdirs ld gas gdb gprof"
3033     noconfigdirs="$noconfigdirs sim target-rda"
3034     noconfigdirs="$noconfigdirs ${libgcj}"
3035     ;;
3036   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3037     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3038     ;;
3039   *-*-freebsd*)
3040     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3041     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3042         && test -f /usr/local/include/gmp.h; then
3043       with_gmp=/usr/local
3044     fi
3045
3046     # Skip some stuff that's unsupported on some FreeBSD configurations.
3047     case "${target}" in
3048       i*86-*-*) ;;
3049       alpha*-*-*) ;;
3050       x86_64-*-*) ;;
3051       *)
3052         noconfigdirs="$noconfigdirs ${libgcj}"
3053         ;;
3054     esac
3055     ;;
3056   *-*-kaos*)
3057     # Remove unsupported stuff on all kaOS configurations.
3058     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3059     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3060     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3061     noconfigdirs="$noconfigdirs target-libgloss"
3062     ;;
3063   *-*-netbsd*)
3064     # Skip some stuff on all NetBSD configurations.
3065     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3066
3067     # Skip some stuff that's unsupported on some NetBSD configurations.
3068     case "${target}" in
3069       i*86-*-netbsdelf*) ;;
3070       arm*-*-netbsdelf*) ;;
3071       *)
3072         noconfigdirs="$noconfigdirs ${libgcj}"
3073         ;;
3074     esac
3075     ;;
3076   *-*-netware*)
3077     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3078     ;;
3079   *-*-rtems*)
3080     skipdirs="${skipdirs} target-libiberty"
3081     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3082     ;;
3083     # The tpf target doesn't support gdb yet.
3084   *-*-tpf*)
3085     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3086     ;;
3087   *-*-uclinux*)
3088     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3089     ;;
3090   *-*-vxworks*)
3091     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3092     ;;
3093   alpha*-dec-osf*)
3094     # ld works, but does not support shared libraries.
3095     # newlib is not 64 bit ready.  I'm not sure about fileutils.
3096     # gas doesn't generate exception information.
3097     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3098     ;;
3099   alpha*-*-*vms*)
3100     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3101     ;;
3102   alpha*-*-linux*)
3103     # newlib is not 64 bit ready
3104     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105     ;;
3106   alpha*-*-*)
3107     # newlib is not 64 bit ready
3108     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3109     ;;
3110   am33_2.0-*-linux*)
3111     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3112     ;;
3113   sh-*-linux*)
3114     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3115     ;;
3116   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3117     noconfigdirs="$noconfigdirs ${libgcj}"
3118     noconfigdirs="$noconfigdirs target-examples"
3119     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3120     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3121     noconfigdirs="$noconfigdirs expect dejagnu"
3122     # the C++ libraries don't build on top of CE's C libraries
3123     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3124     noconfigdirs="$noconfigdirs target-newlib"
3125     case "${host}" in
3126       *-*-cygwin*) ;; # keep gdb and readline
3127       *) noconfigdirs="$noconfigdirs gdb readline"
3128          ;;
3129     esac
3130     libgloss_dir=wince
3131     ;;
3132   arc-*-*)
3133     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3134     ;;
3135   arm-semi-aof )
3136     ;;
3137   arm-*-coff | strongarm-*-coff | xscale-*-coff)
3138     noconfigdirs="$noconfigdirs ${libgcj}"
3139     libgloss_dir=arm
3140     ;;
3141   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3142     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3143     libgloss_dir=arm
3144     ;;
3145   arm*-*-linux-gnueabi)
3146     noconfigdirs="$noconfigdirs target-qthreads"
3147     case ${with_newlib} in
3148       no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3149     esac
3150     libgloss_dir=arm
3151     ;;
3152   arm*-*-symbianelf*)
3153     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3154     libgloss_dir=arm
3155     ;;
3156   arm-*-pe*)
3157     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3158     ;;
3159   thumb-*-coff)
3160     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3161     ;;
3162   thumb-*-elf)
3163     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3164     ;;
3165   thumb-*-pe)
3166     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3167     ;;
3168   arm-*-riscix*)
3169     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3170     ;;
3171   avr-*-*)
3172     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3173     ;;
3174   bfin-*-*)
3175     unsupported_languages="$unsupported_languages java"
3176     noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3177     if test x${is_cross_compiler} != xno ; then
3178       target_configdirs="${target_configdirs} target-bsp target-cygmon"
3179     fi
3180     ;;
3181   c4x-*-* | tic4x-*-*)
3182     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3183     ;;
3184   c54x*-*-* | tic54x-*-*)
3185     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3186     ;;
3187   cr16-*-*)
3188     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3189     ;;
3190   cris-*-* | crisv32-*-*)
3191     unsupported_languages="$unsupported_languages java"
3192     case "${target}" in
3193       *-*-aout)
3194         unsupported_languages="$unsupported_languages fortran"
3195         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3196       *-*-elf)
3197         noconfigdirs="$noconfigdirs target-boehm-gc";;
3198       *-*-linux*)
3199         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3200       *)
3201         unsupported_languages="$unsupported_languages fortran"
3202         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3203     esac
3204     libgloss_dir=cris
3205     ;;
3206   crx-*-*)
3207     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3208     ;;
3209   d10v-*-*)
3210     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3211     ;;
3212   d30v-*-*)
3213     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3214     ;;
3215   ep9312-*-elf | ep9312-*-coff)
3216     libgloss_dir=arm
3217     ;;
3218   fr30-*-elf*)
3219     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3220     ;;
3221   frv-*-*)
3222     noconfigdirs="$noconfigdirs ${libgcj}"
3223     ;;
3224   moxie-*-*)
3225     noconfigdirs="$noconfigdirs ${libgcj}"
3226     noconfigdirs="$noconfigdirs gprof"
3227     ;;
3228   h8300*-*-*)
3229     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3230     ;;
3231   h8500-*-*)
3232     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3233     ;;
3234   hppa1.1-*-osf* | hppa1.1-*-bsd* )
3235     ;;
3236   hppa*64*-*-linux* | parisc*64*-*-linux*)
3237     # In this case, it's because the hppa64-linux target is for
3238     # the kernel only at this point and has no libc, and thus no
3239     # headers, crt*.o, etc., all of which are needed by these.
3240     noconfigdirs="$noconfigdirs target-zlib"
3241     ;;
3242   parisc*-*-linux* | hppa*-*-linux*)
3243     ;;
3244   hppa*-*-*elf* | \
3245   hppa*-*-lites* | \
3246   hppa*-*-openbsd* | \
3247   hppa*64*-*-*)
3248     noconfigdirs="$noconfigdirs ${libgcj}"
3249     ;;
3250   hppa*-hp-hpux11*)
3251     noconfigdirs="$noconfigdirs ld shellutils"
3252     ;;
3253   hppa*-*-pro*)
3254     libgloss_dir=pa
3255     ;;
3256   hppa*-*-*)
3257     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3258     # build on HP-UX 10.20.
3259     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3260     ;;
3261   i960-*-*)
3262     noconfigdirs="$noconfigdirs ${libgcj} gdb"
3263     ;;
3264   ia64*-*-elf*)
3265     # No gdb support yet.
3266     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3267     ;;
3268   ia64*-**-hpux*)
3269     # No gdb or ld support yet.
3270     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3271     ;;
3272   ia64*-*-*vms*)
3273     # No gdb or ld support yet.
3274     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3275     ;;
3276   i370-*-opened*)
3277     ;;
3278   i[3456789]86-*-coff | i[3456789]86-*-elf)
3279     noconfigdirs="$noconfigdirs ${libgcj}"
3280     libgloss_dir=i386
3281     ;;
3282   i[3456789]86-*-linux*)
3283     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3284     # not build java stuff by default.
3285     case "${target}" in
3286       *-*-*libc1*)
3287         noconfigdirs="$noconfigdirs ${libgcj}";;
3288     esac
3289
3290     # This section makes it possible to build newlib natively on linux.
3291     # If we are using a cross compiler then don't configure newlib.
3292     if test x${is_cross_compiler} != xno ; then
3293       noconfigdirs="$noconfigdirs target-newlib"
3294     fi
3295     noconfigdirs="$noconfigdirs target-libgloss"
3296     # If we are not using a cross compiler, do configure newlib.
3297     # Note however, that newlib will only be configured in this situation
3298     # if the --with-newlib option has been given, because otherwise
3299     # 'target-newlib' will appear in skipdirs.
3300     ;;
3301   i[3456789]86-w64-mingw*)
3302     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3303     ;;
3304   i[3456789]86-*-mingw*)
3305     target_configdirs="$target_configdirs target-winsup"
3306     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3307     ;;
3308   x86_64-*-mingw*)
3309     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3310     ;;
3311   *-*-cygwin*)
3312     target_configdirs="$target_configdirs target-libtermcap target-winsup"
3313     noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3314     # always build newlib if winsup directory is present.
3315     if test -d "$srcdir/winsup/cygwin"; then
3316       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3317     elif test -d "$srcdir/newlib"; then
3318       echo "Warning: winsup/cygwin is missing so newlib can't be built."
3319     fi
3320     ;;
3321   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3322   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3323     ;;
3324   i[3456789]86-*-pe)
3325     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3326     ;;
3327   i[3456789]86-*-sco3.2v5*)
3328     # The linker does not yet know about weak symbols in COFF,
3329     # and is not configured to handle mixed ELF and COFF.
3330     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3331     ;;
3332   i[3456789]86-*-sco*)
3333     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3334     ;;
3335   i[3456789]86-*-solaris2*)
3336     noconfigdirs="$noconfigdirs target-libgloss"
3337     ;;
3338   i[3456789]86-*-sysv4*)
3339     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3340     ;;
3341   i[3456789]86-*-beos*)
3342     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3343     ;;
3344   i[3456789]86-*-rdos*)
3345     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3346     ;;
3347   m32r-*-*)
3348     noconfigdirs="$noconfigdirs ${libgcj}"
3349     ;;
3350   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3351     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3352     libgloss_dir=m68hc11
3353     ;;
3354   m68k-*-elf*)
3355     noconfigdirs="$noconfigdirs ${libgcj}"
3356     ;;
3357   m68k-*-coff*)
3358     noconfigdirs="$noconfigdirs ${libgcj}"
3359     ;;
3360   m68*-*-* | fido-*-*)
3361     libgloss_dir=m68k
3362     ;;
3363   mcore-*-pe*)
3364   # The EPOC C++ environment does not support exceptions or rtti,
3365   # and so building libstdc++-v3 tends not to always work.
3366     noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367     ;;
3368   mmix-*-*)
3369     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3370     unsupported_languages="$unsupported_languages fortran java"
3371     ;;
3372   mn10200-*-*)
3373     noconfigdirs="$noconfigdirs ${libgcj}"
3374     ;;
3375   mn10300-*-*)
3376     noconfigdirs="$noconfigdirs ${libgcj}"
3377     ;;
3378   mt-*-*)
3379     noconfigdirs="$noconfigdirs sim"
3380     ;;
3381   powerpc-*-aix*)
3382     # copied from rs6000-*-* entry
3383     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3384     ;;
3385   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3386     target_configdirs="$target_configdirs target-winsup"
3387     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3388     # always build newlib.
3389     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3390     ;;
3391     # This is temporary until we can link against shared libraries
3392   powerpcle-*-solaris*)
3393     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3394     libgloss_dir=rs6000
3395     ;;
3396   powerpc-*-beos*)
3397     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3398     ;;
3399   powerpc-*-eabi)
3400     noconfigdirs="$noconfigdirs ${libgcj}"
3401     libgloss_dir=rs6000
3402     ;;
3403   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3404     libgloss_dir=rs6000
3405     ;;
3406   rs6000-*-lynxos*)
3407     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3408     ;;
3409   rs6000-*-aix*)
3410     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3411     ;;
3412   rs6000-*-*)
3413     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3414     ;;
3415   m68k-apollo-*)
3416     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3417     ;;
3418   microblaze*)
3419     noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3420     ;;
3421   mips*-sde-elf*)
3422     skipdirs="$skipdirs target-libiberty"
3423     noconfigdirs="$noconfigdirs ${libgcj}"
3424     if test x$with_newlib = xyes; then
3425       noconfigdirs="$noconfigdirs gprof"
3426     fi
3427     libgloss_dir=mips
3428     ;;
3429   mips*-*-irix5*)
3430     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3431     ;;
3432   mips*-*-irix6*)
3433     # Linking libjava exceeds command-line length limits on at least
3434     # IRIX 6.2, but not on IRIX 6.5.
3435     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3436     # <oldham@codesourcery.com>
3437     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3438     ;;
3439   mips*-*-bsd*)
3440     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3441     ;;
3442   mips*-*-linux*)
3443     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444     ;;
3445   mips*-*-*)
3446     noconfigdirs="$noconfigdirs gprof ${libgcj}"
3447     libgloss_dir=mips
3448     ;;
3449   romp-*-*)
3450     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3451     ;;
3452   sh-*-* | sh64-*-*)
3453     case "${host}" in
3454       i[3456789]86-*-vsta) ;; # don't add gprof back in
3455       i[3456789]86-*-go32*) ;; # don't add gprof back in
3456       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3457       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3458     esac
3459     case "${target}" in
3460       sh*-*-elf)
3461          noconfigdirs="$noconfigdirs ${libgcj}" ;;
3462       *)
3463          noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3464     esac
3465     ;;
3466   sparclet-*-aout* | sparc86x-*-*)
3467     libgloss_dir=sparc
3468     ;;
3469   sparc-*-elf*)
3470     noconfigdirs="$noconfigdirs ${libgcj}"
3471     ;;
3472   sparc64-*-elf*)
3473     noconfigdirs="$noconfigdirs ${libgcj}"
3474     libgloss_dir=sparc
3475     ;;
3476   sparclite-*-*)
3477     noconfigdirs="$noconfigdirs ${libgcj}"
3478     libgloss_dir=sparc
3479     ;;
3480   sparc-*-sunos4*)
3481     noconfigdirs="$noconfigdirs ${libgcj}"
3482     if test x${is_cross_compiler} != xno ; then
3483            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3484     else
3485            use_gnu_ld=no
3486     fi
3487     ;;
3488   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3489     noconfigdirs="$noconfigdirs ${libgcj}"
3490     ;;
3491   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3492     ;;
3493   tic6x-*-*)
3494     noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3495     ;;
3496   v810-*-*)
3497     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3498     ;;
3499   v850*-*-*)
3500     noconfigdirs="$noconfigdirs ${libgcj}"
3501     ;;
3502   vax-*-vms)
3503     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3504     ;;
3505   vax-*-*)
3506     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3507     ;;
3508   xtensa*-*-*)
3509     noconfigdirs="$noconfigdirs ${libgcj}"
3510     ;;
3511   ip2k-*-*)
3512     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3513     ;;
3514   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3515     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3516     ;;
3517   *-*-lynxos*)
3518     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3519     ;;
3520   *-*-*)
3521     noconfigdirs="$noconfigdirs ${libgcj}"
3522     ;;
3523 esac
3524
3525 # If we aren't building newlib, then don't build libgloss, since libgloss
3526 # depends upon some newlib header files.
3527 case "${noconfigdirs}" in
3528   *target-libgloss*) ;;
3529   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3530 esac
3531
3532 # Work in distributions that contain no compiler tools, like Autoconf.
3533 tentative_cc=""
3534 host_makefile_frag=/dev/null
3535 if test -d ${srcdir}/config ; then
3536 case "${host}" in
3537   m68k-hp-hpux*)
3538     # Avoid "too much defining" errors from HPUX compiler.
3539     tentative_cc="cc -Wp,-H256000"
3540     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3541     # If it's HP/UX ar, this should be harmless.
3542     RANLIB="ar ts"
3543     ;;
3544   m68k-apollo-sysv*)
3545     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3546     ;;
3547   m68k-apollo-bsd*)
3548     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3549     # chokes on bfd, the compiler won't let you assign integers to enums, and
3550     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3551     # the apollo compiler" (the preferred version of GCC could be called cc,
3552     # or whatever), but I'm not sure leaving CC as cc is any better...
3553     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3554     # Used to have BISON=yacc.
3555     tentative_cc=gcc
3556     ;;
3557   m88k-dg-dgux*)
3558     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3559     ;;
3560   m88k-harris-cxux*)
3561     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3562     tentative_cc="cc -Xa"
3563     host_makefile_frag="config/mh-cxux"
3564     ;;
3565   m88k-motorola-sysv*)
3566     ;;
3567   mips*-dec-ultrix*)
3568     tentative_cc="cc -Wf,-XNg1000"
3569     host_makefile_frag="config/mh-decstation"
3570     ;;
3571   mips*-nec-sysv4*)
3572     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3573     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3574     host_makefile_frag="config/mh-necv4"
3575     ;;
3576   mips*-sgi-irix4*)
3577     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3578     # environment.  Also bump switch table size so that cp-parse will
3579     # compile.  Bump string length limit so linker builds.
3580     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3581     ;;
3582   mips*-*-sysv4*)
3583     host_makefile_frag="config/mh-sysv4"
3584     ;;
3585   mips*-*-sysv*)
3586     # This is for a MIPS running RISC/os 4.52C.
3587
3588     # This is needed for GDB, but needs to be in the top-level make because
3589     # if a library is compiled with the bsd headers and gets linked with the
3590     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3591     # a different size).
3592     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3593     # known except to select the sysv environment.  Could we use /proc instead?
3594     # These "sysv environments" and "bsd environments" often end up being a pain.
3595     #
3596     # This is not part of CFLAGS because perhaps not all C compilers have this
3597     # option.
3598     tentative_cc="cc -systype sysv"
3599     ;;
3600   i370-ibm-opened*)
3601     tentative_cc="c89"
3602     ;;
3603   i[3456789]86-*-sysv5*)
3604     host_makefile_frag="config/mh-sysv5"
3605     ;;
3606   i[3456789]86-*-dgux*)
3607     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3608     host_makefile_frag="config/mh-dgux386"
3609     ;;
3610   i[3456789]86-ncr-sysv4.3*)
3611     # The MetaWare compiler will generate a copyright message unless you
3612     # turn it off by adding the -Hnocopyr flag.
3613     tentative_cc="cc -Hnocopyr"
3614     ;;
3615   i[3456789]86-ncr-sysv4*)
3616     # for an NCR 3000 (i486/SVR4) system.
3617     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3618     # This compiler not only emits obnoxious copyright messages every time
3619     # you run it, but it chokes and dies on a whole bunch of GNU source
3620     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3621     tentative_cc="/usr/ccs/ATT/cc"
3622     host_makefile_frag="config/mh-ncr3000"
3623     ;;
3624   i[3456789]86-*-sco3.2v5*)
3625     ;;
3626   i[3456789]86-*-sco*)
3627     # The native C compiler botches some simple uses of const.  Unfortunately,
3628     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3629     tentative_cc="cc -Dconst="
3630     host_makefile_frag="config/mh-sco"
3631     ;;
3632   i[3456789]86-*-udk*)
3633     host_makefile_frag="config/mh-sysv5"
3634     ;;
3635   i[3456789]86-*-solaris2*)
3636     host_makefile_frag="config/mh-sysv4"
3637     ;;
3638   i[3456789]86-*-msdosdjgpp*)
3639     host_makefile_frag="config/mh-djgpp"
3640     ;;
3641   *-cygwin*)
3642
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3644 $as_echo_n "checking to see if cat works as expected... " >&6; }
3645 echo a >cygwin-cat-check
3646 if test `cat cygwin-cat-check` = a ; then
3647   rm cygwin-cat-check
3648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 else
3651   rm cygwin-cat-check
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654   as_fn_error "The cat command does not ignore carriage return characters.
3655   Please either mount the build directory in binary mode or run the following
3656   commands before running any configure script:
3657 set -o igncr
3658 export SHELLOPTS
3659   " "$LINENO" 5
3660 fi
3661
3662     host_makefile_frag="config/mh-cygwin"
3663     ;;
3664   *-mingw*)
3665     host_makefile_frag="config/mh-mingw"
3666     ;;
3667   *-interix*)
3668     host_makefile_frag="config/mh-interix"
3669     ;;
3670   vax-*-ultrix2*)
3671     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3672     tentative_cc=gcc
3673     ;;
3674   *-*-solaris2*)
3675     host_makefile_frag="config/mh-solaris"
3676     ;;
3677   m68k-sun-sunos*)
3678     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3679     # without overflowing the jump tables (-J says to use a 32 bit table)
3680     tentative_cc="cc -J"
3681     ;;
3682   hppa*-hp-hpux10*)
3683     tentative_cc="cc -Wp,-H256000"
3684     host_makefile_frag="config/mh-pa-hpux10"
3685     ;;
3686   hppa*-hp-hpux* | hppa*-*-hiux*)
3687     tentative_cc="cc -Wp,-H256000"
3688     host_makefile_frag="config/mh-pa"
3689     ;;
3690   hppa*-*)
3691     host_makefile_frag="config/mh-pa"
3692     ;;
3693   *-hp-hpux* | *-*-hiux*)
3694     tentative_cc="cc -Wp,-H256000"
3695     ;;
3696   rs6000-*-lynxos*)
3697     # /bin/cc is less than useful for our purposes.  Always use GCC
3698     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3699     host_makefile_frag="config/mh-lynxrs6k"
3700     ;;
3701   *-*-darwin*)
3702     host_makefile_frag="config/mh-darwin"
3703     ;;
3704   powerpc-*-aix*)
3705     host_makefile_frag="config/mh-ppc-aix"
3706     ;;
3707   rs6000-*-aix*)
3708     host_makefile_frag="config/mh-ppc-aix"
3709     ;;
3710   *-*-lynxos*)
3711     # /bin/cc is less than useful for our purposes.  Always use GCC
3712     tentative_cc="/bin/gcc"
3713     ;;
3714   *-*-sysv4*)
3715     host_makefile_frag="config/mh-sysv4"
3716     ;;
3717   # This is placed last to prevent interfering with the cases above.
3718   i[3456789]86-*-*)
3719     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3720     host_makefile_frag="config/mh-x86omitfp"
3721     ;;
3722 esac
3723 fi
3724
3725 # If we aren't going to be using gcc, see if we can extract a definition
3726 # of CC from the fragment.
3727 # Actually, use the 'pre-extracted' version above.
3728 if test -z "${CC}" && test "${build}" = "${host}" ; then
3729   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3730   found=
3731   for dir in $PATH; do
3732     test -z "$dir" && dir=.
3733     if test -f $dir/gcc; then
3734       found=yes
3735       break
3736     fi
3737   done
3738   IFS="$save_ifs"
3739   if test -z "${found}" && test -n "${tentative_cc}" ; then
3740     CC=$tentative_cc
3741   fi
3742 fi
3743
3744 if test "${build}" != "${host}" ; then
3745   AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3746   AS_FOR_BUILD=${AS_FOR_BUILD-as}
3747   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3748   CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3749   GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3750   GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3751   DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3752   LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3753   NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3754   RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3755   WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3756   WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3757 else
3758   AR_FOR_BUILD="\$(AR)"
3759   AS_FOR_BUILD="\$(AS)"
3760   CC_FOR_BUILD="\$(CC)"
3761   CXX_FOR_BUILD="\$(CXX)"
3762   GCJ_FOR_BUILD="\$(GCJ)"
3763   GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3764   DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3765   LD_FOR_BUILD="\$(LD)"
3766   NM_FOR_BUILD="\$(NM)"
3767   RANLIB_FOR_BUILD="\$(RANLIB)"
3768   WINDRES_FOR_BUILD="\$(WINDRES)"
3769   WINDMC_FOR_BUILD="\$(WINDMC)"
3770 fi
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 if test -n "$ac_tool_prefix"; then
3778   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -n "$CC"; then
3786   ac_cv_prog_CC="$CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_exec_ext in '' $ac_executable_extensions; do
3794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800   done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 CC=$ac_cv_prog_CC
3806 if test -n "$CC"; then
3807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3809 else
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815 fi
3816 if test -z "$ac_cv_prog_CC"; then
3817   ac_ct_CC=$CC
3818   # Extract the first word of "gcc", so it can be a program name with args.
3819 set dummy gcc; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   if test -n "$ac_ct_CC"; then
3826   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833     for ac_exec_ext in '' $ac_executable_extensions; do
3834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835     ac_cv_prog_ac_ct_CC="gcc"
3836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840   done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3849 else
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854   if test "x$ac_ct_CC" = x; then
3855     CC=""
3856   else
3857     case $cross_compiling:$ac_tool_warned in
3858 yes:)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861 ac_tool_warned=yes ;;
3862 esac
3863     CC=$ac_ct_CC
3864   fi
3865 else
3866   CC="$ac_cv_prog_CC"
3867 fi
3868
3869 if test -z "$CC"; then
3870           if test -n "$ac_tool_prefix"; then
3871     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}cc; ac_word=$2
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 $as_echo_n "checking for $ac_word... " >&6; }
3875 if test "${ac_cv_prog_CC+set}" = set; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   if test -n "$CC"; then
3879   ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886     for ac_exec_ext in '' $ac_executable_extensions; do
3887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888     ac_cv_prog_CC="${ac_tool_prefix}cc"
3889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893   done
3894 IFS=$as_save_IFS
3895
3896 fi
3897 fi
3898 CC=$ac_cv_prog_CC
3899 if test -n "$CC"; then
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901 $as_echo "$CC" >&6; }
3902 else
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 fi
3906
3907
3908   fi
3909 fi
3910 if test -z "$CC"; then
3911   # Extract the first word of "cc", so it can be a program name with args.
3912 set dummy cc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   if test -n "$CC"; then
3919   ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921   ac_prog_rejected=no
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927     for ac_exec_ext in '' $ac_executable_extensions; do
3928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930        ac_prog_rejected=yes
3931        continue
3932      fi
3933     ac_cv_prog_CC="cc"
3934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935     break 2
3936   fi
3937 done
3938   done
3939 IFS=$as_save_IFS
3940
3941 if test $ac_prog_rejected = yes; then
3942   # We found a bogon in the path, so make sure we never use it.
3943   set dummy $ac_cv_prog_CC
3944   shift
3945   if test $# != 0; then
3946     # We chose a different compiler from the bogus one.
3947     # However, it has the same basename, so the bogon will be chosen
3948     # first if we set CC to just the basename; use the full file name.
3949     shift
3950     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3951   fi
3952 fi
3953 fi
3954 fi
3955 CC=$ac_cv_prog_CC
3956 if test -n "$CC"; then
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958 $as_echo "$CC" >&6; }
3959 else
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965 fi
3966 if test -z "$CC"; then
3967   if test -n "$ac_tool_prefix"; then
3968   for ac_prog in cl.exe
3969   do
3970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_CC+set}" = set; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   if test -n "$CC"; then
3978   ac_cv_prog_CC="$CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985     for ac_exec_ext in '' $ac_executable_extensions; do
3986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989     break 2
3990   fi
3991 done
3992   done
3993 IFS=$as_save_IFS
3994
3995 fi
3996 fi
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4001 else
4002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 fi
4005
4006
4007     test -n "$CC" && break
4008   done
4009 fi
4010 if test -z "$CC"; then
4011   ac_ct_CC=$CC
4012   for ac_prog in cl.exe
4013 do
4014   # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy $ac_prog; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019   $as_echo_n "(cached) " >&6
4020 else
4021   if test -n "$ac_ct_CC"; then
4022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027   IFS=$as_save_IFS
4028   test -z "$as_dir" && as_dir=.
4029     for ac_exec_ext in '' $ac_executable_extensions; do
4030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031     ac_cv_prog_ac_ct_CC="$ac_prog"
4032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033     break 2
4034   fi
4035 done
4036   done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042 if test -n "$ac_ct_CC"; then
4043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044 $as_echo "$ac_ct_CC" >&6; }
4045 else
4046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050
4051   test -n "$ac_ct_CC" && break
4052 done
4053
4054   if test "x$ac_ct_CC" = x; then
4055     CC=""
4056   else
4057     case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063     CC=$ac_ct_CC
4064   fi
4065 fi
4066
4067 fi
4068
4069
4070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error "no acceptable C compiler found in \$PATH
4073 See \`config.log' for more details." "$LINENO" 5; }
4074
4075 # Provide some information about the compiler.
4076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077 set X $ac_compile
4078 ac_compiler=$2
4079 for ac_option in --version -v -V -qversion; do
4080   { { ac_try="$ac_compiler $ac_option >&5"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4088   ac_status=$?
4089   if test -s conftest.err; then
4090     sed '10a\
4091 ... rest of stderr output deleted ...
4092          10q' conftest.err >conftest.er1
4093     cat conftest.er1 >&5
4094     rm -f conftest.er1 conftest.err
4095   fi
4096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097   test $ac_status = 0; }
4098 done
4099
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 ac_clean_files_save=$ac_clean_files
4112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4113 # Try to create an executable without -o first, disregard a.out.
4114 # It will help us diagnose broken compilers, and finding out an intuition
4115 # of exeext.
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117 $as_echo_n "checking for C compiler default output file name... " >&6; }
4118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4119
4120 # The possible output files:
4121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122
4123 ac_rmfiles=
4124 for ac_file in $ac_files
4125 do
4126   case $ac_file in
4127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4129   esac
4130 done
4131 rm -f $ac_rmfiles
4132
4133 if { { ac_try="$ac_link_default"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140   (eval "$ac_link_default") 2>&5
4141   ac_status=$?
4142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143   test $ac_status = 0; }; then :
4144   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4147 # so that the user can short-circuit this test for compilers unknown to
4148 # Autoconf.
4149 for ac_file in $ac_files ''
4150 do
4151   test -f "$ac_file" || continue
4152   case $ac_file in
4153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4154         ;;
4155     [ab].out )
4156         # We found the default executable, but exeext='' is most
4157         # certainly right.
4158         break;;
4159     *.* )
4160         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4161         then :; else
4162            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163         fi
4164         # We set ac_cv_exeext here because the later test for it is not
4165         # safe: cross compilers may not add the suffix if given an `-o'
4166         # argument, so we may need to know it at that point already.
4167         # Even if this section looks crufty: it has the advantage of
4168         # actually working.
4169         break;;
4170     * )
4171         break;;
4172   esac
4173 done
4174 test "$ac_cv_exeext" = no && ac_cv_exeext=
4175
4176 else
4177   ac_file=''
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180 $as_echo "$ac_file" >&6; }
4181 if test -z "$ac_file"; then :
4182   $as_echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 { as_fn_set_status 77
4188 as_fn_error "C compiler cannot create executables
4189 See \`config.log' for more details." "$LINENO" 5; }; }
4190 fi
4191 ac_exeext=$ac_cv_exeext
4192
4193 # Check that the compiler produces executables we can run.  If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196 $as_echo_n "checking whether the C compiler works... " >&6; }
4197 # If not cross compiling, check that we can run a simple program.
4198 if test "$cross_compiling" != yes; then
4199   if { ac_try='./$ac_file'
4200   { { case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_try") 2>&5
4207   ac_status=$?
4208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209   test $ac_status = 0; }; }; then
4210     cross_compiling=no
4211   else
4212     if test "$cross_compiling" = maybe; then
4213         cross_compiling=yes
4214     else
4215         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error "cannot run C compiled programs.
4218 If you meant to cross compile, use \`--host'.
4219 See \`config.log' for more details." "$LINENO" 5; }
4220     fi
4221   fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225
4226 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4227 ac_clean_files=$ac_clean_files_save
4228 # Check that the compiler produces executables we can run.  If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233 $as_echo "$cross_compiling" >&6; }
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236 $as_echo_n "checking for suffix of executables... " >&6; }
4237 if { { ac_try="$ac_link"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 $as_echo "$ac_try_echo"; } >&5
4244   (eval "$ac_link") 2>&5
4245   ac_status=$?
4246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247   test $ac_status = 0; }; then :
4248   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4249 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4250 # work properly (i.e., refer to `conftest.exe'), while it won't with
4251 # `rm'.
4252 for ac_file in conftest.exe conftest conftest.*; do
4253   test -f "$ac_file" || continue
4254   case $ac_file in
4255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4257           break;;
4258     * ) break;;
4259   esac
4260 done
4261 else
4262   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264 as_fn_error "cannot compute suffix of executables: cannot compile and link
4265 See \`config.log' for more details." "$LINENO" 5; }
4266 fi
4267 rm -f conftest$ac_cv_exeext
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269 $as_echo "$ac_cv_exeext" >&6; }
4270
4271 rm -f conftest.$ac_ext
4272 EXEEXT=$ac_cv_exeext
4273 ac_exeext=$EXEEXT
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275 $as_echo_n "checking for suffix of object files... " >&6; }
4276 if test "${ac_cv_objext+set}" = set; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.o conftest.obj
4291 if { { ac_try="$ac_compile"
4292 case "(($ac_try" in
4293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294   *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298   (eval "$ac_compile") 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; }; then :
4302   for ac_file in conftest.o conftest.obj conftest.*; do
4303   test -f "$ac_file" || continue;
4304   case $ac_file in
4305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307        break;;
4308   esac
4309 done
4310 else
4311   $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details." "$LINENO" 5; }
4318 fi
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 $as_echo "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336 #ifndef __GNUC__
4337        choke me
4338 #endif
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345   ac_compiler_gnu=yes
4346 else
4347   ac_compiler_gnu=no
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355 if test $ac_compiler_gnu = yes; then
4356   GCC=yes
4357 else
4358   GCC=
4359 fi
4360 ac_test_CFLAGS=${CFLAGS+set}
4361 ac_save_CFLAGS=$CFLAGS
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4364 if test "${ac_cv_prog_cc_g+set}" = set; then :
4365   $as_echo_n "(cached) " >&6
4366 else
4367   ac_save_c_werror_flag=$ac_c_werror_flag
4368    ac_c_werror_flag=yes
4369    ac_cv_prog_cc_g=no
4370    CFLAGS="-g"
4371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383   ac_cv_prog_cc_g=yes
4384 else
4385   CFLAGS=""
4386       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398
4399 else
4400   ac_c_werror_flag=$ac_save_c_werror_flag
4401          CFLAGS="-g"
4402          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h.  */
4404
4405 int
4406 main ()
4407 {
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 if ac_fn_c_try_compile "$LINENO"; then :
4414   ac_cv_prog_cc_g=yes
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421    ac_c_werror_flag=$ac_save_c_werror_flag
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424 $as_echo "$ac_cv_prog_cc_g" >&6; }
4425 if test "$ac_test_CFLAGS" = set; then
4426   CFLAGS=$ac_save_CFLAGS
4427 elif test $ac_cv_prog_cc_g = yes; then
4428   if test "$GCC" = yes; then
4429     CFLAGS="-g -O2"
4430   else
4431     CFLAGS="-g"
4432   fi
4433 else
4434   if test "$GCC" = yes; then
4435     CFLAGS="-O2"
4436   else
4437     CFLAGS=
4438   fi
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   ac_cv_prog_cc_c89=no
4446 ac_save_CC=$CC
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h.  */
4449 #include <stdarg.h>
4450 #include <stdio.h>
4451 #include <sys/types.h>
4452 #include <sys/stat.h>
4453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4454 struct buf { int x; };
4455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456 static char *e (p, i)
4457      char **p;
4458      int i;
4459 {
4460   return p[i];
4461 }
4462 static char *f (char * (*g) (char **, int), char **p, ...)
4463 {
4464   char *s;
4465   va_list v;
4466   va_start (v,p);
4467   s = g (p, va_arg (v,int));
4468   va_end (v);
4469   return s;
4470 }
4471
4472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4473    function prototypes and stuff, but not '\xHH' hex character constants.
4474    These don't provoke an error unfortunately, instead are silently treated
4475    as 'x'.  The following induces an error, until -std is added to get
4476    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4477    array size at least.  It's necessary to write '\x00'==0 to get something
4478    that's true only with -std.  */
4479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
4481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482    inside strings and character constants.  */
4483 #define FOO(x) 'x'
4484 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
4486 int test (int i, double x);
4487 struct s1 {int (*f) (int a);};
4488 struct s2 {int (*f) (double a);};
4489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490 int argc;
4491 char **argv;
4492 int
4493 main ()
4494 {
4495 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4502 do
4503   CC="$ac_save_CC $ac_arg"
4504   if ac_fn_c_try_compile "$LINENO"; then :
4505   ac_cv_prog_cc_c89=$ac_arg
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext
4508   test "x$ac_cv_prog_cc_c89" != "xno" && break
4509 done
4510 rm -f conftest.$ac_ext
4511 CC=$ac_save_CC
4512
4513 fi
4514 # AC_CACHE_VAL
4515 case "x$ac_cv_prog_cc_c89" in
4516   x)
4517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518 $as_echo "none needed" >&6; } ;;
4519   xno)
4520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521 $as_echo "unsupported" >&6; } ;;
4522   *)
4523     CC="$CC $ac_cv_prog_cc_c89"
4524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4526 esac
4527 if test "x$ac_cv_prog_cc_c89" != xno; then :
4528
4529 fi
4530
4531 ac_ext=c
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536
4537 ac_ext=cpp
4538 ac_cpp='$CXXCPP $CPPFLAGS'
4539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542 if test -z "$CXX"; then
4543   if test -n "$CCC"; then
4544     CXX=$CCC
4545   else
4546     if test -n "$ac_tool_prefix"; then
4547   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4548   do
4549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_CXX+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$CXX"; then
4557   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 CXX=$ac_cv_prog_CXX
4577 if test -n "$CXX"; then
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579 $as_echo "$CXX" >&6; }
4580 else
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586     test -n "$CXX" && break
4587   done
4588 fi
4589 if test -z "$CXX"; then
4590   ac_ct_CXX=$CXX
4591   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4592 do
4593   # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   if test -n "$ac_ct_CXX"; then
4601   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610     ac_cv_prog_ac_ct_CXX="$ac_prog"
4611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615   done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623 $as_echo "$ac_ct_CXX" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629
4630   test -n "$ac_ct_CXX" && break
4631 done
4632
4633   if test "x$ac_ct_CXX" = x; then
4634     CXX="g++"
4635   else
4636     case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642     CXX=$ac_ct_CXX
4643   fi
4644 fi
4645
4646   fi
4647 fi
4648 # Provide some information about the compiler.
4649 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650 set X $ac_compile
4651 ac_compiler=$2
4652 for ac_option in --version -v -V -qversion; do
4653   { { ac_try="$ac_compiler $ac_option >&5"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4661   ac_status=$?
4662   if test -s conftest.err; then
4663     sed '10a\
4664 ... rest of stderr output deleted ...
4665          10q' conftest.err >conftest.er1
4666     cat conftest.er1 >&5
4667     rm -f conftest.er1 conftest.err
4668   fi
4669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670   test $ac_status = 0; }
4671 done
4672
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h.  */
4680
4681 int
4682 main ()
4683 {
4684 #ifndef __GNUC__
4685        choke me
4686 #endif
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693   ac_compiler_gnu=yes
4694 else
4695   ac_compiler_gnu=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703 if test $ac_compiler_gnu = yes; then
4704   GXX=yes
4705 else
4706   GXX=
4707 fi
4708 ac_test_CXXFLAGS=${CXXFLAGS+set}
4709 ac_save_CXXFLAGS=$CXXFLAGS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716    ac_cxx_werror_flag=yes
4717    ac_cv_prog_cxx_g=no
4718    CXXFLAGS="-g"
4719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731   ac_cv_prog_cxx_g=yes
4732 else
4733   CXXFLAGS=""
4734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h.  */
4736
4737 int
4738 main ()
4739 {
4740
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746
4747 else
4748   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749          CXXFLAGS="-g"
4750          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_cxx_try_compile "$LINENO"; then :
4762   ac_cv_prog_cxx_g=yes
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4773 if test "$ac_test_CXXFLAGS" = set; then
4774   CXXFLAGS=$ac_save_CXXFLAGS
4775 elif test $ac_cv_prog_cxx_g = yes; then
4776   if test "$GXX" = yes; then
4777     CXXFLAGS="-g -O2"
4778   else
4779     CXXFLAGS="-g"
4780   fi
4781 else
4782   if test "$GXX" = yes; then
4783     CXXFLAGS="-O2"
4784   else
4785     CXXFLAGS=
4786   fi
4787 fi
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795 # We must set the default linker to the linker used by gcc for the correct
4796 # operation of libtool.  If LD is not defined and we are using gcc, try to
4797 # set the LD default to the ld used by gcc.
4798 if test -z "$LD"; then
4799   if test "$GCC" = yes; then
4800     case $build in
4801     *-*-mingw*)
4802       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4803     *)
4804       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4805     esac
4806     case $gcc_prog_ld in
4807     # Accept absolute paths.
4808     [\\/]* | [A-Za-z]:[\\/]*)
4809       LD="$gcc_prog_ld" ;;
4810     esac
4811   fi
4812 fi
4813
4814
4815
4816
4817 if test -n "$ac_tool_prefix"; then
4818   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   if test -n "$GNATBIND"; then
4826   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 GNATBIND=$ac_cv_prog_GNATBIND
4846 if test -n "$GNATBIND"; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4848 $as_echo "$GNATBIND" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_GNATBIND"; then
4857   ac_ct_GNATBIND=$GNATBIND
4858   # Extract the first word of "gnatbind", so it can be a program name with args.
4859 set dummy gnatbind; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   if test -n "$ac_ct_GNATBIND"; then
4866   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873     for ac_exec_ext in '' $ac_executable_extensions; do
4874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880   done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4886 if test -n "$ac_ct_GNATBIND"; then
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4888 $as_echo "$ac_ct_GNATBIND" >&6; }
4889 else
4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894   if test "x$ac_ct_GNATBIND" = x; then
4895     GNATBIND="no"
4896   else
4897     case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903     GNATBIND=$ac_ct_GNATBIND
4904   fi
4905 else
4906   GNATBIND="$ac_cv_prog_GNATBIND"
4907 fi
4908
4909 if test -n "$ac_tool_prefix"; then
4910   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$GNATMAKE"; then
4918   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 GNATMAKE=$ac_cv_prog_GNATMAKE
4938 if test -n "$GNATMAKE"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4940 $as_echo "$GNATMAKE" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_GNATMAKE"; then
4949   ac_ct_GNATMAKE=$GNATMAKE
4950   # Extract the first word of "gnatmake", so it can be a program name with args.
4951 set dummy gnatmake; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   if test -n "$ac_ct_GNATMAKE"; then
4958   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4978 if test -n "$ac_ct_GNATMAKE"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4980 $as_echo "$ac_ct_GNATMAKE" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986   if test "x$ac_ct_GNATMAKE" = x; then
4987     GNATMAKE="no"
4988   else
4989     case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995     GNATMAKE=$ac_ct_GNATMAKE
4996   fi
4997 else
4998   GNATMAKE="$ac_cv_prog_GNATMAKE"
4999 fi
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5002 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5003 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   cat >conftest.adb <<EOF
5007 procedure conftest is begin null; end conftest;
5008 EOF
5009 acx_cv_cc_gcc_supports_ada=no
5010 # There is a bug in old released versions of GCC which causes the
5011 # driver to exit successfully when the appropriate language module
5012 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
5013 # Therefore we must check for the error message as well as an
5014 # unsuccessful exit.
5015 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5016 # given a .adb file, but produce no object file.  So we must check
5017 # if an object file was really produced to guard against this.
5018 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5019 if test x"$errors" = x && test -f conftest.$ac_objext; then
5020   acx_cv_cc_gcc_supports_ada=yes
5021 fi
5022 rm -f conftest.*
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5025 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5026
5027 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5028   have_gnat=yes
5029 else
5030   have_gnat=no
5031 fi
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5034 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5035 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038    echo abfoo >t1
5039   echo cdfoo >t2
5040   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5041   if cmp t1 t2 2 2 > /dev/null 2>&1; then
5042     if cmp t1 t2 1 1 > /dev/null 2>&1; then
5043       :
5044     else
5045       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5046     fi
5047   fi
5048   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5049     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5050       :
5051     else
5052       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5053     fi
5054   fi
5055   rm t1 t2
5056
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5060 do_compare="$gcc_cv_prog_cmp_skip"
5061
5062
5063
5064 # See if we are building gcc with C++.
5065 # Check whether --enable-build-with-cxx was given.
5066 if test "${enable_build_with_cxx+set}" = set; then :
5067   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5068 else
5069   ENABLE_BUILD_WITH_CXX=no
5070 fi
5071
5072
5073 # Used for setting $lt_cv_objdir
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5075 $as_echo_n "checking for objdir... " >&6; }
5076 if test "${lt_cv_objdir+set}" = set; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   rm -f .libs 2>/dev/null
5080 mkdir .libs 2>/dev/null
5081 if test -d .libs; then
5082   lt_cv_objdir=.libs
5083 else
5084   # MS-DOS does not allow filenames that begin with a dot.
5085   lt_cv_objdir=_libs
5086 fi
5087 rmdir .libs 2>/dev/null
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5090 $as_echo "$lt_cv_objdir" >&6; }
5091 objdir=$lt_cv_objdir
5092
5093
5094
5095
5096
5097 cat >>confdefs.h <<_ACEOF
5098 #define LT_OBJDIR "$lt_cv_objdir/"
5099 _ACEOF
5100
5101
5102
5103 # Check for GMP, MPFR and MPC
5104 gmplibs="-lmpc -lmpfr -lgmp"
5105 gmpinc=
5106 have_gmp=no
5107
5108 # Specify a location for mpc
5109 # check for this first so it ends up on the link line before mpfr.
5110
5111 # Check whether --with-mpc was given.
5112 if test "${with_mpc+set}" = set; then :
5113   withval=$with_mpc;
5114 fi
5115
5116
5117 # Check whether --with-mpc_include was given.
5118 if test "${with_mpc_include+set}" = set; then :
5119   withval=$with_mpc_include;
5120 fi
5121
5122
5123 # Check whether --with-mpc_lib was given.
5124 if test "${with_mpc_lib+set}" = set; then :
5125   withval=$with_mpc_lib;
5126 fi
5127
5128
5129 if test "x$with_mpc" != x; then
5130   gmplibs="-L$with_mpc/lib $gmplibs"
5131   gmpinc="-I$with_mpc/include $gmpinc"
5132 fi
5133 if test "x$with_mpc_include" != x; then
5134   gmpinc="-I$with_mpc_include $gmpinc"
5135 fi
5136 if test "x$with_mpc_lib" != x; then
5137   gmplibs="-L$with_mpc_lib $gmplibs"
5138 fi
5139 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5140   gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5141   gmpinc='-I$$s/mpc/src '"$gmpinc"
5142   # Do not test the mpc version.  Assume that it is sufficient, since
5143   # it is in the source tree, and the library has not been built yet
5144   # but it would be included on the link line in the version check below
5145   # hence making the test fail.
5146   have_gmp=yes
5147 fi
5148
5149 # Specify a location for mpfr
5150 # check for this first so it ends up on the link line before gmp.
5151
5152 # Check whether --with-mpfr-dir was given.
5153 if test "${with_mpfr_dir+set}" = set; then :
5154   withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5155 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5156 fi
5157
5158
5159
5160 # Check whether --with-mpfr was given.
5161 if test "${with_mpfr+set}" = set; then :
5162   withval=$with_mpfr;
5163 fi
5164
5165
5166 # Check whether --with-mpfr_include was given.
5167 if test "${with_mpfr_include+set}" = set; then :
5168   withval=$with_mpfr_include;
5169 fi
5170
5171
5172 # Check whether --with-mpfr_lib was given.
5173 if test "${with_mpfr_lib+set}" = set; then :
5174   withval=$with_mpfr_lib;
5175 fi
5176
5177
5178 if test "x$with_mpfr" != x; then
5179   gmplibs="-L$with_mpfr/lib $gmplibs"
5180   gmpinc="-I$with_mpfr/include $gmpinc"
5181 fi
5182 if test "x$with_mpfr_include" != x; then
5183   gmpinc="-I$with_mpfr_include $gmpinc"
5184 fi
5185 if test "x$with_mpfr_lib" != x; then
5186   gmplibs="-L$with_mpfr_lib $gmplibs"
5187 fi
5188 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5189   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5190   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5191   extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5192   # Do not test the mpfr version.  Assume that it is sufficient, since
5193   # it is in the source tree, and the library has not been built yet
5194   # but it would be included on the link line in the version check below
5195   # hence making the test fail.
5196   have_gmp=yes
5197 fi
5198
5199 # Specify a location for gmp
5200
5201 # Check whether --with-gmp-dir was given.
5202 if test "${with_gmp_dir+set}" = set; then :
5203   withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5204 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5205 fi
5206
5207
5208
5209 # Check whether --with-gmp was given.
5210 if test "${with_gmp+set}" = set; then :
5211   withval=$with_gmp;
5212 fi
5213
5214
5215 # Check whether --with-gmp_include was given.
5216 if test "${with_gmp_include+set}" = set; then :
5217   withval=$with_gmp_include;
5218 fi
5219
5220
5221 # Check whether --with-gmp_lib was given.
5222 if test "${with_gmp_lib+set}" = set; then :
5223   withval=$with_gmp_lib;
5224 fi
5225
5226
5227
5228 if test "x$with_gmp" != x; then
5229   gmplibs="-L$with_gmp/lib $gmplibs"
5230   gmpinc="-I$with_gmp/include $gmpinc"
5231 fi
5232 if test "x$with_gmp_include" != x; then
5233   gmpinc="-I$with_gmp_include $gmpinc"
5234 fi
5235 if test "x$with_gmp_lib" != x; then
5236   gmplibs="-L$with_gmp_lib $gmplibs"
5237 fi
5238 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5239   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5240   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5241   extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5242   extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5243   # Do not test the gmp version.  Assume that it is sufficient, since
5244   # it is in the source tree, and the library has not been built yet
5245   # but it would be included on the link line in the version check below
5246   # hence making the test fail.
5247   have_gmp=yes
5248 fi
5249
5250 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5251   have_gmp=yes
5252   saved_CFLAGS="$CFLAGS"
5253   CFLAGS="$CFLAGS $gmpinc"
5254   # Check for the recommended and required versions of GMP.
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5256 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5257
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260 #include "gmp.h"
5261 int
5262 main ()
5263 {
5264
5265   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5266   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5267   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5268   choke me
5269   #endif
5270
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <gmp.h>
5279 int
5280 main ()
5281 {
5282
5283   #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284   #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285   #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5286   choke me
5287   #endif
5288
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_compile "$LINENO"; then :
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295 $as_echo "yes" >&6; }
5296 else
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5298 $as_echo "buggy but acceptable" >&6; }
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 else
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }; have_gmp=no
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306
5307   # If we have GMP, check the MPFR version.
5308   if test x"$have_gmp" = xyes; then
5309     # Check for the recommended and required versions of MPFR.
5310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5311 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h.  */
5314 #include <gmp.h>
5315     #include <mpfr.h>
5316 int
5317 main ()
5318 {
5319
5320     #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5321     choke me
5322     #endif
5323
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 #include <gmp.h>
5332     #include <mpfr.h>
5333 int
5334 main ()
5335 {
5336
5337     #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5338     choke me
5339     #endif
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5350 $as_echo "buggy but acceptable" >&6; }
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 else
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }; have_gmp=no
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358   fi
5359
5360   # Check for the MPC header version.
5361   if test x"$have_gmp" = xyes ; then
5362     # Check for the recommended and required versions of MPC.
5363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5364 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h.  */
5367 #include <mpc.h>
5368 int
5369 main ()
5370 {
5371
5372     #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5373     choke me
5374     #endif
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383 #include <mpc.h>
5384 int
5385 main ()
5386 {
5387
5388     #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5389     choke me
5390     #endif
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5399 else
5400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5401 $as_echo "buggy but acceptable" >&6; }
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }; have_gmp=no
5407 fi
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409   fi
5410
5411   # Now check the MPFR library.
5412   if test x"$have_gmp" = xyes; then
5413     saved_LIBS="$LIBS"
5414     LIBS="$LIBS $gmplibs"
5415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5416 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h.  */
5419 #include <mpc.h>
5420 int
5421 main ()
5422 {
5423
5424     mpfr_t n;
5425     mpfr_t x;
5426     mpc_t c;
5427     int t;
5428     mpfr_init (n);
5429     mpfr_init (x);
5430     mpfr_atan2 (n, n, x, GMP_RNDN);
5431     mpfr_erfc (n, x, GMP_RNDN);
5432     mpfr_subnormalize (x, t, GMP_RNDN);
5433     mpfr_clear(n);
5434     mpfr_clear(x);
5435     mpc_init2 (c, 53);
5436     mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5437     mpc_cosh (c, c, MPC_RNDNN);
5438     mpc_pow (c, c, c, MPC_RNDNN);
5439     mpc_acosh (c, c, MPC_RNDNN);
5440     mpc_clear (c);
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_link "$LINENO"; then :
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }; have_gmp=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext \
5454     conftest$ac_exeext conftest.$ac_ext
5455     LIBS="$saved_LIBS"
5456   fi
5457
5458   CFLAGS="$saved_CFLAGS"
5459
5460 # The library versions listed in the error message below should match
5461 # the HARD-minimums enforced above.
5462   if test x$have_gmp != xyes; then
5463     as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5464 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5465 their locations.  Source code for these libraries can be found at
5466 their respective hosting sites as well as at
5467 ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
5468 http://gcc.gnu.org/install/prerequisites.html for additional info.  If
5469 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5470 make sure that you have installed both the libraries and the header
5471 files.  They may be located in separate packages." "$LINENO" 5
5472   fi
5473 fi
5474
5475 # Flags needed for both GMP, MPFR and/or MPC.
5476
5477
5478
5479
5480
5481
5482 # Allow host libstdc++ to be specified for static linking with PPL.
5483
5484 # Check whether --with-host-libstdcxx was given.
5485 if test "${with_host_libstdcxx+set}" = set; then :
5486   withval=$with_host_libstdcxx;
5487 fi
5488
5489
5490 case $with_host_libstdcxx in
5491   no|yes)
5492     as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5493     ;;
5494 esac
5495
5496 # Linker flags to use for stage1 or when not boostrapping.
5497
5498 # Check whether --with-stage1-ldflags was given.
5499 if test "${with_stage1_ldflags+set}" = set; then :
5500   withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5501    stage1_ldflags=
5502  else
5503    stage1_ldflags=$withval
5504  fi
5505 else
5506   stage1_ldflags=
5507 fi
5508
5509
5510
5511 # Libraries to use for stage1 or when not bootstrapping.
5512
5513 # Check whether --with-stage1-libs was given.
5514 if test "${with_stage1_libs+set}" = set; then :
5515   withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5516    stage1_libs=
5517  else
5518    stage1_libs=$withval
5519  fi
5520 else
5521   stage1_libs=$with_host_libstdcxx
5522 fi
5523
5524
5525
5526 # Libraries to use for stage2 and later builds.  This defaults to the
5527 # argument passed to --with-host-libstdcxx.
5528
5529 # Check whether --with-boot-libs was given.
5530 if test "${with_boot_libs+set}" = set; then :
5531   withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5532    poststage1_libs=
5533  else
5534    poststage1_libs=$withval
5535  fi
5536 else
5537   poststage1_libs=$with_host_libstdcxx
5538 fi
5539
5540
5541
5542 # Linker flags to use for stage2 and later builds.
5543
5544 # Check whether --with-boot-ldflags was given.
5545 if test "${with_boot_ldflags+set}" = set; then :
5546   withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5547    poststage1_ldflags=
5548  else
5549    poststage1_ldflags=$withval
5550  fi
5551 else
5552   poststage1_ldflags=
5553  # With --enable-build-with-cxx, default to linking libstdc++ and
5554  # libgcc statically.  But if the user explicitly specified the
5555  # libraries to use, trust that they are doing what they want.
5556  if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5557    poststage1_ldflags="-static-libstdc++ -static-libgcc"
5558  fi
5559 fi
5560
5561
5562
5563 # Check for PPL
5564 ppllibs=" -lppl_c -lppl -lgmpxx"
5565 pplinc=
5566
5567
5568 # Check whether --with-ppl was given.
5569 if test "${with_ppl+set}" = set; then :
5570   withval=$with_ppl;
5571 fi
5572
5573
5574 # Check whether --with-ppl_include was given.
5575 if test "${with_ppl_include+set}" = set; then :
5576   withval=$with_ppl_include;
5577 fi
5578
5579
5580 # Check whether --with-ppl_lib was given.
5581 if test "${with_ppl_lib+set}" = set; then :
5582   withval=$with_ppl_lib;
5583 fi
5584
5585
5586 case $with_ppl in
5587   no)
5588     ppllibs=
5589     ;;
5590   "" | yes)
5591     ;;
5592   *)
5593     ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5594     pplinc="-I$with_ppl/include $pplinc"
5595     ;;
5596 esac
5597 if test "x$with_ppl_include" != x; then
5598   pplinc="-I$with_ppl_include $pplinc"
5599 fi
5600 if test "x$with_ppl_lib" != x; then
5601   ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5602 fi
5603 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5604   ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5605   pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5606   enable_ppl_version_check=no
5607 fi
5608
5609 # Check whether --enable-ppl-version-check was given.
5610 if test "${enable_ppl_version_check+set}" = set; then :
5611   enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5612 else
5613   ENABLE_PPL_CHECK=yes
5614 fi
5615
5616
5617 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5618   saved_CFLAGS="$CFLAGS"
5619   CFLAGS="$CFLAGS $pplinc $gmpinc"
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5621 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h.  */
5624 #include "ppl_c.h"
5625 int
5626 main ()
5627 {
5628
5629   #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5630   choke me
5631   #endif
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639 $as_echo "yes" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645   CFLAGS="$saved_CFLAGS"
5646 fi
5647
5648 # Flags needed for PPL
5649
5650
5651
5652
5653 # Check for CLOOG
5654 clooglibs=" -lcloog "
5655 clooginc=" -DCLOOG_PPL_BACKEND "
5656
5657
5658 # Check whether --with-cloog was given.
5659 if test "${with_cloog+set}" = set; then :
5660   withval=$with_cloog;
5661 fi
5662
5663
5664 # Check whether --with-cloog_include was given.
5665 if test "${with_cloog_include+set}" = set; then :
5666   withval=$with_cloog_include;
5667 fi
5668
5669
5670 # Check whether --with-cloog_lib was given.
5671 if test "${with_cloog_lib+set}" = set; then :
5672   withval=$with_cloog_lib;
5673 fi
5674
5675
5676 if test "x$with_ppl" = "xno"; then
5677   with_cloog=no
5678 fi
5679
5680 case $with_cloog in
5681   no)
5682     clooglibs=
5683     clooginc=
5684     ;;
5685   "" | yes)
5686     ;;
5687   *)
5688     clooglibs="-L$with_cloog/lib -lcloog"
5689     clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5690     ;;
5691 esac
5692 if test "x$with_cloog_include" != x; then
5693   clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5694 fi
5695 if test "x$with_cloog_lib" != x; then
5696   clooglibs="-L$with_cloog_lib -lcloog"
5697 fi
5698 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5699   clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5700   clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5701   enable_cloog_version_check=no
5702 fi
5703
5704 # Check whether --enable-cloog-version-check was given.
5705 if test "${enable_cloog_version_check+set}" = set; then :
5706   enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5707 else
5708   ENABLE_CLOOG_CHECK=yes
5709 fi
5710
5711
5712 if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
5713   saved_CFLAGS="$CFLAGS"
5714   CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5716 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h.  */
5719 #include "cloog/cloog.h"
5720 int
5721 main ()
5722 {
5723
5724   #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
5725   choke me
5726   #endif
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 if ac_fn_c_try_compile "$LINENO"; then :
5733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h.  */
5735 #include "cloog/cloog.h"
5736 int
5737 main ()
5738 {
5739
5740   #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5741   choke me
5742   #endif
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750 $as_echo "yes" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5753 $as_echo "buggy but acceptable" >&6; }
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761   CFLAGS="$saved_CFLAGS"
5762 fi
5763
5764 # Flags needed for CLOOG
5765
5766
5767
5768 # Check for LTO support.
5769 # Check whether --enable-lto was given.
5770 if test "${enable_lto+set}" = set; then :
5771   enableval=$enable_lto; enable_lto=$enableval
5772 else
5773   enable_lto=yes; default_enable_lto=yes
5774 fi
5775
5776
5777
5778
5779
5780 target_elf=no
5781 case $target in
5782   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5783   *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5784   alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5785     target_elf=no
5786     ;;
5787   *)
5788     target_elf=yes
5789     ;;
5790 esac
5791
5792 if test $target_elf = yes; then :
5793   # ELF platforms build the lto-plugin always.
5794   build_lto_plugin=yes
5795
5796 else
5797   if test x"$default_enable_lto" = x"yes" ; then
5798     case $target in
5799       *-apple-darwin* | *-cygwin* | *-mingw*) ;;
5800       # On other non-ELF platforms, LTO has yet to be validated.
5801       *) enable_lto=no ;;
5802     esac
5803   else
5804   # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5805   # It would also be nice to check the binutils support, but we don't
5806   # have gcc_GAS_CHECK_FEATURE available here.  For now, we'll just
5807   # warn during gcc/ subconfigure; unless you're bootstrapping with
5808   # -flto it won't be needed until after installation anyway.
5809     case $target in
5810       *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5811       *) if test x"$enable_lto" = x"yes"; then
5812         as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5813         fi
5814       ;;
5815     esac
5816   fi
5817   # Among non-ELF, only Windows platforms support the lto-plugin so far.
5818   # Build it unless LTO was explicitly disabled.
5819   case $target in
5820     *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5821     *) ;;
5822   esac
5823
5824 fi
5825
5826
5827
5828 # By default, C is the only stage 1 language.
5829 stage1_languages=,c,
5830
5831 # Target libraries that we bootstrap.
5832 bootstrap_target_libs=,target-libgcc,
5833
5834 # Figure out what language subdirectories are present.
5835 # Look if the user specified --enable-languages="..."; if not, use
5836 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5837 # go away some day.
5838 # NB:  embedded tabs in this IF block -- do not untabify
5839 if test -d ${srcdir}/gcc; then
5840   if test x"${enable_languages+set}" != xset; then
5841     if test x"${LANGUAGES+set}" = xset; then
5842       enable_languages="${LANGUAGES}"
5843         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5844     else
5845       enable_languages=all
5846     fi
5847   else
5848     if test x"${enable_languages}" = x ||
5849        test x"${enable_languages}" = xyes;
5850        then
5851       echo configure.in: --enable-languages needs at least one language argument 1>&2
5852       exit 1
5853     fi
5854   fi
5855   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
5856
5857   # 'f95' is the old name for the 'fortran' language. We issue a warning
5858   # and make the substitution.
5859   case ,${enable_languages}, in
5860     *,f95,*)
5861       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5862       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5863       ;;
5864   esac
5865
5866   # First scan to see if an enabled language requires some other language.
5867   # We assume that a given config-lang.in will list all the language
5868   # front ends it requires, even if some are required indirectly.
5869   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5870     case ${lang_frag} in
5871       ..) ;;
5872       # The odd quoting in the next line works around
5873       # an apparent bug in bash 1.12 on linux.
5874       ${srcdir}/gcc/[*]/config-lang.in) ;;
5875       *)
5876         # From the config-lang.in, get $language, $lang_requires
5877         language=
5878         lang_requires=
5879         . ${lang_frag}
5880         for other in ${lang_requires} ; do
5881           case ,${enable_languages}, in
5882             *,$other,*) ;;
5883             *,all,*) ;;
5884             *,$language,*)
5885               echo " \`$other' language required by \`$language'; enabling" 1>&2
5886               enable_languages="${enable_languages},${other}"
5887               ;;
5888           esac
5889         done
5890         ;;
5891     esac
5892   done
5893
5894   new_enable_languages=,c,
5895
5896   # If LTO is enabled, add the LTO front end.
5897   extra_host_libiberty_configure_flags=
5898   if test "$enable_lto" = "yes" ; then
5899     case ,${enable_languages}, in
5900       *,lto,*) ;;
5901       *) enable_languages="${enable_languages},lto" ;;
5902     esac
5903     if test "${build_lto_plugin}" = "yes" ; then
5904       configdirs="$configdirs lto-plugin"
5905       extra_host_libiberty_configure_flags=--enable-shared
5906     fi
5907   fi
5908
5909
5910   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5911   potential_languages=,c,
5912
5913   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5914     case ${lang_frag} in
5915       ..) ;;
5916       # The odd quoting in the next line works around
5917       # an apparent bug in bash 1.12 on linux.
5918       ${srcdir}/gcc/[*]/config-lang.in) ;;
5919       *)
5920         # From the config-lang.in, get $language, $target_libs,
5921         # $lang_dirs, $boot_language, and $build_by_default
5922         language=
5923         target_libs=
5924         lang_dirs=
5925         subdir_requires=
5926         boot_language=no
5927         build_by_default=yes
5928         . ${lang_frag}
5929         if test x${language} = x; then
5930           echo "${lang_frag} doesn't set \$language." 1>&2
5931           exit 1
5932         fi
5933
5934         if test "$language" = "c++" \
5935            && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5936           boot_language=yes
5937         fi
5938
5939         case ,${enable_languages}, in
5940           *,${language},*)
5941             # Language was explicitly selected; include it.
5942             add_this_lang=yes
5943             ;;
5944           *,all,*)
5945             # 'all' was selected, select it if it is a default language
5946             add_this_lang=${build_by_default}
5947             ;;
5948           *)
5949             add_this_lang=no
5950             ;;
5951         esac
5952
5953         # Disable languages that need other directories if these aren't available.
5954         for i in $subdir_requires; do
5955           test -f "$srcdir/gcc/$i/config-lang.in" && continue
5956           case ,${enable_languages}, in
5957             *,${language},*)
5958               # Specifically requested language; tell them.
5959               as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5960               ;;
5961             *)
5962               # Silently disable.
5963               add_this_lang=unsupported
5964               ;;
5965           esac
5966         done
5967
5968         # Disable Ada if no preexisting GNAT is available.
5969         case ,${enable_languages},:${language}:${have_gnat} in
5970           *,${language},*:ada:no)
5971             # Specifically requested language; tell them.
5972             as_fn_error "GNAT is required to build $language" "$LINENO" 5
5973             ;;
5974           *:ada:no)
5975             # Silently disable.
5976             add_this_lang=unsupported
5977             ;;
5978         esac
5979
5980         # Disable a language that is unsupported by the target.
5981         case " $unsupported_languages " in
5982           *" $language "*)
5983             add_this_lang=unsupported
5984             ;;
5985         esac
5986
5987         case $add_this_lang in
5988           unsupported)
5989             # Remove language-dependent dirs.
5990             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5991             ;;
5992           no)
5993             # Remove language-dependent dirs; still show language as supported.
5994             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5995             potential_languages="${potential_languages}${language},"
5996             ;;
5997           yes)
5998             new_enable_languages="${new_enable_languages}${language},"
5999             potential_languages="${potential_languages}${language},"
6000             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6001             case "${boot_language}:,$enable_stage1_languages," in
6002               yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6003                 # Add to (comma-separated) list of stage 1 languages.
6004                 case ",$stage1_languages," in
6005                   *,$language,* | ,yes, | ,all,) ;;
6006                   *) stage1_languages="${stage1_languages}${language}," ;;
6007                 esac
6008                 # We need to bootstrap any supporting libraries.
6009                 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6010                 ;;
6011             esac
6012             ;;
6013         esac
6014         ;;
6015     esac
6016   done
6017
6018   # Check whether --enable-stage1-languages was given.
6019 if test "${enable_stage1_languages+set}" = set; then :
6020   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6021     ,no,|,,)
6022       # Set it to something that will have no effect in the loop below
6023       enable_stage1_languages=c ;;
6024     ,yes,)
6025       enable_stage1_languages=`echo $new_enable_languages | \
6026         sed -e "s/^,//" -e "s/,$//" ` ;;
6027     *,all,*)
6028       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6029         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6030   esac
6031
6032   # Add "good" languages from enable_stage1_languages to stage1_languages,
6033   # while "bad" languages go in missing_languages.  Leave no duplicates.
6034   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6035     case $potential_languages in
6036       *,$i,*)
6037         case $stage1_languages in
6038           *,$i,*) ;;
6039           *) stage1_languages="$stage1_languages$i," ;;
6040         esac ;;
6041       *)
6042         case $missing_languages in
6043           *,$i,*) ;;
6044           *) missing_languages="$missing_languages$i," ;;
6045         esac ;;
6046      esac
6047   done
6048 fi
6049
6050
6051   # Remove leading/trailing commas that were added for simplicity
6052   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6053   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6054   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6055   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6056
6057   if test "x$missing_languages" != x; then
6058     as_fn_error "
6059 The following requested languages could not be built: ${missing_languages}
6060 Supported languages are: ${potential_languages}" "$LINENO" 5
6061   fi
6062   if test "x$new_enable_languages" != "x$enable_languages"; then
6063     echo The following languages will be built: ${new_enable_languages}
6064     enable_languages="$new_enable_languages"
6065   fi
6066
6067
6068   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6069 fi
6070
6071 # Handle --disable-<component> generically.
6072 for dir in $configdirs $build_configdirs $target_configdirs ; do
6073   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6074   varname=`echo $dirname | sed -e s/+/_/g`
6075   if eval test x\${enable_${varname}} "=" xno ; then
6076     noconfigdirs="$noconfigdirs $dir"
6077   fi
6078 done
6079
6080 # Check for Boehm's garbage collector
6081 # Check whether --enable-objc-gc was given.
6082 if test "${enable_objc_gc+set}" = set; then :
6083   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6084   *,objc,*:*:yes:*target-boehm-gc*)
6085     as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6086     ;;
6087 esac
6088 fi
6089
6090
6091 # Make sure we only build Boehm's garbage collector if required.
6092 case ,${enable_languages},:${enable_objc_gc} in
6093   *,objc,*:yes)
6094     # Keep target-boehm-gc if requested for Objective-C.
6095     ;;
6096   *)
6097     # Otherwise remove target-boehm-gc depending on target-libjava.
6098     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6099       noconfigdirs="$noconfigdirs target-boehm-gc"
6100     fi
6101     ;;
6102 esac
6103
6104 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6105 # $build_configdirs and $target_configdirs.
6106 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6107
6108 notsupp=""
6109 for dir in . $skipdirs $noconfigdirs ; do
6110   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6111   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6112     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6113     if test -r $srcdir/$dirname/configure ; then
6114       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6115         true
6116       else
6117         notsupp="$notsupp $dir"
6118       fi
6119     fi
6120   fi
6121   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6122     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6123     if test -r $srcdir/$dirname/configure ; then
6124       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6125         true
6126       else
6127         notsupp="$notsupp $dir"
6128       fi
6129     fi
6130   fi
6131   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6132     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6133     if test -r $srcdir/$dirname/configure ; then
6134       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6135         true
6136       else
6137         notsupp="$notsupp $dir"
6138       fi
6139     fi
6140   fi
6141 done
6142
6143 # Sometimes the tools are distributed with libiberty but with no other
6144 # libraries.  In that case, we don't want to build target-libiberty.
6145 # Don't let libgcc imply libiberty either.
6146 if test -n "${target_configdirs}" ; then
6147   libgcc=
6148   others=
6149   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6150     if test "$i" = "libgcc"; then
6151       libgcc=target-libgcc
6152     elif test "$i" != "libiberty" ; then
6153       if test -r $srcdir/$i/configure ; then
6154         others=yes;
6155         break;
6156       fi
6157     fi
6158   done
6159   if test -z "${others}" ; then
6160     target_configdirs=$libgcc
6161   fi
6162 fi
6163
6164 # Quietly strip out all directories which aren't configurable in this tree.
6165 # This relies on all configurable subdirectories being autoconfiscated, which
6166 # is now the case.
6167 build_configdirs_all="$build_configdirs"
6168 build_configdirs=
6169 for i in ${build_configdirs_all} ; do
6170   j=`echo $i | sed -e s/build-//g`
6171   if test -f ${srcdir}/$j/configure ; then
6172     build_configdirs="${build_configdirs} $i"
6173   fi
6174 done
6175
6176 configdirs_all="$configdirs"
6177 configdirs=
6178 for i in ${configdirs_all} ; do
6179   if test -f ${srcdir}/$i/configure ; then
6180     configdirs="${configdirs} $i"
6181   fi
6182 done
6183
6184 target_configdirs_all="$target_configdirs"
6185 target_configdirs=
6186 for i in ${target_configdirs_all} ; do
6187   j=`echo $i | sed -e s/target-//g`
6188   if test -f ${srcdir}/$j/configure ; then
6189     target_configdirs="${target_configdirs} $i"
6190   fi
6191 done
6192
6193 # Produce a warning message for the subdirs we can't configure.
6194 # This isn't especially interesting in the Cygnus tree, but in the individual
6195 # FSF releases, it's important to let people know when their machine isn't
6196 # supported by the one or two programs in a package.
6197
6198 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6199   # If $appdirs is non-empty, at least one of those directories must still
6200   # be configured, or we error out.  (E.g., if the gas release supports a
6201   # specified target in some subdirs but not the gas subdir, we shouldn't
6202   # pretend that all is well.)
6203   if test -n "$appdirs" ; then
6204     for dir in $appdirs ; do
6205       if test -r $dir/Makefile.in ; then
6206         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6207           appdirs=""
6208           break
6209         fi
6210         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6211           appdirs=""
6212           break
6213         fi
6214       fi
6215     done
6216     if test -n "$appdirs" ; then
6217       echo "*** This configuration is not supported by this package." 1>&2
6218       exit 1
6219     fi
6220   fi
6221   # Okay, some application will build, or we don't care to check.  Still
6222   # notify of subdirs not getting built.
6223   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6224   echo "    ${notsupp}" 1>&2
6225   echo "    (Any other directories should still work fine.)" 1>&2
6226 fi
6227
6228 case "$host" in
6229   *msdosdjgpp*)
6230     enable_gdbtk=no ;;
6231 esac
6232
6233 # To find our prefix, in gcc_cv_tool_prefix.
6234
6235 # The user is always right.
6236 if test "${PATH_SEPARATOR+set}" != set; then
6237   echo "#! /bin/sh" >conf$$.sh
6238   echo  "exit 0"   >>conf$$.sh
6239   chmod +x conf$$.sh
6240   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6241     PATH_SEPARATOR=';'
6242   else
6243     PATH_SEPARATOR=:
6244   fi
6245   rm -f conf$$.sh
6246 fi
6247
6248
6249
6250 if test "x$exec_prefix" = xNONE; then
6251         if test "x$prefix" = xNONE; then
6252                 gcc_cv_tool_prefix=$ac_default_prefix
6253         else
6254                 gcc_cv_tool_prefix=$prefix
6255         fi
6256 else
6257         gcc_cv_tool_prefix=$exec_prefix
6258 fi
6259
6260 # If there is no compiler in the tree, use the PATH only.  In any
6261 # case, if there is no compiler in the tree nobody should use
6262 # AS_FOR_TARGET and LD_FOR_TARGET.
6263 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6264     gcc_version=`cat $srcdir/gcc/BASE-VER`
6265     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6266     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6267     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6268     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6269     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6270     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6271 else
6272     gcc_cv_tool_dirs=
6273 fi
6274
6275 if test x$build = x$target && test -n "$md_exec_prefix"; then
6276         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6277 fi
6278
6279
6280
6281 copy_dirs=
6282
6283
6284 # Check whether --with-build-sysroot was given.
6285 if test "${with_build_sysroot+set}" = set; then :
6286   withval=$with_build_sysroot; if test x"$withval" != x ; then
6287      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6288    fi
6289 else
6290   SYSROOT_CFLAGS_FOR_TARGET=
6291 fi
6292
6293
6294
6295
6296 # Check whether --with-debug-prefix-map was given.
6297 if test "${with_debug_prefix_map+set}" = set; then :
6298   withval=$with_debug_prefix_map; if test x"$withval" != x; then
6299      DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6300      for debug_map in $withval; do
6301        DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6302      done
6303    fi
6304 else
6305   DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6306 fi
6307
6308
6309
6310 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6311 # might be empty or "-g".  We don't require a C++ compiler, so CXXFLAGS
6312 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6313 # We want to ensure that TARGET libraries (which we know are built with
6314 # gcc) are built with "-O2 -g", so include those options when setting
6315 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6316 if test "x$CFLAGS_FOR_TARGET" = x; then
6317   CFLAGS_FOR_TARGET=$CFLAGS
6318   case " $CFLAGS " in
6319     *" -O2 "*) ;;
6320     *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6321   esac
6322   case " $CFLAGS " in
6323     *" -g "* | *" -g3 "*) ;;
6324     *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6325   esac
6326 fi
6327
6328
6329 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6330   CXXFLAGS_FOR_TARGET=$CXXFLAGS
6331   case " $CXXFLAGS " in
6332     *" -O2 "*) ;;
6333     *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6334   esac
6335   case " $CXXFLAGS " in
6336     *" -g "* | *" -g3 "*) ;;
6337     *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6338   esac
6339 fi
6340
6341
6342 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
6343 # the named directory are copied to $(tooldir)/sys-include.
6344 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6345   if test x${is_cross_compiler} = xno ; then
6346     echo 1>&2 '***' --with-headers is only supported when cross compiling
6347     exit 1
6348   fi
6349   if test x"${with_headers}" != xyes ; then
6350     x=${gcc_cv_tool_prefix}
6351     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6352   fi
6353 fi
6354
6355 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
6356 # the name directories are copied to $(tooldir)/lib.  Multiple directories
6357 # are permitted.
6358 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6359   if test x${is_cross_compiler} = xno ; then
6360     echo 1>&2 '***' --with-libs is only supported when cross compiling
6361     exit 1
6362   fi
6363   if test x"${with_libs}" != xyes ; then
6364     # Copy the libraries in reverse order, so that files in the first named
6365     # library override files in subsequent libraries.
6366     x=${gcc_cv_tool_prefix}
6367     for l in ${with_libs}; do
6368       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6369     done
6370   fi
6371 fi
6372
6373 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6374 #
6375 # This is done by determining whether or not the appropriate directory
6376 # is available, and by checking whether or not specific configurations
6377 # have requested that this magic not happen.
6378 #
6379 # The command line options always override the explicit settings in
6380 # configure.in, and the settings in configure.in override this magic.
6381 #
6382 # If the default for a toolchain is to use GNU as and ld, and you don't
6383 # want to do that, then you should use the --without-gnu-as and
6384 # --without-gnu-ld options for the configure script.  Similarly, if
6385 # the default is to use the included zlib and you don't want to do that,
6386 # you should use the --with-system-zlib option for the configure script.
6387
6388 if test x${use_gnu_as} = x &&
6389    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6390   with_gnu_as=yes
6391   extra_host_args="$extra_host_args --with-gnu-as"
6392 fi
6393
6394 if test x${use_gnu_ld} = x &&
6395    echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6396   with_gnu_ld=yes
6397   extra_host_args="$extra_host_args --with-gnu-ld"
6398 fi
6399
6400 if test x${use_included_zlib} = x &&
6401    echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6402   :
6403 else
6404   with_system_zlib=yes
6405   extra_host_args="$extra_host_args --with-system-zlib"
6406 fi
6407
6408 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6409 # can detect this case.
6410
6411 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6412   with_newlib=yes
6413   extra_host_args="$extra_host_args --with-newlib"
6414 fi
6415
6416 # Handle ${copy_dirs}
6417 set fnord ${copy_dirs}
6418 shift
6419 while test $# != 0 ; do
6420   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6421     :
6422   else
6423     echo Copying $1 to $2
6424
6425     # Use the install script to create the directory and all required
6426     # parent directories.
6427     if test -d $2 ; then
6428       :
6429     else
6430       echo >config.temp
6431       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6432     fi
6433
6434     # Copy the directory, assuming we have tar.
6435     # FIXME: Should we use B in the second tar?  Not all systems support it.
6436     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6437
6438     # It is the responsibility of the user to correctly adjust all
6439     # symlinks.  If somebody can figure out how to handle them correctly
6440     # here, feel free to add the code.
6441
6442     echo $1 > $2/COPIED
6443   fi
6444   shift; shift
6445 done
6446
6447 # Determine a target-dependent exec_prefix that the installed
6448 # gcc will search in.  Keep this list sorted by triplet, with
6449 # the *-*-osname triplets last.
6450 md_exec_prefix=
6451 case "${target}" in
6452   alpha*-*-*vms*)
6453     md_exec_prefix=/gnu/lib/gcc-lib
6454     ;;
6455   i[34567]86-pc-msdosdjgpp*)
6456     md_exec_prefix=/dev/env/DJDIR/bin
6457     ;;
6458   i[34567]86-*-sco3.2v5*)
6459     if test $with_gnu_as = yes; then
6460       md_exec_prefix=/usr/gnu/bin
6461     else
6462       md_exec_prefix=/usr/ccs/bin/elf
6463     fi
6464     ;;
6465
6466   mn10300-*-* | \
6467   powerpc-*-chorusos* | \
6468   powerpc*-*-eabi* | \
6469   powerpc*-*-sysv* | \
6470   powerpc*-*-kaos* | \
6471   s390x-ibm-tpf*)
6472     md_exec_prefix=/usr/ccs/bin
6473     ;;
6474   sparc64-*-elf*)
6475     ;;
6476   v850*-*-*)
6477     md_exec_prefix=/usr/ccs/bin
6478     ;;
6479   xtensa*-*-elf*)
6480     ;;
6481
6482   *-*-beos* | \
6483   *-*-elf* | \
6484   *-*-hpux* | \
6485   *-*-netware* | \
6486   *-*-nto-qnx* | \
6487   *-*-rtems* | \
6488   *-*-solaris2* | \
6489   *-*-sysv[45]* | \
6490   *-*-vxworks* | \
6491   *-wrs-windiss)
6492     md_exec_prefix=/usr/ccs/bin
6493     ;;
6494 esac
6495
6496 extra_arflags_for_target=
6497 extra_nmflags_for_target=
6498 extra_ranlibflags_for_target=
6499 target_makefile_frag=/dev/null
6500 case "${target}" in
6501   mep*-*-*)
6502     target_makefile_frag="config/mt-mep"
6503     ;;
6504   spu-*-*)
6505     target_makefile_frag="config/mt-spu"
6506     ;;
6507   mips*-sde-elf*)
6508     target_makefile_frag="config/mt-sde"
6509     ;;
6510   mipsisa*-*-elfoabi*)
6511     target_makefile_frag="config/mt-mips-elfoabi"
6512     ;;
6513   mips*-*-*linux* | mips*-*-gnu*)
6514     target_makefile_frag="config/mt-mips-gnu"
6515     ;;
6516   *-*-netware*)
6517     target_makefile_frag="config/mt-netware"
6518     ;;
6519   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6520     target_makefile_frag="config/mt-gnu"
6521     ;;
6522   *-*-aix4.[3456789]* | *-*-aix[56789].*)
6523     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6524     # commands to handle both 32-bit and 64-bit objects.  These flags are
6525     # harmless if we're using GNU nm or ar.
6526     extra_arflags_for_target=" -X32_64"
6527     extra_nmflags_for_target=" -B -X32_64"
6528     ;;
6529   *-*-darwin[3-9]*)
6530     # ranlib before Darwin10 requires the -c flag to look at common symbols.
6531     extra_ranlibflags_for_target=" -c"
6532     ;;
6533   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6534     target_makefile_frag="config/mt-wince"
6535     ;;
6536 esac
6537
6538 alphaieee_frag=/dev/null
6539 case $target in
6540   alpha*-*-*)
6541     # This just makes sure to use the -mieee option to build target libs.
6542     # This should probably be set individually by each library.
6543     alphaieee_frag="config/mt-alphaieee"
6544     ;;
6545 esac
6546
6547 # If --enable-target-optspace always use -Os instead of -O2 to build
6548 # the target libraries, similarly if it is not specified, use -Os
6549 # on selected platforms.
6550 ospace_frag=/dev/null
6551 case "${enable_target_optspace}:${target}" in
6552   yes:*)
6553     ospace_frag="config/mt-ospace"
6554     ;;
6555   :d30v-*)
6556     ospace_frag="config/mt-d30v"
6557     ;;
6558   :m32r-* | :d10v-* | :fr30-*)
6559     ospace_frag="config/mt-ospace"
6560     ;;
6561   no:* | :*)
6562     ;;
6563   *)
6564     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6565     ;;
6566 esac
6567
6568 # Default to using --with-stabs for certain targets.
6569 if test x${with_stabs} = x ; then
6570   case "${target}" in
6571   mips*-*-irix[56]*)
6572     ;;
6573   mips*-*-* | alpha*-*-osf*)
6574     with_stabs=yes;
6575     extra_host_args="${extra_host_args} --with-stabs"
6576     ;;
6577   esac
6578 fi
6579
6580 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
6581 # them automatically.
6582 case "${host}" in
6583   hppa*64*-*-hpux11*)
6584     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6585     ;;
6586 esac
6587
6588 # Some systems (e.g., one of the i386-aix systems the gas testers are
6589 # using) don't handle "\$" correctly, so don't use it here.
6590 tooldir='${exec_prefix}'/${target_noncanonical}
6591 build_tooldir=${tooldir}
6592
6593 # Create a .gdbinit file which runs the one in srcdir
6594 # and tells GDB to look there for source files.
6595
6596 if test -r ${srcdir}/.gdbinit ; then
6597   case ${srcdir} in
6598     .) ;;
6599     *) cat > ./.gdbinit <<EOF
6600 # ${NO_EDIT}
6601 dir ${srcdir}
6602 dir .
6603 source ${srcdir}/.gdbinit
6604 EOF
6605     ;;
6606   esac
6607 fi
6608
6609 # Make sure that the compiler is able to generate an executable.  If it
6610 # can't, we are probably in trouble.  We don't care whether we can run the
6611 # executable--we might be using a cross compiler--we only care whether it
6612 # can be created.  At this point the main configure script has set CC.
6613 we_are_ok=no
6614 echo "int main () { return 0; }" > conftest.c
6615 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6616 if test $? = 0 ; then
6617   if test -s conftest || test -s conftest.exe ; then
6618     we_are_ok=yes
6619   fi
6620 fi
6621 case $we_are_ok in
6622   no)
6623     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6624     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6625     rm -f conftest*
6626     exit 1
6627     ;;
6628 esac
6629 rm -f conftest*
6630
6631 # The Solaris /usr/ucb/cc compiler does not appear to work.
6632 case "${host}" in
6633   sparc-sun-solaris2*)
6634       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6635       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6636           could_use=
6637           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6638           if test -d /opt/cygnus/bin ; then
6639               if test "$could_use" = "" ; then
6640                   could_use="/opt/cygnus/bin"
6641               else
6642                   could_use="$could_use or /opt/cygnus/bin"
6643               fi
6644           fi
6645         if test "$could_use" = "" ; then
6646             echo "Warning: compilation may fail because you're using"
6647             echo "/usr/ucb/cc.  You should change your PATH or CC "
6648             echo "variable and rerun configure."
6649         else
6650             echo "Warning: compilation may fail because you're using"
6651             echo "/usr/ucb/cc, when you should use the C compiler from"
6652             echo "$could_use.  You should change your"
6653             echo "PATH or CC variable and rerun configure."
6654         fi
6655       fi
6656   ;;
6657 esac
6658
6659 # Decide which environment variable is used to find dynamic libraries.
6660 case "${host}" in
6661   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6662   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6663   *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6664   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6665 esac
6666
6667 # On systems where the dynamic library environment variable is PATH,
6668 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6669 # built executables to PATH.
6670 if test "$RPATH_ENVVAR" = PATH; then
6671   GCC_SHLIB_SUBDIR=/shlib
6672 else
6673   GCC_SHLIB_SUBDIR=
6674 fi
6675
6676 # Record target_configdirs and the configure arguments for target and
6677 # build configuration in Makefile.
6678 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6679 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6680
6681 # If we are building libgomp, bootstrap it.
6682 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6683   bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6684 fi
6685
6686 # Determine whether gdb needs tk/tcl or not.
6687 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6688 # and in that case we want gdb to be built without tk.  Ugh!
6689 # In fact I believe gdb is the *only* package directly dependent on tk,
6690 # so we should be able to put the 'maybe's in unconditionally and
6691 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
6692 # 100% sure that that's safe though.
6693
6694 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6695 case "$enable_gdbtk" in
6696   no)
6697     GDB_TK="" ;;
6698   yes)
6699     GDB_TK="${gdb_tk}" ;;
6700   *)
6701     # Only add the dependency on gdbtk when GDBtk is part of the gdb
6702     # distro.  Eventually someone will fix this and move Insight, nee
6703     # gdbtk to a separate directory.
6704     if test -d ${srcdir}/gdb/gdbtk ; then
6705       GDB_TK="${gdb_tk}"
6706     else
6707       GDB_TK=""
6708     fi
6709     ;;
6710 esac
6711 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6712 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6713
6714 # Strip out unwanted targets.
6715
6716 # While at that, we remove Makefiles if we were started for recursive
6717 # configuration, so that the top-level Makefile reconfigures them,
6718 # like we used to do when configure itself was recursive.
6719
6720 # Loop over modules.  We used to use the "$extrasub" feature from Autoconf
6721 # but now we're fixing up the Makefile ourselves with the additional
6722 # commands passed to AC_CONFIG_FILES.  Use separate variables
6723 # extrasub-{build,host,target} not because there is any reason to split
6724 # the substitutions up that way, but only to remain below the limit of
6725 # 99 commands in a script, for HP-UX sed.
6726 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6727
6728 # Check whether --enable-bootstrap was given.
6729 if test "${enable_bootstrap+set}" = set; then :
6730   enableval=$enable_bootstrap;
6731 else
6732   enable_bootstrap=default
6733 fi
6734
6735
6736 # Issue errors and warnings for invalid/strange bootstrap combinations.
6737 case "$configdirs" in
6738   *gcc*) have_compiler=yes ;;
6739   *) have_compiler=no ;;
6740 esac
6741
6742 case "$have_compiler:$host:$target:$enable_bootstrap" in
6743   *:*:*:no) ;;
6744
6745   # Default behavior.  Enable bootstrap if we have a compiler
6746   # and we are in a native configuration.
6747   yes:$build:$build:default)
6748     enable_bootstrap=yes ;;
6749
6750   *:*:*:default)
6751     enable_bootstrap=no ;;
6752
6753   # We have a compiler and we are in a native configuration, bootstrap is ok
6754   yes:$build:$build:yes)
6755     ;;
6756
6757   # Other configurations, but we have a compiler.  Assume the user knows
6758   # what he's doing.
6759   yes:*:*:yes)
6760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6761 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6762     ;;
6763
6764   # No compiler: if they passed --enable-bootstrap explicitly, fail
6765   no:*:*:yes)
6766     as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6767
6768   # Fail if wrong command line
6769   *)
6770     as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6771     ;;
6772 esac
6773
6774 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6775   *,c++,*:yes:yes) ;;
6776   *:yes:yes)
6777     as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6778     ;;
6779 esac
6780
6781 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6782   yes:yes:*\ gold\ *:*,c++,*) ;;
6783   yes:yes:*\ gold\ *:*)
6784     as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6785     ;;
6786 esac
6787
6788 # Adjust the toplevel makefile according to whether bootstrap was selected.
6789 case $enable_bootstrap in
6790   yes)
6791     bootstrap_suffix=bootstrap
6792     BUILD_CONFIG=bootstrap-debug
6793     ;;
6794   no)
6795     bootstrap_suffix=no-bootstrap
6796     BUILD_CONFIG=
6797     ;;
6798 esac
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6801 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6802
6803
6804 # Check whether --with-build-config was given.
6805 if test "${with_build_config+set}" = set; then :
6806   withval=$with_build_config; case $with_build_config in
6807    yes) with_build_config= ;;
6808    no) with_build_config= BUILD_CONFIG= ;;
6809    esac
6810 fi
6811
6812
6813 if test "x${with_build_config}" != x; then
6814   BUILD_CONFIG=$with_build_config
6815 else
6816   case $BUILD_CONFIG in
6817   bootstrap-debug)
6818     if echo "int f (void) { return 0; }" > conftest.c &&
6819        ${CC} -c conftest.c &&
6820        mv conftest.o conftest.o.g0 &&
6821        ${CC} -c -g conftest.c &&
6822        mv conftest.o conftest.o.g &&
6823        ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6824       :
6825     else
6826       BUILD_CONFIG=
6827     fi
6828     rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6829     ;;
6830   esac
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6833 $as_echo "$BUILD_CONFIG" >&6; }
6834
6835
6836 extrasub_build=
6837 for module in ${build_configdirs} ; do
6838   if test -z "${no_recursion}" \
6839      && test -f ${build_subdir}/${module}/Makefile; then
6840     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6841     rm -f ${build_subdir}/${module}/Makefile
6842   fi
6843   extrasub_build="$extrasub_build
6844 /^@if build-$module\$/d
6845 /^@endif build-$module\$/d
6846 /^@if build-$module-$bootstrap_suffix\$/d
6847 /^@endif build-$module-$bootstrap_suffix\$/d"
6848 done
6849 extrasub_host=
6850 for module in ${configdirs} ; do
6851   if test -z "${no_recursion}"; then
6852     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6853       if test -f ${file}; then
6854         echo 1>&2 "*** removing ${file} to force reconfigure"
6855         rm -f ${file}
6856       fi
6857     done
6858   fi
6859   extrasub_host="$extrasub_host
6860 /^@if $module\$/d
6861 /^@endif $module\$/d
6862 /^@if $module-$bootstrap_suffix\$/d
6863 /^@endif $module-$bootstrap_suffix\$/d"
6864 done
6865 extrasub_target=
6866 for module in ${target_configdirs} ; do
6867   if test -z "${no_recursion}" \
6868      && test -f ${target_subdir}/${module}/Makefile; then
6869     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6870     rm -f ${target_subdir}/${module}/Makefile
6871   fi
6872
6873   # We only bootstrap target libraries listed in bootstrap_target_libs.
6874   case $bootstrap_target_libs in
6875     *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6876     *) target_bootstrap_suffix=no-bootstrap ;;
6877   esac
6878
6879   extrasub_target="$extrasub_target
6880 /^@if target-$module\$/d
6881 /^@endif target-$module\$/d
6882 /^@if target-$module-$target_bootstrap_suffix\$/d
6883 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6884 done
6885
6886 # Do the final fixup along with target modules.
6887 extrasub_target="$extrasub_target
6888 /^@if /,/^@endif /d"
6889
6890 # Create the serialization dependencies.  This uses a temporary file.
6891
6892 # Check whether --enable-serial-configure was given.
6893 if test "${enable_serial_configure+set}" = set; then :
6894   enableval=$enable_serial_configure;
6895 fi
6896
6897
6898 case ${enable_serial_configure} in
6899   yes)
6900     enable_serial_build_configure=yes
6901     enable_serial_host_configure=yes
6902     enable_serial_target_configure=yes
6903     ;;
6904 esac
6905
6906 # These force 'configure's to be done one at a time, to avoid problems
6907 # with contention over a shared config.cache.
6908 rm -f serdep.tmp
6909 echo '# serdep.tmp' > serdep.tmp
6910 olditem=
6911 test "x${enable_serial_build_configure}" = xyes &&
6912 for item in ${build_configdirs} ; do
6913   case ${olditem} in
6914     "") ;;
6915     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6916   esac
6917   olditem=${item}
6918 done
6919 olditem=
6920 test "x${enable_serial_host_configure}" = xyes &&
6921 for item in ${configdirs} ; do
6922   case ${olditem} in
6923     "") ;;
6924     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6925   esac
6926   olditem=${item}
6927 done
6928 olditem=
6929 test "x${enable_serial_target_configure}" = xyes &&
6930 for item in ${target_configdirs} ; do
6931   case ${olditem} in
6932     "") ;;
6933     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6934   esac
6935   olditem=${item}
6936 done
6937 serialization_dependencies=serdep.tmp
6938
6939
6940 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
6941 # target, nonopt, and variable assignments.  These are the ones we
6942 # might not want to pass down to subconfigures.  The exception being
6943 # --cache-file=/dev/null, which is used to turn off the use of cache
6944 # files altogether, and which should be passed on to subconfigures.
6945 # Also strip program-prefix, program-suffix, and program-transform-name,
6946 # so that we can pass down a consistent program-transform-name.
6947 baseargs=
6948 keep_next=no
6949 skip_next=no
6950 eval "set -- $ac_configure_args"
6951 for ac_arg
6952 do
6953   if test X"$skip_next" = X"yes"; then
6954     skip_next=no
6955     continue
6956   fi
6957   if test X"$keep_next" = X"yes"; then
6958     case $ac_arg in
6959       *\'*)
6960         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6961     esac
6962     baseargs="$baseargs '$ac_arg'"
6963     keep_next=no
6964     continue
6965   fi
6966
6967   # Handle separated arguments.  Based on the logic generated by
6968   # autoconf 2.59.
6969   case $ac_arg in
6970     *=* | --config-cache | -C | -disable-* | --disable-* \
6971       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6972       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6973       | -with-* | --with-* | -without-* | --without-* | --x)
6974       separate_arg=no
6975       ;;
6976     -*)
6977       separate_arg=yes
6978       ;;
6979     *)
6980       separate_arg=no
6981       ;;
6982   esac
6983
6984   case "$ac_arg" in
6985     --cache-file=/dev/null | \
6986     -cache-file=/dev/null )
6987       # Handled here to avoid the test to skip args below.
6988       baseargs="$baseargs '$ac_arg'"
6989       # Assert: $separate_arg should always be no.
6990       keep_next=$separate_arg
6991       ;;
6992     --no*)
6993       continue
6994       ;;
6995     --c* | \
6996     --sr* | \
6997     --ho* | \
6998     --bu* | \
6999     --t* | \
7000     --program-* | \
7001     -cache_file* | \
7002     -srcdir* | \
7003     -host* | \
7004     -build* | \
7005     -target* | \
7006     -program-prefix* | \
7007     -program-suffix* | \
7008     -program-transform-name* )
7009       skip_next=$separate_arg
7010       continue
7011       ;;
7012     -*)
7013       # An option.  Add it.
7014       case $ac_arg in
7015         *\'*)
7016           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7017       esac
7018       baseargs="$baseargs '$ac_arg'"
7019       keep_next=$separate_arg
7020       ;;
7021     *)
7022       # Either a variable assignment, or a nonopt (triplet).  Don't
7023       # pass it down; let the Makefile handle this.
7024       continue
7025       ;;
7026   esac
7027 done
7028 # Remove the initial space we just introduced and, as these will be
7029 # expanded by make, quote '$'.
7030 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7031
7032 # Add in --program-transform-name, after --program-prefix and
7033 # --program-suffix have been applied to it.  Autoconf has already
7034 # doubled dollar signs and backslashes in program_transform_name; we want
7035 # the backslashes un-doubled, and then the entire thing wrapped in single
7036 # quotes, because this will be expanded first by make and then by the shell.
7037 # Also, because we want to override the logic in subdir configure scripts to
7038 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7039 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7040 ${program_transform_name}
7041 EOF_SED
7042 gcc_transform_name=`cat conftestsed.out`
7043 rm -f conftestsed.out
7044 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7045 if test "$silent" = yes; then
7046   baseargs="$baseargs --silent"
7047 fi
7048 baseargs="$baseargs --disable-option-checking"
7049
7050 # Record and document user additions to sub configure arguments.
7051
7052
7053
7054
7055 # For the build-side libraries, we just need to pretend we're native,
7056 # and not use the same cache file.  Multilibs are neither needed nor
7057 # desired.
7058 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7059
7060 # For host modules, accept cache file option, or specification as blank.
7061 case "${cache_file}" in
7062 "") # empty
7063   cache_file_option="" ;;
7064 /* | [A-Za-z]:[\\/]* ) # absolute path
7065   cache_file_option="--cache-file=${cache_file}" ;;
7066 *) # relative path
7067   cache_file_option="--cache-file=../${cache_file}" ;;
7068 esac
7069
7070 # Host dirs don't like to share a cache file either, horribly enough.
7071 # This seems to be due to autoconf 2.5x stupidity.
7072 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7073
7074 target_configargs="$target_configargs ${baseargs}"
7075
7076 # Passing a --with-cross-host argument lets the target libraries know
7077 # whether they are being built with a cross-compiler or being built
7078 # native.  However, it would be better to use other mechanisms to make the
7079 # sorts of decisions they want to make on this basis.  Please consider
7080 # this option to be deprecated.  FIXME.
7081 if test x${is_cross_compiler} = xyes ; then
7082   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7083 fi
7084
7085 # Default to --enable-multilib.
7086 if test x${enable_multilib} = x ; then
7087   target_configargs="--enable-multilib ${target_configargs}"
7088 fi
7089
7090 # Pass --with-newlib if appropriate.  Note that target_configdirs has
7091 # changed from the earlier setting of with_newlib.
7092 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7093   target_configargs="--with-newlib ${target_configargs}"
7094 fi
7095
7096 # Different target subdirs use different values of certain variables
7097 # (notably CXX).  Worse, multilibs use *lots* of different values.
7098 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7099 # it doesn't automatically accept command-line overrides of them.
7100 # This means it's not safe for target subdirs to share a cache file,
7101 # which is disgusting, but there you have it.  Hopefully this can be
7102 # fixed in future.  It's still worthwhile to use a cache file for each
7103 # directory.  I think.
7104
7105 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7106 # We need to pass --target, as newer autoconf's requires consistency
7107 # for target_alias and gcc doesn't manage it consistently.
7108 target_configargs="--cache-file=./config.cache ${target_configargs}"
7109
7110 FLAGS_FOR_TARGET=
7111 case " $target_configdirs " in
7112  *" newlib "*)
7113   case " $target_configargs " in
7114   *" --with-newlib "*)
7115    case "$target" in
7116     *-cygwin*)
7117       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'
7118       ;;
7119    esac
7120
7121    # If we're not building GCC, don't discard standard headers.
7122    if test -d ${srcdir}/gcc; then
7123      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7124
7125      if test "${build}" != "${host}"; then
7126        # On Canadian crosses, CC_FOR_TARGET will have already been set
7127        # by `configure', so we won't have an opportunity to add -Bgcc/
7128        # to it.  This is right: we don't want to search that directory
7129        # for binaries, but we want the header files in there, so add
7130        # them explicitly.
7131        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7132
7133        # Someone might think of using the pre-installed headers on
7134        # Canadian crosses, in case the installed compiler is not fully
7135        # compatible with the compiler being built.  In this case, it
7136        # would be better to flag an error than risking having
7137        # incompatible object files being constructed.  We can't
7138        # guarantee that an error will be flagged, but let's hope the
7139        # compiler will do it, when presented with incompatible header
7140        # files.
7141      fi
7142    fi
7143
7144    case "${target}-${is_cross_compiler}" in
7145    i[3456789]86-*-linux*-no)
7146       # Here host == target, so we don't need to build gcc,
7147       # so we don't want to discard standard headers.
7148       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7149       ;;
7150    *)
7151       # If we're building newlib, use its generic headers last, but search
7152       # for any libc-related directories first (so make it the last -B
7153       # switch).
7154       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7155
7156       # If we're building libgloss, find the startup file, simulator library
7157       # and linker script.
7158       case " $target_configdirs " in
7159         *" libgloss "*)
7160         # Look for startup file, simulator library and maybe linker script.
7161         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7162         # Look for libnosys.a in case the target needs it.
7163         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7164         # Most targets have the linker script in the source directory.
7165         FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7166         ;;
7167       esac
7168       ;;
7169    esac
7170    ;;
7171   esac
7172   ;;
7173 esac
7174
7175 case "$target" in
7176   x86_64-*mingw* | *-w64-mingw*)
7177   # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7178   # however, use a symlink named 'mingw' in ${prefix} .
7179     FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7180     ;;
7181   *-mingw*)
7182   # MinGW can't be handled as Cygwin above since it does not use newlib.
7183     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'
7184     ;;
7185 esac
7186
7187 # Allow the user to override the flags for
7188 # our build compiler if desired.
7189 if test x"${build}" = x"${host}" ; then
7190   CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7191   CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7192   LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7193 fi
7194
7195 # On Canadian crosses, we'll be searching the right directories for
7196 # the previously-installed cross compiler, so don't bother to add
7197 # flags for directories within the install tree of the compiler
7198 # being built; programs in there won't even run.
7199 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7200   # Search for pre-installed headers if nothing else fits.
7201   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7202 fi
7203
7204 if test "x${use_gnu_ld}" = x &&
7205    echo " ${configdirs} " | grep " ld " > /dev/null ; then
7206   # Arrange for us to find uninstalled linker scripts.
7207   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7208 fi
7209
7210 # Search for other target-specific linker scripts and such.
7211 case "${target}" in
7212   mep*)
7213     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7214     ;;
7215 esac
7216
7217 # Makefile fragments.
7218 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7219 do
7220   eval fragval=\$$frag
7221   if test $fragval != /dev/null; then
7222     eval $frag=${srcdir}/$fragval
7223   fi
7224 done
7225
7226
7227
7228
7229
7230 # Miscellanea: directories, flags, etc.
7231
7232
7233
7234
7235
7236
7237
7238
7239 # Build module lists & subconfigure args.
7240
7241
7242
7243 # Host module lists & subconfigure args.
7244
7245
7246
7247
7248 # Target module lists & subconfigure args.
7249
7250
7251
7252 # Build tools.
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 # Generate default definitions for YACC, M4, LEX and other programs that run
7271 # on the build machine.  These are used if the Makefile can't locate these
7272 # programs in objdir.
7273 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7274
7275 for ac_prog in 'bison -y' byacc yacc
7276 do
7277   # Extract the first word of "$ac_prog", so it can be a program name with args.
7278 set dummy $ac_prog; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_YACC+set}" = set; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if test -n "$YACC"; then
7285   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_exec_ext in '' $ac_executable_extensions; do
7293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294     ac_cv_prog_YACC="$ac_prog"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299   done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 YACC=$ac_cv_prog_YACC
7305 if test -n "$YACC"; then
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7307 $as_echo "$YACC" >&6; }
7308 else
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314   test -n "$YACC" && break
7315 done
7316 test -n "$YACC" || YACC="$MISSING bison -y"
7317
7318 case " $build_configdirs " in
7319   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7320   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7321 esac
7322
7323 for ac_prog in bison
7324 do
7325   # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_BISON+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$BISON"; then
7333   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_prog_BISON="$ac_prog"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 BISON=$ac_cv_prog_BISON
7353 if test -n "$BISON"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7355 $as_echo "$BISON" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362   test -n "$BISON" && break
7363 done
7364 test -n "$BISON" || BISON="$MISSING bison"
7365
7366 case " $build_configdirs " in
7367   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7368 esac
7369
7370 for ac_prog in gm4 gnum4 m4
7371 do
7372   # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_M4+set}" = set; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$M4"; then
7380   ac_cv_prog_M4="$M4" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387     for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_M4="$ac_prog"
7390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394   done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 M4=$ac_cv_prog_M4
7400 if test -n "$M4"; then
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7402 $as_echo "$M4" >&6; }
7403 else
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409   test -n "$M4" && break
7410 done
7411 test -n "$M4" || M4="$MISSING m4"
7412
7413 case " $build_configdirs " in
7414   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7415 esac
7416
7417 for ac_prog in flex lex
7418 do
7419   # Extract the first word of "$ac_prog", so it can be a program name with args.
7420 set dummy $ac_prog; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_LEX+set}" = set; then :
7424   $as_echo_n "(cached) " >&6
7425 else
7426   if test -n "$LEX"; then
7427   ac_cv_prog_LEX="$LEX" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434     for ac_exec_ext in '' $ac_executable_extensions; do
7435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436     ac_cv_prog_LEX="$ac_prog"
7437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438     break 2
7439   fi
7440 done
7441   done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 LEX=$ac_cv_prog_LEX
7447 if test -n "$LEX"; then
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7449 $as_echo "$LEX" >&6; }
7450 else
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456   test -n "$LEX" && break
7457 done
7458 test -n "$LEX" || LEX="$MISSING flex"
7459
7460 case " $build_configdirs " in
7461   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7462   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7463 esac
7464
7465 for ac_prog in flex
7466 do
7467   # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_FLEX+set}" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   if test -n "$FLEX"; then
7475   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480   IFS=$as_save_IFS
7481   test -z "$as_dir" && as_dir=.
7482     for ac_exec_ext in '' $ac_executable_extensions; do
7483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484     ac_cv_prog_FLEX="$ac_prog"
7485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486     break 2
7487   fi
7488 done
7489   done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 FLEX=$ac_cv_prog_FLEX
7495 if test -n "$FLEX"; then
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7497 $as_echo "$FLEX" >&6; }
7498 else
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504   test -n "$FLEX" && break
7505 done
7506 test -n "$FLEX" || FLEX="$MISSING flex"
7507
7508 case " $build_configdirs " in
7509   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7510 esac
7511
7512 for ac_prog in makeinfo
7513 do
7514   # Extract the first word of "$ac_prog", so it can be a program name with args.
7515 set dummy $ac_prog; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$MAKEINFO"; then
7522   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_MAKEINFO="$ac_prog"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 MAKEINFO=$ac_cv_prog_MAKEINFO
7542 if test -n "$MAKEINFO"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7544 $as_echo "$MAKEINFO" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551   test -n "$MAKEINFO" && break
7552 done
7553 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7554
7555 case " $build_configdirs " in
7556   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7557   *)
7558
7559     # For an installed makeinfo, we require it to be from texinfo 4.7 or
7560     # higher, else we use the "missing" dummy.
7561     if ${MAKEINFO} --version \
7562        | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7563       :
7564     else
7565       MAKEINFO="$MISSING makeinfo"
7566     fi
7567     ;;
7568
7569 esac
7570
7571 # FIXME: expect and dejagnu may become build tools?
7572
7573 for ac_prog in expect
7574 do
7575   # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy $ac_prog; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7580   $as_echo_n "(cached) " >&6
7581 else
7582   if test -n "$EXPECT"; then
7583   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590     for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_prog_EXPECT="$ac_prog"
7593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597   done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 EXPECT=$ac_cv_prog_EXPECT
7603 if test -n "$EXPECT"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7605 $as_echo "$EXPECT" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612   test -n "$EXPECT" && break
7613 done
7614 test -n "$EXPECT" || EXPECT="expect"
7615
7616 case " $configdirs " in
7617   *" expect "*)
7618     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7619     ;;
7620 esac
7621
7622 for ac_prog in runtest
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$RUNTEST"; then
7632   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_prog_RUNTEST="$ac_prog"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 RUNTEST=$ac_cv_prog_RUNTEST
7652 if test -n "$RUNTEST"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7654 $as_echo "$RUNTEST" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660
7661   test -n "$RUNTEST" && break
7662 done
7663 test -n "$RUNTEST" || RUNTEST="runtest"
7664
7665 case " $configdirs " in
7666   *" dejagnu "*)
7667     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7668     ;;
7669 esac
7670
7671
7672 # Host tools.
7673 ncn_tool_prefix=
7674 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7675 ncn_target_tool_prefix=
7676 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7677
7678
7679
7680 if test -n "$AR"; then
7681   ac_cv_prog_AR=$AR
7682 elif test -n "$ac_cv_prog_AR"; then
7683   AR=$ac_cv_prog_AR
7684 fi
7685
7686 if test -n "$ac_cv_prog_AR"; then
7687   for ncn_progname in ar; do
7688     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7689 set dummy ${ncn_progname}; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if test "${ac_cv_prog_AR+set}" = set; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$AR"; then
7696   ac_cv_prog_AR="$AR" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705     ac_cv_prog_AR="${ncn_progname}"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 AR=$ac_cv_prog_AR
7716 if test -n "$AR"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7718 $as_echo "$AR" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725   done
7726 fi
7727
7728 for ncn_progname in ar; do
7729   if test -n "$ncn_tool_prefix"; then
7730     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7731 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_AR+set}" = set; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$AR"; then
7738   ac_cv_prog_AR="$AR" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752   done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 AR=$ac_cv_prog_AR
7758 if test -n "$AR"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7760 $as_echo "$AR" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767   fi
7768   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7769     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7770 set dummy ${ncn_progname}; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_AR+set}" = set; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$AR"; then
7777   ac_cv_prog_AR="$AR" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786     ac_cv_prog_AR="${ncn_progname}"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 AR=$ac_cv_prog_AR
7797 if test -n "$AR"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7799 $as_echo "$AR" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806   fi
7807   test -n "$ac_cv_prog_AR" && break
7808 done
7809
7810 if test -z "$ac_cv_prog_AR" ; then
7811   set dummy ar
7812   if test $build = $host ; then
7813     AR="$2"
7814   else
7815     AR="${ncn_tool_prefix}$2"
7816   fi
7817 fi
7818
7819
7820
7821 if test -n "$AS"; then
7822   ac_cv_prog_AS=$AS
7823 elif test -n "$ac_cv_prog_AS"; then
7824   AS=$ac_cv_prog_AS
7825 fi
7826
7827 if test -n "$ac_cv_prog_AS"; then
7828   for ncn_progname in as; do
7829     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7830 set dummy ${ncn_progname}; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if test "${ac_cv_prog_AS+set}" = set; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   if test -n "$AS"; then
7837   ac_cv_prog_AS="$AS" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844     for ac_exec_ext in '' $ac_executable_extensions; do
7845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846     ac_cv_prog_AS="${ncn_progname}"
7847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851   done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 AS=$ac_cv_prog_AS
7857 if test -n "$AS"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7859 $as_echo "$AS" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866   done
7867 fi
7868
7869 for ncn_progname in as; do
7870   if test -n "$ncn_tool_prefix"; then
7871     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7872 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_AS+set}" = set; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   if test -n "$AS"; then
7879   ac_cv_prog_AS="$AS" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 AS=$ac_cv_prog_AS
7899 if test -n "$AS"; then
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7901 $as_echo "$AS" >&6; }
7902 else
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907
7908   fi
7909   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7910     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911 set dummy ${ncn_progname}; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if test "${ac_cv_prog_AS+set}" = set; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$AS"; then
7918   ac_cv_prog_AS="$AS" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_AS="${ncn_progname}"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 AS=$ac_cv_prog_AS
7938 if test -n "$AS"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7940 $as_echo "$AS" >&6; }
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947   fi
7948   test -n "$ac_cv_prog_AS" && break
7949 done
7950
7951 if test -z "$ac_cv_prog_AS" ; then
7952   set dummy as
7953   if test $build = $host ; then
7954     AS="$2"
7955   else
7956     AS="${ncn_tool_prefix}$2"
7957   fi
7958 fi
7959
7960
7961
7962 if test -n "$DLLTOOL"; then
7963   ac_cv_prog_DLLTOOL=$DLLTOOL
7964 elif test -n "$ac_cv_prog_DLLTOOL"; then
7965   DLLTOOL=$ac_cv_prog_DLLTOOL
7966 fi
7967
7968 if test -n "$ac_cv_prog_DLLTOOL"; then
7969   for ncn_progname in dlltool; 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_DLLTOOL+set}" = set; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   if test -n "$DLLTOOL"; then
7978   ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 DLLTOOL=$ac_cv_prog_DLLTOOL
7998 if test -n "$DLLTOOL"; then
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8000 $as_echo "$DLLTOOL" >&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 dlltool; 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_DLLTOOL+set}" = set; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   if test -n "$DLLTOOL"; then
8020   ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 DLLTOOL=$ac_cv_prog_DLLTOOL
8040 if test -n "$DLLTOOL"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8042 $as_echo "$DLLTOOL" >&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_DLLTOOL" && 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_DLLTOOL+set}" = set; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   if test -n "$DLLTOOL"; then
8059   ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 DLLTOOL=$ac_cv_prog_DLLTOOL
8079 if test -n "$DLLTOOL"; then
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8081 $as_echo "$DLLTOOL" >&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_DLLTOOL" && break
8090 done
8091
8092 if test -z "$ac_cv_prog_DLLTOOL" ; then
8093   set dummy dlltool
8094   if test $build = $host ; then
8095     DLLTOOL="$2"
8096   else
8097     DLLTOOL="${ncn_tool_prefix}$2"
8098   fi
8099 fi
8100
8101
8102
8103 if test -n "$LD"; then
8104   ac_cv_prog_LD=$LD
8105 elif test -n "$ac_cv_prog_LD"; then
8106   LD=$ac_cv_prog_LD
8107 fi
8108
8109 if test -n "$ac_cv_prog_LD"; then
8110   for ncn_progname in ld; 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_LD+set}" = set; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$LD"; then
8119   ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
8139 if test -n "$LD"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8141 $as_echo "$LD" >&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 ld; 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_LD+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   if test -n "$LD"; then
8161   ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
8181 if test -n "$LD"; then
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8183 $as_echo "$LD" >&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_LD" && 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_LD+set}" = set; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   if test -n "$LD"; then
8200   ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
8220 if test -n "$LD"; then
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8222 $as_echo "$LD" >&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_LD" && break
8231 done
8232
8233 if test -z "$ac_cv_prog_LD" ; then
8234   set dummy ld
8235   if test $build = $host ; then
8236     LD="$2"
8237   else
8238     LD="${ncn_tool_prefix}$2"
8239   fi
8240 fi
8241
8242
8243
8244 if test -n "$LIPO"; then
8245   ac_cv_prog_LIPO=$LIPO
8246 elif test -n "$ac_cv_prog_LIPO"; then
8247   LIPO=$ac_cv_prog_LIPO
8248 fi
8249
8250 if test -n "$ac_cv_prog_LIPO"; then
8251   for ncn_progname in lipo; 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_LIPO+set}" = set; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   if test -n "$LIPO"; then
8260   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
8280 if test -n "$LIPO"; then
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8282 $as_echo "$LIPO" >&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 lipo; 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_LIPO+set}" = set; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$LIPO"; then
8302   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
8322 if test -n "$LIPO"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8324 $as_echo "$LIPO" >&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_LIPO" && 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_LIPO+set}" = set; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$LIPO"; then
8341   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
8361 if test -n "$LIPO"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8363 $as_echo "$LIPO" >&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_LIPO" && break
8372 done
8373
8374 if test -z "$ac_cv_prog_LIPO" ; then
8375   set dummy lipo
8376   if test $build = $host ; then
8377     LIPO="$2"
8378   else
8379     LIPO="${ncn_tool_prefix}$2"
8380   fi
8381 fi
8382
8383
8384
8385 if test -n "$NM"; then
8386   ac_cv_prog_NM=$NM
8387 elif test -n "$ac_cv_prog_NM"; then
8388   NM=$ac_cv_prog_NM
8389 fi
8390
8391 if test -n "$ac_cv_prog_NM"; then
8392   for ncn_progname in nm; 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_NM+set}" = set; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   if test -n "$NM"; then
8401   ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
8421 if test -n "$NM"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8423 $as_echo "$NM" >&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 nm; 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_NM+set}" = set; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   if test -n "$NM"; then
8443   ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
8463 if test -n "$NM"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8465 $as_echo "$NM" >&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_NM" && 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_NM+set}" = set; then :
8479   $as_echo_n "(cached) " >&6
8480 else
8481   if test -n "$NM"; then
8482   ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
8502 if test -n "$NM"; then
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8504 $as_echo "$NM" >&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_NM" && break
8513 done
8514
8515 if test -z "$ac_cv_prog_NM" ; then
8516   set dummy nm
8517   if test $build = $host ; then
8518     NM="$2"
8519   else
8520     NM="${ncn_tool_prefix}$2"
8521   fi
8522 fi
8523
8524
8525
8526 if test -n "$RANLIB"; then
8527   ac_cv_prog_RANLIB=$RANLIB
8528 elif test -n "$ac_cv_prog_RANLIB"; then
8529   RANLIB=$ac_cv_prog_RANLIB
8530 fi
8531
8532 if test -n "$ac_cv_prog_RANLIB"; then
8533   for ncn_progname in ranlib; 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_RANLIB+set}" = set; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   if test -n "$RANLIB"; then
8542   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
8562 if test -n "$RANLIB"; then
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8564 $as_echo "$RANLIB" >&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 ranlib; 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_RANLIB+set}" = set; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583   if test -n "$RANLIB"; then
8584   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
8604 if test -n "$RANLIB"; then
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8606 $as_echo "$RANLIB" >&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_RANLIB" && 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_RANLIB+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   if test -n "$RANLIB"; then
8623   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
8643 if test -n "$RANLIB"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8645 $as_echo "$RANLIB" >&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_RANLIB" && break
8654 done
8655
8656 if test -z "$ac_cv_prog_RANLIB" ; then
8657   RANLIB="true"
8658 fi
8659
8660
8661
8662 if test -n "$STRIP"; then
8663   ac_cv_prog_STRIP=$STRIP
8664 elif test -n "$ac_cv_prog_STRIP"; then
8665   STRIP=$ac_cv_prog_STRIP
8666 fi
8667
8668 if test -n "$ac_cv_prog_STRIP"; then
8669   for ncn_progname in strip; do
8670     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671 set dummy ${ncn_progname}; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_STRIP+set}" = set; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   if test -n "$STRIP"; then
8678   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8682 do
8683   IFS=$as_save_IFS
8684   test -z "$as_dir" && as_dir=.
8685     for ac_exec_ext in '' $ac_executable_extensions; do
8686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687     ac_cv_prog_STRIP="${ncn_progname}"
8688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689     break 2
8690   fi
8691 done
8692   done
8693 IFS=$as_save_IFS
8694
8695 fi
8696 fi
8697 STRIP=$ac_cv_prog_STRIP
8698 if test -n "$STRIP"; then
8699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8700 $as_echo "$STRIP" >&6; }
8701 else
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707   done
8708 fi
8709
8710 for ncn_progname in strip; do
8711   if test -n "$ncn_tool_prefix"; then
8712     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8713 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if test "${ac_cv_prog_STRIP+set}" = set; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   if test -n "$STRIP"; then
8720   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734   done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 STRIP=$ac_cv_prog_STRIP
8740 if test -n "$STRIP"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8742 $as_echo "$STRIP" >&6; }
8743 else
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747
8748
8749   fi
8750   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8751     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_STRIP+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   if test -n "$STRIP"; then
8759   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768     ac_cv_prog_STRIP="${ncn_progname}"
8769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 STRIP=$ac_cv_prog_STRIP
8779 if test -n "$STRIP"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8781 $as_echo "$STRIP" >&6; }
8782 else
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788   fi
8789   test -n "$ac_cv_prog_STRIP" && break
8790 done
8791
8792 if test -z "$ac_cv_prog_STRIP" ; then
8793   STRIP="true"
8794 fi
8795
8796
8797
8798 if test -n "$WINDRES"; then
8799   ac_cv_prog_WINDRES=$WINDRES
8800 elif test -n "$ac_cv_prog_WINDRES"; then
8801   WINDRES=$ac_cv_prog_WINDRES
8802 fi
8803
8804 if test -n "$ac_cv_prog_WINDRES"; then
8805   for ncn_progname in windres; do
8806     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8807 set dummy ${ncn_progname}; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   if test -n "$WINDRES"; then
8814   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819   IFS=$as_save_IFS
8820   test -z "$as_dir" && as_dir=.
8821     for ac_exec_ext in '' $ac_executable_extensions; do
8822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823     ac_cv_prog_WINDRES="${ncn_progname}"
8824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825     break 2
8826   fi
8827 done
8828   done
8829 IFS=$as_save_IFS
8830
8831 fi
8832 fi
8833 WINDRES=$ac_cv_prog_WINDRES
8834 if test -n "$WINDRES"; then
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8836 $as_echo "$WINDRES" >&6; }
8837 else
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842
8843   done
8844 fi
8845
8846 for ncn_progname in windres; do
8847   if test -n "$ncn_tool_prefix"; then
8848     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8849 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   if test -n "$WINDRES"; then
8856   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8857 else
8858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859 for as_dir in $PATH
8860 do
8861   IFS=$as_save_IFS
8862   test -z "$as_dir" && as_dir=.
8863     for ac_exec_ext in '' $ac_executable_extensions; do
8864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8865     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867     break 2
8868   fi
8869 done
8870   done
8871 IFS=$as_save_IFS
8872
8873 fi
8874 fi
8875 WINDRES=$ac_cv_prog_WINDRES
8876 if test -n "$WINDRES"; then
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8878 $as_echo "$WINDRES" >&6; }
8879 else
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8882 fi
8883
8884
8885   fi
8886   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8887     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8888 set dummy ${ncn_progname}; ac_word=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8892   $as_echo_n "(cached) " >&6
8893 else
8894   if test -n "$WINDRES"; then
8895   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900   IFS=$as_save_IFS
8901   test -z "$as_dir" && as_dir=.
8902     for ac_exec_ext in '' $ac_executable_extensions; do
8903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8904     ac_cv_prog_WINDRES="${ncn_progname}"
8905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906     break 2
8907   fi
8908 done
8909   done
8910 IFS=$as_save_IFS
8911
8912 fi
8913 fi
8914 WINDRES=$ac_cv_prog_WINDRES
8915 if test -n "$WINDRES"; then
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8917 $as_echo "$WINDRES" >&6; }
8918 else
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 fi
8922
8923
8924   fi
8925   test -n "$ac_cv_prog_WINDRES" && break
8926 done
8927
8928 if test -z "$ac_cv_prog_WINDRES" ; then
8929   set dummy windres
8930   if test $build = $host ; then
8931     WINDRES="$2"
8932   else
8933     WINDRES="${ncn_tool_prefix}$2"
8934   fi
8935 fi
8936
8937
8938
8939 if test -n "$WINDMC"; then
8940   ac_cv_prog_WINDMC=$WINDMC
8941 elif test -n "$ac_cv_prog_WINDMC"; then
8942   WINDMC=$ac_cv_prog_WINDMC
8943 fi
8944
8945 if test -n "$ac_cv_prog_WINDMC"; then
8946   for ncn_progname in windmc; do
8947     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948 set dummy ${ncn_progname}; ac_word=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   if test -n "$WINDMC"; then
8955   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8956 else
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958 for as_dir in $PATH
8959 do
8960   IFS=$as_save_IFS
8961   test -z "$as_dir" && as_dir=.
8962     for ac_exec_ext in '' $ac_executable_extensions; do
8963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8964     ac_cv_prog_WINDMC="${ncn_progname}"
8965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966     break 2
8967   fi
8968 done
8969   done
8970 IFS=$as_save_IFS
8971
8972 fi
8973 fi
8974 WINDMC=$ac_cv_prog_WINDMC
8975 if test -n "$WINDMC"; then
8976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8977 $as_echo "$WINDMC" >&6; }
8978 else
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981 fi
8982
8983
8984   done
8985 fi
8986
8987 for ncn_progname in windmc; do
8988   if test -n "$ncn_tool_prefix"; then
8989     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8990 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   if test -n "$WINDMC"; then
8997   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8998 else
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9001 do
9002   IFS=$as_save_IFS
9003   test -z "$as_dir" && as_dir=.
9004     for ac_exec_ext in '' $ac_executable_extensions; do
9005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006     ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008     break 2
9009   fi
9010 done
9011   done
9012 IFS=$as_save_IFS
9013
9014 fi
9015 fi
9016 WINDMC=$ac_cv_prog_WINDMC
9017 if test -n "$WINDMC"; then
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9019 $as_echo "$WINDMC" >&6; }
9020 else
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025
9026   fi
9027   if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9028     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029 set dummy ${ncn_progname}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   if test -n "$WINDMC"; then
9036   ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041   IFS=$as_save_IFS
9042   test -z "$as_dir" && as_dir=.
9043     for ac_exec_ext in '' $ac_executable_extensions; do
9044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045     ac_cv_prog_WINDMC="${ncn_progname}"
9046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047     break 2
9048   fi
9049 done
9050   done
9051 IFS=$as_save_IFS
9052
9053 fi
9054 fi
9055 WINDMC=$ac_cv_prog_WINDMC
9056 if test -n "$WINDMC"; then
9057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9058 $as_echo "$WINDMC" >&6; }
9059 else
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9062 fi
9063
9064
9065   fi
9066   test -n "$ac_cv_prog_WINDMC" && break
9067 done
9068
9069 if test -z "$ac_cv_prog_WINDMC" ; then
9070   set dummy windmc
9071   if test $build = $host ; then
9072     WINDMC="$2"
9073   else
9074     WINDMC="${ncn_tool_prefix}$2"
9075   fi
9076 fi
9077
9078
9079
9080 if test -n "$OBJCOPY"; then
9081   ac_cv_prog_OBJCOPY=$OBJCOPY
9082 elif test -n "$ac_cv_prog_OBJCOPY"; then
9083   OBJCOPY=$ac_cv_prog_OBJCOPY
9084 fi
9085
9086 if test -n "$ac_cv_prog_OBJCOPY"; then
9087   for ncn_progname in objcopy; 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_OBJCOPY+set}" = set; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095   if test -n "$OBJCOPY"; then
9096   ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9116 if test -n "$OBJCOPY"; then
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9118 $as_echo "$OBJCOPY" >&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 objcopy; 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_OBJCOPY+set}" = set; then :
9135   $as_echo_n "(cached) " >&6
9136 else
9137   if test -n "$OBJCOPY"; then
9138   ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9158 if test -n "$OBJCOPY"; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9160 $as_echo "$OBJCOPY" >&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_OBJCOPY" && 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_OBJCOPY+set}" = set; then :
9174   $as_echo_n "(cached) " >&6
9175 else
9176   if test -n "$OBJCOPY"; then
9177   ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9197 if test -n "$OBJCOPY"; then
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9199 $as_echo "$OBJCOPY" >&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_OBJCOPY" && break
9208 done
9209
9210 if test -z "$ac_cv_prog_OBJCOPY" ; then
9211   set dummy objcopy
9212   if test $build = $host ; then
9213     OBJCOPY="$2"
9214   else
9215     OBJCOPY="${ncn_tool_prefix}$2"
9216   fi
9217 fi
9218
9219
9220
9221 if test -n "$OBJDUMP"; then
9222   ac_cv_prog_OBJDUMP=$OBJDUMP
9223 elif test -n "$ac_cv_prog_OBJDUMP"; then
9224   OBJDUMP=$ac_cv_prog_OBJDUMP
9225 fi
9226
9227 if test -n "$ac_cv_prog_OBJDUMP"; then
9228   for ncn_progname in objdump; 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_OBJDUMP+set}" = set; then :
9234   $as_echo_n "(cached) " >&6
9235 else
9236   if test -n "$OBJDUMP"; then
9237   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9257 if test -n "$OBJDUMP"; then
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9259 $as_echo "$OBJDUMP" >&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 objdump; 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_OBJDUMP+set}" = set; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   if test -n "$OBJDUMP"; then
9279   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9299 if test -n "$OBJDUMP"; then
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9301 $as_echo "$OBJDUMP" >&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_OBJDUMP" && 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_OBJDUMP+set}" = set; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   if test -n "$OBJDUMP"; then
9318   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9338 if test -n "$OBJDUMP"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9340 $as_echo "$OBJDUMP" >&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_OBJDUMP" && break
9349 done
9350
9351 if test -z "$ac_cv_prog_OBJDUMP" ; then
9352   set dummy objdump
9353   if test $build = $host ; then
9354     OBJDUMP="$2"
9355   else
9356     OBJDUMP="${ncn_tool_prefix}$2"
9357   fi
9358 fi
9359
9360
9361
9362
9363
9364
9365 # Target tools.
9366
9367 # Check whether --with-build-time-tools was given.
9368 if test "${with_build_time_tools+set}" = set; then :
9369   withval=$with_build_time_tools; case x"$withval" in
9370      x/*) ;;
9371      *)
9372        with_build_time_tools=
9373        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9374 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9375        ;;
9376    esac
9377 else
9378   with_build_time_tools=
9379 fi
9380
9381
9382
9383
9384 if test -n "$CC_FOR_TARGET"; then
9385   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9386 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9387   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9388 fi
9389
9390 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9391   for ncn_progname in cc gcc; do
9392     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393 set dummy ${ncn_progname}; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9397   $as_echo_n "(cached) " >&6
9398 else
9399   if test -n "$CC_FOR_TARGET"; then
9400   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9401 else
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407     for ac_exec_ext in '' $ac_executable_extensions; do
9408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414   done
9415 IFS=$as_save_IFS
9416
9417 fi
9418 fi
9419 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9420 if test -n "$CC_FOR_TARGET"; then
9421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9422 $as_echo "$CC_FOR_TARGET" >&6; }
9423 else
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9426 fi
9427
9428
9429   done
9430 fi
9431
9432 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9433   for ncn_progname in cc gcc; do
9434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9435 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9436     if test -x $with_build_time_tools/${ncn_progname}; then
9437       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9439 $as_echo "yes" >&6; }
9440       break
9441     else
9442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9444     fi
9445   done
9446 fi
9447
9448 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9449   for ncn_progname in cc gcc; do
9450     if test -n "$ncn_target_tool_prefix"; then
9451       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9452 set dummy ${ncn_target_tool_prefix}${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_CC_FOR_TARGET+set}" = set; then :
9456   $as_echo_n "(cached) " >&6
9457 else
9458   if test -n "$CC_FOR_TARGET"; then
9459   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${ncn_target_tool_prefix}${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9479 if test -n "$CC_FOR_TARGET"; then
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9481 $as_echo "$CC_FOR_TARGET" >&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     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9490       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9491 set dummy ${ncn_progname}; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   if test -n "$CC_FOR_TARGET"; then
9498   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503   IFS=$as_save_IFS
9504   test -z "$as_dir" && as_dir=.
9505     for ac_exec_ext in '' $ac_executable_extensions; do
9506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509     break 2
9510   fi
9511 done
9512   done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9518 if test -n "$CC_FOR_TARGET"; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9520 $as_echo "$CC_FOR_TARGET" >&6; }
9521 else
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526
9527     fi
9528     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9529   done
9530 fi
9531
9532 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9533   set dummy cc gcc
9534   if test $build = $target ; then
9535     CC_FOR_TARGET="$2"
9536   else
9537     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9538   fi
9539 else
9540   CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9541 fi
9542
9543
9544
9545 if test -n "$CXX_FOR_TARGET"; then
9546   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9547 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9548   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9549 fi
9550
9551 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9552   for ncn_progname in c++ g++ cxx gxx; do
9553     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554 set dummy ${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_CXX_FOR_TARGET+set}" = set; then :
9558   $as_echo_n "(cached) " >&6
9559 else
9560   if test -n "$CXX_FOR_TARGET"; then
9561   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9581 if test -n "$CXX_FOR_TARGET"; then
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9583 $as_echo "$CXX_FOR_TARGET" >&6; }
9584 else
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 fi
9588
9589
9590   done
9591 fi
9592
9593 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9594   for ncn_progname in c++ g++ cxx gxx; do
9595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9596 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9597     if test -x $with_build_time_tools/${ncn_progname}; then
9598       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9599       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9600 $as_echo "yes" >&6; }
9601       break
9602     else
9603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9605     fi
9606   done
9607 fi
9608
9609 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9610   for ncn_progname in c++ g++ cxx gxx; do
9611     if test -n "$ncn_target_tool_prefix"; then
9612       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9613 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615 $as_echo_n "checking for $ac_word... " >&6; }
9616 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9617   $as_echo_n "(cached) " >&6
9618 else
9619   if test -n "$CXX_FOR_TARGET"; then
9620   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9621 else
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 for as_dir in $PATH
9624 do
9625   IFS=$as_save_IFS
9626   test -z "$as_dir" && as_dir=.
9627     for ac_exec_ext in '' $ac_executable_extensions; do
9628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9629     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9631     break 2
9632   fi
9633 done
9634   done
9635 IFS=$as_save_IFS
9636
9637 fi
9638 fi
9639 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9640 if test -n "$CXX_FOR_TARGET"; then
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9642 $as_echo "$CXX_FOR_TARGET" >&6; }
9643 else
9644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9646 fi
9647
9648
9649     fi
9650     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9651       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9652 set dummy ${ncn_progname}; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   if test -n "$CXX_FOR_TARGET"; then
9659   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9660 else
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9663 do
9664   IFS=$as_save_IFS
9665   test -z "$as_dir" && as_dir=.
9666     for ac_exec_ext in '' $ac_executable_extensions; do
9667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9668     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670     break 2
9671   fi
9672 done
9673   done
9674 IFS=$as_save_IFS
9675
9676 fi
9677 fi
9678 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9679 if test -n "$CXX_FOR_TARGET"; then
9680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9681 $as_echo "$CXX_FOR_TARGET" >&6; }
9682 else
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9685 fi
9686
9687
9688     fi
9689     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9690   done
9691 fi
9692
9693 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9694   set dummy c++ g++ cxx gxx
9695   if test $build = $target ; then
9696     CXX_FOR_TARGET="$2"
9697   else
9698     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9699   fi
9700 else
9701   CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9702 fi
9703
9704
9705
9706 if test -n "$GCC_FOR_TARGET"; then
9707   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9708 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9709   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9710 fi
9711
9712 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9713   for ncn_progname in gcc; do
9714     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9719   $as_echo_n "(cached) " >&6
9720 else
9721   if test -n "$GCC_FOR_TARGET"; then
9722   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727   IFS=$as_save_IFS
9728   test -z "$as_dir" && as_dir=.
9729     for ac_exec_ext in '' $ac_executable_extensions; do
9730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733     break 2
9734   fi
9735 done
9736   done
9737 IFS=$as_save_IFS
9738
9739 fi
9740 fi
9741 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9742 if test -n "$GCC_FOR_TARGET"; then
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9744 $as_echo "$GCC_FOR_TARGET" >&6; }
9745 else
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751   done
9752 fi
9753
9754 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9755   for ncn_progname in gcc; do
9756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9757 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9758     if test -x $with_build_time_tools/${ncn_progname}; then
9759       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9761 $as_echo "yes" >&6; }
9762       break
9763     else
9764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766     fi
9767   done
9768 fi
9769
9770 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9771   for ncn_progname in gcc; do
9772     if test -n "$ncn_target_tool_prefix"; then
9773       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9774 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9778   $as_echo_n "(cached) " >&6
9779 else
9780   if test -n "$GCC_FOR_TARGET"; then
9781   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786   IFS=$as_save_IFS
9787   test -z "$as_dir" && as_dir=.
9788     for ac_exec_ext in '' $ac_executable_extensions; do
9789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792     break 2
9793   fi
9794 done
9795   done
9796 IFS=$as_save_IFS
9797
9798 fi
9799 fi
9800 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9801 if test -n "$GCC_FOR_TARGET"; then
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9803 $as_echo "$GCC_FOR_TARGET" >&6; }
9804 else
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9807 fi
9808
9809
9810     fi
9811     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9812       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813 set dummy ${ncn_progname}; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   if test -n "$GCC_FOR_TARGET"; then
9820   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825   IFS=$as_save_IFS
9826   test -z "$as_dir" && as_dir=.
9827     for ac_exec_ext in '' $ac_executable_extensions; do
9828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831     break 2
9832   fi
9833 done
9834   done
9835 IFS=$as_save_IFS
9836
9837 fi
9838 fi
9839 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9840 if test -n "$GCC_FOR_TARGET"; then
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9842 $as_echo "$GCC_FOR_TARGET" >&6; }
9843 else
9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847
9848
9849     fi
9850     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9851   done
9852 fi
9853
9854 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9855   GCC_FOR_TARGET="${CC_FOR_TARGET}"
9856 else
9857   GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9858 fi
9859
9860
9861
9862 if test -n "$GCJ_FOR_TARGET"; then
9863   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9864 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9865   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9866 fi
9867
9868 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9869   for ncn_progname in gcj; do
9870     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9871 set dummy ${ncn_progname}; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   if test -n "$GCJ_FOR_TARGET"; then
9878   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885     for ac_exec_ext in '' $ac_executable_extensions; do
9886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9887     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892   done
9893 IFS=$as_save_IFS
9894
9895 fi
9896 fi
9897 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9898 if test -n "$GCJ_FOR_TARGET"; then
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9900 $as_echo "$GCJ_FOR_TARGET" >&6; }
9901 else
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9904 fi
9905
9906
9907   done
9908 fi
9909
9910 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9911   for ncn_progname in gcj; do
9912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9913 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9914     if test -x $with_build_time_tools/${ncn_progname}; then
9915       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9917 $as_echo "yes" >&6; }
9918       break
9919     else
9920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922     fi
9923   done
9924 fi
9925
9926 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9927   for ncn_progname in gcj; do
9928     if test -n "$ncn_target_tool_prefix"; then
9929       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9930 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9934   $as_echo_n "(cached) " >&6
9935 else
9936   if test -n "$GCJ_FOR_TARGET"; then
9937   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942   IFS=$as_save_IFS
9943   test -z "$as_dir" && as_dir=.
9944     for ac_exec_ext in '' $ac_executable_extensions; do
9945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948     break 2
9949   fi
9950 done
9951   done
9952 IFS=$as_save_IFS
9953
9954 fi
9955 fi
9956 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9957 if test -n "$GCJ_FOR_TARGET"; then
9958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9959 $as_echo "$GCJ_FOR_TARGET" >&6; }
9960 else
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9963 fi
9964
9965
9966     fi
9967     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9968       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9969 set dummy ${ncn_progname}; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   if test -n "$GCJ_FOR_TARGET"; then
9976   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9977 else
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9980 do
9981   IFS=$as_save_IFS
9982   test -z "$as_dir" && as_dir=.
9983     for ac_exec_ext in '' $ac_executable_extensions; do
9984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987     break 2
9988   fi
9989 done
9990   done
9991 IFS=$as_save_IFS
9992
9993 fi
9994 fi
9995 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9996 if test -n "$GCJ_FOR_TARGET"; then
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9998 $as_echo "$GCJ_FOR_TARGET" >&6; }
9999 else
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 fi
10003
10004
10005     fi
10006     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10007   done
10008 fi
10009
10010 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10011   set dummy gcj
10012   if test $build = $target ; then
10013     GCJ_FOR_TARGET="$2"
10014   else
10015     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10016   fi
10017 else
10018   GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10019 fi
10020
10021
10022
10023 if test -n "$GFORTRAN_FOR_TARGET"; then
10024   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10025 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10026   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10027 fi
10028
10029 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10030   for ncn_progname in gfortran; do
10031     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10032 set dummy ${ncn_progname}; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   if test -n "$GFORTRAN_FOR_TARGET"; then
10039   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10043 do
10044   IFS=$as_save_IFS
10045   test -z "$as_dir" && as_dir=.
10046     for ac_exec_ext in '' $ac_executable_extensions; do
10047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10048     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050     break 2
10051   fi
10052 done
10053   done
10054 IFS=$as_save_IFS
10055
10056 fi
10057 fi
10058 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10059 if test -n "$GFORTRAN_FOR_TARGET"; then
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10061 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10062 else
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10065 fi
10066
10067
10068   done
10069 fi
10070
10071 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10072   for ncn_progname in gfortran; do
10073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10074 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10075     if test -x $with_build_time_tools/${ncn_progname}; then
10076       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10078 $as_echo "yes" >&6; }
10079       break
10080     else
10081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083     fi
10084   done
10085 fi
10086
10087 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10088   for ncn_progname in gfortran; do
10089     if test -n "$ncn_target_tool_prefix"; then
10090       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10095   $as_echo_n "(cached) " >&6
10096 else
10097   if test -n "$GFORTRAN_FOR_TARGET"; then
10098   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10099 else
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10102 do
10103   IFS=$as_save_IFS
10104   test -z "$as_dir" && as_dir=.
10105     for ac_exec_ext in '' $ac_executable_extensions; do
10106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10107     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109     break 2
10110   fi
10111 done
10112   done
10113 IFS=$as_save_IFS
10114
10115 fi
10116 fi
10117 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10118 if test -n "$GFORTRAN_FOR_TARGET"; then
10119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10120 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10121 else
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10124 fi
10125
10126
10127     fi
10128     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10129       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130 set dummy ${ncn_progname}; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10134   $as_echo_n "(cached) " >&6
10135 else
10136   if test -n "$GFORTRAN_FOR_TARGET"; then
10137   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142   IFS=$as_save_IFS
10143   test -z "$as_dir" && as_dir=.
10144     for ac_exec_ext in '' $ac_executable_extensions; do
10145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10148     break 2
10149   fi
10150 done
10151   done
10152 IFS=$as_save_IFS
10153
10154 fi
10155 fi
10156 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10157 if test -n "$GFORTRAN_FOR_TARGET"; then
10158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10159 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10160 else
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10163 fi
10164
10165
10166     fi
10167     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10168   done
10169 fi
10170
10171 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10172   set dummy gfortran
10173   if test $build = $target ; then
10174     GFORTRAN_FOR_TARGET="$2"
10175   else
10176     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10177   fi
10178 else
10179   GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10180 fi
10181
10182
10183
10184 cat > conftest.c << \EOF
10185 #ifdef __GNUC__
10186   gcc_yay;
10187 #endif
10188 EOF
10189 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10190   have_gcc_for_target=yes
10191 else
10192   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10193   have_gcc_for_target=no
10194 fi
10195 rm conftest.c
10196
10197
10198
10199
10200 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10201   if test -n "$with_build_time_tools"; then
10202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10203 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10204     if test -x $with_build_time_tools/ar; then
10205       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10206       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10207       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10208 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10209     else
10210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212     fi
10213   elif test $build != $host && test $have_gcc_for_target = yes; then
10214     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10215     test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10216     test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10217   fi
10218 fi
10219 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10220   # Extract the first word of "ar", so it can be a program name with args.
10221 set dummy ar; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   case $AR_FOR_TARGET in
10228   [\\/]* | ?:[\\/]*)
10229   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10230   ;;
10231   *)
10232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $gcc_cv_tool_dirs
10234 do
10235   IFS=$as_save_IFS
10236   test -z "$as_dir" && as_dir=.
10237     for ac_exec_ext in '' $ac_executable_extensions; do
10238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241     break 2
10242   fi
10243 done
10244   done
10245 IFS=$as_save_IFS
10246
10247   ;;
10248 esac
10249 fi
10250 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10251 if test -n "$AR_FOR_TARGET"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10253 $as_echo "$AR_FOR_TARGET" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259
10260 fi
10261 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10262
10263
10264 if test -n "$AR_FOR_TARGET"; then
10265   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10266 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10267   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10268 fi
10269
10270 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10271   for ncn_progname in ar; do
10272     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   if test -n "$AR_FOR_TARGET"; then
10280   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285   IFS=$as_save_IFS
10286   test -z "$as_dir" && as_dir=.
10287     for ac_exec_ext in '' $ac_executable_extensions; do
10288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291     break 2
10292   fi
10293 done
10294   done
10295 IFS=$as_save_IFS
10296
10297 fi
10298 fi
10299 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10300 if test -n "$AR_FOR_TARGET"; then
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10302 $as_echo "$AR_FOR_TARGET" >&6; }
10303 else
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307
10308
10309   done
10310 fi
10311
10312 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10313   for ncn_progname in ar; do
10314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10316     if test -x $with_build_time_tools/${ncn_progname}; then
10317       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319 $as_echo "yes" >&6; }
10320       break
10321     else
10322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10324     fi
10325   done
10326 fi
10327
10328 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10329   for ncn_progname in ar; do
10330     if test -n "$ncn_target_tool_prefix"; then
10331       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10332 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10336   $as_echo_n "(cached) " >&6
10337 else
10338   if test -n "$AR_FOR_TARGET"; then
10339   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10340 else
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344   IFS=$as_save_IFS
10345   test -z "$as_dir" && as_dir=.
10346     for ac_exec_ext in '' $ac_executable_extensions; do
10347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350     break 2
10351   fi
10352 done
10353   done
10354 IFS=$as_save_IFS
10355
10356 fi
10357 fi
10358 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10359 if test -n "$AR_FOR_TARGET"; then
10360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10361 $as_echo "$AR_FOR_TARGET" >&6; }
10362 else
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10365 fi
10366
10367
10368     fi
10369     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10370       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10371 set dummy ${ncn_progname}; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10375   $as_echo_n "(cached) " >&6
10376 else
10377   if test -n "$AR_FOR_TARGET"; then
10378   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10382 do
10383   IFS=$as_save_IFS
10384   test -z "$as_dir" && as_dir=.
10385     for ac_exec_ext in '' $ac_executable_extensions; do
10386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389     break 2
10390   fi
10391 done
10392   done
10393 IFS=$as_save_IFS
10394
10395 fi
10396 fi
10397 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10398 if test -n "$AR_FOR_TARGET"; then
10399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10400 $as_echo "$AR_FOR_TARGET" >&6; }
10401 else
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10404 fi
10405
10406
10407     fi
10408     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10409   done
10410 fi
10411
10412 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10413   set dummy ar
10414   if test $build = $target ; then
10415     AR_FOR_TARGET="$2"
10416   else
10417     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10418   fi
10419 else
10420   AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10421 fi
10422
10423 else
10424   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10425 fi
10426
10427
10428
10429
10430 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10431   if test -n "$with_build_time_tools"; then
10432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10433 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10434     if test -x $with_build_time_tools/as; then
10435       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10436       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10437       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10438 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10439     else
10440       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442     fi
10443   elif test $build != $host && test $have_gcc_for_target = yes; then
10444     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10445     test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10446     test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10447   fi
10448 fi
10449 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10450   # Extract the first word of "as", so it can be a program name with args.
10451 set dummy as; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   case $AS_FOR_TARGET in
10458   [\\/]* | ?:[\\/]*)
10459   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10460   ;;
10461   *)
10462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $gcc_cv_tool_dirs
10464 do
10465   IFS=$as_save_IFS
10466   test -z "$as_dir" && as_dir=.
10467     for ac_exec_ext in '' $ac_executable_extensions; do
10468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471     break 2
10472   fi
10473 done
10474   done
10475 IFS=$as_save_IFS
10476
10477   ;;
10478 esac
10479 fi
10480 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10481 if test -n "$AS_FOR_TARGET"; then
10482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10483 $as_echo "$AS_FOR_TARGET" >&6; }
10484 else
10485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10487 fi
10488
10489
10490 fi
10491 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10492
10493
10494 if test -n "$AS_FOR_TARGET"; then
10495   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10496 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10497   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10498 fi
10499
10500 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10501   for ncn_progname in as; do
10502     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   if test -n "$AS_FOR_TARGET"; then
10510   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10514 do
10515   IFS=$as_save_IFS
10516   test -z "$as_dir" && as_dir=.
10517     for ac_exec_ext in '' $ac_executable_extensions; do
10518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10519     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521     break 2
10522   fi
10523 done
10524   done
10525 IFS=$as_save_IFS
10526
10527 fi
10528 fi
10529 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10530 if test -n "$AS_FOR_TARGET"; then
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10532 $as_echo "$AS_FOR_TARGET" >&6; }
10533 else
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537
10538
10539   done
10540 fi
10541
10542 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10543   for ncn_progname in as; do
10544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10545 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10546     if test -x $with_build_time_tools/${ncn_progname}; then
10547       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549 $as_echo "yes" >&6; }
10550       break
10551     else
10552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554     fi
10555   done
10556 fi
10557
10558 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10559   for ncn_progname in as; do
10560     if test -n "$ncn_target_tool_prefix"; then
10561       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10562 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   if test -n "$AS_FOR_TARGET"; then
10569   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10573 do
10574   IFS=$as_save_IFS
10575   test -z "$as_dir" && as_dir=.
10576     for ac_exec_ext in '' $ac_executable_extensions; do
10577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10578     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580     break 2
10581   fi
10582 done
10583   done
10584 IFS=$as_save_IFS
10585
10586 fi
10587 fi
10588 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10589 if test -n "$AS_FOR_TARGET"; then
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10591 $as_echo "$AS_FOR_TARGET" >&6; }
10592 else
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10595 fi
10596
10597
10598     fi
10599     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10600       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10601 set dummy ${ncn_progname}; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   if test -n "$AS_FOR_TARGET"; then
10608   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613   IFS=$as_save_IFS
10614   test -z "$as_dir" && as_dir=.
10615     for ac_exec_ext in '' $ac_executable_extensions; do
10616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619     break 2
10620   fi
10621 done
10622   done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10628 if test -n "$AS_FOR_TARGET"; then
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10630 $as_echo "$AS_FOR_TARGET" >&6; }
10631 else
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637     fi
10638     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10639   done
10640 fi
10641
10642 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10643   set dummy as
10644   if test $build = $target ; then
10645     AS_FOR_TARGET="$2"
10646   else
10647     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10648   fi
10649 else
10650   AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10651 fi
10652
10653 else
10654   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10655 fi
10656
10657
10658
10659
10660 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10661   if test -n "$with_build_time_tools"; then
10662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10663 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10664     if test -x $with_build_time_tools/dlltool; then
10665       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10666       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10667       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10668 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10669     else
10670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10672     fi
10673   elif test $build != $host && test $have_gcc_for_target = yes; then
10674     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10675     test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10676     test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10677   fi
10678 fi
10679 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10680   # Extract the first word of "dlltool", so it can be a program name with args.
10681 set dummy dlltool; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10685   $as_echo_n "(cached) " >&6
10686 else
10687   case $DLLTOOL_FOR_TARGET in
10688   [\\/]* | ?:[\\/]*)
10689   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10690   ;;
10691   *)
10692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $gcc_cv_tool_dirs
10694 do
10695   IFS=$as_save_IFS
10696   test -z "$as_dir" && as_dir=.
10697     for ac_exec_ext in '' $ac_executable_extensions; do
10698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10699     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701     break 2
10702   fi
10703 done
10704   done
10705 IFS=$as_save_IFS
10706
10707   ;;
10708 esac
10709 fi
10710 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10711 if test -n "$DLLTOOL_FOR_TARGET"; then
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10713 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10714 else
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 fi
10718
10719
10720 fi
10721 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10722
10723
10724 if test -n "$DLLTOOL_FOR_TARGET"; then
10725   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10726 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10727   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10728 fi
10729
10730 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10731   for ncn_progname in dlltool; do
10732     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10733 set dummy ${ncn_progname}; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   if test -n "$DLLTOOL_FOR_TARGET"; then
10740   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10741 else
10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743 for as_dir in $PATH
10744 do
10745   IFS=$as_save_IFS
10746   test -z "$as_dir" && as_dir=.
10747     for ac_exec_ext in '' $ac_executable_extensions; do
10748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10749     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10751     break 2
10752   fi
10753 done
10754   done
10755 IFS=$as_save_IFS
10756
10757 fi
10758 fi
10759 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10760 if test -n "$DLLTOOL_FOR_TARGET"; then
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10762 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767
10768
10769   done
10770 fi
10771
10772 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10773   for ncn_progname in dlltool; do
10774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10775 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10776     if test -x $with_build_time_tools/${ncn_progname}; then
10777       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10779 $as_echo "yes" >&6; }
10780       break
10781     else
10782       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784     fi
10785   done
10786 fi
10787
10788 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10789   for ncn_progname in dlltool; do
10790     if test -n "$ncn_target_tool_prefix"; then
10791       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10792 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10796   $as_echo_n "(cached) " >&6
10797 else
10798   if test -n "$DLLTOOL_FOR_TARGET"; then
10799   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804   IFS=$as_save_IFS
10805   test -z "$as_dir" && as_dir=.
10806     for ac_exec_ext in '' $ac_executable_extensions; do
10807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810     break 2
10811   fi
10812 done
10813   done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10819 if test -n "$DLLTOOL_FOR_TARGET"; then
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10821 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10822 else
10823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828     fi
10829     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10830       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10831 set dummy ${ncn_progname}; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10835   $as_echo_n "(cached) " >&6
10836 else
10837   if test -n "$DLLTOOL_FOR_TARGET"; then
10838   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10839 else
10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841 for as_dir in $PATH
10842 do
10843   IFS=$as_save_IFS
10844   test -z "$as_dir" && as_dir=.
10845     for ac_exec_ext in '' $ac_executable_extensions; do
10846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10847     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849     break 2
10850   fi
10851 done
10852   done
10853 IFS=$as_save_IFS
10854
10855 fi
10856 fi
10857 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10858 if test -n "$DLLTOOL_FOR_TARGET"; then
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10860 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10861 else
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863 $as_echo "no" >&6; }
10864 fi
10865
10866
10867     fi
10868     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10869   done
10870 fi
10871
10872 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10873   set dummy dlltool
10874   if test $build = $target ; then
10875     DLLTOOL_FOR_TARGET="$2"
10876   else
10877     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10878   fi
10879 else
10880   DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10881 fi
10882
10883 else
10884   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10885 fi
10886
10887
10888
10889
10890 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10891   if test -n "$with_build_time_tools"; then
10892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10893 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10894     if test -x $with_build_time_tools/ld; then
10895       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10896       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10898 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10899     else
10900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902     fi
10903   elif test $build != $host && test $have_gcc_for_target = yes; then
10904     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10905     test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10906     test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10907   fi
10908 fi
10909 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10910   # Extract the first word of "ld", so it can be a program name with args.
10911 set dummy ld; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   case $LD_FOR_TARGET in
10918   [\\/]* | ?:[\\/]*)
10919   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10920   ;;
10921   *)
10922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $gcc_cv_tool_dirs
10924 do
10925   IFS=$as_save_IFS
10926   test -z "$as_dir" && as_dir=.
10927     for ac_exec_ext in '' $ac_executable_extensions; do
10928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934   done
10935 IFS=$as_save_IFS
10936
10937   ;;
10938 esac
10939 fi
10940 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10941 if test -n "$LD_FOR_TARGET"; then
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10943 $as_echo "$LD_FOR_TARGET" >&6; }
10944 else
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10948
10949
10950 fi
10951 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10952
10953
10954 if test -n "$LD_FOR_TARGET"; then
10955   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10956 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10957   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10958 fi
10959
10960 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10961   for ncn_progname in ld; do
10962     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963 set dummy ${ncn_progname}; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10967   $as_echo_n "(cached) " >&6
10968 else
10969   if test -n "$LD_FOR_TARGET"; then
10970   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975   IFS=$as_save_IFS
10976   test -z "$as_dir" && as_dir=.
10977     for ac_exec_ext in '' $ac_executable_extensions; do
10978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981     break 2
10982   fi
10983 done
10984   done
10985 IFS=$as_save_IFS
10986
10987 fi
10988 fi
10989 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10990 if test -n "$LD_FOR_TARGET"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10992 $as_echo "$LD_FOR_TARGET" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998
10999   done
11000 fi
11001
11002 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11003   for ncn_progname in ld; do
11004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11005 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11006     if test -x $with_build_time_tools/${ncn_progname}; then
11007       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11008       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009 $as_echo "yes" >&6; }
11010       break
11011     else
11012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014     fi
11015   done
11016 fi
11017
11018 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11019   for ncn_progname in ld; do
11020     if test -n "$ncn_target_tool_prefix"; then
11021       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   if test -n "$LD_FOR_TARGET"; then
11029   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034   IFS=$as_save_IFS
11035   test -z "$as_dir" && as_dir=.
11036     for ac_exec_ext in '' $ac_executable_extensions; do
11037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040     break 2
11041   fi
11042 done
11043   done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11049 if test -n "$LD_FOR_TARGET"; then
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11051 $as_echo "$LD_FOR_TARGET" >&6; }
11052 else
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056
11057
11058     fi
11059     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11060       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061 set dummy ${ncn_progname}; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   if test -n "$LD_FOR_TARGET"; then
11068   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073   IFS=$as_save_IFS
11074   test -z "$as_dir" && as_dir=.
11075     for ac_exec_ext in '' $ac_executable_extensions; do
11076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079     break 2
11080   fi
11081 done
11082   done
11083 IFS=$as_save_IFS
11084
11085 fi
11086 fi
11087 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11088 if test -n "$LD_FOR_TARGET"; then
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11090 $as_echo "$LD_FOR_TARGET" >&6; }
11091 else
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095
11096
11097     fi
11098     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11099   done
11100 fi
11101
11102 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11103   set dummy ld
11104   if test $build = $target ; then
11105     LD_FOR_TARGET="$2"
11106   else
11107     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11108   fi
11109 else
11110   LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11111 fi
11112
11113 else
11114   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11115 fi
11116
11117
11118
11119
11120 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11121   if test -n "$with_build_time_tools"; then
11122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11123 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11124     if test -x $with_build_time_tools/lipo; then
11125       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11126       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11128 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11129     else
11130       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132     fi
11133   elif test $build != $host && test $have_gcc_for_target = yes; then
11134     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11135     test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11136     test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11137   fi
11138 fi
11139 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11140   # Extract the first word of "lipo", so it can be a program name with args.
11141 set dummy lipo; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11145   $as_echo_n "(cached) " >&6
11146 else
11147   case $LIPO_FOR_TARGET in
11148   [\\/]* | ?:[\\/]*)
11149   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11150   ;;
11151   *)
11152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $gcc_cv_tool_dirs
11154 do
11155   IFS=$as_save_IFS
11156   test -z "$as_dir" && as_dir=.
11157     for ac_exec_ext in '' $ac_executable_extensions; do
11158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161     break 2
11162   fi
11163 done
11164   done
11165 IFS=$as_save_IFS
11166
11167   ;;
11168 esac
11169 fi
11170 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11171 if test -n "$LIPO_FOR_TARGET"; then
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11173 $as_echo "$LIPO_FOR_TARGET" >&6; }
11174 else
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178
11179
11180 fi
11181 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11182
11183
11184 if test -n "$LIPO_FOR_TARGET"; then
11185   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11186 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11187   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11188 fi
11189
11190 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11191   for ncn_progname in lipo; do
11192     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193 set dummy ${ncn_progname}; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   if test -n "$LIPO_FOR_TARGET"; then
11200   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205   IFS=$as_save_IFS
11206   test -z "$as_dir" && as_dir=.
11207     for ac_exec_ext in '' $ac_executable_extensions; do
11208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211     break 2
11212   fi
11213 done
11214   done
11215 IFS=$as_save_IFS
11216
11217 fi
11218 fi
11219 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11220 if test -n "$LIPO_FOR_TARGET"; then
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11222 $as_echo "$LIPO_FOR_TARGET" >&6; }
11223 else
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229   done
11230 fi
11231
11232 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11233   for ncn_progname in lipo; do
11234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11235 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11236     if test -x $with_build_time_tools/${ncn_progname}; then
11237       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239 $as_echo "yes" >&6; }
11240       break
11241     else
11242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244     fi
11245   done
11246 fi
11247
11248 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11249   for ncn_progname in lipo; do
11250     if test -n "$ncn_target_tool_prefix"; then
11251       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11252 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   if test -n "$LIPO_FOR_TARGET"; then
11259   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11260 else
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264   IFS=$as_save_IFS
11265   test -z "$as_dir" && as_dir=.
11266     for ac_exec_ext in '' $ac_executable_extensions; do
11267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270     break 2
11271   fi
11272 done
11273   done
11274 IFS=$as_save_IFS
11275
11276 fi
11277 fi
11278 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11279 if test -n "$LIPO_FOR_TARGET"; then
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11281 $as_echo "$LIPO_FOR_TARGET" >&6; }
11282 else
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11285 fi
11286
11287
11288     fi
11289     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11290       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_progname}; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   if test -n "$LIPO_FOR_TARGET"; then
11298   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11307     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11318 if test -n "$LIPO_FOR_TARGET"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11320 $as_echo "$LIPO_FOR_TARGET" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326
11327     fi
11328     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11329   done
11330 fi
11331
11332 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11333   set dummy lipo
11334   if test $build = $target ; then
11335     LIPO_FOR_TARGET="$2"
11336   else
11337     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11338   fi
11339 else
11340   LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11341 fi
11342
11343 else
11344   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11345 fi
11346
11347
11348
11349
11350 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11351   if test -n "$with_build_time_tools"; then
11352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11353 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11354     if test -x $with_build_time_tools/nm; then
11355       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11356       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11358 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11359     else
11360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362     fi
11363   elif test $build != $host && test $have_gcc_for_target = yes; then
11364     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11365     test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11366     test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11367   fi
11368 fi
11369 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11370   # Extract the first word of "nm", so it can be a program name with args.
11371 set dummy nm; ac_word=$2
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   case $NM_FOR_TARGET in
11378   [\\/]* | ?:[\\/]*)
11379   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11380   ;;
11381   *)
11382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $gcc_cv_tool_dirs
11384 do
11385   IFS=$as_save_IFS
11386   test -z "$as_dir" && as_dir=.
11387     for ac_exec_ext in '' $ac_executable_extensions; do
11388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391     break 2
11392   fi
11393 done
11394   done
11395 IFS=$as_save_IFS
11396
11397   ;;
11398 esac
11399 fi
11400 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11401 if test -n "$NM_FOR_TARGET"; then
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11403 $as_echo "$NM_FOR_TARGET" >&6; }
11404 else
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410 fi
11411 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11412
11413
11414 if test -n "$NM_FOR_TARGET"; then
11415   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11416 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11417   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11418 fi
11419
11420 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11421   for ncn_progname in nm; do
11422     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11423 set dummy ${ncn_progname}; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11427   $as_echo_n "(cached) " >&6
11428 else
11429   if test -n "$NM_FOR_TARGET"; then
11430   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435   IFS=$as_save_IFS
11436   test -z "$as_dir" && as_dir=.
11437     for ac_exec_ext in '' $ac_executable_extensions; do
11438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441     break 2
11442   fi
11443 done
11444   done
11445 IFS=$as_save_IFS
11446
11447 fi
11448 fi
11449 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11450 if test -n "$NM_FOR_TARGET"; then
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11452 $as_echo "$NM_FOR_TARGET" >&6; }
11453 else
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458
11459   done
11460 fi
11461
11462 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11463   for ncn_progname in nm; do
11464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11465 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11466     if test -x $with_build_time_tools/${ncn_progname}; then
11467       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11470       break
11471     else
11472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474     fi
11475   done
11476 fi
11477
11478 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11479   for ncn_progname in nm; do
11480     if test -n "$ncn_target_tool_prefix"; then
11481       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11486   $as_echo_n "(cached) " >&6
11487 else
11488   if test -n "$NM_FOR_TARGET"; then
11489   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494   IFS=$as_save_IFS
11495   test -z "$as_dir" && as_dir=.
11496     for ac_exec_ext in '' $ac_executable_extensions; do
11497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500     break 2
11501   fi
11502 done
11503   done
11504 IFS=$as_save_IFS
11505
11506 fi
11507 fi
11508 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11509 if test -n "$NM_FOR_TARGET"; then
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11511 $as_echo "$NM_FOR_TARGET" >&6; }
11512 else
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518     fi
11519     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11520       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11521 set dummy ${ncn_progname}; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11525   $as_echo_n "(cached) " >&6
11526 else
11527   if test -n "$NM_FOR_TARGET"; then
11528   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11529 else
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11532 do
11533   IFS=$as_save_IFS
11534   test -z "$as_dir" && as_dir=.
11535     for ac_exec_ext in '' $ac_executable_extensions; do
11536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539     break 2
11540   fi
11541 done
11542   done
11543 IFS=$as_save_IFS
11544
11545 fi
11546 fi
11547 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11548 if test -n "$NM_FOR_TARGET"; then
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11550 $as_echo "$NM_FOR_TARGET" >&6; }
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554 fi
11555
11556
11557     fi
11558     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11559   done
11560 fi
11561
11562 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11563   set dummy nm
11564   if test $build = $target ; then
11565     NM_FOR_TARGET="$2"
11566   else
11567     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11568   fi
11569 else
11570   NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11571 fi
11572
11573 else
11574   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11575 fi
11576
11577
11578
11579
11580 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11581   if test -n "$with_build_time_tools"; then
11582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11583 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11584     if test -x $with_build_time_tools/objdump; then
11585       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11586       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11588 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11589     else
11590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11592     fi
11593   elif test $build != $host && test $have_gcc_for_target = yes; then
11594     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11595     test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11596     test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11597   fi
11598 fi
11599 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11600   # Extract the first word of "objdump", so it can be a program name with args.
11601 set dummy objdump; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   case $OBJDUMP_FOR_TARGET in
11608   [\\/]* | ?:[\\/]*)
11609   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11610   ;;
11611   *)
11612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $gcc_cv_tool_dirs
11614 do
11615   IFS=$as_save_IFS
11616   test -z "$as_dir" && as_dir=.
11617     for ac_exec_ext in '' $ac_executable_extensions; do
11618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11619     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621     break 2
11622   fi
11623 done
11624   done
11625 IFS=$as_save_IFS
11626
11627   ;;
11628 esac
11629 fi
11630 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11631 if test -n "$OBJDUMP_FOR_TARGET"; then
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11633 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11634 else
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 fi
11638
11639
11640 fi
11641 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11642
11643
11644 if test -n "$OBJDUMP_FOR_TARGET"; then
11645   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11646 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11647   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11648 fi
11649
11650 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11651   for ncn_progname in objdump; do
11652     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653 set dummy ${ncn_progname}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11657   $as_echo_n "(cached) " >&6
11658 else
11659   if test -n "$OBJDUMP_FOR_TARGET"; then
11660   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665   IFS=$as_save_IFS
11666   test -z "$as_dir" && as_dir=.
11667     for ac_exec_ext in '' $ac_executable_extensions; do
11668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671     break 2
11672   fi
11673 done
11674   done
11675 IFS=$as_save_IFS
11676
11677 fi
11678 fi
11679 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11680 if test -n "$OBJDUMP_FOR_TARGET"; then
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11682 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11683 else
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689   done
11690 fi
11691
11692 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11693   for ncn_progname in objdump; do
11694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11695 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11696     if test -x $with_build_time_tools/${ncn_progname}; then
11697       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699 $as_echo "yes" >&6; }
11700       break
11701     else
11702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704     fi
11705   done
11706 fi
11707
11708 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11709   for ncn_progname in objdump; do
11710     if test -n "$ncn_target_tool_prefix"; then
11711       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718   if test -n "$OBJDUMP_FOR_TARGET"; then
11719   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11720 else
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724   IFS=$as_save_IFS
11725   test -z "$as_dir" && as_dir=.
11726     for ac_exec_ext in '' $ac_executable_extensions; do
11727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730     break 2
11731   fi
11732 done
11733   done
11734 IFS=$as_save_IFS
11735
11736 fi
11737 fi
11738 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11739 if test -n "$OBJDUMP_FOR_TARGET"; then
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11741 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11742 else
11743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745 fi
11746
11747
11748     fi
11749     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11750       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11751 set dummy ${ncn_progname}; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   if test -n "$OBJDUMP_FOR_TARGET"; then
11758   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11759 else
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH
11762 do
11763   IFS=$as_save_IFS
11764   test -z "$as_dir" && as_dir=.
11765     for ac_exec_ext in '' $ac_executable_extensions; do
11766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769     break 2
11770   fi
11771 done
11772   done
11773 IFS=$as_save_IFS
11774
11775 fi
11776 fi
11777 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11778 if test -n "$OBJDUMP_FOR_TARGET"; then
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11780 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11781 else
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 fi
11785
11786
11787     fi
11788     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11789   done
11790 fi
11791
11792 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11793   set dummy objdump
11794   if test $build = $target ; then
11795     OBJDUMP_FOR_TARGET="$2"
11796   else
11797     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11798   fi
11799 else
11800   OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11801 fi
11802
11803 else
11804   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11805 fi
11806
11807
11808
11809
11810 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11811   if test -n "$with_build_time_tools"; then
11812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11813 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11814     if test -x $with_build_time_tools/ranlib; then
11815       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11816       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11818 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11819     else
11820       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11822     fi
11823   elif test $build != $host && test $have_gcc_for_target = yes; then
11824     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11825     test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11826     test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11827   fi
11828 fi
11829 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11830   # Extract the first word of "ranlib", so it can be a program name with args.
11831 set dummy ranlib; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   case $RANLIB_FOR_TARGET in
11838   [\\/]* | ?:[\\/]*)
11839   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11840   ;;
11841   *)
11842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $gcc_cv_tool_dirs
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856
11857   ;;
11858 esac
11859 fi
11860 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11861 if test -n "$RANLIB_FOR_TARGET"; then
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11863 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868
11869
11870 fi
11871 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11872
11873
11874 if test -n "$RANLIB_FOR_TARGET"; then
11875   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11876 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11877   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11878 fi
11879
11880 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11881   for ncn_progname in ranlib; do
11882     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883 set dummy ${ncn_progname}; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889   if test -n "$RANLIB_FOR_TARGET"; then
11890   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895   IFS=$as_save_IFS
11896   test -z "$as_dir" && as_dir=.
11897     for ac_exec_ext in '' $ac_executable_extensions; do
11898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901     break 2
11902   fi
11903 done
11904   done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11910 if test -n "$RANLIB_FOR_TARGET"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11912 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919   done
11920 fi
11921
11922 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11923   for ncn_progname in ranlib; do
11924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11925 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11926     if test -x $with_build_time_tools/${ncn_progname}; then
11927       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11929 $as_echo "yes" >&6; }
11930       break
11931     else
11932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934     fi
11935   done
11936 fi
11937
11938 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11939   for ncn_progname in ranlib; do
11940     if test -n "$ncn_target_tool_prefix"; then
11941       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   if test -n "$RANLIB_FOR_TARGET"; then
11949   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956     for ac_exec_ext in '' $ac_executable_extensions; do
11957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963   done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11969 if test -n "$RANLIB_FOR_TARGET"; then
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11971 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11972 else
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976
11977
11978     fi
11979     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11980       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11985   $as_echo_n "(cached) " >&6
11986 else
11987   if test -n "$RANLIB_FOR_TARGET"; then
11988   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995     for ac_exec_ext in '' $ac_executable_extensions; do
11996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11997     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999     break 2
12000   fi
12001 done
12002   done
12003 IFS=$as_save_IFS
12004
12005 fi
12006 fi
12007 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12008 if test -n "$RANLIB_FOR_TARGET"; then
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12010 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12014 fi
12015
12016
12017     fi
12018     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12019   done
12020 fi
12021
12022 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12023   set dummy ranlib
12024   if test $build = $target ; then
12025     RANLIB_FOR_TARGET="$2"
12026   else
12027     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12028   fi
12029 else
12030   RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12031 fi
12032
12033 else
12034   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12035 fi
12036
12037
12038
12039
12040 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12041   if test -n "$with_build_time_tools"; then
12042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12043 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12044     if test -x $with_build_time_tools/strip; then
12045       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12046       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12048 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12049     else
12050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12052     fi
12053   elif test $build != $host && test $have_gcc_for_target = yes; then
12054     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12055     test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12056     test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12057   fi
12058 fi
12059 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12060   # Extract the first word of "strip", so it can be a program name with args.
12061 set dummy strip; ac_word=$2
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063 $as_echo_n "checking for $ac_word... " >&6; }
12064 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12065   $as_echo_n "(cached) " >&6
12066 else
12067   case $STRIP_FOR_TARGET in
12068   [\\/]* | ?:[\\/]*)
12069   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12070   ;;
12071   *)
12072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $gcc_cv_tool_dirs
12074 do
12075   IFS=$as_save_IFS
12076   test -z "$as_dir" && as_dir=.
12077     for ac_exec_ext in '' $ac_executable_extensions; do
12078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12079     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081     break 2
12082   fi
12083 done
12084   done
12085 IFS=$as_save_IFS
12086
12087   ;;
12088 esac
12089 fi
12090 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12091 if test -n "$STRIP_FOR_TARGET"; then
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12093 $as_echo "$STRIP_FOR_TARGET" >&6; }
12094 else
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097 fi
12098
12099
12100 fi
12101 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12102
12103
12104 if test -n "$STRIP_FOR_TARGET"; then
12105   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12106 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12107   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12108 fi
12109
12110 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12111   for ncn_progname in strip; do
12112     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12113 set dummy ${ncn_progname}; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   if test -n "$STRIP_FOR_TARGET"; then
12120   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12121 else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125   IFS=$as_save_IFS
12126   test -z "$as_dir" && as_dir=.
12127     for ac_exec_ext in '' $ac_executable_extensions; do
12128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12129     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131     break 2
12132   fi
12133 done
12134   done
12135 IFS=$as_save_IFS
12136
12137 fi
12138 fi
12139 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12140 if test -n "$STRIP_FOR_TARGET"; then
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12142 $as_echo "$STRIP_FOR_TARGET" >&6; }
12143 else
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149   done
12150 fi
12151
12152 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12153   for ncn_progname in strip; do
12154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12155 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12156     if test -x $with_build_time_tools/${ncn_progname}; then
12157       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12159 $as_echo "yes" >&6; }
12160       break
12161     else
12162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164     fi
12165   done
12166 fi
12167
12168 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12169   for ncn_progname in strip; do
12170     if test -n "$ncn_target_tool_prefix"; then
12171       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12172 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   if test -n "$STRIP_FOR_TARGET"; then
12179   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184   IFS=$as_save_IFS
12185   test -z "$as_dir" && as_dir=.
12186     for ac_exec_ext in '' $ac_executable_extensions; do
12187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190     break 2
12191   fi
12192 done
12193   done
12194 IFS=$as_save_IFS
12195
12196 fi
12197 fi
12198 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12199 if test -n "$STRIP_FOR_TARGET"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12201 $as_echo "$STRIP_FOR_TARGET" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207
12208     fi
12209     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12210       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12211 set dummy ${ncn_progname}; ac_word=$2
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213 $as_echo_n "checking for $ac_word... " >&6; }
12214 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12215   $as_echo_n "(cached) " >&6
12216 else
12217   if test -n "$STRIP_FOR_TARGET"; then
12218   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12219 else
12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12222 do
12223   IFS=$as_save_IFS
12224   test -z "$as_dir" && as_dir=.
12225     for ac_exec_ext in '' $ac_executable_extensions; do
12226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12227     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229     break 2
12230   fi
12231 done
12232   done
12233 IFS=$as_save_IFS
12234
12235 fi
12236 fi
12237 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12238 if test -n "$STRIP_FOR_TARGET"; then
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12240 $as_echo "$STRIP_FOR_TARGET" >&6; }
12241 else
12242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12244 fi
12245
12246
12247     fi
12248     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12249   done
12250 fi
12251
12252 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12253   set dummy strip
12254   if test $build = $target ; then
12255     STRIP_FOR_TARGET="$2"
12256   else
12257     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12258   fi
12259 else
12260   STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12261 fi
12262
12263 else
12264   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12265 fi
12266
12267
12268
12269
12270 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12271   if test -n "$with_build_time_tools"; then
12272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12273 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12274     if test -x $with_build_time_tools/windres; then
12275       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12276       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12278 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12279     else
12280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282     fi
12283   elif test $build != $host && test $have_gcc_for_target = yes; then
12284     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12285     test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12286     test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12287   fi
12288 fi
12289 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12290   # Extract the first word of "windres", so it can be a program name with args.
12291 set dummy windres; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   case $WINDRES_FOR_TARGET in
12298   [\\/]* | ?:[\\/]*)
12299   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12300   ;;
12301   *)
12302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $gcc_cv_tool_dirs
12304 do
12305   IFS=$as_save_IFS
12306   test -z "$as_dir" && as_dir=.
12307     for ac_exec_ext in '' $ac_executable_extensions; do
12308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12309     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311     break 2
12312   fi
12313 done
12314   done
12315 IFS=$as_save_IFS
12316
12317   ;;
12318 esac
12319 fi
12320 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12321 if test -n "$WINDRES_FOR_TARGET"; then
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12323 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12324 else
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 fi
12331 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12332
12333
12334 if test -n "$WINDRES_FOR_TARGET"; then
12335   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12336 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12337   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12338 fi
12339
12340 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12341   for ncn_progname in windres; do
12342     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343 set dummy ${ncn_progname}; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   if test -n "$WINDRES_FOR_TARGET"; then
12350   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12351 else
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355   IFS=$as_save_IFS
12356   test -z "$as_dir" && as_dir=.
12357     for ac_exec_ext in '' $ac_executable_extensions; do
12358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361     break 2
12362   fi
12363 done
12364   done
12365 IFS=$as_save_IFS
12366
12367 fi
12368 fi
12369 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12370 if test -n "$WINDRES_FOR_TARGET"; then
12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12372 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12373 else
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376 fi
12377
12378
12379   done
12380 fi
12381
12382 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12383   for ncn_progname in windres; do
12384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12385 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12386     if test -x $with_build_time_tools/${ncn_progname}; then
12387       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390       break
12391     else
12392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394     fi
12395   done
12396 fi
12397
12398 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12399   for ncn_progname in windres; do
12400     if test -n "$ncn_target_tool_prefix"; then
12401       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12402 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408   if test -n "$WINDRES_FOR_TARGET"; then
12409   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414   IFS=$as_save_IFS
12415   test -z "$as_dir" && as_dir=.
12416     for ac_exec_ext in '' $ac_executable_extensions; do
12417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420     break 2
12421   fi
12422 done
12423   done
12424 IFS=$as_save_IFS
12425
12426 fi
12427 fi
12428 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12429 if test -n "$WINDRES_FOR_TARGET"; then
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12431 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12432 else
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436
12437
12438     fi
12439     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12440       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12441 set dummy ${ncn_progname}; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447   if test -n "$WINDRES_FOR_TARGET"; then
12448   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12449 else
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12452 do
12453   IFS=$as_save_IFS
12454   test -z "$as_dir" && as_dir=.
12455     for ac_exec_ext in '' $ac_executable_extensions; do
12456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12457     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459     break 2
12460   fi
12461 done
12462   done
12463 IFS=$as_save_IFS
12464
12465 fi
12466 fi
12467 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12468 if test -n "$WINDRES_FOR_TARGET"; then
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12470 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12471 else
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12474 fi
12475
12476
12477     fi
12478     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12479   done
12480 fi
12481
12482 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12483   set dummy windres
12484   if test $build = $target ; then
12485     WINDRES_FOR_TARGET="$2"
12486   else
12487     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12488   fi
12489 else
12490   WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12491 fi
12492
12493 else
12494   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12495 fi
12496
12497
12498
12499
12500 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12501   if test -n "$with_build_time_tools"; then
12502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12503 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12504     if test -x $with_build_time_tools/windmc; then
12505       WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12506       ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12508 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12509     else
12510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12512     fi
12513   elif test $build != $host && test $have_gcc_for_target = yes; then
12514     WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12515     test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12516     test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12517   fi
12518 fi
12519 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12520   # Extract the first word of "windmc", so it can be a program name with args.
12521 set dummy windmc; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12525   $as_echo_n "(cached) " >&6
12526 else
12527   case $WINDMC_FOR_TARGET in
12528   [\\/]* | ?:[\\/]*)
12529   ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12530   ;;
12531   *)
12532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $gcc_cv_tool_dirs
12534 do
12535   IFS=$as_save_IFS
12536   test -z "$as_dir" && as_dir=.
12537     for ac_exec_ext in '' $ac_executable_extensions; do
12538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12539     ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541     break 2
12542   fi
12543 done
12544   done
12545 IFS=$as_save_IFS
12546
12547   ;;
12548 esac
12549 fi
12550 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12551 if test -n "$WINDMC_FOR_TARGET"; then
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12553 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12554 else
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558
12559
12560 fi
12561 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12562
12563
12564 if test -n "$WINDMC_FOR_TARGET"; then
12565   ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12566 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12567   WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12568 fi
12569
12570 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12571   for ncn_progname in windmc; do
12572     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   if test -n "$WINDMC_FOR_TARGET"; then
12580   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585   IFS=$as_save_IFS
12586   test -z "$as_dir" && as_dir=.
12587     for ac_exec_ext in '' $ac_executable_extensions; do
12588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591     break 2
12592   fi
12593 done
12594   done
12595 IFS=$as_save_IFS
12596
12597 fi
12598 fi
12599 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12600 if test -n "$WINDMC_FOR_TARGET"; then
12601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12602 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12603 else
12604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609   done
12610 fi
12611
12612 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12613   for ncn_progname in windmc; do
12614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12615 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12616     if test -x $with_build_time_tools/${ncn_progname}; then
12617       ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619 $as_echo "yes" >&6; }
12620       break
12621     else
12622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12624     fi
12625   done
12626 fi
12627
12628 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12629   for ncn_progname in windmc; do
12630     if test -n "$ncn_target_tool_prefix"; then
12631       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12632 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   if test -n "$WINDMC_FOR_TARGET"; then
12639   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12640 else
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12643 do
12644   IFS=$as_save_IFS
12645   test -z "$as_dir" && as_dir=.
12646     for ac_exec_ext in '' $ac_executable_extensions; do
12647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650     break 2
12651   fi
12652 done
12653   done
12654 IFS=$as_save_IFS
12655
12656 fi
12657 fi
12658 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12659 if test -n "$WINDMC_FOR_TARGET"; then
12660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12661 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12662 else
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666
12667
12668     fi
12669     if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12670       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671 set dummy ${ncn_progname}; ac_word=$2
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673 $as_echo_n "checking for $ac_word... " >&6; }
12674 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12675   $as_echo_n "(cached) " >&6
12676 else
12677   if test -n "$WINDMC_FOR_TARGET"; then
12678   ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12679 else
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12682 do
12683   IFS=$as_save_IFS
12684   test -z "$as_dir" && as_dir=.
12685     for ac_exec_ext in '' $ac_executable_extensions; do
12686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687     ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689     break 2
12690   fi
12691 done
12692   done
12693 IFS=$as_save_IFS
12694
12695 fi
12696 fi
12697 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12698 if test -n "$WINDMC_FOR_TARGET"; then
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12700 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12701 else
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703 $as_echo "no" >&6; }
12704 fi
12705
12706
12707     fi
12708     test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12709   done
12710 fi
12711
12712 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12713   set dummy windmc
12714   if test $build = $target ; then
12715     WINDMC_FOR_TARGET="$2"
12716   else
12717     WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12718   fi
12719 else
12720   WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12721 fi
12722
12723 else
12724   WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12725 fi
12726
12727
12728 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12731 $as_echo_n "checking where to find the target ar... " >&6; }
12732 if test "x${build}" != "x${host}" ; then
12733   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12734     # We already found the complete path
12735     ac_dir=`dirname $AR_FOR_TARGET`
12736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737 $as_echo "pre-installed in $ac_dir" >&6; }
12738   else
12739     # Canadian cross, just use what we found
12740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741 $as_echo "pre-installed" >&6; }
12742   fi
12743 else
12744   ok=yes
12745   case " ${configdirs} " in
12746     *" binutils "*) ;;
12747     *) ok=no ;;
12748   esac
12749
12750   if test $ok = yes; then
12751     # An in-tree tool is available and we can use it
12752     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754 $as_echo "just compiled" >&6; }
12755   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12756     # We already found the complete path
12757     ac_dir=`dirname $AR_FOR_TARGET`
12758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759 $as_echo "pre-installed in $ac_dir" >&6; }
12760   elif test "x$target" = "x$host"; then
12761     # We can use an host tool
12762     AR_FOR_TARGET='$(AR)'
12763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764 $as_echo "host tool" >&6; }
12765   else
12766     # We need a cross tool
12767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768 $as_echo "pre-installed" >&6; }
12769   fi
12770 fi
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12773 $as_echo_n "checking where to find the target as... " >&6; }
12774 if test "x${build}" != "x${host}" ; then
12775   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12776     # We already found the complete path
12777     ac_dir=`dirname $AS_FOR_TARGET`
12778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779 $as_echo "pre-installed in $ac_dir" >&6; }
12780   else
12781     # Canadian cross, just use what we found
12782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783 $as_echo "pre-installed" >&6; }
12784   fi
12785 else
12786   ok=yes
12787   case " ${configdirs} " in
12788     *" gas "*) ;;
12789     *) ok=no ;;
12790   esac
12791
12792   if test $ok = yes; then
12793     # An in-tree tool is available and we can use it
12794     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12796 $as_echo "just compiled" >&6; }
12797   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12798     # We already found the complete path
12799     ac_dir=`dirname $AS_FOR_TARGET`
12800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12801 $as_echo "pre-installed in $ac_dir" >&6; }
12802   elif test "x$target" = "x$host"; then
12803     # We can use an host tool
12804     AS_FOR_TARGET='$(AS)'
12805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12806 $as_echo "host tool" >&6; }
12807   else
12808     # We need a cross tool
12809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12810 $as_echo "pre-installed" >&6; }
12811   fi
12812 fi
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12815 $as_echo_n "checking where to find the target cc... " >&6; }
12816 if test "x${build}" != "x${host}" ; then
12817   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12818     # We already found the complete path
12819     ac_dir=`dirname $CC_FOR_TARGET`
12820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12821 $as_echo "pre-installed in $ac_dir" >&6; }
12822   else
12823     # Canadian cross, just use what we found
12824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12825 $as_echo "pre-installed" >&6; }
12826   fi
12827 else
12828   ok=yes
12829   case " ${configdirs} " in
12830     *" gcc "*) ;;
12831     *) ok=no ;;
12832   esac
12833
12834   if test $ok = yes; then
12835     # An in-tree tool is available and we can use it
12836     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12838 $as_echo "just compiled" >&6; }
12839   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12840     # We already found the complete path
12841     ac_dir=`dirname $CC_FOR_TARGET`
12842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843 $as_echo "pre-installed in $ac_dir" >&6; }
12844   elif test "x$target" = "x$host"; then
12845     # We can use an host tool
12846     CC_FOR_TARGET='$(CC)'
12847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12848 $as_echo "host tool" >&6; }
12849   else
12850     # We need a cross tool
12851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12852 $as_echo "pre-installed" >&6; }
12853   fi
12854 fi
12855
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12857 $as_echo_n "checking where to find the target c++... " >&6; }
12858 if test "x${build}" != "x${host}" ; then
12859   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12860     # We already found the complete path
12861     ac_dir=`dirname $CXX_FOR_TARGET`
12862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12863 $as_echo "pre-installed in $ac_dir" >&6; }
12864   else
12865     # Canadian cross, just use what we found
12866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12867 $as_echo "pre-installed" >&6; }
12868   fi
12869 else
12870   ok=yes
12871   case " ${configdirs} " in
12872     *" gcc "*) ;;
12873     *) ok=no ;;
12874   esac
12875   case ,${enable_languages}, in
12876     *,c++,*) ;;
12877     *) ok=no ;;
12878   esac
12879   if test $ok = yes; then
12880     # An in-tree tool is available and we can use it
12881     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12883 $as_echo "just compiled" >&6; }
12884   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12885     # We already found the complete path
12886     ac_dir=`dirname $CXX_FOR_TARGET`
12887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12888 $as_echo "pre-installed in $ac_dir" >&6; }
12889   elif test "x$target" = "x$host"; then
12890     # We can use an host tool
12891     CXX_FOR_TARGET='$(CXX)'
12892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12893 $as_echo "host tool" >&6; }
12894   else
12895     # We need a cross tool
12896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12897 $as_echo "pre-installed" >&6; }
12898   fi
12899 fi
12900
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12902 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12903 if test "x${build}" != "x${host}" ; then
12904   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12905     # We already found the complete path
12906     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12908 $as_echo "pre-installed in $ac_dir" >&6; }
12909   else
12910     # Canadian cross, just use what we found
12911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12912 $as_echo "pre-installed" >&6; }
12913   fi
12914 else
12915   ok=yes
12916   case " ${configdirs} " in
12917     *" gcc "*) ;;
12918     *) ok=no ;;
12919   esac
12920   case ,${enable_languages}, in
12921     *,c++,*) ;;
12922     *) ok=no ;;
12923   esac
12924   if test $ok = yes; then
12925     # An in-tree tool is available and we can use it
12926     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'
12927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12928 $as_echo "just compiled" >&6; }
12929   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12930     # We already found the complete path
12931     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12933 $as_echo "pre-installed in $ac_dir" >&6; }
12934   elif test "x$target" = "x$host"; then
12935     # We can use an host tool
12936     RAW_CXX_FOR_TARGET='$(CXX)'
12937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12938 $as_echo "host tool" >&6; }
12939   else
12940     # We need a cross tool
12941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12942 $as_echo "pre-installed" >&6; }
12943   fi
12944 fi
12945
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12947 $as_echo_n "checking where to find the target dlltool... " >&6; }
12948 if test "x${build}" != "x${host}" ; then
12949   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12950     # We already found the complete path
12951     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12953 $as_echo "pre-installed in $ac_dir" >&6; }
12954   else
12955     # Canadian cross, just use what we found
12956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12957 $as_echo "pre-installed" >&6; }
12958   fi
12959 else
12960   ok=yes
12961   case " ${configdirs} " in
12962     *" binutils "*) ;;
12963     *) ok=no ;;
12964   esac
12965
12966   if test $ok = yes; then
12967     # An in-tree tool is available and we can use it
12968     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12970 $as_echo "just compiled" >&6; }
12971   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12972     # We already found the complete path
12973     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12975 $as_echo "pre-installed in $ac_dir" >&6; }
12976   elif test "x$target" = "x$host"; then
12977     # We can use an host tool
12978     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12980 $as_echo "host tool" >&6; }
12981   else
12982     # We need a cross tool
12983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12984 $as_echo "pre-installed" >&6; }
12985   fi
12986 fi
12987
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12989 $as_echo_n "checking where to find the target gcc... " >&6; }
12990 if test "x${build}" != "x${host}" ; then
12991   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12992     # We already found the complete path
12993     ac_dir=`dirname $GCC_FOR_TARGET`
12994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12995 $as_echo "pre-installed in $ac_dir" >&6; }
12996   else
12997     # Canadian cross, just use what we found
12998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12999 $as_echo "pre-installed" >&6; }
13000   fi
13001 else
13002   ok=yes
13003   case " ${configdirs} " in
13004     *" gcc "*) ;;
13005     *) ok=no ;;
13006   esac
13007
13008   if test $ok = yes; then
13009     # An in-tree tool is available and we can use it
13010     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13012 $as_echo "just compiled" >&6; }
13013   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13014     # We already found the complete path
13015     ac_dir=`dirname $GCC_FOR_TARGET`
13016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13017 $as_echo "pre-installed in $ac_dir" >&6; }
13018   elif test "x$target" = "x$host"; then
13019     # We can use an host tool
13020     GCC_FOR_TARGET='$()'
13021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13022 $as_echo "host tool" >&6; }
13023   else
13024     # We need a cross tool
13025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13026 $as_echo "pre-installed" >&6; }
13027   fi
13028 fi
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13031 $as_echo_n "checking where to find the target gcj... " >&6; }
13032 if test "x${build}" != "x${host}" ; then
13033   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13034     # We already found the complete path
13035     ac_dir=`dirname $GCJ_FOR_TARGET`
13036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13037 $as_echo "pre-installed in $ac_dir" >&6; }
13038   else
13039     # Canadian cross, just use what we found
13040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13041 $as_echo "pre-installed" >&6; }
13042   fi
13043 else
13044   ok=yes
13045   case " ${configdirs} " in
13046     *" gcc "*) ;;
13047     *) ok=no ;;
13048   esac
13049   case ,${enable_languages}, in
13050     *,java,*) ;;
13051     *) ok=no ;;
13052   esac
13053   if test $ok = yes; then
13054     # An in-tree tool is available and we can use it
13055     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13057 $as_echo "just compiled" >&6; }
13058   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13059     # We already found the complete path
13060     ac_dir=`dirname $GCJ_FOR_TARGET`
13061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13062 $as_echo "pre-installed in $ac_dir" >&6; }
13063   elif test "x$target" = "x$host"; then
13064     # We can use an host tool
13065     GCJ_FOR_TARGET='$(GCJ)'
13066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13067 $as_echo "host tool" >&6; }
13068   else
13069     # We need a cross tool
13070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13071 $as_echo "pre-installed" >&6; }
13072   fi
13073 fi
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13076 $as_echo_n "checking where to find the target gfortran... " >&6; }
13077 if test "x${build}" != "x${host}" ; then
13078   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13079     # We already found the complete path
13080     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13082 $as_echo "pre-installed in $ac_dir" >&6; }
13083   else
13084     # Canadian cross, just use what we found
13085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13086 $as_echo "pre-installed" >&6; }
13087   fi
13088 else
13089   ok=yes
13090   case " ${configdirs} " in
13091     *" gcc "*) ;;
13092     *) ok=no ;;
13093   esac
13094   case ,${enable_languages}, in
13095     *,fortran,*) ;;
13096     *) ok=no ;;
13097   esac
13098   if test $ok = yes; then
13099     # An in-tree tool is available and we can use it
13100     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13102 $as_echo "just compiled" >&6; }
13103   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13104     # We already found the complete path
13105     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13107 $as_echo "pre-installed in $ac_dir" >&6; }
13108   elif test "x$target" = "x$host"; then
13109     # We can use an host tool
13110     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13112 $as_echo "host tool" >&6; }
13113   else
13114     # We need a cross tool
13115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13116 $as_echo "pre-installed" >&6; }
13117   fi
13118 fi
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13121 $as_echo_n "checking where to find the target ld... " >&6; }
13122 if test "x${build}" != "x${host}" ; then
13123   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13124     # We already found the complete path
13125     ac_dir=`dirname $LD_FOR_TARGET`
13126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13127 $as_echo "pre-installed in $ac_dir" >&6; }
13128   else
13129     # Canadian cross, just use what we found
13130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13131 $as_echo "pre-installed" >&6; }
13132   fi
13133 else
13134   ok=yes
13135   case " ${configdirs} " in
13136     *" ld "*) ;;
13137     *) ok=no ;;
13138   esac
13139
13140   if test $ok = yes; then
13141     # An in-tree tool is available and we can use it
13142     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13144 $as_echo "just compiled" >&6; }
13145   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13146     # We already found the complete path
13147     ac_dir=`dirname $LD_FOR_TARGET`
13148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13149 $as_echo "pre-installed in $ac_dir" >&6; }
13150   elif test "x$target" = "x$host"; then
13151     # We can use an host tool
13152     LD_FOR_TARGET='$(LD)'
13153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13154 $as_echo "host tool" >&6; }
13155   else
13156     # We need a cross tool
13157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13158 $as_echo "pre-installed" >&6; }
13159   fi
13160 fi
13161
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13163 $as_echo_n "checking where to find the target lipo... " >&6; }
13164 if test "x${build}" != "x${host}" ; then
13165   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13166     # We already found the complete path
13167     ac_dir=`dirname $LIPO_FOR_TARGET`
13168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13169 $as_echo "pre-installed in $ac_dir" >&6; }
13170   else
13171     # Canadian cross, just use what we found
13172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13173 $as_echo "pre-installed" >&6; }
13174   fi
13175 else
13176   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13177     # We already found the complete path
13178     ac_dir=`dirname $LIPO_FOR_TARGET`
13179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13180 $as_echo "pre-installed in $ac_dir" >&6; }
13181   elif test "x$target" = "x$host"; then
13182     # We can use an host tool
13183     LIPO_FOR_TARGET='$(LIPO)'
13184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13185 $as_echo "host tool" >&6; }
13186   else
13187     # We need a cross tool
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189 $as_echo "pre-installed" >&6; }
13190   fi
13191 fi
13192
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13194 $as_echo_n "checking where to find the target nm... " >&6; }
13195 if test "x${build}" != "x${host}" ; then
13196   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13197     # We already found the complete path
13198     ac_dir=`dirname $NM_FOR_TARGET`
13199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13200 $as_echo "pre-installed in $ac_dir" >&6; }
13201   else
13202     # Canadian cross, just use what we found
13203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13204 $as_echo "pre-installed" >&6; }
13205   fi
13206 else
13207   ok=yes
13208   case " ${configdirs} " in
13209     *" binutils "*) ;;
13210     *) ok=no ;;
13211   esac
13212
13213   if test $ok = yes; then
13214     # An in-tree tool is available and we can use it
13215     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13217 $as_echo "just compiled" >&6; }
13218   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13219     # We already found the complete path
13220     ac_dir=`dirname $NM_FOR_TARGET`
13221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222 $as_echo "pre-installed in $ac_dir" >&6; }
13223   elif test "x$target" = "x$host"; then
13224     # We can use an host tool
13225     NM_FOR_TARGET='$(NM)'
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13227 $as_echo "host tool" >&6; }
13228   else
13229     # We need a cross tool
13230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231 $as_echo "pre-installed" >&6; }
13232   fi
13233 fi
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13236 $as_echo_n "checking where to find the target objdump... " >&6; }
13237 if test "x${build}" != "x${host}" ; then
13238   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13239     # We already found the complete path
13240     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13242 $as_echo "pre-installed in $ac_dir" >&6; }
13243   else
13244     # Canadian cross, just use what we found
13245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13246 $as_echo "pre-installed" >&6; }
13247   fi
13248 else
13249   ok=yes
13250   case " ${configdirs} " in
13251     *" binutils "*) ;;
13252     *) ok=no ;;
13253   esac
13254
13255   if test $ok = yes; then
13256     # An in-tree tool is available and we can use it
13257     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13259 $as_echo "just compiled" >&6; }
13260   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13261     # We already found the complete path
13262     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264 $as_echo "pre-installed in $ac_dir" >&6; }
13265   elif test "x$target" = "x$host"; then
13266     # We can use an host tool
13267     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13269 $as_echo "host tool" >&6; }
13270   else
13271     # We need a cross tool
13272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13273 $as_echo "pre-installed" >&6; }
13274   fi
13275 fi
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13278 $as_echo_n "checking where to find the target ranlib... " >&6; }
13279 if test "x${build}" != "x${host}" ; then
13280   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13281     # We already found the complete path
13282     ac_dir=`dirname $RANLIB_FOR_TARGET`
13283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13284 $as_echo "pre-installed in $ac_dir" >&6; }
13285   else
13286     # Canadian cross, just use what we found
13287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13288 $as_echo "pre-installed" >&6; }
13289   fi
13290 else
13291   ok=yes
13292   case " ${configdirs} " in
13293     *" binutils "*) ;;
13294     *) ok=no ;;
13295   esac
13296
13297   if test $ok = yes; then
13298     # An in-tree tool is available and we can use it
13299     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13301 $as_echo "just compiled" >&6; }
13302   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13303     # We already found the complete path
13304     ac_dir=`dirname $RANLIB_FOR_TARGET`
13305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306 $as_echo "pre-installed in $ac_dir" >&6; }
13307   elif test "x$target" = "x$host"; then
13308     # We can use an host tool
13309     RANLIB_FOR_TARGET='$(RANLIB)'
13310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13311 $as_echo "host tool" >&6; }
13312   else
13313     # We need a cross tool
13314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13315 $as_echo "pre-installed" >&6; }
13316   fi
13317 fi
13318
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13320 $as_echo_n "checking where to find the target strip... " >&6; }
13321 if test "x${build}" != "x${host}" ; then
13322   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13323     # We already found the complete path
13324     ac_dir=`dirname $STRIP_FOR_TARGET`
13325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13326 $as_echo "pre-installed in $ac_dir" >&6; }
13327   else
13328     # Canadian cross, just use what we found
13329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13330 $as_echo "pre-installed" >&6; }
13331   fi
13332 else
13333   ok=yes
13334   case " ${configdirs} " in
13335     *" binutils "*) ;;
13336     *) ok=no ;;
13337   esac
13338
13339   if test $ok = yes; then
13340     # An in-tree tool is available and we can use it
13341     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13343 $as_echo "just compiled" >&6; }
13344   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13345     # We already found the complete path
13346     ac_dir=`dirname $STRIP_FOR_TARGET`
13347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348 $as_echo "pre-installed in $ac_dir" >&6; }
13349   elif test "x$target" = "x$host"; then
13350     # We can use an host tool
13351     STRIP_FOR_TARGET='$(STRIP)'
13352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13353 $as_echo "host tool" >&6; }
13354   else
13355     # We need a cross tool
13356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13357 $as_echo "pre-installed" >&6; }
13358   fi
13359 fi
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13362 $as_echo_n "checking where to find the target windres... " >&6; }
13363 if test "x${build}" != "x${host}" ; then
13364   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13365     # We already found the complete path
13366     ac_dir=`dirname $WINDRES_FOR_TARGET`
13367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13368 $as_echo "pre-installed in $ac_dir" >&6; }
13369   else
13370     # Canadian cross, just use what we found
13371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372 $as_echo "pre-installed" >&6; }
13373   fi
13374 else
13375   ok=yes
13376   case " ${configdirs} " in
13377     *" binutils "*) ;;
13378     *) ok=no ;;
13379   esac
13380
13381   if test $ok = yes; then
13382     # An in-tree tool is available and we can use it
13383     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13385 $as_echo "just compiled" >&6; }
13386   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13387     # We already found the complete path
13388     ac_dir=`dirname $WINDRES_FOR_TARGET`
13389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390 $as_echo "pre-installed in $ac_dir" >&6; }
13391   elif test "x$target" = "x$host"; then
13392     # We can use an host tool
13393     WINDRES_FOR_TARGET='$(WINDRES)'
13394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13395 $as_echo "host tool" >&6; }
13396   else
13397     # We need a cross tool
13398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13399 $as_echo "pre-installed" >&6; }
13400   fi
13401 fi
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13404 $as_echo_n "checking where to find the target windmc... " >&6; }
13405 if test "x${build}" != "x${host}" ; then
13406   if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13407     # We already found the complete path
13408     ac_dir=`dirname $WINDMC_FOR_TARGET`
13409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13410 $as_echo "pre-installed in $ac_dir" >&6; }
13411   else
13412     # Canadian cross, just use what we found
13413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414 $as_echo "pre-installed" >&6; }
13415   fi
13416 else
13417   ok=yes
13418   case " ${configdirs} " in
13419     *" binutils "*) ;;
13420     *) ok=no ;;
13421   esac
13422
13423   if test $ok = yes; then
13424     # An in-tree tool is available and we can use it
13425     WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13427 $as_echo "just compiled" >&6; }
13428   elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13429     # We already found the complete path
13430     ac_dir=`dirname $WINDMC_FOR_TARGET`
13431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432 $as_echo "pre-installed in $ac_dir" >&6; }
13433   elif test "x$target" = "x$host"; then
13434     # We can use an host tool
13435     WINDMC_FOR_TARGET='$(WINDMC)'
13436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13437 $as_echo "host tool" >&6; }
13438   else
13439     # We need a cross tool
13440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13441 $as_echo "pre-installed" >&6; }
13442   fi
13443 fi
13444
13445
13446
13447
13448
13449 # Certain tools may need extra flags.
13450 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13451 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13452 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13453
13454 # When building target libraries, except in a Canadian cross, we use
13455 # the same toolchain as the compiler we just built.
13456 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13457 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13458 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13459 if test $host = $build; then
13460   case " $configdirs " in
13461     *" gcc "*)
13462       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13463       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13464       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13465       ;;
13466   esac
13467 fi
13468
13469
13470
13471
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13474 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13475 # Check whether --enable-maintainer-mode was given.
13476 if test "${enable_maintainer_mode+set}" = set; then :
13477   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13478 else
13479   USE_MAINTAINER_MODE=no
13480 fi
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13483 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13484
13485
13486 if test "$USE_MAINTAINER_MODE" = yes; then
13487   MAINTAINER_MODE_TRUE=
13488   MAINTAINER_MODE_FALSE='#'
13489 else
13490   MAINTAINER_MODE_TRUE='#'
13491   MAINTAINER_MODE_FALSE=
13492 fi
13493 MAINT=$MAINTAINER_MODE_TRUE
13494
13495 # ---------------------
13496 # GCC bootstrap support
13497 # ---------------------
13498
13499 # Stage specific cflags for build.
13500 stage1_cflags="-g"
13501 case $build in
13502   vax-*-*)
13503     case ${GCC} in
13504       yes) stage1_cflags="-g -Wa,-J" ;;
13505       *) stage1_cflags="-g -J" ;;
13506     esac ;;
13507 esac
13508
13509 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13510 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13511   saved_CFLAGS="$CFLAGS"
13512
13513   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13514   CFLAGS="$CFLAGS -fkeep-inline-functions"
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13516 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h.  */
13519
13520 #if (__GNUC__ < 3) \
13521     || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13522                           || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13523 #error http://gcc.gnu.org/PR29382
13524 #endif
13525
13526 int
13527 main ()
13528 {
13529
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 if ac_fn_c_try_compile "$LINENO"; then :
13535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13537 else
13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 $as_echo "no" >&6; }
13540 fi
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542
13543   CFLAGS="$saved_CFLAGS"
13544 fi
13545
13546
13547
13548 # Enable --enable-checking in stage1 of the compiler.
13549 # Check whether --enable-stage1-checking was given.
13550 if test "${enable_stage1_checking+set}" = set; then :
13551   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13552 else
13553   if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13554   stage1_checking=--enable-checking=yes,types
13555 else
13556   stage1_checking=--enable-checking=$enable_checking,types
13557 fi
13558 fi
13559
13560
13561
13562 # Enable -Werror in bootstrap stage2 and later.
13563 # Check whether --enable-werror was given.
13564 if test "${enable_werror+set}" = set; then :
13565   enableval=$enable_werror;
13566 else
13567   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13568   enable_werror=yes
13569 else
13570   enable_werror=no
13571 fi
13572 fi
13573
13574 case ${enable_werror} in
13575   yes) stage2_werror_flag="--enable-werror-always" ;;
13576   *) stage2_werror_flag="" ;;
13577 esac
13578
13579
13580 # Specify what files to not compare during bootstrap.
13581
13582 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13583 case "$target" in
13584   hppa*64*-*-hpux*) ;;
13585   hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13586 esac
13587 case " $configdirs " in
13588 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13589 esac
13590
13591
13592 ac_config_files="$ac_config_files Makefile"
13593
13594 cat >confcache <<\_ACEOF
13595 # This file is a shell script that caches the results of configure
13596 # tests run on this system so they can be shared between configure
13597 # scripts and configure runs, see configure's option --config-cache.
13598 # It is not useful on other systems.  If it contains results you don't
13599 # want to keep, you may remove or edit it.
13600 #
13601 # config.status only pays attention to the cache file if you give it
13602 # the --recheck option to rerun configure.
13603 #
13604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13606 # following values.
13607
13608 _ACEOF
13609
13610 # The following way of writing the cache mishandles newlines in values,
13611 # but we know of no workaround that is simple, portable, and efficient.
13612 # So, we kill variables containing newlines.
13613 # Ultrix sh set writes to stderr and can't be redirected directly,
13614 # and sets the high bit in the cache file unless we assign to the vars.
13615 (
13616   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13617     eval ac_val=\$$ac_var
13618     case $ac_val in #(
13619     *${as_nl}*)
13620       case $ac_var in #(
13621       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13622 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13623       esac
13624       case $ac_var in #(
13625       _ | IFS | as_nl) ;; #(
13626       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13627       *) { eval $ac_var=; unset $ac_var;} ;;
13628       esac ;;
13629     esac
13630   done
13631
13632   (set) 2>&1 |
13633     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13634     *${as_nl}ac_space=\ *)
13635       # `set' does not quote correctly, so add quotes: double-quote
13636       # substitution turns \\\\ into \\, and sed turns \\ into \.
13637       sed -n \
13638         "s/'/'\\\\''/g;
13639           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13640       ;; #(
13641     *)
13642       # `set' quotes correctly as required by POSIX, so do not add quotes.
13643       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13644       ;;
13645     esac |
13646     sort
13647 ) |
13648   sed '
13649      /^ac_cv_env_/b end
13650      t clear
13651      :clear
13652      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13653      t end
13654      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13655      :end' >>confcache
13656 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13657   if test -w "$cache_file"; then
13658     test "x$cache_file" != "x/dev/null" &&
13659       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13660 $as_echo "$as_me: updating cache $cache_file" >&6;}
13661     cat confcache >$cache_file
13662   else
13663     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13664 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13665   fi
13666 fi
13667 rm -f confcache
13668
13669 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13670 # Let make expand exec_prefix.
13671 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13672
13673 # Transform confdefs.h into DEFS.
13674 # Protect against shell expansion while executing Makefile rules.
13675 # Protect against Makefile macro expansion.
13676 #
13677 # If the first sed substitution is executed (which looks for macros that
13678 # take arguments), then branch to the quote section.  Otherwise,
13679 # look for a macro that doesn't take arguments.
13680 ac_script='
13681 :mline
13682 /\\$/{
13683  N
13684  s,\\\n,,
13685  b mline
13686 }
13687 t clear
13688 :clear
13689 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13690 t quote
13691 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13692 t quote
13693 b any
13694 :quote
13695 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13696 s/\[/\\&/g
13697 s/\]/\\&/g
13698 s/\$/$$/g
13699 H
13700 :any
13701 ${
13702         g
13703         s/^\n//
13704         s/\n/ /g
13705         p
13706 }
13707 '
13708 DEFS=`sed -n "$ac_script" confdefs.h`
13709
13710
13711 ac_libobjs=
13712 ac_ltlibobjs=
13713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13714   # 1. Remove the extension, and $U if already installed.
13715   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13716   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13717   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13718   #    will be set to the directory where LIBOBJS objects are built.
13719   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13720   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13721 done
13722 LIBOBJS=$ac_libobjs
13723
13724 LTLIBOBJS=$ac_ltlibobjs
13725
13726
13727
13728 : ${CONFIG_STATUS=./config.status}
13729 ac_write_fail=0
13730 ac_clean_files_save=$ac_clean_files
13731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13734 as_write_fail=0
13735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13736 #! $SHELL
13737 # Generated by $as_me.
13738 # Run this file to recreate the current configuration.
13739 # Compiler output produced by configure, useful for debugging
13740 # configure, is in config.log if it exists.
13741
13742 debug=false
13743 ac_cs_recheck=false
13744 ac_cs_silent=false
13745
13746 SHELL=\${CONFIG_SHELL-$SHELL}
13747 export SHELL
13748 _ASEOF
13749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13750 ## -------------------- ##
13751 ## M4sh Initialization. ##
13752 ## -------------------- ##
13753
13754 # Be more Bourne compatible
13755 DUALCASE=1; export DUALCASE # for MKS sh
13756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13757   emulate sh
13758   NULLCMD=:
13759   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13760   # is contrary to our usage.  Disable this feature.
13761   alias -g '${1+"$@"}'='"$@"'
13762   setopt NO_GLOB_SUBST
13763 else
13764   case `(set -o) 2>/dev/null` in #(
13765   *posix*) :
13766     set -o posix ;; #(
13767   *) :
13768      ;;
13769 esac
13770 fi
13771
13772
13773 as_nl='
13774 '
13775 export as_nl
13776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13780 # Prefer a ksh shell builtin over an external printf program on Solaris,
13781 # but without wasting forks for bash or zsh.
13782 if test -z "$BASH_VERSION$ZSH_VERSION" \
13783     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13784   as_echo='print -r --'
13785   as_echo_n='print -rn --'
13786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13787   as_echo='printf %s\n'
13788   as_echo_n='printf %s'
13789 else
13790   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13791     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13792     as_echo_n='/usr/ucb/echo -n'
13793   else
13794     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13795     as_echo_n_body='eval
13796       arg=$1;
13797       case $arg in #(
13798       *"$as_nl"*)
13799         expr "X$arg" : "X\\(.*\\)$as_nl";
13800         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13801       esac;
13802       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13803     '
13804     export as_echo_n_body
13805     as_echo_n='sh -c $as_echo_n_body as_echo'
13806   fi
13807   export as_echo_body
13808   as_echo='sh -c $as_echo_body as_echo'
13809 fi
13810
13811 # The user is always right.
13812 if test "${PATH_SEPARATOR+set}" != set; then
13813   PATH_SEPARATOR=:
13814   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13815     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13816       PATH_SEPARATOR=';'
13817   }
13818 fi
13819
13820
13821 # IFS
13822 # We need space, tab and new line, in precisely that order.  Quoting is
13823 # there to prevent editors from complaining about space-tab.
13824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13825 # splitting by setting IFS to empty value.)
13826 IFS=" ""        $as_nl"
13827
13828 # Find who we are.  Look in the path if we contain no directory separator.
13829 case $0 in #((
13830   *[\\/]* ) as_myself=$0 ;;
13831   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13833 do
13834   IFS=$as_save_IFS
13835   test -z "$as_dir" && as_dir=.
13836     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13837   done
13838 IFS=$as_save_IFS
13839
13840      ;;
13841 esac
13842 # We did not find ourselves, most probably we were run as `sh COMMAND'
13843 # in which case we are not to be found in the path.
13844 if test "x$as_myself" = x; then
13845   as_myself=$0
13846 fi
13847 if test ! -f "$as_myself"; then
13848   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13849   exit 1
13850 fi
13851
13852 # Unset variables that we do not need and which cause bugs (e.g. in
13853 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13854 # suppresses any "Segmentation fault" message there.  '((' could
13855 # trigger a bug in pdksh 5.2.14.
13856 for as_var in BASH_ENV ENV MAIL MAILPATH
13857 do eval test x\${$as_var+set} = xset \
13858   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13859 done
13860 PS1='$ '
13861 PS2='> '
13862 PS4='+ '
13863
13864 # NLS nuisances.
13865 LC_ALL=C
13866 export LC_ALL
13867 LANGUAGE=C
13868 export LANGUAGE
13869
13870 # CDPATH.
13871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13872
13873
13874 # as_fn_error ERROR [LINENO LOG_FD]
13875 # ---------------------------------
13876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13878 # script with status $?, using 1 if that was 0.
13879 as_fn_error ()
13880 {
13881   as_status=$?; test $as_status -eq 0 && as_status=1
13882   if test "$3"; then
13883     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13884     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13885   fi
13886   $as_echo "$as_me: error: $1" >&2
13887   as_fn_exit $as_status
13888 } # as_fn_error
13889
13890
13891 # as_fn_set_status STATUS
13892 # -----------------------
13893 # Set $? to STATUS, without forking.
13894 as_fn_set_status ()
13895 {
13896   return $1
13897 } # as_fn_set_status
13898
13899 # as_fn_exit STATUS
13900 # -----------------
13901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13902 as_fn_exit ()
13903 {
13904   set +e
13905   as_fn_set_status $1
13906   exit $1
13907 } # as_fn_exit
13908
13909 # as_fn_unset VAR
13910 # ---------------
13911 # Portably unset VAR.
13912 as_fn_unset ()
13913 {
13914   { eval $1=; unset $1;}
13915 }
13916 as_unset=as_fn_unset
13917 # as_fn_append VAR VALUE
13918 # ----------------------
13919 # Append the text in VALUE to the end of the definition contained in VAR. Take
13920 # advantage of any shell optimizations that allow amortized linear growth over
13921 # repeated appends, instead of the typical quadratic growth present in naive
13922 # implementations.
13923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13924   eval 'as_fn_append ()
13925   {
13926     eval $1+=\$2
13927   }'
13928 else
13929   as_fn_append ()
13930   {
13931     eval $1=\$$1\$2
13932   }
13933 fi # as_fn_append
13934
13935 # as_fn_arith ARG...
13936 # ------------------
13937 # Perform arithmetic evaluation on the ARGs, and store the result in the
13938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13939 # must be portable across $(()) and expr.
13940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13941   eval 'as_fn_arith ()
13942   {
13943     as_val=$(( $* ))
13944   }'
13945 else
13946   as_fn_arith ()
13947   {
13948     as_val=`expr "$@" || test $? -eq 1`
13949   }
13950 fi # as_fn_arith
13951
13952
13953 if expr a : '\(a\)' >/dev/null 2>&1 &&
13954    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13955   as_expr=expr
13956 else
13957   as_expr=false
13958 fi
13959
13960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13961   as_basename=basename
13962 else
13963   as_basename=false
13964 fi
13965
13966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13967   as_dirname=dirname
13968 else
13969   as_dirname=false
13970 fi
13971
13972 as_me=`$as_basename -- "$0" ||
13973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13974          X"$0" : 'X\(//\)$' \| \
13975          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976 $as_echo X/"$0" |
13977     sed '/^.*\/\([^/][^/]*\)\/*$/{
13978             s//\1/
13979             q
13980           }
13981           /^X\/\(\/\/\)$/{
13982             s//\1/
13983             q
13984           }
13985           /^X\/\(\/\).*/{
13986             s//\1/
13987             q
13988           }
13989           s/.*/./; q'`
13990
13991 # Avoid depending upon Character Ranges.
13992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13995 as_cr_digits='0123456789'
13996 as_cr_alnum=$as_cr_Letters$as_cr_digits
13997
13998 ECHO_C= ECHO_N= ECHO_T=
13999 case `echo -n x` in #(((((
14000 -n*)
14001   case `echo 'xy\c'` in
14002   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14003   xy)  ECHO_C='\c';;
14004   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14005        ECHO_T=' ';;
14006   esac;;
14007 *)
14008   ECHO_N='-n';;
14009 esac
14010
14011 rm -f conf$$ conf$$.exe conf$$.file
14012 if test -d conf$$.dir; then
14013   rm -f conf$$.dir/conf$$.file
14014 else
14015   rm -f conf$$.dir
14016   mkdir conf$$.dir 2>/dev/null
14017 fi
14018 if (echo >conf$$.file) 2>/dev/null; then
14019   if ln -s conf$$.file conf$$ 2>/dev/null; then
14020     as_ln_s='ln -s'
14021     # ... but there are two gotchas:
14022     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14023     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14024     # In both cases, we have to default to `cp -p'.
14025     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14026       as_ln_s='cp -p'
14027   elif ln conf$$.file conf$$ 2>/dev/null; then
14028     as_ln_s=ln
14029   else
14030     as_ln_s='cp -p'
14031   fi
14032 else
14033   as_ln_s='cp -p'
14034 fi
14035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14036 rmdir conf$$.dir 2>/dev/null
14037
14038
14039 # as_fn_mkdir_p
14040 # -------------
14041 # Create "$as_dir" as a directory, including parents if necessary.
14042 as_fn_mkdir_p ()
14043 {
14044
14045   case $as_dir in #(
14046   -*) as_dir=./$as_dir;;
14047   esac
14048   test -d "$as_dir" || eval $as_mkdir_p || {
14049     as_dirs=
14050     while :; do
14051       case $as_dir in #(
14052       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14053       *) as_qdir=$as_dir;;
14054       esac
14055       as_dirs="'$as_qdir' $as_dirs"
14056       as_dir=`$as_dirname -- "$as_dir" ||
14057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058          X"$as_dir" : 'X\(//\)[^/]' \| \
14059          X"$as_dir" : 'X\(//\)$' \| \
14060          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14061 $as_echo X"$as_dir" |
14062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14063             s//\1/
14064             q
14065           }
14066           /^X\(\/\/\)[^/].*/{
14067             s//\1/
14068             q
14069           }
14070           /^X\(\/\/\)$/{
14071             s//\1/
14072             q
14073           }
14074           /^X\(\/\).*/{
14075             s//\1/
14076             q
14077           }
14078           s/.*/./; q'`
14079       test -d "$as_dir" && break
14080     done
14081     test -z "$as_dirs" || eval "mkdir $as_dirs"
14082   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14083
14084
14085 } # as_fn_mkdir_p
14086 if mkdir -p . 2>/dev/null; then
14087   as_mkdir_p='mkdir -p "$as_dir"'
14088 else
14089   test -d ./-p && rmdir ./-p
14090   as_mkdir_p=false
14091 fi
14092
14093 if test -x / >/dev/null 2>&1; then
14094   as_test_x='test -x'
14095 else
14096   if ls -dL / >/dev/null 2>&1; then
14097     as_ls_L_option=L
14098   else
14099     as_ls_L_option=
14100   fi
14101   as_test_x='
14102     eval sh -c '\''
14103       if test -d "$1"; then
14104         test -d "$1/.";
14105       else
14106         case $1 in #(
14107         -*)set "./$1";;
14108         esac;
14109         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14110         ???[sx]*):;;*)false;;esac;fi
14111     '\'' sh
14112   '
14113 fi
14114 as_executable_p=$as_test_x
14115
14116 # Sed expression to map a string onto a valid CPP name.
14117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14118
14119 # Sed expression to map a string onto a valid variable name.
14120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14121
14122
14123 exec 6>&1
14124 ## ----------------------------------- ##
14125 ## Main body of $CONFIG_STATUS script. ##
14126 ## ----------------------------------- ##
14127 _ASEOF
14128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14129
14130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131 # Save the log message, to keep $0 and so on meaningful, and to
14132 # report actual input values of CONFIG_FILES etc. instead of their
14133 # values after options handling.
14134 ac_log="
14135 This file was extended by $as_me, which was
14136 generated by GNU Autoconf 2.64.  Invocation command line was
14137
14138   CONFIG_FILES    = $CONFIG_FILES
14139   CONFIG_HEADERS  = $CONFIG_HEADERS
14140   CONFIG_LINKS    = $CONFIG_LINKS
14141   CONFIG_COMMANDS = $CONFIG_COMMANDS
14142   $ $0 $@
14143
14144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14145 "
14146
14147 _ACEOF
14148
14149 case $ac_config_files in *"
14150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14151 esac
14152
14153
14154
14155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14156 # Files that config.status was made for.
14157 config_files="$ac_config_files"
14158
14159 _ACEOF
14160
14161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14162 ac_cs_usage="\
14163 \`$as_me' instantiates files and other configuration actions
14164 from templates according to the current configuration.  Unless the files
14165 and actions are specified as TAGs, all are instantiated by default.
14166
14167 Usage: $0 [OPTION]... [TAG]...
14168
14169   -h, --help       print this help, then exit
14170   -V, --version    print version number and configuration settings, then exit
14171   -q, --quiet, --silent
14172                    do not print progress messages
14173   -d, --debug      don't remove temporary files
14174       --recheck    update $as_me by reconfiguring in the same conditions
14175       --file=FILE[:TEMPLATE]
14176                    instantiate the configuration file FILE
14177
14178 Configuration files:
14179 $config_files
14180
14181 Report bugs to the package provider."
14182
14183 _ACEOF
14184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14185 ac_cs_version="\\
14186 config.status
14187 configured by $0, generated by GNU Autoconf 2.64,
14188   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14189
14190 Copyright (C) 2009 Free Software Foundation, Inc.
14191 This config.status script is free software; the Free Software Foundation
14192 gives unlimited permission to copy, distribute and modify it."
14193
14194 ac_pwd='$ac_pwd'
14195 srcdir='$srcdir'
14196 INSTALL='$INSTALL'
14197 AWK='$AWK'
14198 test -n "\$AWK" || AWK=awk
14199 _ACEOF
14200
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202 # The default lists apply if the user does not specify any file.
14203 ac_need_defaults=:
14204 while test $# != 0
14205 do
14206   case $1 in
14207   --*=*)
14208     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14209     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14210     ac_shift=:
14211     ;;
14212   *)
14213     ac_option=$1
14214     ac_optarg=$2
14215     ac_shift=shift
14216     ;;
14217   esac
14218
14219   case $ac_option in
14220   # Handling of the options.
14221   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14222     ac_cs_recheck=: ;;
14223   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14224     $as_echo "$ac_cs_version"; exit ;;
14225   --debug | --debu | --deb | --de | --d | -d )
14226     debug=: ;;
14227   --file | --fil | --fi | --f )
14228     $ac_shift
14229     case $ac_optarg in
14230     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231     esac
14232     as_fn_append CONFIG_FILES " '$ac_optarg'"
14233     ac_need_defaults=false;;
14234   --he | --h |  --help | --hel | -h )
14235     $as_echo "$ac_cs_usage"; exit ;;
14236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14237   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14238     ac_cs_silent=: ;;
14239
14240   # This is an error.
14241   -*) as_fn_error "unrecognized option: \`$1'
14242 Try \`$0 --help' for more information." ;;
14243
14244   *) as_fn_append ac_config_targets " $1"
14245      ac_need_defaults=false ;;
14246
14247   esac
14248   shift
14249 done
14250
14251 ac_configure_extra_args=
14252
14253 if $ac_cs_silent; then
14254   exec 6>/dev/null
14255   ac_configure_extra_args="$ac_configure_extra_args --silent"
14256 fi
14257
14258 _ACEOF
14259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260 if \$ac_cs_recheck; then
14261   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14262   shift
14263   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14264   CONFIG_SHELL='$SHELL'
14265   export CONFIG_SHELL
14266   exec "\$@"
14267 fi
14268
14269 _ACEOF
14270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271 exec 5>>config.log
14272 {
14273   echo
14274   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14275 ## Running $as_me. ##
14276 _ASBOX
14277   $as_echo "$ac_log"
14278 } >&5
14279
14280 _ACEOF
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 #
14283 # INIT-COMMANDS
14284 #
14285 extrasub_build="$extrasub_build"
14286    extrasub_host="$extrasub_host"
14287    extrasub_target="$extrasub_target"
14288
14289 _ACEOF
14290
14291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14292
14293 # Handling of arguments.
14294 for ac_config_target in $ac_config_targets
14295 do
14296   case $ac_config_target in
14297     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14298
14299   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14300   esac
14301 done
14302
14303
14304 # If the user did not use the arguments to specify the items to instantiate,
14305 # then the envvar interface is used.  Set only those that are not.
14306 # We use the long form for the default assignment because of an extremely
14307 # bizarre bug on SunOS 4.1.3.
14308 if $ac_need_defaults; then
14309   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14310 fi
14311
14312 # Have a temporary directory for convenience.  Make it in the build tree
14313 # simply because there is no reason against having it here, and in addition,
14314 # creating and moving files from /tmp can sometimes cause problems.
14315 # Hook for its removal unless debugging.
14316 # Note that there is a small window in which the directory will not be cleaned:
14317 # after its creation but before its name has been assigned to `$tmp'.
14318 $debug ||
14319 {
14320   tmp=
14321   trap 'exit_status=$?
14322   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14323 ' 0
14324   trap 'as_fn_exit 1' 1 2 13 15
14325 }
14326 # Create a (secure) tmp directory for tmp files.
14327
14328 {
14329   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14330   test -n "$tmp" && test -d "$tmp"
14331 }  ||
14332 {
14333   tmp=./conf$$-$RANDOM
14334   (umask 077 && mkdir "$tmp")
14335 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14336
14337 # Set up the scripts for CONFIG_FILES section.
14338 # No need to generate them if there are no CONFIG_FILES.
14339 # This happens for instance with `./config.status config.h'.
14340 if test -n "$CONFIG_FILES"; then
14341
14342 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14343   ac_cs_awk_getline=:
14344   ac_cs_awk_pipe_init=
14345   ac_cs_awk_read_file='
14346       while ((getline aline < (F[key])) > 0)
14347         print(aline)
14348       close(F[key])'
14349   ac_cs_awk_pipe_fini=
14350 else
14351   ac_cs_awk_getline=false
14352   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14353   ac_cs_awk_read_file='
14354       print "|#_!!_#|"
14355       print "cat " F[key] " &&"
14356       '$ac_cs_awk_pipe_init
14357   # The final `:' finishes the AND list.
14358   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14359 fi
14360 ac_cr=`echo X | tr X '\015'`
14361 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14362 # But we know of no other shell where ac_cr would be empty at this
14363 # point, so we can use a bashism as a fallback.
14364 if test "x$ac_cr" = x; then
14365   eval ac_cr=\$\'\\r\'
14366 fi
14367 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14368 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14369   ac_cs_awk_cr='\r'
14370 else
14371   ac_cs_awk_cr=$ac_cr
14372 fi
14373
14374 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14375 _ACEOF
14376
14377 # Create commands to substitute file output variables.
14378 {
14379   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14380   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14381   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14382   echo "_ACAWK" &&
14383   echo "_ACEOF"
14384 } >conf$$files.sh &&
14385 . ./conf$$files.sh ||
14386   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14387 rm -f conf$$files.sh
14388
14389 {
14390   echo "cat >conf$$subs.awk <<_ACEOF" &&
14391   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14392   echo "_ACEOF"
14393 } >conf$$subs.sh ||
14394   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14395 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14396 ac_delim='%!_!# '
14397 for ac_last_try in false false false false false :; do
14398   . ./conf$$subs.sh ||
14399     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14400
14401   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14402   if test $ac_delim_n = $ac_delim_num; then
14403     break
14404   elif $ac_last_try; then
14405     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14406   else
14407     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14408   fi
14409 done
14410 rm -f conf$$subs.sh
14411
14412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14414 _ACEOF
14415 sed -n '
14416 h
14417 s/^/S["/; s/!.*/"]=/
14418 p
14419 g
14420 s/^[^!]*!//
14421 :repl
14422 t repl
14423 s/'"$ac_delim"'$//
14424 t delim
14425 :nl
14426 h
14427 s/\(.\{148\}\).*/\1/
14428 t more1
14429 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14430 p
14431 n
14432 b repl
14433 :more1
14434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14435 p
14436 g
14437 s/.\{148\}//
14438 t nl
14439 :delim
14440 h
14441 s/\(.\{148\}\).*/\1/
14442 t more2
14443 s/["\\]/\\&/g; s/^/"/; s/$/"/
14444 p
14445 b
14446 :more2
14447 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448 p
14449 g
14450 s/.\{148\}//
14451 t delim
14452 ' <conf$$subs.awk | sed '
14453 /^[^""]/{
14454   N
14455   s/\n//
14456 }
14457 ' >>$CONFIG_STATUS || ac_write_fail=1
14458 rm -f conf$$subs.awk
14459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460 _ACAWK
14461 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14462   for (key in S) S_is_set[key] = 1
14463   FS = "\a"
14464   \$ac_cs_awk_pipe_init
14465 }
14466 {
14467   line = $ 0
14468   nfields = split(line, field, "@")
14469   substed = 0
14470   len = length(field[1])
14471   for (i = 2; i < nfields; i++) {
14472     key = field[i]
14473     keylen = length(key)
14474     if (S_is_set[key]) {
14475       value = S[key]
14476       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14477       len += length(value) + length(field[++i])
14478       substed = 1
14479     } else
14480       len += 1 + keylen
14481   }
14482   if (nfields == 3 && !substed) {
14483     key = field[2]
14484     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
14485       \$ac_cs_awk_read_file
14486       next
14487     }
14488   }
14489   print line
14490 }
14491 \$ac_cs_awk_pipe_fini
14492 _ACAWK
14493 _ACEOF
14494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14495 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14496   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14497 else
14498   cat
14499 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14500   || as_fn_error "could not setup config files machinery" "$LINENO" 5
14501 _ACEOF
14502
14503 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14504 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14505 # trailing colons and then remove the whole line if VPATH becomes empty
14506 # (actually we leave an empty line to preserve line numbers).
14507 if test "x$srcdir" = x.; then
14508   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14509 s/:*\$(srcdir):*/:/
14510 s/:*\${srcdir}:*/:/
14511 s/:*@srcdir@:*/:/
14512 s/^\([^=]*=[     ]*\):*/\1/
14513 s/:*$//
14514 s/^[^=]*=[       ]*$//
14515 }'
14516 fi
14517
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 fi # test -n "$CONFIG_FILES"
14520
14521
14522 eval set X "  :F $CONFIG_FILES      "
14523 shift
14524 for ac_tag
14525 do
14526   case $ac_tag in
14527   :[FHLC]) ac_mode=$ac_tag; continue;;
14528   esac
14529   case $ac_mode$ac_tag in
14530   :[FHL]*:*);;
14531   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14532   :[FH]-) ac_tag=-:-;;
14533   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14534   esac
14535   ac_save_IFS=$IFS
14536   IFS=:
14537   set x $ac_tag
14538   IFS=$ac_save_IFS
14539   shift
14540   ac_file=$1
14541   shift
14542
14543   case $ac_mode in
14544   :L) ac_source=$1;;
14545   :[FH])
14546     ac_file_inputs=
14547     for ac_f
14548     do
14549       case $ac_f in
14550       -) ac_f="$tmp/stdin";;
14551       *) # Look for the file first in the build tree, then in the source tree
14552          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14553          # because $ac_f cannot contain `:'.
14554          test -f "$ac_f" ||
14555            case $ac_f in
14556            [\\/$]*) false;;
14557            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14558            esac ||
14559            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14560       esac
14561       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14562       as_fn_append ac_file_inputs " '$ac_f'"
14563     done
14564
14565     # Let's still pretend it is `configure' which instantiates (i.e., don't
14566     # use $as_me), people would be surprised to read:
14567     #    /* config.h.  Generated by config.status.  */
14568     configure_input='Generated from '`
14569           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14570         `' by configure.'
14571     if test x"$ac_file" != x-; then
14572       configure_input="$ac_file.  $configure_input"
14573       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14574 $as_echo "$as_me: creating $ac_file" >&6;}
14575     fi
14576     # Neutralize special characters interpreted by sed in replacement strings.
14577     case $configure_input in #(
14578     *\&* | *\|* | *\\* )
14579        ac_sed_conf_input=`$as_echo "$configure_input" |
14580        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14581     *) ac_sed_conf_input=$configure_input;;
14582     esac
14583
14584     case $ac_tag in
14585     *:-:* | *:-) cat >"$tmp/stdin" \
14586       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14587     esac
14588     ;;
14589   esac
14590
14591   ac_dir=`$as_dirname -- "$ac_file" ||
14592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14593          X"$ac_file" : 'X\(//\)[^/]' \| \
14594          X"$ac_file" : 'X\(//\)$' \| \
14595          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14596 $as_echo X"$ac_file" |
14597     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14598             s//\1/
14599             q
14600           }
14601           /^X\(\/\/\)[^/].*/{
14602             s//\1/
14603             q
14604           }
14605           /^X\(\/\/\)$/{
14606             s//\1/
14607             q
14608           }
14609           /^X\(\/\).*/{
14610             s//\1/
14611             q
14612           }
14613           s/.*/./; q'`
14614   as_dir="$ac_dir"; as_fn_mkdir_p
14615   ac_builddir=.
14616
14617 case "$ac_dir" in
14618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14619 *)
14620   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14621   # A ".." for each directory in $ac_dir_suffix.
14622   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14623   case $ac_top_builddir_sub in
14624   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14625   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14626   esac ;;
14627 esac
14628 ac_abs_top_builddir=$ac_pwd
14629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14630 # for backward compatibility:
14631 ac_top_builddir=$ac_top_build_prefix
14632
14633 case $srcdir in
14634   .)  # We are building in place.
14635     ac_srcdir=.
14636     ac_top_srcdir=$ac_top_builddir_sub
14637     ac_abs_top_srcdir=$ac_pwd ;;
14638   [\\/]* | ?:[\\/]* )  # Absolute name.
14639     ac_srcdir=$srcdir$ac_dir_suffix;
14640     ac_top_srcdir=$srcdir
14641     ac_abs_top_srcdir=$srcdir ;;
14642   *) # Relative name.
14643     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14644     ac_top_srcdir=$ac_top_build_prefix$srcdir
14645     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14646 esac
14647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14648
14649
14650   case $ac_mode in
14651   :F)
14652   #
14653   # CONFIG_FILE
14654   #
14655
14656   case $INSTALL in
14657   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14658   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14659   esac
14660 _ACEOF
14661
14662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14663 # If the template does not know about datarootdir, expand it.
14664 # FIXME: This hack should be removed a few years after 2.60.
14665 ac_datarootdir_hack=; ac_datarootdir_seen=
14666 ac_sed_dataroot='
14667 /datarootdir/ {
14668   p
14669   q
14670 }
14671 /@datadir@/p
14672 /@docdir@/p
14673 /@infodir@/p
14674 /@localedir@/p
14675 /@mandir@/p'
14676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14677 *datarootdir*) ac_datarootdir_seen=yes;;
14678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14681 _ACEOF
14682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683   ac_datarootdir_hack='
14684   s&@datadir@&$datadir&g
14685   s&@docdir@&$docdir&g
14686   s&@infodir@&$infodir&g
14687   s&@localedir@&$localedir&g
14688   s&@mandir@&$mandir&g
14689   s&\\\${datarootdir}&$datarootdir&g' ;;
14690 esac
14691 _ACEOF
14692
14693 # Neutralize VPATH when `$srcdir' = `.'.
14694 # Shell code in configure.ac might set extrasub.
14695 # FIXME: do we really want to maintain this feature?
14696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697 ac_sed_extra="$ac_vpsub
14698 $extrasub
14699 _ACEOF
14700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14701 :t
14702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14703 s|@configure_input@|$ac_sed_conf_input|;t t
14704 s&@top_builddir@&$ac_top_builddir_sub&;t t
14705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14706 s&@srcdir@&$ac_srcdir&;t t
14707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14708 s&@top_srcdir@&$ac_top_srcdir&;t t
14709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14710 s&@builddir@&$ac_builddir&;t t
14711 s&@abs_builddir@&$ac_abs_builddir&;t t
14712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14713 s&@INSTALL@&$ac_INSTALL&;t t
14714 $ac_datarootdir_hack
14715 "
14716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14717 if $ac_cs_awk_getline; then
14718   $AWK -f "$tmp/subs.awk"
14719 else
14720   $AWK -f "$tmp/subs.awk" | $SHELL
14721 fi >$tmp/out \
14722   || as_fn_error "could not create $ac_file" "$LINENO" 5
14723
14724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14725   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14726   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14728 which seems to be undefined.  Please make sure it is defined." >&5
14729 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14730 which seems to be undefined.  Please make sure it is defined." >&2;}
14731
14732   rm -f "$tmp/stdin"
14733   case $ac_file in
14734   -) cat "$tmp/out" && rm -f "$tmp/out";;
14735   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14736   esac \
14737   || as_fn_error "could not create $ac_file" "$LINENO" 5
14738  ;;
14739
14740
14741
14742   esac
14743
14744
14745   case $ac_file$ac_mode in
14746     "Makefile":F) sed "$extrasub_build" Makefile |
14747    sed "$extrasub_host" |
14748    sed "$extrasub_target" > mf$$
14749    mv -f mf$$ Makefile ;;
14750
14751   esac
14752 done # for ac_tag
14753
14754
14755 as_fn_exit 0
14756 _ACEOF
14757 ac_clean_files=$ac_clean_files_save
14758
14759 test $ac_write_fail = 0 ||
14760   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14761
14762
14763 # configure is writing to config.log, and then calls config.status.
14764 # config.status does its own redirection, appending to config.log.
14765 # Unfortunately, on DOS this fails, as config.log is still kept open
14766 # by configure, so config.status won't be able to write to it; its
14767 # output is simply discarded.  So we exec the FD to /dev/null,
14768 # effectively closing config.log, so it can be properly (re)opened and
14769 # appended to by config.status.  When coming back to configure, we
14770 # need to make the FD available again.
14771 if test "$no_create" != yes; then
14772   ac_cs_success=:
14773   ac_config_status_args=
14774   test "$silent" = yes &&
14775     ac_config_status_args="$ac_config_status_args --quiet"
14776   exec 5>/dev/null
14777   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14778   exec 5>>config.log
14779   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14780   # would make configure fail if this is the last instruction.
14781   $ac_cs_success || as_fn_exit $?
14782 fi
14783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14786 fi
14787